]> git.decadent.org.uk Git - nfs-utils.git/blob - autom4te.cache/output.0
Imported Upstream version 1.0.11~git-20060105
[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 CYGPATH_W
823 PACKAGE
824 VERSION
825 ACLOCAL
826 AUTOCONF
827 AUTOMAKE
828 AUTOHEADER
829 MAKEINFO
830 install_sh
831 STRIP
832 INSTALL_STRIP_PROGRAM
833 mkdir_p
834 AWK
835 SET_MAKE
836 am__leading_dot
837 AMTAR
838 am__tar
839 am__untar
840 RELEASE
841 statedir
842 statduser
843 enable_nfsv3
844 IDMAPD
845 enable_nfsv4
846 CONFIG_NFSV4_TRUE
847 CONFIG_NFSV4_FALSE
848 GSSD
849 SVCGSSD
850 enable_gss
851 CONFIG_GSS_TRUE
852 CONFIG_GSS_FALSE
853 kprefix
854 secure_statd
855 CONFIG_RQUOTAD_TRUE
856 CONFIG_RQUOTAD_FALSE
857 CONFIG_MOUNT_TRUE
858 CONFIG_MOUNT_FALSE
859 CC
860 CFLAGS
861 LDFLAGS
862 CPPFLAGS
863 ac_ct_CC
864 EXEEXT
865 OBJEXT
866 DEPDIR
867 am__include
868 am__quote
869 AMDEP_TRUE
870 AMDEP_FALSE
871 AMDEPBACKSLASH
872 CCDEPMODE
873 am__fastdepCC_TRUE
874 am__fastdepCC_FALSE
875 LIBWRAP
876 HAVE_LIBWRAP
877 HAVE_TCP_WRAPPER
878 CXX
879 CXXFLAGS
880 ac_ct_CXX
881 CXXDEPMODE
882 am__fastdepCXX_TRUE
883 am__fastdepCXX_FALSE
884 CPP
885 LN_S
886 GREP
887 EGREP
888 ECHO
889 AR
890 RANLIB
891 CXXCPP
892 F77
893 FFLAGS
894 ac_ct_F77
895 LIBTOOL
896 CC_FOR_BUILD
897 LD
898 LIBNSL
899 PKG_CONFIG
900 RPCSECGSS_CFLAGS
901 RPCSECGSS_LIBS
902 GSSAPI_CFLAGS
903 GSSAPI_LIBS
904 LIBSOCKET
905 LIBCRYPT
906 LIBBSD
907 KRBDIR
908 KRBLIBS
909 KRBCFLAGS
910 KRBLDFLAGS
911 K5VERS
912 ALLOCA
913 LIB@&t@OBJS
914 CFLAGS_FOR_BUILD
915 CXXFLAGS_FOR_BUILD
916 CPPFLAGS_FOR_BUILD
917 LDFLAGS_FOR_BUILD
918 AM_CPPFLAGS
919 AM_CFLAGS
920 ACLOCAL_AMFLAGS
921 LTLIBOBJS'
922 ac_subst_files=''
923       ac_precious_vars='build_alias
924 host_alias
925 target_alias
926 CC
927 CFLAGS
928 LDFLAGS
929 LIBS
930 CPPFLAGS
931 CXX
932 CXXFLAGS
933 CCC
934 CPP
935 CXXCPP
936 F77
937 FFLAGS
938 PKG_CONFIG
939 RPCSECGSS_CFLAGS
940 RPCSECGSS_LIBS
941 GSSAPI_CFLAGS
942 GSSAPI_LIBS'
943
944
945 # Initialize some variables set by options.
946 ac_init_help=
947 ac_init_version=false
948 # The variables have the same names as the options, with
949 # dashes changed to underlines.
950 cache_file=/dev/null
951 exec_prefix=NONE
952 no_create=
953 no_recursion=
954 prefix=NONE
955 program_prefix=NONE
956 program_suffix=NONE
957 program_transform_name=s,x,x,
958 silent=
959 site=
960 srcdir=
961 verbose=
962 x_includes=NONE
963 x_libraries=NONE
964
965 # Installation directory options.
966 # These are left unexpanded so users can "make install exec_prefix=/foo"
967 # and all the variables that are supposed to be based on exec_prefix
968 # by default will actually change.
969 # Use braces instead of parens because sh, perl, etc. also accept them.
970 # (The list follows the same order as the GNU Coding Standards.)
971 bindir='${exec_prefix}/bin'
972 sbindir='${exec_prefix}/sbin'
973 libexecdir='${exec_prefix}/libexec'
974 datarootdir='${prefix}/share'
975 datadir='${datarootdir}'
976 sysconfdir='${prefix}/etc'
977 sharedstatedir='${prefix}/com'
978 localstatedir='${prefix}/var'
979 includedir='${prefix}/include'
980 oldincludedir='/usr/include'
981 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
982 infodir='${datarootdir}/info'
983 htmldir='${docdir}'
984 dvidir='${docdir}'
985 pdfdir='${docdir}'
986 psdir='${docdir}'
987 libdir='${exec_prefix}/lib'
988 localedir='${datarootdir}/locale'
989 mandir='${datarootdir}/man'
990
991 ac_prev=
992 ac_dashdash=
993 for ac_option
994 do
995   # If the previous option needs an argument, assign it.
996   if test -n "$ac_prev"; then
997     eval $ac_prev=\$ac_option
998     ac_prev=
999     continue
1000   fi
1001
1002   case $ac_option in
1003   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1004   *)    ac_optarg=yes ;;
1005   esac
1006
1007   # Accept the important Cygnus configure options, so we can diagnose typos.
1008
1009   case $ac_dashdash$ac_option in
1010   --)
1011     ac_dashdash=yes ;;
1012
1013   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1014     ac_prev=bindir ;;
1015   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1016     bindir=$ac_optarg ;;
1017
1018   -build | --build | --buil | --bui | --bu)
1019     ac_prev=build_alias ;;
1020   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1021     build_alias=$ac_optarg ;;
1022
1023   -cache-file | --cache-file | --cache-fil | --cache-fi \
1024   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1025     ac_prev=cache_file ;;
1026   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1027   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1028     cache_file=$ac_optarg ;;
1029
1030   --config-cache | -C)
1031     cache_file=config.cache ;;
1032
1033   -datadir | --datadir | --datadi | --datad)
1034     ac_prev=datadir ;;
1035   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1036     datadir=$ac_optarg ;;
1037
1038   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1039   | --dataroo | --dataro | --datar)
1040     ac_prev=datarootdir ;;
1041   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1042   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1043     datarootdir=$ac_optarg ;;
1044
1045   -disable-* | --disable-*)
1046     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1047     # Reject names that are not valid shell variable names.
1048     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1049       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1050    { (exit 1); exit 1; }; }
1051     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1052     eval enable_$ac_feature=no ;;
1053
1054   -docdir | --docdir | --docdi | --doc | --do)
1055     ac_prev=docdir ;;
1056   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1057     docdir=$ac_optarg ;;
1058
1059   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1060     ac_prev=dvidir ;;
1061   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1062     dvidir=$ac_optarg ;;
1063
1064   -enable-* | --enable-*)
1065     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1066     # Reject names that are not valid shell variable names.
1067     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1068       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1069    { (exit 1); exit 1; }; }
1070     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1071     eval enable_$ac_feature=\$ac_optarg ;;
1072
1073   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1074   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1075   | --exec | --exe | --ex)
1076     ac_prev=exec_prefix ;;
1077   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1078   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1079   | --exec=* | --exe=* | --ex=*)
1080     exec_prefix=$ac_optarg ;;
1081
1082   -gas | --gas | --ga | --g)
1083     # Obsolete; use --with-gas.
1084     with_gas=yes ;;
1085
1086   -help | --help | --hel | --he | -h)
1087     ac_init_help=long ;;
1088   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1089     ac_init_help=recursive ;;
1090   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1091     ac_init_help=short ;;
1092
1093   -host | --host | --hos | --ho)
1094     ac_prev=host_alias ;;
1095   -host=* | --host=* | --hos=* | --ho=*)
1096     host_alias=$ac_optarg ;;
1097
1098   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1099     ac_prev=htmldir ;;
1100   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1101   | --ht=*)
1102     htmldir=$ac_optarg ;;
1103
1104   -includedir | --includedir | --includedi | --included | --include \
1105   | --includ | --inclu | --incl | --inc)
1106     ac_prev=includedir ;;
1107   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1108   | --includ=* | --inclu=* | --incl=* | --inc=*)
1109     includedir=$ac_optarg ;;
1110
1111   -infodir | --infodir | --infodi | --infod | --info | --inf)
1112     ac_prev=infodir ;;
1113   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1114     infodir=$ac_optarg ;;
1115
1116   -libdir | --libdir | --libdi | --libd)
1117     ac_prev=libdir ;;
1118   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1119     libdir=$ac_optarg ;;
1120
1121   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1122   | --libexe | --libex | --libe)
1123     ac_prev=libexecdir ;;
1124   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1125   | --libexe=* | --libex=* | --libe=*)
1126     libexecdir=$ac_optarg ;;
1127
1128   -localedir | --localedir | --localedi | --localed | --locale)
1129     ac_prev=localedir ;;
1130   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1131     localedir=$ac_optarg ;;
1132
1133   -localstatedir | --localstatedir | --localstatedi | --localstated \
1134   | --localstate | --localstat | --localsta | --localst | --locals)
1135     ac_prev=localstatedir ;;
1136   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1137   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1138     localstatedir=$ac_optarg ;;
1139
1140   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1141     ac_prev=mandir ;;
1142   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1143     mandir=$ac_optarg ;;
1144
1145   -nfp | --nfp | --nf)
1146     # Obsolete; use --without-fp.
1147     with_fp=no ;;
1148
1149   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1150   | --no-cr | --no-c | -n)
1151     no_create=yes ;;
1152
1153   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1154   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1155     no_recursion=yes ;;
1156
1157   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1158   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1159   | --oldin | --oldi | --old | --ol | --o)
1160     ac_prev=oldincludedir ;;
1161   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1162   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1163   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1164     oldincludedir=$ac_optarg ;;
1165
1166   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1167     ac_prev=prefix ;;
1168   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1169     prefix=$ac_optarg ;;
1170
1171   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1172   | --program-pre | --program-pr | --program-p)
1173     ac_prev=program_prefix ;;
1174   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1175   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1176     program_prefix=$ac_optarg ;;
1177
1178   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1179   | --program-suf | --program-su | --program-s)
1180     ac_prev=program_suffix ;;
1181   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1182   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1183     program_suffix=$ac_optarg ;;
1184
1185   -program-transform-name | --program-transform-name \
1186   | --program-transform-nam | --program-transform-na \
1187   | --program-transform-n | --program-transform- \
1188   | --program-transform | --program-transfor \
1189   | --program-transfo | --program-transf \
1190   | --program-trans | --program-tran \
1191   | --progr-tra | --program-tr | --program-t)
1192     ac_prev=program_transform_name ;;
1193   -program-transform-name=* | --program-transform-name=* \
1194   | --program-transform-nam=* | --program-transform-na=* \
1195   | --program-transform-n=* | --program-transform-=* \
1196   | --program-transform=* | --program-transfor=* \
1197   | --program-transfo=* | --program-transf=* \
1198   | --program-trans=* | --program-tran=* \
1199   | --progr-tra=* | --program-tr=* | --program-t=*)
1200     program_transform_name=$ac_optarg ;;
1201
1202   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1203     ac_prev=pdfdir ;;
1204   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1205     pdfdir=$ac_optarg ;;
1206
1207   -psdir | --psdir | --psdi | --psd | --ps)
1208     ac_prev=psdir ;;
1209   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1210     psdir=$ac_optarg ;;
1211
1212   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1213   | -silent | --silent | --silen | --sile | --sil)
1214     silent=yes ;;
1215
1216   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1217     ac_prev=sbindir ;;
1218   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1219   | --sbi=* | --sb=*)
1220     sbindir=$ac_optarg ;;
1221
1222   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1223   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1224   | --sharedst | --shareds | --shared | --share | --shar \
1225   | --sha | --sh)
1226     ac_prev=sharedstatedir ;;
1227   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1228   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1229   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1230   | --sha=* | --sh=*)
1231     sharedstatedir=$ac_optarg ;;
1232
1233   -site | --site | --sit)
1234     ac_prev=site ;;
1235   -site=* | --site=* | --sit=*)
1236     site=$ac_optarg ;;
1237
1238   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1239     ac_prev=srcdir ;;
1240   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1241     srcdir=$ac_optarg ;;
1242
1243   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1244   | --syscon | --sysco | --sysc | --sys | --sy)
1245     ac_prev=sysconfdir ;;
1246   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1247   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1248     sysconfdir=$ac_optarg ;;
1249
1250   -target | --target | --targe | --targ | --tar | --ta | --t)
1251     ac_prev=target_alias ;;
1252   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1253     target_alias=$ac_optarg ;;
1254
1255   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1256     verbose=yes ;;
1257
1258   -version | --version | --versio | --versi | --vers | -V)
1259     ac_init_version=: ;;
1260
1261   -with-* | --with-*)
1262     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1263     # Reject names that are not valid shell variable names.
1264     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1265       { echo "$as_me: error: invalid package name: $ac_package" >&2
1266    { (exit 1); exit 1; }; }
1267     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1268     eval with_$ac_package=\$ac_optarg ;;
1269
1270   -without-* | --without-*)
1271     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1272     # Reject names that are not valid shell variable names.
1273     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1274       { echo "$as_me: error: invalid package name: $ac_package" >&2
1275    { (exit 1); exit 1; }; }
1276     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1277     eval with_$ac_package=no ;;
1278
1279   --x)
1280     # Obsolete; use --with-x.
1281     with_x=yes ;;
1282
1283   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1284   | --x-incl | --x-inc | --x-in | --x-i)
1285     ac_prev=x_includes ;;
1286   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1287   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1288     x_includes=$ac_optarg ;;
1289
1290   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1291   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1292     ac_prev=x_libraries ;;
1293   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1294   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1295     x_libraries=$ac_optarg ;;
1296
1297   -*) { echo "$as_me: error: unrecognized option: $ac_option
1298 Try \`$0 --help' for more information." >&2
1299    { (exit 1); exit 1; }; }
1300     ;;
1301
1302   *=*)
1303     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1304     # Reject names that are not valid shell variable names.
1305     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1306       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1307    { (exit 1); exit 1; }; }
1308     eval $ac_envvar=\$ac_optarg
1309     export $ac_envvar ;;
1310
1311   *)
1312     # FIXME: should be removed in autoconf 3.0.
1313     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1314     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1315       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1316     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1317     ;;
1318
1319   esac
1320 done
1321
1322 if test -n "$ac_prev"; then
1323   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1324   { echo "$as_me: error: missing argument to $ac_option" >&2
1325    { (exit 1); exit 1; }; }
1326 fi
1327
1328 # Be sure to have absolute directory names.
1329 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1330                 datadir sysconfdir sharedstatedir localstatedir includedir \
1331                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1332                 libdir localedir mandir
1333 do
1334   eval ac_val=\$$ac_var
1335   case $ac_val in
1336     [\\/$]* | ?:[\\/]* )  continue;;
1337     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1338   esac
1339   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1340    { (exit 1); exit 1; }; }
1341 done
1342
1343 # There might be people who depend on the old broken behavior: `$host'
1344 # used to hold the argument of --host etc.
1345 # FIXME: To remove some day.
1346 build=$build_alias
1347 host=$host_alias
1348 target=$target_alias
1349
1350 # FIXME: To remove some day.
1351 if test "x$host_alias" != x; then
1352   if test "x$build_alias" = x; then
1353     cross_compiling=maybe
1354     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1355     If a cross compiler is detected then cross compile mode will be used." >&2
1356   elif test "x$build_alias" != "x$host_alias"; then
1357     cross_compiling=yes
1358   fi
1359 fi
1360
1361 ac_tool_prefix=
1362 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1363
1364 test "$silent" = yes && exec 6>/dev/null
1365
1366
1367 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1368 ac_ls_di=`ls -di .` &&
1369 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1370   { echo "$as_me: error: Working directory cannot be determined" >&2
1371    { (exit 1); exit 1; }; }
1372 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1373   { echo "$as_me: error: pwd does not report name of working directory" >&2
1374    { (exit 1); exit 1; }; }
1375
1376
1377 # Find the source files, if location was not specified.
1378 if test -z "$srcdir"; then
1379   ac_srcdir_defaulted=yes
1380   # Try the directory containing this script, then the parent directory.
1381   ac_confdir=`$as_dirname -- "$0" ||
1382 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1383          X"$0" : 'X\(//\)[^/]' \| \
1384          X"$0" : 'X\(//\)$' \| \
1385          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1386 echo X"$0" |
1387     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1388             s//\1/
1389             q
1390           }
1391           /^X\(\/\/\)[^/].*/{
1392             s//\1/
1393             q
1394           }
1395           /^X\(\/\/\)$/{
1396             s//\1/
1397             q
1398           }
1399           /^X\(\/\).*/{
1400             s//\1/
1401             q
1402           }
1403           s/.*/./; q'`
1404   srcdir=$ac_confdir
1405   if test ! -r "$srcdir/$ac_unique_file"; then
1406     srcdir=..
1407   fi
1408 else
1409   ac_srcdir_defaulted=no
1410 fi
1411 if test ! -r "$srcdir/$ac_unique_file"; then
1412   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1413   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1414    { (exit 1); exit 1; }; }
1415 fi
1416 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1417 ac_abs_confdir=`(
1418         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1419    { (exit 1); exit 1; }; }
1420         pwd)`
1421 # When building in place, set srcdir=.
1422 if test "$ac_abs_confdir" = "$ac_pwd"; then
1423   srcdir=.
1424 fi
1425 # Remove unnecessary trailing slashes from srcdir.
1426 # Double slashes in file names in object file debugging info
1427 # mess up M-x gdb in Emacs.
1428 case $srcdir in
1429 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1430 esac
1431 for ac_var in $ac_precious_vars; do
1432   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1433   eval ac_env_${ac_var}_value=\$${ac_var}
1434   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1435   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1436 done
1437
1438 #
1439 # Report the --help message.
1440 #
1441 if test "$ac_init_help" = "long"; then
1442   # Omit some internal or obsolete options to make the list less imposing.
1443   # This message is too long to be a string in the A/UX 3.1 sh.
1444   cat <<_ACEOF
1445 \`configure' configures linux nfs-utils 1.0.10 to adapt to many kinds of systems.
1446
1447 Usage: $0 [OPTION]... [VAR=VALUE]...
1448
1449 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1450 VAR=VALUE.  See below for descriptions of some of the useful variables.
1451
1452 Defaults for the options are specified in brackets.
1453
1454 Configuration:
1455   -h, --help              display this help and exit
1456       --help=short        display options specific to this package
1457       --help=recursive    display the short help of all the included packages
1458   -V, --version           display version information and exit
1459   -q, --quiet, --silent   do not print \`checking...' messages
1460       --cache-file=FILE   cache test results in FILE [disabled]
1461   -C, --config-cache      alias for \`--cache-file=config.cache'
1462   -n, --no-create         do not create output files
1463       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1464
1465 Installation directories:
1466   --prefix=PREFIX         install architecture-independent files in PREFIX
1467                           [$ac_default_prefix]
1468   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1469                           [PREFIX]
1470
1471 By default, \`make install' will install all the files in
1472 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1473 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1474 for instance \`--prefix=\$HOME'.
1475
1476 For better control, use the options below.
1477
1478 Fine tuning of the installation directories:
1479   --bindir=DIR           user executables [EPREFIX/bin]
1480   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1481   --libexecdir=DIR       program executables [EPREFIX/libexec]
1482   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1483   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1484   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1485   --libdir=DIR           object code libraries [EPREFIX/lib]
1486   --includedir=DIR       C header files [PREFIX/include]
1487   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1488   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1489   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1490   --infodir=DIR          info documentation [DATAROOTDIR/info]
1491   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1492   --mandir=DIR           man documentation [DATAROOTDIR/man]
1493   --docdir=DIR           documentation root @<:@DATAROOTDIR/doc/nfs-utils@:>@
1494   --htmldir=DIR          html documentation [DOCDIR]
1495   --dvidir=DIR           dvi documentation [DOCDIR]
1496   --pdfdir=DIR           pdf documentation [DOCDIR]
1497   --psdir=DIR            ps documentation [DOCDIR]
1498 _ACEOF
1499
1500   cat <<\_ACEOF
1501
1502 Program names:
1503   --program-prefix=PREFIX            prepend PREFIX to installed program names
1504   --program-suffix=SUFFIX            append SUFFIX to installed program names
1505   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1506
1507 System types:
1508   --build=BUILD     configure for building on BUILD [guessed]
1509   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1510 _ACEOF
1511 fi
1512
1513 if test -n "$ac_init_help"; then
1514   case $ac_init_help in
1515      short | recursive ) echo "Configuration of linux nfs-utils 1.0.10:";;
1516    esac
1517   cat <<\_ACEOF
1518
1519 Optional Features:
1520   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1521   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1522   --enable-nfsv3          enable support for NFSv3 @<:@default=yes@:>@
1523   --enable-nfsv4          enable support for NFSv4 @<:@default=yes@:>@
1524   --enable-gss            enable support for rpcsec_gss @<:@default=yes@:>@
1525   --enable-kprefix        install progs as rpc.knfsd etc
1526   --enable-secure-statd   Only lockd can use statd (security)
1527   --enable-rquotad        enable rquotad @<:@default=yes@:>@
1528   --enable-mount          Create mount.nfs and don't use the util-linux
1529                           mount(8) functionality. @<:@default=no@:>@
1530   --disable-dependency-tracking  speeds up one-time build
1531   --enable-dependency-tracking   do not reject slow dependency extractors
1532   --enable-shared@<:@=PKGS@:>@  build shared libraries @<:@default=yes@:>@
1533   --enable-static@<:@=PKGS@:>@  build static libraries @<:@default=yes@:>@
1534   --enable-fast-install@<:@=PKGS@:>@ 
1535                           optimize for fast installation @<:@default=yes@:>@
1536   --disable-libtool-lock  avoid locking (might break parallel builds)
1537
1538 Optional Packages:
1539   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1540   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1541   --with-release=XXX      set release to XXX [1]
1542   --with-statedir=/foo    use state dir /foo /var/lib/nfs
1543   --with-statduser=rpcuser 
1544                           statd to run under @<:@rpcuser or nobody@:>@
1545   --with-tcp-wrappers[=PATH]      Enable tcpwrappers support
1546                  (optionally in PATH)
1547   --with-gnu-ld           assume the C compiler uses GNU ld @<:@default=no@:>@
1548   --with-pic              try to use only PIC/non-PIC objects @<:@default=use
1549                           both@:>@
1550   --with-tags@<:@=TAGS@:>@      include additional configurations @<:@automatic@:>@
1551   --with-krb5=DIR         use Kerberos v5 installation in DIR
1552
1553 Some influential environment variables:
1554   CC          C compiler command
1555   CFLAGS      C compiler flags
1556   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1557               nonstandard directory <lib dir>
1558   LIBS        libraries to pass to the linker, e.g. -l<library>
1559   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1560               you have headers in a nonstandard directory <include dir>
1561   CXX         C++ compiler command
1562   CXXFLAGS    C++ compiler flags
1563   CPP         C preprocessor
1564   CXXCPP      C++ preprocessor
1565   F77         Fortran 77 compiler command
1566   FFLAGS      Fortran 77 compiler flags
1567   PKG_CONFIG  path to pkg-config utility
1568   RPCSECGSS_CFLAGS 
1569               C compiler flags for RPCSECGSS, overriding pkg-config
1570   RPCSECGSS_LIBS 
1571               linker flags for RPCSECGSS, overriding pkg-config
1572   GSSAPI_CFLAGS 
1573               C compiler flags for GSSAPI, overriding pkg-config
1574   GSSAPI_LIBS linker flags for GSSAPI, overriding pkg-config
1575
1576 Use these variables to override the choices made by `configure' or to help
1577 it to find libraries and programs with nonstandard names/locations.
1578
1579 Report bugs to <nfs@lists.sf.net>.
1580 _ACEOF
1581 ac_status=$?
1582 fi
1583
1584 if test "$ac_init_help" = "recursive"; then
1585   # If there are subdirs, report their specific --help.
1586   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1587     test -d "$ac_dir" || continue
1588     ac_builddir=.
1589
1590 case "$ac_dir" in
1591 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1592 *)
1593   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1594   # A ".." for each directory in $ac_dir_suffix.
1595   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1596   case $ac_top_builddir_sub in
1597   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1598   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1599   esac ;;
1600 esac
1601 ac_abs_top_builddir=$ac_pwd
1602 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1603 # for backward compatibility:
1604 ac_top_builddir=$ac_top_build_prefix
1605
1606 case $srcdir in
1607   .)  # We are building in place.
1608     ac_srcdir=.
1609     ac_top_srcdir=$ac_top_builddir_sub
1610     ac_abs_top_srcdir=$ac_pwd ;;
1611   [\\/]* | ?:[\\/]* )  # Absolute name.
1612     ac_srcdir=$srcdir$ac_dir_suffix;
1613     ac_top_srcdir=$srcdir
1614     ac_abs_top_srcdir=$srcdir ;;
1615   *) # Relative name.
1616     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1617     ac_top_srcdir=$ac_top_build_prefix$srcdir
1618     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1619 esac
1620 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1621
1622     cd "$ac_dir" || { ac_status=$?; continue; }
1623     # Check for guested configure.
1624     if test -f "$ac_srcdir/configure.gnu"; then
1625       echo &&
1626       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1627     elif test -f "$ac_srcdir/configure"; then
1628       echo &&
1629       $SHELL "$ac_srcdir/configure" --help=recursive
1630     else
1631       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1632     fi || ac_status=$?
1633     cd "$ac_pwd" || { ac_status=$?; break; }
1634   done
1635 fi
1636
1637 test -n "$ac_init_help" && exit $ac_status
1638 if $ac_init_version; then
1639   cat <<\_ACEOF
1640 linux nfs-utils configure 1.0.10
1641 generated by GNU Autoconf 2.61
1642
1643 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1644 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1645 This configure script is free software; the Free Software Foundation
1646 gives unlimited permission to copy, distribute and modify it.
1647 _ACEOF
1648   exit
1649 fi
1650 cat >config.log <<_ACEOF
1651 This file contains any messages produced by compilers while
1652 running configure, to aid debugging if configure makes a mistake.
1653
1654 It was created by linux nfs-utils $as_me 1.0.10, which was
1655 generated by GNU Autoconf 2.61.  Invocation command line was
1656
1657   $ $0 $@
1658
1659 _ACEOF
1660 exec 5>>config.log
1661 {
1662 cat <<_ASUNAME
1663 @%:@@%:@ --------- @%:@@%:@
1664 @%:@@%:@ Platform. @%:@@%:@
1665 @%:@@%:@ --------- @%:@@%:@
1666
1667 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1668 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1669 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1670 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1671 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1672
1673 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1674 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1675
1676 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1677 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1678 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1679 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1680 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1681 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1682 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1683
1684 _ASUNAME
1685
1686 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1687 for as_dir in $PATH
1688 do
1689   IFS=$as_save_IFS
1690   test -z "$as_dir" && as_dir=.
1691   echo "PATH: $as_dir"
1692 done
1693 IFS=$as_save_IFS
1694
1695 } >&5
1696
1697 cat >&5 <<_ACEOF
1698
1699
1700 @%:@@%:@ ----------- @%:@@%:@
1701 @%:@@%:@ Core tests. @%:@@%:@
1702 @%:@@%:@ ----------- @%:@@%:@
1703
1704 _ACEOF
1705
1706
1707 # Keep a trace of the command line.
1708 # Strip out --no-create and --no-recursion so they do not pile up.
1709 # Strip out --silent because we don't want to record it for future runs.
1710 # Also quote any args containing shell meta-characters.
1711 # Make two passes to allow for proper duplicate-argument suppression.
1712 ac_configure_args=
1713 ac_configure_args0=
1714 ac_configure_args1=
1715 ac_must_keep_next=false
1716 for ac_pass in 1 2
1717 do
1718   for ac_arg
1719   do
1720     case $ac_arg in
1721     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1722     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1723     | -silent | --silent | --silen | --sile | --sil)
1724       continue ;;
1725     *\'*)
1726       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1727     esac
1728     case $ac_pass in
1729     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1730     2)
1731       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1732       if test $ac_must_keep_next = true; then
1733         ac_must_keep_next=false # Got value, back to normal.
1734       else
1735         case $ac_arg in
1736           *=* | --config-cache | -C | -disable-* | --disable-* \
1737           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1738           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1739           | -with-* | --with-* | -without-* | --without-* | --x)
1740             case "$ac_configure_args0 " in
1741               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1742             esac
1743             ;;
1744           -* ) ac_must_keep_next=true ;;
1745         esac
1746       fi
1747       ac_configure_args="$ac_configure_args '$ac_arg'"
1748       ;;
1749     esac
1750   done
1751 done
1752 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1753 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1754
1755 # When interrupted or exit'd, cleanup temporary files, and complete
1756 # config.log.  We remove comments because anyway the quotes in there
1757 # would cause problems or look ugly.
1758 # WARNING: Use '\'' to represent an apostrophe within the trap.
1759 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1760 trap 'exit_status=$?
1761   # Save into config.log some information that might help in debugging.
1762   {
1763     echo
1764
1765     cat <<\_ASBOX
1766 @%:@@%:@ ---------------- @%:@@%:@
1767 @%:@@%:@ Cache variables. @%:@@%:@
1768 @%:@@%:@ ---------------- @%:@@%:@
1769 _ASBOX
1770     echo
1771     # The following way of writing the cache mishandles newlines in values,
1772 (
1773   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1774     eval ac_val=\$$ac_var
1775     case $ac_val in #(
1776     *${as_nl}*)
1777       case $ac_var in #(
1778       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1779 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1780       esac
1781       case $ac_var in #(
1782       _ | IFS | as_nl) ;; #(
1783       *) $as_unset $ac_var ;;
1784       esac ;;
1785     esac
1786   done
1787   (set) 2>&1 |
1788     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1789     *${as_nl}ac_space=\ *)
1790       sed -n \
1791         "s/'\''/'\''\\\\'\'''\''/g;
1792           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1793       ;; #(
1794     *)
1795       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1796       ;;
1797     esac |
1798     sort
1799 )
1800     echo
1801
1802     cat <<\_ASBOX
1803 @%:@@%:@ ----------------- @%:@@%:@
1804 @%:@@%:@ Output variables. @%:@@%:@
1805 @%:@@%:@ ----------------- @%:@@%:@
1806 _ASBOX
1807     echo
1808     for ac_var in $ac_subst_vars
1809     do
1810       eval ac_val=\$$ac_var
1811       case $ac_val in
1812       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1813       esac
1814       echo "$ac_var='\''$ac_val'\''"
1815     done | sort
1816     echo
1817
1818     if test -n "$ac_subst_files"; then
1819       cat <<\_ASBOX
1820 @%:@@%:@ ------------------- @%:@@%:@
1821 @%:@@%:@ File substitutions. @%:@@%:@
1822 @%:@@%:@ ------------------- @%:@@%:@
1823 _ASBOX
1824       echo
1825       for ac_var in $ac_subst_files
1826       do
1827         eval ac_val=\$$ac_var
1828         case $ac_val in
1829         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1830         esac
1831         echo "$ac_var='\''$ac_val'\''"
1832       done | sort
1833       echo
1834     fi
1835
1836     if test -s confdefs.h; then
1837       cat <<\_ASBOX
1838 @%:@@%:@ ----------- @%:@@%:@
1839 @%:@@%:@ confdefs.h. @%:@@%:@
1840 @%:@@%:@ ----------- @%:@@%:@
1841 _ASBOX
1842       echo
1843       cat confdefs.h
1844       echo
1845     fi
1846     test "$ac_signal" != 0 &&
1847       echo "$as_me: caught signal $ac_signal"
1848     echo "$as_me: exit $exit_status"
1849   } >&5
1850   rm -f core *.core core.conftest.* &&
1851     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1852     exit $exit_status
1853 ' 0
1854 for ac_signal in 1 2 13 15; do
1855   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1856 done
1857 ac_signal=0
1858
1859 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1860 rm -f -r conftest* confdefs.h
1861
1862 # Predefined preprocessor variables.
1863
1864 cat >>confdefs.h <<_ACEOF
1865 @%:@define PACKAGE_NAME "$PACKAGE_NAME"
1866 _ACEOF
1867
1868
1869 cat >>confdefs.h <<_ACEOF
1870 @%:@define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1871 _ACEOF
1872
1873
1874 cat >>confdefs.h <<_ACEOF
1875 @%:@define PACKAGE_VERSION "$PACKAGE_VERSION"
1876 _ACEOF
1877
1878
1879 cat >>confdefs.h <<_ACEOF
1880 @%:@define PACKAGE_STRING "$PACKAGE_STRING"
1881 _ACEOF
1882
1883
1884 cat >>confdefs.h <<_ACEOF
1885 @%:@define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1886 _ACEOF
1887
1888
1889 # Let the site file select an alternate cache file if it wants to.
1890 # Prefer explicitly selected file to automatically selected ones.
1891 if test -n "$CONFIG_SITE"; then
1892   set x "$CONFIG_SITE"
1893 elif test "x$prefix" != xNONE; then
1894   set x "$prefix/share/config.site" "$prefix/etc/config.site"
1895 else
1896   set x "$ac_default_prefix/share/config.site" \
1897         "$ac_default_prefix/etc/config.site"
1898 fi
1899 shift
1900 for ac_site_file
1901 do
1902   if test -r "$ac_site_file"; then
1903     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1904 echo "$as_me: loading site script $ac_site_file" >&6;}
1905     sed 's/^/| /' "$ac_site_file" >&5
1906     . "$ac_site_file"
1907   fi
1908 done
1909
1910 if test -r "$cache_file"; then
1911   # Some versions of bash will fail to source /dev/null (special
1912   # files actually), so we avoid doing that.
1913   if test -f "$cache_file"; then
1914     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1915 echo "$as_me: loading cache $cache_file" >&6;}
1916     case $cache_file in
1917       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1918       *)                      . "./$cache_file";;
1919     esac
1920   fi
1921 else
1922   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1923 echo "$as_me: creating cache $cache_file" >&6;}
1924   >$cache_file
1925 fi
1926
1927 # Check that the precious variables saved in the cache have kept the same
1928 # value.
1929 ac_cache_corrupted=false
1930 for ac_var in $ac_precious_vars; do
1931   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1932   eval ac_new_set=\$ac_env_${ac_var}_set
1933   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1934   eval ac_new_val=\$ac_env_${ac_var}_value
1935   case $ac_old_set,$ac_new_set in
1936     set,)
1937       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1938 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1939       ac_cache_corrupted=: ;;
1940     ,set)
1941       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1942 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1943       ac_cache_corrupted=: ;;
1944     ,);;
1945     *)
1946       if test "x$ac_old_val" != "x$ac_new_val"; then
1947         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1948 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1949         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1950 echo "$as_me:   former value:  $ac_old_val" >&2;}
1951         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1952 echo "$as_me:   current value: $ac_new_val" >&2;}
1953         ac_cache_corrupted=:
1954       fi;;
1955   esac
1956   # Pass precious variables to config.status.
1957   if test "$ac_new_set" = set; then
1958     case $ac_new_val in
1959     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1960     *) ac_arg=$ac_var=$ac_new_val ;;
1961     esac
1962     case " $ac_configure_args " in
1963       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1964       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1965     esac
1966   fi
1967 done
1968 if $ac_cache_corrupted; then
1969   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1970 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1971   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1972 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1973    { (exit 1); exit 1; }; }
1974 fi
1975
1976
1977
1978
1979
1980
1981
1982
1983
1984
1985
1986
1987
1988
1989
1990
1991
1992
1993
1994
1995
1996
1997
1998
1999
2000 ac_ext=c
2001 ac_cpp='$CPP $CPPFLAGS'
2002 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2003 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2004 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2005
2006
2007 ac_aux_dir=
2008 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2009   if test -f "$ac_dir/install-sh"; then
2010     ac_aux_dir=$ac_dir
2011     ac_install_sh="$ac_aux_dir/install-sh -c"
2012     break
2013   elif test -f "$ac_dir/install.sh"; then
2014     ac_aux_dir=$ac_dir
2015     ac_install_sh="$ac_aux_dir/install.sh -c"
2016     break
2017   elif test -f "$ac_dir/shtool"; then
2018     ac_aux_dir=$ac_dir
2019     ac_install_sh="$ac_aux_dir/shtool install -c"
2020     break
2021   fi
2022 done
2023 if test -z "$ac_aux_dir"; then
2024   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2025 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2026    { (exit 1); exit 1; }; }
2027 fi
2028
2029 # These three variables are undocumented and unsupported,
2030 # and are intended to be withdrawn in a future Autoconf release.
2031 # They can cause serious problems if a builder's source tree is in a directory
2032 # whose full name contains unusual characters.
2033 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2034 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2035 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2036
2037
2038 # Make sure we can run config.sub.
2039 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2040   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2041 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2042    { (exit 1); exit 1; }; }
2043
2044 { echo "$as_me:$LINENO: checking build system type" >&5
2045 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2046 if test "${ac_cv_build+set}" = set; then
2047   echo $ECHO_N "(cached) $ECHO_C" >&6
2048 else
2049   ac_build_alias=$build_alias
2050 test "x$ac_build_alias" = x &&
2051   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2052 test "x$ac_build_alias" = x &&
2053   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2054 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2055    { (exit 1); exit 1; }; }
2056 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2057   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2058 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2059    { (exit 1); exit 1; }; }
2060
2061 fi
2062 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2063 echo "${ECHO_T}$ac_cv_build" >&6; }
2064 case $ac_cv_build in
2065 *-*-*) ;;
2066 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2067 echo "$as_me: error: invalid value of canonical build" >&2;}
2068    { (exit 1); exit 1; }; };;
2069 esac
2070 build=$ac_cv_build
2071 ac_save_IFS=$IFS; IFS='-'
2072 set x $ac_cv_build
2073 shift
2074 build_cpu=$1
2075 build_vendor=$2
2076 shift; shift
2077 # Remember, the first character of IFS is used to create $*,
2078 # except with old shells:
2079 build_os=$*
2080 IFS=$ac_save_IFS
2081 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2082
2083
2084 { echo "$as_me:$LINENO: checking host system type" >&5
2085 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2086 if test "${ac_cv_host+set}" = set; then
2087   echo $ECHO_N "(cached) $ECHO_C" >&6
2088 else
2089   if test "x$host_alias" = x; then
2090   ac_cv_host=$ac_cv_build
2091 else
2092   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2093     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2094 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2095    { (exit 1); exit 1; }; }
2096 fi
2097
2098 fi
2099 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2100 echo "${ECHO_T}$ac_cv_host" >&6; }
2101 case $ac_cv_host in
2102 *-*-*) ;;
2103 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2104 echo "$as_me: error: invalid value of canonical host" >&2;}
2105    { (exit 1); exit 1; }; };;
2106 esac
2107 host=$ac_cv_host
2108 ac_save_IFS=$IFS; IFS='-'
2109 set x $ac_cv_host
2110 shift
2111 host_cpu=$1
2112 host_vendor=$2
2113 shift; shift
2114 # Remember, the first character of IFS is used to create $*,
2115 # except with old shells:
2116 host_os=$*
2117 IFS=$ac_save_IFS
2118 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2119
2120
2121
2122
2123 am__api_version="1.9"
2124 # Find a good install program.  We prefer a C program (faster),
2125 # so one script is as good as another.  But avoid the broken or
2126 # incompatible versions:
2127 # SysV /etc/install, /usr/sbin/install
2128 # SunOS /usr/etc/install
2129 # IRIX /sbin/install
2130 # AIX /bin/install
2131 # AmigaOS /C/install, which installs bootblocks on floppy discs
2132 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2133 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2134 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2135 # OS/2's system install, which has a completely different semantic
2136 # ./install, which can be erroneously created by make from ./install.sh.
2137 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2138 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
2139 if test -z "$INSTALL"; then
2140 if test "${ac_cv_path_install+set}" = set; then
2141   echo $ECHO_N "(cached) $ECHO_C" >&6
2142 else
2143   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2144 for as_dir in $PATH
2145 do
2146   IFS=$as_save_IFS
2147   test -z "$as_dir" && as_dir=.
2148   # Account for people who put trailing slashes in PATH elements.
2149 case $as_dir/ in
2150   ./ | .// | /cC/* | \
2151   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2152   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2153   /usr/ucb/* ) ;;
2154   *)
2155     # OSF1 and SCO ODT 3.0 have their own names for install.
2156     # Don't use installbsd from OSF since it installs stuff as root
2157     # by default.
2158     for ac_prog in ginstall scoinst install; do
2159       for ac_exec_ext in '' $ac_executable_extensions; do
2160         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2161           if test $ac_prog = install &&
2162             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2163             # AIX install.  It has an incompatible calling convention.
2164             :
2165           elif test $ac_prog = install &&
2166             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2167             # program-specific install script used by HP pwplus--don't use.
2168             :
2169           else
2170             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2171             break 3
2172           fi
2173         fi
2174       done
2175     done
2176     ;;
2177 esac
2178 done
2179 IFS=$as_save_IFS
2180
2181
2182 fi
2183   if test "${ac_cv_path_install+set}" = set; then
2184     INSTALL=$ac_cv_path_install
2185   else
2186     # As a last resort, use the slow shell script.  Don't cache a
2187     # value for INSTALL within a source directory, because that will
2188     # break other packages using the cache if that directory is
2189     # removed, or if the value is a relative name.
2190     INSTALL=$ac_install_sh
2191   fi
2192 fi
2193 { echo "$as_me:$LINENO: result: $INSTALL" >&5
2194 echo "${ECHO_T}$INSTALL" >&6; }
2195
2196 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2197 # It thinks the first close brace ends the variable substitution.
2198 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2199
2200 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2201
2202 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2203
2204 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2205 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2206 # Just in case
2207 sleep 1
2208 echo timestamp > conftest.file
2209 # Do `set' in a subshell so we don't clobber the current shell's
2210 # arguments.  Must try -L first in case configure is actually a
2211 # symlink; some systems play weird games with the mod time of symlinks
2212 # (eg FreeBSD returns the mod time of the symlink's containing
2213 # directory).
2214 if (
2215    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2216    if test "$*" = "X"; then
2217       # -L didn't work.
2218       set X `ls -t $srcdir/configure conftest.file`
2219    fi
2220    rm -f conftest.file
2221    if test "$*" != "X $srcdir/configure conftest.file" \
2222       && test "$*" != "X conftest.file $srcdir/configure"; then
2223
2224       # If neither matched, then we have a broken ls.  This can happen
2225       # if, for instance, CONFIG_SHELL is bash and it inherits a
2226       # broken ls alias from the environment.  This has actually
2227       # happened.  Such a system could not be considered "sane".
2228       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
2229 alias in your environment" >&5
2230 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
2231 alias in your environment" >&2;}
2232    { (exit 1); exit 1; }; }
2233    fi
2234
2235    test "$2" = conftest.file
2236    )
2237 then
2238    # Ok.
2239    :
2240 else
2241    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2242 Check your system clock" >&5
2243 echo "$as_me: error: newly created file is older than distributed files!
2244 Check your system clock" >&2;}
2245    { (exit 1); exit 1; }; }
2246 fi
2247 { echo "$as_me:$LINENO: result: yes" >&5
2248 echo "${ECHO_T}yes" >&6; }
2249 test "$program_prefix" != NONE &&
2250   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2251 # Use a double $ so make ignores it.
2252 test "$program_suffix" != NONE &&
2253   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2254 # Double any \ or $.  echo might interpret backslashes.
2255 # By default was `s,x,x', remove it if useless.
2256 cat <<\_ACEOF >conftest.sed
2257 s/[\\$]/&&/g;s/;s,x,x,$//
2258 _ACEOF
2259 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2260 rm -f conftest.sed
2261
2262 # expand $ac_aux_dir to an absolute path
2263 am_aux_dir=`cd $ac_aux_dir && pwd`
2264
2265 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2266 # Use eval to expand $SHELL
2267 if eval "$MISSING --run true"; then
2268   am_missing_run="$MISSING --run "
2269 else
2270   am_missing_run=
2271   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2272 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2273 fi
2274
2275 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
2276   # We used to keeping the `.' as first argument, in order to
2277   # allow $(mkdir_p) to be used without argument.  As in
2278   #   $(mkdir_p) $(somedir)
2279   # where $(somedir) is conditionally defined.  However this is wrong
2280   # for two reasons:
2281   #  1. if the package is installed by a user who cannot write `.'
2282   #     make install will fail,
2283   #  2. the above comment should most certainly read
2284   #     $(mkdir_p) $(DESTDIR)$(somedir)
2285   #     so it does not work when $(somedir) is undefined and
2286   #     $(DESTDIR) is not.
2287   #  To support the latter case, we have to write
2288   #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
2289   #  so the `.' trick is pointless.
2290   mkdir_p='mkdir -p --'
2291 else
2292   # On NextStep and OpenStep, the `mkdir' command does not
2293   # recognize any option.  It will interpret all options as
2294   # directories to create, and then abort because `.' already
2295   # exists.
2296   for d in ./-p ./--version;
2297   do
2298     test -d $d && rmdir $d
2299   done
2300   # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2301   if test -f "$ac_aux_dir/mkinstalldirs"; then
2302     mkdir_p='$(mkinstalldirs)'
2303   else
2304     mkdir_p='$(install_sh) -d'
2305   fi
2306 fi
2307
2308 for ac_prog in gawk mawk nawk awk
2309 do
2310   # Extract the first word of "$ac_prog", so it can be a program name with args.
2311 set dummy $ac_prog; ac_word=$2
2312 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2313 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2314 if test "${ac_cv_prog_AWK+set}" = set; then
2315   echo $ECHO_N "(cached) $ECHO_C" >&6
2316 else
2317   if test -n "$AWK"; then
2318   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2319 else
2320 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2321 for as_dir in $PATH
2322 do
2323   IFS=$as_save_IFS
2324   test -z "$as_dir" && as_dir=.
2325   for ac_exec_ext in '' $ac_executable_extensions; do
2326   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2327     ac_cv_prog_AWK="$ac_prog"
2328     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2329     break 2
2330   fi
2331 done
2332 done
2333 IFS=$as_save_IFS
2334
2335 fi
2336 fi
2337 AWK=$ac_cv_prog_AWK
2338 if test -n "$AWK"; then
2339   { echo "$as_me:$LINENO: result: $AWK" >&5
2340 echo "${ECHO_T}$AWK" >&6; }
2341 else
2342   { echo "$as_me:$LINENO: result: no" >&5
2343 echo "${ECHO_T}no" >&6; }
2344 fi
2345
2346
2347   test -n "$AWK" && break
2348 done
2349
2350 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2351 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2352 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2353 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2354   echo $ECHO_N "(cached) $ECHO_C" >&6
2355 else
2356   cat >conftest.make <<\_ACEOF
2357 SHELL = /bin/sh
2358 all:
2359         @echo '@@@%%%=$(MAKE)=@@@%%%'
2360 _ACEOF
2361 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2362 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2363   *@@@%%%=?*=@@@%%%*)
2364     eval ac_cv_prog_make_${ac_make}_set=yes;;
2365   *)
2366     eval ac_cv_prog_make_${ac_make}_set=no;;
2367 esac
2368 rm -f conftest.make
2369 fi
2370 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2371   { echo "$as_me:$LINENO: result: yes" >&5
2372 echo "${ECHO_T}yes" >&6; }
2373   SET_MAKE=
2374 else
2375   { echo "$as_me:$LINENO: result: no" >&5
2376 echo "${ECHO_T}no" >&6; }
2377   SET_MAKE="MAKE=${MAKE-make}"
2378 fi
2379
2380 rm -rf .tst 2>/dev/null
2381 mkdir .tst 2>/dev/null
2382 if test -d .tst; then
2383   am__leading_dot=.
2384 else
2385   am__leading_dot=_
2386 fi
2387 rmdir .tst 2>/dev/null
2388
2389 # test to see if srcdir already configured
2390 if test "`cd $srcdir && pwd`" != "`pwd`" &&
2391    test -f $srcdir/config.status; then
2392   { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2393 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2394    { (exit 1); exit 1; }; }
2395 fi
2396
2397 # test whether we have cygpath
2398 if test -z "$CYGPATH_W"; then
2399   if (cygpath --version) >/dev/null 2>/dev/null; then
2400     CYGPATH_W='cygpath -w'
2401   else
2402     CYGPATH_W=echo
2403   fi
2404 fi
2405
2406
2407 # Define the identity of the package.
2408  PACKAGE='nfs-utils'
2409  VERSION='1.0.10'
2410
2411
2412 cat >>confdefs.h <<_ACEOF
2413 @%:@define PACKAGE "$PACKAGE"
2414 _ACEOF
2415
2416  
2417 cat >>confdefs.h <<_ACEOF
2418 @%:@define VERSION "$VERSION"
2419 _ACEOF
2420
2421 # Some tools Automake needs.
2422
2423 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2424
2425
2426 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2427
2428
2429 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2430
2431
2432 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2433
2434
2435 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2436
2437 install_sh=${install_sh-"$am_aux_dir/install-sh"}
2438
2439 # Installed binaries are usually stripped using `strip' when the user
2440 # run `make install-strip'.  However `strip' might not be the right
2441 # tool to use in cross-compilation environments, therefore Automake
2442 # will honor the `STRIP' environment variable to overrule this program.
2443 if test "$cross_compiling" != no; then
2444   if test -n "$ac_tool_prefix"; then
2445   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2446 set dummy ${ac_tool_prefix}strip; ac_word=$2
2447 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2448 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2449 if test "${ac_cv_prog_STRIP+set}" = set; then
2450   echo $ECHO_N "(cached) $ECHO_C" >&6
2451 else
2452   if test -n "$STRIP"; then
2453   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2454 else
2455 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2456 for as_dir in $PATH
2457 do
2458   IFS=$as_save_IFS
2459   test -z "$as_dir" && as_dir=.
2460   for ac_exec_ext in '' $ac_executable_extensions; do
2461   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2462     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2463     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2464     break 2
2465   fi
2466 done
2467 done
2468 IFS=$as_save_IFS
2469
2470 fi
2471 fi
2472 STRIP=$ac_cv_prog_STRIP
2473 if test -n "$STRIP"; then
2474   { echo "$as_me:$LINENO: result: $STRIP" >&5
2475 echo "${ECHO_T}$STRIP" >&6; }
2476 else
2477   { echo "$as_me:$LINENO: result: no" >&5
2478 echo "${ECHO_T}no" >&6; }
2479 fi
2480
2481
2482 fi
2483 if test -z "$ac_cv_prog_STRIP"; then
2484   ac_ct_STRIP=$STRIP
2485   # Extract the first word of "strip", so it can be a program name with args.
2486 set dummy strip; ac_word=$2
2487 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2488 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2489 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2490   echo $ECHO_N "(cached) $ECHO_C" >&6
2491 else
2492   if test -n "$ac_ct_STRIP"; then
2493   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2494 else
2495 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2496 for as_dir in $PATH
2497 do
2498   IFS=$as_save_IFS
2499   test -z "$as_dir" && as_dir=.
2500   for ac_exec_ext in '' $ac_executable_extensions; do
2501   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2502     ac_cv_prog_ac_ct_STRIP="strip"
2503     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2504     break 2
2505   fi
2506 done
2507 done
2508 IFS=$as_save_IFS
2509
2510 fi
2511 fi
2512 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2513 if test -n "$ac_ct_STRIP"; then
2514   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2515 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2516 else
2517   { echo "$as_me:$LINENO: result: no" >&5
2518 echo "${ECHO_T}no" >&6; }
2519 fi
2520
2521   if test "x$ac_ct_STRIP" = x; then
2522     STRIP=":"
2523   else
2524     case $cross_compiling:$ac_tool_warned in
2525 yes:)
2526 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2527 whose name does not start with the host triplet.  If you think this
2528 configuration is useful to you, please write to autoconf@gnu.org." >&5
2529 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2530 whose name does not start with the host triplet.  If you think this
2531 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2532 ac_tool_warned=yes ;;
2533 esac
2534     STRIP=$ac_ct_STRIP
2535   fi
2536 else
2537   STRIP="$ac_cv_prog_STRIP"
2538 fi
2539
2540 fi
2541 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2542
2543 # We need awk for the "check" target.  The system "awk" is bad on
2544 # some platforms.
2545 # Always define AMTAR for backward compatibility.
2546
2547 AMTAR=${AMTAR-"${am_missing_run}tar"}
2548
2549 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2550
2551
2552
2553
2554
2555
2556
2557
2558
2559 # Check whether --with-release was given.
2560 if test "${with_release+set}" = set; then
2561   withval=$with_release; RELEASE=$withval
2562 else
2563   RELEASE=1
2564 fi
2565
2566         
2567
2568 # Check whether --with-statedir was given.
2569 if test "${with_statedir+set}" = set; then
2570   withval=$with_statedir; statedir=$withval
2571 else
2572   statedir=/var/lib/nfs
2573 fi
2574
2575         
2576
2577 # Check whether --with-statduser was given.
2578 if test "${with_statduser+set}" = set; then
2579   withval=$with_statduser; statduser=$withval
2580 else
2581   if test "x$cross_compiling" = "xno"; then
2582                 if grep -s '^rpcuser:' /etc/passwd > /dev/null; then
2583                         statduser=rpcuser
2584                 else
2585                         statduser=nobody
2586                 fi
2587         else
2588                 statduser=nobody
2589         fi
2590 fi
2591
2592         
2593 # Check whether --enable-nfsv3 was given.
2594 if test "${enable_nfsv3+set}" = set; then
2595   enableval=$enable_nfsv3; enable_nfsv3=$enableval
2596 else
2597   enable_nfsv3=yes
2598 fi
2599
2600         if test "$enable_nfsv3" = yes; then
2601                 
2602 cat >>confdefs.h <<\_ACEOF
2603 @%:@define NFS3_SUPPORTED 1
2604 _ACEOF
2605
2606         else
2607                 enable_nfsv3=
2608         fi
2609         
2610 # Check whether --enable-nfsv4 was given.
2611 if test "${enable_nfsv4+set}" = set; then
2612   enableval=$enable_nfsv4; enable_nfsv4=$enableval
2613 else
2614   enable_nfsv4=yes
2615 fi
2616
2617         if test "$enable_nfsv4" = yes; then
2618                 
2619 cat >>confdefs.h <<\_ACEOF
2620 @%:@define NFS4_SUPPORTED 1
2621 _ACEOF
2622
2623                 IDMAPD=idmapd
2624         else
2625                 enable_nfsv4=
2626                 IDMAPD=
2627         fi
2628         
2629         
2630          
2631
2632 if test "$enable_nfsv4" = "yes"; then
2633   CONFIG_NFSV4_TRUE=
2634   CONFIG_NFSV4_FALSE='#'
2635 else
2636   CONFIG_NFSV4_TRUE='#'
2637   CONFIG_NFSV4_FALSE=
2638 fi
2639
2640 # Check whether --enable-gss was given.
2641 if test "${enable_gss+set}" = set; then
2642   enableval=$enable_gss; enable_gss=$enableval
2643 else
2644   enable_gss=yes
2645 fi
2646
2647         if test "$enable_gss" = yes; then
2648                 
2649 cat >>confdefs.h <<\_ACEOF
2650 @%:@define GSS_SUPPORTED 1
2651 _ACEOF
2652
2653                 GSSD=gssd
2654                 SVCGSSD=svcgssd
2655         else
2656                 enable_gss=
2657                 GSSD=
2658                 SVCGSSD=
2659         fi
2660         
2661         
2662         
2663          
2664
2665 if test "$enable_gss" = "yes"; then
2666   CONFIG_GSS_TRUE=
2667   CONFIG_GSS_FALSE='#'
2668 else
2669   CONFIG_GSS_TRUE='#'
2670   CONFIG_GSS_FALSE=
2671 fi
2672
2673 # Check whether --enable-kprefix was given.
2674 if test "${enable_kprefix+set}" = set; then
2675   enableval=$enable_kprefix; test "$enableval" = "yes" && kprefix=k
2676 else
2677   kprefix=
2678 fi
2679
2680         
2681 # Check whether --enable-secure-statd was given.
2682 if test "${enable_secure_statd+set}" = set; then
2683   enableval=$enable_secure_statd; test "$enableval" = "yes" && secure_statd=yes
2684 else
2685   secure_statd=no
2686 fi
2687
2688         if test "$secure_statd" = yes; then
2689                 
2690 cat >>confdefs.h <<\_ACEOF
2691 @%:@define RESTRICTED_STATD 1
2692 _ACEOF
2693
2694         fi
2695         
2696 # Check whether --enable-rquotad was given.
2697 if test "${enable_rquotad+set}" = set; then
2698   enableval=$enable_rquotad; enable_rquotad=$enableval
2699 else
2700   enable_rquotad=yes
2701 fi
2702
2703         if test "$enable_rquotad" = yes; then
2704                 RQUOTAD=rquotad
2705         else
2706                 RQUOTAD=
2707         fi
2708          
2709
2710 if test "$enable_rquotad" = "yes"; then
2711   CONFIG_RQUOTAD_TRUE=
2712   CONFIG_RQUOTAD_FALSE='#'
2713 else
2714   CONFIG_RQUOTAD_TRUE='#'
2715   CONFIG_RQUOTAD_FALSE=
2716 fi
2717
2718
2719 # Check whether --enable-mount was given.
2720 if test "${enable_mount+set}" = set; then
2721   enableval=$enable_mount; enable_mount=$enableval
2722 else
2723   enable_mount=no
2724 fi
2725
2726          
2727
2728 if test "$enable_mount" = "yes"; then
2729   CONFIG_MOUNT_TRUE=
2730   CONFIG_MOUNT_FALSE='#'
2731 else
2732   CONFIG_MOUNT_TRUE='#'
2733   CONFIG_MOUNT_FALSE=
2734 fi
2735
2736
2737 # Check whether user wants TCP wrappers support
2738 DEPDIR="${am__leading_dot}deps"
2739
2740 ac_config_commands="$ac_config_commands depfiles"
2741
2742
2743 am_make=${MAKE-make}
2744 cat > confinc << 'END'
2745 am__doit:
2746         @echo done
2747 .PHONY: am__doit
2748 END
2749 # If we don't find an include directive, just comment out the code.
2750 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2751 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
2752 am__include="#"
2753 am__quote=
2754 _am_result=none
2755 # First try GNU make style include.
2756 echo "include confinc" > confmf
2757 # We grep out `Entering directory' and `Leaving directory'
2758 # messages which can occur if `w' ends up in MAKEFLAGS.
2759 # In particular we don't look at `^make:' because GNU make might
2760 # be invoked under some other name (usually "gmake"), in which
2761 # case it prints its new name instead of `make'.
2762 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2763    am__include=include
2764    am__quote=
2765    _am_result=GNU
2766 fi
2767 # Now try BSD make style include.
2768 if test "$am__include" = "#"; then
2769    echo '.include "confinc"' > confmf
2770    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2771       am__include=.include
2772       am__quote="\""
2773       _am_result=BSD
2774    fi
2775 fi
2776
2777
2778 { echo "$as_me:$LINENO: result: $_am_result" >&5
2779 echo "${ECHO_T}$_am_result" >&6; }
2780 rm -f confinc confmf
2781
2782 # Check whether --enable-dependency-tracking was given.
2783 if test "${enable_dependency_tracking+set}" = set; then
2784   enableval=$enable_dependency_tracking; 
2785 fi
2786
2787 if test "x$enable_dependency_tracking" != xno; then
2788   am_depcomp="$ac_aux_dir/depcomp"
2789   AMDEPBACKSLASH='\'
2790 fi
2791  
2792
2793 if test "x$enable_dependency_tracking" != xno; then
2794   AMDEP_TRUE=
2795   AMDEP_FALSE='#'
2796 else
2797   AMDEP_TRUE='#'
2798   AMDEP_FALSE=
2799 fi
2800
2801
2802
2803 ac_ext=c
2804 ac_cpp='$CPP $CPPFLAGS'
2805 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2806 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2807 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2808 if test -n "$ac_tool_prefix"; then
2809   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2810 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2811 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2812 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2813 if test "${ac_cv_prog_CC+set}" = set; then
2814   echo $ECHO_N "(cached) $ECHO_C" >&6
2815 else
2816   if test -n "$CC"; then
2817   ac_cv_prog_CC="$CC" # Let the user override the test.
2818 else
2819 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2820 for as_dir in $PATH
2821 do
2822   IFS=$as_save_IFS
2823   test -z "$as_dir" && as_dir=.
2824   for ac_exec_ext in '' $ac_executable_extensions; do
2825   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2826     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2827     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2828     break 2
2829   fi
2830 done
2831 done
2832 IFS=$as_save_IFS
2833
2834 fi
2835 fi
2836 CC=$ac_cv_prog_CC
2837 if test -n "$CC"; then
2838   { echo "$as_me:$LINENO: result: $CC" >&5
2839 echo "${ECHO_T}$CC" >&6; }
2840 else
2841   { echo "$as_me:$LINENO: result: no" >&5
2842 echo "${ECHO_T}no" >&6; }
2843 fi
2844
2845
2846 fi
2847 if test -z "$ac_cv_prog_CC"; then
2848   ac_ct_CC=$CC
2849   # Extract the first word of "gcc", so it can be a program name with args.
2850 set dummy gcc; ac_word=$2
2851 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2852 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2853 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2854   echo $ECHO_N "(cached) $ECHO_C" >&6
2855 else
2856   if test -n "$ac_ct_CC"; then
2857   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2858 else
2859 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2860 for as_dir in $PATH
2861 do
2862   IFS=$as_save_IFS
2863   test -z "$as_dir" && as_dir=.
2864   for ac_exec_ext in '' $ac_executable_extensions; do
2865   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2866     ac_cv_prog_ac_ct_CC="gcc"
2867     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2868     break 2
2869   fi
2870 done
2871 done
2872 IFS=$as_save_IFS
2873
2874 fi
2875 fi
2876 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2877 if test -n "$ac_ct_CC"; then
2878   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2879 echo "${ECHO_T}$ac_ct_CC" >&6; }
2880 else
2881   { echo "$as_me:$LINENO: result: no" >&5
2882 echo "${ECHO_T}no" >&6; }
2883 fi
2884
2885   if test "x$ac_ct_CC" = x; then
2886     CC=""
2887   else
2888     case $cross_compiling:$ac_tool_warned in
2889 yes:)
2890 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2891 whose name does not start with the host triplet.  If you think this
2892 configuration is useful to you, please write to autoconf@gnu.org." >&5
2893 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2894 whose name does not start with the host triplet.  If you think this
2895 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2896 ac_tool_warned=yes ;;
2897 esac
2898     CC=$ac_ct_CC
2899   fi
2900 else
2901   CC="$ac_cv_prog_CC"
2902 fi
2903
2904 if test -z "$CC"; then
2905           if test -n "$ac_tool_prefix"; then
2906     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2907 set dummy ${ac_tool_prefix}cc; ac_word=$2
2908 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2909 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2910 if test "${ac_cv_prog_CC+set}" = set; then
2911   echo $ECHO_N "(cached) $ECHO_C" >&6
2912 else
2913   if test -n "$CC"; then
2914   ac_cv_prog_CC="$CC" # Let the user override the test.
2915 else
2916 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2917 for as_dir in $PATH
2918 do
2919   IFS=$as_save_IFS
2920   test -z "$as_dir" && as_dir=.
2921   for ac_exec_ext in '' $ac_executable_extensions; do
2922   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2923     ac_cv_prog_CC="${ac_tool_prefix}cc"
2924     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2925     break 2
2926   fi
2927 done
2928 done
2929 IFS=$as_save_IFS
2930
2931 fi
2932 fi
2933 CC=$ac_cv_prog_CC
2934 if test -n "$CC"; then
2935   { echo "$as_me:$LINENO: result: $CC" >&5
2936 echo "${ECHO_T}$CC" >&6; }
2937 else
2938   { echo "$as_me:$LINENO: result: no" >&5
2939 echo "${ECHO_T}no" >&6; }
2940 fi
2941
2942
2943   fi
2944 fi
2945 if test -z "$CC"; then
2946   # Extract the first word of "cc", so it can be a program name with args.
2947 set dummy cc; ac_word=$2
2948 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2949 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2950 if test "${ac_cv_prog_CC+set}" = set; then
2951   echo $ECHO_N "(cached) $ECHO_C" >&6
2952 else
2953   if test -n "$CC"; then
2954   ac_cv_prog_CC="$CC" # Let the user override the test.
2955 else
2956   ac_prog_rejected=no
2957 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2958 for as_dir in $PATH
2959 do
2960   IFS=$as_save_IFS
2961   test -z "$as_dir" && as_dir=.
2962   for ac_exec_ext in '' $ac_executable_extensions; do
2963   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2964     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2965        ac_prog_rejected=yes
2966        continue
2967      fi
2968     ac_cv_prog_CC="cc"
2969     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2970     break 2
2971   fi
2972 done
2973 done
2974 IFS=$as_save_IFS
2975
2976 if test $ac_prog_rejected = yes; then
2977   # We found a bogon in the path, so make sure we never use it.
2978   set dummy $ac_cv_prog_CC
2979   shift
2980   if test $@%:@ != 0; then
2981     # We chose a different compiler from the bogus one.
2982     # However, it has the same basename, so the bogon will be chosen
2983     # first if we set CC to just the basename; use the full file name.
2984     shift
2985     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2986   fi
2987 fi
2988 fi
2989 fi
2990 CC=$ac_cv_prog_CC
2991 if test -n "$CC"; then
2992   { echo "$as_me:$LINENO: result: $CC" >&5
2993 echo "${ECHO_T}$CC" >&6; }
2994 else
2995   { echo "$as_me:$LINENO: result: no" >&5
2996 echo "${ECHO_T}no" >&6; }
2997 fi
2998
2999
3000 fi
3001 if test -z "$CC"; then
3002   if test -n "$ac_tool_prefix"; then
3003   for ac_prog in cl.exe
3004   do
3005     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3006 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3007 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3008 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3009 if test "${ac_cv_prog_CC+set}" = set; then
3010   echo $ECHO_N "(cached) $ECHO_C" >&6
3011 else
3012   if test -n "$CC"; then
3013   ac_cv_prog_CC="$CC" # Let the user override the test.
3014 else
3015 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3016 for as_dir in $PATH
3017 do
3018   IFS=$as_save_IFS
3019   test -z "$as_dir" && as_dir=.
3020   for ac_exec_ext in '' $ac_executable_extensions; do
3021   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3022     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3023     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3024     break 2
3025   fi
3026 done
3027 done
3028 IFS=$as_save_IFS
3029
3030 fi
3031 fi
3032 CC=$ac_cv_prog_CC
3033 if test -n "$CC"; then
3034   { echo "$as_me:$LINENO: result: $CC" >&5
3035 echo "${ECHO_T}$CC" >&6; }
3036 else
3037   { echo "$as_me:$LINENO: result: no" >&5
3038 echo "${ECHO_T}no" >&6; }
3039 fi
3040
3041
3042     test -n "$CC" && break
3043   done
3044 fi
3045 if test -z "$CC"; then
3046   ac_ct_CC=$CC
3047   for ac_prog in cl.exe
3048 do
3049   # Extract the first word of "$ac_prog", so it can be a program name with args.
3050 set dummy $ac_prog; ac_word=$2
3051 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3052 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3053 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3054   echo $ECHO_N "(cached) $ECHO_C" >&6
3055 else
3056   if test -n "$ac_ct_CC"; then
3057   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3058 else
3059 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3060 for as_dir in $PATH
3061 do
3062   IFS=$as_save_IFS
3063   test -z "$as_dir" && as_dir=.
3064   for ac_exec_ext in '' $ac_executable_extensions; do
3065   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3066     ac_cv_prog_ac_ct_CC="$ac_prog"
3067     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3068     break 2
3069   fi
3070 done
3071 done
3072 IFS=$as_save_IFS
3073
3074 fi
3075 fi
3076 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3077 if test -n "$ac_ct_CC"; then
3078   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3079 echo "${ECHO_T}$ac_ct_CC" >&6; }
3080 else
3081   { echo "$as_me:$LINENO: result: no" >&5
3082 echo "${ECHO_T}no" >&6; }
3083 fi
3084
3085
3086   test -n "$ac_ct_CC" && break
3087 done
3088
3089   if test "x$ac_ct_CC" = x; then
3090     CC=""
3091   else
3092     case $cross_compiling:$ac_tool_warned in
3093 yes:)
3094 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3095 whose name does not start with the host triplet.  If you think this
3096 configuration is useful to you, please write to autoconf@gnu.org." >&5
3097 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3098 whose name does not start with the host triplet.  If you think this
3099 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3100 ac_tool_warned=yes ;;
3101 esac
3102     CC=$ac_ct_CC
3103   fi
3104 fi
3105
3106 fi
3107
3108
3109 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3110 See \`config.log' for more details." >&5
3111 echo "$as_me: error: no acceptable C compiler found in \$PATH
3112 See \`config.log' for more details." >&2;}
3113    { (exit 1); exit 1; }; }
3114
3115 # Provide some information about the compiler.
3116 echo "$as_me:$LINENO: checking for C compiler version" >&5
3117 ac_compiler=`set X $ac_compile; echo $2`
3118 { (ac_try="$ac_compiler --version >&5"
3119 case "(($ac_try" in
3120   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3121   *) ac_try_echo=$ac_try;;
3122 esac
3123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3124   (eval "$ac_compiler --version >&5") 2>&5
3125   ac_status=$?
3126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3127   (exit $ac_status); }
3128 { (ac_try="$ac_compiler -v >&5"
3129 case "(($ac_try" in
3130   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3131   *) ac_try_echo=$ac_try;;
3132 esac
3133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3134   (eval "$ac_compiler -v >&5") 2>&5
3135   ac_status=$?
3136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3137   (exit $ac_status); }
3138 { (ac_try="$ac_compiler -V >&5"
3139 case "(($ac_try" in
3140   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3141   *) ac_try_echo=$ac_try;;
3142 esac
3143 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3144   (eval "$ac_compiler -V >&5") 2>&5
3145   ac_status=$?
3146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3147   (exit $ac_status); }
3148
3149 cat >conftest.$ac_ext <<_ACEOF
3150 /* confdefs.h.  */
3151 _ACEOF
3152 cat confdefs.h >>conftest.$ac_ext
3153 cat >>conftest.$ac_ext <<_ACEOF
3154 /* end confdefs.h.  */
3155
3156 int
3157 main ()
3158 {
3159
3160   ;
3161   return 0;
3162 }
3163 _ACEOF
3164 ac_clean_files_save=$ac_clean_files
3165 ac_clean_files="$ac_clean_files a.out a.exe b.out"
3166 # Try to create an executable without -o first, disregard a.out.
3167 # It will help us diagnose broken compilers, and finding out an intuition
3168 # of exeext.
3169 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3170 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
3171 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3172 #
3173 # List of possible output files, starting from the most likely.
3174 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
3175 # only as a last resort.  b.out is created by i960 compilers.
3176 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
3177 #
3178 # The IRIX 6 linker writes into existing files which may not be
3179 # executable, retaining their permissions.  Remove them first so a
3180 # subsequent execution test works.
3181 ac_rmfiles=
3182 for ac_file in $ac_files
3183 do
3184   case $ac_file in
3185     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3186     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3187   esac
3188 done
3189 rm -f $ac_rmfiles
3190
3191 if { (ac_try="$ac_link_default"
3192 case "(($ac_try" in
3193   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3194   *) ac_try_echo=$ac_try;;
3195 esac
3196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3197   (eval "$ac_link_default") 2>&5
3198   ac_status=$?
3199   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3200   (exit $ac_status); }; then
3201   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3202 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3203 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3204 # so that the user can short-circuit this test for compilers unknown to
3205 # Autoconf.
3206 for ac_file in $ac_files ''
3207 do
3208   test -f "$ac_file" || continue
3209   case $ac_file in
3210     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
3211         ;;
3212     [ab].out )
3213         # We found the default executable, but exeext='' is most
3214         # certainly right.
3215         break;;
3216     *.* )
3217         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3218         then :; else
3219            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3220         fi
3221         # We set ac_cv_exeext here because the later test for it is not
3222         # safe: cross compilers may not add the suffix if given an `-o'
3223         # argument, so we may need to know it at that point already.
3224         # Even if this section looks crufty: it has the advantage of
3225         # actually working.
3226         break;;
3227     * )
3228         break;;
3229   esac
3230 done
3231 test "$ac_cv_exeext" = no && ac_cv_exeext=
3232
3233 else
3234   ac_file=''
3235 fi
3236
3237 { echo "$as_me:$LINENO: result: $ac_file" >&5
3238 echo "${ECHO_T}$ac_file" >&6; }
3239 if test -z "$ac_file"; then
3240   echo "$as_me: failed program was:" >&5
3241 sed 's/^/| /' conftest.$ac_ext >&5
3242
3243 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3244 See \`config.log' for more details." >&5
3245 echo "$as_me: error: C compiler cannot create executables
3246 See \`config.log' for more details." >&2;}
3247    { (exit 77); exit 77; }; }
3248 fi
3249
3250 ac_exeext=$ac_cv_exeext
3251
3252 # Check that the compiler produces executables we can run.  If not, either
3253 # the compiler is broken, or we cross compile.
3254 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3255 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3256 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3257 # If not cross compiling, check that we can run a simple program.
3258 if test "$cross_compiling" != yes; then
3259   if { ac_try='./$ac_file'
3260   { (case "(($ac_try" in
3261   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3262   *) ac_try_echo=$ac_try;;
3263 esac
3264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3265   (eval "$ac_try") 2>&5
3266   ac_status=$?
3267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3268   (exit $ac_status); }; }; then
3269     cross_compiling=no
3270   else
3271     if test "$cross_compiling" = maybe; then
3272         cross_compiling=yes
3273     else
3274         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3275 If you meant to cross compile, use \`--host'.
3276 See \`config.log' for more details." >&5
3277 echo "$as_me: error: cannot run C compiled programs.
3278 If you meant to cross compile, use \`--host'.
3279 See \`config.log' for more details." >&2;}
3280    { (exit 1); exit 1; }; }
3281     fi
3282   fi
3283 fi
3284 { echo "$as_me:$LINENO: result: yes" >&5
3285 echo "${ECHO_T}yes" >&6; }
3286
3287 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3288 ac_clean_files=$ac_clean_files_save
3289 # Check that the compiler produces executables we can run.  If not, either
3290 # the compiler is broken, or we cross compile.
3291 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3292 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3293 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
3294 echo "${ECHO_T}$cross_compiling" >&6; }
3295
3296 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
3297 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3298 if { (ac_try="$ac_link"
3299 case "(($ac_try" in
3300   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3301   *) ac_try_echo=$ac_try;;
3302 esac
3303 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3304   (eval "$ac_link") 2>&5
3305   ac_status=$?
3306   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3307   (exit $ac_status); }; then
3308   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3309 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3310 # work properly (i.e., refer to `conftest.exe'), while it won't with
3311 # `rm'.
3312 for ac_file in conftest.exe conftest conftest.*; do
3313   test -f "$ac_file" || continue
3314   case $ac_file in
3315     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3316     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3317           break;;
3318     * ) break;;
3319   esac
3320 done
3321 else
3322   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3323 See \`config.log' for more details." >&5
3324 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3325 See \`config.log' for more details." >&2;}
3326    { (exit 1); exit 1; }; }
3327 fi
3328
3329 rm -f conftest$ac_cv_exeext
3330 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3331 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3332
3333 rm -f conftest.$ac_ext
3334 EXEEXT=$ac_cv_exeext
3335 ac_exeext=$EXEEXT
3336 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3337 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3338 if test "${ac_cv_objext+set}" = set; then
3339   echo $ECHO_N "(cached) $ECHO_C" >&6
3340 else
3341   cat >conftest.$ac_ext <<_ACEOF
3342 /* confdefs.h.  */
3343 _ACEOF
3344 cat confdefs.h >>conftest.$ac_ext
3345 cat >>conftest.$ac_ext <<_ACEOF
3346 /* end confdefs.h.  */
3347
3348 int
3349 main ()
3350 {
3351
3352   ;
3353   return 0;
3354 }
3355 _ACEOF
3356 rm -f conftest.o conftest.obj
3357 if { (ac_try="$ac_compile"
3358 case "(($ac_try" in
3359   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3360   *) ac_try_echo=$ac_try;;
3361 esac
3362 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3363   (eval "$ac_compile") 2>&5
3364   ac_status=$?
3365   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3366   (exit $ac_status); }; then
3367   for ac_file in conftest.o conftest.obj conftest.*; do
3368   test -f "$ac_file" || continue;
3369   case $ac_file in
3370     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3371     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3372        break;;
3373   esac
3374 done
3375 else
3376   echo "$as_me: failed program was:" >&5
3377 sed 's/^/| /' conftest.$ac_ext >&5
3378
3379 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3380 See \`config.log' for more details." >&5
3381 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3382 See \`config.log' for more details." >&2;}
3383    { (exit 1); exit 1; }; }
3384 fi
3385
3386 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3387 fi
3388 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3389 echo "${ECHO_T}$ac_cv_objext" >&6; }
3390 OBJEXT=$ac_cv_objext
3391 ac_objext=$OBJEXT
3392 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3393 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3394 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3395   echo $ECHO_N "(cached) $ECHO_C" >&6
3396 else
3397   cat >conftest.$ac_ext <<_ACEOF
3398 /* confdefs.h.  */
3399 _ACEOF
3400 cat confdefs.h >>conftest.$ac_ext
3401 cat >>conftest.$ac_ext <<_ACEOF
3402 /* end confdefs.h.  */
3403
3404 int
3405 main ()
3406 {
3407 #ifndef __GNUC__
3408        choke me
3409 #endif
3410
3411   ;
3412   return 0;
3413 }
3414 _ACEOF
3415 rm -f conftest.$ac_objext
3416 if { (ac_try="$ac_compile"
3417 case "(($ac_try" in
3418   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3419   *) ac_try_echo=$ac_try;;
3420 esac
3421 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3422   (eval "$ac_compile") 2>conftest.er1
3423   ac_status=$?
3424   grep -v '^ *+' conftest.er1 >conftest.err
3425   rm -f conftest.er1
3426   cat conftest.err >&5
3427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3428   (exit $ac_status); } && {
3429          test -z "$ac_c_werror_flag" ||
3430          test ! -s conftest.err
3431        } && test -s conftest.$ac_objext; then
3432   ac_compiler_gnu=yes
3433 else
3434   echo "$as_me: failed program was:" >&5
3435 sed 's/^/| /' conftest.$ac_ext >&5
3436
3437         ac_compiler_gnu=no
3438 fi
3439
3440 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3441 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3442
3443 fi
3444 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3445 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3446 GCC=`test $ac_compiler_gnu = yes && echo yes`
3447 ac_test_CFLAGS=${CFLAGS+set}
3448 ac_save_CFLAGS=$CFLAGS
3449 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3450 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3451 if test "${ac_cv_prog_cc_g+set}" = set; then
3452   echo $ECHO_N "(cached) $ECHO_C" >&6
3453 else
3454   ac_save_c_werror_flag=$ac_c_werror_flag
3455    ac_c_werror_flag=yes
3456    ac_cv_prog_cc_g=no
3457    CFLAGS="-g"
3458    cat >conftest.$ac_ext <<_ACEOF
3459 /* confdefs.h.  */
3460 _ACEOF
3461 cat confdefs.h >>conftest.$ac_ext
3462 cat >>conftest.$ac_ext <<_ACEOF
3463 /* end confdefs.h.  */
3464
3465 int
3466 main ()
3467 {
3468
3469   ;
3470   return 0;
3471 }
3472 _ACEOF
3473 rm -f conftest.$ac_objext
3474 if { (ac_try="$ac_compile"
3475 case "(($ac_try" in
3476   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3477   *) ac_try_echo=$ac_try;;
3478 esac
3479 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3480   (eval "$ac_compile") 2>conftest.er1
3481   ac_status=$?
3482   grep -v '^ *+' conftest.er1 >conftest.err
3483   rm -f conftest.er1
3484   cat conftest.err >&5
3485   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3486   (exit $ac_status); } && {
3487          test -z "$ac_c_werror_flag" ||
3488          test ! -s conftest.err
3489        } && test -s conftest.$ac_objext; then
3490   ac_cv_prog_cc_g=yes
3491 else
3492   echo "$as_me: failed program was:" >&5
3493 sed 's/^/| /' conftest.$ac_ext >&5
3494
3495         CFLAGS=""
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   :
3529 else
3530   echo "$as_me: failed program was:" >&5
3531 sed 's/^/| /' conftest.$ac_ext >&5
3532
3533         ac_c_werror_flag=$ac_save_c_werror_flag
3534          CFLAGS="-g"
3535          cat >conftest.$ac_ext <<_ACEOF
3536 /* confdefs.h.  */
3537 _ACEOF
3538 cat confdefs.h >>conftest.$ac_ext
3539 cat >>conftest.$ac_ext <<_ACEOF
3540 /* end confdefs.h.  */
3541
3542 int
3543 main ()
3544 {
3545
3546   ;
3547   return 0;
3548 }
3549 _ACEOF
3550 rm -f conftest.$ac_objext
3551 if { (ac_try="$ac_compile"
3552 case "(($ac_try" in
3553   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3554   *) ac_try_echo=$ac_try;;
3555 esac
3556 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3557   (eval "$ac_compile") 2>conftest.er1
3558   ac_status=$?
3559   grep -v '^ *+' conftest.er1 >conftest.err
3560   rm -f conftest.er1
3561   cat conftest.err >&5
3562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3563   (exit $ac_status); } && {
3564          test -z "$ac_c_werror_flag" ||
3565          test ! -s conftest.err
3566        } && test -s conftest.$ac_objext; then
3567   ac_cv_prog_cc_g=yes
3568 else
3569   echo "$as_me: failed program was:" >&5
3570 sed 's/^/| /' conftest.$ac_ext >&5
3571
3572         
3573 fi
3574
3575 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3576 fi
3577
3578 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3579 fi
3580
3581 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3582    ac_c_werror_flag=$ac_save_c_werror_flag
3583 fi
3584 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3585 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3586 if test "$ac_test_CFLAGS" = set; then
3587   CFLAGS=$ac_save_CFLAGS
3588 elif test $ac_cv_prog_cc_g = yes; then
3589   if test "$GCC" = yes; then
3590     CFLAGS="-g -O2"
3591   else
3592     CFLAGS="-g"
3593   fi
3594 else
3595   if test "$GCC" = yes; then
3596     CFLAGS="-O2"
3597   else
3598     CFLAGS=
3599   fi
3600 fi
3601 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3602 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3603 if test "${ac_cv_prog_cc_c89+set}" = set; then
3604   echo $ECHO_N "(cached) $ECHO_C" >&6
3605 else
3606   ac_cv_prog_cc_c89=no
3607 ac_save_CC=$CC
3608 cat >conftest.$ac_ext <<_ACEOF
3609 /* confdefs.h.  */
3610 _ACEOF
3611 cat confdefs.h >>conftest.$ac_ext
3612 cat >>conftest.$ac_ext <<_ACEOF
3613 /* end confdefs.h.  */
3614 #include <stdarg.h>
3615 #include <stdio.h>
3616 #include <sys/types.h>
3617 #include <sys/stat.h>
3618 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3619 struct buf { int x; };
3620 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3621 static char *e (p, i)
3622      char **p;
3623      int i;
3624 {
3625   return p[i];
3626 }
3627 static char *f (char * (*g) (char **, int), char **p, ...)
3628 {
3629   char *s;
3630   va_list v;
3631   va_start (v,p);
3632   s = g (p, va_arg (v,int));
3633   va_end (v);
3634   return s;
3635 }
3636
3637 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3638    function prototypes and stuff, but not '\xHH' hex character constants.
3639    These don't provoke an error unfortunately, instead are silently treated
3640    as 'x'.  The following induces an error, until -std is added to get
3641    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3642    array size at least.  It's necessary to write '\x00'==0 to get something
3643    that's true only with -std.  */
3644 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3645
3646 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3647    inside strings and character constants.  */
3648 #define FOO(x) 'x'
3649 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3650
3651 int test (int i, double x);
3652 struct s1 {int (*f) (int a);};
3653 struct s2 {int (*f) (double a);};
3654 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3655 int argc;
3656 char **argv;
3657 int
3658 main ()
3659 {
3660 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3661   ;
3662   return 0;
3663 }
3664 _ACEOF
3665 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3666         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3667 do
3668   CC="$ac_save_CC $ac_arg"
3669   rm -f conftest.$ac_objext
3670 if { (ac_try="$ac_compile"
3671 case "(($ac_try" in
3672   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3673   *) ac_try_echo=$ac_try;;
3674 esac
3675 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3676   (eval "$ac_compile") 2>conftest.er1
3677   ac_status=$?
3678   grep -v '^ *+' conftest.er1 >conftest.err
3679   rm -f conftest.er1
3680   cat conftest.err >&5
3681   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3682   (exit $ac_status); } && {
3683          test -z "$ac_c_werror_flag" ||
3684          test ! -s conftest.err
3685        } && test -s conftest.$ac_objext; then
3686   ac_cv_prog_cc_c89=$ac_arg
3687 else
3688   echo "$as_me: failed program was:" >&5
3689 sed 's/^/| /' conftest.$ac_ext >&5
3690
3691         
3692 fi
3693
3694 rm -f core conftest.err conftest.$ac_objext 
3695   test "x$ac_cv_prog_cc_c89" != "xno" && break
3696 done
3697 rm -f conftest.$ac_ext
3698 CC=$ac_save_CC
3699
3700 fi
3701 # AC_CACHE_VAL
3702 case "x$ac_cv_prog_cc_c89" in
3703   x)
3704     { echo "$as_me:$LINENO: result: none needed" >&5
3705 echo "${ECHO_T}none needed" >&6; } ;;
3706   xno)
3707     { echo "$as_me:$LINENO: result: unsupported" >&5
3708 echo "${ECHO_T}unsupported" >&6; } ;;
3709   *)
3710     CC="$CC $ac_cv_prog_cc_c89"
3711     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3712 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3713 esac
3714
3715
3716 ac_ext=c
3717 ac_cpp='$CPP $CPPFLAGS'
3718 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3719 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3720 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3721
3722 depcc="$CC"   am_compiler_list=
3723
3724 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3725 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3726 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3727   echo $ECHO_N "(cached) $ECHO_C" >&6
3728 else
3729   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3730   # We make a subdir and do the tests there.  Otherwise we can end up
3731   # making bogus files that we don't know about and never remove.  For
3732   # instance it was reported that on HP-UX the gcc test will end up
3733   # making a dummy file named `D' -- because `-MD' means `put the output
3734   # in D'.
3735   mkdir conftest.dir
3736   # Copy depcomp to subdir because otherwise we won't find it if we're
3737   # using a relative directory.
3738   cp "$am_depcomp" conftest.dir
3739   cd conftest.dir
3740   # We will build objects and dependencies in a subdirectory because
3741   # it helps to detect inapplicable dependency modes.  For instance
3742   # both Tru64's cc and ICC support -MD to output dependencies as a
3743   # side effect of compilation, but ICC will put the dependencies in
3744   # the current directory while Tru64 will put them in the object
3745   # directory.
3746   mkdir sub
3747
3748   am_cv_CC_dependencies_compiler_type=none
3749   if test "$am_compiler_list" = ""; then
3750      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3751   fi
3752   for depmode in $am_compiler_list; do
3753     # Setup a source with many dependencies, because some compilers
3754     # like to wrap large dependency lists on column 80 (with \), and
3755     # we should not choose a depcomp mode which is confused by this.
3756     #
3757     # We need to recreate these files for each test, as the compiler may
3758     # overwrite some of them when testing with obscure command lines.
3759     # This happens at least with the AIX C compiler.
3760     : > sub/conftest.c
3761     for i in 1 2 3 4 5 6; do
3762       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3763       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3764       # Solaris 8's {/usr,}/bin/sh.
3765       touch sub/conftst$i.h
3766     done
3767     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3768
3769     case $depmode in
3770     nosideeffect)
3771       # after this tag, mechanisms are not by side-effect, so they'll
3772       # only be used when explicitly requested
3773       if test "x$enable_dependency_tracking" = xyes; then
3774         continue
3775       else
3776         break
3777       fi
3778       ;;
3779     none) break ;;
3780     esac
3781     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3782     # mode.  It turns out that the SunPro C++ compiler does not properly
3783     # handle `-M -o', and we need to detect this.
3784     if depmode=$depmode \
3785        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3786        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3787        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3788          >/dev/null 2>conftest.err &&
3789        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3790        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3791        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3792       # icc doesn't choke on unknown options, it will just issue warnings
3793       # or remarks (even with -Werror).  So we grep stderr for any message
3794       # that says an option was ignored or not supported.
3795       # When given -MP, icc 7.0 and 7.1 complain thusly:
3796       #   icc: Command line warning: ignoring option '-M'; no argument required
3797       # The diagnosis changed in icc 8.0:
3798       #   icc: Command line remark: option '-MP' not supported
3799       if (grep 'ignoring option' conftest.err ||
3800           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3801         am_cv_CC_dependencies_compiler_type=$depmode
3802         break
3803       fi
3804     fi
3805   done
3806
3807   cd ..
3808   rm -rf conftest.dir
3809 else
3810   am_cv_CC_dependencies_compiler_type=none
3811 fi
3812
3813 fi
3814 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3815 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3816 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3817
3818  
3819
3820 if 
3821   test "x$enable_dependency_tracking" != xno \
3822   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3823   am__fastdepCC_TRUE=
3824   am__fastdepCC_FALSE='#'
3825 else
3826   am__fastdepCC_TRUE='#'
3827   am__fastdepCC_FALSE=
3828 fi
3829
3830
3831
3832
3833   TCPW_MSG="no"
3834   
3835 # Check whether --with-tcp-wrappers was given.
3836 if test "${with_tcp_wrappers+set}" = set; then
3837   withval=$with_tcp_wrappers; 
3838         if test "x$withval" != "xno" ; then
3839             saved_LIBS="$LIBS"
3840             saved_LDFLAGS="$LDFLAGS"
3841             saved_CPPFLAGS="$CPPFLAGS"
3842             if test -n "${withval}" -a "${withval}" != "yes"; then
3843                 if test -d "${withval}/lib"; then
3844                     if test -n "${need_dash_r}"; then
3845                         LDFLAGS="-L${withval}/lib -R${withval}/lib ${LDFLAGS}"
3846                     else
3847                         LDFLAGS="-L${withval}/lib ${LDFLAGS}"
3848                     fi
3849                 else
3850                     if test -n "${need_dash_r}"; then
3851                         LDFLAGS="-L${withval} -R${withval} ${LDFLAGS}"
3852                     else
3853                         LDFLAGS="-L${withval} ${LDFLAGS}"
3854                     fi
3855                 fi
3856                 if test -d "${withval}/include"; then
3857                     CPPFLAGS="-I${withval}/include ${CPPFLAGS}"
3858                 else
3859                     CPPFLAGS="-I${withval} ${CPPFLAGS}"
3860                 fi
3861             fi
3862             LIBWRAP="-lwrap"
3863             LIBS="$LIBWRAP $LIBS"
3864             { echo "$as_me:$LINENO: checking for libwrap" >&5
3865 echo $ECHO_N "checking for libwrap... $ECHO_C" >&6; }
3866             cat >conftest.$ac_ext <<_ACEOF
3867 /* confdefs.h.  */
3868 _ACEOF
3869 cat confdefs.h >>conftest.$ac_ext
3870 cat >>conftest.$ac_ext <<_ACEOF
3871 /* end confdefs.h.  */
3872
3873                 #include <tcpd.h>
3874                 int deny_severity = 0, allow_severity = 0;
3875                 
3876 int
3877 main ()
3878 {
3879 hosts_access(0);
3880   ;
3881   return 0;
3882 }
3883 _ACEOF
3884 rm -f conftest.$ac_objext conftest$ac_exeext
3885 if { (ac_try="$ac_link"
3886 case "(($ac_try" in
3887   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3888   *) ac_try_echo=$ac_try;;
3889 esac
3890 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3891   (eval "$ac_link") 2>conftest.er1
3892   ac_status=$?
3893   grep -v '^ *+' conftest.er1 >conftest.err
3894   rm -f conftest.er1
3895   cat conftest.err >&5
3896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3897   (exit $ac_status); } && {
3898          test -z "$ac_c_werror_flag" ||
3899          test ! -s conftest.err
3900        } && test -s conftest$ac_exeext &&
3901        $as_test_x conftest$ac_exeext; then
3902   
3903                 { echo "$as_me:$LINENO: result: yes" >&5
3904 echo "${ECHO_T}yes" >&6; }
3905                 
3906                 
3907 cat >>confdefs.h <<\_ACEOF
3908 @%:@define LIBWRAP 1
3909 _ACEOF
3910
3911                 
3912 cat >>confdefs.h <<\_ACEOF
3913 @%:@define HAVE_LIBWRAP 1
3914 _ACEOF
3915
3916                 
3917 cat >>confdefs.h <<\_ACEOF
3918 @%:@define HAVE_TCP_WRAPPER 1
3919 _ACEOF
3920
3921                 TCPW_MSG="yes"
3922                 
3923 else
3924   echo "$as_me: failed program was:" >&5
3925 sed 's/^/| /' conftest.$ac_ext >&5
3926
3927         
3928                 { { echo "$as_me:$LINENO: error: *** libwrap missing" >&5
3929 echo "$as_me: error: *** libwrap missing" >&2;}
3930    { (exit 1); exit 1; }; }
3931                 
3932             
3933 fi
3934
3935 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3936       conftest$ac_exeext conftest.$ac_ext
3937             LIBS="$saved_LIBS"
3938         fi
3939     
3940   
3941 fi
3942
3943   
3944   
3945   
3946
3947
3948
3949 ac_config_headers="$ac_config_headers support/include/config.h"
3950
3951
3952 # Checks for programs.
3953 ac_ext=cpp
3954 ac_cpp='$CXXCPP $CPPFLAGS'
3955 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3956 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3957 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3958 if test -z "$CXX"; then
3959   if test -n "$CCC"; then
3960     CXX=$CCC
3961   else
3962     if test -n "$ac_tool_prefix"; then
3963   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3964   do
3965     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3966 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3967 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3968 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3969 if test "${ac_cv_prog_CXX+set}" = set; then
3970   echo $ECHO_N "(cached) $ECHO_C" >&6
3971 else
3972   if test -n "$CXX"; then
3973   ac_cv_prog_CXX="$CXX" # Let the user override the test.
3974 else
3975 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3976 for as_dir in $PATH
3977 do
3978   IFS=$as_save_IFS
3979   test -z "$as_dir" && as_dir=.
3980   for ac_exec_ext in '' $ac_executable_extensions; do
3981   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3982     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3983     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3984     break 2
3985   fi
3986 done
3987 done
3988 IFS=$as_save_IFS
3989
3990 fi
3991 fi
3992 CXX=$ac_cv_prog_CXX
3993 if test -n "$CXX"; then
3994   { echo "$as_me:$LINENO: result: $CXX" >&5
3995 echo "${ECHO_T}$CXX" >&6; }
3996 else
3997   { echo "$as_me:$LINENO: result: no" >&5
3998 echo "${ECHO_T}no" >&6; }
3999 fi
4000
4001
4002     test -n "$CXX" && break
4003   done
4004 fi
4005 if test -z "$CXX"; then
4006   ac_ct_CXX=$CXX
4007   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4008 do
4009   # Extract the first word of "$ac_prog", so it can be a program name with args.
4010 set dummy $ac_prog; ac_word=$2
4011 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4012 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4013 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
4014   echo $ECHO_N "(cached) $ECHO_C" >&6
4015 else
4016   if test -n "$ac_ct_CXX"; then
4017   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4018 else
4019 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4020 for as_dir in $PATH
4021 do
4022   IFS=$as_save_IFS
4023   test -z "$as_dir" && as_dir=.
4024   for ac_exec_ext in '' $ac_executable_extensions; do
4025   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4026     ac_cv_prog_ac_ct_CXX="$ac_prog"
4027     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4028     break 2
4029   fi
4030 done
4031 done
4032 IFS=$as_save_IFS
4033
4034 fi
4035 fi
4036 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4037 if test -n "$ac_ct_CXX"; then
4038   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
4039 echo "${ECHO_T}$ac_ct_CXX" >&6; }
4040 else
4041   { echo "$as_me:$LINENO: result: no" >&5
4042 echo "${ECHO_T}no" >&6; }
4043 fi
4044
4045
4046   test -n "$ac_ct_CXX" && break
4047 done
4048
4049   if test "x$ac_ct_CXX" = x; then
4050     CXX="g++"
4051   else
4052     case $cross_compiling:$ac_tool_warned in
4053 yes:)
4054 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4055 whose name does not start with the host triplet.  If you think this
4056 configuration is useful to you, please write to autoconf@gnu.org." >&5
4057 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4058 whose name does not start with the host triplet.  If you think this
4059 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4060 ac_tool_warned=yes ;;
4061 esac
4062     CXX=$ac_ct_CXX
4063   fi
4064 fi
4065
4066   fi
4067 fi
4068 # Provide some information about the compiler.
4069 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
4070 ac_compiler=`set X $ac_compile; echo $2`
4071 { (ac_try="$ac_compiler --version >&5"
4072 case "(($ac_try" in
4073   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4074   *) ac_try_echo=$ac_try;;
4075 esac
4076 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4077   (eval "$ac_compiler --version >&5") 2>&5
4078   ac_status=$?
4079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4080   (exit $ac_status); }
4081 { (ac_try="$ac_compiler -v >&5"
4082 case "(($ac_try" in
4083   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4084   *) ac_try_echo=$ac_try;;
4085 esac
4086 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4087   (eval "$ac_compiler -v >&5") 2>&5
4088   ac_status=$?
4089   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4090   (exit $ac_status); }
4091 { (ac_try="$ac_compiler -V >&5"
4092 case "(($ac_try" in
4093   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4094   *) ac_try_echo=$ac_try;;
4095 esac
4096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4097   (eval "$ac_compiler -V >&5") 2>&5
4098   ac_status=$?
4099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4100   (exit $ac_status); }
4101
4102 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
4103 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
4104 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
4105   echo $ECHO_N "(cached) $ECHO_C" >&6
4106 else
4107   cat >conftest.$ac_ext <<_ACEOF
4108 /* confdefs.h.  */
4109 _ACEOF
4110 cat confdefs.h >>conftest.$ac_ext
4111 cat >>conftest.$ac_ext <<_ACEOF
4112 /* end confdefs.h.  */
4113
4114 int
4115 main ()
4116 {
4117 #ifndef __GNUC__
4118        choke me
4119 #endif
4120
4121   ;
4122   return 0;
4123 }
4124 _ACEOF
4125 rm -f conftest.$ac_objext
4126 if { (ac_try="$ac_compile"
4127 case "(($ac_try" in
4128   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4129   *) ac_try_echo=$ac_try;;
4130 esac
4131 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4132   (eval "$ac_compile") 2>conftest.er1
4133   ac_status=$?
4134   grep -v '^ *+' conftest.er1 >conftest.err
4135   rm -f conftest.er1
4136   cat conftest.err >&5
4137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4138   (exit $ac_status); } && {
4139          test -z "$ac_cxx_werror_flag" ||
4140          test ! -s conftest.err
4141        } && test -s conftest.$ac_objext; then
4142   ac_compiler_gnu=yes
4143 else
4144   echo "$as_me: failed program was:" >&5
4145 sed 's/^/| /' conftest.$ac_ext >&5
4146
4147         ac_compiler_gnu=no
4148 fi
4149
4150 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4151 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4152
4153 fi
4154 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4155 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
4156 GXX=`test $ac_compiler_gnu = yes && echo yes`
4157 ac_test_CXXFLAGS=${CXXFLAGS+set}
4158 ac_save_CXXFLAGS=$CXXFLAGS
4159 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4160 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
4161 if test "${ac_cv_prog_cxx_g+set}" = set; then
4162   echo $ECHO_N "(cached) $ECHO_C" >&6
4163 else
4164   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4165    ac_cxx_werror_flag=yes
4166    ac_cv_prog_cxx_g=no
4167    CXXFLAGS="-g"
4168    cat >conftest.$ac_ext <<_ACEOF
4169 /* confdefs.h.  */
4170 _ACEOF
4171 cat confdefs.h >>conftest.$ac_ext
4172 cat >>conftest.$ac_ext <<_ACEOF
4173 /* end confdefs.h.  */
4174
4175 int
4176 main ()
4177 {
4178
4179   ;
4180   return 0;
4181 }
4182 _ACEOF
4183 rm -f conftest.$ac_objext
4184 if { (ac_try="$ac_compile"
4185 case "(($ac_try" in
4186   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4187   *) ac_try_echo=$ac_try;;
4188 esac
4189 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4190   (eval "$ac_compile") 2>conftest.er1
4191   ac_status=$?
4192   grep -v '^ *+' conftest.er1 >conftest.err
4193   rm -f conftest.er1
4194   cat conftest.err >&5
4195   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4196   (exit $ac_status); } && {
4197          test -z "$ac_cxx_werror_flag" ||
4198          test ! -s conftest.err
4199        } && test -s conftest.$ac_objext; then
4200   ac_cv_prog_cxx_g=yes
4201 else
4202   echo "$as_me: failed program was:" >&5
4203 sed 's/^/| /' conftest.$ac_ext >&5
4204
4205         CXXFLAGS=""
4206       cat >conftest.$ac_ext <<_ACEOF
4207 /* confdefs.h.  */
4208 _ACEOF
4209 cat confdefs.h >>conftest.$ac_ext
4210 cat >>conftest.$ac_ext <<_ACEOF
4211 /* end confdefs.h.  */
4212
4213 int
4214 main ()
4215 {
4216
4217   ;
4218   return 0;
4219 }
4220 _ACEOF
4221 rm -f conftest.$ac_objext
4222 if { (ac_try="$ac_compile"
4223 case "(($ac_try" in
4224   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4225   *) ac_try_echo=$ac_try;;
4226 esac
4227 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4228   (eval "$ac_compile") 2>conftest.er1
4229   ac_status=$?
4230   grep -v '^ *+' conftest.er1 >conftest.err
4231   rm -f conftest.er1
4232   cat conftest.err >&5
4233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4234   (exit $ac_status); } && {
4235          test -z "$ac_cxx_werror_flag" ||
4236          test ! -s conftest.err
4237        } && test -s conftest.$ac_objext; then
4238   :
4239 else
4240   echo "$as_me: failed program was:" >&5
4241 sed 's/^/| /' conftest.$ac_ext >&5
4242
4243         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4244          CXXFLAGS="-g"
4245          cat >conftest.$ac_ext <<_ACEOF
4246 /* confdefs.h.  */
4247 _ACEOF
4248 cat confdefs.h >>conftest.$ac_ext
4249 cat >>conftest.$ac_ext <<_ACEOF
4250 /* end confdefs.h.  */
4251
4252 int
4253 main ()
4254 {
4255
4256   ;
4257   return 0;
4258 }
4259 _ACEOF
4260 rm -f conftest.$ac_objext
4261 if { (ac_try="$ac_compile"
4262 case "(($ac_try" in
4263   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4264   *) ac_try_echo=$ac_try;;
4265 esac
4266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4267   (eval "$ac_compile") 2>conftest.er1
4268   ac_status=$?
4269   grep -v '^ *+' conftest.er1 >conftest.err
4270   rm -f conftest.er1
4271   cat conftest.err >&5
4272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4273   (exit $ac_status); } && {
4274          test -z "$ac_cxx_werror_flag" ||
4275          test ! -s conftest.err
4276        } && test -s conftest.$ac_objext; then
4277   ac_cv_prog_cxx_g=yes
4278 else
4279   echo "$as_me: failed program was:" >&5
4280 sed 's/^/| /' conftest.$ac_ext >&5
4281
4282         
4283 fi
4284
4285 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4286 fi
4287
4288 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4289 fi
4290
4291 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4292    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4293 fi
4294 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4295 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
4296 if test "$ac_test_CXXFLAGS" = set; then
4297   CXXFLAGS=$ac_save_CXXFLAGS
4298 elif test $ac_cv_prog_cxx_g = yes; then
4299   if test "$GXX" = yes; then
4300     CXXFLAGS="-g -O2"
4301   else
4302     CXXFLAGS="-g"
4303   fi
4304 else
4305   if test "$GXX" = yes; then
4306     CXXFLAGS="-O2"
4307   else
4308     CXXFLAGS=
4309   fi
4310 fi
4311 ac_ext=c
4312 ac_cpp='$CPP $CPPFLAGS'
4313 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4314 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4315 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4316
4317 depcc="$CXX"  am_compiler_list=
4318
4319 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4320 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
4321 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
4322   echo $ECHO_N "(cached) $ECHO_C" >&6
4323 else
4324   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4325   # We make a subdir and do the tests there.  Otherwise we can end up
4326   # making bogus files that we don't know about and never remove.  For
4327   # instance it was reported that on HP-UX the gcc test will end up
4328   # making a dummy file named `D' -- because `-MD' means `put the output
4329   # in D'.
4330   mkdir conftest.dir
4331   # Copy depcomp to subdir because otherwise we won't find it if we're
4332   # using a relative directory.
4333   cp "$am_depcomp" conftest.dir
4334   cd conftest.dir
4335   # We will build objects and dependencies in a subdirectory because
4336   # it helps to detect inapplicable dependency modes.  For instance
4337   # both Tru64's cc and ICC support -MD to output dependencies as a
4338   # side effect of compilation, but ICC will put the dependencies in
4339   # the current directory while Tru64 will put them in the object
4340   # directory.
4341   mkdir sub
4342
4343   am_cv_CXX_dependencies_compiler_type=none
4344   if test "$am_compiler_list" = ""; then
4345      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4346   fi
4347   for depmode in $am_compiler_list; do
4348     # Setup a source with many dependencies, because some compilers
4349     # like to wrap large dependency lists on column 80 (with \), and
4350     # we should not choose a depcomp mode which is confused by this.
4351     #
4352     # We need to recreate these files for each test, as the compiler may
4353     # overwrite some of them when testing with obscure command lines.
4354     # This happens at least with the AIX C compiler.
4355     : > sub/conftest.c
4356     for i in 1 2 3 4 5 6; do
4357       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4358       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4359       # Solaris 8's {/usr,}/bin/sh.
4360       touch sub/conftst$i.h
4361     done
4362     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4363
4364     case $depmode in
4365     nosideeffect)
4366       # after this tag, mechanisms are not by side-effect, so they'll
4367       # only be used when explicitly requested
4368       if test "x$enable_dependency_tracking" = xyes; then
4369         continue
4370       else
4371         break
4372       fi
4373       ;;
4374     none) break ;;
4375     esac
4376     # We check with `-c' and `-o' for the sake of the "dashmstdout"
4377     # mode.  It turns out that the SunPro C++ compiler does not properly
4378     # handle `-M -o', and we need to detect this.
4379     if depmode=$depmode \
4380        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4381        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4382        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4383          >/dev/null 2>conftest.err &&
4384        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4385        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4386        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4387       # icc doesn't choke on unknown options, it will just issue warnings
4388       # or remarks (even with -Werror).  So we grep stderr for any message
4389       # that says an option was ignored or not supported.
4390       # When given -MP, icc 7.0 and 7.1 complain thusly:
4391       #   icc: Command line warning: ignoring option '-M'; no argument required
4392       # The diagnosis changed in icc 8.0:
4393       #   icc: Command line remark: option '-MP' not supported
4394       if (grep 'ignoring option' conftest.err ||
4395           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4396         am_cv_CXX_dependencies_compiler_type=$depmode
4397         break
4398       fi
4399     fi
4400   done
4401
4402   cd ..
4403   rm -rf conftest.dir
4404 else
4405   am_cv_CXX_dependencies_compiler_type=none
4406 fi
4407
4408 fi
4409 { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
4410 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
4411 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4412
4413  
4414
4415 if 
4416   test "x$enable_dependency_tracking" != xno \
4417   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4418   am__fastdepCXX_TRUE=
4419   am__fastdepCXX_FALSE='#'
4420 else
4421   am__fastdepCXX_TRUE='#'
4422   am__fastdepCXX_FALSE=
4423 fi
4424
4425
4426 ac_ext=c
4427 ac_cpp='$CPP $CPPFLAGS'
4428 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4429 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4430 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4431 if test -n "$ac_tool_prefix"; then
4432   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4433 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4434 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4435 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4436 if test "${ac_cv_prog_CC+set}" = set; then
4437   echo $ECHO_N "(cached) $ECHO_C" >&6
4438 else
4439   if test -n "$CC"; then
4440   ac_cv_prog_CC="$CC" # Let the user override the test.
4441 else
4442 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4443 for as_dir in $PATH
4444 do
4445   IFS=$as_save_IFS
4446   test -z "$as_dir" && as_dir=.
4447   for ac_exec_ext in '' $ac_executable_extensions; do
4448   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4449     ac_cv_prog_CC="${ac_tool_prefix}gcc"
4450     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4451     break 2
4452   fi
4453 done
4454 done
4455 IFS=$as_save_IFS
4456
4457 fi
4458 fi
4459 CC=$ac_cv_prog_CC
4460 if test -n "$CC"; then
4461   { echo "$as_me:$LINENO: result: $CC" >&5
4462 echo "${ECHO_T}$CC" >&6; }
4463 else
4464   { echo "$as_me:$LINENO: result: no" >&5
4465 echo "${ECHO_T}no" >&6; }
4466 fi
4467
4468
4469 fi
4470 if test -z "$ac_cv_prog_CC"; then
4471   ac_ct_CC=$CC
4472   # Extract the first word of "gcc", so it can be a program name with args.
4473 set dummy gcc; ac_word=$2
4474 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4475 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4476 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4477   echo $ECHO_N "(cached) $ECHO_C" >&6
4478 else
4479   if test -n "$ac_ct_CC"; then
4480   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4481 else
4482 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4483 for as_dir in $PATH
4484 do
4485   IFS=$as_save_IFS
4486   test -z "$as_dir" && as_dir=.
4487   for ac_exec_ext in '' $ac_executable_extensions; do
4488   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4489     ac_cv_prog_ac_ct_CC="gcc"
4490     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4491     break 2
4492   fi
4493 done
4494 done
4495 IFS=$as_save_IFS
4496
4497 fi
4498 fi
4499 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4500 if test -n "$ac_ct_CC"; then
4501   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4502 echo "${ECHO_T}$ac_ct_CC" >&6; }
4503 else
4504   { echo "$as_me:$LINENO: result: no" >&5
4505 echo "${ECHO_T}no" >&6; }
4506 fi
4507
4508   if test "x$ac_ct_CC" = x; then
4509     CC=""
4510   else
4511     case $cross_compiling:$ac_tool_warned in
4512 yes:)
4513 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4514 whose name does not start with the host triplet.  If you think this
4515 configuration is useful to you, please write to autoconf@gnu.org." >&5
4516 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4517 whose name does not start with the host triplet.  If you think this
4518 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4519 ac_tool_warned=yes ;;
4520 esac
4521     CC=$ac_ct_CC
4522   fi
4523 else
4524   CC="$ac_cv_prog_CC"
4525 fi
4526
4527 if test -z "$CC"; then
4528           if test -n "$ac_tool_prefix"; then
4529     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4530 set dummy ${ac_tool_prefix}cc; ac_word=$2
4531 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4532 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4533 if test "${ac_cv_prog_CC+set}" = set; then
4534   echo $ECHO_N "(cached) $ECHO_C" >&6
4535 else
4536   if test -n "$CC"; then
4537   ac_cv_prog_CC="$CC" # Let the user override the test.
4538 else
4539 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4540 for as_dir in $PATH
4541 do
4542   IFS=$as_save_IFS
4543   test -z "$as_dir" && as_dir=.
4544   for ac_exec_ext in '' $ac_executable_extensions; do
4545   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4546     ac_cv_prog_CC="${ac_tool_prefix}cc"
4547     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4548     break 2
4549   fi
4550 done
4551 done
4552 IFS=$as_save_IFS
4553
4554 fi
4555 fi
4556 CC=$ac_cv_prog_CC
4557 if test -n "$CC"; then
4558   { echo "$as_me:$LINENO: result: $CC" >&5
4559 echo "${ECHO_T}$CC" >&6; }
4560 else
4561   { echo "$as_me:$LINENO: result: no" >&5
4562 echo "${ECHO_T}no" >&6; }
4563 fi
4564
4565
4566   fi
4567 fi
4568 if test -z "$CC"; then
4569   # Extract the first word of "cc", so it can be a program name with args.
4570 set dummy cc; ac_word=$2
4571 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4572 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4573 if test "${ac_cv_prog_CC+set}" = set; then
4574   echo $ECHO_N "(cached) $ECHO_C" >&6
4575 else
4576   if test -n "$CC"; then
4577   ac_cv_prog_CC="$CC" # Let the user override the test.
4578 else
4579   ac_prog_rejected=no
4580 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4581 for as_dir in $PATH
4582 do
4583   IFS=$as_save_IFS
4584   test -z "$as_dir" && as_dir=.
4585   for ac_exec_ext in '' $ac_executable_extensions; do
4586   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4587     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4588        ac_prog_rejected=yes
4589        continue
4590      fi
4591     ac_cv_prog_CC="cc"
4592     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4593     break 2
4594   fi
4595 done
4596 done
4597 IFS=$as_save_IFS
4598
4599 if test $ac_prog_rejected = yes; then
4600   # We found a bogon in the path, so make sure we never use it.
4601   set dummy $ac_cv_prog_CC
4602   shift
4603   if test $@%:@ != 0; then
4604     # We chose a different compiler from the bogus one.
4605     # However, it has the same basename, so the bogon will be chosen
4606     # first if we set CC to just the basename; use the full file name.
4607     shift
4608     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4609   fi
4610 fi
4611 fi
4612 fi
4613 CC=$ac_cv_prog_CC
4614 if test -n "$CC"; then
4615   { echo "$as_me:$LINENO: result: $CC" >&5
4616 echo "${ECHO_T}$CC" >&6; }
4617 else
4618   { echo "$as_me:$LINENO: result: no" >&5
4619 echo "${ECHO_T}no" >&6; }
4620 fi
4621
4622
4623 fi
4624 if test -z "$CC"; then
4625   if test -n "$ac_tool_prefix"; then
4626   for ac_prog in cl.exe
4627   do
4628     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4629 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4630 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4631 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4632 if test "${ac_cv_prog_CC+set}" = set; then
4633   echo $ECHO_N "(cached) $ECHO_C" >&6
4634 else
4635   if test -n "$CC"; then
4636   ac_cv_prog_CC="$CC" # Let the user override the test.
4637 else
4638 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4639 for as_dir in $PATH
4640 do
4641   IFS=$as_save_IFS
4642   test -z "$as_dir" && as_dir=.
4643   for ac_exec_ext in '' $ac_executable_extensions; do
4644   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4645     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4646     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4647     break 2
4648   fi
4649 done
4650 done
4651 IFS=$as_save_IFS
4652
4653 fi
4654 fi
4655 CC=$ac_cv_prog_CC
4656 if test -n "$CC"; then
4657   { echo "$as_me:$LINENO: result: $CC" >&5
4658 echo "${ECHO_T}$CC" >&6; }
4659 else
4660   { echo "$as_me:$LINENO: result: no" >&5
4661 echo "${ECHO_T}no" >&6; }
4662 fi
4663
4664
4665     test -n "$CC" && break
4666   done
4667 fi
4668 if test -z "$CC"; then
4669   ac_ct_CC=$CC
4670   for ac_prog in cl.exe
4671 do
4672   # Extract the first word of "$ac_prog", so it can be a program name with args.
4673 set dummy $ac_prog; ac_word=$2
4674 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4675 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4676 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4677   echo $ECHO_N "(cached) $ECHO_C" >&6
4678 else
4679   if test -n "$ac_ct_CC"; then
4680   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4681 else
4682 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4683 for as_dir in $PATH
4684 do
4685   IFS=$as_save_IFS
4686   test -z "$as_dir" && as_dir=.
4687   for ac_exec_ext in '' $ac_executable_extensions; do
4688   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4689     ac_cv_prog_ac_ct_CC="$ac_prog"
4690     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4691     break 2
4692   fi
4693 done
4694 done
4695 IFS=$as_save_IFS
4696
4697 fi
4698 fi
4699 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4700 if test -n "$ac_ct_CC"; then
4701   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4702 echo "${ECHO_T}$ac_ct_CC" >&6; }
4703 else
4704   { echo "$as_me:$LINENO: result: no" >&5
4705 echo "${ECHO_T}no" >&6; }
4706 fi
4707
4708
4709   test -n "$ac_ct_CC" && break
4710 done
4711
4712   if test "x$ac_ct_CC" = x; then
4713     CC=""
4714   else
4715     case $cross_compiling:$ac_tool_warned in
4716 yes:)
4717 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4718 whose name does not start with the host triplet.  If you think this
4719 configuration is useful to you, please write to autoconf@gnu.org." >&5
4720 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4721 whose name does not start with the host triplet.  If you think this
4722 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4723 ac_tool_warned=yes ;;
4724 esac
4725     CC=$ac_ct_CC
4726   fi
4727 fi
4728
4729 fi
4730
4731
4732 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
4733 See \`config.log' for more details." >&5
4734 echo "$as_me: error: no acceptable C compiler found in \$PATH
4735 See \`config.log' for more details." >&2;}
4736    { (exit 1); exit 1; }; }
4737
4738 # Provide some information about the compiler.
4739 echo "$as_me:$LINENO: checking for C compiler version" >&5
4740 ac_compiler=`set X $ac_compile; echo $2`
4741 { (ac_try="$ac_compiler --version >&5"
4742 case "(($ac_try" in
4743   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4744   *) ac_try_echo=$ac_try;;
4745 esac
4746 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4747   (eval "$ac_compiler --version >&5") 2>&5
4748   ac_status=$?
4749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4750   (exit $ac_status); }
4751 { (ac_try="$ac_compiler -v >&5"
4752 case "(($ac_try" in
4753   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4754   *) ac_try_echo=$ac_try;;
4755 esac
4756 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4757   (eval "$ac_compiler -v >&5") 2>&5
4758   ac_status=$?
4759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4760   (exit $ac_status); }
4761 { (ac_try="$ac_compiler -V >&5"
4762 case "(($ac_try" in
4763   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4764   *) ac_try_echo=$ac_try;;
4765 esac
4766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4767   (eval "$ac_compiler -V >&5") 2>&5
4768   ac_status=$?
4769   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4770   (exit $ac_status); }
4771
4772 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
4773 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
4774 if test "${ac_cv_c_compiler_gnu+set}" = set; then
4775   echo $ECHO_N "(cached) $ECHO_C" >&6
4776 else
4777   cat >conftest.$ac_ext <<_ACEOF
4778 /* confdefs.h.  */
4779 _ACEOF
4780 cat confdefs.h >>conftest.$ac_ext
4781 cat >>conftest.$ac_ext <<_ACEOF
4782 /* end confdefs.h.  */
4783
4784 int
4785 main ()
4786 {
4787 #ifndef __GNUC__
4788        choke me
4789 #endif
4790
4791   ;
4792   return 0;
4793 }
4794 _ACEOF
4795 rm -f conftest.$ac_objext
4796 if { (ac_try="$ac_compile"
4797 case "(($ac_try" in
4798   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4799   *) ac_try_echo=$ac_try;;
4800 esac
4801 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4802   (eval "$ac_compile") 2>conftest.er1
4803   ac_status=$?
4804   grep -v '^ *+' conftest.er1 >conftest.err
4805   rm -f conftest.er1
4806   cat conftest.err >&5
4807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4808   (exit $ac_status); } && {
4809          test -z "$ac_c_werror_flag" ||
4810          test ! -s conftest.err
4811        } && test -s conftest.$ac_objext; then
4812   ac_compiler_gnu=yes
4813 else
4814   echo "$as_me: failed program was:" >&5
4815 sed 's/^/| /' conftest.$ac_ext >&5
4816
4817         ac_compiler_gnu=no
4818 fi
4819
4820 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4821 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4822
4823 fi
4824 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4825 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
4826 GCC=`test $ac_compiler_gnu = yes && echo yes`
4827 ac_test_CFLAGS=${CFLAGS+set}
4828 ac_save_CFLAGS=$CFLAGS
4829 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4830 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
4831 if test "${ac_cv_prog_cc_g+set}" = set; then
4832   echo $ECHO_N "(cached) $ECHO_C" >&6
4833 else
4834   ac_save_c_werror_flag=$ac_c_werror_flag
4835    ac_c_werror_flag=yes
4836    ac_cv_prog_cc_g=no
4837    CFLAGS="-g"
4838    cat >conftest.$ac_ext <<_ACEOF
4839 /* confdefs.h.  */
4840 _ACEOF
4841 cat confdefs.h >>conftest.$ac_ext
4842 cat >>conftest.$ac_ext <<_ACEOF
4843 /* end confdefs.h.  */
4844
4845 int
4846 main ()
4847 {
4848
4849   ;
4850   return 0;
4851 }
4852 _ACEOF
4853 rm -f conftest.$ac_objext
4854 if { (ac_try="$ac_compile"
4855 case "(($ac_try" in
4856   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4857   *) ac_try_echo=$ac_try;;
4858 esac
4859 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4860   (eval "$ac_compile") 2>conftest.er1
4861   ac_status=$?
4862   grep -v '^ *+' conftest.er1 >conftest.err
4863   rm -f conftest.er1
4864   cat conftest.err >&5
4865   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4866   (exit $ac_status); } && {
4867          test -z "$ac_c_werror_flag" ||
4868          test ! -s conftest.err
4869        } && test -s conftest.$ac_objext; then
4870   ac_cv_prog_cc_g=yes
4871 else
4872   echo "$as_me: failed program was:" >&5
4873 sed 's/^/| /' conftest.$ac_ext >&5
4874
4875         CFLAGS=""
4876       cat >conftest.$ac_ext <<_ACEOF
4877 /* confdefs.h.  */
4878 _ACEOF
4879 cat confdefs.h >>conftest.$ac_ext
4880 cat >>conftest.$ac_ext <<_ACEOF
4881 /* end confdefs.h.  */
4882
4883 int
4884 main ()
4885 {
4886
4887   ;
4888   return 0;
4889 }
4890 _ACEOF
4891 rm -f conftest.$ac_objext
4892 if { (ac_try="$ac_compile"
4893 case "(($ac_try" in
4894   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4895   *) ac_try_echo=$ac_try;;
4896 esac
4897 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4898   (eval "$ac_compile") 2>conftest.er1
4899   ac_status=$?
4900   grep -v '^ *+' conftest.er1 >conftest.err
4901   rm -f conftest.er1
4902   cat conftest.err >&5
4903   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4904   (exit $ac_status); } && {
4905          test -z "$ac_c_werror_flag" ||
4906          test ! -s conftest.err
4907        } && test -s conftest.$ac_objext; then
4908   :
4909 else
4910   echo "$as_me: failed program was:" >&5
4911 sed 's/^/| /' conftest.$ac_ext >&5
4912
4913         ac_c_werror_flag=$ac_save_c_werror_flag
4914          CFLAGS="-g"
4915          cat >conftest.$ac_ext <<_ACEOF
4916 /* confdefs.h.  */
4917 _ACEOF
4918 cat confdefs.h >>conftest.$ac_ext
4919 cat >>conftest.$ac_ext <<_ACEOF
4920 /* end confdefs.h.  */
4921
4922 int
4923 main ()
4924 {
4925
4926   ;
4927   return 0;
4928 }
4929 _ACEOF
4930 rm -f conftest.$ac_objext
4931 if { (ac_try="$ac_compile"
4932 case "(($ac_try" in
4933   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4934   *) ac_try_echo=$ac_try;;
4935 esac
4936 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4937   (eval "$ac_compile") 2>conftest.er1
4938   ac_status=$?
4939   grep -v '^ *+' conftest.er1 >conftest.err
4940   rm -f conftest.er1
4941   cat conftest.err >&5
4942   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4943   (exit $ac_status); } && {
4944          test -z "$ac_c_werror_flag" ||
4945          test ! -s conftest.err
4946        } && test -s conftest.$ac_objext; then
4947   ac_cv_prog_cc_g=yes
4948 else
4949   echo "$as_me: failed program was:" >&5
4950 sed 's/^/| /' conftest.$ac_ext >&5
4951
4952         
4953 fi
4954
4955 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4956 fi
4957
4958 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4959 fi
4960
4961 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4962    ac_c_werror_flag=$ac_save_c_werror_flag
4963 fi
4964 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4965 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
4966 if test "$ac_test_CFLAGS" = set; then
4967   CFLAGS=$ac_save_CFLAGS
4968 elif test $ac_cv_prog_cc_g = yes; then
4969   if test "$GCC" = yes; then
4970     CFLAGS="-g -O2"
4971   else
4972     CFLAGS="-g"
4973   fi
4974 else
4975   if test "$GCC" = yes; then
4976     CFLAGS="-O2"
4977   else
4978     CFLAGS=
4979   fi
4980 fi
4981 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
4982 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
4983 if test "${ac_cv_prog_cc_c89+set}" = set; then
4984   echo $ECHO_N "(cached) $ECHO_C" >&6
4985 else
4986   ac_cv_prog_cc_c89=no
4987 ac_save_CC=$CC
4988 cat >conftest.$ac_ext <<_ACEOF
4989 /* confdefs.h.  */
4990 _ACEOF
4991 cat confdefs.h >>conftest.$ac_ext
4992 cat >>conftest.$ac_ext <<_ACEOF
4993 /* end confdefs.h.  */
4994 #include <stdarg.h>
4995 #include <stdio.h>
4996 #include <sys/types.h>
4997 #include <sys/stat.h>
4998 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4999 struct buf { int x; };
5000 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5001 static char *e (p, i)
5002      char **p;
5003      int i;
5004 {
5005   return p[i];
5006 }
5007 static char *f (char * (*g) (char **, int), char **p, ...)
5008 {
5009   char *s;
5010   va_list v;
5011   va_start (v,p);
5012   s = g (p, va_arg (v,int));
5013   va_end (v);
5014   return s;
5015 }
5016
5017 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
5018    function prototypes and stuff, but not '\xHH' hex character constants.
5019    These don't provoke an error unfortunately, instead are silently treated
5020    as 'x'.  The following induces an error, until -std is added to get
5021    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
5022    array size at least.  It's necessary to write '\x00'==0 to get something
5023    that's true only with -std.  */
5024 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5025
5026 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5027    inside strings and character constants.  */
5028 #define FOO(x) 'x'
5029 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5030
5031 int test (int i, double x);
5032 struct s1 {int (*f) (int a);};
5033 struct s2 {int (*f) (double a);};
5034 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5035 int argc;
5036 char **argv;
5037 int
5038 main ()
5039 {
5040 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
5041   ;
5042   return 0;
5043 }
5044 _ACEOF
5045 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5046         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5047 do
5048   CC="$ac_save_CC $ac_arg"
5049   rm -f conftest.$ac_objext
5050 if { (ac_try="$ac_compile"
5051 case "(($ac_try" in
5052   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5053   *) ac_try_echo=$ac_try;;
5054 esac
5055 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5056   (eval "$ac_compile") 2>conftest.er1
5057   ac_status=$?
5058   grep -v '^ *+' conftest.er1 >conftest.err
5059   rm -f conftest.er1
5060   cat conftest.err >&5
5061   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5062   (exit $ac_status); } && {
5063          test -z "$ac_c_werror_flag" ||
5064          test ! -s conftest.err
5065        } && test -s conftest.$ac_objext; then
5066   ac_cv_prog_cc_c89=$ac_arg
5067 else
5068   echo "$as_me: failed program was:" >&5
5069 sed 's/^/| /' conftest.$ac_ext >&5
5070
5071         
5072 fi
5073
5074 rm -f core conftest.err conftest.$ac_objext 
5075   test "x$ac_cv_prog_cc_c89" != "xno" && break
5076 done
5077 rm -f conftest.$ac_ext
5078 CC=$ac_save_CC
5079
5080 fi
5081 # AC_CACHE_VAL
5082 case "x$ac_cv_prog_cc_c89" in
5083   x)
5084     { echo "$as_me:$LINENO: result: none needed" >&5
5085 echo "${ECHO_T}none needed" >&6; } ;;
5086   xno)
5087     { echo "$as_me:$LINENO: result: unsupported" >&5
5088 echo "${ECHO_T}unsupported" >&6; } ;;
5089   *)
5090     CC="$CC $ac_cv_prog_cc_c89"
5091     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
5092 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
5093 esac
5094
5095
5096 ac_ext=c
5097 ac_cpp='$CPP $CPPFLAGS'
5098 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5099 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5100 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5101
5102 depcc="$CC"   am_compiler_list=
5103
5104 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5105 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
5106 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
5107   echo $ECHO_N "(cached) $ECHO_C" >&6
5108 else
5109   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5110   # We make a subdir and do the tests there.  Otherwise we can end up
5111   # making bogus files that we don't know about and never remove.  For
5112   # instance it was reported that on HP-UX the gcc test will end up
5113   # making a dummy file named `D' -- because `-MD' means `put the output
5114   # in D'.
5115   mkdir conftest.dir
5116   # Copy depcomp to subdir because otherwise we won't find it if we're
5117   # using a relative directory.
5118   cp "$am_depcomp" conftest.dir
5119   cd conftest.dir
5120   # We will build objects and dependencies in a subdirectory because
5121   # it helps to detect inapplicable dependency modes.  For instance
5122   # both Tru64's cc and ICC support -MD to output dependencies as a
5123   # side effect of compilation, but ICC will put the dependencies in
5124   # the current directory while Tru64 will put them in the object
5125   # directory.
5126   mkdir sub
5127
5128   am_cv_CC_dependencies_compiler_type=none
5129   if test "$am_compiler_list" = ""; then
5130      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5131   fi
5132   for depmode in $am_compiler_list; do
5133     # Setup a source with many dependencies, because some compilers
5134     # like to wrap large dependency lists on column 80 (with \), and
5135     # we should not choose a depcomp mode which is confused by this.
5136     #
5137     # We need to recreate these files for each test, as the compiler may
5138     # overwrite some of them when testing with obscure command lines.
5139     # This happens at least with the AIX C compiler.
5140     : > sub/conftest.c
5141     for i in 1 2 3 4 5 6; do
5142       echo '#include "conftst'$i'.h"' >> sub/conftest.c
5143       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5144       # Solaris 8's {/usr,}/bin/sh.
5145       touch sub/conftst$i.h
5146     done
5147     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5148
5149     case $depmode in
5150     nosideeffect)
5151       # after this tag, mechanisms are not by side-effect, so they'll
5152       # only be used when explicitly requested
5153       if test "x$enable_dependency_tracking" = xyes; then
5154         continue
5155       else
5156         break
5157       fi
5158       ;;
5159     none) break ;;
5160     esac
5161     # We check with `-c' and `-o' for the sake of the "dashmstdout"
5162     # mode.  It turns out that the SunPro C++ compiler does not properly
5163     # handle `-M -o', and we need to detect this.
5164     if depmode=$depmode \
5165        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5166        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5167        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5168          >/dev/null 2>conftest.err &&
5169        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5170        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5171        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5172       # icc doesn't choke on unknown options, it will just issue warnings
5173       # or remarks (even with -Werror).  So we grep stderr for any message
5174       # that says an option was ignored or not supported.
5175       # When given -MP, icc 7.0 and 7.1 complain thusly:
5176       #   icc: Command line warning: ignoring option '-M'; no argument required
5177       # The diagnosis changed in icc 8.0:
5178       #   icc: Command line remark: option '-MP' not supported
5179       if (grep 'ignoring option' conftest.err ||
5180           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5181         am_cv_CC_dependencies_compiler_type=$depmode
5182         break
5183       fi
5184     fi
5185   done
5186
5187   cd ..
5188   rm -rf conftest.dir
5189 else
5190   am_cv_CC_dependencies_compiler_type=none
5191 fi
5192
5193 fi
5194 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
5195 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
5196 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5197
5198  
5199
5200 if 
5201   test "x$enable_dependency_tracking" != xno \
5202   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5203   am__fastdepCC_TRUE=
5204   am__fastdepCC_FALSE='#'
5205 else
5206   am__fastdepCC_TRUE='#'
5207   am__fastdepCC_FALSE=
5208 fi
5209
5210
5211 ac_ext=c
5212 ac_cpp='$CPP $CPPFLAGS'
5213 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5214 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5215 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5216 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5217 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
5218 # On Suns, sometimes $CPP names a directory.
5219 if test -n "$CPP" && test -d "$CPP"; then
5220   CPP=
5221 fi
5222 if test -z "$CPP"; then
5223   if test "${ac_cv_prog_CPP+set}" = set; then
5224   echo $ECHO_N "(cached) $ECHO_C" >&6
5225 else
5226       # Double quotes because CPP needs to be expanded
5227     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5228     do
5229       ac_preproc_ok=false
5230 for ac_c_preproc_warn_flag in '' yes
5231 do
5232   # Use a header file that comes with gcc, so configuring glibc
5233   # with a fresh cross-compiler works.
5234   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5235   # <limits.h> exists even on freestanding compilers.
5236   # On the NeXT, cc -E runs the code through the compiler's parser,
5237   # not just through cpp. "Syntax error" is here to catch this case.
5238   cat >conftest.$ac_ext <<_ACEOF
5239 /* confdefs.h.  */
5240 _ACEOF
5241 cat confdefs.h >>conftest.$ac_ext
5242 cat >>conftest.$ac_ext <<_ACEOF
5243 /* end confdefs.h.  */
5244 @%:@ifdef __STDC__
5245 @%:@ include <limits.h>
5246 @%:@else
5247 @%:@ include <assert.h>
5248 @%:@endif
5249                      Syntax error
5250 _ACEOF
5251 if { (ac_try="$ac_cpp conftest.$ac_ext"
5252 case "(($ac_try" in
5253   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5254   *) ac_try_echo=$ac_try;;
5255 esac
5256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5257   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5258   ac_status=$?
5259   grep -v '^ *+' conftest.er1 >conftest.err
5260   rm -f conftest.er1
5261   cat conftest.err >&5
5262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5263   (exit $ac_status); } >/dev/null && {
5264          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5265          test ! -s conftest.err
5266        }; then
5267   :
5268 else
5269   echo "$as_me: failed program was:" >&5
5270 sed 's/^/| /' conftest.$ac_ext >&5
5271
5272   # Broken: fails on valid input.
5273 continue
5274 fi
5275
5276 rm -f conftest.err conftest.$ac_ext
5277
5278   # OK, works on sane cases.  Now check whether nonexistent headers
5279   # can be detected and how.
5280   cat >conftest.$ac_ext <<_ACEOF
5281 /* confdefs.h.  */
5282 _ACEOF
5283 cat confdefs.h >>conftest.$ac_ext
5284 cat >>conftest.$ac_ext <<_ACEOF
5285 /* end confdefs.h.  */
5286 @%:@include <ac_nonexistent.h>
5287 _ACEOF
5288 if { (ac_try="$ac_cpp conftest.$ac_ext"
5289 case "(($ac_try" in
5290   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5291   *) ac_try_echo=$ac_try;;
5292 esac
5293 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5294   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5295   ac_status=$?
5296   grep -v '^ *+' conftest.er1 >conftest.err
5297   rm -f conftest.er1
5298   cat conftest.err >&5
5299   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5300   (exit $ac_status); } >/dev/null && {
5301          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5302          test ! -s conftest.err
5303        }; then
5304   # Broken: success on invalid input.
5305 continue
5306 else
5307   echo "$as_me: failed program was:" >&5
5308 sed 's/^/| /' conftest.$ac_ext >&5
5309
5310   # Passes both tests.
5311 ac_preproc_ok=:
5312 break
5313 fi
5314
5315 rm -f conftest.err conftest.$ac_ext
5316
5317 done
5318 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5319 rm -f conftest.err conftest.$ac_ext
5320 if $ac_preproc_ok; then
5321   break
5322 fi
5323
5324     done
5325     ac_cv_prog_CPP=$CPP
5326   
5327 fi
5328   CPP=$ac_cv_prog_CPP
5329 else
5330   ac_cv_prog_CPP=$CPP
5331 fi
5332 { echo "$as_me:$LINENO: result: $CPP" >&5
5333 echo "${ECHO_T}$CPP" >&6; }
5334 ac_preproc_ok=false
5335 for ac_c_preproc_warn_flag in '' yes
5336 do
5337   # Use a header file that comes with gcc, so configuring glibc
5338   # with a fresh cross-compiler works.
5339   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5340   # <limits.h> exists even on freestanding compilers.
5341   # On the NeXT, cc -E runs the code through the compiler's parser,
5342   # not just through cpp. "Syntax error" is here to catch this case.
5343   cat >conftest.$ac_ext <<_ACEOF
5344 /* confdefs.h.  */
5345 _ACEOF
5346 cat confdefs.h >>conftest.$ac_ext
5347 cat >>conftest.$ac_ext <<_ACEOF
5348 /* end confdefs.h.  */
5349 @%:@ifdef __STDC__
5350 @%:@ include <limits.h>
5351 @%:@else
5352 @%:@ include <assert.h>
5353 @%:@endif
5354                      Syntax error
5355 _ACEOF
5356 if { (ac_try="$ac_cpp conftest.$ac_ext"
5357 case "(($ac_try" in
5358   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5359   *) ac_try_echo=$ac_try;;
5360 esac
5361 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5362   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5363   ac_status=$?
5364   grep -v '^ *+' conftest.er1 >conftest.err
5365   rm -f conftest.er1
5366   cat conftest.err >&5
5367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5368   (exit $ac_status); } >/dev/null && {
5369          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5370          test ! -s conftest.err
5371        }; then
5372   :
5373 else
5374   echo "$as_me: failed program was:" >&5
5375 sed 's/^/| /' conftest.$ac_ext >&5
5376
5377   # Broken: fails on valid input.
5378 continue
5379 fi
5380
5381 rm -f conftest.err conftest.$ac_ext
5382
5383   # OK, works on sane cases.  Now check whether nonexistent headers
5384   # can be detected and how.
5385   cat >conftest.$ac_ext <<_ACEOF
5386 /* confdefs.h.  */
5387 _ACEOF
5388 cat confdefs.h >>conftest.$ac_ext
5389 cat >>conftest.$ac_ext <<_ACEOF
5390 /* end confdefs.h.  */
5391 @%:@include <ac_nonexistent.h>
5392 _ACEOF
5393 if { (ac_try="$ac_cpp conftest.$ac_ext"
5394 case "(($ac_try" in
5395   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5396   *) ac_try_echo=$ac_try;;
5397 esac
5398 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5399   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5400   ac_status=$?
5401   grep -v '^ *+' conftest.er1 >conftest.err
5402   rm -f conftest.er1
5403   cat conftest.err >&5
5404   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5405   (exit $ac_status); } >/dev/null && {
5406          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5407          test ! -s conftest.err
5408        }; then
5409   # Broken: success on invalid input.
5410 continue
5411 else
5412   echo "$as_me: failed program was:" >&5
5413 sed 's/^/| /' conftest.$ac_ext >&5
5414
5415   # Passes both tests.
5416 ac_preproc_ok=:
5417 break
5418 fi
5419
5420 rm -f conftest.err conftest.$ac_ext
5421
5422 done
5423 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5424 rm -f conftest.err conftest.$ac_ext
5425 if $ac_preproc_ok; then
5426   :
5427 else
5428   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5429 See \`config.log' for more details." >&5
5430 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5431 See \`config.log' for more details." >&2;}
5432    { (exit 1); exit 1; }; }
5433 fi
5434
5435 ac_ext=c
5436 ac_cpp='$CPP $CPPFLAGS'
5437 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5438 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5439 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5440
5441 # Find a good install program.  We prefer a C program (faster),
5442 # so one script is as good as another.  But avoid the broken or
5443 # incompatible versions:
5444 # SysV /etc/install, /usr/sbin/install
5445 # SunOS /usr/etc/install
5446 # IRIX /sbin/install
5447 # AIX /bin/install
5448 # AmigaOS /C/install, which installs bootblocks on floppy discs
5449 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5450 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5451 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5452 # OS/2's system install, which has a completely different semantic
5453 # ./install, which can be erroneously created by make from ./install.sh.
5454 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
5455 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
5456 if test -z "$INSTALL"; then
5457 if test "${ac_cv_path_install+set}" = set; then
5458   echo $ECHO_N "(cached) $ECHO_C" >&6
5459 else
5460   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5461 for as_dir in $PATH
5462 do
5463   IFS=$as_save_IFS
5464   test -z "$as_dir" && as_dir=.
5465   # Account for people who put trailing slashes in PATH elements.
5466 case $as_dir/ in
5467   ./ | .// | /cC/* | \
5468   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5469   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
5470   /usr/ucb/* ) ;;
5471   *)
5472     # OSF1 and SCO ODT 3.0 have their own names for install.
5473     # Don't use installbsd from OSF since it installs stuff as root
5474     # by default.
5475     for ac_prog in ginstall scoinst install; do
5476       for ac_exec_ext in '' $ac_executable_extensions; do
5477         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
5478           if test $ac_prog = install &&
5479             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5480             # AIX install.  It has an incompatible calling convention.
5481             :
5482           elif test $ac_prog = install &&
5483             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5484             # program-specific install script used by HP pwplus--don't use.
5485             :
5486           else
5487             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5488             break 3
5489           fi
5490         fi
5491       done
5492     done
5493     ;;
5494 esac
5495 done
5496 IFS=$as_save_IFS
5497
5498
5499 fi
5500   if test "${ac_cv_path_install+set}" = set; then
5501     INSTALL=$ac_cv_path_install
5502   else
5503     # As a last resort, use the slow shell script.  Don't cache a
5504     # value for INSTALL within a source directory, because that will
5505     # break other packages using the cache if that directory is
5506     # removed, or if the value is a relative name.
5507     INSTALL=$ac_install_sh
5508   fi
5509 fi
5510 { echo "$as_me:$LINENO: result: $INSTALL" >&5
5511 echo "${ECHO_T}$INSTALL" >&6; }
5512
5513 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5514 # It thinks the first close brace ends the variable substitution.
5515 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5516
5517 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5518
5519 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5520
5521 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
5522 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
5523 LN_S=$as_ln_s
5524 if test "$LN_S" = "ln -s"; then
5525   { echo "$as_me:$LINENO: result: yes" >&5
5526 echo "${ECHO_T}yes" >&6; }
5527 else
5528   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5529 echo "${ECHO_T}no, using $LN_S" >&6; }
5530 fi
5531
5532 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5533 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
5534 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
5535 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
5536   echo $ECHO_N "(cached) $ECHO_C" >&6
5537 else
5538   cat >conftest.make <<\_ACEOF
5539 SHELL = /bin/sh
5540 all:
5541         @echo '@@@%%%=$(MAKE)=@@@%%%'
5542 _ACEOF
5543 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5544 case `${MAKE-make} -f conftest.make 2>/dev/null` in
5545   *@@@%%%=?*=@@@%%%*)
5546     eval ac_cv_prog_make_${ac_make}_set=yes;;
5547   *)
5548     eval ac_cv_prog_make_${ac_make}_set=no;;
5549 esac
5550 rm -f conftest.make
5551 fi
5552 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
5553   { echo "$as_me:$LINENO: result: yes" >&5
5554 echo "${ECHO_T}yes" >&6; }
5555   SET_MAKE=
5556 else
5557   { echo "$as_me:$LINENO: result: no" >&5
5558 echo "${ECHO_T}no" >&6; }
5559   SET_MAKE="MAKE=${MAKE-make}"
5560 fi
5561
5562 # Check whether --enable-shared was given.
5563 if test "${enable_shared+set}" = set; then
5564   enableval=$enable_shared; p=${PACKAGE-default}
5565     case $enableval in
5566     yes) enable_shared=yes ;;
5567     no) enable_shared=no ;;
5568     *)
5569       enable_shared=no
5570       # Look at the argument we got.  We use all the common list separators.
5571       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5572       for pkg in $enableval; do
5573         IFS="$lt_save_ifs"
5574         if test "X$pkg" = "X$p"; then
5575           enable_shared=yes
5576         fi
5577       done
5578       IFS="$lt_save_ifs"
5579       ;;
5580     esac
5581 else
5582   enable_shared=yes
5583 fi
5584
5585
5586 # Check whether --enable-static was given.
5587 if test "${enable_static+set}" = set; then
5588   enableval=$enable_static; p=${PACKAGE-default}
5589     case $enableval in
5590     yes) enable_static=yes ;;
5591     no) enable_static=no ;;
5592     *)
5593      enable_static=no
5594       # Look at the argument we got.  We use all the common list separators.
5595       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5596       for pkg in $enableval; do
5597         IFS="$lt_save_ifs"
5598         if test "X$pkg" = "X$p"; then
5599           enable_static=yes
5600         fi
5601       done
5602       IFS="$lt_save_ifs"
5603       ;;
5604     esac
5605 else
5606   enable_static=yes
5607 fi
5608
5609
5610 # Check whether --enable-fast-install was given.
5611 if test "${enable_fast_install+set}" = set; then
5612   enableval=$enable_fast_install; p=${PACKAGE-default}
5613     case $enableval in
5614     yes) enable_fast_install=yes ;;
5615     no) enable_fast_install=no ;;
5616     *)
5617       enable_fast_install=no
5618       # Look at the argument we got.  We use all the common list separators.
5619       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5620       for pkg in $enableval; do
5621         IFS="$lt_save_ifs"
5622         if test "X$pkg" = "X$p"; then
5623           enable_fast_install=yes
5624         fi
5625       done
5626       IFS="$lt_save_ifs"
5627       ;;
5628     esac
5629 else
5630   enable_fast_install=yes
5631 fi
5632
5633
5634 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5635 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
5636 if test "${lt_cv_path_SED+set}" = set; then
5637   echo $ECHO_N "(cached) $ECHO_C" >&6
5638 else
5639   # Loop through the user's path and test for sed and gsed.
5640 # Then use that list of sed's as ones to test for truncation.
5641 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5642 for as_dir in $PATH
5643 do
5644   IFS=$as_save_IFS
5645   test -z "$as_dir" && as_dir=.
5646   for lt_ac_prog in sed gsed; do
5647     for ac_exec_ext in '' $ac_executable_extensions; do
5648       if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
5649         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
5650       fi
5651     done
5652   done
5653 done
5654 lt_ac_max=0
5655 lt_ac_count=0
5656 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
5657 # along with /bin/sed that truncates output.
5658 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
5659   test ! -f $lt_ac_sed && continue
5660   cat /dev/null > conftest.in
5661   lt_ac_count=0
5662   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
5663   # Check for GNU sed and select it if it is found.
5664   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
5665     lt_cv_path_SED=$lt_ac_sed
5666     break
5667   fi
5668   while true; do
5669     cat conftest.in conftest.in >conftest.tmp
5670     mv conftest.tmp conftest.in
5671     cp conftest.in conftest.nl
5672     echo >>conftest.nl
5673     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
5674     cmp -s conftest.out conftest.nl || break
5675     # 10000 chars as input seems more than enough
5676     test $lt_ac_count -gt 10 && break
5677     lt_ac_count=`expr $lt_ac_count + 1`
5678     if test $lt_ac_count -gt $lt_ac_max; then
5679       lt_ac_max=$lt_ac_count
5680       lt_cv_path_SED=$lt_ac_sed
5681     fi
5682   done
5683 done
5684
5685 fi
5686
5687 SED=$lt_cv_path_SED
5688 { echo "$as_me:$LINENO: result: $SED" >&5
5689 echo "${ECHO_T}$SED" >&6; }
5690
5691 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
5692 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
5693 if test "${ac_cv_path_GREP+set}" = set; then
5694   echo $ECHO_N "(cached) $ECHO_C" >&6
5695 else
5696   # Extract the first word of "grep ggrep" to use in msg output
5697 if test -z "$GREP"; then
5698 set dummy grep ggrep; ac_prog_name=$2
5699 if test "${ac_cv_path_GREP+set}" = set; then
5700   echo $ECHO_N "(cached) $ECHO_C" >&6
5701 else
5702   ac_path_GREP_found=false
5703 # Loop through the user's path and test for each of PROGNAME-LIST
5704 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5705 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5706 do
5707   IFS=$as_save_IFS
5708   test -z "$as_dir" && as_dir=.
5709   for ac_prog in grep ggrep; do
5710   for ac_exec_ext in '' $ac_executable_extensions; do
5711     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5712     { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5713     # Check for GNU ac_path_GREP and select it if it is found.
5714   # Check for GNU $ac_path_GREP
5715 case `"$ac_path_GREP" --version 2>&1` in
5716 *GNU*)
5717   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5718 *)
5719   ac_count=0
5720   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5721   while :
5722   do
5723     cat "conftest.in" "conftest.in" >"conftest.tmp"
5724     mv "conftest.tmp" "conftest.in"
5725     cp "conftest.in" "conftest.nl"
5726     echo 'GREP' >> "conftest.nl"
5727     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5728     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5729     ac_count=`expr $ac_count + 1`
5730     if test $ac_count -gt ${ac_path_GREP_max-0}; then
5731       # Best one so far, save it but keep looking for a better one
5732       ac_cv_path_GREP="$ac_path_GREP"
5733       ac_path_GREP_max=$ac_count
5734     fi
5735     # 10*(2^10) chars as input seems more than enough
5736     test $ac_count -gt 10 && break
5737   done
5738   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5739 esac
5740
5741
5742     $ac_path_GREP_found && break 3
5743   done
5744 done
5745
5746 done
5747 IFS=$as_save_IFS
5748
5749
5750 fi
5751
5752 GREP="$ac_cv_path_GREP"
5753 if test -z "$GREP"; then
5754   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5755 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5756    { (exit 1); exit 1; }; }
5757 fi
5758
5759 else
5760   ac_cv_path_GREP=$GREP
5761 fi
5762
5763
5764 fi
5765 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
5766 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
5767  GREP="$ac_cv_path_GREP"
5768  
5769
5770 { echo "$as_me:$LINENO: checking for egrep" >&5
5771 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
5772 if test "${ac_cv_path_EGREP+set}" = set; then
5773   echo $ECHO_N "(cached) $ECHO_C" >&6
5774 else
5775   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5776    then ac_cv_path_EGREP="$GREP -E"
5777    else
5778      # Extract the first word of "egrep" to use in msg output
5779 if test -z "$EGREP"; then
5780 set dummy egrep; ac_prog_name=$2
5781 if test "${ac_cv_path_EGREP+set}" = set; then
5782   echo $ECHO_N "(cached) $ECHO_C" >&6
5783 else
5784   ac_path_EGREP_found=false
5785 # Loop through the user's path and test for each of PROGNAME-LIST
5786 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5787 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5788 do
5789   IFS=$as_save_IFS
5790   test -z "$as_dir" && as_dir=.
5791   for ac_prog in egrep; do
5792   for ac_exec_ext in '' $ac_executable_extensions; do
5793     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5794     { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5795     # Check for GNU ac_path_EGREP and select it if it is found.
5796   # Check for GNU $ac_path_EGREP
5797 case `"$ac_path_EGREP" --version 2>&1` in
5798 *GNU*)
5799   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5800 *)
5801   ac_count=0
5802   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5803   while :
5804   do
5805     cat "conftest.in" "conftest.in" >"conftest.tmp"
5806     mv "conftest.tmp" "conftest.in"
5807     cp "conftest.in" "conftest.nl"
5808     echo 'EGREP' >> "conftest.nl"
5809     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5810     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5811     ac_count=`expr $ac_count + 1`
5812     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5813       # Best one so far, save it but keep looking for a better one
5814       ac_cv_path_EGREP="$ac_path_EGREP"
5815       ac_path_EGREP_max=$ac_count
5816     fi
5817     # 10*(2^10) chars as input seems more than enough
5818     test $ac_count -gt 10 && break
5819   done
5820   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5821 esac
5822
5823
5824     $ac_path_EGREP_found && break 3
5825   done
5826 done
5827
5828 done
5829 IFS=$as_save_IFS
5830
5831
5832 fi
5833
5834 EGREP="$ac_cv_path_EGREP"
5835 if test -z "$EGREP"; then
5836   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5837 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5838    { (exit 1); exit 1; }; }
5839 fi
5840
5841 else
5842   ac_cv_path_EGREP=$EGREP
5843 fi
5844
5845
5846    fi
5847 fi
5848 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
5849 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
5850  EGREP="$ac_cv_path_EGREP"
5851  
5852
5853
5854 # Check whether --with-gnu-ld was given.
5855 if test "${with_gnu_ld+set}" = set; then
5856   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5857 else
5858   with_gnu_ld=no
5859 fi
5860
5861 ac_prog=ld
5862 if test "$GCC" = yes; then
5863   # Check if gcc -print-prog-name=ld gives a path.
5864   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5865 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
5866   case $host in
5867   *-*-mingw*)
5868     # gcc leaves a trailing carriage return which upsets mingw
5869     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5870   *)
5871     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5872   esac
5873   case $ac_prog in
5874     # Accept absolute paths.
5875     [\\/]* | ?:[\\/]*)
5876       re_direlt='/[^/][^/]*/\.\./'
5877       # Canonicalize the pathname of ld
5878       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
5879       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5880         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
5881       done
5882       test -z "$LD" && LD="$ac_prog"
5883       ;;
5884   "")
5885     # If it fails, then pretend we aren't using GCC.
5886     ac_prog=ld
5887     ;;
5888   *)
5889     # If it is relative, then search for the first ld in PATH.
5890     with_gnu_ld=unknown
5891     ;;
5892   esac
5893 elif test "$with_gnu_ld" = yes; then
5894   { echo "$as_me:$LINENO: checking for GNU ld" >&5
5895 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
5896 else
5897   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5898 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
5899 fi
5900 if test "${lt_cv_path_LD+set}" = set; then
5901   echo $ECHO_N "(cached) $ECHO_C" >&6
5902 else
5903   if test -z "$LD"; then
5904   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5905   for ac_dir in $PATH; do
5906     IFS="$lt_save_ifs"
5907     test -z "$ac_dir" && ac_dir=.
5908     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5909       lt_cv_path_LD="$ac_dir/$ac_prog"
5910       # Check to see if the program is GNU ld.  I'd rather use --version,
5911       # but apparently some variants of GNU ld only accept -v.
5912       # Break only if it was the GNU/non-GNU ld that we prefer.
5913       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5914       *GNU* | *'with BFD'*)
5915         test "$with_gnu_ld" != no && break
5916         ;;
5917       *)
5918         test "$with_gnu_ld" != yes && break
5919         ;;
5920       esac
5921     fi
5922   done
5923   IFS="$lt_save_ifs"
5924 else
5925   lt_cv_path_LD="$LD" # Let the user override the test with a path.
5926 fi
5927 fi
5928
5929 LD="$lt_cv_path_LD"
5930 if test -n "$LD"; then
5931   { echo "$as_me:$LINENO: result: $LD" >&5
5932 echo "${ECHO_T}$LD" >&6; }
5933 else
5934   { echo "$as_me:$LINENO: result: no" >&5
5935 echo "${ECHO_T}no" >&6; }
5936 fi
5937 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5938 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5939    { (exit 1); exit 1; }; }
5940 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5941 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
5942 if test "${lt_cv_prog_gnu_ld+set}" = set; then
5943   echo $ECHO_N "(cached) $ECHO_C" >&6
5944 else
5945   # I'd rather use --version here, but apparently some GNU lds only accept -v.
5946 case `$LD -v 2>&1 </dev/null` in
5947 *GNU* | *'with BFD'*)
5948   lt_cv_prog_gnu_ld=yes
5949   ;;
5950 *)
5951   lt_cv_prog_gnu_ld=no
5952   ;;
5953 esac
5954 fi
5955 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5956 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
5957 with_gnu_ld=$lt_cv_prog_gnu_ld
5958
5959
5960 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5961 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
5962 if test "${lt_cv_ld_reload_flag+set}" = set; then
5963   echo $ECHO_N "(cached) $ECHO_C" >&6
5964 else
5965   lt_cv_ld_reload_flag='-r'
5966 fi
5967 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5968 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
5969 reload_flag=$lt_cv_ld_reload_flag
5970 case $reload_flag in
5971 "" | " "*) ;;
5972 *) reload_flag=" $reload_flag" ;;
5973 esac
5974 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5975 case $host_os in
5976   darwin*)
5977     if test "$GCC" = yes; then
5978       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5979     else
5980       reload_cmds='$LD$reload_flag -o $output$reload_objs'
5981     fi
5982     ;;
5983 esac
5984
5985 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5986 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
5987 if test "${lt_cv_path_NM+set}" = set; then
5988   echo $ECHO_N "(cached) $ECHO_C" >&6
5989 else
5990   if test -n "$NM"; then
5991   # Let the user override the test.
5992   lt_cv_path_NM="$NM"
5993 else
5994   lt_nm_to_check="${ac_tool_prefix}nm"
5995   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 
5996     lt_nm_to_check="$lt_nm_to_check nm"
5997   fi
5998   for lt_tmp_nm in $lt_nm_to_check; do
5999     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6000     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6001       IFS="$lt_save_ifs"
6002       test -z "$ac_dir" && ac_dir=.
6003       tmp_nm="$ac_dir/$lt_tmp_nm"
6004       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6005         # Check to see if the nm accepts a BSD-compat flag.
6006         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6007         #   nm: unknown option "B" ignored
6008         # Tru64's nm complains that /dev/null is an invalid object file
6009         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6010         */dev/null* | *'Invalid file or object type'*)
6011           lt_cv_path_NM="$tmp_nm -B"
6012           break
6013           ;;
6014         *)
6015           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6016           */dev/null*)
6017             lt_cv_path_NM="$tmp_nm -p"
6018             break
6019             ;;
6020           *)
6021             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6022             continue # so that we can try to find one that supports BSD flags
6023             ;;
6024           esac
6025           ;;
6026         esac
6027       fi
6028     done
6029     IFS="$lt_save_ifs"
6030   done
6031   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6032 fi
6033 fi
6034 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6035 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
6036 NM="$lt_cv_path_NM"
6037
6038 { echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
6039 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
6040 if test "${lt_cv_deplibs_check_method+set}" = set; then
6041   echo $ECHO_N "(cached) $ECHO_C" >&6
6042 else
6043   lt_cv_file_magic_cmd='$MAGIC_CMD'
6044 lt_cv_file_magic_test_file=
6045 lt_cv_deplibs_check_method='unknown'
6046 # Need to set the preceding variable on all platforms that support
6047 # interlibrary dependencies.
6048 # 'none' -- dependencies not supported.
6049 # `unknown' -- same as none, but documents that we really don't know.
6050 # 'pass_all' -- all dependencies passed with no checks.
6051 # 'test_compile' -- check by making test program.
6052 # 'file_magic [[regex]]' -- check by looking for files in library path
6053 # which responds to the $file_magic_cmd with a given extended regex.
6054 # If you have `file' or equivalent on your system and you're not sure
6055 # whether `pass_all' will *always* work, you probably want this one.
6056
6057 case $host_os in
6058 aix4* | aix5*)
6059   lt_cv_deplibs_check_method=pass_all
6060   ;;
6061
6062 beos*)
6063   lt_cv_deplibs_check_method=pass_all
6064   ;;
6065
6066 bsdi[45]*)
6067   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6068   lt_cv_file_magic_cmd='/usr/bin/file -L'
6069   lt_cv_file_magic_test_file=/shlib/libc.so
6070   ;;
6071
6072 cygwin*)
6073   # func_win32_libid is a shell function defined in ltmain.sh
6074   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6075   lt_cv_file_magic_cmd='func_win32_libid'
6076   ;;
6077
6078 mingw* | pw32*)
6079   # Base MSYS/MinGW do not provide the 'file' command needed by
6080   # func_win32_libid shell function, so use a weaker test based on 'objdump'.
6081   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6082   lt_cv_file_magic_cmd='$OBJDUMP -f'
6083   ;;
6084
6085 darwin* | rhapsody*)
6086   lt_cv_deplibs_check_method=pass_all
6087   ;;
6088
6089 freebsd* | dragonfly*)
6090   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
6091     case $host_cpu in
6092     i*86 )
6093       # Not sure whether the presence of OpenBSD here was a mistake.
6094       # Let's accept both of them until this is cleared up.
6095       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6096       lt_cv_file_magic_cmd=/usr/bin/file
6097       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6098       ;;
6099     esac
6100   else
6101     lt_cv_deplibs_check_method=pass_all
6102   fi
6103   ;;
6104
6105 gnu*)
6106   lt_cv_deplibs_check_method=pass_all
6107   ;;
6108
6109 hpux10.20* | hpux11*)
6110   lt_cv_file_magic_cmd=/usr/bin/file
6111   case $host_cpu in
6112   ia64*)
6113     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6114     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6115     ;;
6116   hppa*64*)
6117     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]'
6118     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6119     ;;
6120   *)
6121     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
6122     lt_cv_file_magic_test_file=/usr/lib/libc.sl
6123     ;;
6124   esac
6125   ;;
6126
6127 interix3*)
6128   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6129   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6130   ;;
6131
6132 irix5* | irix6* | nonstopux*)
6133   case $LD in
6134   *-32|*"-32 ") libmagic=32-bit;;
6135   *-n32|*"-n32 ") libmagic=N32;;
6136   *-64|*"-64 ") libmagic=64-bit;;
6137   *) libmagic=never-match;;
6138   esac
6139   lt_cv_deplibs_check_method=pass_all
6140   ;;
6141
6142 # This must be Linux ELF.
6143 linux* | k*bsd*-gnu)
6144   lt_cv_deplibs_check_method=pass_all
6145   ;;
6146
6147 netbsd* | netbsdelf*-gnu)
6148   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
6149     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6150   else
6151     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6152   fi
6153   ;;
6154
6155 newos6*)
6156   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6157   lt_cv_file_magic_cmd=/usr/bin/file
6158   lt_cv_file_magic_test_file=/usr/lib/libnls.so
6159   ;;
6160
6161 nto-qnx*)
6162   lt_cv_deplibs_check_method=unknown
6163   ;;
6164
6165 openbsd*)
6166   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6167     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6168   else
6169     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6170   fi
6171   ;;
6172
6173 osf3* | osf4* | osf5*)
6174   lt_cv_deplibs_check_method=pass_all
6175   ;;
6176
6177 solaris*)
6178   lt_cv_deplibs_check_method=pass_all
6179   ;;
6180
6181 sysv4 | sysv4.3*)
6182   case $host_vendor in
6183   motorola)
6184     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]'
6185     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6186     ;;
6187   ncr)
6188     lt_cv_deplibs_check_method=pass_all
6189     ;;
6190   sequent)
6191     lt_cv_file_magic_cmd='/bin/file'
6192     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6193     ;;
6194   sni)
6195     lt_cv_file_magic_cmd='/bin/file'
6196     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6197     lt_cv_file_magic_test_file=/lib/libc.so
6198     ;;
6199   siemens)
6200     lt_cv_deplibs_check_method=pass_all
6201     ;;
6202   pc)
6203     lt_cv_deplibs_check_method=pass_all
6204     ;;
6205   esac
6206   ;;
6207
6208 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6209   lt_cv_deplibs_check_method=pass_all
6210   ;;
6211 esac
6212
6213 fi
6214 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
6215 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
6216 file_magic_cmd=$lt_cv_file_magic_cmd
6217 deplibs_check_method=$lt_cv_deplibs_check_method
6218 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6219
6220
6221
6222
6223 # If no C compiler was specified, use CC.
6224 LTCC=${LTCC-"$CC"}
6225
6226 # If no C compiler flags were specified, use CFLAGS.
6227 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6228
6229 # Allow CC to be a program name with arguments.
6230 compiler=$CC
6231
6232 # Check whether --enable-libtool-lock was given.
6233 if test "${enable_libtool_lock+set}" = set; then
6234   enableval=$enable_libtool_lock; 
6235 fi
6236
6237 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6238
6239 # Some flags need to be propagated to the compiler or linker for good
6240 # libtool support.
6241 case $host in
6242 ia64-*-hpux*)
6243   # Find out which ABI we are using.
6244   echo 'int i;' > conftest.$ac_ext
6245   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6246   (eval $ac_compile) 2>&5
6247   ac_status=$?
6248   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6249   (exit $ac_status); }; then
6250     case `/usr/bin/file conftest.$ac_objext` in
6251     *ELF-32*)
6252       HPUX_IA64_MODE="32"
6253       ;;
6254     *ELF-64*)
6255       HPUX_IA64_MODE="64"
6256       ;;
6257     esac
6258   fi
6259   rm -rf conftest*
6260   ;;
6261 *-*-irix6*)
6262   # Find out which ABI we are using.
6263   echo '#line __oline__ "configure"' > conftest.$ac_ext
6264   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6265   (eval $ac_compile) 2>&5
6266   ac_status=$?
6267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6268   (exit $ac_status); }; then
6269    if test "$lt_cv_prog_gnu_ld" = yes; then
6270     case `/usr/bin/file conftest.$ac_objext` in
6271     *32-bit*)
6272       LD="${LD-ld} -melf32bsmip"
6273       ;;
6274     *N32*)
6275       LD="${LD-ld} -melf32bmipn32"
6276       ;;
6277     *64-bit*)
6278       LD="${LD-ld} -melf64bmip"
6279       ;;
6280     esac
6281    else
6282     case `/usr/bin/file conftest.$ac_objext` in
6283     *32-bit*)
6284       LD="${LD-ld} -32"
6285       ;;
6286     *N32*)
6287       LD="${LD-ld} -n32"
6288       ;;
6289     *64-bit*)
6290       LD="${LD-ld} -64"
6291       ;;
6292     esac
6293    fi
6294   fi
6295   rm -rf conftest*
6296   ;;
6297
6298 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
6299   # Find out which ABI we are using.
6300   echo 'int i;' > conftest.$ac_ext
6301   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6302   (eval $ac_compile) 2>&5
6303   ac_status=$?
6304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6305   (exit $ac_status); }; then
6306     case `/usr/bin/file conftest.o` in
6307     *32-bit*)
6308       case $host in
6309         x86_64-*linux*)
6310           LD="${LD-ld} -m elf_i386"
6311           ;;
6312         ppc64-*linux*|powerpc64-*linux*)
6313           LD="${LD-ld} -m elf32ppclinux"
6314           ;;
6315         s390x-*linux*)
6316           LD="${LD-ld} -m elf_s390"
6317           ;;
6318         sparc64-*linux*)
6319           LD="${LD-ld} -m elf32_sparc"
6320           ;;
6321       esac
6322       ;;
6323     *64-bit*)
6324       case $host in
6325         x86_64-*linux*)
6326           LD="${LD-ld} -m elf_x86_64"
6327           ;;
6328         ppc*-*linux*|powerpc*-*linux*)
6329           LD="${LD-ld} -m elf64ppc"
6330           ;;
6331         s390*-*linux*)
6332           LD="${LD-ld} -m elf64_s390"
6333           ;;
6334         sparc*-*linux*)
6335           LD="${LD-ld} -m elf64_sparc"
6336           ;;
6337       esac
6338       ;;
6339     esac
6340   fi
6341   rm -rf conftest*
6342   ;;
6343
6344 *-*-sco3.2v5*)
6345   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6346   SAVE_CFLAGS="$CFLAGS"
6347   CFLAGS="$CFLAGS -belf"
6348   { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
6349 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
6350 if test "${lt_cv_cc_needs_belf+set}" = set; then
6351   echo $ECHO_N "(cached) $ECHO_C" >&6
6352 else
6353   ac_ext=c
6354 ac_cpp='$CPP $CPPFLAGS'
6355 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6356 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6357 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6358
6359      cat >conftest.$ac_ext <<_ACEOF
6360 /* confdefs.h.  */
6361 _ACEOF
6362 cat confdefs.h >>conftest.$ac_ext
6363 cat >>conftest.$ac_ext <<_ACEOF
6364 /* end confdefs.h.  */
6365
6366 int
6367 main ()
6368 {
6369
6370   ;
6371   return 0;
6372 }
6373 _ACEOF
6374 rm -f conftest.$ac_objext conftest$ac_exeext
6375 if { (ac_try="$ac_link"
6376 case "(($ac_try" in
6377   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6378   *) ac_try_echo=$ac_try;;
6379 esac
6380 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6381   (eval "$ac_link") 2>conftest.er1
6382   ac_status=$?
6383   grep -v '^ *+' conftest.er1 >conftest.err
6384   rm -f conftest.er1
6385   cat conftest.err >&5
6386   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6387   (exit $ac_status); } && {
6388          test -z "$ac_c_werror_flag" ||
6389          test ! -s conftest.err
6390        } && test -s conftest$ac_exeext &&
6391        $as_test_x conftest$ac_exeext; then
6392   lt_cv_cc_needs_belf=yes
6393 else
6394   echo "$as_me: failed program was:" >&5
6395 sed 's/^/| /' conftest.$ac_ext >&5
6396
6397         lt_cv_cc_needs_belf=no
6398 fi
6399
6400 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6401       conftest$ac_exeext conftest.$ac_ext
6402      ac_ext=c
6403 ac_cpp='$CPP $CPPFLAGS'
6404 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6405 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6406 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6407
6408 fi
6409 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
6410 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
6411   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6412     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6413     CFLAGS="$SAVE_CFLAGS"
6414   fi
6415   ;;
6416 sparc*-*solaris*)
6417   # Find out which ABI we are using.
6418   echo 'int i;' > conftest.$ac_ext
6419   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6420   (eval $ac_compile) 2>&5
6421   ac_status=$?
6422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6423   (exit $ac_status); }; then
6424     case `/usr/bin/file conftest.o` in
6425     *64-bit*)
6426       case $lt_cv_prog_gnu_ld in
6427       yes*) LD="${LD-ld} -m elf64_sparc" ;;
6428       *)    LD="${LD-ld} -64" ;;
6429       esac
6430       ;;
6431     esac
6432   fi
6433   rm -rf conftest*
6434   ;;
6435
6436
6437 esac
6438
6439 need_locks="$enable_libtool_lock"
6440
6441
6442
6443 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6444 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
6445 if test "${ac_cv_header_stdc+set}" = set; then
6446   echo $ECHO_N "(cached) $ECHO_C" >&6
6447 else
6448   cat >conftest.$ac_ext <<_ACEOF
6449 /* confdefs.h.  */
6450 _ACEOF
6451 cat confdefs.h >>conftest.$ac_ext
6452 cat >>conftest.$ac_ext <<_ACEOF
6453 /* end confdefs.h.  */
6454 #include <stdlib.h>
6455 #include <stdarg.h>
6456 #include <string.h>
6457 #include <float.h>
6458
6459 int
6460 main ()
6461 {
6462
6463   ;
6464   return 0;
6465 }
6466 _ACEOF
6467 rm -f conftest.$ac_objext
6468 if { (ac_try="$ac_compile"
6469 case "(($ac_try" in
6470   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6471   *) ac_try_echo=$ac_try;;
6472 esac
6473 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6474   (eval "$ac_compile") 2>conftest.er1
6475   ac_status=$?
6476   grep -v '^ *+' conftest.er1 >conftest.err
6477   rm -f conftest.er1
6478   cat conftest.err >&5
6479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6480   (exit $ac_status); } && {
6481          test -z "$ac_c_werror_flag" ||
6482          test ! -s conftest.err
6483        } && test -s conftest.$ac_objext; then
6484   ac_cv_header_stdc=yes
6485 else
6486   echo "$as_me: failed program was:" >&5
6487 sed 's/^/| /' conftest.$ac_ext >&5
6488
6489         ac_cv_header_stdc=no
6490 fi
6491
6492 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6493
6494 if test $ac_cv_header_stdc = yes; then
6495   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6496   cat >conftest.$ac_ext <<_ACEOF
6497 /* confdefs.h.  */
6498 _ACEOF
6499 cat confdefs.h >>conftest.$ac_ext
6500 cat >>conftest.$ac_ext <<_ACEOF
6501 /* end confdefs.h.  */
6502 #include <string.h>
6503
6504 _ACEOF
6505 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6506   $EGREP "memchr" >/dev/null 2>&1; then
6507   :
6508 else
6509   ac_cv_header_stdc=no
6510 fi
6511 rm -f conftest*
6512
6513 fi
6514
6515 if test $ac_cv_header_stdc = yes; then
6516   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6517   cat >conftest.$ac_ext <<_ACEOF
6518 /* confdefs.h.  */
6519 _ACEOF
6520 cat confdefs.h >>conftest.$ac_ext
6521 cat >>conftest.$ac_ext <<_ACEOF
6522 /* end confdefs.h.  */
6523 #include <stdlib.h>
6524
6525 _ACEOF
6526 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6527   $EGREP "free" >/dev/null 2>&1; then
6528   :
6529 else
6530   ac_cv_header_stdc=no
6531 fi
6532 rm -f conftest*
6533
6534 fi
6535
6536 if test $ac_cv_header_stdc = yes; then
6537   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6538   if test "$cross_compiling" = yes; then
6539   :
6540 else
6541   cat >conftest.$ac_ext <<_ACEOF
6542 /* confdefs.h.  */
6543 _ACEOF
6544 cat confdefs.h >>conftest.$ac_ext
6545 cat >>conftest.$ac_ext <<_ACEOF
6546 /* end confdefs.h.  */
6547 #include <ctype.h>
6548 #include <stdlib.h>
6549 #if ((' ' & 0x0FF) == 0x020)
6550 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6551 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6552 #else
6553 # define ISLOWER(c) \
6554                    (('a' <= (c) && (c) <= 'i') \
6555                      || ('j' <= (c) && (c) <= 'r') \
6556                      || ('s' <= (c) && (c) <= 'z'))
6557 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6558 #endif
6559
6560 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6561 int
6562 main ()
6563 {
6564   int i;
6565   for (i = 0; i < 256; i++)
6566     if (XOR (islower (i), ISLOWER (i))
6567         || toupper (i) != TOUPPER (i))
6568       return 2;
6569   return 0;
6570 }
6571 _ACEOF
6572 rm -f conftest$ac_exeext
6573 if { (ac_try="$ac_link"
6574 case "(($ac_try" in
6575   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6576   *) ac_try_echo=$ac_try;;
6577 esac
6578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6579   (eval "$ac_link") 2>&5
6580   ac_status=$?
6581   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6582   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6583   { (case "(($ac_try" in
6584   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6585   *) ac_try_echo=$ac_try;;
6586 esac
6587 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6588   (eval "$ac_try") 2>&5
6589   ac_status=$?
6590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6591   (exit $ac_status); }; }; then
6592   :
6593 else
6594   echo "$as_me: program exited with status $ac_status" >&5
6595 echo "$as_me: failed program was:" >&5
6596 sed 's/^/| /' conftest.$ac_ext >&5
6597
6598 ( exit $ac_status )
6599 ac_cv_header_stdc=no
6600 fi
6601 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6602 fi
6603
6604
6605 fi
6606 fi
6607 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6608 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
6609 if test $ac_cv_header_stdc = yes; then
6610   
6611 cat >>confdefs.h <<\_ACEOF
6612 @%:@define STDC_HEADERS 1
6613 _ACEOF
6614
6615 fi
6616
6617 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6618
6619
6620
6621
6622
6623
6624
6625
6626
6627 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6628                   inttypes.h stdint.h unistd.h
6629 do
6630 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6631 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6632 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6633 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6634   echo $ECHO_N "(cached) $ECHO_C" >&6
6635 else
6636   cat >conftest.$ac_ext <<_ACEOF
6637 /* confdefs.h.  */
6638 _ACEOF
6639 cat confdefs.h >>conftest.$ac_ext
6640 cat >>conftest.$ac_ext <<_ACEOF
6641 /* end confdefs.h.  */
6642 $ac_includes_default
6643
6644 @%:@include <$ac_header>
6645 _ACEOF
6646 rm -f conftest.$ac_objext
6647 if { (ac_try="$ac_compile"
6648 case "(($ac_try" in
6649   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6650   *) ac_try_echo=$ac_try;;
6651 esac
6652 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6653   (eval "$ac_compile") 2>conftest.er1
6654   ac_status=$?
6655   grep -v '^ *+' conftest.er1 >conftest.err
6656   rm -f conftest.er1
6657   cat conftest.err >&5
6658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6659   (exit $ac_status); } && {
6660          test -z "$ac_c_werror_flag" ||
6661          test ! -s conftest.err
6662        } && test -s conftest.$ac_objext; then
6663   eval "$as_ac_Header=yes"
6664 else
6665   echo "$as_me: failed program was:" >&5
6666 sed 's/^/| /' conftest.$ac_ext >&5
6667
6668         eval "$as_ac_Header=no"
6669 fi
6670
6671 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6672 fi
6673 ac_res=`eval echo '${'$as_ac_Header'}'`
6674                { echo "$as_me:$LINENO: result: $ac_res" >&5
6675 echo "${ECHO_T}$ac_res" >&6; }
6676 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6677   cat >>confdefs.h <<_ACEOF
6678 @%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6679 _ACEOF
6680  
6681 fi
6682
6683 done
6684
6685
6686
6687 for ac_header in dlfcn.h
6688 do
6689 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6690 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6691   { echo "$as_me:$LINENO: checking for $ac_header" >&5
6692 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6693 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6694   echo $ECHO_N "(cached) $ECHO_C" >&6
6695 fi
6696 ac_res=`eval echo '${'$as_ac_Header'}'`
6697                { echo "$as_me:$LINENO: result: $ac_res" >&5
6698 echo "${ECHO_T}$ac_res" >&6; }
6699 else
6700   # Is the header compilable?
6701 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6702 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6703 cat >conftest.$ac_ext <<_ACEOF
6704 /* confdefs.h.  */
6705 _ACEOF
6706 cat confdefs.h >>conftest.$ac_ext
6707 cat >>conftest.$ac_ext <<_ACEOF
6708 /* end confdefs.h.  */
6709 $ac_includes_default
6710 @%:@include <$ac_header>
6711 _ACEOF
6712 rm -f conftest.$ac_objext
6713 if { (ac_try="$ac_compile"
6714 case "(($ac_try" in
6715   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6716   *) ac_try_echo=$ac_try;;
6717 esac
6718 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6719   (eval "$ac_compile") 2>conftest.er1
6720   ac_status=$?
6721   grep -v '^ *+' conftest.er1 >conftest.err
6722   rm -f conftest.er1
6723   cat conftest.err >&5
6724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6725   (exit $ac_status); } && {
6726          test -z "$ac_c_werror_flag" ||
6727          test ! -s conftest.err
6728        } && test -s conftest.$ac_objext; then
6729   ac_header_compiler=yes
6730 else
6731   echo "$as_me: failed program was:" >&5
6732 sed 's/^/| /' conftest.$ac_ext >&5
6733
6734         ac_header_compiler=no
6735 fi
6736
6737 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6738 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6739 echo "${ECHO_T}$ac_header_compiler" >&6; }
6740
6741 # Is the header present?
6742 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6743 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6744 cat >conftest.$ac_ext <<_ACEOF
6745 /* confdefs.h.  */
6746 _ACEOF
6747 cat confdefs.h >>conftest.$ac_ext
6748 cat >>conftest.$ac_ext <<_ACEOF
6749 /* end confdefs.h.  */
6750 @%:@include <$ac_header>
6751 _ACEOF
6752 if { (ac_try="$ac_cpp conftest.$ac_ext"
6753 case "(($ac_try" in
6754   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6755   *) ac_try_echo=$ac_try;;
6756 esac
6757 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6758   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6759   ac_status=$?
6760   grep -v '^ *+' conftest.er1 >conftest.err
6761   rm -f conftest.er1
6762   cat conftest.err >&5
6763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6764   (exit $ac_status); } >/dev/null && {
6765          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6766          test ! -s conftest.err
6767        }; then
6768   ac_header_preproc=yes
6769 else
6770   echo "$as_me: failed program was:" >&5
6771 sed 's/^/| /' conftest.$ac_ext >&5
6772
6773   ac_header_preproc=no
6774 fi
6775
6776 rm -f conftest.err conftest.$ac_ext
6777 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6778 echo "${ECHO_T}$ac_header_preproc" >&6; }
6779
6780 # So?  What about this header?
6781 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6782   yes:no: )
6783     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6784 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6785     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6786 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6787     ac_header_preproc=yes
6788     ;;
6789   no:yes:* )
6790     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6791 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6792     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6793 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6794     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6795 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6796     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6797 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6798     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6799 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6800     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6801 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6802     ( cat <<\_ASBOX
6803 @%:@@%:@ ------------------------------- @%:@@%:@
6804 @%:@@%:@ Report this to nfs@lists.sf.net @%:@@%:@
6805 @%:@@%:@ ------------------------------- @%:@@%:@
6806 _ASBOX
6807      ) | sed "s/^/$as_me: WARNING:     /" >&2
6808     ;;
6809 esac
6810 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6811 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6812 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6813   echo $ECHO_N "(cached) $ECHO_C" >&6
6814 else
6815   eval "$as_ac_Header=\$ac_header_preproc"
6816 fi
6817 ac_res=`eval echo '${'$as_ac_Header'}'`
6818                { echo "$as_me:$LINENO: result: $ac_res" >&5
6819 echo "${ECHO_T}$ac_res" >&6; }
6820
6821 fi
6822 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6823   cat >>confdefs.h <<_ACEOF
6824 @%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6825 _ACEOF
6826  
6827 fi
6828
6829 done
6830
6831
6832
6833 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
6834     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
6835     (test "X$CXX" != "Xg++"))) ; then
6836   ac_ext=cpp
6837 ac_cpp='$CXXCPP $CPPFLAGS'
6838 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6839 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6840 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6841 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
6842 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
6843 if test -z "$CXXCPP"; then
6844   if test "${ac_cv_prog_CXXCPP+set}" = set; then
6845   echo $ECHO_N "(cached) $ECHO_C" >&6
6846 else
6847       # Double quotes because CXXCPP needs to be expanded
6848     for CXXCPP in "$CXX -E" "/lib/cpp"
6849     do
6850       ac_preproc_ok=false
6851 for ac_cxx_preproc_warn_flag in '' yes
6852 do
6853   # Use a header file that comes with gcc, so configuring glibc
6854   # with a fresh cross-compiler works.
6855   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6856   # <limits.h> exists even on freestanding compilers.
6857   # On the NeXT, cc -E runs the code through the compiler's parser,
6858   # not just through cpp. "Syntax error" is here to catch this case.
6859   cat >conftest.$ac_ext <<_ACEOF
6860 /* confdefs.h.  */
6861 _ACEOF
6862 cat confdefs.h >>conftest.$ac_ext
6863 cat >>conftest.$ac_ext <<_ACEOF
6864 /* end confdefs.h.  */
6865 @%:@ifdef __STDC__
6866 @%:@ include <limits.h>
6867 @%:@else
6868 @%:@ include <assert.h>
6869 @%:@endif
6870                      Syntax error
6871 _ACEOF
6872 if { (ac_try="$ac_cpp conftest.$ac_ext"
6873 case "(($ac_try" in
6874   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6875   *) ac_try_echo=$ac_try;;
6876 esac
6877 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6878   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6879   ac_status=$?
6880   grep -v '^ *+' conftest.er1 >conftest.err
6881   rm -f conftest.er1
6882   cat conftest.err >&5
6883   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6884   (exit $ac_status); } >/dev/null && {
6885          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6886          test ! -s conftest.err
6887        }; then
6888   :
6889 else
6890   echo "$as_me: failed program was:" >&5
6891 sed 's/^/| /' conftest.$ac_ext >&5
6892
6893   # Broken: fails on valid input.
6894 continue
6895 fi
6896
6897 rm -f conftest.err conftest.$ac_ext
6898
6899   # OK, works on sane cases.  Now check whether nonexistent headers
6900   # can be detected and how.
6901   cat >conftest.$ac_ext <<_ACEOF
6902 /* confdefs.h.  */
6903 _ACEOF
6904 cat confdefs.h >>conftest.$ac_ext
6905 cat >>conftest.$ac_ext <<_ACEOF
6906 /* end confdefs.h.  */
6907 @%:@include <ac_nonexistent.h>
6908 _ACEOF
6909 if { (ac_try="$ac_cpp conftest.$ac_ext"
6910 case "(($ac_try" in
6911   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6912   *) ac_try_echo=$ac_try;;
6913 esac
6914 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6915   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6916   ac_status=$?
6917   grep -v '^ *+' conftest.er1 >conftest.err
6918   rm -f conftest.er1
6919   cat conftest.err >&5
6920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6921   (exit $ac_status); } >/dev/null && {
6922          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6923          test ! -s conftest.err
6924        }; then
6925   # Broken: success on invalid input.
6926 continue
6927 else
6928   echo "$as_me: failed program was:" >&5
6929 sed 's/^/| /' conftest.$ac_ext >&5
6930
6931   # Passes both tests.
6932 ac_preproc_ok=:
6933 break
6934 fi
6935
6936 rm -f conftest.err conftest.$ac_ext
6937
6938 done
6939 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6940 rm -f conftest.err conftest.$ac_ext
6941 if $ac_preproc_ok; then
6942   break
6943 fi
6944
6945     done
6946     ac_cv_prog_CXXCPP=$CXXCPP
6947   
6948 fi
6949   CXXCPP=$ac_cv_prog_CXXCPP
6950 else
6951   ac_cv_prog_CXXCPP=$CXXCPP
6952 fi
6953 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
6954 echo "${ECHO_T}$CXXCPP" >&6; }
6955 ac_preproc_ok=false
6956 for ac_cxx_preproc_warn_flag in '' yes
6957 do
6958   # Use a header file that comes with gcc, so configuring glibc
6959   # with a fresh cross-compiler works.
6960   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6961   # <limits.h> exists even on freestanding compilers.
6962   # On the NeXT, cc -E runs the code through the compiler's parser,
6963   # not just through cpp. "Syntax error" is here to catch this case.
6964   cat >conftest.$ac_ext <<_ACEOF
6965 /* confdefs.h.  */
6966 _ACEOF
6967 cat confdefs.h >>conftest.$ac_ext
6968 cat >>conftest.$ac_ext <<_ACEOF
6969 /* end confdefs.h.  */
6970 @%:@ifdef __STDC__
6971 @%:@ include <limits.h>
6972 @%:@else
6973 @%:@ include <assert.h>
6974 @%:@endif
6975                      Syntax error
6976 _ACEOF
6977 if { (ac_try="$ac_cpp conftest.$ac_ext"
6978 case "(($ac_try" in
6979   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6980   *) ac_try_echo=$ac_try;;
6981 esac
6982 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6983   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6984   ac_status=$?
6985   grep -v '^ *+' conftest.er1 >conftest.err
6986   rm -f conftest.er1
6987   cat conftest.err >&5
6988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6989   (exit $ac_status); } >/dev/null && {
6990          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6991          test ! -s conftest.err
6992        }; then
6993   :
6994 else
6995   echo "$as_me: failed program was:" >&5
6996 sed 's/^/| /' conftest.$ac_ext >&5
6997
6998   # Broken: fails on valid input.
6999 continue
7000 fi
7001
7002 rm -f conftest.err conftest.$ac_ext
7003
7004   # OK, works on sane cases.  Now check whether nonexistent headers
7005   # can be detected and how.
7006   cat >conftest.$ac_ext <<_ACEOF
7007 /* confdefs.h.  */
7008 _ACEOF
7009 cat confdefs.h >>conftest.$ac_ext
7010 cat >>conftest.$ac_ext <<_ACEOF
7011 /* end confdefs.h.  */
7012 @%:@include <ac_nonexistent.h>
7013 _ACEOF
7014 if { (ac_try="$ac_cpp conftest.$ac_ext"
7015 case "(($ac_try" in
7016   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7017   *) ac_try_echo=$ac_try;;
7018 esac
7019 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7020   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7021   ac_status=$?
7022   grep -v '^ *+' conftest.er1 >conftest.err
7023   rm -f conftest.er1
7024   cat conftest.err >&5
7025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7026   (exit $ac_status); } >/dev/null && {
7027          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
7028          test ! -s conftest.err
7029        }; then
7030   # Broken: success on invalid input.
7031 continue
7032 else
7033   echo "$as_me: failed program was:" >&5
7034 sed 's/^/| /' conftest.$ac_ext >&5
7035
7036   # Passes both tests.
7037 ac_preproc_ok=:
7038 break
7039 fi
7040
7041 rm -f conftest.err conftest.$ac_ext
7042
7043 done
7044 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7045 rm -f conftest.err conftest.$ac_ext
7046 if $ac_preproc_ok; then
7047   :
7048 else
7049   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
7050 See \`config.log' for more details." >&5
7051 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
7052 See \`config.log' for more details." >&2;}
7053    { (exit 1); exit 1; }; }
7054 fi
7055
7056 ac_ext=cpp
7057 ac_cpp='$CXXCPP $CPPFLAGS'
7058 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7059 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7060 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7061
7062 fi
7063
7064
7065 ac_ext=f
7066 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
7067 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7068 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
7069 if test -n "$ac_tool_prefix"; then
7070   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
7071   do
7072     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7073 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7074 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7075 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7076 if test "${ac_cv_prog_F77+set}" = set; then
7077   echo $ECHO_N "(cached) $ECHO_C" >&6
7078 else
7079   if test -n "$F77"; then
7080   ac_cv_prog_F77="$F77" # Let the user override the test.
7081 else
7082 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7083 for as_dir in $PATH
7084 do
7085   IFS=$as_save_IFS
7086   test -z "$as_dir" && as_dir=.
7087   for ac_exec_ext in '' $ac_executable_extensions; do
7088   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7089     ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
7090     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7091     break 2
7092   fi
7093 done
7094 done
7095 IFS=$as_save_IFS
7096
7097 fi
7098 fi
7099 F77=$ac_cv_prog_F77
7100 if test -n "$F77"; then
7101   { echo "$as_me:$LINENO: result: $F77" >&5
7102 echo "${ECHO_T}$F77" >&6; }
7103 else
7104   { echo "$as_me:$LINENO: result: no" >&5
7105 echo "${ECHO_T}no" >&6; }
7106 fi
7107
7108
7109     test -n "$F77" && break
7110   done
7111 fi
7112 if test -z "$F77"; then
7113   ac_ct_F77=$F77
7114   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
7115 do
7116   # Extract the first word of "$ac_prog", so it can be a program name with args.
7117 set dummy $ac_prog; ac_word=$2
7118 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7119 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7120 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
7121   echo $ECHO_N "(cached) $ECHO_C" >&6
7122 else
7123   if test -n "$ac_ct_F77"; then
7124   ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
7125 else
7126 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7127 for as_dir in $PATH
7128 do
7129   IFS=$as_save_IFS
7130   test -z "$as_dir" && as_dir=.
7131   for ac_exec_ext in '' $ac_executable_extensions; do
7132   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7133     ac_cv_prog_ac_ct_F77="$ac_prog"
7134     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7135     break 2
7136   fi
7137 done
7138 done
7139 IFS=$as_save_IFS
7140
7141 fi
7142 fi
7143 ac_ct_F77=$ac_cv_prog_ac_ct_F77
7144 if test -n "$ac_ct_F77"; then
7145   { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
7146 echo "${ECHO_T}$ac_ct_F77" >&6; }
7147 else
7148   { echo "$as_me:$LINENO: result: no" >&5
7149 echo "${ECHO_T}no" >&6; }
7150 fi
7151
7152
7153   test -n "$ac_ct_F77" && break
7154 done
7155
7156   if test "x$ac_ct_F77" = x; then
7157     F77=""
7158   else
7159     case $cross_compiling:$ac_tool_warned in
7160 yes:)
7161 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7162 whose name does not start with the host triplet.  If you think this
7163 configuration is useful to you, please write to autoconf@gnu.org." >&5
7164 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7165 whose name does not start with the host triplet.  If you think this
7166 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7167 ac_tool_warned=yes ;;
7168 esac
7169     F77=$ac_ct_F77
7170   fi
7171 fi
7172
7173
7174 # Provide some information about the compiler.
7175 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
7176 ac_compiler=`set X $ac_compile; echo $2`
7177 { (ac_try="$ac_compiler --version >&5"
7178 case "(($ac_try" in
7179   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7180   *) ac_try_echo=$ac_try;;
7181 esac
7182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7183   (eval "$ac_compiler --version >&5") 2>&5
7184   ac_status=$?
7185   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7186   (exit $ac_status); }
7187 { (ac_try="$ac_compiler -v >&5"
7188 case "(($ac_try" in
7189   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7190   *) ac_try_echo=$ac_try;;
7191 esac
7192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7193   (eval "$ac_compiler -v >&5") 2>&5
7194   ac_status=$?
7195   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7196   (exit $ac_status); }
7197 { (ac_try="$ac_compiler -V >&5"
7198 case "(($ac_try" in
7199   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7200   *) ac_try_echo=$ac_try;;
7201 esac
7202 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7203   (eval "$ac_compiler -V >&5") 2>&5
7204   ac_status=$?
7205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7206   (exit $ac_status); }
7207 rm -f a.out
7208
7209 # If we don't use `.F' as extension, the preprocessor is not run on the
7210 # input file.  (Note that this only needs to work for GNU compilers.)
7211 ac_save_ext=$ac_ext
7212 ac_ext=F
7213 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
7214 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
7215 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
7216   echo $ECHO_N "(cached) $ECHO_C" >&6
7217 else
7218   cat >conftest.$ac_ext <<_ACEOF
7219       program main
7220 #ifndef __GNUC__
7221        choke me
7222 #endif
7223
7224       end
7225 _ACEOF
7226 rm -f conftest.$ac_objext
7227 if { (ac_try="$ac_compile"
7228 case "(($ac_try" in
7229   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7230   *) ac_try_echo=$ac_try;;
7231 esac
7232 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7233   (eval "$ac_compile") 2>conftest.er1
7234   ac_status=$?
7235   grep -v '^ *+' conftest.er1 >conftest.err
7236   rm -f conftest.er1
7237   cat conftest.err >&5
7238   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7239   (exit $ac_status); } && {
7240          test -z "$ac_f77_werror_flag" ||
7241          test ! -s conftest.err
7242        } && test -s conftest.$ac_objext; then
7243   ac_compiler_gnu=yes
7244 else
7245   echo "$as_me: failed program was:" >&5
7246 sed 's/^/| /' conftest.$ac_ext >&5
7247
7248         ac_compiler_gnu=no
7249 fi
7250
7251 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7252 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
7253
7254 fi
7255 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
7256 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
7257 ac_ext=$ac_save_ext
7258 ac_test_FFLAGS=${FFLAGS+set}
7259 ac_save_FFLAGS=$FFLAGS
7260 FFLAGS=
7261 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
7262 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
7263 if test "${ac_cv_prog_f77_g+set}" = set; then
7264   echo $ECHO_N "(cached) $ECHO_C" >&6
7265 else
7266   FFLAGS=-g
7267 cat >conftest.$ac_ext <<_ACEOF
7268       program main
7269
7270       end
7271 _ACEOF
7272 rm -f conftest.$ac_objext
7273 if { (ac_try="$ac_compile"
7274 case "(($ac_try" in
7275   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7276   *) ac_try_echo=$ac_try;;
7277 esac
7278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7279   (eval "$ac_compile") 2>conftest.er1
7280   ac_status=$?
7281   grep -v '^ *+' conftest.er1 >conftest.err
7282   rm -f conftest.er1
7283   cat conftest.err >&5
7284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7285   (exit $ac_status); } && {
7286          test -z "$ac_f77_werror_flag" ||
7287          test ! -s conftest.err
7288        } && test -s conftest.$ac_objext; then
7289   ac_cv_prog_f77_g=yes
7290 else
7291   echo "$as_me: failed program was:" >&5
7292 sed 's/^/| /' conftest.$ac_ext >&5
7293
7294         ac_cv_prog_f77_g=no
7295 fi
7296
7297 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7298
7299 fi
7300 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
7301 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
7302 if test "$ac_test_FFLAGS" = set; then
7303   FFLAGS=$ac_save_FFLAGS
7304 elif test $ac_cv_prog_f77_g = yes; then
7305   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
7306     FFLAGS="-g -O2"
7307   else
7308     FFLAGS="-g"
7309   fi
7310 else
7311   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
7312     FFLAGS="-O2"
7313   else
7314     FFLAGS=
7315   fi
7316 fi
7317
7318 G77=`test $ac_compiler_gnu = yes && echo yes`
7319 ac_ext=c
7320 ac_cpp='$CPP $CPPFLAGS'
7321 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7322 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7323 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7324
7325
7326
7327 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
7328
7329 # find the maximum length of command line arguments
7330 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
7331 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
7332 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
7333   echo $ECHO_N "(cached) $ECHO_C" >&6
7334 else
7335     i=0
7336   teststring="ABCD"
7337
7338   case $build_os in
7339   msdosdjgpp*)
7340     # On DJGPP, this test can blow up pretty badly due to problems in libc
7341     # (any single argument exceeding 2000 bytes causes a buffer overrun
7342     # during glob expansion).  Even if it were fixed, the result of this
7343     # check would be larger than it should be.
7344     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
7345     ;;
7346
7347   gnu*)
7348     # Under GNU Hurd, this test is not required because there is
7349     # no limit to the length of command line arguments.
7350     # Libtool will interpret -1 as no limit whatsoever
7351     lt_cv_sys_max_cmd_len=-1;
7352     ;;
7353
7354   cygwin* | mingw*)
7355     # On Win9x/ME, this test blows up -- it succeeds, but takes
7356     # about 5 minutes as the teststring grows exponentially.
7357     # Worse, since 9x/ME are not pre-emptively multitasking,
7358     # you end up with a "frozen" computer, even though with patience
7359     # the test eventually succeeds (with a max line length of 256k).
7360     # Instead, let's just punt: use the minimum linelength reported by
7361     # all of the supported platforms: 8192 (on NT/2K/XP).
7362     lt_cv_sys_max_cmd_len=8192;
7363     ;;
7364
7365   amigaos*)
7366     # On AmigaOS with pdksh, this test takes hours, literally.
7367     # So we just punt and use a minimum line length of 8192.
7368     lt_cv_sys_max_cmd_len=8192;
7369     ;;
7370
7371   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
7372     # This has been around since 386BSD, at least.  Likely further.
7373     if test -x /sbin/sysctl; then
7374       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7375     elif test -x /usr/sbin/sysctl; then
7376       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7377     else
7378       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
7379     fi
7380     # And add a safety zone
7381     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7382     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7383     ;;
7384
7385   interix*)
7386     # We know the value 262144 and hardcode it with a safety zone (like BSD)
7387     lt_cv_sys_max_cmd_len=196608
7388     ;;
7389
7390   osf*)
7391     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7392     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7393     # nice to cause kernel panics so lets avoid the loop below.
7394     # First set a reasonable default.
7395     lt_cv_sys_max_cmd_len=16384
7396     #
7397     if test -x /sbin/sysconfig; then
7398       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7399         *1*) lt_cv_sys_max_cmd_len=-1 ;;
7400       esac
7401     fi
7402     ;;
7403   sco3.2v5*)
7404     lt_cv_sys_max_cmd_len=102400
7405     ;;
7406   sysv5* | sco5v6* | sysv4.2uw2*)
7407     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
7408     if test -n "$kargmax"; then
7409       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
7410     else
7411       lt_cv_sys_max_cmd_len=32768
7412     fi
7413     ;;
7414   *)
7415     # If test is not a shell built-in, we'll probably end up computing a
7416     # maximum length that is only half of the actual maximum length, but
7417     # we can't tell.
7418     SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7419     while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
7420                = "XX$teststring") >/dev/null 2>&1 &&
7421             new_result=`expr "X$teststring" : ".*" 2>&1` &&
7422             lt_cv_sys_max_cmd_len=$new_result &&
7423             test $i != 17 # 1/2 MB should be enough
7424     do
7425       i=`expr $i + 1`
7426       teststring=$teststring$teststring
7427     done
7428     teststring=
7429     # Add a significant safety factor because C++ compilers can tack on massive
7430     # amounts of additional arguments before passing them to the linker.
7431     # It appears as though 1/2 is a usable value.
7432     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7433     ;;
7434   esac
7435
7436 fi
7437
7438 if test -n $lt_cv_sys_max_cmd_len ; then
7439   { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
7440 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
7441 else
7442   { echo "$as_me:$LINENO: result: none" >&5
7443 echo "${ECHO_T}none" >&6; }
7444 fi
7445
7446
7447
7448
7449 # Check for command to grab the raw symbol name followed by C symbol from nm.
7450 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
7451 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
7452 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
7453   echo $ECHO_N "(cached) $ECHO_C" >&6
7454 else
7455   
7456 # These are sane defaults that work on at least a few old systems.
7457 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
7458
7459 # Character class describing NM global symbol codes.
7460 symcode='[BCDEGRST]'
7461
7462 # Regexp to match symbols that can be accessed directly from C.
7463 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7464
7465 # Transform an extracted symbol line into a proper C declaration
7466 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
7467
7468 # Transform an extracted symbol line into symbol name and symbol address
7469 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'"
7470
7471 # Define system-specific variables.
7472 case $host_os in
7473 aix*)
7474   symcode='[BCDT]'
7475   ;;
7476 cygwin* | mingw* | pw32*)
7477   symcode='[ABCDGISTW]'
7478   ;;
7479 hpux*) # Its linker distinguishes data from code symbols
7480   if test "$host_cpu" = ia64; then
7481     symcode='[ABCDEGRST]'
7482   fi
7483   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7484   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'"
7485   ;;
7486 linux* | k*bsd*-gnu)
7487   if test "$host_cpu" = ia64; then
7488     symcode='[ABCDGIRSTW]'
7489     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7490     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'"
7491   fi
7492   ;;
7493 irix* | nonstopux*)
7494   symcode='[BCDEGRST]'
7495   ;;
7496 osf*)
7497   symcode='[BCDEGQRST]'
7498   ;;
7499 solaris*)
7500   symcode='[BDRT]'
7501   ;;
7502 sco3.2v5*)
7503   symcode='[DT]'
7504   ;;
7505 sysv4.2uw2*)
7506   symcode='[DT]'
7507   ;;
7508 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7509   symcode='[ABDT]'
7510   ;;
7511 sysv4)
7512   symcode='[DFNSTU]'
7513   ;;
7514 esac
7515
7516 # Handle CRLF in mingw tool chain
7517 opt_cr=
7518 case $build_os in
7519 mingw*)
7520   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7521   ;;
7522 esac
7523
7524 # If we're using GNU nm, then use its standard symbol codes.
7525 case `$NM -V 2>&1` in
7526 *GNU* | *'with BFD'*)
7527   symcode='[ABCDGIRSTW]' ;;
7528 esac
7529
7530 # Try without a prefix undercore, then with it.
7531 for ac_symprfx in "" "_"; do
7532
7533   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7534   symxfrm="\\1 $ac_symprfx\\2 \\2"
7535
7536   # Write the raw and C identifiers.
7537   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7538
7539   # Check to see that the pipe works correctly.
7540   pipe_works=no
7541
7542   rm -f conftest*
7543   cat > conftest.$ac_ext <<EOF
7544 #ifdef __cplusplus
7545 extern "C" {
7546 #endif
7547 char nm_test_var;
7548 void nm_test_func(){}
7549 #ifdef __cplusplus
7550 }
7551 #endif
7552 int main(){nm_test_var='a';nm_test_func();return(0);}
7553 EOF
7554
7555   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7556   (eval $ac_compile) 2>&5
7557   ac_status=$?
7558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7559   (exit $ac_status); }; then
7560     # Now try to grab the symbols.
7561     nlist=conftest.nm
7562     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7563   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7564   ac_status=$?
7565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7566   (exit $ac_status); } && test -s "$nlist"; then
7567       # Try sorting and uniquifying the output.
7568       if sort "$nlist" | uniq > "$nlist"T; then
7569         mv -f "$nlist"T "$nlist"
7570       else
7571         rm -f "$nlist"T
7572       fi
7573
7574       # Make sure that we snagged all the symbols we need.
7575       if grep ' nm_test_var$' "$nlist" >/dev/null; then
7576         if grep ' nm_test_func$' "$nlist" >/dev/null; then
7577           cat <<EOF > conftest.$ac_ext
7578 #ifdef __cplusplus
7579 extern "C" {
7580 #endif
7581
7582 EOF
7583           # Now generate the symbol file.
7584           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
7585
7586           cat <<EOF >> conftest.$ac_ext
7587 #if defined (__STDC__) && __STDC__
7588 # define lt_ptr_t void *
7589 #else
7590 # define lt_ptr_t char *
7591 # define const
7592 #endif
7593
7594 /* The mapping between symbol names and symbols. */
7595 const struct {
7596   const char *name;
7597   lt_ptr_t address;
7598 }
7599 lt_preloaded_symbols[] =
7600 {
7601 EOF
7602           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
7603           cat <<\EOF >> conftest.$ac_ext
7604   {0, (lt_ptr_t) 0}
7605 };
7606
7607 #ifdef __cplusplus
7608 }
7609 #endif
7610 EOF
7611           # Now try linking the two files.
7612           mv conftest.$ac_objext conftstm.$ac_objext
7613           lt_save_LIBS="$LIBS"
7614           lt_save_CFLAGS="$CFLAGS"
7615           LIBS="conftstm.$ac_objext"
7616           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7617           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7618   (eval $ac_link) 2>&5
7619   ac_status=$?
7620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7621   (exit $ac_status); } && test -s conftest${ac_exeext}; then
7622             pipe_works=yes
7623           fi
7624           LIBS="$lt_save_LIBS"
7625           CFLAGS="$lt_save_CFLAGS"
7626         else
7627           echo "cannot find nm_test_func in $nlist" >&5
7628         fi
7629       else
7630         echo "cannot find nm_test_var in $nlist" >&5
7631       fi
7632     else
7633       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7634     fi
7635   else
7636     echo "$progname: failed program was:" >&5
7637     cat conftest.$ac_ext >&5
7638   fi
7639   rm -f conftest* conftst*
7640
7641   # Do not use the global_symbol_pipe unless it works.
7642   if test "$pipe_works" = yes; then
7643     break
7644   else
7645     lt_cv_sys_global_symbol_pipe=
7646   fi
7647 done
7648
7649 fi
7650
7651 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7652   lt_cv_sys_global_symbol_to_cdecl=
7653 fi
7654 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7655   { echo "$as_me:$LINENO: result: failed" >&5
7656 echo "${ECHO_T}failed" >&6; }
7657 else
7658   { echo "$as_me:$LINENO: result: ok" >&5
7659 echo "${ECHO_T}ok" >&6; }
7660 fi
7661
7662 { echo "$as_me:$LINENO: checking for objdir" >&5
7663 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
7664 if test "${lt_cv_objdir+set}" = set; then
7665   echo $ECHO_N "(cached) $ECHO_C" >&6
7666 else
7667   rm -f .libs 2>/dev/null
7668 mkdir .libs 2>/dev/null
7669 if test -d .libs; then
7670   lt_cv_objdir=.libs
7671 else
7672   # MS-DOS does not allow filenames that begin with a dot.
7673   lt_cv_objdir=_libs
7674 fi
7675 rmdir .libs 2>/dev/null
7676 fi
7677 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7678 echo "${ECHO_T}$lt_cv_objdir" >&6; }
7679 objdir=$lt_cv_objdir
7680
7681
7682
7683
7684
7685 case $host_os in
7686 aix3*)
7687   # AIX sometimes has problems with the GCC collect2 program.  For some
7688   # reason, if we set the COLLECT_NAMES environment variable, the problems
7689   # vanish in a puff of smoke.
7690   if test "X${COLLECT_NAMES+set}" != Xset; then
7691     COLLECT_NAMES=
7692     export COLLECT_NAMES
7693   fi
7694   ;;
7695 esac
7696
7697 # Sed substitution that helps us do robust quoting.  It backslashifies
7698 # metacharacters that are still active within double-quoted strings.
7699 Xsed='sed -e 1s/^X//'
7700 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
7701
7702 # Same as above, but do not quote variable references.
7703 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
7704
7705 # Sed substitution to delay expansion of an escaped shell variable in a
7706 # double_quote_subst'ed string.
7707 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7708
7709 # Sed substitution to avoid accidental globbing in evaled expressions
7710 no_glob_subst='s/\*/\\\*/g'
7711
7712 # Constants:
7713 rm="rm -f"
7714
7715 # Global variables:
7716 default_ofile=libtool
7717 can_build_shared=yes
7718
7719 # All known linkers require a `.a' archive for static linking (except MSVC,
7720 # which needs '.lib').
7721 libext=a
7722 ltmain="$ac_aux_dir/ltmain.sh"
7723 ofile="$default_ofile"
7724 with_gnu_ld="$lt_cv_prog_gnu_ld"
7725
7726 if test -n "$ac_tool_prefix"; then
7727   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7728 set dummy ${ac_tool_prefix}ar; ac_word=$2
7729 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7730 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7731 if test "${ac_cv_prog_AR+set}" = set; then
7732   echo $ECHO_N "(cached) $ECHO_C" >&6
7733 else
7734   if test -n "$AR"; then
7735   ac_cv_prog_AR="$AR" # Let the user override the test.
7736 else
7737 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7738 for as_dir in $PATH
7739 do
7740   IFS=$as_save_IFS
7741   test -z "$as_dir" && as_dir=.
7742   for ac_exec_ext in '' $ac_executable_extensions; do
7743   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7744     ac_cv_prog_AR="${ac_tool_prefix}ar"
7745     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7746     break 2
7747   fi
7748 done
7749 done
7750 IFS=$as_save_IFS
7751
7752 fi
7753 fi
7754 AR=$ac_cv_prog_AR
7755 if test -n "$AR"; then
7756   { echo "$as_me:$LINENO: result: $AR" >&5
7757 echo "${ECHO_T}$AR" >&6; }
7758 else
7759   { echo "$as_me:$LINENO: result: no" >&5
7760 echo "${ECHO_T}no" >&6; }
7761 fi
7762
7763
7764 fi
7765 if test -z "$ac_cv_prog_AR"; then
7766   ac_ct_AR=$AR
7767   # Extract the first word of "ar", so it can be a program name with args.
7768 set dummy ar; ac_word=$2
7769 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7770 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7771 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7772   echo $ECHO_N "(cached) $ECHO_C" >&6
7773 else
7774   if test -n "$ac_ct_AR"; then
7775   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7776 else
7777 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7778 for as_dir in $PATH
7779 do
7780   IFS=$as_save_IFS
7781   test -z "$as_dir" && as_dir=.
7782   for ac_exec_ext in '' $ac_executable_extensions; do
7783   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7784     ac_cv_prog_ac_ct_AR="ar"
7785     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7786     break 2
7787   fi
7788 done
7789 done
7790 IFS=$as_save_IFS
7791
7792 fi
7793 fi
7794 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7795 if test -n "$ac_ct_AR"; then
7796   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7797 echo "${ECHO_T}$ac_ct_AR" >&6; }
7798 else
7799   { echo "$as_me:$LINENO: result: no" >&5
7800 echo "${ECHO_T}no" >&6; }
7801 fi
7802
7803   if test "x$ac_ct_AR" = x; then
7804     AR="false"
7805   else
7806     case $cross_compiling:$ac_tool_warned in
7807 yes:)
7808 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7809 whose name does not start with the host triplet.  If you think this
7810 configuration is useful to you, please write to autoconf@gnu.org." >&5
7811 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7812 whose name does not start with the host triplet.  If you think this
7813 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7814 ac_tool_warned=yes ;;
7815 esac
7816     AR=$ac_ct_AR
7817   fi
7818 else
7819   AR="$ac_cv_prog_AR"
7820 fi
7821
7822 if test -n "$ac_tool_prefix"; then
7823   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7824 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7825 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7826 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7827 if test "${ac_cv_prog_RANLIB+set}" = set; then
7828   echo $ECHO_N "(cached) $ECHO_C" >&6
7829 else
7830   if test -n "$RANLIB"; then
7831   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7832 else
7833 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7834 for as_dir in $PATH
7835 do
7836   IFS=$as_save_IFS
7837   test -z "$as_dir" && as_dir=.
7838   for ac_exec_ext in '' $ac_executable_extensions; do
7839   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7840     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7841     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7842     break 2
7843   fi
7844 done
7845 done
7846 IFS=$as_save_IFS
7847
7848 fi
7849 fi
7850 RANLIB=$ac_cv_prog_RANLIB
7851 if test -n "$RANLIB"; then
7852   { echo "$as_me:$LINENO: result: $RANLIB" >&5
7853 echo "${ECHO_T}$RANLIB" >&6; }
7854 else
7855   { echo "$as_me:$LINENO: result: no" >&5
7856 echo "${ECHO_T}no" >&6; }
7857 fi
7858
7859
7860 fi
7861 if test -z "$ac_cv_prog_RANLIB"; then
7862   ac_ct_RANLIB=$RANLIB
7863   # Extract the first word of "ranlib", so it can be a program name with args.
7864 set dummy ranlib; ac_word=$2
7865 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7866 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7867 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7868   echo $ECHO_N "(cached) $ECHO_C" >&6
7869 else
7870   if test -n "$ac_ct_RANLIB"; then
7871   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7872 else
7873 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7874 for as_dir in $PATH
7875 do
7876   IFS=$as_save_IFS
7877   test -z "$as_dir" && as_dir=.
7878   for ac_exec_ext in '' $ac_executable_extensions; do
7879   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7880     ac_cv_prog_ac_ct_RANLIB="ranlib"
7881     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7882     break 2
7883   fi
7884 done
7885 done
7886 IFS=$as_save_IFS
7887
7888 fi
7889 fi
7890 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7891 if test -n "$ac_ct_RANLIB"; then
7892   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7893 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
7894 else
7895   { echo "$as_me:$LINENO: result: no" >&5
7896 echo "${ECHO_T}no" >&6; }
7897 fi
7898
7899   if test "x$ac_ct_RANLIB" = x; then
7900     RANLIB=":"
7901   else
7902     case $cross_compiling:$ac_tool_warned in
7903 yes:)
7904 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7905 whose name does not start with the host triplet.  If you think this
7906 configuration is useful to you, please write to autoconf@gnu.org." >&5
7907 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7908 whose name does not start with the host triplet.  If you think this
7909 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7910 ac_tool_warned=yes ;;
7911 esac
7912     RANLIB=$ac_ct_RANLIB
7913   fi
7914 else
7915   RANLIB="$ac_cv_prog_RANLIB"
7916 fi
7917
7918 if test -n "$ac_tool_prefix"; then
7919   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7920 set dummy ${ac_tool_prefix}strip; ac_word=$2
7921 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7922 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7923 if test "${ac_cv_prog_STRIP+set}" = set; then
7924   echo $ECHO_N "(cached) $ECHO_C" >&6
7925 else
7926   if test -n "$STRIP"; then
7927   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7928 else
7929 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7930 for as_dir in $PATH
7931 do
7932   IFS=$as_save_IFS
7933   test -z "$as_dir" && as_dir=.
7934   for ac_exec_ext in '' $ac_executable_extensions; do
7935   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7936     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7937     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7938     break 2
7939   fi
7940 done
7941 done
7942 IFS=$as_save_IFS
7943
7944 fi
7945 fi
7946 STRIP=$ac_cv_prog_STRIP
7947 if test -n "$STRIP"; then
7948   { echo "$as_me:$LINENO: result: $STRIP" >&5
7949 echo "${ECHO_T}$STRIP" >&6; }
7950 else
7951   { echo "$as_me:$LINENO: result: no" >&5
7952 echo "${ECHO_T}no" >&6; }
7953 fi
7954
7955
7956 fi
7957 if test -z "$ac_cv_prog_STRIP"; then
7958   ac_ct_STRIP=$STRIP
7959   # Extract the first word of "strip", so it can be a program name with args.
7960 set dummy strip; ac_word=$2
7961 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7962 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7963 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
7964   echo $ECHO_N "(cached) $ECHO_C" >&6
7965 else
7966   if test -n "$ac_ct_STRIP"; then
7967   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7968 else
7969 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7970 for as_dir in $PATH
7971 do
7972   IFS=$as_save_IFS
7973   test -z "$as_dir" && as_dir=.
7974   for ac_exec_ext in '' $ac_executable_extensions; do
7975   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7976     ac_cv_prog_ac_ct_STRIP="strip"
7977     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7978     break 2
7979   fi
7980 done
7981 done
7982 IFS=$as_save_IFS
7983
7984 fi
7985 fi
7986 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7987 if test -n "$ac_ct_STRIP"; then
7988   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
7989 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
7990 else
7991   { echo "$as_me:$LINENO: result: no" >&5
7992 echo "${ECHO_T}no" >&6; }
7993 fi
7994
7995   if test "x$ac_ct_STRIP" = x; then
7996     STRIP=":"
7997   else
7998     case $cross_compiling:$ac_tool_warned in
7999 yes:)
8000 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
8001 whose name does not start with the host triplet.  If you think this
8002 configuration is useful to you, please write to autoconf@gnu.org." >&5
8003 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
8004 whose name does not start with the host triplet.  If you think this
8005 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
8006 ac_tool_warned=yes ;;
8007 esac
8008     STRIP=$ac_ct_STRIP
8009   fi
8010 else
8011   STRIP="$ac_cv_prog_STRIP"
8012 fi
8013
8014
8015 old_CC="$CC"
8016 old_CFLAGS="$CFLAGS"
8017
8018 # Set sane defaults for various variables
8019 test -z "$AR" && AR=ar
8020 test -z "$AR_FLAGS" && AR_FLAGS=cru
8021 test -z "$AS" && AS=as
8022 test -z "$CC" && CC=cc
8023 test -z "$LTCC" && LTCC=$CC
8024 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8025 test -z "$DLLTOOL" && DLLTOOL=dlltool
8026 test -z "$LD" && LD=ld
8027 test -z "$LN_S" && LN_S="ln -s"
8028 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8029 test -z "$NM" && NM=nm
8030 test -z "$SED" && SED=sed
8031 test -z "$OBJDUMP" && OBJDUMP=objdump
8032 test -z "$RANLIB" && RANLIB=:
8033 test -z "$STRIP" && STRIP=:
8034 test -z "$ac_objext" && ac_objext=o
8035
8036 # Determine commands to create old-style static archives.
8037 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
8038 old_postinstall_cmds='chmod 644 $oldlib'
8039 old_postuninstall_cmds=
8040
8041 if test -n "$RANLIB"; then
8042   case $host_os in
8043   openbsd*)
8044     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
8045     ;;
8046   *)
8047     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
8048     ;;
8049   esac
8050   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
8051 fi
8052
8053 for cc_temp in $compiler""; do
8054   case $cc_temp in
8055     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8056     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8057     \-*) ;;
8058     *) break;;
8059   esac
8060 done
8061 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8062
8063
8064 # Only perform the check for file, if the check method requires it
8065 case $deplibs_check_method in
8066 file_magic*)
8067   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8068     { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
8069 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
8070 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8071   echo $ECHO_N "(cached) $ECHO_C" >&6
8072 else
8073   case $MAGIC_CMD in
8074 [\\/*] |  ?:[\\/]*)
8075   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8076   ;;
8077 *)
8078   lt_save_MAGIC_CMD="$MAGIC_CMD"
8079   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8080   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8081   for ac_dir in $ac_dummy; do
8082     IFS="$lt_save_ifs"
8083     test -z "$ac_dir" && ac_dir=.
8084     if test -f $ac_dir/${ac_tool_prefix}file; then
8085       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8086       if test -n "$file_magic_test_file"; then
8087         case $deplibs_check_method in
8088         "file_magic "*)
8089           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8090           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8091           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8092             $EGREP "$file_magic_regex" > /dev/null; then
8093             :
8094           else
8095             cat <<EOF 1>&2
8096
8097 *** Warning: the command libtool uses to detect shared libraries,
8098 *** $file_magic_cmd, produces output that libtool cannot recognize.
8099 *** The result is that libtool may fail to recognize shared libraries
8100 *** as such.  This will affect the creation of libtool libraries that
8101 *** depend on shared libraries, but programs linked with such libtool
8102 *** libraries will work regardless of this problem.  Nevertheless, you
8103 *** may want to report the problem to your system manager and/or to
8104 *** bug-libtool@gnu.org
8105
8106 EOF
8107           fi ;;
8108         esac
8109       fi
8110       break
8111     fi
8112   done
8113   IFS="$lt_save_ifs"
8114   MAGIC_CMD="$lt_save_MAGIC_CMD"
8115   ;;
8116 esac
8117 fi
8118
8119 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8120 if test -n "$MAGIC_CMD"; then
8121   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8122 echo "${ECHO_T}$MAGIC_CMD" >&6; }
8123 else
8124   { echo "$as_me:$LINENO: result: no" >&5
8125 echo "${ECHO_T}no" >&6; }
8126 fi
8127
8128 if test -z "$lt_cv_path_MAGIC_CMD"; then
8129   if test -n "$ac_tool_prefix"; then
8130     { echo "$as_me:$LINENO: checking for file" >&5
8131 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
8132 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8133   echo $ECHO_N "(cached) $ECHO_C" >&6
8134 else
8135   case $MAGIC_CMD in
8136 [\\/*] |  ?:[\\/]*)
8137   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8138   ;;
8139 *)
8140   lt_save_MAGIC_CMD="$MAGIC_CMD"
8141   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8142   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8143   for ac_dir in $ac_dummy; do
8144     IFS="$lt_save_ifs"
8145     test -z "$ac_dir" && ac_dir=.
8146     if test -f $ac_dir/file; then
8147       lt_cv_path_MAGIC_CMD="$ac_dir/file"
8148       if test -n "$file_magic_test_file"; then
8149         case $deplibs_check_method in
8150         "file_magic "*)
8151           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8152           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8153           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8154             $EGREP "$file_magic_regex" > /dev/null; then
8155             :
8156           else
8157             cat <<EOF 1>&2
8158
8159 *** Warning: the command libtool uses to detect shared libraries,
8160 *** $file_magic_cmd, produces output that libtool cannot recognize.
8161 *** The result is that libtool may fail to recognize shared libraries
8162 *** as such.  This will affect the creation of libtool libraries that
8163 *** depend on shared libraries, but programs linked with such libtool
8164 *** libraries will work regardless of this problem.  Nevertheless, you
8165 *** may want to report the problem to your system manager and/or to
8166 *** bug-libtool@gnu.org
8167
8168 EOF
8169           fi ;;
8170         esac
8171       fi
8172       break
8173     fi
8174   done
8175   IFS="$lt_save_ifs"
8176   MAGIC_CMD="$lt_save_MAGIC_CMD"
8177   ;;
8178 esac
8179 fi
8180
8181 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8182 if test -n "$MAGIC_CMD"; then
8183   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8184 echo "${ECHO_T}$MAGIC_CMD" >&6; }
8185 else
8186   { echo "$as_me:$LINENO: result: no" >&5
8187 echo "${ECHO_T}no" >&6; }
8188 fi
8189
8190   else
8191     MAGIC_CMD=:
8192   fi
8193 fi
8194
8195   fi
8196   ;;
8197 esac
8198
8199 enable_dlopen=no
8200 enable_win32_dll=no
8201
8202 # Check whether --enable-libtool-lock was given.
8203 if test "${enable_libtool_lock+set}" = set; then
8204   enableval=$enable_libtool_lock; 
8205 fi
8206
8207 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8208
8209
8210 # Check whether --with-pic was given.
8211 if test "${with_pic+set}" = set; then
8212   withval=$with_pic; pic_mode="$withval"
8213 else
8214   pic_mode=default
8215 fi
8216
8217 test -z "$pic_mode" && pic_mode=default
8218
8219 # Use C for the default configuration in the libtool script
8220 tagname=
8221 lt_save_CC="$CC"
8222 ac_ext=c
8223 ac_cpp='$CPP $CPPFLAGS'
8224 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8225 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8226 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8227
8228
8229 # Source file extension for C test sources.
8230 ac_ext=c
8231
8232 # Object file extension for compiled C test sources.
8233 objext=o
8234 objext=$objext
8235
8236 # Code to be used in simple compile tests
8237 lt_simple_compile_test_code="int some_variable = 0;\n"
8238
8239 # Code to be used in simple link tests
8240 lt_simple_link_test_code='int main(){return(0);}\n'
8241
8242
8243 # If no C compiler was specified, use CC.
8244 LTCC=${LTCC-"$CC"}
8245
8246 # If no C compiler flags were specified, use CFLAGS.
8247 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8248
8249 # Allow CC to be a program name with arguments.
8250 compiler=$CC
8251
8252
8253 # save warnings/boilerplate of simple test code
8254 ac_outfile=conftest.$ac_objext
8255 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
8256 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8257 _lt_compiler_boilerplate=`cat conftest.err`
8258 $rm conftest*
8259
8260 ac_outfile=conftest.$ac_objext
8261 printf "$lt_simple_link_test_code" >conftest.$ac_ext
8262 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8263 _lt_linker_boilerplate=`cat conftest.err`
8264 $rm conftest*
8265
8266
8267 ## CAVEAT EMPTOR:
8268 ## There is no encapsulation within the following macros, do not change
8269 ## the running order or otherwise move them around unless you know exactly
8270 ## what you are doing...
8271
8272 lt_prog_compiler_no_builtin_flag=
8273
8274 if test "$GCC" = yes; then
8275   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
8276
8277   
8278 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8279 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
8280 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
8281   echo $ECHO_N "(cached) $ECHO_C" >&6
8282 else
8283   lt_cv_prog_compiler_rtti_exceptions=no
8284   ac_outfile=conftest.$ac_objext
8285    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8286    lt_compiler_flag="-fno-rtti -fno-exceptions"
8287    # Insert the option either (1) after the last *FLAGS variable, or
8288    # (2) before a word containing "conftest.", or (3) at the end.
8289    # Note that $ac_compile itself does not contain backslashes and begins
8290    # with a dollar sign (not a hyphen), so the echo should work correctly.
8291    # The option is referenced via a variable to avoid confusing sed.
8292    lt_compile=`echo "$ac_compile" | $SED \
8293    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8294    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8295    -e 's:$: $lt_compiler_flag:'`
8296    (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
8297    (eval "$lt_compile" 2>conftest.err)
8298    ac_status=$?
8299    cat conftest.err >&5
8300    echo "$as_me:__oline__: \$? = $ac_status" >&5
8301    if (exit $ac_status) && test -s "$ac_outfile"; then
8302      # The compiler can only warn and ignore the option if not recognized
8303      # So say no if there are warnings other than the usual output.
8304      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8305      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8306      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8307        lt_cv_prog_compiler_rtti_exceptions=yes
8308      fi
8309    fi
8310    $rm conftest*
8311
8312 fi
8313 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8314 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8315
8316 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8317     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8318 else
8319     :
8320 fi
8321
8322 fi
8323
8324 lt_prog_compiler_wl=
8325 lt_prog_compiler_pic=
8326 lt_prog_compiler_static=
8327
8328 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
8329 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
8330  
8331   if test "$GCC" = yes; then
8332     lt_prog_compiler_wl='-Wl,'
8333     lt_prog_compiler_static='-static'
8334
8335     case $host_os in
8336       aix*)
8337       # All AIX code is PIC.
8338       if test "$host_cpu" = ia64; then
8339         # AIX 5 now supports IA64 processor
8340         lt_prog_compiler_static='-Bstatic'
8341       fi
8342       ;;
8343
8344     amigaos*)
8345       # FIXME: we need at least 68020 code to build shared libraries, but
8346       # adding the `-m68020' flag to GCC prevents building anything better,
8347       # like `-m68040'.
8348       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8349       ;;
8350
8351     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8352       # PIC is the default for these OSes.
8353       ;;
8354
8355     mingw* | pw32* | os2*)
8356       # This hack is so that the source file can tell whether it is being
8357       # built for inclusion in a dll (and should export symbols for example).
8358       lt_prog_compiler_pic='-DDLL_EXPORT'
8359       ;;
8360
8361     darwin* | rhapsody*)
8362       # PIC is the default on this platform
8363       # Common symbols not allowed in MH_DYLIB files
8364       lt_prog_compiler_pic='-fno-common'
8365       ;;
8366
8367     interix3*)
8368       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8369       # Instead, we relocate shared libraries at runtime.
8370       ;;
8371
8372     msdosdjgpp*)
8373       # Just because we use GCC doesn't mean we suddenly get shared libraries
8374       # on systems that don't support them.
8375       lt_prog_compiler_can_build_shared=no
8376       enable_shared=no
8377       ;;
8378
8379     sysv4*MP*)
8380       if test -d /usr/nec; then
8381         lt_prog_compiler_pic=-Kconform_pic
8382       fi
8383       ;;
8384
8385     hpux*)
8386       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8387       # not for PA HP-UX.
8388       case $host_cpu in
8389       hppa*64*|ia64*)
8390         # +Z the default
8391         ;;
8392       *)
8393         lt_prog_compiler_pic='-fPIC'
8394         ;;
8395       esac
8396       ;;
8397
8398     *)
8399       lt_prog_compiler_pic='-fPIC'
8400       ;;
8401     esac
8402   else
8403     # PORTME Check for flag to pass linker flags through the system compiler.
8404     case $host_os in
8405     aix*)
8406       lt_prog_compiler_wl='-Wl,'
8407       if test "$host_cpu" = ia64; then
8408         # AIX 5 now supports IA64 processor
8409         lt_prog_compiler_static='-Bstatic'
8410       else
8411         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8412       fi
8413       ;;
8414       darwin*)
8415         # PIC is the default on this platform
8416         # Common symbols not allowed in MH_DYLIB files
8417        case $cc_basename in
8418          xlc*)
8419          lt_prog_compiler_pic='-qnocommon'
8420          lt_prog_compiler_wl='-Wl,'
8421          ;;
8422        esac
8423        ;;
8424
8425     mingw* | pw32* | os2*)
8426       # This hack is so that the source file can tell whether it is being
8427       # built for inclusion in a dll (and should export symbols for example).
8428       lt_prog_compiler_pic='-DDLL_EXPORT'
8429       ;;
8430
8431     hpux9* | hpux10* | hpux11*)
8432       lt_prog_compiler_wl='-Wl,'
8433       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8434       # not for PA HP-UX.
8435       case $host_cpu in
8436       hppa*64*|ia64*)
8437         # +Z the default
8438         ;;
8439       *)
8440         lt_prog_compiler_pic='+Z'
8441         ;;
8442       esac
8443       # Is there a better lt_prog_compiler_static that works with the bundled CC?
8444       lt_prog_compiler_static='${wl}-a ${wl}archive'
8445       ;;
8446
8447     irix5* | irix6* | nonstopux*)
8448       lt_prog_compiler_wl='-Wl,'
8449       # PIC (with -KPIC) is the default.
8450       lt_prog_compiler_static='-non_shared'
8451       ;;
8452
8453     newsos6)
8454       lt_prog_compiler_pic='-KPIC'
8455       lt_prog_compiler_static='-Bstatic'
8456       ;;
8457
8458     linux* | k*bsd*-gnu)
8459       case $cc_basename in
8460       icc* | ecc*)
8461         lt_prog_compiler_wl='-Wl,'
8462         lt_prog_compiler_pic='-KPIC'
8463         lt_prog_compiler_static='-static'
8464         ;;
8465       pgcc* | pgf77* | pgf90* | pgf95*)
8466         # Portland Group compilers (*not* the Pentium gcc compiler,
8467         # which looks to be a dead project)
8468         lt_prog_compiler_wl='-Wl,'
8469         lt_prog_compiler_pic='-fpic'
8470         lt_prog_compiler_static='-Bstatic'
8471         ;;
8472       ccc*)
8473         lt_prog_compiler_wl='-Wl,'
8474         # All Alpha code is PIC.
8475         lt_prog_compiler_static='-non_shared'
8476         ;;
8477       esac
8478       ;;
8479
8480     osf3* | osf4* | osf5*)
8481       lt_prog_compiler_wl='-Wl,'
8482       # All OSF/1 code is PIC.
8483       lt_prog_compiler_static='-non_shared'
8484       ;;
8485
8486     solaris*)
8487       lt_prog_compiler_pic='-KPIC'
8488       lt_prog_compiler_static='-Bstatic'
8489       case $cc_basename in
8490       f77* | f90* | f95*)
8491         lt_prog_compiler_wl='-Qoption ld ';;
8492       *)
8493         lt_prog_compiler_wl='-Wl,';;
8494       esac
8495       ;;
8496
8497     sunos4*)
8498       lt_prog_compiler_wl='-Qoption ld '
8499       lt_prog_compiler_pic='-PIC'
8500       lt_prog_compiler_static='-Bstatic'
8501       ;;
8502
8503     sysv4 | sysv4.2uw2* | sysv4.3*)
8504       lt_prog_compiler_wl='-Wl,'
8505       lt_prog_compiler_pic='-KPIC'
8506       lt_prog_compiler_static='-Bstatic'
8507       ;;
8508
8509     sysv4*MP*)
8510       if test -d /usr/nec ;then
8511         lt_prog_compiler_pic='-Kconform_pic'
8512         lt_prog_compiler_static='-Bstatic'
8513       fi
8514       ;;
8515
8516     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8517       lt_prog_compiler_wl='-Wl,'
8518       lt_prog_compiler_pic='-KPIC'
8519       lt_prog_compiler_static='-Bstatic'
8520       ;;
8521
8522     unicos*)
8523       lt_prog_compiler_wl='-Wl,'
8524       lt_prog_compiler_can_build_shared=no
8525       ;;
8526
8527     uts4*)
8528       lt_prog_compiler_pic='-pic'
8529       lt_prog_compiler_static='-Bstatic'
8530       ;;
8531
8532     *)
8533       lt_prog_compiler_can_build_shared=no
8534       ;;
8535     esac
8536   fi
8537
8538 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
8539 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
8540
8541 #
8542 # Check to make sure the PIC flag actually works.
8543 #
8544 if test -n "$lt_prog_compiler_pic"; then
8545   
8546 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8547 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
8548 if test "${lt_prog_compiler_pic_works+set}" = set; then
8549   echo $ECHO_N "(cached) $ECHO_C" >&6
8550 else
8551   lt_prog_compiler_pic_works=no
8552   ac_outfile=conftest.$ac_objext
8553    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8554    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8555    # Insert the option either (1) after the last *FLAGS variable, or
8556    # (2) before a word containing "conftest.", or (3) at the end.
8557    # Note that $ac_compile itself does not contain backslashes and begins
8558    # with a dollar sign (not a hyphen), so the echo should work correctly.
8559    # The option is referenced via a variable to avoid confusing sed.
8560    lt_compile=`echo "$ac_compile" | $SED \
8561    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8562    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8563    -e 's:$: $lt_compiler_flag:'`
8564    (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
8565    (eval "$lt_compile" 2>conftest.err)
8566    ac_status=$?
8567    cat conftest.err >&5
8568    echo "$as_me:__oline__: \$? = $ac_status" >&5
8569    if (exit $ac_status) && test -s "$ac_outfile"; then
8570      # The compiler can only warn and ignore the option if not recognized
8571      # So say no if there are warnings other than the usual output.
8572      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8573      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8574      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8575        lt_prog_compiler_pic_works=yes
8576      fi
8577    fi
8578    $rm conftest*
8579
8580 fi
8581 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
8582 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
8583
8584 if test x"$lt_prog_compiler_pic_works" = xyes; then
8585     case $lt_prog_compiler_pic in
8586      "" | " "*) ;;
8587      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8588      esac
8589 else
8590     lt_prog_compiler_pic=
8591      lt_prog_compiler_can_build_shared=no
8592 fi
8593
8594 fi
8595 case $host_os in
8596   # For platforms which do not support PIC, -DPIC is meaningless:
8597   *djgpp*)
8598     lt_prog_compiler_pic=
8599     ;;
8600   *)
8601     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8602     ;;
8603 esac
8604
8605 #
8606 # Check to make sure the static flag actually works.
8607 #
8608 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8609 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8610 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
8611 if test "${lt_prog_compiler_static_works+set}" = set; then
8612   echo $ECHO_N "(cached) $ECHO_C" >&6
8613 else
8614   lt_prog_compiler_static_works=no
8615    save_LDFLAGS="$LDFLAGS"
8616    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8617    printf "$lt_simple_link_test_code" > conftest.$ac_ext
8618    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8619      # The linker can only warn and ignore the option if not recognized
8620      # So say no if there are warnings
8621      if test -s conftest.err; then
8622        # Append any errors to the config.log.
8623        cat conftest.err 1>&5
8624        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8625        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8626        if diff conftest.exp conftest.er2 >/dev/null; then
8627          lt_prog_compiler_static_works=yes
8628        fi
8629      else
8630        lt_prog_compiler_static_works=yes
8631      fi
8632    fi
8633    $rm conftest*
8634    LDFLAGS="$save_LDFLAGS"
8635
8636 fi
8637 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
8638 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
8639
8640 if test x"$lt_prog_compiler_static_works" = xyes; then
8641     :
8642 else
8643     lt_prog_compiler_static=
8644 fi
8645
8646
8647 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8648 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
8649 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8650   echo $ECHO_N "(cached) $ECHO_C" >&6
8651 else
8652   lt_cv_prog_compiler_c_o=no
8653    $rm -r conftest 2>/dev/null
8654    mkdir conftest
8655    cd conftest
8656    mkdir out
8657    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8658
8659    lt_compiler_flag="-o out/conftest2.$ac_objext"
8660    # Insert the option either (1) after the last *FLAGS variable, or
8661    # (2) before a word containing "conftest.", or (3) at the end.
8662    # Note that $ac_compile itself does not contain backslashes and begins
8663    # with a dollar sign (not a hyphen), so the echo should work correctly.
8664    lt_compile=`echo "$ac_compile" | $SED \
8665    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8666    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8667    -e 's:$: $lt_compiler_flag:'`
8668    (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
8669    (eval "$lt_compile" 2>out/conftest.err)
8670    ac_status=$?
8671    cat out/conftest.err >&5
8672    echo "$as_me:__oline__: \$? = $ac_status" >&5
8673    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8674    then
8675      # The compiler can only warn and ignore the option if not recognized
8676      # So say no if there are warnings
8677      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8678      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8679      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8680        lt_cv_prog_compiler_c_o=yes
8681      fi
8682    fi
8683    chmod u+w . 2>&5
8684    $rm conftest*
8685    # SGI C++ compiler will create directory out/ii_files/ for
8686    # template instantiation
8687    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
8688    $rm out/* && rmdir out
8689    cd ..
8690    rmdir conftest
8691    $rm conftest*
8692
8693 fi
8694 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8695 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
8696
8697
8698 hard_links="nottested"
8699 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8700   # do not overwrite the value of need_locks provided by the user
8701   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8702 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
8703   hard_links=yes
8704   $rm conftest*
8705   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8706   touch conftest.a
8707   ln conftest.a conftest.b 2>&5 || hard_links=no
8708   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8709   { echo "$as_me:$LINENO: result: $hard_links" >&5
8710 echo "${ECHO_T}$hard_links" >&6; }
8711   if test "$hard_links" = no; then
8712     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8713 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8714     need_locks=warn
8715   fi
8716 else
8717   need_locks=no
8718 fi
8719
8720 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8721 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
8722
8723   runpath_var=
8724   allow_undefined_flag=
8725   enable_shared_with_static_runtimes=no
8726   archive_cmds=
8727   archive_expsym_cmds=
8728   old_archive_From_new_cmds=
8729   old_archive_from_expsyms_cmds=
8730   export_dynamic_flag_spec=
8731   whole_archive_flag_spec=
8732   thread_safe_flag_spec=
8733   hardcode_libdir_flag_spec=
8734   hardcode_libdir_flag_spec_ld=
8735   hardcode_libdir_separator=
8736   hardcode_direct=no
8737   hardcode_minus_L=no
8738   hardcode_shlibpath_var=unsupported
8739   link_all_deplibs=unknown
8740   hardcode_automatic=no
8741   module_cmds=
8742   module_expsym_cmds=
8743   always_export_symbols=no
8744   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8745   # include_expsyms should be a list of space-separated symbols to be *always*
8746   # included in the symbol list
8747   include_expsyms=
8748   # exclude_expsyms can be an extended regexp of symbols to exclude
8749   # it will be wrapped by ` (' and `)$', so one must not match beginning or
8750   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8751   # as well as any symbol that contains `d'.
8752   exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
8753   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8754   # platforms (ab)use it in PIC code, but their linkers get confused if
8755   # the symbol is explicitly referenced.  Since portable code cannot
8756   # rely on this symbol name, it's probably fine to never include it in
8757   # preloaded symbol tables.
8758   extract_expsyms_cmds=
8759   # Just being paranoid about ensuring that cc_basename is set.
8760   for cc_temp in $compiler""; do
8761   case $cc_temp in
8762     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8763     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8764     \-*) ;;
8765     *) break;;
8766   esac
8767 done
8768 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8769
8770   case $host_os in
8771   cygwin* | mingw* | pw32*)
8772     # FIXME: the MSVC++ port hasn't been tested in a loooong time
8773     # When not using gcc, we currently assume that we are using
8774     # Microsoft Visual C++.
8775     if test "$GCC" != yes; then
8776       with_gnu_ld=no
8777     fi
8778     ;;
8779   interix*)
8780     # we just hope/assume this is gcc and not c89 (= MSVC++)
8781     with_gnu_ld=yes
8782     ;;
8783   openbsd*)
8784     with_gnu_ld=no
8785     ;;
8786   esac
8787
8788   ld_shlibs=yes
8789   if test "$with_gnu_ld" = yes; then
8790     # If archive_cmds runs LD, not CC, wlarc should be empty
8791     wlarc='${wl}'
8792
8793     # Set some defaults for GNU ld with shared library support. These
8794     # are reset later if shared libraries are not supported. Putting them
8795     # here allows them to be overridden if necessary.
8796     runpath_var=LD_RUN_PATH
8797     hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8798     export_dynamic_flag_spec='${wl}--export-dynamic'
8799     # ancient GNU ld didn't support --whole-archive et. al.
8800     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8801         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8802       else
8803         whole_archive_flag_spec=
8804     fi
8805     supports_anon_versioning=no
8806     case `$LD -v 2>/dev/null` in
8807       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8808       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8809       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8810       *\ 2.11.*) ;; # other 2.11 versions
8811       *) supports_anon_versioning=yes ;;
8812     esac
8813
8814     # See if GNU ld supports shared libraries.
8815     case $host_os in
8816     aix3* | aix4* | aix5*)
8817       # On AIX/PPC, the GNU linker is very broken
8818       if test "$host_cpu" != ia64; then
8819         ld_shlibs=no
8820         cat <<EOF 1>&2
8821
8822 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8823 *** to be unable to reliably create shared libraries on AIX.
8824 *** Therefore, libtool is disabling shared libraries support.  If you
8825 *** really care for shared libraries, you may want to modify your PATH
8826 *** so that a non-GNU linker is found, and then restart.
8827
8828 EOF
8829       fi
8830       ;;
8831
8832     amigaos*)
8833       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)'
8834       hardcode_libdir_flag_spec='-L$libdir'
8835       hardcode_minus_L=yes
8836
8837       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8838       # that the semantics of dynamic libraries on AmigaOS, at least up
8839       # to version 4, is to share data among multiple programs linked
8840       # with the same dynamic library.  Since this doesn't match the
8841       # behavior of shared libraries on other platforms, we can't use
8842       # them.
8843       ld_shlibs=no
8844       ;;
8845
8846     beos*)
8847       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8848         allow_undefined_flag=unsupported
8849         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8850         # support --undefined.  This deserves some investigation.  FIXME
8851         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8852       else
8853         ld_shlibs=no
8854       fi
8855       ;;
8856
8857     cygwin* | mingw* | pw32*)
8858       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8859       # as there is no search path for DLLs.
8860       hardcode_libdir_flag_spec='-L$libdir'
8861       allow_undefined_flag=unsupported
8862       always_export_symbols=no
8863       enable_shared_with_static_runtimes=yes
8864       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
8865
8866       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8867         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8868         # If the export-symbols file already is a .def file (1st line
8869         # is EXPORTS), use it as is; otherwise, prepend...
8870         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8871           cp $export_symbols $output_objdir/$soname.def;
8872         else
8873           echo EXPORTS > $output_objdir/$soname.def;
8874           cat $export_symbols >> $output_objdir/$soname.def;
8875         fi~
8876         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8877       else
8878         ld_shlibs=no
8879       fi
8880       ;;
8881
8882     interix3*)
8883       hardcode_direct=no
8884       hardcode_shlibpath_var=no
8885       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8886       export_dynamic_flag_spec='${wl}-E'
8887       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8888       # Instead, shared libraries are loaded at an image base (0x10000000 by
8889       # default) and relocated if they conflict, which is a slow very memory
8890       # consuming and fragmenting process.  To avoid this, we pick a random,
8891       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8892       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8893       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8894       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'
8895       ;;
8896
8897     linux* | k*bsd*-gnu)
8898       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8899         tmp_addflag=
8900         case $cc_basename,$host_cpu in
8901         pgcc*)                          # Portland Group C compiler
8902           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'
8903           tmp_addflag=' $pic_flag'
8904           ;;
8905         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
8906           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'
8907           tmp_addflag=' $pic_flag -Mnomain' ;;
8908         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
8909           tmp_addflag=' -i_dynamic' ;;
8910         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
8911           tmp_addflag=' -i_dynamic -nofor_main' ;;
8912         ifc* | ifort*)                  # Intel Fortran compiler
8913           tmp_addflag=' -nofor_main' ;;
8914         esac
8915         archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8916
8917         if test $supports_anon_versioning = yes; then
8918           archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8919   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8920   $echo "local: *; };" >> $output_objdir/$libname.ver~
8921           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8922         fi
8923         link_all_deplibs=no
8924       else
8925         ld_shlibs=no
8926       fi
8927       ;;
8928
8929     netbsd* | netbsdelf*-gnu)
8930       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8931         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8932         wlarc=
8933       else
8934         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8935         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8936       fi
8937       ;;
8938
8939     solaris*)
8940       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8941         ld_shlibs=no
8942         cat <<EOF 1>&2
8943
8944 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8945 *** create shared libraries on Solaris systems.  Therefore, libtool
8946 *** is disabling shared libraries support.  We urge you to upgrade GNU
8947 *** binutils to release 2.9.1 or newer.  Another option is to modify
8948 *** your PATH or compiler configuration so that the native linker is
8949 *** used, and then restart.
8950
8951 EOF
8952       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8953         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8954         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8955       else
8956         ld_shlibs=no
8957       fi
8958       ;;
8959
8960     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8961       case `$LD -v 2>&1` in
8962         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 
8963         ld_shlibs=no
8964         cat <<_LT_EOF 1>&2
8965
8966 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8967 *** reliably create shared libraries on SCO systems.  Therefore, libtool
8968 *** is disabling shared libraries support.  We urge you to upgrade GNU
8969 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8970 *** your PATH or compiler configuration so that the native linker is
8971 *** used, and then restart.
8972
8973 _LT_EOF
8974         ;;
8975         *)
8976           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8977             hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
8978             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
8979             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
8980           else
8981             ld_shlibs=no
8982           fi
8983         ;;
8984       esac
8985       ;;
8986
8987     sunos4*)
8988       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8989       wlarc=
8990       hardcode_direct=yes
8991       hardcode_shlibpath_var=no
8992       ;;
8993
8994     *)
8995       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8996         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8997         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8998       else
8999         ld_shlibs=no
9000       fi
9001       ;;
9002     esac
9003
9004     if test "$ld_shlibs" = no; then
9005       runpath_var=
9006       hardcode_libdir_flag_spec=
9007       export_dynamic_flag_spec=
9008       whole_archive_flag_spec=
9009     fi
9010   else
9011     # PORTME fill in a description of your system's linker (not GNU ld)
9012     case $host_os in
9013     aix3*)
9014       allow_undefined_flag=unsupported
9015       always_export_symbols=yes
9016       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'
9017       # Note: this linker hardcodes the directories in LIBPATH if there
9018       # are no directories specified by -L.
9019       hardcode_minus_L=yes
9020       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9021         # Neither direct hardcoding nor static linking is supported with a
9022         # broken collect2.
9023         hardcode_direct=unsupported
9024       fi
9025       ;;
9026
9027     aix4* | aix5*)
9028       if test "$host_cpu" = ia64; then
9029         # On IA64, the linker does run time linking by default, so we don't
9030         # have to do anything special.
9031         aix_use_runtimelinking=no
9032         exp_sym_flag='-Bexport'
9033         no_entry_flag=""
9034       else
9035         # If we're using GNU nm, then we don't want the "-C" option.
9036         # -C means demangle to AIX nm, but means don't demangle with GNU nm
9037         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
9038           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'
9039         else
9040           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'
9041         fi
9042         aix_use_runtimelinking=no
9043
9044         # Test if we are trying to use run time linking or normal
9045         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9046         # need to do runtime linking.
9047         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9048           for ld_flag in $LDFLAGS; do
9049           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9050             aix_use_runtimelinking=yes
9051             break
9052           fi
9053           done
9054           ;;
9055         esac
9056
9057         exp_sym_flag='-bexport'
9058         no_entry_flag='-bnoentry'
9059       fi
9060
9061       # When large executables or shared objects are built, AIX ld can
9062       # have problems creating the table of contents.  If linking a library
9063       # or program results in "error TOC overflow" add -mminimal-toc to
9064       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9065       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9066
9067       archive_cmds=''
9068       hardcode_direct=yes
9069       hardcode_libdir_separator=':'
9070       link_all_deplibs=yes
9071
9072       if test "$GCC" = yes; then
9073         case $host_os in aix4.[012]|aix4.[012].*)
9074         # We only want to do this on AIX 4.2 and lower, the check
9075         # below for broken collect2 doesn't work under 4.3+
9076           collect2name=`${CC} -print-prog-name=collect2`
9077           if test -f "$collect2name" && \
9078            strings "$collect2name" | grep resolve_lib_name >/dev/null
9079           then
9080           # We have reworked collect2
9081           hardcode_direct=yes
9082           else
9083           # We have old collect2
9084           hardcode_direct=unsupported
9085           # It fails to find uninstalled libraries when the uninstalled
9086           # path is not listed in the libpath.  Setting hardcode_minus_L
9087           # to unsupported forces relinking
9088           hardcode_minus_L=yes
9089           hardcode_libdir_flag_spec='-L$libdir'
9090           hardcode_libdir_separator=
9091           fi
9092           ;;
9093         esac
9094         shared_flag='-shared'
9095         if test "$aix_use_runtimelinking" = yes; then
9096           shared_flag="$shared_flag "'${wl}-G'
9097         fi
9098       else
9099         # not using gcc
9100         if test "$host_cpu" = ia64; then
9101         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9102         # chokes on -Wl,-G. The following line is correct:
9103           shared_flag='-G'
9104         else
9105           if test "$aix_use_runtimelinking" = yes; then
9106             shared_flag='${wl}-G'
9107           else
9108             shared_flag='${wl}-bM:SRE'
9109           fi
9110         fi
9111       fi
9112
9113       # It seems that -bexpall does not export symbols beginning with
9114       # underscore (_), so it is better to generate a list of symbols to export.
9115       always_export_symbols=yes
9116       if test "$aix_use_runtimelinking" = yes; then
9117         # Warning - without using the other runtime loading flags (-brtl),
9118         # -berok will link without error, but may produce a broken library.
9119         allow_undefined_flag='-berok'
9120        # Determine the default libpath from the value encoded in an empty executable.
9121        cat >conftest.$ac_ext <<_ACEOF
9122 /* confdefs.h.  */
9123 _ACEOF
9124 cat confdefs.h >>conftest.$ac_ext
9125 cat >>conftest.$ac_ext <<_ACEOF
9126 /* end confdefs.h.  */
9127
9128 int
9129 main ()
9130 {
9131
9132   ;
9133   return 0;
9134 }
9135 _ACEOF
9136 rm -f conftest.$ac_objext conftest$ac_exeext
9137 if { (ac_try="$ac_link"
9138 case "(($ac_try" in
9139   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9140   *) ac_try_echo=$ac_try;;
9141 esac
9142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9143   (eval "$ac_link") 2>conftest.er1
9144   ac_status=$?
9145   grep -v '^ *+' conftest.er1 >conftest.err
9146   rm -f conftest.er1
9147   cat conftest.err >&5
9148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9149   (exit $ac_status); } && {
9150          test -z "$ac_c_werror_flag" ||
9151          test ! -s conftest.err
9152        } && test -s conftest$ac_exeext &&
9153        $as_test_x conftest$ac_exeext; then
9154   
9155 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9156 }'`
9157 # Check for a 64-bit object if we didn't find anything.
9158 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; }
9159 }'`; fi
9160 else
9161   echo "$as_me: failed program was:" >&5
9162 sed 's/^/| /' conftest.$ac_ext >&5
9163
9164         
9165 fi
9166
9167 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9168       conftest$ac_exeext conftest.$ac_ext
9169 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9170
9171        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9172         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"
9173        else
9174         if test "$host_cpu" = ia64; then
9175           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9176           allow_undefined_flag="-z nodefs"
9177           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"
9178         else
9179          # Determine the default libpath from the value encoded in an empty executable.
9180          cat >conftest.$ac_ext <<_ACEOF
9181 /* confdefs.h.  */
9182 _ACEOF
9183 cat confdefs.h >>conftest.$ac_ext
9184 cat >>conftest.$ac_ext <<_ACEOF
9185 /* end confdefs.h.  */
9186
9187 int
9188 main ()
9189 {
9190
9191   ;
9192   return 0;
9193 }
9194 _ACEOF
9195 rm -f conftest.$ac_objext conftest$ac_exeext
9196 if { (ac_try="$ac_link"
9197 case "(($ac_try" in
9198   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9199   *) ac_try_echo=$ac_try;;
9200 esac
9201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9202   (eval "$ac_link") 2>conftest.er1
9203   ac_status=$?
9204   grep -v '^ *+' conftest.er1 >conftest.err
9205   rm -f conftest.er1
9206   cat conftest.err >&5
9207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9208   (exit $ac_status); } && {
9209          test -z "$ac_c_werror_flag" ||
9210          test ! -s conftest.err
9211        } && test -s conftest$ac_exeext &&
9212        $as_test_x conftest$ac_exeext; then
9213   
9214 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9215 }'`
9216 # Check for a 64-bit object if we didn't find anything.
9217 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; }
9218 }'`; fi
9219 else
9220   echo "$as_me: failed program was:" >&5
9221 sed 's/^/| /' conftest.$ac_ext >&5
9222
9223         
9224 fi
9225
9226 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9227       conftest$ac_exeext conftest.$ac_ext
9228 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9229
9230          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9231           # Warning - without using the other run time loading flags,
9232           # -berok will link without error, but may produce a broken library.
9233           no_undefined_flag=' ${wl}-bernotok'
9234           allow_undefined_flag=' ${wl}-berok'
9235           # Exported symbols can be pulled into shared objects from archives
9236           whole_archive_flag_spec='$convenience'
9237           archive_cmds_need_lc=yes
9238           # This is similar to how AIX traditionally builds its shared libraries.
9239           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'
9240         fi
9241       fi
9242       ;;
9243
9244     amigaos*)
9245       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)'
9246       hardcode_libdir_flag_spec='-L$libdir'
9247       hardcode_minus_L=yes
9248       # see comment about different semantics on the GNU ld section
9249       ld_shlibs=no
9250       ;;
9251
9252     bsdi[45]*)
9253       export_dynamic_flag_spec=-rdynamic
9254       ;;
9255
9256     cygwin* | mingw* | pw32*)
9257       # When not using gcc, we currently assume that we are using
9258       # Microsoft Visual C++.
9259       # hardcode_libdir_flag_spec is actually meaningless, as there is
9260       # no search path for DLLs.
9261       hardcode_libdir_flag_spec=' '
9262       allow_undefined_flag=unsupported
9263       # Tell ltmain to make .lib files, not .a files.
9264       libext=lib
9265       # Tell ltmain to make .dll files, not .so files.
9266       shrext_cmds=".dll"
9267       # FIXME: Setting linknames here is a bad hack.
9268       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
9269       # The linker will automatically build a .lib file if we build a DLL.
9270       old_archive_From_new_cmds='true'
9271       # FIXME: Should let the user specify the lib program.
9272       old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
9273       fix_srcfile_path='`cygpath -w "$srcfile"`'
9274       enable_shared_with_static_runtimes=yes
9275       ;;
9276
9277     darwin* | rhapsody*)
9278       case $host_os in
9279         rhapsody* | darwin1.[012])
9280          allow_undefined_flag='${wl}-undefined ${wl}suppress'
9281          ;;
9282        *) # Darwin 1.3 on
9283          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
9284            allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9285          else
9286            case ${MACOSX_DEPLOYMENT_TARGET} in
9287              10.[012])
9288                allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9289                ;;
9290              10.*)
9291                allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
9292                ;;
9293            esac
9294          fi
9295          ;;
9296       esac
9297       archive_cmds_need_lc=no
9298       hardcode_direct=no
9299       hardcode_automatic=yes
9300       hardcode_shlibpath_var=unsupported
9301       whole_archive_flag_spec=''
9302       link_all_deplibs=yes
9303     if test "$GCC" = yes ; then
9304         output_verbose_link_cmd='echo'
9305         archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9306       module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9307       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
9308       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}'
9309       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}'
9310     else
9311       case $cc_basename in
9312         xlc*)
9313          output_verbose_link_cmd='echo'
9314          archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
9315          module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9316           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
9317          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}'
9318           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}'
9319           ;;
9320        *)
9321          ld_shlibs=no
9322           ;;
9323       esac
9324     fi
9325       ;;
9326
9327     dgux*)
9328       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9329       hardcode_libdir_flag_spec='-L$libdir'
9330       hardcode_shlibpath_var=no
9331       ;;
9332
9333     freebsd1*)
9334       ld_shlibs=no
9335       ;;
9336
9337     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9338     # support.  Future versions do this automatically, but an explicit c++rt0.o
9339     # does not break anything, and helps significantly (at the cost of a little
9340     # extra space).
9341     freebsd2.2*)
9342       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9343       hardcode_libdir_flag_spec='-R$libdir'
9344       hardcode_direct=yes
9345       hardcode_shlibpath_var=no
9346       ;;
9347
9348     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9349     freebsd2*)
9350       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9351       hardcode_direct=yes
9352       hardcode_minus_L=yes
9353       hardcode_shlibpath_var=no
9354       ;;
9355
9356     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9357     freebsd* | dragonfly*)
9358       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9359       hardcode_libdir_flag_spec='-R$libdir'
9360       hardcode_direct=yes
9361       hardcode_shlibpath_var=no
9362       ;;
9363
9364     hpux9*)
9365       if test "$GCC" = yes; then
9366         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'
9367       else
9368         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'
9369       fi
9370       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9371       hardcode_libdir_separator=:
9372       hardcode_direct=yes
9373
9374       # hardcode_minus_L: Not really in the search PATH,
9375       # but as the default location of the library.
9376       hardcode_minus_L=yes
9377       export_dynamic_flag_spec='${wl}-E'
9378       ;;
9379
9380     hpux10*)
9381       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9382         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9383       else
9384         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9385       fi
9386       if test "$with_gnu_ld" = no; then
9387         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9388         hardcode_libdir_separator=:
9389
9390         hardcode_direct=yes
9391         export_dynamic_flag_spec='${wl}-E'
9392
9393         # hardcode_minus_L: Not really in the search PATH,
9394         # but as the default location of the library.
9395         hardcode_minus_L=yes
9396       fi
9397       ;;
9398
9399     hpux11*)
9400       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9401         case $host_cpu in
9402         hppa*64*)
9403           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9404           ;;
9405         ia64*)
9406           archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9407           ;;
9408         *)
9409           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9410           ;;
9411         esac
9412       else
9413         case $host_cpu in
9414         hppa*64*)
9415           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9416           ;;
9417         ia64*)
9418           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9419           ;;
9420         *)
9421           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9422           ;;
9423         esac
9424       fi
9425       if test "$with_gnu_ld" = no; then
9426         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9427         hardcode_libdir_separator=:
9428
9429         case $host_cpu in
9430         hppa*64*|ia64*)
9431           hardcode_libdir_flag_spec_ld='+b $libdir'
9432           hardcode_direct=no
9433           hardcode_shlibpath_var=no
9434           ;;
9435         *)
9436           hardcode_direct=yes
9437           export_dynamic_flag_spec='${wl}-E'
9438
9439           # hardcode_minus_L: Not really in the search PATH,
9440           # but as the default location of the library.
9441           hardcode_minus_L=yes
9442           ;;
9443         esac
9444       fi
9445       ;;
9446
9447     irix5* | irix6* | nonstopux*)
9448       if test "$GCC" = yes; then
9449         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'
9450       else
9451         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'
9452         hardcode_libdir_flag_spec_ld='-rpath $libdir'
9453       fi
9454       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9455       hardcode_libdir_separator=:
9456       link_all_deplibs=yes
9457       ;;
9458
9459     netbsd* | netbsdelf*-gnu)
9460       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9461         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9462       else
9463         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9464       fi
9465       hardcode_libdir_flag_spec='-R$libdir'
9466       hardcode_direct=yes
9467       hardcode_shlibpath_var=no
9468       ;;
9469
9470     newsos6)
9471       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9472       hardcode_direct=yes
9473       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9474       hardcode_libdir_separator=:
9475       hardcode_shlibpath_var=no
9476       ;;
9477
9478     openbsd*)
9479       hardcode_direct=yes
9480       hardcode_shlibpath_var=no
9481       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9482         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9483         archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9484         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9485         export_dynamic_flag_spec='${wl}-E'
9486       else
9487        case $host_os in
9488          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9489            archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9490            hardcode_libdir_flag_spec='-R$libdir'
9491            ;;
9492          *)
9493            archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9494            hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9495            ;;
9496        esac
9497       fi
9498       ;;
9499
9500     os2*)
9501       hardcode_libdir_flag_spec='-L$libdir'
9502       hardcode_minus_L=yes
9503       allow_undefined_flag=unsupported
9504       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'
9505       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9506       ;;
9507
9508     osf3*)
9509       if test "$GCC" = yes; then
9510         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9511         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'
9512       else
9513         allow_undefined_flag=' -expect_unresolved \*'
9514         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'
9515       fi
9516       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9517       hardcode_libdir_separator=:
9518       ;;
9519
9520     osf4* | osf5*)      # as osf3* with the addition of -msym flag
9521       if test "$GCC" = yes; then
9522         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9523         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'
9524         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9525       else
9526         allow_undefined_flag=' -expect_unresolved \*'
9527         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'
9528         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
9529         $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'
9530
9531         # Both c and cxx compiler support -rpath directly
9532         hardcode_libdir_flag_spec='-rpath $libdir'
9533       fi
9534       hardcode_libdir_separator=:
9535       ;;
9536
9537     solaris*)
9538       no_undefined_flag=' -z text'
9539       if test "$GCC" = yes; then
9540         wlarc='${wl}'
9541         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9542         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9543           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
9544       else
9545         wlarc=''
9546         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9547         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9548         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
9549       fi
9550       hardcode_libdir_flag_spec='-R$libdir'
9551       hardcode_shlibpath_var=no
9552       case $host_os in
9553       solaris2.[0-5] | solaris2.[0-5].*) ;;
9554       *)
9555         # The compiler driver will combine linker options so we
9556         # cannot just pass the convience library names through
9557         # without $wl, iff we do not link with $LD.
9558         # Luckily, gcc supports the same syntax we need for Sun Studio.
9559         # Supported since Solaris 2.6 (maybe 2.5.1?)
9560         case $wlarc in
9561         '')
9562           whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
9563         *)
9564           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' ;;
9565         esac ;;
9566       esac
9567       link_all_deplibs=yes
9568       ;;
9569
9570     sunos4*)
9571       if test "x$host_vendor" = xsequent; then
9572         # Use $CC to link under sequent, because it throws in some extra .o
9573         # files that make .init and .fini sections work.
9574         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9575       else
9576         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9577       fi
9578       hardcode_libdir_flag_spec='-L$libdir'
9579       hardcode_direct=yes
9580       hardcode_minus_L=yes
9581       hardcode_shlibpath_var=no
9582       ;;
9583
9584     sysv4)
9585       case $host_vendor in
9586         sni)
9587           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9588           hardcode_direct=yes # is this really true???
9589         ;;
9590         siemens)
9591           ## LD is ld it makes a PLAMLIB
9592           ## CC just makes a GrossModule.
9593           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9594           reload_cmds='$CC -r -o $output$reload_objs'
9595           hardcode_direct=no
9596         ;;
9597         motorola)
9598           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9599           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9600         ;;
9601       esac
9602       runpath_var='LD_RUN_PATH'
9603       hardcode_shlibpath_var=no
9604       ;;
9605
9606     sysv4.3*)
9607       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9608       hardcode_shlibpath_var=no
9609       export_dynamic_flag_spec='-Bexport'
9610       ;;
9611
9612     sysv4*MP*)
9613       if test -d /usr/nec; then
9614         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9615         hardcode_shlibpath_var=no
9616         runpath_var=LD_RUN_PATH
9617         hardcode_runpath_var=yes
9618         ld_shlibs=yes
9619       fi
9620       ;;
9621
9622     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
9623       no_undefined_flag='${wl}-z,text'
9624       archive_cmds_need_lc=no
9625       hardcode_shlibpath_var=no
9626       runpath_var='LD_RUN_PATH'
9627
9628       if test "$GCC" = yes; then
9629         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9630         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9631       else
9632         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9633         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9634       fi
9635       ;;
9636
9637     sysv5* | sco3.2v5* | sco5v6*)
9638       # Note: We can NOT use -z defs as we might desire, because we do not
9639       # link with -lc, and that would cause any symbols used from libc to
9640       # always be unresolved, which means just about no library would
9641       # ever link correctly.  If we're not using GNU ld we use -z text
9642       # though, which does catch some bad symbols but isn't as heavy-handed
9643       # as -z defs.
9644       no_undefined_flag='${wl}-z,text'
9645       allow_undefined_flag='${wl}-z,nodefs'
9646       archive_cmds_need_lc=no
9647       hardcode_shlibpath_var=no
9648       hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
9649       hardcode_libdir_separator=':'
9650       link_all_deplibs=yes
9651       export_dynamic_flag_spec='${wl}-Bexport'
9652       runpath_var='LD_RUN_PATH'
9653
9654       if test "$GCC" = yes; then
9655         archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9656         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9657       else
9658         archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9659         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9660       fi
9661       ;;
9662
9663     uts4*)
9664       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9665       hardcode_libdir_flag_spec='-L$libdir'
9666       hardcode_shlibpath_var=no
9667       ;;
9668
9669     *)
9670       ld_shlibs=no
9671       ;;
9672     esac
9673   fi
9674
9675 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9676 echo "${ECHO_T}$ld_shlibs" >&6; }
9677 test "$ld_shlibs" = no && can_build_shared=no
9678
9679 #
9680 # Do we need to explicitly link libc?
9681 #
9682 case "x$archive_cmds_need_lc" in
9683 x|xyes)
9684   # Assume -lc should be added
9685   archive_cmds_need_lc=yes
9686
9687   if test "$enable_shared" = yes && test "$GCC" = yes; then
9688     case $archive_cmds in
9689     *'~'*)
9690       # FIXME: we may have to deal with multi-command sequences.
9691       ;;
9692     '$CC '*)
9693       # Test whether the compiler implicitly links with -lc since on some
9694       # systems, -lgcc has to come before -lc. If gcc already passes -lc
9695       # to ld, don't add -lc before -lgcc.
9696       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9697 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
9698       $rm conftest*
9699       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9700
9701       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9702   (eval $ac_compile) 2>&5
9703   ac_status=$?
9704   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9705   (exit $ac_status); } 2>conftest.err; then
9706         soname=conftest
9707         lib=conftest
9708         libobjs=conftest.$ac_objext
9709         deplibs=
9710         wl=$lt_prog_compiler_wl
9711         pic_flag=$lt_prog_compiler_pic
9712         compiler_flags=-v
9713         linker_flags=-v
9714         verstring=
9715         output_objdir=.
9716         libname=conftest
9717         lt_save_allow_undefined_flag=$allow_undefined_flag
9718         allow_undefined_flag=
9719         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
9720   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
9721   ac_status=$?
9722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9723   (exit $ac_status); }
9724         then
9725           archive_cmds_need_lc=no
9726         else
9727           archive_cmds_need_lc=yes
9728         fi
9729         allow_undefined_flag=$lt_save_allow_undefined_flag
9730       else
9731         cat conftest.err 1>&5
9732       fi
9733       $rm conftest*
9734       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9735 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
9736       ;;
9737     esac
9738   fi
9739   ;;
9740 esac
9741
9742 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9743 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
9744 library_names_spec=
9745 libname_spec='lib$name'
9746 soname_spec=
9747 shrext_cmds=".so"
9748 postinstall_cmds=
9749 postuninstall_cmds=
9750 finish_cmds=
9751 finish_eval=
9752 shlibpath_var=
9753 shlibpath_overrides_runpath=unknown
9754 version_type=none
9755 dynamic_linker="$host_os ld.so"
9756 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9757 if test "$GCC" = yes; then
9758   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9759   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9760     # if the path contains ";" then we assume it to be the separator
9761     # otherwise default to the standard path separator (i.e. ":") - it is
9762     # assumed that no part of a normal pathname contains ";" but that should
9763     # okay in the real world where ";" in dirpaths is itself problematic.
9764     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9765   else
9766     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9767   fi
9768 else
9769   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9770 fi
9771 need_lib_prefix=unknown
9772 hardcode_into_libs=no
9773
9774 # when you set need_version to no, make sure it does not cause -set_version
9775 # flags to be left without arguments
9776 need_version=unknown
9777
9778 case $host_os in
9779 aix3*)
9780   version_type=linux
9781   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9782   shlibpath_var=LIBPATH
9783
9784   # AIX 3 has no versioning support, so we append a major version to the name.
9785   soname_spec='${libname}${release}${shared_ext}$major'
9786   ;;
9787
9788 aix4* | aix5*)
9789   version_type=linux
9790   need_lib_prefix=no
9791   need_version=no
9792   hardcode_into_libs=yes
9793   if test "$host_cpu" = ia64; then
9794     # AIX 5 supports IA64
9795     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9796     shlibpath_var=LD_LIBRARY_PATH
9797   else
9798     # With GCC up to 2.95.x, collect2 would create an import file
9799     # for dependence libraries.  The import file would start with
9800     # the line `#! .'.  This would cause the generated library to
9801     # depend on `.', always an invalid library.  This was fixed in
9802     # development snapshots of GCC prior to 3.0.
9803     case $host_os in
9804       aix4 | aix4.[01] | aix4.[01].*)
9805       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9806            echo ' yes '
9807            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9808         :
9809       else
9810         can_build_shared=no
9811       fi
9812       ;;
9813     esac
9814     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9815     # soname into executable. Probably we can add versioning support to
9816     # collect2, so additional links can be useful in future.
9817     if test "$aix_use_runtimelinking" = yes; then
9818       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9819       # instead of lib<name>.a to let people know that these are not
9820       # typical AIX shared libraries.
9821       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9822     else
9823       # We preserve .a as extension for shared libraries through AIX4.2
9824       # and later when we are not doing run time linking.
9825       library_names_spec='${libname}${release}.a $libname.a'
9826       soname_spec='${libname}${release}${shared_ext}$major'
9827     fi
9828     shlibpath_var=LIBPATH
9829   fi
9830   ;;
9831
9832 amigaos*)
9833   library_names_spec='$libname.ixlibrary $libname.a'
9834   # Create ${libname}_ixlibrary.a entries in /sys/libs.
9835   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'
9836   ;;
9837
9838 beos*)
9839   library_names_spec='${libname}${shared_ext}'
9840   dynamic_linker="$host_os ld.so"
9841   shlibpath_var=LIBRARY_PATH
9842   ;;
9843
9844 bsdi[45]*)
9845   version_type=linux
9846   need_version=no
9847   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9848   soname_spec='${libname}${release}${shared_ext}$major'
9849   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9850   shlibpath_var=LD_LIBRARY_PATH
9851   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9852   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9853   # the default ld.so.conf also contains /usr/contrib/lib and
9854   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9855   # libtool to hard-code these into programs
9856   ;;
9857
9858 cygwin* | mingw* | pw32*)
9859   version_type=windows
9860   shrext_cmds=".dll"
9861   need_version=no
9862   need_lib_prefix=no
9863
9864   case $GCC,$host_os in
9865   yes,cygwin* | yes,mingw* | yes,pw32*)
9866     library_names_spec='$libname.dll.a'
9867     # DLL is installed to $(libdir)/../bin by postinstall_cmds
9868     postinstall_cmds='base_file=`basename \${file}`~
9869       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9870       dldir=$destdir/`dirname \$dlpath`~
9871       test -d \$dldir || mkdir -p \$dldir~
9872       $install_prog $dir/$dlname \$dldir/$dlname~
9873       chmod a+x \$dldir/$dlname'
9874     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9875       dlpath=$dir/\$dldll~
9876        $rm \$dlpath'
9877     shlibpath_overrides_runpath=yes
9878
9879     case $host_os in
9880     cygwin*)
9881       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9882       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9883       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9884       ;;
9885     mingw*)
9886       # MinGW DLLs use traditional 'lib' prefix
9887       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9888       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9889       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9890         # It is most probably a Windows format PATH printed by
9891         # mingw gcc, but we are running on Cygwin. Gcc prints its search
9892         # path with ; separators, and with drive letters. We can handle the
9893         # drive letters (cygwin fileutils understands them), so leave them,
9894         # especially as we might pass files found there to a mingw objdump,
9895         # which wouldn't understand a cygwinified path. Ahh.
9896         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9897       else
9898         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9899       fi
9900       ;;
9901     pw32*)
9902       # pw32 DLLs use 'pw' prefix rather than 'lib'
9903       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9904       ;;
9905     esac
9906     ;;
9907
9908   *)
9909     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9910     ;;
9911   esac
9912   dynamic_linker='Win32 ld.exe'
9913   # FIXME: first we should search . and the directory the executable is in
9914   shlibpath_var=PATH
9915   ;;
9916
9917 darwin* | rhapsody*)
9918   dynamic_linker="$host_os dyld"
9919   version_type=darwin
9920   need_lib_prefix=no
9921   need_version=no
9922   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9923   soname_spec='${libname}${release}${major}$shared_ext'
9924   shlibpath_overrides_runpath=yes
9925   shlibpath_var=DYLD_LIBRARY_PATH
9926   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9927   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9928   if test "$GCC" = yes; then
9929     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"`
9930   else
9931     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9932   fi
9933   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9934   ;;
9935
9936 dgux*)
9937   version_type=linux
9938   need_lib_prefix=no
9939   need_version=no
9940   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9941   soname_spec='${libname}${release}${shared_ext}$major'
9942   shlibpath_var=LD_LIBRARY_PATH
9943   ;;
9944
9945 freebsd1*)
9946   dynamic_linker=no
9947   ;;
9948
9949 freebsd* | dragonfly*)
9950   # DragonFly does not have aout.  When/if they implement a new
9951   # versioning mechanism, adjust this.
9952   if test -x /usr/bin/objformat; then
9953     objformat=`/usr/bin/objformat`
9954   else
9955     case $host_os in
9956     freebsd[123]*) objformat=aout ;;
9957     *) objformat=elf ;;
9958     esac
9959   fi
9960   version_type=freebsd-$objformat
9961   case $version_type in
9962     freebsd-elf*)
9963       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9964       need_version=no
9965       need_lib_prefix=no
9966       ;;
9967     freebsd-*)
9968       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9969       need_version=yes
9970       ;;
9971   esac
9972   shlibpath_var=LD_LIBRARY_PATH
9973   case $host_os in
9974   freebsd2*)
9975     shlibpath_overrides_runpath=yes
9976     ;;
9977   freebsd3.[01]* | freebsdelf3.[01]*)
9978     shlibpath_overrides_runpath=yes
9979     hardcode_into_libs=yes
9980     ;;
9981   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9982   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9983     shlibpath_overrides_runpath=no
9984     hardcode_into_libs=yes
9985     ;;
9986   freebsd*) # from 4.6 on
9987     shlibpath_overrides_runpath=yes
9988     hardcode_into_libs=yes
9989     ;;
9990   esac
9991   ;;
9992
9993 gnu*)
9994   version_type=linux
9995   need_lib_prefix=no
9996   need_version=no
9997   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9998   soname_spec='${libname}${release}${shared_ext}$major'
9999   shlibpath_var=LD_LIBRARY_PATH
10000   hardcode_into_libs=yes
10001   ;;
10002
10003 hpux9* | hpux10* | hpux11*)
10004   # Give a soname corresponding to the major version so that dld.sl refuses to
10005   # link against other versions.
10006   version_type=sunos
10007   need_lib_prefix=no
10008   need_version=no
10009   case $host_cpu in
10010   ia64*)
10011     shrext_cmds='.so'
10012     hardcode_into_libs=yes
10013     dynamic_linker="$host_os dld.so"
10014     shlibpath_var=LD_LIBRARY_PATH
10015     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10016     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10017     soname_spec='${libname}${release}${shared_ext}$major'
10018     if test "X$HPUX_IA64_MODE" = X32; then
10019       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10020     else
10021       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10022     fi
10023     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10024     ;;
10025    hppa*64*)
10026      shrext_cmds='.sl'
10027      hardcode_into_libs=yes
10028      dynamic_linker="$host_os dld.sl"
10029      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10030      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10031      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10032      soname_spec='${libname}${release}${shared_ext}$major'
10033      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10034      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10035      ;;
10036    *)
10037     shrext_cmds='.sl'
10038     dynamic_linker="$host_os dld.sl"
10039     shlibpath_var=SHLIB_PATH
10040     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10041     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10042     soname_spec='${libname}${release}${shared_ext}$major'
10043     ;;
10044   esac
10045   # HP-UX runs *really* slowly unless shared libraries are mode 555.
10046   postinstall_cmds='chmod 555 $lib'
10047   ;;
10048
10049 interix3*)
10050   version_type=linux
10051   need_lib_prefix=no
10052   need_version=no
10053   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10054   soname_spec='${libname}${release}${shared_ext}$major'
10055   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10056   shlibpath_var=LD_LIBRARY_PATH
10057   shlibpath_overrides_runpath=no
10058   hardcode_into_libs=yes
10059   ;;
10060
10061 irix5* | irix6* | nonstopux*)
10062   case $host_os in
10063     nonstopux*) version_type=nonstopux ;;
10064     *)
10065         if test "$lt_cv_prog_gnu_ld" = yes; then
10066                 version_type=linux
10067         else
10068                 version_type=irix
10069         fi ;;
10070   esac
10071   need_lib_prefix=no
10072   need_version=no
10073   soname_spec='${libname}${release}${shared_ext}$major'
10074   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10075   case $host_os in
10076   irix5* | nonstopux*)
10077     libsuff= shlibsuff=
10078     ;;
10079   *)
10080     case $LD in # libtool.m4 will add one of these switches to LD
10081     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10082       libsuff= shlibsuff= libmagic=32-bit;;
10083     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10084       libsuff=32 shlibsuff=N32 libmagic=N32;;
10085     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10086       libsuff=64 shlibsuff=64 libmagic=64-bit;;
10087     *) libsuff= shlibsuff= libmagic=never-match;;
10088     esac
10089     ;;
10090   esac
10091   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10092   shlibpath_overrides_runpath=no
10093   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10094   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10095   hardcode_into_libs=yes
10096   ;;
10097
10098 # No shared lib support for Linux oldld, aout, or coff.
10099 linux*oldld* | linux*aout* | linux*coff*)
10100   dynamic_linker=no
10101   ;;
10102
10103 # This must be Linux ELF.
10104 linux* | k*bsd*-gnu)
10105   version_type=linux
10106   need_lib_prefix=no
10107   need_version=no
10108   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10109   soname_spec='${libname}${release}${shared_ext}$major'
10110   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10111   shlibpath_var=LD_LIBRARY_PATH
10112   shlibpath_overrides_runpath=no
10113   # This implies no fast_install, which is unacceptable.
10114   # Some rework will be needed to allow for fast_install
10115   # before this can be enabled.
10116   hardcode_into_libs=yes
10117
10118   # Append ld.so.conf contents to the search path
10119   if test -f /etc/ld.so.conf; then
10120     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' ' '`
10121     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10122   fi
10123
10124   # We used to test for /lib/ld.so.1 and disable shared libraries on
10125   # powerpc, because MkLinux only supported shared libraries with the
10126   # GNU dynamic linker.  Since this was broken with cross compilers,
10127   # most powerpc-linux boxes support dynamic linking these days and
10128   # people can always --disable-shared, the test was removed, and we
10129   # assume the GNU/Linux dynamic linker is in use.
10130   dynamic_linker='GNU/Linux ld.so'
10131   ;;
10132
10133 netbsdelf*-gnu)
10134   version_type=linux
10135   need_lib_prefix=no
10136   need_version=no
10137   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10138   soname_spec='${libname}${release}${shared_ext}$major'
10139   shlibpath_var=LD_LIBRARY_PATH
10140   shlibpath_overrides_runpath=no
10141   hardcode_into_libs=yes
10142   dynamic_linker='NetBSD ld.elf_so'
10143   ;;
10144
10145 netbsd*)
10146   version_type=sunos
10147   need_lib_prefix=no
10148   need_version=no
10149   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10150     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10151     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10152     dynamic_linker='NetBSD (a.out) ld.so'
10153   else
10154     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10155     soname_spec='${libname}${release}${shared_ext}$major'
10156     dynamic_linker='NetBSD ld.elf_so'
10157   fi
10158   shlibpath_var=LD_LIBRARY_PATH
10159   shlibpath_overrides_runpath=yes
10160   hardcode_into_libs=yes
10161   ;;
10162
10163 newsos6)
10164   version_type=linux
10165   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10166   shlibpath_var=LD_LIBRARY_PATH
10167   shlibpath_overrides_runpath=yes
10168   ;;
10169
10170 nto-qnx*)
10171   version_type=linux
10172   need_lib_prefix=no
10173   need_version=no
10174   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10175   soname_spec='${libname}${release}${shared_ext}$major'
10176   shlibpath_var=LD_LIBRARY_PATH
10177   shlibpath_overrides_runpath=yes
10178   ;;
10179
10180 openbsd*)
10181   version_type=sunos
10182   sys_lib_dlsearch_path_spec="/usr/lib"
10183   need_lib_prefix=no
10184   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10185   case $host_os in
10186     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10187     *)                         need_version=no  ;;
10188   esac
10189   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10190   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10191   shlibpath_var=LD_LIBRARY_PATH
10192   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10193     case $host_os in
10194       openbsd2.[89] | openbsd2.[89].*)
10195         shlibpath_overrides_runpath=no
10196         ;;
10197       *)
10198         shlibpath_overrides_runpath=yes
10199         ;;
10200       esac
10201   else
10202     shlibpath_overrides_runpath=yes
10203   fi
10204   ;;
10205
10206 os2*)
10207   libname_spec='$name'
10208   shrext_cmds=".dll"
10209   need_lib_prefix=no
10210   library_names_spec='$libname${shared_ext} $libname.a'
10211   dynamic_linker='OS/2 ld.exe'
10212   shlibpath_var=LIBPATH
10213   ;;
10214
10215 osf3* | osf4* | osf5*)
10216   version_type=osf
10217   need_lib_prefix=no
10218   need_version=no
10219   soname_spec='${libname}${release}${shared_ext}$major'
10220   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10221   shlibpath_var=LD_LIBRARY_PATH
10222   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10223   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10224   ;;
10225
10226 solaris*)
10227   version_type=linux
10228   need_lib_prefix=no
10229   need_version=no
10230   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10231   soname_spec='${libname}${release}${shared_ext}$major'
10232   shlibpath_var=LD_LIBRARY_PATH
10233   shlibpath_overrides_runpath=yes
10234   hardcode_into_libs=yes
10235   # ldd complains unless libraries are executable
10236   postinstall_cmds='chmod +x $lib'
10237   ;;
10238
10239 sunos4*)
10240   version_type=sunos
10241   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10242   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10243   shlibpath_var=LD_LIBRARY_PATH
10244   shlibpath_overrides_runpath=yes
10245   if test "$with_gnu_ld" = yes; then
10246     need_lib_prefix=no
10247   fi
10248   need_version=yes
10249   ;;
10250
10251 sysv4 | sysv4.3*)
10252   version_type=linux
10253   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10254   soname_spec='${libname}${release}${shared_ext}$major'
10255   shlibpath_var=LD_LIBRARY_PATH
10256   case $host_vendor in
10257     sni)
10258       shlibpath_overrides_runpath=no
10259       need_lib_prefix=no
10260       export_dynamic_flag_spec='${wl}-Blargedynsym'
10261       runpath_var=LD_RUN_PATH
10262       ;;
10263     siemens)
10264       need_lib_prefix=no
10265       ;;
10266     motorola)
10267       need_lib_prefix=no
10268       need_version=no
10269       shlibpath_overrides_runpath=no
10270       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10271       ;;
10272   esac
10273   ;;
10274
10275 sysv4*MP*)
10276   if test -d /usr/nec ;then
10277     version_type=linux
10278     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10279     soname_spec='$libname${shared_ext}.$major'
10280     shlibpath_var=LD_LIBRARY_PATH
10281   fi
10282   ;;
10283
10284 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10285   version_type=freebsd-elf
10286   need_lib_prefix=no
10287   need_version=no
10288   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10289   soname_spec='${libname}${release}${shared_ext}$major'
10290   shlibpath_var=LD_LIBRARY_PATH
10291   hardcode_into_libs=yes
10292   if test "$with_gnu_ld" = yes; then
10293     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10294     shlibpath_overrides_runpath=no
10295   else
10296     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10297     shlibpath_overrides_runpath=yes
10298     case $host_os in
10299       sco3.2v5*)
10300         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10301         ;;
10302     esac
10303   fi
10304   sys_lib_dlsearch_path_spec='/usr/lib'
10305   ;;
10306
10307 uts4*)
10308   version_type=linux
10309   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10310   soname_spec='${libname}${release}${shared_ext}$major'
10311   shlibpath_var=LD_LIBRARY_PATH
10312   ;;
10313
10314 *)
10315   dynamic_linker=no
10316   ;;
10317 esac
10318 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10319 echo "${ECHO_T}$dynamic_linker" >&6; }
10320 test "$dynamic_linker" = no && can_build_shared=no
10321
10322 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10323 if test "$GCC" = yes; then
10324   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10325 fi
10326
10327 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10328 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
10329 hardcode_action=
10330 if test -n "$hardcode_libdir_flag_spec" || \
10331    test -n "$runpath_var" || \
10332    test "X$hardcode_automatic" = "Xyes" ; then
10333
10334   # We can hardcode non-existant directories.
10335   if test "$hardcode_direct" != no &&
10336      # If the only mechanism to avoid hardcoding is shlibpath_var, we
10337      # have to relink, otherwise we might link with an installed library
10338      # when we should be linking with a yet-to-be-installed one
10339      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
10340      test "$hardcode_minus_L" != no; then
10341     # Linking always hardcodes the temporary library directory.
10342     hardcode_action=relink
10343   else
10344     # We can link without hardcoding, and we can hardcode nonexisting dirs.
10345     hardcode_action=immediate
10346   fi
10347 else
10348   # We cannot hardcode anything, or else we can only hardcode existing
10349   # directories.
10350   hardcode_action=unsupported
10351 fi
10352 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
10353 echo "${ECHO_T}$hardcode_action" >&6; }
10354
10355 if test "$hardcode_action" = relink; then
10356   # Fast installation is not supported
10357   enable_fast_install=no
10358 elif test "$shlibpath_overrides_runpath" = yes ||
10359      test "$enable_shared" = no; then
10360   # Fast installation is not necessary
10361   enable_fast_install=needless
10362 fi
10363
10364 striplib=
10365 old_striplib=
10366 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10367 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
10368 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
10369   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10370   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10371   { echo "$as_me:$LINENO: result: yes" >&5
10372 echo "${ECHO_T}yes" >&6; }
10373 else
10374 # FIXME - insert some real tests, host_os isn't really good enough
10375   case $host_os in
10376    darwin*)
10377        if test -n "$STRIP" ; then
10378          striplib="$STRIP -x"
10379          { echo "$as_me:$LINENO: result: yes" >&5
10380 echo "${ECHO_T}yes" >&6; }
10381        else
10382   { echo "$as_me:$LINENO: result: no" >&5
10383 echo "${ECHO_T}no" >&6; }
10384 fi
10385        ;;
10386    *)
10387   { echo "$as_me:$LINENO: result: no" >&5
10388 echo "${ECHO_T}no" >&6; }
10389     ;;
10390   esac
10391 fi
10392
10393 if test "x$enable_dlopen" != xyes; then
10394   enable_dlopen=unknown
10395   enable_dlopen_self=unknown
10396   enable_dlopen_self_static=unknown
10397 else
10398   lt_cv_dlopen=no
10399   lt_cv_dlopen_libs=
10400
10401   case $host_os in
10402   beos*)
10403     lt_cv_dlopen="load_add_on"
10404     lt_cv_dlopen_libs=
10405     lt_cv_dlopen_self=yes
10406     ;;
10407
10408   mingw* | pw32*)
10409     lt_cv_dlopen="LoadLibrary"
10410     lt_cv_dlopen_libs=
10411    ;;
10412
10413   cygwin*)
10414     lt_cv_dlopen="dlopen"
10415     lt_cv_dlopen_libs=
10416    ;;
10417
10418   darwin*)
10419   # if libdl is installed we need to link against it
10420     { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10421 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10422 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10423   echo $ECHO_N "(cached) $ECHO_C" >&6
10424 else
10425   ac_check_lib_save_LIBS=$LIBS
10426 LIBS="-ldl  $LIBS"
10427 cat >conftest.$ac_ext <<_ACEOF
10428 /* confdefs.h.  */
10429 _ACEOF
10430 cat confdefs.h >>conftest.$ac_ext
10431 cat >>conftest.$ac_ext <<_ACEOF
10432 /* end confdefs.h.  */
10433
10434 /* Override any GCC internal prototype to avoid an error.
10435    Use char because int might match the return type of a GCC
10436    builtin and then its argument prototype would still apply.  */
10437 #ifdef __cplusplus
10438 extern "C"
10439 #endif
10440 char dlopen ();
10441 int
10442 main ()
10443 {
10444 return dlopen ();
10445   ;
10446   return 0;
10447 }
10448 _ACEOF
10449 rm -f conftest.$ac_objext conftest$ac_exeext
10450 if { (ac_try="$ac_link"
10451 case "(($ac_try" in
10452   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10453   *) ac_try_echo=$ac_try;;
10454 esac
10455 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10456   (eval "$ac_link") 2>conftest.er1
10457   ac_status=$?
10458   grep -v '^ *+' conftest.er1 >conftest.err
10459   rm -f conftest.er1
10460   cat conftest.err >&5
10461   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10462   (exit $ac_status); } && {
10463          test -z "$ac_c_werror_flag" ||
10464          test ! -s conftest.err
10465        } && test -s conftest$ac_exeext &&
10466        $as_test_x conftest$ac_exeext; then
10467   ac_cv_lib_dl_dlopen=yes
10468 else
10469   echo "$as_me: failed program was:" >&5
10470 sed 's/^/| /' conftest.$ac_ext >&5
10471
10472         ac_cv_lib_dl_dlopen=no
10473 fi
10474
10475 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10476       conftest$ac_exeext conftest.$ac_ext
10477 LIBS=$ac_check_lib_save_LIBS
10478 fi
10479 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10480 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10481 if test $ac_cv_lib_dl_dlopen = yes; then
10482   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10483 else
10484   
10485     lt_cv_dlopen="dyld"
10486     lt_cv_dlopen_libs=
10487     lt_cv_dlopen_self=yes
10488     
10489 fi
10490
10491    ;;
10492
10493   *)
10494     { echo "$as_me:$LINENO: checking for shl_load" >&5
10495 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
10496 if test "${ac_cv_func_shl_load+set}" = set; then
10497   echo $ECHO_N "(cached) $ECHO_C" >&6
10498 else
10499   cat >conftest.$ac_ext <<_ACEOF
10500 /* confdefs.h.  */
10501 _ACEOF
10502 cat confdefs.h >>conftest.$ac_ext
10503 cat >>conftest.$ac_ext <<_ACEOF
10504 /* end confdefs.h.  */
10505 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10506    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10507 #define shl_load innocuous_shl_load
10508
10509 /* System header to define __stub macros and hopefully few prototypes,
10510     which can conflict with char shl_load (); below.
10511     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10512     <limits.h> exists even on freestanding compilers.  */
10513
10514 #ifdef __STDC__
10515 # include <limits.h>
10516 #else
10517 # include <assert.h>
10518 #endif
10519
10520 #undef shl_load
10521
10522 /* Override any GCC internal prototype to avoid an error.
10523    Use char because int might match the return type of a GCC
10524    builtin and then its argument prototype would still apply.  */
10525 #ifdef __cplusplus
10526 extern "C"
10527 #endif
10528 char shl_load ();
10529 /* The GNU C library defines this for functions which it implements
10530     to always fail with ENOSYS.  Some functions are actually named
10531     something starting with __ and the normal name is an alias.  */
10532 #if defined __stub_shl_load || defined __stub___shl_load
10533 choke me
10534 #endif
10535
10536 int
10537 main ()
10538 {
10539 return shl_load ();
10540   ;
10541   return 0;
10542 }
10543 _ACEOF
10544 rm -f conftest.$ac_objext conftest$ac_exeext
10545 if { (ac_try="$ac_link"
10546 case "(($ac_try" in
10547   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10548   *) ac_try_echo=$ac_try;;
10549 esac
10550 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10551   (eval "$ac_link") 2>conftest.er1
10552   ac_status=$?
10553   grep -v '^ *+' conftest.er1 >conftest.err
10554   rm -f conftest.er1
10555   cat conftest.err >&5
10556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10557   (exit $ac_status); } && {
10558          test -z "$ac_c_werror_flag" ||
10559          test ! -s conftest.err
10560        } && test -s conftest$ac_exeext &&
10561        $as_test_x conftest$ac_exeext; then
10562   ac_cv_func_shl_load=yes
10563 else
10564   echo "$as_me: failed program was:" >&5
10565 sed 's/^/| /' conftest.$ac_ext >&5
10566
10567         ac_cv_func_shl_load=no
10568 fi
10569
10570 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10571       conftest$ac_exeext conftest.$ac_ext
10572 fi
10573 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10574 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
10575 if test $ac_cv_func_shl_load = yes; then
10576   lt_cv_dlopen="shl_load"
10577 else
10578   { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10579 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
10580 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10581   echo $ECHO_N "(cached) $ECHO_C" >&6
10582 else
10583   ac_check_lib_save_LIBS=$LIBS
10584 LIBS="-ldld  $LIBS"
10585 cat >conftest.$ac_ext <<_ACEOF
10586 /* confdefs.h.  */
10587 _ACEOF
10588 cat confdefs.h >>conftest.$ac_ext
10589 cat >>conftest.$ac_ext <<_ACEOF
10590 /* end confdefs.h.  */
10591
10592 /* Override any GCC internal prototype to avoid an error.
10593    Use char because int might match the return type of a GCC
10594    builtin and then its argument prototype would still apply.  */
10595 #ifdef __cplusplus
10596 extern "C"
10597 #endif
10598 char shl_load ();
10599 int
10600 main ()
10601 {
10602 return shl_load ();
10603   ;
10604   return 0;
10605 }
10606 _ACEOF
10607 rm -f conftest.$ac_objext conftest$ac_exeext
10608 if { (ac_try="$ac_link"
10609 case "(($ac_try" in
10610   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10611   *) ac_try_echo=$ac_try;;
10612 esac
10613 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10614   (eval "$ac_link") 2>conftest.er1
10615   ac_status=$?
10616   grep -v '^ *+' conftest.er1 >conftest.err
10617   rm -f conftest.er1
10618   cat conftest.err >&5
10619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10620   (exit $ac_status); } && {
10621          test -z "$ac_c_werror_flag" ||
10622          test ! -s conftest.err
10623        } && test -s conftest$ac_exeext &&
10624        $as_test_x conftest$ac_exeext; then
10625   ac_cv_lib_dld_shl_load=yes
10626 else
10627   echo "$as_me: failed program was:" >&5
10628 sed 's/^/| /' conftest.$ac_ext >&5
10629
10630         ac_cv_lib_dld_shl_load=no
10631 fi
10632
10633 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10634       conftest$ac_exeext conftest.$ac_ext
10635 LIBS=$ac_check_lib_save_LIBS
10636 fi
10637 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10638 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
10639 if test $ac_cv_lib_dld_shl_load = yes; then
10640   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
10641 else
10642   { echo "$as_me:$LINENO: checking for dlopen" >&5
10643 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
10644 if test "${ac_cv_func_dlopen+set}" = set; then
10645   echo $ECHO_N "(cached) $ECHO_C" >&6
10646 else
10647   cat >conftest.$ac_ext <<_ACEOF
10648 /* confdefs.h.  */
10649 _ACEOF
10650 cat confdefs.h >>conftest.$ac_ext
10651 cat >>conftest.$ac_ext <<_ACEOF
10652 /* end confdefs.h.  */
10653 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10654    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10655 #define dlopen innocuous_dlopen
10656
10657 /* System header to define __stub macros and hopefully few prototypes,
10658     which can conflict with char dlopen (); below.
10659     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10660     <limits.h> exists even on freestanding compilers.  */
10661
10662 #ifdef __STDC__
10663 # include <limits.h>
10664 #else
10665 # include <assert.h>
10666 #endif
10667
10668 #undef dlopen
10669
10670 /* Override any GCC internal prototype to avoid an error.
10671    Use char because int might match the return type of a GCC
10672    builtin and then its argument prototype would still apply.  */
10673 #ifdef __cplusplus
10674 extern "C"
10675 #endif
10676 char dlopen ();
10677 /* The GNU C library defines this for functions which it implements
10678     to always fail with ENOSYS.  Some functions are actually named
10679     something starting with __ and the normal name is an alias.  */
10680 #if defined __stub_dlopen || defined __stub___dlopen
10681 choke me
10682 #endif
10683
10684 int
10685 main ()
10686 {
10687 return dlopen ();
10688   ;
10689   return 0;
10690 }
10691 _ACEOF
10692 rm -f conftest.$ac_objext conftest$ac_exeext
10693 if { (ac_try="$ac_link"
10694 case "(($ac_try" in
10695   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10696   *) ac_try_echo=$ac_try;;
10697 esac
10698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10699   (eval "$ac_link") 2>conftest.er1
10700   ac_status=$?
10701   grep -v '^ *+' conftest.er1 >conftest.err
10702   rm -f conftest.er1
10703   cat conftest.err >&5
10704   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10705   (exit $ac_status); } && {
10706          test -z "$ac_c_werror_flag" ||
10707          test ! -s conftest.err
10708        } && test -s conftest$ac_exeext &&
10709        $as_test_x conftest$ac_exeext; then
10710   ac_cv_func_dlopen=yes
10711 else
10712   echo "$as_me: failed program was:" >&5
10713 sed 's/^/| /' conftest.$ac_ext >&5
10714
10715         ac_cv_func_dlopen=no
10716 fi
10717
10718 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10719       conftest$ac_exeext conftest.$ac_ext
10720 fi
10721 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10722 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
10723 if test $ac_cv_func_dlopen = yes; then
10724   lt_cv_dlopen="dlopen"
10725 else
10726   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10727 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10728 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10729   echo $ECHO_N "(cached) $ECHO_C" >&6
10730 else
10731   ac_check_lib_save_LIBS=$LIBS
10732 LIBS="-ldl  $LIBS"
10733 cat >conftest.$ac_ext <<_ACEOF
10734 /* confdefs.h.  */
10735 _ACEOF
10736 cat confdefs.h >>conftest.$ac_ext
10737 cat >>conftest.$ac_ext <<_ACEOF
10738 /* end confdefs.h.  */
10739
10740 /* Override any GCC internal prototype to avoid an error.
10741    Use char because int might match the return type of a GCC
10742    builtin and then its argument prototype would still apply.  */
10743 #ifdef __cplusplus
10744 extern "C"
10745 #endif
10746 char dlopen ();
10747 int
10748 main ()
10749 {
10750 return dlopen ();
10751   ;
10752   return 0;
10753 }
10754 _ACEOF
10755 rm -f conftest.$ac_objext conftest$ac_exeext
10756 if { (ac_try="$ac_link"
10757 case "(($ac_try" in
10758   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10759   *) ac_try_echo=$ac_try;;
10760 esac
10761 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10762   (eval "$ac_link") 2>conftest.er1
10763   ac_status=$?
10764   grep -v '^ *+' conftest.er1 >conftest.err
10765   rm -f conftest.er1
10766   cat conftest.err >&5
10767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10768   (exit $ac_status); } && {
10769          test -z "$ac_c_werror_flag" ||
10770          test ! -s conftest.err
10771        } && test -s conftest$ac_exeext &&
10772        $as_test_x conftest$ac_exeext; then
10773   ac_cv_lib_dl_dlopen=yes
10774 else
10775   echo "$as_me: failed program was:" >&5
10776 sed 's/^/| /' conftest.$ac_ext >&5
10777
10778         ac_cv_lib_dl_dlopen=no
10779 fi
10780
10781 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10782       conftest$ac_exeext conftest.$ac_ext
10783 LIBS=$ac_check_lib_save_LIBS
10784 fi
10785 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10786 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10787 if test $ac_cv_lib_dl_dlopen = yes; then
10788   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10789 else
10790   { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10791 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10792 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10793   echo $ECHO_N "(cached) $ECHO_C" >&6
10794 else
10795   ac_check_lib_save_LIBS=$LIBS
10796 LIBS="-lsvld  $LIBS"
10797 cat >conftest.$ac_ext <<_ACEOF
10798 /* confdefs.h.  */
10799 _ACEOF
10800 cat confdefs.h >>conftest.$ac_ext
10801 cat >>conftest.$ac_ext <<_ACEOF
10802 /* end confdefs.h.  */
10803
10804 /* Override any GCC internal prototype to avoid an error.
10805    Use char because int might match the return type of a GCC
10806    builtin and then its argument prototype would still apply.  */
10807 #ifdef __cplusplus
10808 extern "C"
10809 #endif
10810 char dlopen ();
10811 int
10812 main ()
10813 {
10814 return dlopen ();
10815   ;
10816   return 0;
10817 }
10818 _ACEOF
10819 rm -f conftest.$ac_objext conftest$ac_exeext
10820 if { (ac_try="$ac_link"
10821 case "(($ac_try" in
10822   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10823   *) ac_try_echo=$ac_try;;
10824 esac
10825 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10826   (eval "$ac_link") 2>conftest.er1
10827   ac_status=$?
10828   grep -v '^ *+' conftest.er1 >conftest.err
10829   rm -f conftest.er1
10830   cat conftest.err >&5
10831   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10832   (exit $ac_status); } && {
10833          test -z "$ac_c_werror_flag" ||
10834          test ! -s conftest.err
10835        } && test -s conftest$ac_exeext &&
10836        $as_test_x conftest$ac_exeext; then
10837   ac_cv_lib_svld_dlopen=yes
10838 else
10839   echo "$as_me: failed program was:" >&5
10840 sed 's/^/| /' conftest.$ac_ext >&5
10841
10842         ac_cv_lib_svld_dlopen=no
10843 fi
10844
10845 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10846       conftest$ac_exeext conftest.$ac_ext
10847 LIBS=$ac_check_lib_save_LIBS
10848 fi
10849 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10850 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10851 if test $ac_cv_lib_svld_dlopen = yes; then
10852   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10853 else
10854   { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10855 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10856 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10857   echo $ECHO_N "(cached) $ECHO_C" >&6
10858 else
10859   ac_check_lib_save_LIBS=$LIBS
10860 LIBS="-ldld  $LIBS"
10861 cat >conftest.$ac_ext <<_ACEOF
10862 /* confdefs.h.  */
10863 _ACEOF
10864 cat confdefs.h >>conftest.$ac_ext
10865 cat >>conftest.$ac_ext <<_ACEOF
10866 /* end confdefs.h.  */
10867
10868 /* Override any GCC internal prototype to avoid an error.
10869    Use char because int might match the return type of a GCC
10870    builtin and then its argument prototype would still apply.  */
10871 #ifdef __cplusplus
10872 extern "C"
10873 #endif
10874 char dld_link ();
10875 int
10876 main ()
10877 {
10878 return dld_link ();
10879   ;
10880   return 0;
10881 }
10882 _ACEOF
10883 rm -f conftest.$ac_objext conftest$ac_exeext
10884 if { (ac_try="$ac_link"
10885 case "(($ac_try" in
10886   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10887   *) ac_try_echo=$ac_try;;
10888 esac
10889 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10890   (eval "$ac_link") 2>conftest.er1
10891   ac_status=$?
10892   grep -v '^ *+' conftest.er1 >conftest.err
10893   rm -f conftest.er1
10894   cat conftest.err >&5
10895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10896   (exit $ac_status); } && {
10897          test -z "$ac_c_werror_flag" ||
10898          test ! -s conftest.err
10899        } && test -s conftest$ac_exeext &&
10900        $as_test_x conftest$ac_exeext; then
10901   ac_cv_lib_dld_dld_link=yes
10902 else
10903   echo "$as_me: failed program was:" >&5
10904 sed 's/^/| /' conftest.$ac_ext >&5
10905
10906         ac_cv_lib_dld_dld_link=no
10907 fi
10908
10909 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10910       conftest$ac_exeext conftest.$ac_ext
10911 LIBS=$ac_check_lib_save_LIBS
10912 fi
10913 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10914 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10915 if test $ac_cv_lib_dld_dld_link = yes; then
10916   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
10917 fi
10918
10919               
10920 fi
10921
10922             
10923 fi
10924
10925           
10926 fi
10927
10928         
10929 fi
10930
10931       
10932 fi
10933
10934     ;;
10935   esac
10936
10937   if test "x$lt_cv_dlopen" != xno; then
10938     enable_dlopen=yes
10939   else
10940     enable_dlopen=no
10941   fi
10942
10943   case $lt_cv_dlopen in
10944   dlopen)
10945     save_CPPFLAGS="$CPPFLAGS"
10946     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10947
10948     save_LDFLAGS="$LDFLAGS"
10949     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10950
10951     save_LIBS="$LIBS"
10952     LIBS="$lt_cv_dlopen_libs $LIBS"
10953
10954     { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10955 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
10956 if test "${lt_cv_dlopen_self+set}" = set; then
10957   echo $ECHO_N "(cached) $ECHO_C" >&6
10958 else
10959           if test "$cross_compiling" = yes; then :
10960   lt_cv_dlopen_self=cross
10961 else
10962   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10963   lt_status=$lt_dlunknown
10964   cat > conftest.$ac_ext <<EOF
10965 #line __oline__ "configure"
10966 #include "confdefs.h"
10967
10968 #if HAVE_DLFCN_H
10969 #include <dlfcn.h>
10970 #endif
10971
10972 #include <stdio.h>
10973
10974 #ifdef RTLD_GLOBAL
10975 #  define LT_DLGLOBAL           RTLD_GLOBAL
10976 #else
10977 #  ifdef DL_GLOBAL
10978 #    define LT_DLGLOBAL         DL_GLOBAL
10979 #  else
10980 #    define LT_DLGLOBAL         0
10981 #  endif
10982 #endif
10983
10984 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10985    find out it does not work in some platform. */
10986 #ifndef LT_DLLAZY_OR_NOW
10987 #  ifdef RTLD_LAZY
10988 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10989 #  else
10990 #    ifdef DL_LAZY
10991 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10992 #    else
10993 #      ifdef RTLD_NOW
10994 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10995 #      else
10996 #        ifdef DL_NOW
10997 #          define LT_DLLAZY_OR_NOW      DL_NOW
10998 #        else
10999 #          define LT_DLLAZY_OR_NOW      0
11000 #        endif
11001 #      endif
11002 #    endif
11003 #  endif
11004 #endif
11005
11006 #ifdef __cplusplus
11007 extern "C" void exit (int);
11008 #endif
11009
11010 void fnord() { int i=42;}
11011 int main ()
11012 {
11013   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11014   int status = $lt_dlunknown;
11015
11016   if (self)
11017     {
11018       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11019       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11020       /* dlclose (self); */
11021     }
11022   else
11023     puts (dlerror ());
11024
11025     exit (status);
11026 }
11027 EOF
11028   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11029   (eval $ac_link) 2>&5
11030   ac_status=$?
11031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11032   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11033     (./conftest; exit; ) >&5 2>/dev/null
11034     lt_status=$?
11035     case x$lt_status in
11036       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11037       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11038       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11039     esac
11040   else :
11041     # compilation failed
11042     lt_cv_dlopen_self=no
11043   fi
11044 fi
11045 rm -fr conftest*
11046
11047     
11048 fi
11049 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
11050 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
11051
11052     if test "x$lt_cv_dlopen_self" = xyes; then
11053       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11054       { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
11055 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
11056 if test "${lt_cv_dlopen_self_static+set}" = set; then
11057   echo $ECHO_N "(cached) $ECHO_C" >&6
11058 else
11059           if test "$cross_compiling" = yes; then :
11060   lt_cv_dlopen_self_static=cross
11061 else
11062   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11063   lt_status=$lt_dlunknown
11064   cat > conftest.$ac_ext <<EOF
11065 #line __oline__ "configure"
11066 #include "confdefs.h"
11067
11068 #if HAVE_DLFCN_H
11069 #include <dlfcn.h>
11070 #endif
11071
11072 #include <stdio.h>
11073
11074 #ifdef RTLD_GLOBAL
11075 #  define LT_DLGLOBAL           RTLD_GLOBAL
11076 #else
11077 #  ifdef DL_GLOBAL
11078 #    define LT_DLGLOBAL         DL_GLOBAL
11079 #  else
11080 #    define LT_DLGLOBAL         0
11081 #  endif
11082 #endif
11083
11084 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11085    find out it does not work in some platform. */
11086 #ifndef LT_DLLAZY_OR_NOW
11087 #  ifdef RTLD_LAZY
11088 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11089 #  else
11090 #    ifdef DL_LAZY
11091 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11092 #    else
11093 #      ifdef RTLD_NOW
11094 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11095 #      else
11096 #        ifdef DL_NOW
11097 #          define LT_DLLAZY_OR_NOW      DL_NOW
11098 #        else
11099 #          define LT_DLLAZY_OR_NOW      0
11100 #        endif
11101 #      endif
11102 #    endif
11103 #  endif
11104 #endif
11105
11106 #ifdef __cplusplus
11107 extern "C" void exit (int);
11108 #endif
11109
11110 void fnord() { int i=42;}
11111 int main ()
11112 {
11113   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11114   int status = $lt_dlunknown;
11115
11116   if (self)
11117     {
11118       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11119       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11120       /* dlclose (self); */
11121     }
11122   else
11123     puts (dlerror ());
11124
11125     exit (status);
11126 }
11127 EOF
11128   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11129   (eval $ac_link) 2>&5
11130   ac_status=$?
11131   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11132   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11133     (./conftest; exit; ) >&5 2>/dev/null
11134     lt_status=$?
11135     case x$lt_status in
11136       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11137       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11138       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11139     esac
11140   else :
11141     # compilation failed
11142     lt_cv_dlopen_self_static=no
11143   fi
11144 fi
11145 rm -fr conftest*
11146
11147       
11148 fi
11149 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
11150 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
11151     fi
11152
11153     CPPFLAGS="$save_CPPFLAGS"
11154     LDFLAGS="$save_LDFLAGS"
11155     LIBS="$save_LIBS"
11156     ;;
11157   esac
11158
11159   case $lt_cv_dlopen_self in
11160   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11161   *) enable_dlopen_self=unknown ;;
11162   esac
11163
11164   case $lt_cv_dlopen_self_static in
11165   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11166   *) enable_dlopen_self_static=unknown ;;
11167   esac
11168 fi
11169
11170
11171 # Report which library types will actually be built
11172 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
11173 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
11174 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
11175 echo "${ECHO_T}$can_build_shared" >&6; }
11176
11177 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
11178 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
11179 test "$can_build_shared" = "no" && enable_shared=no
11180
11181 # On AIX, shared libraries and static libraries use the same namespace, and
11182 # are all built from PIC.
11183 case $host_os in
11184 aix3*)
11185   test "$enable_shared" = yes && enable_static=no
11186   if test -n "$RANLIB"; then
11187     archive_cmds="$archive_cmds~\$RANLIB \$lib"
11188     postinstall_cmds='$RANLIB $lib'
11189   fi
11190   ;;
11191
11192 aix4* | aix5*)
11193   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11194     test "$enable_shared" = yes && enable_static=no
11195   fi
11196     ;;
11197 esac
11198 { echo "$as_me:$LINENO: result: $enable_shared" >&5
11199 echo "${ECHO_T}$enable_shared" >&6; }
11200
11201 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
11202 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
11203 # Make sure either enable_shared or enable_static is yes.
11204 test "$enable_shared" = yes || enable_static=yes
11205 { echo "$as_me:$LINENO: result: $enable_static" >&5
11206 echo "${ECHO_T}$enable_static" >&6; }
11207
11208 # The else clause should only fire when bootstrapping the
11209 # libtool distribution, otherwise you forgot to ship ltmain.sh
11210 # with your package, and you will get complaints that there are
11211 # no rules to generate ltmain.sh.
11212 if test -f "$ltmain"; then
11213   # See if we are running on zsh, and set the options which allow our commands through
11214   # without removal of \ escapes.
11215   if test -n "${ZSH_VERSION+set}" ; then
11216     setopt NO_GLOB_SUBST
11217   fi
11218   # Now quote all the things that may contain metacharacters while being
11219   # careful not to overquote the AC_SUBSTed values.  We take copies of the
11220   # variables and quote the copies for generation of the libtool script.
11221   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
11222     SED SHELL STRIP \
11223     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
11224     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
11225     deplibs_check_method reload_flag reload_cmds need_locks \
11226     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
11227     lt_cv_sys_global_symbol_to_c_name_address \
11228     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
11229     old_postinstall_cmds old_postuninstall_cmds \
11230     compiler \
11231     CC \
11232     LD \
11233     lt_prog_compiler_wl \
11234     lt_prog_compiler_pic \
11235     lt_prog_compiler_static \
11236     lt_prog_compiler_no_builtin_flag \
11237     export_dynamic_flag_spec \
11238     thread_safe_flag_spec \
11239     whole_archive_flag_spec \
11240     enable_shared_with_static_runtimes \
11241     old_archive_cmds \
11242     old_archive_from_new_cmds \
11243     predep_objects \
11244     postdep_objects \
11245     predeps \
11246     postdeps \
11247     compiler_lib_search_path \
11248     archive_cmds \
11249     archive_expsym_cmds \
11250     postinstall_cmds \
11251     postuninstall_cmds \
11252     old_archive_from_expsyms_cmds \
11253     allow_undefined_flag \
11254     no_undefined_flag \
11255     export_symbols_cmds \
11256     hardcode_libdir_flag_spec \
11257     hardcode_libdir_flag_spec_ld \
11258     hardcode_libdir_separator \
11259     hardcode_automatic \
11260     module_cmds \
11261     module_expsym_cmds \
11262     lt_cv_prog_compiler_c_o \
11263     exclude_expsyms \
11264     include_expsyms; do
11265
11266     case $var in
11267     old_archive_cmds | \
11268     old_archive_from_new_cmds | \
11269     archive_cmds | \
11270     archive_expsym_cmds | \
11271     module_cmds | \
11272     module_expsym_cmds | \
11273     old_archive_from_expsyms_cmds | \
11274     export_symbols_cmds | \
11275     extract_expsyms_cmds | reload_cmds | finish_cmds | \
11276     postinstall_cmds | postuninstall_cmds | \
11277     old_postinstall_cmds | old_postuninstall_cmds | \
11278     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
11279       # Double-quote double-evaled strings.
11280       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
11281       ;;
11282     *)
11283       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
11284       ;;
11285     esac
11286   done
11287
11288   case $lt_echo in
11289   *'\$0 --fallback-echo"')
11290     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
11291     ;;
11292   esac
11293
11294 cfgfile="${ofile}T"
11295   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
11296   $rm -f "$cfgfile"
11297   { echo "$as_me:$LINENO: creating $ofile" >&5
11298 echo "$as_me: creating $ofile" >&6;}
11299
11300   cat <<__EOF__ >> "$cfgfile"
11301 #! $SHELL
11302
11303 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
11304 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
11305 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
11306 #
11307 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
11308 # Free Software Foundation, Inc.
11309 #
11310 # This file is part of GNU Libtool:
11311 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
11312 #
11313 # This program is free software; you can redistribute it and/or modify
11314 # it under the terms of the GNU General Public License as published by
11315 # the Free Software Foundation; either version 2 of the License, or
11316 # (at your option) any later version.
11317 #
11318 # This program is distributed in the hope that it will be useful, but
11319 # WITHOUT ANY WARRANTY; without even the implied warranty of
11320 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
11321 # General Public License for more details.
11322 #
11323 # You should have received a copy of the GNU General Public License
11324 # along with this program; if not, write to the Free Software
11325 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
11326 #
11327 # As a special exception to the GNU General Public License, if you
11328 # distribute this file as part of a program that contains a
11329 # configuration script generated by Autoconf, you may include it under
11330 # the same distribution terms that you use for the rest of that program.
11331
11332 # A sed program that does not truncate output.
11333 SED=$lt_SED
11334
11335 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
11336 Xsed="$SED -e 1s/^X//"
11337
11338 # The HP-UX ksh and POSIX shell print the target directory to stdout
11339 # if CDPATH is set.
11340 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11341
11342 # The names of the tagged configurations supported by this script.
11343 available_tags=
11344
11345 # ### BEGIN LIBTOOL CONFIG
11346
11347 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
11348
11349 # Shell to use when invoking shell scripts.
11350 SHELL=$lt_SHELL
11351
11352 # Whether or not to build shared libraries.
11353 build_libtool_libs=$enable_shared
11354
11355 # Whether or not to build static libraries.
11356 build_old_libs=$enable_static
11357
11358 # Whether or not to add -lc for building shared libraries.
11359 build_libtool_need_lc=$archive_cmds_need_lc
11360
11361 # Whether or not to disallow shared libs when runtime libs are static
11362 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
11363
11364 # Whether or not to optimize for fast installation.
11365 fast_install=$enable_fast_install
11366
11367 # The host system.
11368 host_alias=$host_alias
11369 host=$host
11370 host_os=$host_os
11371
11372 # The build system.
11373 build_alias=$build_alias
11374 build=$build
11375 build_os=$build_os
11376
11377 # An echo program that does not interpret backslashes.
11378 echo=$lt_echo
11379
11380 # The archiver.
11381 AR=$lt_AR
11382 AR_FLAGS=$lt_AR_FLAGS
11383
11384 # A C compiler.
11385 LTCC=$lt_LTCC
11386
11387 # LTCC compiler flags.
11388 LTCFLAGS=$lt_LTCFLAGS
11389
11390 # A language-specific compiler.
11391 CC=$lt_compiler
11392
11393 # Is the compiler the GNU C compiler?
11394 with_gcc=$GCC
11395
11396 # An ERE matcher.
11397 EGREP=$lt_EGREP
11398
11399 # The linker used to build libraries.
11400 LD=$lt_LD
11401
11402 # Whether we need hard or soft links.
11403 LN_S=$lt_LN_S
11404
11405 # A BSD-compatible nm program.
11406 NM=$lt_NM
11407
11408 # A symbol stripping program
11409 STRIP=$lt_STRIP
11410
11411 # Used to examine libraries when file_magic_cmd begins "file"
11412 MAGIC_CMD=$MAGIC_CMD
11413
11414 # Used on cygwin: DLL creation program.
11415 DLLTOOL="$DLLTOOL"
11416
11417 # Used on cygwin: object dumper.
11418 OBJDUMP="$OBJDUMP"
11419
11420 # Used on cygwin: assembler.
11421 AS="$AS"
11422
11423 # The name of the directory that contains temporary libtool files.
11424 objdir=$objdir
11425
11426 # How to create reloadable object files.
11427 reload_flag=$lt_reload_flag
11428 reload_cmds=$lt_reload_cmds
11429
11430 # How to pass a linker flag through the compiler.
11431 wl=$lt_lt_prog_compiler_wl
11432
11433 # Object file suffix (normally "o").
11434 objext="$ac_objext"
11435
11436 # Old archive suffix (normally "a").
11437 libext="$libext"
11438
11439 # Shared library suffix (normally ".so").
11440 shrext_cmds='$shrext_cmds'
11441
11442 # Executable file suffix (normally "").
11443 exeext="$exeext"
11444
11445 # Additional compiler flags for building library objects.
11446 pic_flag=$lt_lt_prog_compiler_pic
11447 pic_mode=$pic_mode
11448
11449 # What is the maximum length of a command?
11450 max_cmd_len=$lt_cv_sys_max_cmd_len
11451
11452 # Does compiler simultaneously support -c and -o options?
11453 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
11454
11455 # Must we lock files when doing compilation?
11456 need_locks=$lt_need_locks
11457
11458 # Do we need the lib prefix for modules?
11459 need_lib_prefix=$need_lib_prefix
11460
11461 # Do we need a version for libraries?
11462 need_version=$need_version
11463
11464 # Whether dlopen is supported.
11465 dlopen_support=$enable_dlopen
11466
11467 # Whether dlopen of programs is supported.
11468 dlopen_self=$enable_dlopen_self
11469
11470 # Whether dlopen of statically linked programs is supported.
11471 dlopen_self_static=$enable_dlopen_self_static
11472
11473 # Compiler flag to prevent dynamic linking.
11474 link_static_flag=$lt_lt_prog_compiler_static
11475
11476 # Compiler flag to turn off builtin functions.
11477 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
11478
11479 # Compiler flag to allow reflexive dlopens.
11480 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
11481
11482 # Compiler flag to generate shared objects directly from archives.
11483 whole_archive_flag_spec=$lt_whole_archive_flag_spec
11484
11485 # Compiler flag to generate thread-safe objects.
11486 thread_safe_flag_spec=$lt_thread_safe_flag_spec
11487
11488 # Library versioning type.
11489 version_type=$version_type
11490
11491 # Format of library name prefix.
11492 libname_spec=$lt_libname_spec
11493
11494 # List of archive names.  First name is the real one, the rest are links.
11495 # The last name is the one that the linker finds with -lNAME.
11496 library_names_spec=$lt_library_names_spec
11497
11498 # The coded name of the library, if different from the real name.
11499 soname_spec=$lt_soname_spec
11500
11501 # Commands used to build and install an old-style archive.
11502 RANLIB=$lt_RANLIB
11503 old_archive_cmds=$lt_old_archive_cmds
11504 old_postinstall_cmds=$lt_old_postinstall_cmds
11505 old_postuninstall_cmds=$lt_old_postuninstall_cmds
11506
11507 # Create an old-style archive from a shared archive.
11508 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
11509
11510 # Create a temporary old-style archive to link instead of a shared archive.
11511 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
11512
11513 # Commands used to build and install a shared archive.
11514 archive_cmds=$lt_archive_cmds
11515 archive_expsym_cmds=$lt_archive_expsym_cmds
11516 postinstall_cmds=$lt_postinstall_cmds
11517 postuninstall_cmds=$lt_postuninstall_cmds
11518
11519 # Commands used to build a loadable module (assumed same as above if empty)
11520 module_cmds=$lt_module_cmds
11521 module_expsym_cmds=$lt_module_expsym_cmds
11522
11523 # Commands to strip libraries.
11524 old_striplib=$lt_old_striplib
11525 striplib=$lt_striplib
11526
11527 # Dependencies to place before the objects being linked to create a
11528 # shared library.
11529 predep_objects=$lt_predep_objects
11530
11531 # Dependencies to place after the objects being linked to create a
11532 # shared library.
11533 postdep_objects=$lt_postdep_objects
11534
11535 # Dependencies to place before the objects being linked to create a
11536 # shared library.
11537 predeps=$lt_predeps
11538
11539 # Dependencies to place after the objects being linked to create a
11540 # shared library.
11541 postdeps=$lt_postdeps
11542
11543 # The library search path used internally by the compiler when linking
11544 # a shared library.
11545 compiler_lib_search_path=$lt_compiler_lib_search_path
11546
11547 # Method to check whether dependent libraries are shared objects.
11548 deplibs_check_method=$lt_deplibs_check_method
11549
11550 # Command to use when deplibs_check_method == file_magic.
11551 file_magic_cmd=$lt_file_magic_cmd
11552
11553 # Flag that allows shared libraries with undefined symbols to be built.
11554 allow_undefined_flag=$lt_allow_undefined_flag
11555
11556 # Flag that forces no undefined symbols.
11557 no_undefined_flag=$lt_no_undefined_flag
11558
11559 # Commands used to finish a libtool library installation in a directory.
11560 finish_cmds=$lt_finish_cmds
11561
11562 # Same as above, but a single script fragment to be evaled but not shown.
11563 finish_eval=$lt_finish_eval
11564
11565 # Take the output of nm and produce a listing of raw symbols and C names.
11566 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
11567
11568 # Transform the output of nm in a proper C declaration
11569 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
11570
11571 # Transform the output of nm in a C name address pair
11572 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
11573
11574 # This is the shared library runtime path variable.
11575 runpath_var=$runpath_var
11576
11577 # This is the shared library path variable.
11578 shlibpath_var=$shlibpath_var
11579
11580 # Is shlibpath searched before the hard-coded library search path?
11581 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
11582
11583 # How to hardcode a shared library path into an executable.
11584 hardcode_action=$hardcode_action
11585
11586 # Whether we should hardcode library paths into libraries.
11587 hardcode_into_libs=$hardcode_into_libs
11588
11589 # Flag to hardcode \$libdir into a binary during linking.
11590 # This must work even if \$libdir does not exist.
11591 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
11592
11593 # If ld is used when linking, flag to hardcode \$libdir into
11594 # a binary during linking. This must work even if \$libdir does
11595 # not exist.
11596 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
11597
11598 # Whether we need a single -rpath flag with a separated argument.
11599 hardcode_libdir_separator=$lt_hardcode_libdir_separator
11600
11601 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
11602 # resulting binary.
11603 hardcode_direct=$hardcode_direct
11604
11605 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
11606 # resulting binary.
11607 hardcode_minus_L=$hardcode_minus_L
11608
11609 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
11610 # the resulting binary.
11611 hardcode_shlibpath_var=$hardcode_shlibpath_var
11612
11613 # Set to yes if building a shared library automatically hardcodes DIR into the library
11614 # and all subsequent libraries and executables linked against it.
11615 hardcode_automatic=$hardcode_automatic
11616
11617 # Variables whose values should be saved in libtool wrapper scripts and
11618 # restored at relink time.
11619 variables_saved_for_relink="$variables_saved_for_relink"
11620
11621 # Whether libtool must link a program against all its dependency libraries.
11622 link_all_deplibs=$link_all_deplibs
11623
11624 # Compile-time system search path for libraries
11625 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
11626
11627 # Run-time system search path for libraries
11628 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
11629
11630 # Fix the shell variable \$srcfile for the compiler.
11631 fix_srcfile_path="$fix_srcfile_path"
11632
11633 # Set to yes if exported symbols are required.
11634 always_export_symbols=$always_export_symbols
11635
11636 # The commands to list exported symbols.
11637 export_symbols_cmds=$lt_export_symbols_cmds
11638
11639 # The commands to extract the exported symbol list from a shared archive.
11640 extract_expsyms_cmds=$lt_extract_expsyms_cmds
11641
11642 # Symbols that should not be listed in the preloaded symbols.
11643 exclude_expsyms=$lt_exclude_expsyms
11644
11645 # Symbols that must always be exported.
11646 include_expsyms=$lt_include_expsyms
11647
11648 # ### END LIBTOOL CONFIG
11649
11650 __EOF__
11651
11652
11653   case $host_os in
11654   aix3*)
11655     cat <<\EOF >> "$cfgfile"
11656
11657 # AIX sometimes has problems with the GCC collect2 program.  For some
11658 # reason, if we set the COLLECT_NAMES environment variable, the problems
11659 # vanish in a puff of smoke.
11660 if test "X${COLLECT_NAMES+set}" != Xset; then
11661   COLLECT_NAMES=
11662   export COLLECT_NAMES
11663 fi
11664 EOF
11665     ;;
11666   esac
11667
11668   # We use sed instead of cat because bash on DJGPP gets confused if
11669   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
11670   # text mode, it properly converts lines to CR/LF.  This bash problem
11671   # is reportedly fixed, but why not run on old versions too?
11672   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
11673
11674   mv -f "$cfgfile" "$ofile" || \
11675     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
11676   chmod +x "$ofile"
11677
11678 else
11679   # If there is no Makefile yet, we rely on a make rule to execute
11680   # `config.status --recheck' to rerun these tests and create the
11681   # libtool script then.
11682   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
11683   if test -f "$ltmain_in"; then
11684     test -f Makefile && make "$ltmain"
11685   fi
11686 fi
11687
11688
11689 ac_ext=c
11690 ac_cpp='$CPP $CPPFLAGS'
11691 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11692 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11693 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11694
11695 CC="$lt_save_CC"
11696
11697
11698 # Check whether --with-tags was given.
11699 if test "${with_tags+set}" = set; then
11700   withval=$with_tags; tagnames="$withval"
11701 fi
11702
11703
11704 if test -f "$ltmain" && test -n "$tagnames"; then
11705   if test ! -f "${ofile}"; then
11706     { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
11707 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
11708   fi
11709
11710   if test -z "$LTCC"; then
11711     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
11712     if test -z "$LTCC"; then
11713       { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
11714 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
11715     else
11716       { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
11717 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
11718     fi
11719   fi
11720   if test -z "$LTCFLAGS"; then
11721     eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
11722   fi
11723
11724   # Extract list of available tagged configurations in $ofile.
11725   # Note that this assumes the entire list is on one line.
11726   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
11727
11728   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11729   for tagname in $tagnames; do
11730     IFS="$lt_save_ifs"
11731     # Check whether tagname contains only valid characters
11732     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
11733     "") ;;
11734     *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
11735 echo "$as_me: error: invalid tag name: $tagname" >&2;}
11736    { (exit 1); exit 1; }; }
11737         ;;
11738     esac
11739
11740     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
11741     then
11742       { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
11743 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
11744    { (exit 1); exit 1; }; }
11745     fi
11746
11747     # Update the list of available tags.
11748     if test -n "$tagname"; then
11749       echo appending configuration tag \"$tagname\" to $ofile
11750
11751       case $tagname in
11752       CXX)
11753         if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11754             ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11755             (test "X$CXX" != "Xg++"))) ; then
11756           ac_ext=cpp
11757 ac_cpp='$CXXCPP $CPPFLAGS'
11758 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11759 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11760 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11761
11762
11763
11764
11765 archive_cmds_need_lc_CXX=no
11766 allow_undefined_flag_CXX=
11767 always_export_symbols_CXX=no
11768 archive_expsym_cmds_CXX=
11769 export_dynamic_flag_spec_CXX=
11770 hardcode_direct_CXX=no
11771 hardcode_libdir_flag_spec_CXX=
11772 hardcode_libdir_flag_spec_ld_CXX=
11773 hardcode_libdir_separator_CXX=
11774 hardcode_minus_L_CXX=no
11775 hardcode_shlibpath_var_CXX=unsupported
11776 hardcode_automatic_CXX=no
11777 module_cmds_CXX=
11778 module_expsym_cmds_CXX=
11779 link_all_deplibs_CXX=unknown
11780 old_archive_cmds_CXX=$old_archive_cmds
11781 no_undefined_flag_CXX=
11782 whole_archive_flag_spec_CXX=
11783 enable_shared_with_static_runtimes_CXX=no
11784
11785 # Dependencies to place before and after the object being linked:
11786 predep_objects_CXX=
11787 postdep_objects_CXX=
11788 predeps_CXX=
11789 postdeps_CXX=
11790 compiler_lib_search_path_CXX=
11791
11792 # Source file extension for C++ test sources.
11793 ac_ext=cpp
11794
11795 # Object file extension for compiled C++ test sources.
11796 objext=o
11797 objext_CXX=$objext
11798
11799 # Code to be used in simple compile tests
11800 lt_simple_compile_test_code="int some_variable = 0;\n"
11801
11802 # Code to be used in simple link tests
11803 lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
11804
11805 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11806
11807 # If no C compiler was specified, use CC.
11808 LTCC=${LTCC-"$CC"}
11809
11810 # If no C compiler flags were specified, use CFLAGS.
11811 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11812
11813 # Allow CC to be a program name with arguments.
11814 compiler=$CC
11815
11816
11817 # save warnings/boilerplate of simple test code
11818 ac_outfile=conftest.$ac_objext
11819 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
11820 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11821 _lt_compiler_boilerplate=`cat conftest.err`
11822 $rm conftest*
11823
11824 ac_outfile=conftest.$ac_objext
11825 printf "$lt_simple_link_test_code" >conftest.$ac_ext
11826 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11827 _lt_linker_boilerplate=`cat conftest.err`
11828 $rm conftest*
11829
11830
11831 # Allow CC to be a program name with arguments.
11832 lt_save_CC=$CC
11833 lt_save_LD=$LD
11834 lt_save_GCC=$GCC
11835 GCC=$GXX
11836 lt_save_with_gnu_ld=$with_gnu_ld
11837 lt_save_path_LD=$lt_cv_path_LD
11838 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11839   lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11840 else
11841   $as_unset lt_cv_prog_gnu_ld
11842 fi
11843 if test -n "${lt_cv_path_LDCXX+set}"; then
11844   lt_cv_path_LD=$lt_cv_path_LDCXX
11845 else
11846   $as_unset lt_cv_path_LD
11847 fi
11848 test -z "${LDCXX+set}" || LD=$LDCXX
11849 CC=${CXX-"c++"}
11850 compiler=$CC
11851 compiler_CXX=$CC
11852 for cc_temp in $compiler""; do
11853   case $cc_temp in
11854     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11855     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11856     \-*) ;;
11857     *) break;;
11858   esac
11859 done
11860 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11861
11862
11863 # We don't want -fno-exception wen compiling C++ code, so set the
11864 # no_builtin_flag separately
11865 if test "$GXX" = yes; then
11866   lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11867 else
11868   lt_prog_compiler_no_builtin_flag_CXX=
11869 fi
11870
11871 if test "$GXX" = yes; then
11872   # Set up default GNU C++ configuration
11873
11874   
11875 # Check whether --with-gnu-ld was given.
11876 if test "${with_gnu_ld+set}" = set; then
11877   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11878 else
11879   with_gnu_ld=no
11880 fi
11881
11882 ac_prog=ld
11883 if test "$GCC" = yes; then
11884   # Check if gcc -print-prog-name=ld gives a path.
11885   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
11886 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
11887   case $host in
11888   *-*-mingw*)
11889     # gcc leaves a trailing carriage return which upsets mingw
11890     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11891   *)
11892     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11893   esac
11894   case $ac_prog in
11895     # Accept absolute paths.
11896     [\\/]* | ?:[\\/]*)
11897       re_direlt='/[^/][^/]*/\.\./'
11898       # Canonicalize the pathname of ld
11899       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
11900       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11901         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
11902       done
11903       test -z "$LD" && LD="$ac_prog"
11904       ;;
11905   "")
11906     # If it fails, then pretend we aren't using GCC.
11907     ac_prog=ld
11908     ;;
11909   *)
11910     # If it is relative, then search for the first ld in PATH.
11911     with_gnu_ld=unknown
11912     ;;
11913   esac
11914 elif test "$with_gnu_ld" = yes; then
11915   { echo "$as_me:$LINENO: checking for GNU ld" >&5
11916 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
11917 else
11918   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
11919 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
11920 fi
11921 if test "${lt_cv_path_LD+set}" = set; then
11922   echo $ECHO_N "(cached) $ECHO_C" >&6
11923 else
11924   if test -z "$LD"; then
11925   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11926   for ac_dir in $PATH; do
11927     IFS="$lt_save_ifs"
11928     test -z "$ac_dir" && ac_dir=.
11929     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11930       lt_cv_path_LD="$ac_dir/$ac_prog"
11931       # Check to see if the program is GNU ld.  I'd rather use --version,
11932       # but apparently some variants of GNU ld only accept -v.
11933       # Break only if it was the GNU/non-GNU ld that we prefer.
11934       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11935       *GNU* | *'with BFD'*)
11936         test "$with_gnu_ld" != no && break
11937         ;;
11938       *)
11939         test "$with_gnu_ld" != yes && break
11940         ;;
11941       esac
11942     fi
11943   done
11944   IFS="$lt_save_ifs"
11945 else
11946   lt_cv_path_LD="$LD" # Let the user override the test with a path.
11947 fi
11948 fi
11949
11950 LD="$lt_cv_path_LD"
11951 if test -n "$LD"; then
11952   { echo "$as_me:$LINENO: result: $LD" >&5
11953 echo "${ECHO_T}$LD" >&6; }
11954 else
11955   { echo "$as_me:$LINENO: result: no" >&5
11956 echo "${ECHO_T}no" >&6; }
11957 fi
11958 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
11959 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
11960    { (exit 1); exit 1; }; }
11961 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
11962 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
11963 if test "${lt_cv_prog_gnu_ld+set}" = set; then
11964   echo $ECHO_N "(cached) $ECHO_C" >&6
11965 else
11966   # I'd rather use --version here, but apparently some GNU lds only accept -v.
11967 case `$LD -v 2>&1 </dev/null` in
11968 *GNU* | *'with BFD'*)
11969   lt_cv_prog_gnu_ld=yes
11970   ;;
11971 *)
11972   lt_cv_prog_gnu_ld=no
11973   ;;
11974 esac
11975 fi
11976 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
11977 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
11978 with_gnu_ld=$lt_cv_prog_gnu_ld
11979
11980
11981
11982   # Check if GNU C++ uses GNU ld as the underlying linker, since the
11983   # archiving commands below assume that GNU ld is being used.
11984   if test "$with_gnu_ld" = yes; then
11985     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11986     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'
11987
11988     hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11989     export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11990
11991     # If archive_cmds runs LD, not CC, wlarc should be empty
11992     # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11993     #     investigate it a little bit more. (MM)
11994     wlarc='${wl}'
11995
11996     # ancient GNU ld didn't support --whole-archive et. al.
11997     if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
11998         grep 'no-whole-archive' > /dev/null; then
11999       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12000     else
12001       whole_archive_flag_spec_CXX=
12002     fi
12003   else
12004     with_gnu_ld=no
12005     wlarc=
12006
12007     # A generic and very simple default shared library creation
12008     # command for GNU C++ for the case where it uses the native
12009     # linker, instead of GNU ld.  If possible, this setting should
12010     # overridden to take advantage of the native linker features on
12011     # the platform it is being used on.
12012     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12013   fi
12014
12015   # Commands to make compiler produce verbose output that lists
12016   # what "hidden" libraries, object files and flags are used when
12017   # linking a shared library.
12018   output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12019
12020 else
12021   GXX=no
12022   with_gnu_ld=no
12023   wlarc=
12024 fi
12025
12026 # PORTME: fill in a description of your system's C++ link characteristics
12027 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12028 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
12029 ld_shlibs_CXX=yes
12030 case $host_os in
12031   aix3*)
12032     # FIXME: insert proper C++ library support
12033     ld_shlibs_CXX=no
12034     ;;
12035   aix4* | aix5*)
12036     if test "$host_cpu" = ia64; then
12037       # On IA64, the linker does run time linking by default, so we don't
12038       # have to do anything special.
12039       aix_use_runtimelinking=no
12040       exp_sym_flag='-Bexport'
12041       no_entry_flag=""
12042     else
12043       aix_use_runtimelinking=no
12044
12045       # Test if we are trying to use run time linking or normal
12046       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12047       # need to do runtime linking.
12048       case $host_os in aix4.[23]|aix4.[23].*|aix5*)
12049         for ld_flag in $LDFLAGS; do
12050           case $ld_flag in
12051           *-brtl*)
12052             aix_use_runtimelinking=yes
12053             break
12054             ;;
12055           esac
12056         done
12057         ;;
12058       esac
12059
12060       exp_sym_flag='-bexport'
12061       no_entry_flag='-bnoentry'
12062     fi
12063
12064     # When large executables or shared objects are built, AIX ld can
12065     # have problems creating the table of contents.  If linking a library
12066     # or program results in "error TOC overflow" add -mminimal-toc to
12067     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
12068     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12069
12070     archive_cmds_CXX=''
12071     hardcode_direct_CXX=yes
12072     hardcode_libdir_separator_CXX=':'
12073     link_all_deplibs_CXX=yes
12074
12075     if test "$GXX" = yes; then
12076       case $host_os in aix4.[012]|aix4.[012].*)
12077       # We only want to do this on AIX 4.2 and lower, the check
12078       # below for broken collect2 doesn't work under 4.3+
12079         collect2name=`${CC} -print-prog-name=collect2`
12080         if test -f "$collect2name" && \
12081            strings "$collect2name" | grep resolve_lib_name >/dev/null
12082         then
12083           # We have reworked collect2
12084           hardcode_direct_CXX=yes
12085         else
12086           # We have old collect2
12087           hardcode_direct_CXX=unsupported
12088           # It fails to find uninstalled libraries when the uninstalled
12089           # path is not listed in the libpath.  Setting hardcode_minus_L
12090           # to unsupported forces relinking
12091           hardcode_minus_L_CXX=yes
12092           hardcode_libdir_flag_spec_CXX='-L$libdir'
12093           hardcode_libdir_separator_CXX=
12094         fi
12095         ;;
12096       esac
12097       shared_flag='-shared'
12098       if test "$aix_use_runtimelinking" = yes; then
12099         shared_flag="$shared_flag "'${wl}-G'
12100       fi
12101     else
12102       # not using gcc
12103       if test "$host_cpu" = ia64; then
12104         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12105         # chokes on -Wl,-G. The following line is correct:
12106         shared_flag='-G'
12107       else
12108         if test "$aix_use_runtimelinking" = yes; then
12109           shared_flag='${wl}-G'
12110         else
12111           shared_flag='${wl}-bM:SRE'
12112         fi
12113       fi
12114     fi
12115
12116     # It seems that -bexpall does not export symbols beginning with
12117     # underscore (_), so it is better to generate a list of symbols to export.
12118     always_export_symbols_CXX=yes
12119     if test "$aix_use_runtimelinking" = yes; then
12120       # Warning - without using the other runtime loading flags (-brtl),
12121       # -berok will link without error, but may produce a broken library.
12122       allow_undefined_flag_CXX='-berok'
12123       # Determine the default libpath from the value encoded in an empty executable.
12124       cat >conftest.$ac_ext <<_ACEOF
12125 /* confdefs.h.  */
12126 _ACEOF
12127 cat confdefs.h >>conftest.$ac_ext
12128 cat >>conftest.$ac_ext <<_ACEOF
12129 /* end confdefs.h.  */
12130
12131 int
12132 main ()
12133 {
12134
12135   ;
12136   return 0;
12137 }
12138 _ACEOF
12139 rm -f conftest.$ac_objext conftest$ac_exeext
12140 if { (ac_try="$ac_link"
12141 case "(($ac_try" in
12142   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12143   *) ac_try_echo=$ac_try;;
12144 esac
12145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12146   (eval "$ac_link") 2>conftest.er1
12147   ac_status=$?
12148   grep -v '^ *+' conftest.er1 >conftest.err
12149   rm -f conftest.er1
12150   cat conftest.err >&5
12151   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12152   (exit $ac_status); } && {
12153          test -z "$ac_cxx_werror_flag" ||
12154          test ! -s conftest.err
12155        } && test -s conftest$ac_exeext &&
12156        $as_test_x conftest$ac_exeext; then
12157   
12158 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
12159 }'`
12160 # Check for a 64-bit object if we didn't find anything.
12161 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; }
12162 }'`; fi
12163 else
12164   echo "$as_me: failed program was:" >&5
12165 sed 's/^/| /' conftest.$ac_ext >&5
12166
12167         
12168 fi
12169
12170 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12171       conftest$ac_exeext conftest.$ac_ext
12172 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12173
12174       hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12175
12176       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"
12177      else
12178       if test "$host_cpu" = ia64; then
12179         hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12180         allow_undefined_flag_CXX="-z nodefs"
12181         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"
12182       else
12183         # Determine the default libpath from the value encoded in an empty executable.
12184         cat >conftest.$ac_ext <<_ACEOF
12185 /* confdefs.h.  */
12186 _ACEOF
12187 cat confdefs.h >>conftest.$ac_ext
12188 cat >>conftest.$ac_ext <<_ACEOF
12189 /* end confdefs.h.  */
12190
12191 int
12192 main ()
12193 {
12194
12195   ;
12196   return 0;
12197 }
12198 _ACEOF
12199 rm -f conftest.$ac_objext conftest$ac_exeext
12200 if { (ac_try="$ac_link"
12201 case "(($ac_try" in
12202   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12203   *) ac_try_echo=$ac_try;;
12204 esac
12205 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12206   (eval "$ac_link") 2>conftest.er1
12207   ac_status=$?
12208   grep -v '^ *+' conftest.er1 >conftest.err
12209   rm -f conftest.er1
12210   cat conftest.err >&5
12211   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12212   (exit $ac_status); } && {
12213          test -z "$ac_cxx_werror_flag" ||
12214          test ! -s conftest.err
12215        } && test -s conftest$ac_exeext &&
12216        $as_test_x conftest$ac_exeext; then
12217   
12218 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
12219 }'`
12220 # Check for a 64-bit object if we didn't find anything.
12221 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; }
12222 }'`; fi
12223 else
12224   echo "$as_me: failed program was:" >&5
12225 sed 's/^/| /' conftest.$ac_ext >&5
12226
12227         
12228 fi
12229
12230 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12231       conftest$ac_exeext conftest.$ac_ext
12232 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12233
12234         hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12235         # Warning - without using the other run time loading flags,
12236         # -berok will link without error, but may produce a broken library.
12237         no_undefined_flag_CXX=' ${wl}-bernotok'
12238         allow_undefined_flag_CXX=' ${wl}-berok'
12239         # Exported symbols can be pulled into shared objects from archives
12240         whole_archive_flag_spec_CXX='$convenience'
12241         archive_cmds_need_lc_CXX=yes
12242         # This is similar to how AIX traditionally builds its shared libraries.
12243         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'
12244       fi
12245     fi
12246     ;;
12247
12248   beos*)
12249     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12250       allow_undefined_flag_CXX=unsupported
12251       # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12252       # support --undefined.  This deserves some investigation.  FIXME
12253       archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12254     else
12255       ld_shlibs_CXX=no
12256     fi
12257     ;;
12258
12259   chorus*)
12260     case $cc_basename in
12261       *)
12262         # FIXME: insert proper C++ library support
12263         ld_shlibs_CXX=no
12264         ;;
12265     esac
12266     ;;
12267
12268   cygwin* | mingw* | pw32*)
12269     # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12270     # as there is no search path for DLLs.
12271     hardcode_libdir_flag_spec_CXX='-L$libdir'
12272     allow_undefined_flag_CXX=unsupported
12273     always_export_symbols_CXX=no
12274     enable_shared_with_static_runtimes_CXX=yes
12275
12276     if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
12277       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'
12278       # If the export-symbols file already is a .def file (1st line
12279       # is EXPORTS), use it as is; otherwise, prepend...
12280       archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12281         cp $export_symbols $output_objdir/$soname.def;
12282       else
12283         echo EXPORTS > $output_objdir/$soname.def;
12284         cat $export_symbols >> $output_objdir/$soname.def;
12285       fi~
12286       $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'
12287     else
12288       ld_shlibs_CXX=no
12289     fi
12290   ;;
12291       darwin* | rhapsody*)
12292         case $host_os in
12293         rhapsody* | darwin1.[012])
12294          allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
12295          ;;
12296        *) # Darwin 1.3 on
12297          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
12298            allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
12299          else
12300            case ${MACOSX_DEPLOYMENT_TARGET} in
12301              10.[012])
12302                allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
12303                ;;
12304              10.*)
12305                allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
12306                ;;
12307            esac
12308          fi
12309          ;;
12310         esac
12311       archive_cmds_need_lc_CXX=no
12312       hardcode_direct_CXX=no
12313       hardcode_automatic_CXX=yes
12314       hardcode_shlibpath_var_CXX=unsupported
12315       whole_archive_flag_spec_CXX=''
12316       link_all_deplibs_CXX=yes
12317
12318     if test "$GXX" = yes ; then
12319       lt_int_apple_cc_single_mod=no
12320       output_verbose_link_cmd='echo'
12321       if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
12322        lt_int_apple_cc_single_mod=yes
12323       fi
12324       if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
12325        archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
12326       else
12327           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'
12328         fi
12329         module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12330         # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
12331           if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
12332             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}'
12333           else
12334             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}'
12335           fi
12336             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}'
12337       else
12338       case $cc_basename in
12339         xlc*)
12340          output_verbose_link_cmd='echo'
12341           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'
12342           module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12343           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
12344           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}'
12345           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}'
12346           ;;
12347        *)
12348          ld_shlibs_CXX=no
12349           ;;
12350       esac
12351       fi
12352         ;;
12353
12354   dgux*)
12355     case $cc_basename in
12356       ec++*)
12357         # FIXME: insert proper C++ library support
12358         ld_shlibs_CXX=no
12359         ;;
12360       ghcx*)
12361         # Green Hills C++ Compiler
12362         # FIXME: insert proper C++ library support
12363         ld_shlibs_CXX=no
12364         ;;
12365       *)
12366         # FIXME: insert proper C++ library support
12367         ld_shlibs_CXX=no
12368         ;;
12369     esac
12370     ;;
12371   freebsd[12]*)
12372     # C++ shared libraries reported to be fairly broken before switch to ELF
12373     ld_shlibs_CXX=no
12374     ;;
12375   freebsd-elf*)
12376     archive_cmds_need_lc_CXX=no
12377     ;;
12378   freebsd* | dragonfly*)
12379     # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12380     # conventions
12381     ld_shlibs_CXX=yes
12382     ;;
12383   gnu*)
12384     ;;
12385   hpux9*)
12386     hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12387     hardcode_libdir_separator_CXX=:
12388     export_dynamic_flag_spec_CXX='${wl}-E'
12389     hardcode_direct_CXX=yes
12390     hardcode_minus_L_CXX=yes # Not in the search PATH,
12391                                 # but as the default
12392                                 # location of the library.
12393
12394     case $cc_basename in
12395     CC*)
12396       # FIXME: insert proper C++ library support
12397       ld_shlibs_CXX=no
12398       ;;
12399     aCC*)
12400       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'
12401       # Commands to make compiler produce verbose output that lists
12402       # what "hidden" libraries, object files and flags are used when
12403       # linking a shared library.
12404       #
12405       # There doesn't appear to be a way to prevent this compiler from
12406       # explicitly linking system object files so we need to strip them
12407       # from the output so that they don't get included in the library
12408       # dependencies.
12409       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'
12410       ;;
12411     *)
12412       if test "$GXX" = yes; then
12413         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'
12414       else
12415         # FIXME: insert proper C++ library support
12416         ld_shlibs_CXX=no
12417       fi
12418       ;;
12419     esac
12420     ;;
12421   hpux10*|hpux11*)
12422     if test $with_gnu_ld = no; then
12423       hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12424       hardcode_libdir_separator_CXX=:
12425
12426       case $host_cpu in
12427       hppa*64*|ia64*)
12428         hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
12429         ;;
12430       *)
12431         export_dynamic_flag_spec_CXX='${wl}-E'
12432         ;;
12433       esac
12434     fi
12435     case $host_cpu in
12436     hppa*64*|ia64*)
12437       hardcode_direct_CXX=no
12438       hardcode_shlibpath_var_CXX=no
12439       ;;
12440     *)
12441       hardcode_direct_CXX=yes
12442       hardcode_minus_L_CXX=yes # Not in the search PATH,
12443                                               # but as the default
12444                                               # location of the library.
12445       ;;
12446     esac
12447
12448     case $cc_basename in
12449       CC*)
12450         # FIXME: insert proper C++ library support
12451         ld_shlibs_CXX=no
12452         ;;
12453       aCC*)
12454         case $host_cpu in
12455         hppa*64*)
12456           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12457           ;;
12458         ia64*)
12459           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12460           ;;
12461         *)
12462           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12463           ;;
12464         esac
12465         # Commands to make compiler produce verbose output that lists
12466         # what "hidden" libraries, object files and flags are used when
12467         # linking a shared library.
12468         #
12469         # There doesn't appear to be a way to prevent this compiler from
12470         # explicitly linking system object files so we need to strip them
12471         # from the output so that they don't get included in the library
12472         # dependencies.
12473         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'
12474         ;;
12475       *)
12476         if test "$GXX" = yes; then
12477           if test $with_gnu_ld = no; then
12478             case $host_cpu in
12479             hppa*64*)
12480               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12481               ;;
12482             ia64*)
12483               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12484               ;;
12485             *)
12486               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'
12487               ;;
12488             esac
12489           fi
12490         else
12491           # FIXME: insert proper C++ library support
12492           ld_shlibs_CXX=no
12493         fi
12494         ;;
12495     esac
12496     ;;
12497   interix3*)
12498     hardcode_direct_CXX=no
12499     hardcode_shlibpath_var_CXX=no
12500     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12501     export_dynamic_flag_spec_CXX='${wl}-E'
12502     # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12503     # Instead, shared libraries are loaded at an image base (0x10000000 by
12504     # default) and relocated if they conflict, which is a slow very memory
12505     # consuming and fragmenting process.  To avoid this, we pick a random,
12506     # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12507     # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
12508     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'
12509     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'
12510     ;;
12511   irix5* | irix6*)
12512     case $cc_basename in
12513       CC*)
12514         # SGI C++
12515         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'
12516
12517         # Archives containing C++ object files must be created using
12518         # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
12519         # necessary to make sure instantiated templates are included
12520         # in the archive.
12521         old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12522         ;;
12523       *)
12524         if test "$GXX" = yes; then
12525           if test "$with_gnu_ld" = no; then
12526             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'
12527           else
12528             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'
12529           fi
12530         fi
12531         link_all_deplibs_CXX=yes
12532         ;;
12533     esac
12534     hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12535     hardcode_libdir_separator_CXX=:
12536     ;;
12537   linux* | k*bsd*-gnu)
12538     case $cc_basename in
12539       KCC*)
12540         # Kuck and Associates, Inc. (KAI) C++ Compiler
12541
12542         # KCC will only create a shared library if the output file
12543         # ends with ".so" (or ".sl" for HP-UX), so rename the library
12544         # to its proper name (with version) after linking.
12545         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'
12546         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'
12547         # Commands to make compiler produce verbose output that lists
12548         # what "hidden" libraries, object files and flags are used when
12549         # linking a shared library.
12550         #
12551         # There doesn't appear to be a way to prevent this compiler from
12552         # explicitly linking system object files so we need to strip them
12553         # from the output so that they don't get included in the library
12554         # dependencies.
12555         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'
12556
12557         hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
12558         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12559
12560         # Archives containing C++ object files must be created using
12561         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12562         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12563         ;;
12564       icpc*)
12565         # Intel C++
12566         with_gnu_ld=yes
12567         # version 8.0 and above of icpc choke on multiply defined symbols
12568         # if we add $predep_objects and $postdep_objects, however 7.1 and
12569         # earlier do not add the objects themselves.
12570         case `$CC -V 2>&1` in
12571         *"Version 7."*)
12572           archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12573           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'
12574           ;;
12575         *)  # Version 8.0 or newer
12576           tmp_idyn=
12577           case $host_cpu in
12578             ia64*) tmp_idyn=' -i_dynamic';;
12579           esac
12580           archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12581           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'
12582           ;;
12583         esac
12584         archive_cmds_need_lc_CXX=no
12585         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12586         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12587         whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12588         ;;
12589       pgCC*)
12590         # Portland Group C++ compiler
12591         archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12592         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'
12593
12594         hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12595         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12596         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'
12597         ;;
12598       cxx*)
12599         # Compaq C++
12600         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12601         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'
12602
12603         runpath_var=LD_RUN_PATH
12604         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12605         hardcode_libdir_separator_CXX=:
12606
12607         # Commands to make compiler produce verbose output that lists
12608         # what "hidden" libraries, object files and flags are used when
12609         # linking a shared library.
12610         #
12611         # There doesn't appear to be a way to prevent this compiler from
12612         # explicitly linking system object files so we need to strip them
12613         # from the output so that they don't get included in the library
12614         # dependencies.
12615         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'
12616         ;;
12617     esac
12618     ;;
12619   lynxos*)
12620     # FIXME: insert proper C++ library support
12621     ld_shlibs_CXX=no
12622     ;;
12623   m88k*)
12624     # FIXME: insert proper C++ library support
12625     ld_shlibs_CXX=no
12626     ;;
12627   mvs*)
12628     case $cc_basename in
12629       cxx*)
12630         # FIXME: insert proper C++ library support
12631         ld_shlibs_CXX=no
12632         ;;
12633       *)
12634         # FIXME: insert proper C++ library support
12635         ld_shlibs_CXX=no
12636         ;;
12637     esac
12638     ;;
12639   netbsd* | netbsdelf*-gnu)
12640     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12641       archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
12642       wlarc=
12643       hardcode_libdir_flag_spec_CXX='-R$libdir'
12644       hardcode_direct_CXX=yes
12645       hardcode_shlibpath_var_CXX=no
12646     fi
12647     # Workaround some broken pre-1.5 toolchains
12648     output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
12649     ;;
12650   openbsd2*)
12651     # C++ shared libraries are fairly broken
12652     ld_shlibs_CXX=no
12653     ;;
12654   openbsd*)
12655     hardcode_direct_CXX=yes
12656     hardcode_shlibpath_var_CXX=no
12657     archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12658     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12659     if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12660       archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
12661       export_dynamic_flag_spec_CXX='${wl}-E'
12662       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12663     fi
12664     output_verbose_link_cmd='echo'
12665     ;;
12666   osf3*)
12667     case $cc_basename in
12668       KCC*)
12669         # Kuck and Associates, Inc. (KAI) C++ Compiler
12670
12671         # KCC will only create a shared library if the output file
12672         # ends with ".so" (or ".sl" for HP-UX), so rename the library
12673         # to its proper name (with version) after linking.
12674         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'
12675
12676         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12677         hardcode_libdir_separator_CXX=:
12678
12679         # Archives containing C++ object files must be created using
12680         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12681         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12682
12683         ;;
12684       RCC*)
12685         # Rational C++ 2.4.1
12686         # FIXME: insert proper C++ library support
12687         ld_shlibs_CXX=no
12688         ;;
12689       cxx*)
12690         allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12691         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'
12692
12693         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12694         hardcode_libdir_separator_CXX=:
12695
12696         # Commands to make compiler produce verbose output that lists
12697         # what "hidden" libraries, object files and flags are used when
12698         # linking a shared library.
12699         #
12700         # There doesn't appear to be a way to prevent this compiler from
12701         # explicitly linking system object files so we need to strip them
12702         # from the output so that they don't get included in the library
12703         # dependencies.
12704         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'
12705         ;;
12706       *)
12707         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12708           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12709           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'
12710
12711           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12712           hardcode_libdir_separator_CXX=:
12713
12714           # Commands to make compiler produce verbose output that lists
12715           # what "hidden" libraries, object files and flags are used when
12716           # linking a shared library.
12717           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12718
12719         else
12720           # FIXME: insert proper C++ library support
12721           ld_shlibs_CXX=no
12722         fi
12723         ;;
12724     esac
12725     ;;
12726   osf4* | osf5*)
12727     case $cc_basename in
12728       KCC*)
12729         # Kuck and Associates, Inc. (KAI) C++ Compiler
12730
12731         # KCC will only create a shared library if the output file
12732         # ends with ".so" (or ".sl" for HP-UX), so rename the library
12733         # to its proper name (with version) after linking.
12734         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'
12735
12736         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12737         hardcode_libdir_separator_CXX=:
12738
12739         # Archives containing C++ object files must be created using
12740         # the KAI C++ compiler.
12741         old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
12742         ;;
12743       RCC*)
12744         # Rational C++ 2.4.1
12745         # FIXME: insert proper C++ library support
12746         ld_shlibs_CXX=no
12747         ;;
12748       cxx*)
12749         allow_undefined_flag_CXX=' -expect_unresolved \*'
12750         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'
12751         archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12752           echo "-hidden">> $lib.exp~
12753           $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~
12754           $rm $lib.exp'
12755
12756         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12757         hardcode_libdir_separator_CXX=:
12758
12759         # Commands to make compiler produce verbose output that lists
12760         # what "hidden" libraries, object files and flags are used when
12761         # linking a shared library.
12762         #
12763         # There doesn't appear to be a way to prevent this compiler from
12764         # explicitly linking system object files so we need to strip them
12765         # from the output so that they don't get included in the library
12766         # dependencies.
12767         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'
12768         ;;
12769       *)
12770         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12771           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12772          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'
12773
12774           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12775           hardcode_libdir_separator_CXX=:
12776
12777           # Commands to make compiler produce verbose output that lists
12778           # what "hidden" libraries, object files and flags are used when
12779           # linking a shared library.
12780           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12781
12782         else
12783           # FIXME: insert proper C++ library support
12784           ld_shlibs_CXX=no
12785         fi
12786         ;;
12787     esac
12788     ;;
12789   psos*)
12790     # FIXME: insert proper C++ library support
12791     ld_shlibs_CXX=no
12792     ;;
12793   sunos4*)
12794     case $cc_basename in
12795       CC*)
12796         # Sun C++ 4.x
12797         # FIXME: insert proper C++ library support
12798         ld_shlibs_CXX=no
12799         ;;
12800       lcc*)
12801         # Lucid
12802         # FIXME: insert proper C++ library support
12803         ld_shlibs_CXX=no
12804         ;;
12805       *)
12806         # FIXME: insert proper C++ library support
12807         ld_shlibs_CXX=no
12808         ;;
12809     esac
12810     ;;
12811   solaris*)
12812     case $cc_basename in
12813       CC*)
12814         # Sun C++ 4.2, 5.x and Centerline C++
12815         archive_cmds_need_lc_CXX=yes
12816         no_undefined_flag_CXX=' -zdefs'
12817         archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12818         archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12819         $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'
12820
12821         hardcode_libdir_flag_spec_CXX='-R$libdir'
12822         hardcode_shlibpath_var_CXX=no
12823         case $host_os in
12824           solaris2.[0-5] | solaris2.[0-5].*) ;;
12825           *)
12826             # The C++ compiler is used as linker so we must use $wl
12827             # flag to pass the commands to the underlying system
12828             # linker. We must also pass each convience library through
12829             # to the system linker between allextract/defaultextract.
12830             # The C++ compiler will combine linker options so we
12831             # cannot just pass the convience library names through
12832             # without $wl.
12833             # Supported since Solaris 2.6 (maybe 2.5.1?)
12834             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'
12835             ;;
12836         esac
12837         link_all_deplibs_CXX=yes
12838
12839         output_verbose_link_cmd='echo'
12840
12841         # Archives containing C++ object files must be created using
12842         # "CC -xar", where "CC" is the Sun C++ compiler.  This is
12843         # necessary to make sure instantiated templates are included
12844         # in the archive.
12845         old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12846         ;;
12847       gcx*)
12848         # Green Hills C++ Compiler
12849         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12850
12851         # The C++ compiler must be used to create the archive.
12852         old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12853         ;;
12854       *)
12855         # GNU C++ compiler with Solaris linker
12856         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12857           no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12858           if $CC --version | grep -v '^2\.7' > /dev/null; then
12859             archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12860             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12861                 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12862
12863             # Commands to make compiler produce verbose output that lists
12864             # what "hidden" libraries, object files and flags are used when
12865             # linking a shared library.
12866             output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12867           else
12868             # g++ 2.7 appears to require `-G' NOT `-shared' on this
12869             # platform.
12870             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12871             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12872                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12873
12874             # Commands to make compiler produce verbose output that lists
12875             # what "hidden" libraries, object files and flags are used when
12876             # linking a shared library.
12877             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12878           fi
12879
12880           hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12881         fi
12882         ;;
12883     esac
12884     ;;
12885   sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12886     no_undefined_flag_CXX='${wl}-z,text'
12887     archive_cmds_need_lc_CXX=no
12888     hardcode_shlibpath_var_CXX=no
12889     runpath_var='LD_RUN_PATH'
12890
12891     case $cc_basename in
12892       CC*)
12893         archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12894         archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12895         ;;
12896       *)
12897         archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12898         archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12899         ;;
12900     esac
12901     ;;
12902   sysv5* | sco3.2v5* | sco5v6*)
12903     # Note: We can NOT use -z defs as we might desire, because we do not
12904     # link with -lc, and that would cause any symbols used from libc to
12905     # always be unresolved, which means just about no library would
12906     # ever link correctly.  If we're not using GNU ld we use -z text
12907     # though, which does catch some bad symbols but isn't as heavy-handed
12908     # as -z defs.
12909     # For security reasons, it is highly recommended that you always
12910     # use absolute paths for naming shared libraries, and exclude the
12911     # DT_RUNPATH tag from executables and libraries.  But doing so
12912     # requires that you compile everything twice, which is a pain.
12913     # So that behaviour is only enabled if SCOABSPATH is set to a
12914     # non-empty value in the environment.  Most likely only useful for
12915     # creating official distributions of packages.
12916     # This is a hack until libtool officially supports absolute path
12917     # names for shared libraries.
12918     no_undefined_flag_CXX='${wl}-z,text'
12919     allow_undefined_flag_CXX='${wl}-z,nodefs'
12920     archive_cmds_need_lc_CXX=no
12921     hardcode_shlibpath_var_CXX=no
12922     hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
12923     hardcode_libdir_separator_CXX=':'
12924     link_all_deplibs_CXX=yes
12925     export_dynamic_flag_spec_CXX='${wl}-Bexport'
12926     runpath_var='LD_RUN_PATH'
12927
12928     case $cc_basename in
12929       CC*)
12930         archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12931         archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12932         ;;
12933       *)
12934         archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12935         archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12936         ;;
12937     esac
12938     ;;
12939   tandem*)
12940     case $cc_basename in
12941       NCC*)
12942         # NonStop-UX NCC 3.20
12943         # FIXME: insert proper C++ library support
12944         ld_shlibs_CXX=no
12945         ;;
12946       *)
12947         # FIXME: insert proper C++ library support
12948         ld_shlibs_CXX=no
12949         ;;
12950     esac
12951     ;;
12952   vxworks*)
12953     # FIXME: insert proper C++ library support
12954     ld_shlibs_CXX=no
12955     ;;
12956   *)
12957     # FIXME: insert proper C++ library support
12958     ld_shlibs_CXX=no
12959     ;;
12960 esac
12961 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12962 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12963 test "$ld_shlibs_CXX" = no && can_build_shared=no
12964
12965 GCC_CXX="$GXX"
12966 LD_CXX="$LD"
12967
12968 ## CAVEAT EMPTOR:
12969 ## There is no encapsulation within the following macros, do not change
12970 ## the running order or otherwise move them around unless you know exactly
12971 ## what you are doing...
12972
12973 cat > conftest.$ac_ext <<EOF
12974 class Foo
12975 {
12976 public:
12977   Foo (void) { a = 0; }
12978 private:
12979   int a;
12980 };
12981 EOF
12982
12983 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12984   (eval $ac_compile) 2>&5
12985   ac_status=$?
12986   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12987   (exit $ac_status); }; then
12988   # Parse the compiler output and extract the necessary
12989   # objects, libraries and library flags.
12990
12991   # Sentinel used to keep track of whether or not we are before
12992   # the conftest object file.
12993   pre_test_object_deps_done=no
12994
12995   # The `*' in the case matches for architectures that use `case' in
12996   # $output_verbose_cmd can trigger glob expansion during the loop
12997   # eval without this substitution.
12998   output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
12999
13000   for p in `eval $output_verbose_link_cmd`; do
13001     case $p in
13002
13003     -L* | -R* | -l*)
13004        # Some compilers place space between "-{L,R}" and the path.
13005        # Remove the space.
13006        if test $p = "-L" \
13007           || test $p = "-R"; then
13008          prev=$p
13009          continue
13010        else
13011          prev=
13012        fi
13013
13014        if test "$pre_test_object_deps_done" = no; then
13015          case $p in
13016          -L* | -R*)
13017            # Internal compiler library paths should come after those
13018            # provided the user.  The postdeps already come after the
13019            # user supplied libs so there is no need to process them.
13020            if test -z "$compiler_lib_search_path_CXX"; then
13021              compiler_lib_search_path_CXX="${prev}${p}"
13022            else
13023              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13024            fi
13025            ;;
13026          # The "-l" case would never come before the object being
13027          # linked, so don't bother handling this case.
13028          esac
13029        else
13030          if test -z "$postdeps_CXX"; then
13031            postdeps_CXX="${prev}${p}"
13032          else
13033            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13034          fi
13035        fi
13036        ;;
13037
13038     *.$objext)
13039        # This assumes that the test object file only shows up
13040        # once in the compiler output.
13041        if test "$p" = "conftest.$objext"; then
13042          pre_test_object_deps_done=yes
13043          continue
13044        fi
13045
13046        if test "$pre_test_object_deps_done" = no; then
13047          if test -z "$predep_objects_CXX"; then
13048            predep_objects_CXX="$p"
13049          else
13050            predep_objects_CXX="$predep_objects_CXX $p"
13051          fi
13052        else
13053          if test -z "$postdep_objects_CXX"; then
13054            postdep_objects_CXX="$p"
13055          else
13056            postdep_objects_CXX="$postdep_objects_CXX $p"
13057          fi
13058        fi
13059        ;;
13060
13061     *) ;; # Ignore the rest.
13062
13063     esac
13064   done
13065
13066   # Clean up.
13067   rm -f a.out a.exe
13068 else
13069   echo "libtool.m4: error: problem compiling CXX test program"
13070 fi
13071
13072 $rm -f confest.$objext
13073
13074 # PORTME: override above test on systems where it is broken
13075 case $host_os in
13076 interix3*)
13077   # Interix 3.5 installs completely hosed .la files for C++, so rather than
13078   # hack all around it, let's just trust "g++" to DTRT.
13079   predep_objects_CXX=
13080   postdep_objects_CXX=
13081   postdeps_CXX=
13082   ;;
13083
13084 solaris*)
13085   case $cc_basename in
13086   CC*)
13087     # Adding this requires a known-good setup of shared libraries for
13088     # Sun compiler versions before 5.6, else PIC objects from an old
13089     # archive will be linked into the output, leading to subtle bugs.
13090     postdeps_CXX='-lCstd -lCrun'
13091     ;;
13092   esac
13093   ;;
13094 esac
13095
13096
13097 case " $postdeps_CXX " in
13098 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
13099 esac
13100
13101 lt_prog_compiler_wl_CXX=
13102 lt_prog_compiler_pic_CXX=
13103 lt_prog_compiler_static_CXX=
13104
13105 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13106 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
13107  
13108   # C++ specific cases for pic, static, wl, etc.
13109   if test "$GXX" = yes; then
13110     lt_prog_compiler_wl_CXX='-Wl,'
13111     lt_prog_compiler_static_CXX='-static'
13112
13113     case $host_os in
13114     aix*)
13115       # All AIX code is PIC.
13116       if test "$host_cpu" = ia64; then
13117         # AIX 5 now supports IA64 processor
13118         lt_prog_compiler_static_CXX='-Bstatic'
13119       fi
13120       ;;
13121     amigaos*)
13122       # FIXME: we need at least 68020 code to build shared libraries, but
13123       # adding the `-m68020' flag to GCC prevents building anything better,
13124       # like `-m68040'.
13125       lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
13126       ;;
13127     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13128       # PIC is the default for these OSes.
13129       ;;
13130     mingw* | os2* | pw32*)
13131       # This hack is so that the source file can tell whether it is being
13132       # built for inclusion in a dll (and should export symbols for example).
13133       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13134       ;;
13135     darwin* | rhapsody*)
13136       # PIC is the default on this platform
13137       # Common symbols not allowed in MH_DYLIB files
13138       lt_prog_compiler_pic_CXX='-fno-common'
13139       ;;
13140     *djgpp*)
13141       # DJGPP does not support shared libraries at all
13142       lt_prog_compiler_pic_CXX=
13143       ;;
13144     interix3*)
13145       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13146       # Instead, we relocate shared libraries at runtime.
13147       ;;
13148     sysv4*MP*)
13149       if test -d /usr/nec; then
13150         lt_prog_compiler_pic_CXX=-Kconform_pic
13151       fi
13152       ;;
13153     hpux*)
13154       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13155       # not for PA HP-UX.
13156       case $host_cpu in
13157       hppa*64*|ia64*)
13158         ;;
13159       *)
13160         lt_prog_compiler_pic_CXX='-fPIC'
13161         ;;
13162       esac
13163       ;;
13164     *)
13165       lt_prog_compiler_pic_CXX='-fPIC'
13166       ;;
13167     esac
13168   else
13169     case $host_os in
13170       aix4* | aix5*)
13171         # All AIX code is PIC.
13172         if test "$host_cpu" = ia64; then
13173           # AIX 5 now supports IA64 processor
13174           lt_prog_compiler_static_CXX='-Bstatic'
13175         else
13176           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
13177         fi
13178         ;;
13179       chorus*)
13180         case $cc_basename in
13181         cxch68*)
13182           # Green Hills C++ Compiler
13183           # _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"
13184           ;;
13185         esac
13186         ;;
13187        darwin*)
13188          # PIC is the default on this platform
13189          # Common symbols not allowed in MH_DYLIB files
13190          case $cc_basename in
13191            xlc*)
13192            lt_prog_compiler_pic_CXX='-qnocommon'
13193            lt_prog_compiler_wl_CXX='-Wl,'
13194            ;;
13195          esac
13196        ;;
13197       dgux*)
13198         case $cc_basename in
13199           ec++*)
13200             lt_prog_compiler_pic_CXX='-KPIC'
13201             ;;
13202           ghcx*)
13203             # Green Hills C++ Compiler
13204             lt_prog_compiler_pic_CXX='-pic'
13205             ;;
13206           *)
13207             ;;
13208         esac
13209         ;;
13210       freebsd* | dragonfly*)
13211         # FreeBSD uses GNU C++
13212         ;;
13213       hpux9* | hpux10* | hpux11*)
13214         case $cc_basename in
13215           CC*)
13216             lt_prog_compiler_wl_CXX='-Wl,'
13217             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13218             if test "$host_cpu" != ia64; then
13219               lt_prog_compiler_pic_CXX='+Z'
13220             fi
13221             ;;
13222           aCC*)
13223             lt_prog_compiler_wl_CXX='-Wl,'
13224             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13225             case $host_cpu in
13226             hppa*64*|ia64*)
13227               # +Z the default
13228               ;;
13229             *)
13230               lt_prog_compiler_pic_CXX='+Z'
13231               ;;
13232             esac
13233             ;;
13234           *)
13235             ;;
13236         esac
13237         ;;
13238       interix*)
13239         # This is c89, which is MS Visual C++ (no shared libs)
13240         # Anyone wants to do a port?
13241         ;;
13242       irix5* | irix6* | nonstopux*)
13243         case $cc_basename in
13244           CC*)
13245             lt_prog_compiler_wl_CXX='-Wl,'
13246             lt_prog_compiler_static_CXX='-non_shared'
13247             # CC pic flag -KPIC is the default.
13248             ;;
13249           *)
13250             ;;
13251         esac
13252         ;;
13253       linux* | k*bsd*-gnu)
13254         case $cc_basename in
13255           KCC*)
13256             # KAI C++ Compiler
13257             lt_prog_compiler_wl_CXX='--backend -Wl,'
13258             lt_prog_compiler_pic_CXX='-fPIC'
13259             ;;
13260           icpc* | ecpc*)
13261             # Intel C++
13262             lt_prog_compiler_wl_CXX='-Wl,'
13263             lt_prog_compiler_pic_CXX='-KPIC'
13264             lt_prog_compiler_static_CXX='-static'
13265             ;;
13266           pgCC*)
13267             # Portland Group C++ compiler.
13268             lt_prog_compiler_wl_CXX='-Wl,'
13269             lt_prog_compiler_pic_CXX='-fpic'
13270             lt_prog_compiler_static_CXX='-Bstatic'
13271             ;;
13272           cxx*)
13273             # Compaq C++
13274             # Make sure the PIC flag is empty.  It appears that all Alpha
13275             # Linux and Compaq Tru64 Unix objects are PIC.
13276             lt_prog_compiler_pic_CXX=
13277             lt_prog_compiler_static_CXX='-non_shared'
13278             ;;
13279           *)
13280             ;;
13281         esac
13282         ;;
13283       lynxos*)
13284         ;;
13285       m88k*)
13286         ;;
13287       mvs*)
13288         case $cc_basename in
13289           cxx*)
13290             lt_prog_compiler_pic_CXX='-W c,exportall'
13291             ;;
13292           *)
13293             ;;
13294         esac
13295         ;;
13296       netbsd* | netbsdelf*-gnu)
13297         ;;
13298       osf3* | osf4* | osf5*)
13299         case $cc_basename in
13300           KCC*)
13301             lt_prog_compiler_wl_CXX='--backend -Wl,'
13302             ;;
13303           RCC*)
13304             # Rational C++ 2.4.1
13305             lt_prog_compiler_pic_CXX='-pic'
13306             ;;
13307           cxx*)
13308             # Digital/Compaq C++
13309             lt_prog_compiler_wl_CXX='-Wl,'
13310             # Make sure the PIC flag is empty.  It appears that all Alpha
13311             # Linux and Compaq Tru64 Unix objects are PIC.
13312             lt_prog_compiler_pic_CXX=
13313             lt_prog_compiler_static_CXX='-non_shared'
13314             ;;
13315           *)
13316             ;;
13317         esac
13318         ;;
13319       psos*)
13320         ;;
13321       solaris*)
13322         case $cc_basename in
13323           CC*)
13324             # Sun C++ 4.2, 5.x and Centerline C++
13325             lt_prog_compiler_pic_CXX='-KPIC'
13326             lt_prog_compiler_static_CXX='-Bstatic'
13327             lt_prog_compiler_wl_CXX='-Qoption ld '
13328             ;;
13329           gcx*)
13330             # Green Hills C++ Compiler
13331             lt_prog_compiler_pic_CXX='-PIC'
13332             ;;
13333           *)
13334             ;;
13335         esac
13336         ;;
13337       sunos4*)
13338         case $cc_basename in
13339           CC*)
13340             # Sun C++ 4.x
13341             lt_prog_compiler_pic_CXX='-pic'
13342             lt_prog_compiler_static_CXX='-Bstatic'
13343             ;;
13344           lcc*)
13345             # Lucid
13346             lt_prog_compiler_pic_CXX='-pic'
13347             ;;
13348           *)
13349             ;;
13350         esac
13351         ;;
13352       tandem*)
13353         case $cc_basename in
13354           NCC*)
13355             # NonStop-UX NCC 3.20
13356             lt_prog_compiler_pic_CXX='-KPIC'
13357             ;;
13358           *)
13359             ;;
13360         esac
13361         ;;
13362       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13363         case $cc_basename in
13364           CC*)
13365             lt_prog_compiler_wl_CXX='-Wl,'
13366             lt_prog_compiler_pic_CXX='-KPIC'
13367             lt_prog_compiler_static_CXX='-Bstatic'
13368             ;;
13369         esac
13370         ;;
13371       vxworks*)
13372         ;;
13373       *)
13374         lt_prog_compiler_can_build_shared_CXX=no
13375         ;;
13376     esac
13377   fi
13378
13379 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
13380 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
13381
13382 #
13383 # Check to make sure the PIC flag actually works.
13384 #
13385 if test -n "$lt_prog_compiler_pic_CXX"; then
13386   
13387 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
13388 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
13389 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
13390   echo $ECHO_N "(cached) $ECHO_C" >&6
13391 else
13392   lt_prog_compiler_pic_works_CXX=no
13393   ac_outfile=conftest.$ac_objext
13394    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13395    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
13396    # Insert the option either (1) after the last *FLAGS variable, or
13397    # (2) before a word containing "conftest.", or (3) at the end.
13398    # Note that $ac_compile itself does not contain backslashes and begins
13399    # with a dollar sign (not a hyphen), so the echo should work correctly.
13400    # The option is referenced via a variable to avoid confusing sed.
13401    lt_compile=`echo "$ac_compile" | $SED \
13402    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13403    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13404    -e 's:$: $lt_compiler_flag:'`
13405    (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
13406    (eval "$lt_compile" 2>conftest.err)
13407    ac_status=$?
13408    cat conftest.err >&5
13409    echo "$as_me:__oline__: \$? = $ac_status" >&5
13410    if (exit $ac_status) && test -s "$ac_outfile"; then
13411      # The compiler can only warn and ignore the option if not recognized
13412      # So say no if there are warnings other than the usual output.
13413      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13414      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13415      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13416        lt_prog_compiler_pic_works_CXX=yes
13417      fi
13418    fi
13419    $rm conftest*
13420
13421 fi
13422 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
13423 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
13424
13425 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
13426     case $lt_prog_compiler_pic_CXX in
13427      "" | " "*) ;;
13428      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
13429      esac
13430 else
13431     lt_prog_compiler_pic_CXX=
13432      lt_prog_compiler_can_build_shared_CXX=no
13433 fi
13434
13435 fi
13436 case $host_os in
13437   # For platforms which do not support PIC, -DPIC is meaningless:
13438   *djgpp*)
13439     lt_prog_compiler_pic_CXX=
13440     ;;
13441   *)
13442     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
13443     ;;
13444 esac
13445
13446 #
13447 # Check to make sure the static flag actually works.
13448 #
13449 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
13450 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13451 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
13452 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
13453   echo $ECHO_N "(cached) $ECHO_C" >&6
13454 else
13455   lt_prog_compiler_static_works_CXX=no
13456    save_LDFLAGS="$LDFLAGS"
13457    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13458    printf "$lt_simple_link_test_code" > conftest.$ac_ext
13459    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13460      # The linker can only warn and ignore the option if not recognized
13461      # So say no if there are warnings
13462      if test -s conftest.err; then
13463        # Append any errors to the config.log.
13464        cat conftest.err 1>&5
13465        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
13466        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13467        if diff conftest.exp conftest.er2 >/dev/null; then
13468          lt_prog_compiler_static_works_CXX=yes
13469        fi
13470      else
13471        lt_prog_compiler_static_works_CXX=yes
13472      fi
13473    fi
13474    $rm conftest*
13475    LDFLAGS="$save_LDFLAGS"
13476
13477 fi
13478 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
13479 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
13480
13481 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
13482     :
13483 else
13484     lt_prog_compiler_static_CXX=
13485 fi
13486
13487
13488 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13489 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
13490 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
13491   echo $ECHO_N "(cached) $ECHO_C" >&6
13492 else
13493   lt_cv_prog_compiler_c_o_CXX=no
13494    $rm -r conftest 2>/dev/null
13495    mkdir conftest
13496    cd conftest
13497    mkdir out
13498    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13499
13500    lt_compiler_flag="-o out/conftest2.$ac_objext"
13501    # Insert the option either (1) after the last *FLAGS variable, or
13502    # (2) before a word containing "conftest.", or (3) at the end.
13503    # Note that $ac_compile itself does not contain backslashes and begins
13504    # with a dollar sign (not a hyphen), so the echo should work correctly.
13505    lt_compile=`echo "$ac_compile" | $SED \
13506    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13507    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13508    -e 's:$: $lt_compiler_flag:'`
13509    (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
13510    (eval "$lt_compile" 2>out/conftest.err)
13511    ac_status=$?
13512    cat out/conftest.err >&5
13513    echo "$as_me:__oline__: \$? = $ac_status" >&5
13514    if (exit $ac_status) && test -s out/conftest2.$ac_objext
13515    then
13516      # The compiler can only warn and ignore the option if not recognized
13517      # So say no if there are warnings
13518      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13519      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13520      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13521        lt_cv_prog_compiler_c_o_CXX=yes
13522      fi
13523    fi
13524    chmod u+w . 2>&5
13525    $rm conftest*
13526    # SGI C++ compiler will create directory out/ii_files/ for
13527    # template instantiation
13528    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13529    $rm out/* && rmdir out
13530    cd ..
13531    rmdir conftest
13532    $rm conftest*
13533
13534 fi
13535 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13536 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
13537
13538
13539 hard_links="nottested"
13540 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
13541   # do not overwrite the value of need_locks provided by the user
13542   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13543 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
13544   hard_links=yes
13545   $rm conftest*
13546   ln conftest.a conftest.b 2>/dev/null && hard_links=no
13547   touch conftest.a
13548   ln conftest.a conftest.b 2>&5 || hard_links=no
13549   ln conftest.a conftest.b 2>/dev/null && hard_links=no
13550   { echo "$as_me:$LINENO: result: $hard_links" >&5
13551 echo "${ECHO_T}$hard_links" >&6; }
13552   if test "$hard_links" = no; then
13553     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13554 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13555     need_locks=warn
13556   fi
13557 else
13558   need_locks=no
13559 fi
13560
13561 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13562 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
13563
13564   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13565   case $host_os in
13566   aix4* | aix5*)
13567     # If we're using GNU nm, then we don't want the "-C" option.
13568     # -C means demangle to AIX nm, but means don't demangle with GNU nm
13569     if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13570       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'
13571     else
13572       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'
13573     fi
13574     ;;
13575   pw32*)
13576     export_symbols_cmds_CXX="$ltdll_cmds"
13577   ;;
13578   cygwin* | mingw*)
13579     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'
13580   ;;
13581   linux* | k*bsd*-gnu)
13582     link_all_deplibs_CXX=no
13583   ;;
13584   *)
13585     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13586   ;;
13587   esac
13588
13589 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
13590 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
13591 test "$ld_shlibs_CXX" = no && can_build_shared=no
13592
13593 #
13594 # Do we need to explicitly link libc?
13595 #
13596 case "x$archive_cmds_need_lc_CXX" in
13597 x|xyes)
13598   # Assume -lc should be added
13599   archive_cmds_need_lc_CXX=yes
13600
13601   if test "$enable_shared" = yes && test "$GCC" = yes; then
13602     case $archive_cmds_CXX in
13603     *'~'*)
13604       # FIXME: we may have to deal with multi-command sequences.
13605       ;;
13606     '$CC '*)
13607       # Test whether the compiler implicitly links with -lc since on some
13608       # systems, -lgcc has to come before -lc. If gcc already passes -lc
13609       # to ld, don't add -lc before -lgcc.
13610       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13611 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
13612       $rm conftest*
13613       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13614
13615       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13616   (eval $ac_compile) 2>&5
13617   ac_status=$?
13618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13619   (exit $ac_status); } 2>conftest.err; then
13620         soname=conftest
13621         lib=conftest
13622         libobjs=conftest.$ac_objext
13623         deplibs=
13624         wl=$lt_prog_compiler_wl_CXX
13625         pic_flag=$lt_prog_compiler_pic_CXX
13626         compiler_flags=-v
13627         linker_flags=-v
13628         verstring=
13629         output_objdir=.
13630         libname=conftest
13631         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
13632         allow_undefined_flag_CXX=
13633         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13634   (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13635   ac_status=$?
13636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13637   (exit $ac_status); }
13638         then
13639           archive_cmds_need_lc_CXX=no
13640         else
13641           archive_cmds_need_lc_CXX=yes
13642         fi
13643         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
13644       else
13645         cat conftest.err 1>&5
13646       fi
13647       $rm conftest*
13648       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
13649 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
13650       ;;
13651     esac
13652   fi
13653   ;;
13654 esac
13655
13656 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13657 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
13658 library_names_spec=
13659 libname_spec='lib$name'
13660 soname_spec=
13661 shrext_cmds=".so"
13662 postinstall_cmds=
13663 postuninstall_cmds=
13664 finish_cmds=
13665 finish_eval=
13666 shlibpath_var=
13667 shlibpath_overrides_runpath=unknown
13668 version_type=none
13669 dynamic_linker="$host_os ld.so"
13670 sys_lib_dlsearch_path_spec="/lib /usr/lib"
13671 if test "$GCC" = yes; then
13672   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13673   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
13674     # if the path contains ";" then we assume it to be the separator
13675     # otherwise default to the standard path separator (i.e. ":") - it is
13676     # assumed that no part of a normal pathname contains ";" but that should
13677     # okay in the real world where ";" in dirpaths is itself problematic.
13678     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13679   else
13680     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
13681   fi
13682 else
13683   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13684 fi
13685 need_lib_prefix=unknown
13686 hardcode_into_libs=no
13687
13688 # when you set need_version to no, make sure it does not cause -set_version
13689 # flags to be left without arguments
13690 need_version=unknown
13691
13692 case $host_os in
13693 aix3*)
13694   version_type=linux
13695   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13696   shlibpath_var=LIBPATH
13697
13698   # AIX 3 has no versioning support, so we append a major version to the name.
13699   soname_spec='${libname}${release}${shared_ext}$major'
13700   ;;
13701
13702 aix4* | aix5*)
13703   version_type=linux
13704   need_lib_prefix=no
13705   need_version=no
13706   hardcode_into_libs=yes
13707   if test "$host_cpu" = ia64; then
13708     # AIX 5 supports IA64
13709     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13710     shlibpath_var=LD_LIBRARY_PATH
13711   else
13712     # With GCC up to 2.95.x, collect2 would create an import file
13713     # for dependence libraries.  The import file would start with
13714     # the line `#! .'.  This would cause the generated library to
13715     # depend on `.', always an invalid library.  This was fixed in
13716     # development snapshots of GCC prior to 3.0.
13717     case $host_os in
13718       aix4 | aix4.[01] | aix4.[01].*)
13719       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13720            echo ' yes '
13721            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13722         :
13723       else
13724         can_build_shared=no
13725       fi
13726       ;;
13727     esac
13728     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13729     # soname into executable. Probably we can add versioning support to
13730     # collect2, so additional links can be useful in future.
13731     if test "$aix_use_runtimelinking" = yes; then
13732       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13733       # instead of lib<name>.a to let people know that these are not
13734       # typical AIX shared libraries.
13735       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13736     else
13737       # We preserve .a as extension for shared libraries through AIX4.2
13738       # and later when we are not doing run time linking.
13739       library_names_spec='${libname}${release}.a $libname.a'
13740       soname_spec='${libname}${release}${shared_ext}$major'
13741     fi
13742     shlibpath_var=LIBPATH
13743   fi
13744   ;;
13745
13746 amigaos*)
13747   library_names_spec='$libname.ixlibrary $libname.a'
13748   # Create ${libname}_ixlibrary.a entries in /sys/libs.
13749   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'
13750   ;;
13751
13752 beos*)
13753   library_names_spec='${libname}${shared_ext}'
13754   dynamic_linker="$host_os ld.so"
13755   shlibpath_var=LIBRARY_PATH
13756   ;;
13757
13758 bsdi[45]*)
13759   version_type=linux
13760   need_version=no
13761   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13762   soname_spec='${libname}${release}${shared_ext}$major'
13763   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13764   shlibpath_var=LD_LIBRARY_PATH
13765   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13766   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13767   # the default ld.so.conf also contains /usr/contrib/lib and
13768   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13769   # libtool to hard-code these into programs
13770   ;;
13771
13772 cygwin* | mingw* | pw32*)
13773   version_type=windows
13774   shrext_cmds=".dll"
13775   need_version=no
13776   need_lib_prefix=no
13777
13778   case $GCC,$host_os in
13779   yes,cygwin* | yes,mingw* | yes,pw32*)
13780     library_names_spec='$libname.dll.a'
13781     # DLL is installed to $(libdir)/../bin by postinstall_cmds
13782     postinstall_cmds='base_file=`basename \${file}`~
13783       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13784       dldir=$destdir/`dirname \$dlpath`~
13785       test -d \$dldir || mkdir -p \$dldir~
13786       $install_prog $dir/$dlname \$dldir/$dlname~
13787       chmod a+x \$dldir/$dlname'
13788     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13789       dlpath=$dir/\$dldll~
13790        $rm \$dlpath'
13791     shlibpath_overrides_runpath=yes
13792
13793     case $host_os in
13794     cygwin*)
13795       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13796       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13797       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13798       ;;
13799     mingw*)
13800       # MinGW DLLs use traditional 'lib' prefix
13801       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13802       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13803       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13804         # It is most probably a Windows format PATH printed by
13805         # mingw gcc, but we are running on Cygwin. Gcc prints its search
13806         # path with ; separators, and with drive letters. We can handle the
13807         # drive letters (cygwin fileutils understands them), so leave them,
13808         # especially as we might pass files found there to a mingw objdump,
13809         # which wouldn't understand a cygwinified path. Ahh.
13810         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13811       else
13812         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
13813       fi
13814       ;;
13815     pw32*)
13816       # pw32 DLLs use 'pw' prefix rather than 'lib'
13817       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13818       ;;
13819     esac
13820     ;;
13821
13822   *)
13823     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13824     ;;
13825   esac
13826   dynamic_linker='Win32 ld.exe'
13827   # FIXME: first we should search . and the directory the executable is in
13828   shlibpath_var=PATH
13829   ;;
13830
13831 darwin* | rhapsody*)
13832   dynamic_linker="$host_os dyld"
13833   version_type=darwin
13834   need_lib_prefix=no
13835   need_version=no
13836   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13837   soname_spec='${libname}${release}${major}$shared_ext'
13838   shlibpath_overrides_runpath=yes
13839   shlibpath_var=DYLD_LIBRARY_PATH
13840   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13841   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
13842   if test "$GCC" = yes; then
13843     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"`
13844   else
13845     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
13846   fi
13847   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13848   ;;
13849
13850 dgux*)
13851   version_type=linux
13852   need_lib_prefix=no
13853   need_version=no
13854   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13855   soname_spec='${libname}${release}${shared_ext}$major'
13856   shlibpath_var=LD_LIBRARY_PATH
13857   ;;
13858
13859 freebsd1*)
13860   dynamic_linker=no
13861   ;;
13862
13863 freebsd* | dragonfly*)
13864   # DragonFly does not have aout.  When/if they implement a new
13865   # versioning mechanism, adjust this.
13866   if test -x /usr/bin/objformat; then
13867     objformat=`/usr/bin/objformat`
13868   else
13869     case $host_os in
13870     freebsd[123]*) objformat=aout ;;
13871     *) objformat=elf ;;
13872     esac
13873   fi
13874   version_type=freebsd-$objformat
13875   case $version_type in
13876     freebsd-elf*)
13877       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13878       need_version=no
13879       need_lib_prefix=no
13880       ;;
13881     freebsd-*)
13882       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13883       need_version=yes
13884       ;;
13885   esac
13886   shlibpath_var=LD_LIBRARY_PATH
13887   case $host_os in
13888   freebsd2*)
13889     shlibpath_overrides_runpath=yes
13890     ;;
13891   freebsd3.[01]* | freebsdelf3.[01]*)
13892     shlibpath_overrides_runpath=yes
13893     hardcode_into_libs=yes
13894     ;;
13895   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13896   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13897     shlibpath_overrides_runpath=no
13898     hardcode_into_libs=yes
13899     ;;
13900   freebsd*) # from 4.6 on
13901     shlibpath_overrides_runpath=yes
13902     hardcode_into_libs=yes
13903     ;;
13904   esac
13905   ;;
13906
13907 gnu*)
13908   version_type=linux
13909   need_lib_prefix=no
13910   need_version=no
13911   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13912   soname_spec='${libname}${release}${shared_ext}$major'
13913   shlibpath_var=LD_LIBRARY_PATH
13914   hardcode_into_libs=yes
13915   ;;
13916
13917 hpux9* | hpux10* | hpux11*)
13918   # Give a soname corresponding to the major version so that dld.sl refuses to
13919   # link against other versions.
13920   version_type=sunos
13921   need_lib_prefix=no
13922   need_version=no
13923   case $host_cpu in
13924   ia64*)
13925     shrext_cmds='.so'
13926     hardcode_into_libs=yes
13927     dynamic_linker="$host_os dld.so"
13928     shlibpath_var=LD_LIBRARY_PATH
13929     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13930     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13931     soname_spec='${libname}${release}${shared_ext}$major'
13932     if test "X$HPUX_IA64_MODE" = X32; then
13933       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13934     else
13935       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13936     fi
13937     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13938     ;;
13939    hppa*64*)
13940      shrext_cmds='.sl'
13941      hardcode_into_libs=yes
13942      dynamic_linker="$host_os dld.sl"
13943      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13944      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13945      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13946      soname_spec='${libname}${release}${shared_ext}$major'
13947      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13948      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13949      ;;
13950    *)
13951     shrext_cmds='.sl'
13952     dynamic_linker="$host_os dld.sl"
13953     shlibpath_var=SHLIB_PATH
13954     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13955     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13956     soname_spec='${libname}${release}${shared_ext}$major'
13957     ;;
13958   esac
13959   # HP-UX runs *really* slowly unless shared libraries are mode 555.
13960   postinstall_cmds='chmod 555 $lib'
13961   ;;
13962
13963 interix3*)
13964   version_type=linux
13965   need_lib_prefix=no
13966   need_version=no
13967   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13968   soname_spec='${libname}${release}${shared_ext}$major'
13969   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13970   shlibpath_var=LD_LIBRARY_PATH
13971   shlibpath_overrides_runpath=no
13972   hardcode_into_libs=yes
13973   ;;
13974
13975 irix5* | irix6* | nonstopux*)
13976   case $host_os in
13977     nonstopux*) version_type=nonstopux ;;
13978     *)
13979         if test "$lt_cv_prog_gnu_ld" = yes; then
13980                 version_type=linux
13981         else
13982                 version_type=irix
13983         fi ;;
13984   esac
13985   need_lib_prefix=no
13986   need_version=no
13987   soname_spec='${libname}${release}${shared_ext}$major'
13988   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13989   case $host_os in
13990   irix5* | nonstopux*)
13991     libsuff= shlibsuff=
13992     ;;
13993   *)
13994     case $LD in # libtool.m4 will add one of these switches to LD
13995     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13996       libsuff= shlibsuff= libmagic=32-bit;;
13997     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13998       libsuff=32 shlibsuff=N32 libmagic=N32;;
13999     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14000       libsuff=64 shlibsuff=64 libmagic=64-bit;;
14001     *) libsuff= shlibsuff= libmagic=never-match;;
14002     esac
14003     ;;
14004   esac
14005   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14006   shlibpath_overrides_runpath=no
14007   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14008   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14009   hardcode_into_libs=yes
14010   ;;
14011
14012 # No shared lib support for Linux oldld, aout, or coff.
14013 linux*oldld* | linux*aout* | linux*coff*)
14014   dynamic_linker=no
14015   ;;
14016
14017 # This must be Linux ELF.
14018 linux* | k*bsd*-gnu)
14019   version_type=linux
14020   need_lib_prefix=no
14021   need_version=no
14022   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14023   soname_spec='${libname}${release}${shared_ext}$major'
14024   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14025   shlibpath_var=LD_LIBRARY_PATH
14026   shlibpath_overrides_runpath=no
14027   # This implies no fast_install, which is unacceptable.
14028   # Some rework will be needed to allow for fast_install
14029   # before this can be enabled.
14030   hardcode_into_libs=yes
14031
14032   # Append ld.so.conf contents to the search path
14033   if test -f /etc/ld.so.conf; then
14034     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' ' '`
14035     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14036   fi
14037
14038   # We used to test for /lib/ld.so.1 and disable shared libraries on
14039   # powerpc, because MkLinux only supported shared libraries with the
14040   # GNU dynamic linker.  Since this was broken with cross compilers,
14041   # most powerpc-linux boxes support dynamic linking these days and
14042   # people can always --disable-shared, the test was removed, and we
14043   # assume the GNU/Linux dynamic linker is in use.
14044   dynamic_linker='GNU/Linux ld.so'
14045   ;;
14046
14047 netbsdelf*-gnu)
14048   version_type=linux
14049   need_lib_prefix=no
14050   need_version=no
14051   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14052   soname_spec='${libname}${release}${shared_ext}$major'
14053   shlibpath_var=LD_LIBRARY_PATH
14054   shlibpath_overrides_runpath=no
14055   hardcode_into_libs=yes
14056   dynamic_linker='NetBSD ld.elf_so'
14057   ;;
14058
14059 netbsd*)
14060   version_type=sunos
14061   need_lib_prefix=no
14062   need_version=no
14063   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14064     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14065     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14066     dynamic_linker='NetBSD (a.out) ld.so'
14067   else
14068     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14069     soname_spec='${libname}${release}${shared_ext}$major'
14070     dynamic_linker='NetBSD ld.elf_so'
14071   fi
14072   shlibpath_var=LD_LIBRARY_PATH
14073   shlibpath_overrides_runpath=yes
14074   hardcode_into_libs=yes
14075   ;;
14076
14077 newsos6)
14078   version_type=linux
14079   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14080   shlibpath_var=LD_LIBRARY_PATH
14081   shlibpath_overrides_runpath=yes
14082   ;;
14083
14084 nto-qnx*)
14085   version_type=linux
14086   need_lib_prefix=no
14087   need_version=no
14088   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14089   soname_spec='${libname}${release}${shared_ext}$major'
14090   shlibpath_var=LD_LIBRARY_PATH
14091   shlibpath_overrides_runpath=yes
14092   ;;
14093
14094 openbsd*)
14095   version_type=sunos
14096   sys_lib_dlsearch_path_spec="/usr/lib"
14097   need_lib_prefix=no
14098   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14099   case $host_os in
14100     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14101     *)                         need_version=no  ;;
14102   esac
14103   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14104   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14105   shlibpath_var=LD_LIBRARY_PATH
14106   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14107     case $host_os in
14108       openbsd2.[89] | openbsd2.[89].*)
14109         shlibpath_overrides_runpath=no
14110         ;;
14111       *)
14112         shlibpath_overrides_runpath=yes
14113         ;;
14114       esac
14115   else
14116     shlibpath_overrides_runpath=yes
14117   fi
14118   ;;
14119
14120 os2*)
14121   libname_spec='$name'
14122   shrext_cmds=".dll"
14123   need_lib_prefix=no
14124   library_names_spec='$libname${shared_ext} $libname.a'
14125   dynamic_linker='OS/2 ld.exe'
14126   shlibpath_var=LIBPATH
14127   ;;
14128
14129 osf3* | osf4* | osf5*)
14130   version_type=osf
14131   need_lib_prefix=no
14132   need_version=no
14133   soname_spec='${libname}${release}${shared_ext}$major'
14134   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14135   shlibpath_var=LD_LIBRARY_PATH
14136   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14137   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14138   ;;
14139
14140 solaris*)
14141   version_type=linux
14142   need_lib_prefix=no
14143   need_version=no
14144   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14145   soname_spec='${libname}${release}${shared_ext}$major'
14146   shlibpath_var=LD_LIBRARY_PATH
14147   shlibpath_overrides_runpath=yes
14148   hardcode_into_libs=yes
14149   # ldd complains unless libraries are executable
14150   postinstall_cmds='chmod +x $lib'
14151   ;;
14152
14153 sunos4*)
14154   version_type=sunos
14155   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14156   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14157   shlibpath_var=LD_LIBRARY_PATH
14158   shlibpath_overrides_runpath=yes
14159   if test "$with_gnu_ld" = yes; then
14160     need_lib_prefix=no
14161   fi
14162   need_version=yes
14163   ;;
14164
14165 sysv4 | sysv4.3*)
14166   version_type=linux
14167   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14168   soname_spec='${libname}${release}${shared_ext}$major'
14169   shlibpath_var=LD_LIBRARY_PATH
14170   case $host_vendor in
14171     sni)
14172       shlibpath_overrides_runpath=no
14173       need_lib_prefix=no
14174       export_dynamic_flag_spec='${wl}-Blargedynsym'
14175       runpath_var=LD_RUN_PATH
14176       ;;
14177     siemens)
14178       need_lib_prefix=no
14179       ;;
14180     motorola)
14181       need_lib_prefix=no
14182       need_version=no
14183       shlibpath_overrides_runpath=no
14184       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14185       ;;
14186   esac
14187   ;;
14188
14189 sysv4*MP*)
14190   if test -d /usr/nec ;then
14191     version_type=linux
14192     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14193     soname_spec='$libname${shared_ext}.$major'
14194     shlibpath_var=LD_LIBRARY_PATH
14195   fi
14196   ;;
14197
14198 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14199   version_type=freebsd-elf
14200   need_lib_prefix=no
14201   need_version=no
14202   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14203   soname_spec='${libname}${release}${shared_ext}$major'
14204   shlibpath_var=LD_LIBRARY_PATH
14205   hardcode_into_libs=yes
14206   if test "$with_gnu_ld" = yes; then
14207     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14208     shlibpath_overrides_runpath=no
14209   else
14210     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14211     shlibpath_overrides_runpath=yes
14212     case $host_os in
14213       sco3.2v5*)
14214         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14215         ;;
14216     esac
14217   fi
14218   sys_lib_dlsearch_path_spec='/usr/lib'
14219   ;;
14220
14221 uts4*)
14222   version_type=linux
14223   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14224   soname_spec='${libname}${release}${shared_ext}$major'
14225   shlibpath_var=LD_LIBRARY_PATH
14226   ;;
14227
14228 *)
14229   dynamic_linker=no
14230   ;;
14231 esac
14232 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14233 echo "${ECHO_T}$dynamic_linker" >&6; }
14234 test "$dynamic_linker" = no && can_build_shared=no
14235
14236 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14237 if test "$GCC" = yes; then
14238   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14239 fi
14240
14241 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
14242 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
14243 hardcode_action_CXX=
14244 if test -n "$hardcode_libdir_flag_spec_CXX" || \
14245    test -n "$runpath_var_CXX" || \
14246    test "X$hardcode_automatic_CXX" = "Xyes" ; then
14247
14248   # We can hardcode non-existant directories.
14249   if test "$hardcode_direct_CXX" != no &&
14250      # If the only mechanism to avoid hardcoding is shlibpath_var, we
14251      # have to relink, otherwise we might link with an installed library
14252      # when we should be linking with a yet-to-be-installed one
14253      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
14254      test "$hardcode_minus_L_CXX" != no; then
14255     # Linking always hardcodes the temporary library directory.
14256     hardcode_action_CXX=relink
14257   else
14258     # We can link without hardcoding, and we can hardcode nonexisting dirs.
14259     hardcode_action_CXX=immediate
14260   fi
14261 else
14262   # We cannot hardcode anything, or else we can only hardcode existing
14263   # directories.
14264   hardcode_action_CXX=unsupported
14265 fi
14266 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
14267 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
14268
14269 if test "$hardcode_action_CXX" = relink; then
14270   # Fast installation is not supported
14271   enable_fast_install=no
14272 elif test "$shlibpath_overrides_runpath" = yes ||
14273      test "$enable_shared" = no; then
14274   # Fast installation is not necessary
14275   enable_fast_install=needless
14276 fi
14277
14278
14279 # The else clause should only fire when bootstrapping the
14280 # libtool distribution, otherwise you forgot to ship ltmain.sh
14281 # with your package, and you will get complaints that there are
14282 # no rules to generate ltmain.sh.
14283 if test -f "$ltmain"; then
14284   # See if we are running on zsh, and set the options which allow our commands through
14285   # without removal of \ escapes.
14286   if test -n "${ZSH_VERSION+set}" ; then
14287     setopt NO_GLOB_SUBST
14288   fi
14289   # Now quote all the things that may contain metacharacters while being
14290   # careful not to overquote the AC_SUBSTed values.  We take copies of the
14291   # variables and quote the copies for generation of the libtool script.
14292   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
14293     SED SHELL STRIP \
14294     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14295     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14296     deplibs_check_method reload_flag reload_cmds need_locks \
14297     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14298     lt_cv_sys_global_symbol_to_c_name_address \
14299     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14300     old_postinstall_cmds old_postuninstall_cmds \
14301     compiler_CXX \
14302     CC_CXX \
14303     LD_CXX \
14304     lt_prog_compiler_wl_CXX \
14305     lt_prog_compiler_pic_CXX \
14306     lt_prog_compiler_static_CXX \
14307     lt_prog_compiler_no_builtin_flag_CXX \
14308     export_dynamic_flag_spec_CXX \
14309     thread_safe_flag_spec_CXX \
14310     whole_archive_flag_spec_CXX \
14311     enable_shared_with_static_runtimes_CXX \
14312     old_archive_cmds_CXX \
14313     old_archive_from_new_cmds_CXX \
14314     predep_objects_CXX \
14315     postdep_objects_CXX \
14316     predeps_CXX \
14317     postdeps_CXX \
14318     compiler_lib_search_path_CXX \
14319     archive_cmds_CXX \
14320     archive_expsym_cmds_CXX \
14321     postinstall_cmds_CXX \
14322     postuninstall_cmds_CXX \
14323     old_archive_from_expsyms_cmds_CXX \
14324     allow_undefined_flag_CXX \
14325     no_undefined_flag_CXX \
14326     export_symbols_cmds_CXX \
14327     hardcode_libdir_flag_spec_CXX \
14328     hardcode_libdir_flag_spec_ld_CXX \
14329     hardcode_libdir_separator_CXX \
14330     hardcode_automatic_CXX \
14331     module_cmds_CXX \
14332     module_expsym_cmds_CXX \
14333     lt_cv_prog_compiler_c_o_CXX \
14334     exclude_expsyms_CXX \
14335     include_expsyms_CXX; do
14336
14337     case $var in
14338     old_archive_cmds_CXX | \
14339     old_archive_from_new_cmds_CXX | \
14340     archive_cmds_CXX | \
14341     archive_expsym_cmds_CXX | \
14342     module_cmds_CXX | \
14343     module_expsym_cmds_CXX | \
14344     old_archive_from_expsyms_cmds_CXX | \
14345     export_symbols_cmds_CXX | \
14346     extract_expsyms_cmds | reload_cmds | finish_cmds | \
14347     postinstall_cmds | postuninstall_cmds | \
14348     old_postinstall_cmds | old_postuninstall_cmds | \
14349     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14350       # Double-quote double-evaled strings.
14351       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14352       ;;
14353     *)
14354       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14355       ;;
14356     esac
14357   done
14358
14359   case $lt_echo in
14360   *'\$0 --fallback-echo"')
14361     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14362     ;;
14363   esac
14364
14365 cfgfile="$ofile"
14366
14367   cat <<__EOF__ >> "$cfgfile"
14368 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
14369
14370 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14371
14372 # Shell to use when invoking shell scripts.
14373 SHELL=$lt_SHELL
14374
14375 # Whether or not to build shared libraries.
14376 build_libtool_libs=$enable_shared
14377
14378 # Whether or not to build static libraries.
14379 build_old_libs=$enable_static
14380
14381 # Whether or not to add -lc for building shared libraries.
14382 build_libtool_need_lc=$archive_cmds_need_lc_CXX
14383
14384 # Whether or not to disallow shared libs when runtime libs are static
14385 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
14386
14387 # Whether or not to optimize for fast installation.
14388 fast_install=$enable_fast_install
14389
14390 # The host system.
14391 host_alias=$host_alias
14392 host=$host
14393 host_os=$host_os
14394
14395 # The build system.
14396 build_alias=$build_alias
14397 build=$build
14398 build_os=$build_os
14399
14400 # An echo program that does not interpret backslashes.
14401 echo=$lt_echo
14402
14403 # The archiver.
14404 AR=$lt_AR
14405 AR_FLAGS=$lt_AR_FLAGS
14406
14407 # A C compiler.
14408 LTCC=$lt_LTCC
14409
14410 # LTCC compiler flags.
14411 LTCFLAGS=$lt_LTCFLAGS
14412
14413 # A language-specific compiler.
14414 CC=$lt_compiler_CXX
14415
14416 # Is the compiler the GNU C compiler?
14417 with_gcc=$GCC_CXX
14418
14419 # An ERE matcher.
14420 EGREP=$lt_EGREP
14421
14422 # The linker used to build libraries.
14423 LD=$lt_LD_CXX
14424
14425 # Whether we need hard or soft links.
14426 LN_S=$lt_LN_S
14427
14428 # A BSD-compatible nm program.
14429 NM=$lt_NM
14430
14431 # A symbol stripping program
14432 STRIP=$lt_STRIP
14433
14434 # Used to examine libraries when file_magic_cmd begins "file"
14435 MAGIC_CMD=$MAGIC_CMD
14436
14437 # Used on cygwin: DLL creation program.
14438 DLLTOOL="$DLLTOOL"
14439
14440 # Used on cygwin: object dumper.
14441 OBJDUMP="$OBJDUMP"
14442
14443 # Used on cygwin: assembler.
14444 AS="$AS"
14445
14446 # The name of the directory that contains temporary libtool files.
14447 objdir=$objdir
14448
14449 # How to create reloadable object files.
14450 reload_flag=$lt_reload_flag
14451 reload_cmds=$lt_reload_cmds
14452
14453 # How to pass a linker flag through the compiler.
14454 wl=$lt_lt_prog_compiler_wl_CXX
14455
14456 # Object file suffix (normally "o").
14457 objext="$ac_objext"
14458
14459 # Old archive suffix (normally "a").
14460 libext="$libext"
14461
14462 # Shared library suffix (normally ".so").
14463 shrext_cmds='$shrext_cmds'
14464
14465 # Executable file suffix (normally "").
14466 exeext="$exeext"
14467
14468 # Additional compiler flags for building library objects.
14469 pic_flag=$lt_lt_prog_compiler_pic_CXX
14470 pic_mode=$pic_mode
14471
14472 # What is the maximum length of a command?
14473 max_cmd_len=$lt_cv_sys_max_cmd_len
14474
14475 # Does compiler simultaneously support -c and -o options?
14476 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
14477
14478 # Must we lock files when doing compilation?
14479 need_locks=$lt_need_locks
14480
14481 # Do we need the lib prefix for modules?
14482 need_lib_prefix=$need_lib_prefix
14483
14484 # Do we need a version for libraries?
14485 need_version=$need_version
14486
14487 # Whether dlopen is supported.
14488 dlopen_support=$enable_dlopen
14489
14490 # Whether dlopen of programs is supported.
14491 dlopen_self=$enable_dlopen_self
14492
14493 # Whether dlopen of statically linked programs is supported.
14494 dlopen_self_static=$enable_dlopen_self_static
14495
14496 # Compiler flag to prevent dynamic linking.
14497 link_static_flag=$lt_lt_prog_compiler_static_CXX
14498
14499 # Compiler flag to turn off builtin functions.
14500 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
14501
14502 # Compiler flag to allow reflexive dlopens.
14503 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
14504
14505 # Compiler flag to generate shared objects directly from archives.
14506 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
14507
14508 # Compiler flag to generate thread-safe objects.
14509 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
14510
14511 # Library versioning type.
14512 version_type=$version_type
14513
14514 # Format of library name prefix.
14515 libname_spec=$lt_libname_spec
14516
14517 # List of archive names.  First name is the real one, the rest are links.
14518 # The last name is the one that the linker finds with -lNAME.
14519 library_names_spec=$lt_library_names_spec
14520
14521 # The coded name of the library, if different from the real name.
14522 soname_spec=$lt_soname_spec
14523
14524 # Commands used to build and install an old-style archive.
14525 RANLIB=$lt_RANLIB
14526 old_archive_cmds=$lt_old_archive_cmds_CXX
14527 old_postinstall_cmds=$lt_old_postinstall_cmds
14528 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14529
14530 # Create an old-style archive from a shared archive.
14531 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
14532
14533 # Create a temporary old-style archive to link instead of a shared archive.
14534 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
14535
14536 # Commands used to build and install a shared archive.
14537 archive_cmds=$lt_archive_cmds_CXX
14538 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
14539 postinstall_cmds=$lt_postinstall_cmds
14540 postuninstall_cmds=$lt_postuninstall_cmds
14541
14542 # Commands used to build a loadable module (assumed same as above if empty)
14543 module_cmds=$lt_module_cmds_CXX
14544 module_expsym_cmds=$lt_module_expsym_cmds_CXX
14545
14546 # Commands to strip libraries.
14547 old_striplib=$lt_old_striplib
14548 striplib=$lt_striplib
14549
14550 # Dependencies to place before the objects being linked to create a
14551 # shared library.
14552 predep_objects=$lt_predep_objects_CXX
14553
14554 # Dependencies to place after the objects being linked to create a
14555 # shared library.
14556 postdep_objects=$lt_postdep_objects_CXX
14557
14558 # Dependencies to place before the objects being linked to create a
14559 # shared library.
14560 predeps=$lt_predeps_CXX
14561
14562 # Dependencies to place after the objects being linked to create a
14563 # shared library.
14564 postdeps=$lt_postdeps_CXX
14565
14566 # The library search path used internally by the compiler when linking
14567 # a shared library.
14568 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
14569
14570 # Method to check whether dependent libraries are shared objects.
14571 deplibs_check_method=$lt_deplibs_check_method
14572
14573 # Command to use when deplibs_check_method == file_magic.
14574 file_magic_cmd=$lt_file_magic_cmd
14575
14576 # Flag that allows shared libraries with undefined symbols to be built.
14577 allow_undefined_flag=$lt_allow_undefined_flag_CXX
14578
14579 # Flag that forces no undefined symbols.
14580 no_undefined_flag=$lt_no_undefined_flag_CXX
14581
14582 # Commands used to finish a libtool library installation in a directory.
14583 finish_cmds=$lt_finish_cmds
14584
14585 # Same as above, but a single script fragment to be evaled but not shown.
14586 finish_eval=$lt_finish_eval
14587
14588 # Take the output of nm and produce a listing of raw symbols and C names.
14589 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14590
14591 # Transform the output of nm in a proper C declaration
14592 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14593
14594 # Transform the output of nm in a C name address pair
14595 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14596
14597 # This is the shared library runtime path variable.
14598 runpath_var=$runpath_var
14599
14600 # This is the shared library path variable.
14601 shlibpath_var=$shlibpath_var
14602
14603 # Is shlibpath searched before the hard-coded library search path?
14604 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14605
14606 # How to hardcode a shared library path into an executable.
14607 hardcode_action=$hardcode_action_CXX
14608
14609 # Whether we should hardcode library paths into libraries.
14610 hardcode_into_libs=$hardcode_into_libs
14611
14612 # Flag to hardcode \$libdir into a binary during linking.
14613 # This must work even if \$libdir does not exist.
14614 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
14615
14616 # If ld is used when linking, flag to hardcode \$libdir into
14617 # a binary during linking. This must work even if \$libdir does
14618 # not exist.
14619 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
14620
14621 # Whether we need a single -rpath flag with a separated argument.
14622 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
14623
14624 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14625 # resulting binary.
14626 hardcode_direct=$hardcode_direct_CXX
14627
14628 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14629 # resulting binary.
14630 hardcode_minus_L=$hardcode_minus_L_CXX
14631
14632 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14633 # the resulting binary.
14634 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
14635
14636 # Set to yes if building a shared library automatically hardcodes DIR into the library
14637 # and all subsequent libraries and executables linked against it.
14638 hardcode_automatic=$hardcode_automatic_CXX
14639
14640 # Variables whose values should be saved in libtool wrapper scripts and
14641 # restored at relink time.
14642 variables_saved_for_relink="$variables_saved_for_relink"
14643
14644 # Whether libtool must link a program against all its dependency libraries.
14645 link_all_deplibs=$link_all_deplibs_CXX
14646
14647 # Compile-time system search path for libraries
14648 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14649
14650 # Run-time system search path for libraries
14651 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14652
14653 # Fix the shell variable \$srcfile for the compiler.
14654 fix_srcfile_path="$fix_srcfile_path_CXX"
14655
14656 # Set to yes if exported symbols are required.
14657 always_export_symbols=$always_export_symbols_CXX
14658
14659 # The commands to list exported symbols.
14660 export_symbols_cmds=$lt_export_symbols_cmds_CXX
14661
14662 # The commands to extract the exported symbol list from a shared archive.
14663 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14664
14665 # Symbols that should not be listed in the preloaded symbols.
14666 exclude_expsyms=$lt_exclude_expsyms_CXX
14667
14668 # Symbols that must always be exported.
14669 include_expsyms=$lt_include_expsyms_CXX
14670
14671 # ### END LIBTOOL TAG CONFIG: $tagname
14672
14673 __EOF__
14674
14675
14676 else
14677   # If there is no Makefile yet, we rely on a make rule to execute
14678   # `config.status --recheck' to rerun these tests and create the
14679   # libtool script then.
14680   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
14681   if test -f "$ltmain_in"; then
14682     test -f Makefile && make "$ltmain"
14683   fi
14684 fi
14685
14686
14687 ac_ext=c
14688 ac_cpp='$CPP $CPPFLAGS'
14689 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14690 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14691 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14692
14693 CC=$lt_save_CC
14694 LDCXX=$LD
14695 LD=$lt_save_LD
14696 GCC=$lt_save_GCC
14697 with_gnu_ldcxx=$with_gnu_ld
14698 with_gnu_ld=$lt_save_with_gnu_ld
14699 lt_cv_path_LDCXX=$lt_cv_path_LD
14700 lt_cv_path_LD=$lt_save_path_LD
14701 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14702 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14703
14704         else
14705           tagname=""
14706         fi
14707         ;;
14708
14709       F77)
14710         if test -n "$F77" && test "X$F77" != "Xno"; then
14711           
14712 ac_ext=f
14713 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
14714 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14715 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
14716
14717
14718 archive_cmds_need_lc_F77=no
14719 allow_undefined_flag_F77=
14720 always_export_symbols_F77=no
14721 archive_expsym_cmds_F77=
14722 export_dynamic_flag_spec_F77=
14723 hardcode_direct_F77=no
14724 hardcode_libdir_flag_spec_F77=
14725 hardcode_libdir_flag_spec_ld_F77=
14726 hardcode_libdir_separator_F77=
14727 hardcode_minus_L_F77=no
14728 hardcode_automatic_F77=no
14729 module_cmds_F77=
14730 module_expsym_cmds_F77=
14731 link_all_deplibs_F77=unknown
14732 old_archive_cmds_F77=$old_archive_cmds
14733 no_undefined_flag_F77=
14734 whole_archive_flag_spec_F77=
14735 enable_shared_with_static_runtimes_F77=no
14736
14737 # Source file extension for f77 test sources.
14738 ac_ext=f
14739
14740 # Object file extension for compiled f77 test sources.
14741 objext=o
14742 objext_F77=$objext
14743
14744 # Code to be used in simple compile tests
14745 lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
14746
14747 # Code to be used in simple link tests
14748 lt_simple_link_test_code="      program t\n      end\n"
14749
14750 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
14751
14752 # If no C compiler was specified, use CC.
14753 LTCC=${LTCC-"$CC"}
14754
14755 # If no C compiler flags were specified, use CFLAGS.
14756 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14757
14758 # Allow CC to be a program name with arguments.
14759 compiler=$CC
14760
14761
14762 # save warnings/boilerplate of simple test code
14763 ac_outfile=conftest.$ac_objext
14764 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
14765 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14766 _lt_compiler_boilerplate=`cat conftest.err`
14767 $rm conftest*
14768
14769 ac_outfile=conftest.$ac_objext
14770 printf "$lt_simple_link_test_code" >conftest.$ac_ext
14771 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14772 _lt_linker_boilerplate=`cat conftest.err`
14773 $rm conftest*
14774
14775
14776 # Allow CC to be a program name with arguments.
14777 lt_save_CC="$CC"
14778 CC=${F77-"f77"}
14779 compiler=$CC
14780 compiler_F77=$CC
14781 for cc_temp in $compiler""; do
14782   case $cc_temp in
14783     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14784     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14785     \-*) ;;
14786     *) break;;
14787   esac
14788 done
14789 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14790
14791
14792 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14793 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
14794 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
14795 echo "${ECHO_T}$can_build_shared" >&6; }
14796
14797 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14798 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
14799 test "$can_build_shared" = "no" && enable_shared=no
14800
14801 # On AIX, shared libraries and static libraries use the same namespace, and
14802 # are all built from PIC.
14803 case $host_os in
14804 aix3*)
14805   test "$enable_shared" = yes && enable_static=no
14806   if test -n "$RANLIB"; then
14807     archive_cmds="$archive_cmds~\$RANLIB \$lib"
14808     postinstall_cmds='$RANLIB $lib'
14809   fi
14810   ;;
14811 aix4* | aix5*)
14812   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14813     test "$enable_shared" = yes && enable_static=no
14814   fi
14815   ;;
14816 esac
14817 { echo "$as_me:$LINENO: result: $enable_shared" >&5
14818 echo "${ECHO_T}$enable_shared" >&6; }
14819
14820 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14821 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
14822 # Make sure either enable_shared or enable_static is yes.
14823 test "$enable_shared" = yes || enable_static=yes
14824 { echo "$as_me:$LINENO: result: $enable_static" >&5
14825 echo "${ECHO_T}$enable_static" >&6; }
14826
14827 GCC_F77="$G77"
14828 LD_F77="$LD"
14829
14830 lt_prog_compiler_wl_F77=
14831 lt_prog_compiler_pic_F77=
14832 lt_prog_compiler_static_F77=
14833
14834 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14835 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
14836  
14837   if test "$GCC" = yes; then
14838     lt_prog_compiler_wl_F77='-Wl,'
14839     lt_prog_compiler_static_F77='-static'
14840
14841     case $host_os in
14842       aix*)
14843       # All AIX code is PIC.
14844       if test "$host_cpu" = ia64; then
14845         # AIX 5 now supports IA64 processor
14846         lt_prog_compiler_static_F77='-Bstatic'
14847       fi
14848       ;;
14849
14850     amigaos*)
14851       # FIXME: we need at least 68020 code to build shared libraries, but
14852       # adding the `-m68020' flag to GCC prevents building anything better,
14853       # like `-m68040'.
14854       lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
14855       ;;
14856
14857     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14858       # PIC is the default for these OSes.
14859       ;;
14860
14861     mingw* | pw32* | os2*)
14862       # This hack is so that the source file can tell whether it is being
14863       # built for inclusion in a dll (and should export symbols for example).
14864       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14865       ;;
14866
14867     darwin* | rhapsody*)
14868       # PIC is the default on this platform
14869       # Common symbols not allowed in MH_DYLIB files
14870       lt_prog_compiler_pic_F77='-fno-common'
14871       ;;
14872
14873     interix3*)
14874       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14875       # Instead, we relocate shared libraries at runtime.
14876       ;;
14877
14878     msdosdjgpp*)
14879       # Just because we use GCC doesn't mean we suddenly get shared libraries
14880       # on systems that don't support them.
14881       lt_prog_compiler_can_build_shared_F77=no
14882       enable_shared=no
14883       ;;
14884
14885     sysv4*MP*)
14886       if test -d /usr/nec; then
14887         lt_prog_compiler_pic_F77=-Kconform_pic
14888       fi
14889       ;;
14890
14891     hpux*)
14892       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14893       # not for PA HP-UX.
14894       case $host_cpu in
14895       hppa*64*|ia64*)
14896         # +Z the default
14897         ;;
14898       *)
14899         lt_prog_compiler_pic_F77='-fPIC'
14900         ;;
14901       esac
14902       ;;
14903
14904     *)
14905       lt_prog_compiler_pic_F77='-fPIC'
14906       ;;
14907     esac
14908   else
14909     # PORTME Check for flag to pass linker flags through the system compiler.
14910     case $host_os in
14911     aix*)
14912       lt_prog_compiler_wl_F77='-Wl,'
14913       if test "$host_cpu" = ia64; then
14914         # AIX 5 now supports IA64 processor
14915         lt_prog_compiler_static_F77='-Bstatic'
14916       else
14917         lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
14918       fi
14919       ;;
14920       darwin*)
14921         # PIC is the default on this platform
14922         # Common symbols not allowed in MH_DYLIB files
14923        case $cc_basename in
14924          xlc*)
14925          lt_prog_compiler_pic_F77='-qnocommon'
14926          lt_prog_compiler_wl_F77='-Wl,'
14927          ;;
14928        esac
14929        ;;
14930
14931     mingw* | pw32* | os2*)
14932       # This hack is so that the source file can tell whether it is being
14933       # built for inclusion in a dll (and should export symbols for example).
14934       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14935       ;;
14936
14937     hpux9* | hpux10* | hpux11*)
14938       lt_prog_compiler_wl_F77='-Wl,'
14939       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14940       # not for PA HP-UX.
14941       case $host_cpu in
14942       hppa*64*|ia64*)
14943         # +Z the default
14944         ;;
14945       *)
14946         lt_prog_compiler_pic_F77='+Z'
14947         ;;
14948       esac
14949       # Is there a better lt_prog_compiler_static that works with the bundled CC?
14950       lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
14951       ;;
14952
14953     irix5* | irix6* | nonstopux*)
14954       lt_prog_compiler_wl_F77='-Wl,'
14955       # PIC (with -KPIC) is the default.
14956       lt_prog_compiler_static_F77='-non_shared'
14957       ;;
14958
14959     newsos6)
14960       lt_prog_compiler_pic_F77='-KPIC'
14961       lt_prog_compiler_static_F77='-Bstatic'
14962       ;;
14963
14964     linux* | k*bsd*-gnu)
14965       case $cc_basename in
14966       icc* | ecc*)
14967         lt_prog_compiler_wl_F77='-Wl,'
14968         lt_prog_compiler_pic_F77='-KPIC'
14969         lt_prog_compiler_static_F77='-static'
14970         ;;
14971       pgcc* | pgf77* | pgf90* | pgf95*)
14972         # Portland Group compilers (*not* the Pentium gcc compiler,
14973         # which looks to be a dead project)
14974         lt_prog_compiler_wl_F77='-Wl,'
14975         lt_prog_compiler_pic_F77='-fpic'
14976         lt_prog_compiler_static_F77='-Bstatic'
14977         ;;
14978       ccc*)
14979         lt_prog_compiler_wl_F77='-Wl,'
14980         # All Alpha code is PIC.
14981         lt_prog_compiler_static_F77='-non_shared'
14982         ;;
14983       esac
14984       ;;
14985
14986     osf3* | osf4* | osf5*)
14987       lt_prog_compiler_wl_F77='-Wl,'
14988       # All OSF/1 code is PIC.
14989       lt_prog_compiler_static_F77='-non_shared'
14990       ;;
14991
14992     solaris*)
14993       lt_prog_compiler_pic_F77='-KPIC'
14994       lt_prog_compiler_static_F77='-Bstatic'
14995       case $cc_basename in
14996       f77* | f90* | f95*)
14997         lt_prog_compiler_wl_F77='-Qoption ld ';;
14998       *)
14999         lt_prog_compiler_wl_F77='-Wl,';;
15000       esac
15001       ;;
15002
15003     sunos4*)
15004       lt_prog_compiler_wl_F77='-Qoption ld '
15005       lt_prog_compiler_pic_F77='-PIC'
15006       lt_prog_compiler_static_F77='-Bstatic'
15007       ;;
15008
15009     sysv4 | sysv4.2uw2* | sysv4.3*)
15010       lt_prog_compiler_wl_F77='-Wl,'
15011       lt_prog_compiler_pic_F77='-KPIC'
15012       lt_prog_compiler_static_F77='-Bstatic'
15013       ;;
15014
15015     sysv4*MP*)
15016       if test -d /usr/nec ;then
15017         lt_prog_compiler_pic_F77='-Kconform_pic'
15018         lt_prog_compiler_static_F77='-Bstatic'
15019       fi
15020       ;;
15021
15022     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15023       lt_prog_compiler_wl_F77='-Wl,'
15024       lt_prog_compiler_pic_F77='-KPIC'
15025       lt_prog_compiler_static_F77='-Bstatic'
15026       ;;
15027
15028     unicos*)
15029       lt_prog_compiler_wl_F77='-Wl,'
15030       lt_prog_compiler_can_build_shared_F77=no
15031       ;;
15032
15033     uts4*)
15034       lt_prog_compiler_pic_F77='-pic'
15035       lt_prog_compiler_static_F77='-Bstatic'
15036       ;;
15037
15038     *)
15039       lt_prog_compiler_can_build_shared_F77=no
15040       ;;
15041     esac
15042   fi
15043
15044 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
15045 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
15046
15047 #
15048 # Check to make sure the PIC flag actually works.
15049 #
15050 if test -n "$lt_prog_compiler_pic_F77"; then
15051   
15052 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
15053 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
15054 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
15055   echo $ECHO_N "(cached) $ECHO_C" >&6
15056 else
15057   lt_prog_compiler_pic_works_F77=no
15058   ac_outfile=conftest.$ac_objext
15059    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15060    lt_compiler_flag="$lt_prog_compiler_pic_F77"
15061    # Insert the option either (1) after the last *FLAGS variable, or
15062    # (2) before a word containing "conftest.", or (3) at the end.
15063    # Note that $ac_compile itself does not contain backslashes and begins
15064    # with a dollar sign (not a hyphen), so the echo should work correctly.
15065    # The option is referenced via a variable to avoid confusing sed.
15066    lt_compile=`echo "$ac_compile" | $SED \
15067    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15068    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15069    -e 's:$: $lt_compiler_flag:'`
15070    (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
15071    (eval "$lt_compile" 2>conftest.err)
15072    ac_status=$?
15073    cat conftest.err >&5
15074    echo "$as_me:__oline__: \$? = $ac_status" >&5
15075    if (exit $ac_status) && test -s "$ac_outfile"; then
15076      # The compiler can only warn and ignore the option if not recognized
15077      # So say no if there are warnings other than the usual output.
15078      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15079      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15080      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15081        lt_prog_compiler_pic_works_F77=yes
15082      fi
15083    fi
15084    $rm conftest*
15085
15086 fi
15087 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
15088 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
15089
15090 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
15091     case $lt_prog_compiler_pic_F77 in
15092      "" | " "*) ;;
15093      *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
15094      esac
15095 else
15096     lt_prog_compiler_pic_F77=
15097      lt_prog_compiler_can_build_shared_F77=no
15098 fi
15099
15100 fi
15101 case $host_os in
15102   # For platforms which do not support PIC, -DPIC is meaningless:
15103   *djgpp*)
15104     lt_prog_compiler_pic_F77=
15105     ;;
15106   *)
15107     lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
15108     ;;
15109 esac
15110
15111 #
15112 # Check to make sure the static flag actually works.
15113 #
15114 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
15115 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15116 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
15117 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
15118   echo $ECHO_N "(cached) $ECHO_C" >&6
15119 else
15120   lt_prog_compiler_static_works_F77=no
15121    save_LDFLAGS="$LDFLAGS"
15122    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15123    printf "$lt_simple_link_test_code" > conftest.$ac_ext
15124    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15125      # The linker can only warn and ignore the option if not recognized
15126      # So say no if there are warnings
15127      if test -s conftest.err; then
15128        # Append any errors to the config.log.
15129        cat conftest.err 1>&5
15130        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
15131        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15132        if diff conftest.exp conftest.er2 >/dev/null; then
15133          lt_prog_compiler_static_works_F77=yes
15134        fi
15135      else
15136        lt_prog_compiler_static_works_F77=yes
15137      fi
15138    fi
15139    $rm conftest*
15140    LDFLAGS="$save_LDFLAGS"
15141
15142 fi
15143 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
15144 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
15145
15146 if test x"$lt_prog_compiler_static_works_F77" = xyes; then
15147     :
15148 else
15149     lt_prog_compiler_static_F77=
15150 fi
15151
15152
15153 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15154 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
15155 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
15156   echo $ECHO_N "(cached) $ECHO_C" >&6
15157 else
15158   lt_cv_prog_compiler_c_o_F77=no
15159    $rm -r conftest 2>/dev/null
15160    mkdir conftest
15161    cd conftest
15162    mkdir out
15163    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15164
15165    lt_compiler_flag="-o out/conftest2.$ac_objext"
15166    # Insert the option either (1) after the last *FLAGS variable, or
15167    # (2) before a word containing "conftest.", or (3) at the end.
15168    # Note that $ac_compile itself does not contain backslashes and begins
15169    # with a dollar sign (not a hyphen), so the echo should work correctly.
15170    lt_compile=`echo "$ac_compile" | $SED \
15171    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15172    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15173    -e 's:$: $lt_compiler_flag:'`
15174    (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
15175    (eval "$lt_compile" 2>out/conftest.err)
15176    ac_status=$?
15177    cat out/conftest.err >&5
15178    echo "$as_me:__oline__: \$? = $ac_status" >&5
15179    if (exit $ac_status) && test -s out/conftest2.$ac_objext
15180    then
15181      # The compiler can only warn and ignore the option if not recognized
15182      # So say no if there are warnings
15183      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
15184      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15185      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15186        lt_cv_prog_compiler_c_o_F77=yes
15187      fi
15188    fi
15189    chmod u+w . 2>&5
15190    $rm conftest*
15191    # SGI C++ compiler will create directory out/ii_files/ for
15192    # template instantiation
15193    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15194    $rm out/* && rmdir out
15195    cd ..
15196    rmdir conftest
15197    $rm conftest*
15198
15199 fi
15200 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
15201 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
15202
15203
15204 hard_links="nottested"
15205 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
15206   # do not overwrite the value of need_locks provided by the user
15207   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15208 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
15209   hard_links=yes
15210   $rm conftest*
15211   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15212   touch conftest.a
15213   ln conftest.a conftest.b 2>&5 || hard_links=no
15214   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15215   { echo "$as_me:$LINENO: result: $hard_links" >&5
15216 echo "${ECHO_T}$hard_links" >&6; }
15217   if test "$hard_links" = no; then
15218     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15219 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15220     need_locks=warn
15221   fi
15222 else
15223   need_locks=no
15224 fi
15225
15226 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15227 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
15228
15229   runpath_var=
15230   allow_undefined_flag_F77=
15231   enable_shared_with_static_runtimes_F77=no
15232   archive_cmds_F77=
15233   archive_expsym_cmds_F77=
15234   old_archive_From_new_cmds_F77=
15235   old_archive_from_expsyms_cmds_F77=
15236   export_dynamic_flag_spec_F77=
15237   whole_archive_flag_spec_F77=
15238   thread_safe_flag_spec_F77=
15239   hardcode_libdir_flag_spec_F77=
15240   hardcode_libdir_flag_spec_ld_F77=
15241   hardcode_libdir_separator_F77=
15242   hardcode_direct_F77=no
15243   hardcode_minus_L_F77=no
15244   hardcode_shlibpath_var_F77=unsupported
15245   link_all_deplibs_F77=unknown
15246   hardcode_automatic_F77=no
15247   module_cmds_F77=
15248   module_expsym_cmds_F77=
15249   always_export_symbols_F77=no
15250   export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15251   # include_expsyms should be a list of space-separated symbols to be *always*
15252   # included in the symbol list
15253   include_expsyms_F77=
15254   # exclude_expsyms can be an extended regexp of symbols to exclude
15255   # it will be wrapped by ` (' and `)$', so one must not match beginning or
15256   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15257   # as well as any symbol that contains `d'.
15258   exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
15259   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15260   # platforms (ab)use it in PIC code, but their linkers get confused if
15261   # the symbol is explicitly referenced.  Since portable code cannot
15262   # rely on this symbol name, it's probably fine to never include it in
15263   # preloaded symbol tables.
15264   extract_expsyms_cmds=
15265   # Just being paranoid about ensuring that cc_basename is set.
15266   for cc_temp in $compiler""; do
15267   case $cc_temp in
15268     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15269     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15270     \-*) ;;
15271     *) break;;
15272   esac
15273 done
15274 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15275
15276   case $host_os in
15277   cygwin* | mingw* | pw32*)
15278     # FIXME: the MSVC++ port hasn't been tested in a loooong time
15279     # When not using gcc, we currently assume that we are using
15280     # Microsoft Visual C++.
15281     if test "$GCC" != yes; then
15282       with_gnu_ld=no
15283     fi
15284     ;;
15285   interix*)
15286     # we just hope/assume this is gcc and not c89 (= MSVC++)
15287     with_gnu_ld=yes
15288     ;;
15289   openbsd*)
15290     with_gnu_ld=no
15291     ;;
15292   esac
15293
15294   ld_shlibs_F77=yes
15295   if test "$with_gnu_ld" = yes; then
15296     # If archive_cmds runs LD, not CC, wlarc should be empty
15297     wlarc='${wl}'
15298
15299     # Set some defaults for GNU ld with shared library support. These
15300     # are reset later if shared libraries are not supported. Putting them
15301     # here allows them to be overridden if necessary.
15302     runpath_var=LD_RUN_PATH
15303     hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
15304     export_dynamic_flag_spec_F77='${wl}--export-dynamic'
15305     # ancient GNU ld didn't support --whole-archive et. al.
15306     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15307         whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15308       else
15309         whole_archive_flag_spec_F77=
15310     fi
15311     supports_anon_versioning=no
15312     case `$LD -v 2>/dev/null` in
15313       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15314       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15315       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15316       *\ 2.11.*) ;; # other 2.11 versions
15317       *) supports_anon_versioning=yes ;;
15318     esac
15319
15320     # See if GNU ld supports shared libraries.
15321     case $host_os in
15322     aix3* | aix4* | aix5*)
15323       # On AIX/PPC, the GNU linker is very broken
15324       if test "$host_cpu" != ia64; then
15325         ld_shlibs_F77=no
15326         cat <<EOF 1>&2
15327
15328 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
15329 *** to be unable to reliably create shared libraries on AIX.
15330 *** Therefore, libtool is disabling shared libraries support.  If you
15331 *** really care for shared libraries, you may want to modify your PATH
15332 *** so that a non-GNU linker is found, and then restart.
15333
15334 EOF
15335       fi
15336       ;;
15337
15338     amigaos*)
15339       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)'
15340       hardcode_libdir_flag_spec_F77='-L$libdir'
15341       hardcode_minus_L_F77=yes
15342
15343       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15344       # that the semantics of dynamic libraries on AmigaOS, at least up
15345       # to version 4, is to share data among multiple programs linked
15346       # with the same dynamic library.  Since this doesn't match the
15347       # behavior of shared libraries on other platforms, we can't use
15348       # them.
15349       ld_shlibs_F77=no
15350       ;;
15351
15352     beos*)
15353       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15354         allow_undefined_flag_F77=unsupported
15355         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15356         # support --undefined.  This deserves some investigation.  FIXME
15357         archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15358       else
15359         ld_shlibs_F77=no
15360       fi
15361       ;;
15362
15363     cygwin* | mingw* | pw32*)
15364       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
15365       # as there is no search path for DLLs.
15366       hardcode_libdir_flag_spec_F77='-L$libdir'
15367       allow_undefined_flag_F77=unsupported
15368       always_export_symbols_F77=no
15369       enable_shared_with_static_runtimes_F77=yes
15370       export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15371
15372       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15373         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15374         # If the export-symbols file already is a .def file (1st line
15375         # is EXPORTS), use it as is; otherwise, prepend...
15376         archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15377           cp $export_symbols $output_objdir/$soname.def;
15378         else
15379           echo EXPORTS > $output_objdir/$soname.def;
15380           cat $export_symbols >> $output_objdir/$soname.def;
15381         fi~
15382         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15383       else
15384         ld_shlibs_F77=no
15385       fi
15386       ;;
15387
15388     interix3*)
15389       hardcode_direct_F77=no
15390       hardcode_shlibpath_var_F77=no
15391       hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15392       export_dynamic_flag_spec_F77='${wl}-E'
15393       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15394       # Instead, shared libraries are loaded at an image base (0x10000000 by
15395       # default) and relocated if they conflict, which is a slow very memory
15396       # consuming and fragmenting process.  To avoid this, we pick a random,
15397       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15398       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
15399       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'
15400       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'
15401       ;;
15402
15403     linux* | k*bsd*-gnu)
15404       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15405         tmp_addflag=
15406         case $cc_basename,$host_cpu in
15407         pgcc*)                          # Portland Group C compiler
15408           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'
15409           tmp_addflag=' $pic_flag'
15410           ;;
15411         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
15412           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'
15413           tmp_addflag=' $pic_flag -Mnomain' ;;
15414         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
15415           tmp_addflag=' -i_dynamic' ;;
15416         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
15417           tmp_addflag=' -i_dynamic -nofor_main' ;;
15418         ifc* | ifort*)                  # Intel Fortran compiler
15419           tmp_addflag=' -nofor_main' ;;
15420         esac
15421         archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15422
15423         if test $supports_anon_versioning = yes; then
15424           archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
15425   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15426   $echo "local: *; };" >> $output_objdir/$libname.ver~
15427           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15428         fi
15429         link_all_deplibs_F77=no
15430       else
15431         ld_shlibs_F77=no
15432       fi
15433       ;;
15434
15435     netbsd* | netbsdelf*-gnu)
15436       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15437         archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15438         wlarc=
15439       else
15440         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15441         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15442       fi
15443       ;;
15444
15445     solaris*)
15446       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15447         ld_shlibs_F77=no
15448         cat <<EOF 1>&2
15449
15450 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15451 *** create shared libraries on Solaris systems.  Therefore, libtool
15452 *** is disabling shared libraries support.  We urge you to upgrade GNU
15453 *** binutils to release 2.9.1 or newer.  Another option is to modify
15454 *** your PATH or compiler configuration so that the native linker is
15455 *** used, and then restart.
15456
15457 EOF
15458       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15459         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15460         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15461       else
15462         ld_shlibs_F77=no
15463       fi
15464       ;;
15465
15466     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15467       case `$LD -v 2>&1` in
15468         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 
15469         ld_shlibs_F77=no
15470         cat <<_LT_EOF 1>&2
15471
15472 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15473 *** reliably create shared libraries on SCO systems.  Therefore, libtool
15474 *** is disabling shared libraries support.  We urge you to upgrade GNU
15475 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
15476 *** your PATH or compiler configuration so that the native linker is
15477 *** used, and then restart.
15478
15479 _LT_EOF
15480         ;;
15481         *)
15482           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15483             hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
15484             archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
15485             archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
15486           else
15487             ld_shlibs_F77=no
15488           fi
15489         ;;
15490       esac
15491       ;;
15492
15493     sunos4*)
15494       archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15495       wlarc=
15496       hardcode_direct_F77=yes
15497       hardcode_shlibpath_var_F77=no
15498       ;;
15499
15500     *)
15501       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15502         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15503         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15504       else
15505         ld_shlibs_F77=no
15506       fi
15507       ;;
15508     esac
15509
15510     if test "$ld_shlibs_F77" = no; then
15511       runpath_var=
15512       hardcode_libdir_flag_spec_F77=
15513       export_dynamic_flag_spec_F77=
15514       whole_archive_flag_spec_F77=
15515     fi
15516   else
15517     # PORTME fill in a description of your system's linker (not GNU ld)
15518     case $host_os in
15519     aix3*)
15520       allow_undefined_flag_F77=unsupported
15521       always_export_symbols_F77=yes
15522       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'
15523       # Note: this linker hardcodes the directories in LIBPATH if there
15524       # are no directories specified by -L.
15525       hardcode_minus_L_F77=yes
15526       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15527         # Neither direct hardcoding nor static linking is supported with a
15528         # broken collect2.
15529         hardcode_direct_F77=unsupported
15530       fi
15531       ;;
15532
15533     aix4* | aix5*)
15534       if test "$host_cpu" = ia64; then
15535         # On IA64, the linker does run time linking by default, so we don't
15536         # have to do anything special.
15537         aix_use_runtimelinking=no
15538         exp_sym_flag='-Bexport'
15539         no_entry_flag=""
15540       else
15541         # If we're using GNU nm, then we don't want the "-C" option.
15542         # -C means demangle to AIX nm, but means don't demangle with GNU nm
15543         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15544           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'
15545         else
15546           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'
15547         fi
15548         aix_use_runtimelinking=no
15549
15550         # Test if we are trying to use run time linking or normal
15551         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15552         # need to do runtime linking.
15553         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15554           for ld_flag in $LDFLAGS; do
15555           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15556             aix_use_runtimelinking=yes
15557             break
15558           fi
15559           done
15560           ;;
15561         esac
15562
15563         exp_sym_flag='-bexport'
15564         no_entry_flag='-bnoentry'
15565       fi
15566
15567       # When large executables or shared objects are built, AIX ld can
15568       # have problems creating the table of contents.  If linking a library
15569       # or program results in "error TOC overflow" add -mminimal-toc to
15570       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
15571       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15572
15573       archive_cmds_F77=''
15574       hardcode_direct_F77=yes
15575       hardcode_libdir_separator_F77=':'
15576       link_all_deplibs_F77=yes
15577
15578       if test "$GCC" = yes; then
15579         case $host_os in aix4.[012]|aix4.[012].*)
15580         # We only want to do this on AIX 4.2 and lower, the check
15581         # below for broken collect2 doesn't work under 4.3+
15582           collect2name=`${CC} -print-prog-name=collect2`
15583           if test -f "$collect2name" && \
15584            strings "$collect2name" | grep resolve_lib_name >/dev/null
15585           then
15586           # We have reworked collect2
15587           hardcode_direct_F77=yes
15588           else
15589           # We have old collect2
15590           hardcode_direct_F77=unsupported
15591           # It fails to find uninstalled libraries when the uninstalled
15592           # path is not listed in the libpath.  Setting hardcode_minus_L
15593           # to unsupported forces relinking
15594           hardcode_minus_L_F77=yes
15595           hardcode_libdir_flag_spec_F77='-L$libdir'
15596           hardcode_libdir_separator_F77=
15597           fi
15598           ;;
15599         esac
15600         shared_flag='-shared'
15601         if test "$aix_use_runtimelinking" = yes; then
15602           shared_flag="$shared_flag "'${wl}-G'
15603         fi
15604       else
15605         # not using gcc
15606         if test "$host_cpu" = ia64; then
15607         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15608         # chokes on -Wl,-G. The following line is correct:
15609           shared_flag='-G'
15610         else
15611           if test "$aix_use_runtimelinking" = yes; then
15612             shared_flag='${wl}-G'
15613           else
15614             shared_flag='${wl}-bM:SRE'
15615           fi
15616         fi
15617       fi
15618
15619       # It seems that -bexpall does not export symbols beginning with
15620       # underscore (_), so it is better to generate a list of symbols to export.
15621       always_export_symbols_F77=yes
15622       if test "$aix_use_runtimelinking" = yes; then
15623         # Warning - without using the other runtime loading flags (-brtl),
15624         # -berok will link without error, but may produce a broken library.
15625         allow_undefined_flag_F77='-berok'
15626        # Determine the default libpath from the value encoded in an empty executable.
15627        cat >conftest.$ac_ext <<_ACEOF
15628       program main
15629
15630       end
15631 _ACEOF
15632 rm -f conftest.$ac_objext conftest$ac_exeext
15633 if { (ac_try="$ac_link"
15634 case "(($ac_try" in
15635   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15636   *) ac_try_echo=$ac_try;;
15637 esac
15638 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15639   (eval "$ac_link") 2>conftest.er1
15640   ac_status=$?
15641   grep -v '^ *+' conftest.er1 >conftest.err
15642   rm -f conftest.er1
15643   cat conftest.err >&5
15644   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15645   (exit $ac_status); } && {
15646          test -z "$ac_f77_werror_flag" ||
15647          test ! -s conftest.err
15648        } && test -s conftest$ac_exeext &&
15649        $as_test_x conftest$ac_exeext; then
15650   
15651 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15652 }'`
15653 # Check for a 64-bit object if we didn't find anything.
15654 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; }
15655 }'`; fi
15656 else
15657   echo "$as_me: failed program was:" >&5
15658 sed 's/^/| /' conftest.$ac_ext >&5
15659
15660         
15661 fi
15662
15663 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15664       conftest$ac_exeext conftest.$ac_ext
15665 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15666
15667        hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15668         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"
15669        else
15670         if test "$host_cpu" = ia64; then
15671           hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
15672           allow_undefined_flag_F77="-z nodefs"
15673           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"
15674         else
15675          # Determine the default libpath from the value encoded in an empty executable.
15676          cat >conftest.$ac_ext <<_ACEOF
15677       program main
15678
15679       end
15680 _ACEOF
15681 rm -f conftest.$ac_objext conftest$ac_exeext
15682 if { (ac_try="$ac_link"
15683 case "(($ac_try" in
15684   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15685   *) ac_try_echo=$ac_try;;
15686 esac
15687 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15688   (eval "$ac_link") 2>conftest.er1
15689   ac_status=$?
15690   grep -v '^ *+' conftest.er1 >conftest.err
15691   rm -f conftest.er1
15692   cat conftest.err >&5
15693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15694   (exit $ac_status); } && {
15695          test -z "$ac_f77_werror_flag" ||
15696          test ! -s conftest.err
15697        } && test -s conftest$ac_exeext &&
15698        $as_test_x conftest$ac_exeext; then
15699   
15700 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15701 }'`
15702 # Check for a 64-bit object if we didn't find anything.
15703 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; }
15704 }'`; fi
15705 else
15706   echo "$as_me: failed program was:" >&5
15707 sed 's/^/| /' conftest.$ac_ext >&5
15708
15709         
15710 fi
15711
15712 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15713       conftest$ac_exeext conftest.$ac_ext
15714 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15715
15716          hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15717           # Warning - without using the other run time loading flags,
15718           # -berok will link without error, but may produce a broken library.
15719           no_undefined_flag_F77=' ${wl}-bernotok'
15720           allow_undefined_flag_F77=' ${wl}-berok'
15721           # Exported symbols can be pulled into shared objects from archives
15722           whole_archive_flag_spec_F77='$convenience'
15723           archive_cmds_need_lc_F77=yes
15724           # This is similar to how AIX traditionally builds its shared libraries.
15725           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'
15726         fi
15727       fi
15728       ;;
15729
15730     amigaos*)
15731       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)'
15732       hardcode_libdir_flag_spec_F77='-L$libdir'
15733       hardcode_minus_L_F77=yes
15734       # see comment about different semantics on the GNU ld section
15735       ld_shlibs_F77=no
15736       ;;
15737
15738     bsdi[45]*)
15739       export_dynamic_flag_spec_F77=-rdynamic
15740       ;;
15741
15742     cygwin* | mingw* | pw32*)
15743       # When not using gcc, we currently assume that we are using
15744       # Microsoft Visual C++.
15745       # hardcode_libdir_flag_spec is actually meaningless, as there is
15746       # no search path for DLLs.
15747       hardcode_libdir_flag_spec_F77=' '
15748       allow_undefined_flag_F77=unsupported
15749       # Tell ltmain to make .lib files, not .a files.
15750       libext=lib
15751       # Tell ltmain to make .dll files, not .so files.
15752       shrext_cmds=".dll"
15753       # FIXME: Setting linknames here is a bad hack.
15754       archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15755       # The linker will automatically build a .lib file if we build a DLL.
15756       old_archive_From_new_cmds_F77='true'
15757       # FIXME: Should let the user specify the lib program.
15758       old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
15759       fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
15760       enable_shared_with_static_runtimes_F77=yes
15761       ;;
15762
15763     darwin* | rhapsody*)
15764       case $host_os in
15765         rhapsody* | darwin1.[012])
15766          allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
15767          ;;
15768        *) # Darwin 1.3 on
15769          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15770            allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15771          else
15772            case ${MACOSX_DEPLOYMENT_TARGET} in
15773              10.[012])
15774                allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15775                ;;
15776              10.*)
15777                allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
15778                ;;
15779            esac
15780          fi
15781          ;;
15782       esac
15783       archive_cmds_need_lc_F77=no
15784       hardcode_direct_F77=no
15785       hardcode_automatic_F77=yes
15786       hardcode_shlibpath_var_F77=unsupported
15787       whole_archive_flag_spec_F77=''
15788       link_all_deplibs_F77=yes
15789     if test "$GCC" = yes ; then
15790         output_verbose_link_cmd='echo'
15791         archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15792       module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15793       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15794       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}'
15795       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}'
15796     else
15797       case $cc_basename in
15798         xlc*)
15799          output_verbose_link_cmd='echo'
15800          archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
15801          module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15802           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15803          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}'
15804           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}'
15805           ;;
15806        *)
15807          ld_shlibs_F77=no
15808           ;;
15809       esac
15810     fi
15811       ;;
15812
15813     dgux*)
15814       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15815       hardcode_libdir_flag_spec_F77='-L$libdir'
15816       hardcode_shlibpath_var_F77=no
15817       ;;
15818
15819     freebsd1*)
15820       ld_shlibs_F77=no
15821       ;;
15822
15823     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15824     # support.  Future versions do this automatically, but an explicit c++rt0.o
15825     # does not break anything, and helps significantly (at the cost of a little
15826     # extra space).
15827     freebsd2.2*)
15828       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15829       hardcode_libdir_flag_spec_F77='-R$libdir'
15830       hardcode_direct_F77=yes
15831       hardcode_shlibpath_var_F77=no
15832       ;;
15833
15834     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15835     freebsd2*)
15836       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15837       hardcode_direct_F77=yes
15838       hardcode_minus_L_F77=yes
15839       hardcode_shlibpath_var_F77=no
15840       ;;
15841
15842     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15843     freebsd* | dragonfly*)
15844       archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15845       hardcode_libdir_flag_spec_F77='-R$libdir'
15846       hardcode_direct_F77=yes
15847       hardcode_shlibpath_var_F77=no
15848       ;;
15849
15850     hpux9*)
15851       if test "$GCC" = yes; then
15852         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'
15853       else
15854         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'
15855       fi
15856       hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15857       hardcode_libdir_separator_F77=:
15858       hardcode_direct_F77=yes
15859
15860       # hardcode_minus_L: Not really in the search PATH,
15861       # but as the default location of the library.
15862       hardcode_minus_L_F77=yes
15863       export_dynamic_flag_spec_F77='${wl}-E'
15864       ;;
15865
15866     hpux10*)
15867       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15868         archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15869       else
15870         archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15871       fi
15872       if test "$with_gnu_ld" = no; then
15873         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15874         hardcode_libdir_separator_F77=:
15875
15876         hardcode_direct_F77=yes
15877         export_dynamic_flag_spec_F77='${wl}-E'
15878
15879         # hardcode_minus_L: Not really in the search PATH,
15880         # but as the default location of the library.
15881         hardcode_minus_L_F77=yes
15882       fi
15883       ;;
15884
15885     hpux11*)
15886       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15887         case $host_cpu in
15888         hppa*64*)
15889           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15890           ;;
15891         ia64*)
15892           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15893           ;;
15894         *)
15895           archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15896           ;;
15897         esac
15898       else
15899         case $host_cpu in
15900         hppa*64*)
15901           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15902           ;;
15903         ia64*)
15904           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15905           ;;
15906         *)
15907           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15908           ;;
15909         esac
15910       fi
15911       if test "$with_gnu_ld" = no; then
15912         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15913         hardcode_libdir_separator_F77=:
15914
15915         case $host_cpu in
15916         hppa*64*|ia64*)
15917           hardcode_libdir_flag_spec_ld_F77='+b $libdir'
15918           hardcode_direct_F77=no
15919           hardcode_shlibpath_var_F77=no
15920           ;;
15921         *)
15922           hardcode_direct_F77=yes
15923           export_dynamic_flag_spec_F77='${wl}-E'
15924
15925           # hardcode_minus_L: Not really in the search PATH,
15926           # but as the default location of the library.
15927           hardcode_minus_L_F77=yes
15928           ;;
15929         esac
15930       fi
15931       ;;
15932
15933     irix5* | irix6* | nonstopux*)
15934       if test "$GCC" = yes; then
15935         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'
15936       else
15937         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'
15938         hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
15939       fi
15940       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15941       hardcode_libdir_separator_F77=:
15942       link_all_deplibs_F77=yes
15943       ;;
15944
15945     netbsd* | netbsdelf*-gnu)
15946       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15947         archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
15948       else
15949         archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
15950       fi
15951       hardcode_libdir_flag_spec_F77='-R$libdir'
15952       hardcode_direct_F77=yes
15953       hardcode_shlibpath_var_F77=no
15954       ;;
15955
15956     newsos6)
15957       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15958       hardcode_direct_F77=yes
15959       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15960       hardcode_libdir_separator_F77=:
15961       hardcode_shlibpath_var_F77=no
15962       ;;
15963
15964     openbsd*)
15965       hardcode_direct_F77=yes
15966       hardcode_shlibpath_var_F77=no
15967       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15968         archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15969         archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15970         hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15971         export_dynamic_flag_spec_F77='${wl}-E'
15972       else
15973        case $host_os in
15974          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15975            archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15976            hardcode_libdir_flag_spec_F77='-R$libdir'
15977            ;;
15978          *)
15979            archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15980            hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15981            ;;
15982        esac
15983       fi
15984       ;;
15985
15986     os2*)
15987       hardcode_libdir_flag_spec_F77='-L$libdir'
15988       hardcode_minus_L_F77=yes
15989       allow_undefined_flag_F77=unsupported
15990       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'
15991       old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15992       ;;
15993
15994     osf3*)
15995       if test "$GCC" = yes; then
15996         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15997         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'
15998       else
15999         allow_undefined_flag_F77=' -expect_unresolved \*'
16000         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'
16001       fi
16002       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16003       hardcode_libdir_separator_F77=:
16004       ;;
16005
16006     osf4* | osf5*)      # as osf3* with the addition of -msym flag
16007       if test "$GCC" = yes; then
16008         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
16009         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'
16010         hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16011       else
16012         allow_undefined_flag_F77=' -expect_unresolved \*'
16013         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'
16014         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~
16015         $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'
16016
16017         # Both c and cxx compiler support -rpath directly
16018         hardcode_libdir_flag_spec_F77='-rpath $libdir'
16019       fi
16020       hardcode_libdir_separator_F77=:
16021       ;;
16022
16023     solaris*)
16024       no_undefined_flag_F77=' -z text'
16025       if test "$GCC" = yes; then
16026         wlarc='${wl}'
16027         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16028         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16029           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16030       else
16031         wlarc=''
16032         archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16033         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16034         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16035       fi
16036       hardcode_libdir_flag_spec_F77='-R$libdir'
16037       hardcode_shlibpath_var_F77=no
16038       case $host_os in
16039       solaris2.[0-5] | solaris2.[0-5].*) ;;
16040       *)
16041         # The compiler driver will combine linker options so we
16042         # cannot just pass the convience library names through
16043         # without $wl, iff we do not link with $LD.
16044         # Luckily, gcc supports the same syntax we need for Sun Studio.
16045         # Supported since Solaris 2.6 (maybe 2.5.1?)
16046         case $wlarc in
16047         '')
16048           whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
16049         *)
16050           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' ;;
16051         esac ;;
16052       esac
16053       link_all_deplibs_F77=yes
16054       ;;
16055
16056     sunos4*)
16057       if test "x$host_vendor" = xsequent; then
16058         # Use $CC to link under sequent, because it throws in some extra .o
16059         # files that make .init and .fini sections work.
16060         archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16061       else
16062         archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16063       fi
16064       hardcode_libdir_flag_spec_F77='-L$libdir'
16065       hardcode_direct_F77=yes
16066       hardcode_minus_L_F77=yes
16067       hardcode_shlibpath_var_F77=no
16068       ;;
16069
16070     sysv4)
16071       case $host_vendor in
16072         sni)
16073           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16074           hardcode_direct_F77=yes # is this really true???
16075         ;;
16076         siemens)
16077           ## LD is ld it makes a PLAMLIB
16078           ## CC just makes a GrossModule.
16079           archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16080           reload_cmds_F77='$CC -r -o $output$reload_objs'
16081           hardcode_direct_F77=no
16082         ;;
16083         motorola)
16084           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16085           hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
16086         ;;
16087       esac
16088       runpath_var='LD_RUN_PATH'
16089       hardcode_shlibpath_var_F77=no
16090       ;;
16091
16092     sysv4.3*)
16093       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16094       hardcode_shlibpath_var_F77=no
16095       export_dynamic_flag_spec_F77='-Bexport'
16096       ;;
16097
16098     sysv4*MP*)
16099       if test -d /usr/nec; then
16100         archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16101         hardcode_shlibpath_var_F77=no
16102         runpath_var=LD_RUN_PATH
16103         hardcode_runpath_var=yes
16104         ld_shlibs_F77=yes
16105       fi
16106       ;;
16107
16108     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
16109       no_undefined_flag_F77='${wl}-z,text'
16110       archive_cmds_need_lc_F77=no
16111       hardcode_shlibpath_var_F77=no
16112       runpath_var='LD_RUN_PATH'
16113
16114       if test "$GCC" = yes; then
16115         archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16116         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16117       else
16118         archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16119         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16120       fi
16121       ;;
16122
16123     sysv5* | sco3.2v5* | sco5v6*)
16124       # Note: We can NOT use -z defs as we might desire, because we do not
16125       # link with -lc, and that would cause any symbols used from libc to
16126       # always be unresolved, which means just about no library would
16127       # ever link correctly.  If we're not using GNU ld we use -z text
16128       # though, which does catch some bad symbols but isn't as heavy-handed
16129       # as -z defs.
16130       no_undefined_flag_F77='${wl}-z,text'
16131       allow_undefined_flag_F77='${wl}-z,nodefs'
16132       archive_cmds_need_lc_F77=no
16133       hardcode_shlibpath_var_F77=no
16134       hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
16135       hardcode_libdir_separator_F77=':'
16136       link_all_deplibs_F77=yes
16137       export_dynamic_flag_spec_F77='${wl}-Bexport'
16138       runpath_var='LD_RUN_PATH'
16139
16140       if test "$GCC" = yes; then
16141         archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16142         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16143       else
16144         archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16145         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16146       fi
16147       ;;
16148
16149     uts4*)
16150       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16151       hardcode_libdir_flag_spec_F77='-L$libdir'
16152       hardcode_shlibpath_var_F77=no
16153       ;;
16154
16155     *)
16156       ld_shlibs_F77=no
16157       ;;
16158     esac
16159   fi
16160
16161 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
16162 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
16163 test "$ld_shlibs_F77" = no && can_build_shared=no
16164
16165 #
16166 # Do we need to explicitly link libc?
16167 #
16168 case "x$archive_cmds_need_lc_F77" in
16169 x|xyes)
16170   # Assume -lc should be added
16171   archive_cmds_need_lc_F77=yes
16172
16173   if test "$enable_shared" = yes && test "$GCC" = yes; then
16174     case $archive_cmds_F77 in
16175     *'~'*)
16176       # FIXME: we may have to deal with multi-command sequences.
16177       ;;
16178     '$CC '*)
16179       # Test whether the compiler implicitly links with -lc since on some
16180       # systems, -lgcc has to come before -lc. If gcc already passes -lc
16181       # to ld, don't add -lc before -lgcc.
16182       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16183 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
16184       $rm conftest*
16185       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16186
16187       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16188   (eval $ac_compile) 2>&5
16189   ac_status=$?
16190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16191   (exit $ac_status); } 2>conftest.err; then
16192         soname=conftest
16193         lib=conftest
16194         libobjs=conftest.$ac_objext
16195         deplibs=
16196         wl=$lt_prog_compiler_wl_F77
16197         pic_flag=$lt_prog_compiler_pic_F77
16198         compiler_flags=-v
16199         linker_flags=-v
16200         verstring=
16201         output_objdir=.
16202         libname=conftest
16203         lt_save_allow_undefined_flag=$allow_undefined_flag_F77
16204         allow_undefined_flag_F77=
16205         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16206   (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16207   ac_status=$?
16208   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16209   (exit $ac_status); }
16210         then
16211           archive_cmds_need_lc_F77=no
16212         else
16213           archive_cmds_need_lc_F77=yes
16214         fi
16215         allow_undefined_flag_F77=$lt_save_allow_undefined_flag
16216       else
16217         cat conftest.err 1>&5
16218       fi
16219       $rm conftest*
16220       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
16221 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
16222       ;;
16223     esac
16224   fi
16225   ;;
16226 esac
16227
16228 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16229 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
16230 library_names_spec=
16231 libname_spec='lib$name'
16232 soname_spec=
16233 shrext_cmds=".so"
16234 postinstall_cmds=
16235 postuninstall_cmds=
16236 finish_cmds=
16237 finish_eval=
16238 shlibpath_var=
16239 shlibpath_overrides_runpath=unknown
16240 version_type=none
16241 dynamic_linker="$host_os ld.so"
16242 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16243 if test "$GCC" = yes; then
16244   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16245   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16246     # if the path contains ";" then we assume it to be the separator
16247     # otherwise default to the standard path separator (i.e. ":") - it is
16248     # assumed that no part of a normal pathname contains ";" but that should
16249     # okay in the real world where ";" in dirpaths is itself problematic.
16250     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16251   else
16252     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16253   fi
16254 else
16255   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16256 fi
16257 need_lib_prefix=unknown
16258 hardcode_into_libs=no
16259
16260 # when you set need_version to no, make sure it does not cause -set_version
16261 # flags to be left without arguments
16262 need_version=unknown
16263
16264 case $host_os in
16265 aix3*)
16266   version_type=linux
16267   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16268   shlibpath_var=LIBPATH
16269
16270   # AIX 3 has no versioning support, so we append a major version to the name.
16271   soname_spec='${libname}${release}${shared_ext}$major'
16272   ;;
16273
16274 aix4* | aix5*)
16275   version_type=linux
16276   need_lib_prefix=no
16277   need_version=no
16278   hardcode_into_libs=yes
16279   if test "$host_cpu" = ia64; then
16280     # AIX 5 supports IA64
16281     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16282     shlibpath_var=LD_LIBRARY_PATH
16283   else
16284     # With GCC up to 2.95.x, collect2 would create an import file
16285     # for dependence libraries.  The import file would start with
16286     # the line `#! .'.  This would cause the generated library to
16287     # depend on `.', always an invalid library.  This was fixed in
16288     # development snapshots of GCC prior to 3.0.
16289     case $host_os in
16290       aix4 | aix4.[01] | aix4.[01].*)
16291       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16292            echo ' yes '
16293            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16294         :
16295       else
16296         can_build_shared=no
16297       fi
16298       ;;
16299     esac
16300     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16301     # soname into executable. Probably we can add versioning support to
16302     # collect2, so additional links can be useful in future.
16303     if test "$aix_use_runtimelinking" = yes; then
16304       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16305       # instead of lib<name>.a to let people know that these are not
16306       # typical AIX shared libraries.
16307       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16308     else
16309       # We preserve .a as extension for shared libraries through AIX4.2
16310       # and later when we are not doing run time linking.
16311       library_names_spec='${libname}${release}.a $libname.a'
16312       soname_spec='${libname}${release}${shared_ext}$major'
16313     fi
16314     shlibpath_var=LIBPATH
16315   fi
16316   ;;
16317
16318 amigaos*)
16319   library_names_spec='$libname.ixlibrary $libname.a'
16320   # Create ${libname}_ixlibrary.a entries in /sys/libs.
16321   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'
16322   ;;
16323
16324 beos*)
16325   library_names_spec='${libname}${shared_ext}'
16326   dynamic_linker="$host_os ld.so"
16327   shlibpath_var=LIBRARY_PATH
16328   ;;
16329
16330 bsdi[45]*)
16331   version_type=linux
16332   need_version=no
16333   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16334   soname_spec='${libname}${release}${shared_ext}$major'
16335   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16336   shlibpath_var=LD_LIBRARY_PATH
16337   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16338   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16339   # the default ld.so.conf also contains /usr/contrib/lib and
16340   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16341   # libtool to hard-code these into programs
16342   ;;
16343
16344 cygwin* | mingw* | pw32*)
16345   version_type=windows
16346   shrext_cmds=".dll"
16347   need_version=no
16348   need_lib_prefix=no
16349
16350   case $GCC,$host_os in
16351   yes,cygwin* | yes,mingw* | yes,pw32*)
16352     library_names_spec='$libname.dll.a'
16353     # DLL is installed to $(libdir)/../bin by postinstall_cmds
16354     postinstall_cmds='base_file=`basename \${file}`~
16355       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16356       dldir=$destdir/`dirname \$dlpath`~
16357       test -d \$dldir || mkdir -p \$dldir~
16358       $install_prog $dir/$dlname \$dldir/$dlname~
16359       chmod a+x \$dldir/$dlname'
16360     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16361       dlpath=$dir/\$dldll~
16362        $rm \$dlpath'
16363     shlibpath_overrides_runpath=yes
16364
16365     case $host_os in
16366     cygwin*)
16367       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16368       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16369       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16370       ;;
16371     mingw*)
16372       # MinGW DLLs use traditional 'lib' prefix
16373       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16374       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16375       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16376         # It is most probably a Windows format PATH printed by
16377         # mingw gcc, but we are running on Cygwin. Gcc prints its search
16378         # path with ; separators, and with drive letters. We can handle the
16379         # drive letters (cygwin fileutils understands them), so leave them,
16380         # especially as we might pass files found there to a mingw objdump,
16381         # which wouldn't understand a cygwinified path. Ahh.
16382         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16383       else
16384         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16385       fi
16386       ;;
16387     pw32*)
16388       # pw32 DLLs use 'pw' prefix rather than 'lib'
16389       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16390       ;;
16391     esac
16392     ;;
16393
16394   *)
16395     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16396     ;;
16397   esac
16398   dynamic_linker='Win32 ld.exe'
16399   # FIXME: first we should search . and the directory the executable is in
16400   shlibpath_var=PATH
16401   ;;
16402
16403 darwin* | rhapsody*)
16404   dynamic_linker="$host_os dyld"
16405   version_type=darwin
16406   need_lib_prefix=no
16407   need_version=no
16408   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16409   soname_spec='${libname}${release}${major}$shared_ext'
16410   shlibpath_overrides_runpath=yes
16411   shlibpath_var=DYLD_LIBRARY_PATH
16412   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16413   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16414   if test "$GCC" = yes; then
16415     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"`
16416   else
16417     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
16418   fi
16419   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16420   ;;
16421
16422 dgux*)
16423   version_type=linux
16424   need_lib_prefix=no
16425   need_version=no
16426   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16427   soname_spec='${libname}${release}${shared_ext}$major'
16428   shlibpath_var=LD_LIBRARY_PATH
16429   ;;
16430
16431 freebsd1*)
16432   dynamic_linker=no
16433   ;;
16434
16435 freebsd* | dragonfly*)
16436   # DragonFly does not have aout.  When/if they implement a new
16437   # versioning mechanism, adjust this.
16438   if test -x /usr/bin/objformat; then
16439     objformat=`/usr/bin/objformat`
16440   else
16441     case $host_os in
16442     freebsd[123]*) objformat=aout ;;
16443     *) objformat=elf ;;
16444     esac
16445   fi
16446   version_type=freebsd-$objformat
16447   case $version_type in
16448     freebsd-elf*)
16449       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16450       need_version=no
16451       need_lib_prefix=no
16452       ;;
16453     freebsd-*)
16454       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16455       need_version=yes
16456       ;;
16457   esac
16458   shlibpath_var=LD_LIBRARY_PATH
16459   case $host_os in
16460   freebsd2*)
16461     shlibpath_overrides_runpath=yes
16462     ;;
16463   freebsd3.[01]* | freebsdelf3.[01]*)
16464     shlibpath_overrides_runpath=yes
16465     hardcode_into_libs=yes
16466     ;;
16467   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16468   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16469     shlibpath_overrides_runpath=no
16470     hardcode_into_libs=yes
16471     ;;
16472   freebsd*) # from 4.6 on
16473     shlibpath_overrides_runpath=yes
16474     hardcode_into_libs=yes
16475     ;;
16476   esac
16477   ;;
16478
16479 gnu*)
16480   version_type=linux
16481   need_lib_prefix=no
16482   need_version=no
16483   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16484   soname_spec='${libname}${release}${shared_ext}$major'
16485   shlibpath_var=LD_LIBRARY_PATH
16486   hardcode_into_libs=yes
16487   ;;
16488
16489 hpux9* | hpux10* | hpux11*)
16490   # Give a soname corresponding to the major version so that dld.sl refuses to
16491   # link against other versions.
16492   version_type=sunos
16493   need_lib_prefix=no
16494   need_version=no
16495   case $host_cpu in
16496   ia64*)
16497     shrext_cmds='.so'
16498     hardcode_into_libs=yes
16499     dynamic_linker="$host_os dld.so"
16500     shlibpath_var=LD_LIBRARY_PATH
16501     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16502     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16503     soname_spec='${libname}${release}${shared_ext}$major'
16504     if test "X$HPUX_IA64_MODE" = X32; then
16505       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16506     else
16507       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16508     fi
16509     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16510     ;;
16511    hppa*64*)
16512      shrext_cmds='.sl'
16513      hardcode_into_libs=yes
16514      dynamic_linker="$host_os dld.sl"
16515      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16516      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16517      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16518      soname_spec='${libname}${release}${shared_ext}$major'
16519      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16520      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16521      ;;
16522    *)
16523     shrext_cmds='.sl'
16524     dynamic_linker="$host_os dld.sl"
16525     shlibpath_var=SHLIB_PATH
16526     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16527     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16528     soname_spec='${libname}${release}${shared_ext}$major'
16529     ;;
16530   esac
16531   # HP-UX runs *really* slowly unless shared libraries are mode 555.
16532   postinstall_cmds='chmod 555 $lib'
16533   ;;
16534
16535 interix3*)
16536   version_type=linux
16537   need_lib_prefix=no
16538   need_version=no
16539   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16540   soname_spec='${libname}${release}${shared_ext}$major'
16541   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16542   shlibpath_var=LD_LIBRARY_PATH
16543   shlibpath_overrides_runpath=no
16544   hardcode_into_libs=yes
16545   ;;
16546
16547 irix5* | irix6* | nonstopux*)
16548   case $host_os in
16549     nonstopux*) version_type=nonstopux ;;
16550     *)
16551         if test "$lt_cv_prog_gnu_ld" = yes; then
16552                 version_type=linux
16553         else
16554                 version_type=irix
16555         fi ;;
16556   esac
16557   need_lib_prefix=no
16558   need_version=no
16559   soname_spec='${libname}${release}${shared_ext}$major'
16560   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16561   case $host_os in
16562   irix5* | nonstopux*)
16563     libsuff= shlibsuff=
16564     ;;
16565   *)
16566     case $LD in # libtool.m4 will add one of these switches to LD
16567     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16568       libsuff= shlibsuff= libmagic=32-bit;;
16569     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16570       libsuff=32 shlibsuff=N32 libmagic=N32;;
16571     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16572       libsuff=64 shlibsuff=64 libmagic=64-bit;;
16573     *) libsuff= shlibsuff= libmagic=never-match;;
16574     esac
16575     ;;
16576   esac
16577   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16578   shlibpath_overrides_runpath=no
16579   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16580   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16581   hardcode_into_libs=yes
16582   ;;
16583
16584 # No shared lib support for Linux oldld, aout, or coff.
16585 linux*oldld* | linux*aout* | linux*coff*)
16586   dynamic_linker=no
16587   ;;
16588
16589 # This must be Linux ELF.
16590 linux* | k*bsd*-gnu)
16591   version_type=linux
16592   need_lib_prefix=no
16593   need_version=no
16594   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16595   soname_spec='${libname}${release}${shared_ext}$major'
16596   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16597   shlibpath_var=LD_LIBRARY_PATH
16598   shlibpath_overrides_runpath=no
16599   # This implies no fast_install, which is unacceptable.
16600   # Some rework will be needed to allow for fast_install
16601   # before this can be enabled.
16602   hardcode_into_libs=yes
16603
16604   # Append ld.so.conf contents to the search path
16605   if test -f /etc/ld.so.conf; then
16606     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' ' '`
16607     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16608   fi
16609
16610   # We used to test for /lib/ld.so.1 and disable shared libraries on
16611   # powerpc, because MkLinux only supported shared libraries with the
16612   # GNU dynamic linker.  Since this was broken with cross compilers,
16613   # most powerpc-linux boxes support dynamic linking these days and
16614   # people can always --disable-shared, the test was removed, and we
16615   # assume the GNU/Linux dynamic linker is in use.
16616   dynamic_linker='GNU/Linux ld.so'
16617   ;;
16618
16619 netbsdelf*-gnu)
16620   version_type=linux
16621   need_lib_prefix=no
16622   need_version=no
16623   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16624   soname_spec='${libname}${release}${shared_ext}$major'
16625   shlibpath_var=LD_LIBRARY_PATH
16626   shlibpath_overrides_runpath=no
16627   hardcode_into_libs=yes
16628   dynamic_linker='NetBSD ld.elf_so'
16629   ;;
16630
16631 netbsd*)
16632   version_type=sunos
16633   need_lib_prefix=no
16634   need_version=no
16635   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16636     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16637     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16638     dynamic_linker='NetBSD (a.out) ld.so'
16639   else
16640     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16641     soname_spec='${libname}${release}${shared_ext}$major'
16642     dynamic_linker='NetBSD ld.elf_so'
16643   fi
16644   shlibpath_var=LD_LIBRARY_PATH
16645   shlibpath_overrides_runpath=yes
16646   hardcode_into_libs=yes
16647   ;;
16648
16649 newsos6)
16650   version_type=linux
16651   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16652   shlibpath_var=LD_LIBRARY_PATH
16653   shlibpath_overrides_runpath=yes
16654   ;;
16655
16656 nto-qnx*)
16657   version_type=linux
16658   need_lib_prefix=no
16659   need_version=no
16660   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16661   soname_spec='${libname}${release}${shared_ext}$major'
16662   shlibpath_var=LD_LIBRARY_PATH
16663   shlibpath_overrides_runpath=yes
16664   ;;
16665
16666 openbsd*)
16667   version_type=sunos
16668   sys_lib_dlsearch_path_spec="/usr/lib"
16669   need_lib_prefix=no
16670   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16671   case $host_os in
16672     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16673     *)                         need_version=no  ;;
16674   esac
16675   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16676   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16677   shlibpath_var=LD_LIBRARY_PATH
16678   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16679     case $host_os in
16680       openbsd2.[89] | openbsd2.[89].*)
16681         shlibpath_overrides_runpath=no
16682         ;;
16683       *)
16684         shlibpath_overrides_runpath=yes
16685         ;;
16686       esac
16687   else
16688     shlibpath_overrides_runpath=yes
16689   fi
16690   ;;
16691
16692 os2*)
16693   libname_spec='$name'
16694   shrext_cmds=".dll"
16695   need_lib_prefix=no
16696   library_names_spec='$libname${shared_ext} $libname.a'
16697   dynamic_linker='OS/2 ld.exe'
16698   shlibpath_var=LIBPATH
16699   ;;
16700
16701 osf3* | osf4* | osf5*)
16702   version_type=osf
16703   need_lib_prefix=no
16704   need_version=no
16705   soname_spec='${libname}${release}${shared_ext}$major'
16706   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16707   shlibpath_var=LD_LIBRARY_PATH
16708   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16709   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16710   ;;
16711
16712 solaris*)
16713   version_type=linux
16714   need_lib_prefix=no
16715   need_version=no
16716   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16717   soname_spec='${libname}${release}${shared_ext}$major'
16718   shlibpath_var=LD_LIBRARY_PATH
16719   shlibpath_overrides_runpath=yes
16720   hardcode_into_libs=yes
16721   # ldd complains unless libraries are executable
16722   postinstall_cmds='chmod +x $lib'
16723   ;;
16724
16725 sunos4*)
16726   version_type=sunos
16727   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16728   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16729   shlibpath_var=LD_LIBRARY_PATH
16730   shlibpath_overrides_runpath=yes
16731   if test "$with_gnu_ld" = yes; then
16732     need_lib_prefix=no
16733   fi
16734   need_version=yes
16735   ;;
16736
16737 sysv4 | sysv4.3*)
16738   version_type=linux
16739   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16740   soname_spec='${libname}${release}${shared_ext}$major'
16741   shlibpath_var=LD_LIBRARY_PATH
16742   case $host_vendor in
16743     sni)
16744       shlibpath_overrides_runpath=no
16745       need_lib_prefix=no
16746       export_dynamic_flag_spec='${wl}-Blargedynsym'
16747       runpath_var=LD_RUN_PATH
16748       ;;
16749     siemens)
16750       need_lib_prefix=no
16751       ;;
16752     motorola)
16753       need_lib_prefix=no
16754       need_version=no
16755       shlibpath_overrides_runpath=no
16756       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16757       ;;
16758   esac
16759   ;;
16760
16761 sysv4*MP*)
16762   if test -d /usr/nec ;then
16763     version_type=linux
16764     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16765     soname_spec='$libname${shared_ext}.$major'
16766     shlibpath_var=LD_LIBRARY_PATH
16767   fi
16768   ;;
16769
16770 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16771   version_type=freebsd-elf
16772   need_lib_prefix=no
16773   need_version=no
16774   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16775   soname_spec='${libname}${release}${shared_ext}$major'
16776   shlibpath_var=LD_LIBRARY_PATH
16777   hardcode_into_libs=yes
16778   if test "$with_gnu_ld" = yes; then
16779     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16780     shlibpath_overrides_runpath=no
16781   else
16782     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16783     shlibpath_overrides_runpath=yes
16784     case $host_os in
16785       sco3.2v5*)
16786         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16787         ;;
16788     esac
16789   fi
16790   sys_lib_dlsearch_path_spec='/usr/lib'
16791   ;;
16792
16793 uts4*)
16794   version_type=linux
16795   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16796   soname_spec='${libname}${release}${shared_ext}$major'
16797   shlibpath_var=LD_LIBRARY_PATH
16798   ;;
16799
16800 *)
16801   dynamic_linker=no
16802   ;;
16803 esac
16804 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16805 echo "${ECHO_T}$dynamic_linker" >&6; }
16806 test "$dynamic_linker" = no && can_build_shared=no
16807
16808 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16809 if test "$GCC" = yes; then
16810   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16811 fi
16812
16813 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16814 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
16815 hardcode_action_F77=
16816 if test -n "$hardcode_libdir_flag_spec_F77" || \
16817    test -n "$runpath_var_F77" || \
16818    test "X$hardcode_automatic_F77" = "Xyes" ; then
16819
16820   # We can hardcode non-existant directories.
16821   if test "$hardcode_direct_F77" != no &&
16822      # If the only mechanism to avoid hardcoding is shlibpath_var, we
16823      # have to relink, otherwise we might link with an installed library
16824      # when we should be linking with a yet-to-be-installed one
16825      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
16826      test "$hardcode_minus_L_F77" != no; then
16827     # Linking always hardcodes the temporary library directory.
16828     hardcode_action_F77=relink
16829   else
16830     # We can link without hardcoding, and we can hardcode nonexisting dirs.
16831     hardcode_action_F77=immediate
16832   fi
16833 else
16834   # We cannot hardcode anything, or else we can only hardcode existing
16835   # directories.
16836   hardcode_action_F77=unsupported
16837 fi
16838 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
16839 echo "${ECHO_T}$hardcode_action_F77" >&6; }
16840
16841 if test "$hardcode_action_F77" = relink; then
16842   # Fast installation is not supported
16843   enable_fast_install=no
16844 elif test "$shlibpath_overrides_runpath" = yes ||
16845      test "$enable_shared" = no; then
16846   # Fast installation is not necessary
16847   enable_fast_install=needless
16848 fi
16849
16850
16851 # The else clause should only fire when bootstrapping the
16852 # libtool distribution, otherwise you forgot to ship ltmain.sh
16853 # with your package, and you will get complaints that there are
16854 # no rules to generate ltmain.sh.
16855 if test -f "$ltmain"; then
16856   # See if we are running on zsh, and set the options which allow our commands through
16857   # without removal of \ escapes.
16858   if test -n "${ZSH_VERSION+set}" ; then
16859     setopt NO_GLOB_SUBST
16860   fi
16861   # Now quote all the things that may contain metacharacters while being
16862   # careful not to overquote the AC_SUBSTed values.  We take copies of the
16863   # variables and quote the copies for generation of the libtool script.
16864   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
16865     SED SHELL STRIP \
16866     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
16867     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
16868     deplibs_check_method reload_flag reload_cmds need_locks \
16869     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
16870     lt_cv_sys_global_symbol_to_c_name_address \
16871     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
16872     old_postinstall_cmds old_postuninstall_cmds \
16873     compiler_F77 \
16874     CC_F77 \
16875     LD_F77 \
16876     lt_prog_compiler_wl_F77 \
16877     lt_prog_compiler_pic_F77 \
16878     lt_prog_compiler_static_F77 \
16879     lt_prog_compiler_no_builtin_flag_F77 \
16880     export_dynamic_flag_spec_F77 \
16881     thread_safe_flag_spec_F77 \
16882     whole_archive_flag_spec_F77 \
16883     enable_shared_with_static_runtimes_F77 \
16884     old_archive_cmds_F77 \
16885     old_archive_from_new_cmds_F77 \
16886     predep_objects_F77 \
16887     postdep_objects_F77 \
16888     predeps_F77 \
16889     postdeps_F77 \
16890     compiler_lib_search_path_F77 \
16891     archive_cmds_F77 \
16892     archive_expsym_cmds_F77 \
16893     postinstall_cmds_F77 \
16894     postuninstall_cmds_F77 \
16895     old_archive_from_expsyms_cmds_F77 \
16896     allow_undefined_flag_F77 \
16897     no_undefined_flag_F77 \
16898     export_symbols_cmds_F77 \
16899     hardcode_libdir_flag_spec_F77 \
16900     hardcode_libdir_flag_spec_ld_F77 \
16901     hardcode_libdir_separator_F77 \
16902     hardcode_automatic_F77 \
16903     module_cmds_F77 \
16904     module_expsym_cmds_F77 \
16905     lt_cv_prog_compiler_c_o_F77 \
16906     exclude_expsyms_F77 \
16907     include_expsyms_F77; do
16908
16909     case $var in
16910     old_archive_cmds_F77 | \
16911     old_archive_from_new_cmds_F77 | \
16912     archive_cmds_F77 | \
16913     archive_expsym_cmds_F77 | \
16914     module_cmds_F77 | \
16915     module_expsym_cmds_F77 | \
16916     old_archive_from_expsyms_cmds_F77 | \
16917     export_symbols_cmds_F77 | \
16918     extract_expsyms_cmds | reload_cmds | finish_cmds | \
16919     postinstall_cmds | postuninstall_cmds | \
16920     old_postinstall_cmds | old_postuninstall_cmds | \
16921     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
16922       # Double-quote double-evaled strings.
16923       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
16924       ;;
16925     *)
16926       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
16927       ;;
16928     esac
16929   done
16930
16931   case $lt_echo in
16932   *'\$0 --fallback-echo"')
16933     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
16934     ;;
16935   esac
16936
16937 cfgfile="$ofile"
16938
16939   cat <<__EOF__ >> "$cfgfile"
16940 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
16941
16942 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16943
16944 # Shell to use when invoking shell scripts.
16945 SHELL=$lt_SHELL
16946
16947 # Whether or not to build shared libraries.
16948 build_libtool_libs=$enable_shared
16949
16950 # Whether or not to build static libraries.
16951 build_old_libs=$enable_static
16952
16953 # Whether or not to add -lc for building shared libraries.
16954 build_libtool_need_lc=$archive_cmds_need_lc_F77
16955
16956 # Whether or not to disallow shared libs when runtime libs are static
16957 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
16958
16959 # Whether or not to optimize for fast installation.
16960 fast_install=$enable_fast_install
16961
16962 # The host system.
16963 host_alias=$host_alias
16964 host=$host
16965 host_os=$host_os
16966
16967 # The build system.
16968 build_alias=$build_alias
16969 build=$build
16970 build_os=$build_os
16971
16972 # An echo program that does not interpret backslashes.
16973 echo=$lt_echo
16974
16975 # The archiver.
16976 AR=$lt_AR
16977 AR_FLAGS=$lt_AR_FLAGS
16978
16979 # A C compiler.
16980 LTCC=$lt_LTCC
16981
16982 # LTCC compiler flags.
16983 LTCFLAGS=$lt_LTCFLAGS
16984
16985 # A language-specific compiler.
16986 CC=$lt_compiler_F77
16987
16988 # Is the compiler the GNU C compiler?
16989 with_gcc=$GCC_F77
16990
16991 # An ERE matcher.
16992 EGREP=$lt_EGREP
16993
16994 # The linker used to build libraries.
16995 LD=$lt_LD_F77
16996
16997 # Whether we need hard or soft links.
16998 LN_S=$lt_LN_S
16999
17000 # A BSD-compatible nm program.
17001 NM=$lt_NM
17002
17003 # A symbol stripping program
17004 STRIP=$lt_STRIP
17005
17006 # Used to examine libraries when file_magic_cmd begins "file"
17007 MAGIC_CMD=$MAGIC_CMD
17008
17009 # Used on cygwin: DLL creation program.
17010 DLLTOOL="$DLLTOOL"
17011
17012 # Used on cygwin: object dumper.
17013 OBJDUMP="$OBJDUMP"
17014
17015 # Used on cygwin: assembler.
17016 AS="$AS"
17017
17018 # The name of the directory that contains temporary libtool files.
17019 objdir=$objdir
17020
17021 # How to create reloadable object files.
17022 reload_flag=$lt_reload_flag
17023 reload_cmds=$lt_reload_cmds
17024
17025 # How to pass a linker flag through the compiler.
17026 wl=$lt_lt_prog_compiler_wl_F77
17027
17028 # Object file suffix (normally "o").
17029 objext="$ac_objext"
17030
17031 # Old archive suffix (normally "a").
17032 libext="$libext"
17033
17034 # Shared library suffix (normally ".so").
17035 shrext_cmds='$shrext_cmds'
17036
17037 # Executable file suffix (normally "").
17038 exeext="$exeext"
17039
17040 # Additional compiler flags for building library objects.
17041 pic_flag=$lt_lt_prog_compiler_pic_F77
17042 pic_mode=$pic_mode
17043
17044 # What is the maximum length of a command?
17045 max_cmd_len=$lt_cv_sys_max_cmd_len
17046
17047 # Does compiler simultaneously support -c and -o options?
17048 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
17049
17050 # Must we lock files when doing compilation?
17051 need_locks=$lt_need_locks
17052
17053 # Do we need the lib prefix for modules?
17054 need_lib_prefix=$need_lib_prefix
17055
17056 # Do we need a version for libraries?
17057 need_version=$need_version
17058
17059 # Whether dlopen is supported.
17060 dlopen_support=$enable_dlopen
17061
17062 # Whether dlopen of programs is supported.
17063 dlopen_self=$enable_dlopen_self
17064
17065 # Whether dlopen of statically linked programs is supported.
17066 dlopen_self_static=$enable_dlopen_self_static
17067
17068 # Compiler flag to prevent dynamic linking.
17069 link_static_flag=$lt_lt_prog_compiler_static_F77
17070
17071 # Compiler flag to turn off builtin functions.
17072 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
17073
17074 # Compiler flag to allow reflexive dlopens.
17075 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
17076
17077 # Compiler flag to generate shared objects directly from archives.
17078 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
17079
17080 # Compiler flag to generate thread-safe objects.
17081 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
17082
17083 # Library versioning type.
17084 version_type=$version_type
17085
17086 # Format of library name prefix.
17087 libname_spec=$lt_libname_spec
17088
17089 # List of archive names.  First name is the real one, the rest are links.
17090 # The last name is the one that the linker finds with -lNAME.
17091 library_names_spec=$lt_library_names_spec
17092
17093 # The coded name of the library, if different from the real name.
17094 soname_spec=$lt_soname_spec
17095
17096 # Commands used to build and install an old-style archive.
17097 RANLIB=$lt_RANLIB
17098 old_archive_cmds=$lt_old_archive_cmds_F77
17099 old_postinstall_cmds=$lt_old_postinstall_cmds
17100 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17101
17102 # Create an old-style archive from a shared archive.
17103 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
17104
17105 # Create a temporary old-style archive to link instead of a shared archive.
17106 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
17107
17108 # Commands used to build and install a shared archive.
17109 archive_cmds=$lt_archive_cmds_F77
17110 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
17111 postinstall_cmds=$lt_postinstall_cmds
17112 postuninstall_cmds=$lt_postuninstall_cmds
17113
17114 # Commands used to build a loadable module (assumed same as above if empty)
17115 module_cmds=$lt_module_cmds_F77
17116 module_expsym_cmds=$lt_module_expsym_cmds_F77
17117
17118 # Commands to strip libraries.
17119 old_striplib=$lt_old_striplib
17120 striplib=$lt_striplib
17121
17122 # Dependencies to place before the objects being linked to create a
17123 # shared library.
17124 predep_objects=$lt_predep_objects_F77
17125
17126 # Dependencies to place after the objects being linked to create a
17127 # shared library.
17128 postdep_objects=$lt_postdep_objects_F77
17129
17130 # Dependencies to place before the objects being linked to create a
17131 # shared library.
17132 predeps=$lt_predeps_F77
17133
17134 # Dependencies to place after the objects being linked to create a
17135 # shared library.
17136 postdeps=$lt_postdeps_F77
17137
17138 # The library search path used internally by the compiler when linking
17139 # a shared library.
17140 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
17141
17142 # Method to check whether dependent libraries are shared objects.
17143 deplibs_check_method=$lt_deplibs_check_method
17144
17145 # Command to use when deplibs_check_method == file_magic.
17146 file_magic_cmd=$lt_file_magic_cmd
17147
17148 # Flag that allows shared libraries with undefined symbols to be built.
17149 allow_undefined_flag=$lt_allow_undefined_flag_F77
17150
17151 # Flag that forces no undefined symbols.
17152 no_undefined_flag=$lt_no_undefined_flag_F77
17153
17154 # Commands used to finish a libtool library installation in a directory.
17155 finish_cmds=$lt_finish_cmds
17156
17157 # Same as above, but a single script fragment to be evaled but not shown.
17158 finish_eval=$lt_finish_eval
17159
17160 # Take the output of nm and produce a listing of raw symbols and C names.
17161 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17162
17163 # Transform the output of nm in a proper C declaration
17164 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17165
17166 # Transform the output of nm in a C name address pair
17167 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17168
17169 # This is the shared library runtime path variable.
17170 runpath_var=$runpath_var
17171
17172 # This is the shared library path variable.
17173 shlibpath_var=$shlibpath_var
17174
17175 # Is shlibpath searched before the hard-coded library search path?
17176 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17177
17178 # How to hardcode a shared library path into an executable.
17179 hardcode_action=$hardcode_action_F77
17180
17181 # Whether we should hardcode library paths into libraries.
17182 hardcode_into_libs=$hardcode_into_libs
17183
17184 # Flag to hardcode \$libdir into a binary during linking.
17185 # This must work even if \$libdir does not exist.
17186 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
17187
17188 # If ld is used when linking, flag to hardcode \$libdir into
17189 # a binary during linking. This must work even if \$libdir does
17190 # not exist.
17191 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
17192
17193 # Whether we need a single -rpath flag with a separated argument.
17194 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
17195
17196 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17197 # resulting binary.
17198 hardcode_direct=$hardcode_direct_F77
17199
17200 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17201 # resulting binary.
17202 hardcode_minus_L=$hardcode_minus_L_F77
17203
17204 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17205 # the resulting binary.
17206 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
17207
17208 # Set to yes if building a shared library automatically hardcodes DIR into the library
17209 # and all subsequent libraries and executables linked against it.
17210 hardcode_automatic=$hardcode_automatic_F77
17211
17212 # Variables whose values should be saved in libtool wrapper scripts and
17213 # restored at relink time.
17214 variables_saved_for_relink="$variables_saved_for_relink"
17215
17216 # Whether libtool must link a program against all its dependency libraries.
17217 link_all_deplibs=$link_all_deplibs_F77
17218
17219 # Compile-time system search path for libraries
17220 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17221
17222 # Run-time system search path for libraries
17223 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17224
17225 # Fix the shell variable \$srcfile for the compiler.
17226 fix_srcfile_path="$fix_srcfile_path_F77"
17227
17228 # Set to yes if exported symbols are required.
17229 always_export_symbols=$always_export_symbols_F77
17230
17231 # The commands to list exported symbols.
17232 export_symbols_cmds=$lt_export_symbols_cmds_F77
17233
17234 # The commands to extract the exported symbol list from a shared archive.
17235 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17236
17237 # Symbols that should not be listed in the preloaded symbols.
17238 exclude_expsyms=$lt_exclude_expsyms_F77
17239
17240 # Symbols that must always be exported.
17241 include_expsyms=$lt_include_expsyms_F77
17242
17243 # ### END LIBTOOL TAG CONFIG: $tagname
17244
17245 __EOF__
17246
17247
17248 else
17249   # If there is no Makefile yet, we rely on a make rule to execute
17250   # `config.status --recheck' to rerun these tests and create the
17251   # libtool script then.
17252   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
17253   if test -f "$ltmain_in"; then
17254     test -f Makefile && make "$ltmain"
17255   fi
17256 fi
17257
17258
17259 ac_ext=c
17260 ac_cpp='$CPP $CPPFLAGS'
17261 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17262 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17263 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17264
17265 CC="$lt_save_CC"
17266
17267         else
17268           tagname=""
17269         fi
17270         ;;
17271
17272       GCJ)
17273         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
17274           
17275
17276 # Source file extension for Java test sources.
17277 ac_ext=java
17278
17279 # Object file extension for compiled Java test sources.
17280 objext=o
17281 objext_GCJ=$objext
17282
17283 # Code to be used in simple compile tests
17284 lt_simple_compile_test_code="class foo {}\n"
17285
17286 # Code to be used in simple link tests
17287 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
17288
17289 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
17290
17291 # If no C compiler was specified, use CC.
17292 LTCC=${LTCC-"$CC"}
17293
17294 # If no C compiler flags were specified, use CFLAGS.
17295 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
17296
17297 # Allow CC to be a program name with arguments.
17298 compiler=$CC
17299
17300
17301 # save warnings/boilerplate of simple test code
17302 ac_outfile=conftest.$ac_objext
17303 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
17304 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17305 _lt_compiler_boilerplate=`cat conftest.err`
17306 $rm conftest*
17307
17308 ac_outfile=conftest.$ac_objext
17309 printf "$lt_simple_link_test_code" >conftest.$ac_ext
17310 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17311 _lt_linker_boilerplate=`cat conftest.err`
17312 $rm conftest*
17313
17314
17315 # Allow CC to be a program name with arguments.
17316 lt_save_CC="$CC"
17317 CC=${GCJ-"gcj"}
17318 compiler=$CC
17319 compiler_GCJ=$CC
17320 for cc_temp in $compiler""; do
17321   case $cc_temp in
17322     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17323     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17324     \-*) ;;
17325     *) break;;
17326   esac
17327 done
17328 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17329
17330
17331 # GCJ did not exist at the time GCC didn't implicitly link libc in.
17332 archive_cmds_need_lc_GCJ=no
17333
17334 old_archive_cmds_GCJ=$old_archive_cmds
17335
17336 ## CAVEAT EMPTOR:
17337 ## There is no encapsulation within the following macros, do not change
17338 ## the running order or otherwise move them around unless you know exactly
17339 ## what you are doing...
17340
17341 lt_prog_compiler_no_builtin_flag_GCJ=
17342
17343 if test "$GCC" = yes; then
17344   lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
17345
17346   
17347 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
17348 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
17349 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
17350   echo $ECHO_N "(cached) $ECHO_C" >&6
17351 else
17352   lt_cv_prog_compiler_rtti_exceptions=no
17353   ac_outfile=conftest.$ac_objext
17354    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17355    lt_compiler_flag="-fno-rtti -fno-exceptions"
17356    # Insert the option either (1) after the last *FLAGS variable, or
17357    # (2) before a word containing "conftest.", or (3) at the end.
17358    # Note that $ac_compile itself does not contain backslashes and begins
17359    # with a dollar sign (not a hyphen), so the echo should work correctly.
17360    # The option is referenced via a variable to avoid confusing sed.
17361    lt_compile=`echo "$ac_compile" | $SED \
17362    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17363    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17364    -e 's:$: $lt_compiler_flag:'`
17365    (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
17366    (eval "$lt_compile" 2>conftest.err)
17367    ac_status=$?
17368    cat conftest.err >&5
17369    echo "$as_me:__oline__: \$? = $ac_status" >&5
17370    if (exit $ac_status) && test -s "$ac_outfile"; then
17371      # The compiler can only warn and ignore the option if not recognized
17372      # So say no if there are warnings other than the usual output.
17373      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17374      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17375      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17376        lt_cv_prog_compiler_rtti_exceptions=yes
17377      fi
17378    fi
17379    $rm conftest*
17380
17381 fi
17382 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
17383 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
17384
17385 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
17386     lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
17387 else
17388     :
17389 fi
17390
17391 fi
17392
17393 lt_prog_compiler_wl_GCJ=
17394 lt_prog_compiler_pic_GCJ=
17395 lt_prog_compiler_static_GCJ=
17396
17397 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
17398 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
17399  
17400   if test "$GCC" = yes; then
17401     lt_prog_compiler_wl_GCJ='-Wl,'
17402     lt_prog_compiler_static_GCJ='-static'
17403
17404     case $host_os in
17405       aix*)
17406       # All AIX code is PIC.
17407       if test "$host_cpu" = ia64; then
17408         # AIX 5 now supports IA64 processor
17409         lt_prog_compiler_static_GCJ='-Bstatic'
17410       fi
17411       ;;
17412
17413     amigaos*)
17414       # FIXME: we need at least 68020 code to build shared libraries, but
17415       # adding the `-m68020' flag to GCC prevents building anything better,
17416       # like `-m68040'.
17417       lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
17418       ;;
17419
17420     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
17421       # PIC is the default for these OSes.
17422       ;;
17423
17424     mingw* | pw32* | os2*)
17425       # This hack is so that the source file can tell whether it is being
17426       # built for inclusion in a dll (and should export symbols for example).
17427       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
17428       ;;
17429
17430     darwin* | rhapsody*)
17431       # PIC is the default on this platform
17432       # Common symbols not allowed in MH_DYLIB files
17433       lt_prog_compiler_pic_GCJ='-fno-common'
17434       ;;
17435
17436     interix3*)
17437       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
17438       # Instead, we relocate shared libraries at runtime.
17439       ;;
17440
17441     msdosdjgpp*)
17442       # Just because we use GCC doesn't mean we suddenly get shared libraries
17443       # on systems that don't support them.
17444       lt_prog_compiler_can_build_shared_GCJ=no
17445       enable_shared=no
17446       ;;
17447
17448     sysv4*MP*)
17449       if test -d /usr/nec; then
17450         lt_prog_compiler_pic_GCJ=-Kconform_pic
17451       fi
17452       ;;
17453
17454     hpux*)
17455       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17456       # not for PA HP-UX.
17457       case $host_cpu in
17458       hppa*64*|ia64*)
17459         # +Z the default
17460         ;;
17461       *)
17462         lt_prog_compiler_pic_GCJ='-fPIC'
17463         ;;
17464       esac
17465       ;;
17466
17467     *)
17468       lt_prog_compiler_pic_GCJ='-fPIC'
17469       ;;
17470     esac
17471   else
17472     # PORTME Check for flag to pass linker flags through the system compiler.
17473     case $host_os in
17474     aix*)
17475       lt_prog_compiler_wl_GCJ='-Wl,'
17476       if test "$host_cpu" = ia64; then
17477         # AIX 5 now supports IA64 processor
17478         lt_prog_compiler_static_GCJ='-Bstatic'
17479       else
17480         lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
17481       fi
17482       ;;
17483       darwin*)
17484         # PIC is the default on this platform
17485         # Common symbols not allowed in MH_DYLIB files
17486        case $cc_basename in
17487          xlc*)
17488          lt_prog_compiler_pic_GCJ='-qnocommon'
17489          lt_prog_compiler_wl_GCJ='-Wl,'
17490          ;;
17491        esac
17492        ;;
17493
17494     mingw* | pw32* | os2*)
17495       # This hack is so that the source file can tell whether it is being
17496       # built for inclusion in a dll (and should export symbols for example).
17497       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
17498       ;;
17499
17500     hpux9* | hpux10* | hpux11*)
17501       lt_prog_compiler_wl_GCJ='-Wl,'
17502       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17503       # not for PA HP-UX.
17504       case $host_cpu in
17505       hppa*64*|ia64*)
17506         # +Z the default
17507         ;;
17508       *)
17509         lt_prog_compiler_pic_GCJ='+Z'
17510         ;;
17511       esac
17512       # Is there a better lt_prog_compiler_static that works with the bundled CC?
17513       lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
17514       ;;
17515
17516     irix5* | irix6* | nonstopux*)
17517       lt_prog_compiler_wl_GCJ='-Wl,'
17518       # PIC (with -KPIC) is the default.
17519       lt_prog_compiler_static_GCJ='-non_shared'
17520       ;;
17521
17522     newsos6)
17523       lt_prog_compiler_pic_GCJ='-KPIC'
17524       lt_prog_compiler_static_GCJ='-Bstatic'
17525       ;;
17526
17527     linux* | k*bsd*-gnu)
17528       case $cc_basename in
17529       icc* | ecc*)
17530         lt_prog_compiler_wl_GCJ='-Wl,'
17531         lt_prog_compiler_pic_GCJ='-KPIC'
17532         lt_prog_compiler_static_GCJ='-static'
17533         ;;
17534       pgcc* | pgf77* | pgf90* | pgf95*)
17535         # Portland Group compilers (*not* the Pentium gcc compiler,
17536         # which looks to be a dead project)
17537         lt_prog_compiler_wl_GCJ='-Wl,'
17538         lt_prog_compiler_pic_GCJ='-fpic'
17539         lt_prog_compiler_static_GCJ='-Bstatic'
17540         ;;
17541       ccc*)
17542         lt_prog_compiler_wl_GCJ='-Wl,'
17543         # All Alpha code is PIC.
17544         lt_prog_compiler_static_GCJ='-non_shared'
17545         ;;
17546       esac
17547       ;;
17548
17549     osf3* | osf4* | osf5*)
17550       lt_prog_compiler_wl_GCJ='-Wl,'
17551       # All OSF/1 code is PIC.
17552       lt_prog_compiler_static_GCJ='-non_shared'
17553       ;;
17554
17555     solaris*)
17556       lt_prog_compiler_pic_GCJ='-KPIC'
17557       lt_prog_compiler_static_GCJ='-Bstatic'
17558       case $cc_basename in
17559       f77* | f90* | f95*)
17560         lt_prog_compiler_wl_GCJ='-Qoption ld ';;
17561       *)
17562         lt_prog_compiler_wl_GCJ='-Wl,';;
17563       esac
17564       ;;
17565
17566     sunos4*)
17567       lt_prog_compiler_wl_GCJ='-Qoption ld '
17568       lt_prog_compiler_pic_GCJ='-PIC'
17569       lt_prog_compiler_static_GCJ='-Bstatic'
17570       ;;
17571
17572     sysv4 | sysv4.2uw2* | sysv4.3*)
17573       lt_prog_compiler_wl_GCJ='-Wl,'
17574       lt_prog_compiler_pic_GCJ='-KPIC'
17575       lt_prog_compiler_static_GCJ='-Bstatic'
17576       ;;
17577
17578     sysv4*MP*)
17579       if test -d /usr/nec ;then
17580         lt_prog_compiler_pic_GCJ='-Kconform_pic'
17581         lt_prog_compiler_static_GCJ='-Bstatic'
17582       fi
17583       ;;
17584
17585     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
17586       lt_prog_compiler_wl_GCJ='-Wl,'
17587       lt_prog_compiler_pic_GCJ='-KPIC'
17588       lt_prog_compiler_static_GCJ='-Bstatic'
17589       ;;
17590
17591     unicos*)
17592       lt_prog_compiler_wl_GCJ='-Wl,'
17593       lt_prog_compiler_can_build_shared_GCJ=no
17594       ;;
17595
17596     uts4*)
17597       lt_prog_compiler_pic_GCJ='-pic'
17598       lt_prog_compiler_static_GCJ='-Bstatic'
17599       ;;
17600
17601     *)
17602       lt_prog_compiler_can_build_shared_GCJ=no
17603       ;;
17604     esac
17605   fi
17606
17607 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
17608 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
17609
17610 #
17611 # Check to make sure the PIC flag actually works.
17612 #
17613 if test -n "$lt_prog_compiler_pic_GCJ"; then
17614   
17615 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
17616 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
17617 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
17618   echo $ECHO_N "(cached) $ECHO_C" >&6
17619 else
17620   lt_prog_compiler_pic_works_GCJ=no
17621   ac_outfile=conftest.$ac_objext
17622    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17623    lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
17624    # Insert the option either (1) after the last *FLAGS variable, or
17625    # (2) before a word containing "conftest.", or (3) at the end.
17626    # Note that $ac_compile itself does not contain backslashes and begins
17627    # with a dollar sign (not a hyphen), so the echo should work correctly.
17628    # The option is referenced via a variable to avoid confusing sed.
17629    lt_compile=`echo "$ac_compile" | $SED \
17630    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17631    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17632    -e 's:$: $lt_compiler_flag:'`
17633    (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
17634    (eval "$lt_compile" 2>conftest.err)
17635    ac_status=$?
17636    cat conftest.err >&5
17637    echo "$as_me:__oline__: \$? = $ac_status" >&5
17638    if (exit $ac_status) && test -s "$ac_outfile"; then
17639      # The compiler can only warn and ignore the option if not recognized
17640      # So say no if there are warnings other than the usual output.
17641      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17642      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17643      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17644        lt_prog_compiler_pic_works_GCJ=yes
17645      fi
17646    fi
17647    $rm conftest*
17648
17649 fi
17650 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
17651 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
17652
17653 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
17654     case $lt_prog_compiler_pic_GCJ in
17655      "" | " "*) ;;
17656      *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
17657      esac
17658 else
17659     lt_prog_compiler_pic_GCJ=
17660      lt_prog_compiler_can_build_shared_GCJ=no
17661 fi
17662
17663 fi
17664 case $host_os in
17665   # For platforms which do not support PIC, -DPIC is meaningless:
17666   *djgpp*)
17667     lt_prog_compiler_pic_GCJ=
17668     ;;
17669   *)
17670     lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
17671     ;;
17672 esac
17673
17674 #
17675 # Check to make sure the static flag actually works.
17676 #
17677 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
17678 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
17679 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
17680 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
17681   echo $ECHO_N "(cached) $ECHO_C" >&6
17682 else
17683   lt_prog_compiler_static_works_GCJ=no
17684    save_LDFLAGS="$LDFLAGS"
17685    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
17686    printf "$lt_simple_link_test_code" > conftest.$ac_ext
17687    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17688      # The linker can only warn and ignore the option if not recognized
17689      # So say no if there are warnings
17690      if test -s conftest.err; then
17691        # Append any errors to the config.log.
17692        cat conftest.err 1>&5
17693        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
17694        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17695        if diff conftest.exp conftest.er2 >/dev/null; then
17696          lt_prog_compiler_static_works_GCJ=yes
17697        fi
17698      else
17699        lt_prog_compiler_static_works_GCJ=yes
17700      fi
17701    fi
17702    $rm conftest*
17703    LDFLAGS="$save_LDFLAGS"
17704
17705 fi
17706 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
17707 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
17708
17709 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
17710     :
17711 else
17712     lt_prog_compiler_static_GCJ=
17713 fi
17714
17715
17716 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
17717 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
17718 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
17719   echo $ECHO_N "(cached) $ECHO_C" >&6
17720 else
17721   lt_cv_prog_compiler_c_o_GCJ=no
17722    $rm -r conftest 2>/dev/null
17723    mkdir conftest
17724    cd conftest
17725    mkdir out
17726    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17727
17728    lt_compiler_flag="-o out/conftest2.$ac_objext"
17729    # Insert the option either (1) after the last *FLAGS variable, or
17730    # (2) before a word containing "conftest.", or (3) at the end.
17731    # Note that $ac_compile itself does not contain backslashes and begins
17732    # with a dollar sign (not a hyphen), so the echo should work correctly.
17733    lt_compile=`echo "$ac_compile" | $SED \
17734    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17735    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17736    -e 's:$: $lt_compiler_flag:'`
17737    (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
17738    (eval "$lt_compile" 2>out/conftest.err)
17739    ac_status=$?
17740    cat out/conftest.err >&5
17741    echo "$as_me:__oline__: \$? = $ac_status" >&5
17742    if (exit $ac_status) && test -s out/conftest2.$ac_objext
17743    then
17744      # The compiler can only warn and ignore the option if not recognized
17745      # So say no if there are warnings
17746      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
17747      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17748      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17749        lt_cv_prog_compiler_c_o_GCJ=yes
17750      fi
17751    fi
17752    chmod u+w . 2>&5
17753    $rm conftest*
17754    # SGI C++ compiler will create directory out/ii_files/ for
17755    # template instantiation
17756    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
17757    $rm out/* && rmdir out
17758    cd ..
17759    rmdir conftest
17760    $rm conftest*
17761
17762 fi
17763 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
17764 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
17765
17766
17767 hard_links="nottested"
17768 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
17769   # do not overwrite the value of need_locks provided by the user
17770   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
17771 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
17772   hard_links=yes
17773   $rm conftest*
17774   ln conftest.a conftest.b 2>/dev/null && hard_links=no
17775   touch conftest.a
17776   ln conftest.a conftest.b 2>&5 || hard_links=no
17777   ln conftest.a conftest.b 2>/dev/null && hard_links=no
17778   { echo "$as_me:$LINENO: result: $hard_links" >&5
17779 echo "${ECHO_T}$hard_links" >&6; }
17780   if test "$hard_links" = no; then
17781     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17782 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17783     need_locks=warn
17784   fi
17785 else
17786   need_locks=no
17787 fi
17788
17789 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17790 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
17791
17792   runpath_var=
17793   allow_undefined_flag_GCJ=
17794   enable_shared_with_static_runtimes_GCJ=no
17795   archive_cmds_GCJ=
17796   archive_expsym_cmds_GCJ=
17797   old_archive_From_new_cmds_GCJ=
17798   old_archive_from_expsyms_cmds_GCJ=
17799   export_dynamic_flag_spec_GCJ=
17800   whole_archive_flag_spec_GCJ=
17801   thread_safe_flag_spec_GCJ=
17802   hardcode_libdir_flag_spec_GCJ=
17803   hardcode_libdir_flag_spec_ld_GCJ=
17804   hardcode_libdir_separator_GCJ=
17805   hardcode_direct_GCJ=no
17806   hardcode_minus_L_GCJ=no
17807   hardcode_shlibpath_var_GCJ=unsupported
17808   link_all_deplibs_GCJ=unknown
17809   hardcode_automatic_GCJ=no
17810   module_cmds_GCJ=
17811   module_expsym_cmds_GCJ=
17812   always_export_symbols_GCJ=no
17813   export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17814   # include_expsyms should be a list of space-separated symbols to be *always*
17815   # included in the symbol list
17816   include_expsyms_GCJ=
17817   # exclude_expsyms can be an extended regexp of symbols to exclude
17818   # it will be wrapped by ` (' and `)$', so one must not match beginning or
17819   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17820   # as well as any symbol that contains `d'.
17821   exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
17822   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17823   # platforms (ab)use it in PIC code, but their linkers get confused if
17824   # the symbol is explicitly referenced.  Since portable code cannot
17825   # rely on this symbol name, it's probably fine to never include it in
17826   # preloaded symbol tables.
17827   extract_expsyms_cmds=
17828   # Just being paranoid about ensuring that cc_basename is set.
17829   for cc_temp in $compiler""; do
17830   case $cc_temp in
17831     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17832     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17833     \-*) ;;
17834     *) break;;
17835   esac
17836 done
17837 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17838
17839   case $host_os in
17840   cygwin* | mingw* | pw32*)
17841     # FIXME: the MSVC++ port hasn't been tested in a loooong time
17842     # When not using gcc, we currently assume that we are using
17843     # Microsoft Visual C++.
17844     if test "$GCC" != yes; then
17845       with_gnu_ld=no
17846     fi
17847     ;;
17848   interix*)
17849     # we just hope/assume this is gcc and not c89 (= MSVC++)
17850     with_gnu_ld=yes
17851     ;;
17852   openbsd*)
17853     with_gnu_ld=no
17854     ;;
17855   esac
17856
17857   ld_shlibs_GCJ=yes
17858   if test "$with_gnu_ld" = yes; then
17859     # If archive_cmds runs LD, not CC, wlarc should be empty
17860     wlarc='${wl}'
17861
17862     # Set some defaults for GNU ld with shared library support. These
17863     # are reset later if shared libraries are not supported. Putting them
17864     # here allows them to be overridden if necessary.
17865     runpath_var=LD_RUN_PATH
17866     hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
17867     export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
17868     # ancient GNU ld didn't support --whole-archive et. al.
17869     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
17870         whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17871       else
17872         whole_archive_flag_spec_GCJ=
17873     fi
17874     supports_anon_versioning=no
17875     case `$LD -v 2>/dev/null` in
17876       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17877       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17878       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17879       *\ 2.11.*) ;; # other 2.11 versions
17880       *) supports_anon_versioning=yes ;;
17881     esac
17882
17883     # See if GNU ld supports shared libraries.
17884     case $host_os in
17885     aix3* | aix4* | aix5*)
17886       # On AIX/PPC, the GNU linker is very broken
17887       if test "$host_cpu" != ia64; then
17888         ld_shlibs_GCJ=no
17889         cat <<EOF 1>&2
17890
17891 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
17892 *** to be unable to reliably create shared libraries on AIX.
17893 *** Therefore, libtool is disabling shared libraries support.  If you
17894 *** really care for shared libraries, you may want to modify your PATH
17895 *** so that a non-GNU linker is found, and then restart.
17896
17897 EOF
17898       fi
17899       ;;
17900
17901     amigaos*)
17902       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)'
17903       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17904       hardcode_minus_L_GCJ=yes
17905
17906       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
17907       # that the semantics of dynamic libraries on AmigaOS, at least up
17908       # to version 4, is to share data among multiple programs linked
17909       # with the same dynamic library.  Since this doesn't match the
17910       # behavior of shared libraries on other platforms, we can't use
17911       # them.
17912       ld_shlibs_GCJ=no
17913       ;;
17914
17915     beos*)
17916       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17917         allow_undefined_flag_GCJ=unsupported
17918         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17919         # support --undefined.  This deserves some investigation.  FIXME
17920         archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17921       else
17922         ld_shlibs_GCJ=no
17923       fi
17924       ;;
17925
17926     cygwin* | mingw* | pw32*)
17927       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
17928       # as there is no search path for DLLs.
17929       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17930       allow_undefined_flag_GCJ=unsupported
17931       always_export_symbols_GCJ=no
17932       enable_shared_with_static_runtimes_GCJ=yes
17933       export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
17934
17935       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
17936         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17937         # If the export-symbols file already is a .def file (1st line
17938         # is EXPORTS), use it as is; otherwise, prepend...
17939         archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17940           cp $export_symbols $output_objdir/$soname.def;
17941         else
17942           echo EXPORTS > $output_objdir/$soname.def;
17943           cat $export_symbols >> $output_objdir/$soname.def;
17944         fi~
17945         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17946       else
17947         ld_shlibs_GCJ=no
17948       fi
17949       ;;
17950
17951     interix3*)
17952       hardcode_direct_GCJ=no
17953       hardcode_shlibpath_var_GCJ=no
17954       hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17955       export_dynamic_flag_spec_GCJ='${wl}-E'
17956       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17957       # Instead, shared libraries are loaded at an image base (0x10000000 by
17958       # default) and relocated if they conflict, which is a slow very memory
17959       # consuming and fragmenting process.  To avoid this, we pick a random,
17960       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17961       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
17962       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'
17963       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'
17964       ;;
17965
17966     linux* | k*bsd*-gnu)
17967       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17968         tmp_addflag=
17969         case $cc_basename,$host_cpu in
17970         pgcc*)                          # Portland Group C compiler
17971           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'
17972           tmp_addflag=' $pic_flag'
17973           ;;
17974         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
17975           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'
17976           tmp_addflag=' $pic_flag -Mnomain' ;;
17977         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
17978           tmp_addflag=' -i_dynamic' ;;
17979         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
17980           tmp_addflag=' -i_dynamic -nofor_main' ;;
17981         ifc* | ifort*)                  # Intel Fortran compiler
17982           tmp_addflag=' -nofor_main' ;;
17983         esac
17984         archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17985
17986         if test $supports_anon_versioning = yes; then
17987           archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
17988   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17989   $echo "local: *; };" >> $output_objdir/$libname.ver~
17990           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17991         fi
17992         link_all_deplibs_GCJ=no
17993       else
17994         ld_shlibs_GCJ=no
17995       fi
17996       ;;
17997
17998     netbsd* | netbsdelf*-gnu)
17999       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18000         archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
18001         wlarc=
18002       else
18003         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18004         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18005       fi
18006       ;;
18007
18008     solaris*)
18009       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
18010         ld_shlibs_GCJ=no
18011         cat <<EOF 1>&2
18012
18013 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
18014 *** create shared libraries on Solaris systems.  Therefore, libtool
18015 *** is disabling shared libraries support.  We urge you to upgrade GNU
18016 *** binutils to release 2.9.1 or newer.  Another option is to modify
18017 *** your PATH or compiler configuration so that the native linker is
18018 *** used, and then restart.
18019
18020 EOF
18021       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18022         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18023         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18024       else
18025         ld_shlibs_GCJ=no
18026       fi
18027       ;;
18028
18029     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
18030       case `$LD -v 2>&1` in
18031         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 
18032         ld_shlibs_GCJ=no
18033         cat <<_LT_EOF 1>&2
18034
18035 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
18036 *** reliably create shared libraries on SCO systems.  Therefore, libtool
18037 *** is disabling shared libraries support.  We urge you to upgrade GNU
18038 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
18039 *** your PATH or compiler configuration so that the native linker is
18040 *** used, and then restart.
18041
18042 _LT_EOF
18043         ;;
18044         *)
18045           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18046             hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
18047             archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
18048             archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
18049           else
18050             ld_shlibs_GCJ=no
18051           fi
18052         ;;
18053       esac
18054       ;;
18055
18056     sunos4*)
18057       archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18058       wlarc=
18059       hardcode_direct_GCJ=yes
18060       hardcode_shlibpath_var_GCJ=no
18061       ;;
18062
18063     *)
18064       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18065         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18066         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18067       else
18068         ld_shlibs_GCJ=no
18069       fi
18070       ;;
18071     esac
18072
18073     if test "$ld_shlibs_GCJ" = no; then
18074       runpath_var=
18075       hardcode_libdir_flag_spec_GCJ=
18076       export_dynamic_flag_spec_GCJ=
18077       whole_archive_flag_spec_GCJ=
18078     fi
18079   else
18080     # PORTME fill in a description of your system's linker (not GNU ld)
18081     case $host_os in
18082     aix3*)
18083       allow_undefined_flag_GCJ=unsupported
18084       always_export_symbols_GCJ=yes
18085       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'
18086       # Note: this linker hardcodes the directories in LIBPATH if there
18087       # are no directories specified by -L.
18088       hardcode_minus_L_GCJ=yes
18089       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
18090         # Neither direct hardcoding nor static linking is supported with a
18091         # broken collect2.
18092         hardcode_direct_GCJ=unsupported
18093       fi
18094       ;;
18095
18096     aix4* | aix5*)
18097       if test "$host_cpu" = ia64; then
18098         # On IA64, the linker does run time linking by default, so we don't
18099         # have to do anything special.
18100         aix_use_runtimelinking=no
18101         exp_sym_flag='-Bexport'
18102         no_entry_flag=""
18103       else
18104         # If we're using GNU nm, then we don't want the "-C" option.
18105         # -C means demangle to AIX nm, but means don't demangle with GNU nm
18106         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
18107           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'
18108         else
18109           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'
18110         fi
18111         aix_use_runtimelinking=no
18112
18113         # Test if we are trying to use run time linking or normal
18114         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18115         # need to do runtime linking.
18116         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
18117           for ld_flag in $LDFLAGS; do
18118           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
18119             aix_use_runtimelinking=yes
18120             break
18121           fi
18122           done
18123           ;;
18124         esac
18125
18126         exp_sym_flag='-bexport'
18127         no_entry_flag='-bnoentry'
18128       fi
18129
18130       # When large executables or shared objects are built, AIX ld can
18131       # have problems creating the table of contents.  If linking a library
18132       # or program results in "error TOC overflow" add -mminimal-toc to
18133       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
18134       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18135
18136       archive_cmds_GCJ=''
18137       hardcode_direct_GCJ=yes
18138       hardcode_libdir_separator_GCJ=':'
18139       link_all_deplibs_GCJ=yes
18140
18141       if test "$GCC" = yes; then
18142         case $host_os in aix4.[012]|aix4.[012].*)
18143         # We only want to do this on AIX 4.2 and lower, the check
18144         # below for broken collect2 doesn't work under 4.3+
18145           collect2name=`${CC} -print-prog-name=collect2`
18146           if test -f "$collect2name" && \
18147            strings "$collect2name" | grep resolve_lib_name >/dev/null
18148           then
18149           # We have reworked collect2
18150           hardcode_direct_GCJ=yes
18151           else
18152           # We have old collect2
18153           hardcode_direct_GCJ=unsupported
18154           # It fails to find uninstalled libraries when the uninstalled
18155           # path is not listed in the libpath.  Setting hardcode_minus_L
18156           # to unsupported forces relinking
18157           hardcode_minus_L_GCJ=yes
18158           hardcode_libdir_flag_spec_GCJ='-L$libdir'
18159           hardcode_libdir_separator_GCJ=
18160           fi
18161           ;;
18162         esac
18163         shared_flag='-shared'
18164         if test "$aix_use_runtimelinking" = yes; then
18165           shared_flag="$shared_flag "'${wl}-G'
18166         fi
18167       else
18168         # not using gcc
18169         if test "$host_cpu" = ia64; then
18170         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18171         # chokes on -Wl,-G. The following line is correct:
18172           shared_flag='-G'
18173         else
18174           if test "$aix_use_runtimelinking" = yes; then
18175             shared_flag='${wl}-G'
18176           else
18177             shared_flag='${wl}-bM:SRE'
18178           fi
18179         fi
18180       fi
18181
18182       # It seems that -bexpall does not export symbols beginning with
18183       # underscore (_), so it is better to generate a list of symbols to export.
18184       always_export_symbols_GCJ=yes
18185       if test "$aix_use_runtimelinking" = yes; then
18186         # Warning - without using the other runtime loading flags (-brtl),
18187         # -berok will link without error, but may produce a broken library.
18188         allow_undefined_flag_GCJ='-berok'
18189        # Determine the default libpath from the value encoded in an empty executable.
18190        cat >conftest.$ac_ext <<_ACEOF
18191 /* confdefs.h.  */
18192 _ACEOF
18193 cat confdefs.h >>conftest.$ac_ext
18194 cat >>conftest.$ac_ext <<_ACEOF
18195 /* end confdefs.h.  */
18196
18197 int
18198 main ()
18199 {
18200
18201   ;
18202   return 0;
18203 }
18204 _ACEOF
18205 rm -f conftest.$ac_objext conftest$ac_exeext
18206 if { (ac_try="$ac_link"
18207 case "(($ac_try" in
18208   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18209   *) ac_try_echo=$ac_try;;
18210 esac
18211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18212   (eval "$ac_link") 2>conftest.er1
18213   ac_status=$?
18214   grep -v '^ *+' conftest.er1 >conftest.err
18215   rm -f conftest.er1
18216   cat conftest.err >&5
18217   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18218   (exit $ac_status); } && {
18219          test -z "$ac_c_werror_flag" ||
18220          test ! -s conftest.err
18221        } && test -s conftest$ac_exeext &&
18222        $as_test_x conftest$ac_exeext; then
18223   
18224 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
18225 }'`
18226 # Check for a 64-bit object if we didn't find anything.
18227 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; }
18228 }'`; fi
18229 else
18230   echo "$as_me: failed program was:" >&5
18231 sed 's/^/| /' conftest.$ac_ext >&5
18232
18233         
18234 fi
18235
18236 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18237       conftest$ac_exeext conftest.$ac_ext
18238 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18239
18240        hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
18241         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"
18242        else
18243         if test "$host_cpu" = ia64; then
18244           hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
18245           allow_undefined_flag_GCJ="-z nodefs"
18246           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"
18247         else
18248          # Determine the default libpath from the value encoded in an empty executable.
18249          cat >conftest.$ac_ext <<_ACEOF
18250 /* confdefs.h.  */
18251 _ACEOF
18252 cat confdefs.h >>conftest.$ac_ext
18253 cat >>conftest.$ac_ext <<_ACEOF
18254 /* end confdefs.h.  */
18255
18256 int
18257 main ()
18258 {
18259
18260   ;
18261   return 0;
18262 }
18263 _ACEOF
18264 rm -f conftest.$ac_objext conftest$ac_exeext
18265 if { (ac_try="$ac_link"
18266 case "(($ac_try" in
18267   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18268   *) ac_try_echo=$ac_try;;
18269 esac
18270 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18271   (eval "$ac_link") 2>conftest.er1
18272   ac_status=$?
18273   grep -v '^ *+' conftest.er1 >conftest.err
18274   rm -f conftest.er1
18275   cat conftest.err >&5
18276   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18277   (exit $ac_status); } && {
18278          test -z "$ac_c_werror_flag" ||
18279          test ! -s conftest.err
18280        } && test -s conftest$ac_exeext &&
18281        $as_test_x conftest$ac_exeext; then
18282   
18283 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
18284 }'`
18285 # Check for a 64-bit object if we didn't find anything.
18286 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; }
18287 }'`; fi
18288 else
18289   echo "$as_me: failed program was:" >&5
18290 sed 's/^/| /' conftest.$ac_ext >&5
18291
18292         
18293 fi
18294
18295 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18296       conftest$ac_exeext conftest.$ac_ext
18297 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18298
18299          hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
18300           # Warning - without using the other run time loading flags,
18301           # -berok will link without error, but may produce a broken library.
18302           no_undefined_flag_GCJ=' ${wl}-bernotok'
18303           allow_undefined_flag_GCJ=' ${wl}-berok'
18304           # Exported symbols can be pulled into shared objects from archives
18305           whole_archive_flag_spec_GCJ='$convenience'
18306           archive_cmds_need_lc_GCJ=yes
18307           # This is similar to how AIX traditionally builds its shared libraries.
18308           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'
18309         fi
18310       fi
18311       ;;
18312
18313     amigaos*)
18314       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)'
18315       hardcode_libdir_flag_spec_GCJ='-L$libdir'
18316       hardcode_minus_L_GCJ=yes
18317       # see comment about different semantics on the GNU ld section
18318       ld_shlibs_GCJ=no
18319       ;;
18320
18321     bsdi[45]*)
18322       export_dynamic_flag_spec_GCJ=-rdynamic
18323       ;;
18324
18325     cygwin* | mingw* | pw32*)
18326       # When not using gcc, we currently assume that we are using
18327       # Microsoft Visual C++.
18328       # hardcode_libdir_flag_spec is actually meaningless, as there is
18329       # no search path for DLLs.
18330       hardcode_libdir_flag_spec_GCJ=' '
18331       allow_undefined_flag_GCJ=unsupported
18332       # Tell ltmain to make .lib files, not .a files.
18333       libext=lib
18334       # Tell ltmain to make .dll files, not .so files.
18335       shrext_cmds=".dll"
18336       # FIXME: Setting linknames here is a bad hack.
18337       archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
18338       # The linker will automatically build a .lib file if we build a DLL.
18339       old_archive_From_new_cmds_GCJ='true'
18340       # FIXME: Should let the user specify the lib program.
18341       old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
18342       fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
18343       enable_shared_with_static_runtimes_GCJ=yes
18344       ;;
18345
18346     darwin* | rhapsody*)
18347       case $host_os in
18348         rhapsody* | darwin1.[012])
18349          allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
18350          ;;
18351        *) # Darwin 1.3 on
18352          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
18353            allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18354          else
18355            case ${MACOSX_DEPLOYMENT_TARGET} in
18356              10.[012])
18357                allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18358                ;;
18359              10.*)
18360                allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
18361                ;;
18362            esac
18363          fi
18364          ;;
18365       esac
18366       archive_cmds_need_lc_GCJ=no
18367       hardcode_direct_GCJ=no
18368       hardcode_automatic_GCJ=yes
18369       hardcode_shlibpath_var_GCJ=unsupported
18370       whole_archive_flag_spec_GCJ=''
18371       link_all_deplibs_GCJ=yes
18372     if test "$GCC" = yes ; then
18373         output_verbose_link_cmd='echo'
18374         archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
18375       module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18376       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18377       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}'
18378       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}'
18379     else
18380       case $cc_basename in
18381         xlc*)
18382          output_verbose_link_cmd='echo'
18383          archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
18384          module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18385           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18386          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}'
18387           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}'
18388           ;;
18389        *)
18390          ld_shlibs_GCJ=no
18391           ;;
18392       esac
18393     fi
18394       ;;
18395
18396     dgux*)
18397       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18398       hardcode_libdir_flag_spec_GCJ='-L$libdir'
18399       hardcode_shlibpath_var_GCJ=no
18400       ;;
18401
18402     freebsd1*)
18403       ld_shlibs_GCJ=no
18404       ;;
18405
18406     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
18407     # support.  Future versions do this automatically, but an explicit c++rt0.o
18408     # does not break anything, and helps significantly (at the cost of a little
18409     # extra space).
18410     freebsd2.2*)
18411       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
18412       hardcode_libdir_flag_spec_GCJ='-R$libdir'
18413       hardcode_direct_GCJ=yes
18414       hardcode_shlibpath_var_GCJ=no
18415       ;;
18416
18417     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
18418     freebsd2*)
18419       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18420       hardcode_direct_GCJ=yes
18421       hardcode_minus_L_GCJ=yes
18422       hardcode_shlibpath_var_GCJ=no
18423       ;;
18424
18425     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
18426     freebsd* | dragonfly*)
18427       archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
18428       hardcode_libdir_flag_spec_GCJ='-R$libdir'
18429       hardcode_direct_GCJ=yes
18430       hardcode_shlibpath_var_GCJ=no
18431       ;;
18432
18433     hpux9*)
18434       if test "$GCC" = yes; then
18435         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'
18436       else
18437         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'
18438       fi
18439       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18440       hardcode_libdir_separator_GCJ=:
18441       hardcode_direct_GCJ=yes
18442
18443       # hardcode_minus_L: Not really in the search PATH,
18444       # but as the default location of the library.
18445       hardcode_minus_L_GCJ=yes
18446       export_dynamic_flag_spec_GCJ='${wl}-E'
18447       ;;
18448
18449     hpux10*)
18450       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18451         archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18452       else
18453         archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
18454       fi
18455       if test "$with_gnu_ld" = no; then
18456         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18457         hardcode_libdir_separator_GCJ=:
18458
18459         hardcode_direct_GCJ=yes
18460         export_dynamic_flag_spec_GCJ='${wl}-E'
18461
18462         # hardcode_minus_L: Not really in the search PATH,
18463         # but as the default location of the library.
18464         hardcode_minus_L_GCJ=yes
18465       fi
18466       ;;
18467
18468     hpux11*)
18469       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18470         case $host_cpu in
18471         hppa*64*)
18472           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18473           ;;
18474         ia64*)
18475           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18476           ;;
18477         *)
18478           archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18479           ;;
18480         esac
18481       else
18482         case $host_cpu in
18483         hppa*64*)
18484           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18485           ;;
18486         ia64*)
18487           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18488           ;;
18489         *)
18490           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18491           ;;
18492         esac
18493       fi
18494       if test "$with_gnu_ld" = no; then
18495         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18496         hardcode_libdir_separator_GCJ=:
18497
18498         case $host_cpu in
18499         hppa*64*|ia64*)
18500           hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
18501           hardcode_direct_GCJ=no
18502           hardcode_shlibpath_var_GCJ=no
18503           ;;
18504         *)
18505           hardcode_direct_GCJ=yes
18506           export_dynamic_flag_spec_GCJ='${wl}-E'
18507
18508           # hardcode_minus_L: Not really in the search PATH,
18509           # but as the default location of the library.
18510           hardcode_minus_L_GCJ=yes
18511           ;;
18512         esac
18513       fi
18514       ;;
18515
18516     irix5* | irix6* | nonstopux*)
18517       if test "$GCC" = yes; then
18518         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'
18519       else
18520         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'
18521         hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
18522       fi
18523       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18524       hardcode_libdir_separator_GCJ=:
18525       link_all_deplibs_GCJ=yes
18526       ;;
18527
18528     netbsd* | netbsdelf*-gnu)
18529       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18530         archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
18531       else
18532         archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
18533       fi
18534       hardcode_libdir_flag_spec_GCJ='-R$libdir'
18535       hardcode_direct_GCJ=yes
18536       hardcode_shlibpath_var_GCJ=no
18537       ;;
18538
18539     newsos6)
18540       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18541       hardcode_direct_GCJ=yes
18542       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18543       hardcode_libdir_separator_GCJ=:
18544       hardcode_shlibpath_var_GCJ=no
18545       ;;
18546
18547     openbsd*)
18548       hardcode_direct_GCJ=yes
18549       hardcode_shlibpath_var_GCJ=no
18550       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18551         archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18552         archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
18553         hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18554         export_dynamic_flag_spec_GCJ='${wl}-E'
18555       else
18556        case $host_os in
18557          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
18558            archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18559            hardcode_libdir_flag_spec_GCJ='-R$libdir'
18560            ;;
18561          *)
18562            archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18563            hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18564            ;;
18565        esac
18566       fi
18567       ;;
18568
18569     os2*)
18570       hardcode_libdir_flag_spec_GCJ='-L$libdir'
18571       hardcode_minus_L_GCJ=yes
18572       allow_undefined_flag_GCJ=unsupported
18573       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'
18574       old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
18575       ;;
18576
18577     osf3*)
18578       if test "$GCC" = yes; then
18579         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18580         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'
18581       else
18582         allow_undefined_flag_GCJ=' -expect_unresolved \*'
18583         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'
18584       fi
18585       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18586       hardcode_libdir_separator_GCJ=:
18587       ;;
18588
18589     osf4* | osf5*)      # as osf3* with the addition of -msym flag
18590       if test "$GCC" = yes; then
18591         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18592         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'
18593         hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18594       else
18595         allow_undefined_flag_GCJ=' -expect_unresolved \*'
18596         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'
18597         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~
18598         $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'
18599
18600         # Both c and cxx compiler support -rpath directly
18601         hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
18602       fi
18603       hardcode_libdir_separator_GCJ=:
18604       ;;
18605
18606     solaris*)
18607       no_undefined_flag_GCJ=' -z text'
18608       if test "$GCC" = yes; then
18609         wlarc='${wl}'
18610         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18611         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18612           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
18613       else
18614         wlarc=''
18615         archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
18616         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18617         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
18618       fi
18619       hardcode_libdir_flag_spec_GCJ='-R$libdir'
18620       hardcode_shlibpath_var_GCJ=no
18621       case $host_os in
18622       solaris2.[0-5] | solaris2.[0-5].*) ;;
18623       *)
18624         # The compiler driver will combine linker options so we
18625         # cannot just pass the convience library names through
18626         # without $wl, iff we do not link with $LD.
18627         # Luckily, gcc supports the same syntax we need for Sun Studio.
18628         # Supported since Solaris 2.6 (maybe 2.5.1?)
18629         case $wlarc in
18630         '')
18631           whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
18632         *)
18633           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' ;;
18634         esac ;;
18635       esac
18636       link_all_deplibs_GCJ=yes
18637       ;;
18638
18639     sunos4*)
18640       if test "x$host_vendor" = xsequent; then
18641         # Use $CC to link under sequent, because it throws in some extra .o
18642         # files that make .init and .fini sections work.
18643         archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
18644       else
18645         archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
18646       fi
18647       hardcode_libdir_flag_spec_GCJ='-L$libdir'
18648       hardcode_direct_GCJ=yes
18649       hardcode_minus_L_GCJ=yes
18650       hardcode_shlibpath_var_GCJ=no
18651       ;;
18652
18653     sysv4)
18654       case $host_vendor in
18655         sni)
18656           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18657           hardcode_direct_GCJ=yes # is this really true???
18658         ;;
18659         siemens)
18660           ## LD is ld it makes a PLAMLIB
18661           ## CC just makes a GrossModule.
18662           archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18663           reload_cmds_GCJ='$CC -r -o $output$reload_objs'
18664           hardcode_direct_GCJ=no
18665         ;;
18666         motorola)
18667           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18668           hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
18669         ;;
18670       esac
18671       runpath_var='LD_RUN_PATH'
18672       hardcode_shlibpath_var_GCJ=no
18673       ;;
18674
18675     sysv4.3*)
18676       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18677       hardcode_shlibpath_var_GCJ=no
18678       export_dynamic_flag_spec_GCJ='-Bexport'
18679       ;;
18680
18681     sysv4*MP*)
18682       if test -d /usr/nec; then
18683         archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18684         hardcode_shlibpath_var_GCJ=no
18685         runpath_var=LD_RUN_PATH
18686         hardcode_runpath_var=yes
18687         ld_shlibs_GCJ=yes
18688       fi
18689       ;;
18690
18691     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
18692       no_undefined_flag_GCJ='${wl}-z,text'
18693       archive_cmds_need_lc_GCJ=no
18694       hardcode_shlibpath_var_GCJ=no
18695       runpath_var='LD_RUN_PATH'
18696
18697       if test "$GCC" = yes; then
18698         archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18699         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18700       else
18701         archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18702         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18703       fi
18704       ;;
18705
18706     sysv5* | sco3.2v5* | sco5v6*)
18707       # Note: We can NOT use -z defs as we might desire, because we do not
18708       # link with -lc, and that would cause any symbols used from libc to
18709       # always be unresolved, which means just about no library would
18710       # ever link correctly.  If we're not using GNU ld we use -z text
18711       # though, which does catch some bad symbols but isn't as heavy-handed
18712       # as -z defs.
18713       no_undefined_flag_GCJ='${wl}-z,text'
18714       allow_undefined_flag_GCJ='${wl}-z,nodefs'
18715       archive_cmds_need_lc_GCJ=no
18716       hardcode_shlibpath_var_GCJ=no
18717       hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
18718       hardcode_libdir_separator_GCJ=':'
18719       link_all_deplibs_GCJ=yes
18720       export_dynamic_flag_spec_GCJ='${wl}-Bexport'
18721       runpath_var='LD_RUN_PATH'
18722
18723       if test "$GCC" = yes; then
18724         archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18725         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18726       else
18727         archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18728         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18729       fi
18730       ;;
18731
18732     uts4*)
18733       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18734       hardcode_libdir_flag_spec_GCJ='-L$libdir'
18735       hardcode_shlibpath_var_GCJ=no
18736       ;;
18737
18738     *)
18739       ld_shlibs_GCJ=no
18740       ;;
18741     esac
18742   fi
18743
18744 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
18745 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
18746 test "$ld_shlibs_GCJ" = no && can_build_shared=no
18747
18748 #
18749 # Do we need to explicitly link libc?
18750 #
18751 case "x$archive_cmds_need_lc_GCJ" in
18752 x|xyes)
18753   # Assume -lc should be added
18754   archive_cmds_need_lc_GCJ=yes
18755
18756   if test "$enable_shared" = yes && test "$GCC" = yes; then
18757     case $archive_cmds_GCJ in
18758     *'~'*)
18759       # FIXME: we may have to deal with multi-command sequences.
18760       ;;
18761     '$CC '*)
18762       # Test whether the compiler implicitly links with -lc since on some
18763       # systems, -lgcc has to come before -lc. If gcc already passes -lc
18764       # to ld, don't add -lc before -lgcc.
18765       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
18766 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
18767       $rm conftest*
18768       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18769
18770       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18771   (eval $ac_compile) 2>&5
18772   ac_status=$?
18773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18774   (exit $ac_status); } 2>conftest.err; then
18775         soname=conftest
18776         lib=conftest
18777         libobjs=conftest.$ac_objext
18778         deplibs=
18779         wl=$lt_prog_compiler_wl_GCJ
18780         pic_flag=$lt_prog_compiler_pic_GCJ
18781         compiler_flags=-v
18782         linker_flags=-v
18783         verstring=
18784         output_objdir=.
18785         libname=conftest
18786         lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
18787         allow_undefined_flag_GCJ=
18788         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
18789   (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
18790   ac_status=$?
18791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18792   (exit $ac_status); }
18793         then
18794           archive_cmds_need_lc_GCJ=no
18795         else
18796           archive_cmds_need_lc_GCJ=yes
18797         fi
18798         allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
18799       else
18800         cat conftest.err 1>&5
18801       fi
18802       $rm conftest*
18803       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
18804 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
18805       ;;
18806     esac
18807   fi
18808   ;;
18809 esac
18810
18811 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
18812 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
18813 library_names_spec=
18814 libname_spec='lib$name'
18815 soname_spec=
18816 shrext_cmds=".so"
18817 postinstall_cmds=
18818 postuninstall_cmds=
18819 finish_cmds=
18820 finish_eval=
18821 shlibpath_var=
18822 shlibpath_overrides_runpath=unknown
18823 version_type=none
18824 dynamic_linker="$host_os ld.so"
18825 sys_lib_dlsearch_path_spec="/lib /usr/lib"
18826 if test "$GCC" = yes; then
18827   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18828   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
18829     # if the path contains ";" then we assume it to be the separator
18830     # otherwise default to the standard path separator (i.e. ":") - it is
18831     # assumed that no part of a normal pathname contains ";" but that should
18832     # okay in the real world where ";" in dirpaths is itself problematic.
18833     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18834   else
18835     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
18836   fi
18837 else
18838   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
18839 fi
18840 need_lib_prefix=unknown
18841 hardcode_into_libs=no
18842
18843 # when you set need_version to no, make sure it does not cause -set_version
18844 # flags to be left without arguments
18845 need_version=unknown
18846
18847 case $host_os in
18848 aix3*)
18849   version_type=linux
18850   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18851   shlibpath_var=LIBPATH
18852
18853   # AIX 3 has no versioning support, so we append a major version to the name.
18854   soname_spec='${libname}${release}${shared_ext}$major'
18855   ;;
18856
18857 aix4* | aix5*)
18858   version_type=linux
18859   need_lib_prefix=no
18860   need_version=no
18861   hardcode_into_libs=yes
18862   if test "$host_cpu" = ia64; then
18863     # AIX 5 supports IA64
18864     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18865     shlibpath_var=LD_LIBRARY_PATH
18866   else
18867     # With GCC up to 2.95.x, collect2 would create an import file
18868     # for dependence libraries.  The import file would start with
18869     # the line `#! .'.  This would cause the generated library to
18870     # depend on `.', always an invalid library.  This was fixed in
18871     # development snapshots of GCC prior to 3.0.
18872     case $host_os in
18873       aix4 | aix4.[01] | aix4.[01].*)
18874       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18875            echo ' yes '
18876            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
18877         :
18878       else
18879         can_build_shared=no
18880       fi
18881       ;;
18882     esac
18883     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18884     # soname into executable. Probably we can add versioning support to
18885     # collect2, so additional links can be useful in future.
18886     if test "$aix_use_runtimelinking" = yes; then
18887       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18888       # instead of lib<name>.a to let people know that these are not
18889       # typical AIX shared libraries.
18890       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18891     else
18892       # We preserve .a as extension for shared libraries through AIX4.2
18893       # and later when we are not doing run time linking.
18894       library_names_spec='${libname}${release}.a $libname.a'
18895       soname_spec='${libname}${release}${shared_ext}$major'
18896     fi
18897     shlibpath_var=LIBPATH
18898   fi
18899   ;;
18900
18901 amigaos*)
18902   library_names_spec='$libname.ixlibrary $libname.a'
18903   # Create ${libname}_ixlibrary.a entries in /sys/libs.
18904   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'
18905   ;;
18906
18907 beos*)
18908   library_names_spec='${libname}${shared_ext}'
18909   dynamic_linker="$host_os ld.so"
18910   shlibpath_var=LIBRARY_PATH
18911   ;;
18912
18913 bsdi[45]*)
18914   version_type=linux
18915   need_version=no
18916   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18917   soname_spec='${libname}${release}${shared_ext}$major'
18918   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18919   shlibpath_var=LD_LIBRARY_PATH
18920   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18921   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18922   # the default ld.so.conf also contains /usr/contrib/lib and
18923   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18924   # libtool to hard-code these into programs
18925   ;;
18926
18927 cygwin* | mingw* | pw32*)
18928   version_type=windows
18929   shrext_cmds=".dll"
18930   need_version=no
18931   need_lib_prefix=no
18932
18933   case $GCC,$host_os in
18934   yes,cygwin* | yes,mingw* | yes,pw32*)
18935     library_names_spec='$libname.dll.a'
18936     # DLL is installed to $(libdir)/../bin by postinstall_cmds
18937     postinstall_cmds='base_file=`basename \${file}`~
18938       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
18939       dldir=$destdir/`dirname \$dlpath`~
18940       test -d \$dldir || mkdir -p \$dldir~
18941       $install_prog $dir/$dlname \$dldir/$dlname~
18942       chmod a+x \$dldir/$dlname'
18943     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18944       dlpath=$dir/\$dldll~
18945        $rm \$dlpath'
18946     shlibpath_overrides_runpath=yes
18947
18948     case $host_os in
18949     cygwin*)
18950       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18951       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18952       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18953       ;;
18954     mingw*)
18955       # MinGW DLLs use traditional 'lib' prefix
18956       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18957       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18958       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
18959         # It is most probably a Windows format PATH printed by
18960         # mingw gcc, but we are running on Cygwin. Gcc prints its search
18961         # path with ; separators, and with drive letters. We can handle the
18962         # drive letters (cygwin fileutils understands them), so leave them,
18963         # especially as we might pass files found there to a mingw objdump,
18964         # which wouldn't understand a cygwinified path. Ahh.
18965         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18966       else
18967         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
18968       fi
18969       ;;
18970     pw32*)
18971       # pw32 DLLs use 'pw' prefix rather than 'lib'
18972       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18973       ;;
18974     esac
18975     ;;
18976
18977   *)
18978     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18979     ;;
18980   esac
18981   dynamic_linker='Win32 ld.exe'
18982   # FIXME: first we should search . and the directory the executable is in
18983   shlibpath_var=PATH
18984   ;;
18985
18986 darwin* | rhapsody*)
18987   dynamic_linker="$host_os dyld"
18988   version_type=darwin
18989   need_lib_prefix=no
18990   need_version=no
18991   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18992   soname_spec='${libname}${release}${major}$shared_ext'
18993   shlibpath_overrides_runpath=yes
18994   shlibpath_var=DYLD_LIBRARY_PATH
18995   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18996   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
18997   if test "$GCC" = yes; then
18998     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"`
18999   else
19000     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
19001   fi
19002   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
19003   ;;
19004
19005 dgux*)
19006   version_type=linux
19007   need_lib_prefix=no
19008   need_version=no
19009   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
19010   soname_spec='${libname}${release}${shared_ext}$major'
19011   shlibpath_var=LD_LIBRARY_PATH
19012   ;;
19013
19014 freebsd1*)
19015   dynamic_linker=no
19016   ;;
19017
19018 freebsd* | dragonfly*)
19019   # DragonFly does not have aout.  When/if they implement a new
19020   # versioning mechanism, adjust this.
19021   if test -x /usr/bin/objformat; then
19022     objformat=`/usr/bin/objformat`
19023   else
19024     case $host_os in
19025     freebsd[123]*) objformat=aout ;;
19026     *) objformat=elf ;;
19027     esac
19028   fi
19029   version_type=freebsd-$objformat
19030   case $version_type in
19031     freebsd-elf*)
19032       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19033       need_version=no
19034       need_lib_prefix=no
19035       ;;
19036     freebsd-*)
19037       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
19038       need_version=yes
19039       ;;
19040   esac
19041   shlibpath_var=LD_LIBRARY_PATH
19042   case $host_os in
19043   freebsd2*)
19044     shlibpath_overrides_runpath=yes
19045     ;;
19046   freebsd3.[01]* | freebsdelf3.[01]*)
19047     shlibpath_overrides_runpath=yes
19048     hardcode_into_libs=yes
19049     ;;
19050   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
19051   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
19052     shlibpath_overrides_runpath=no
19053     hardcode_into_libs=yes
19054     ;;
19055   freebsd*) # from 4.6 on
19056     shlibpath_overrides_runpath=yes
19057     hardcode_into_libs=yes
19058     ;;
19059   esac
19060   ;;
19061
19062 gnu*)
19063   version_type=linux
19064   need_lib_prefix=no
19065   need_version=no
19066   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
19067   soname_spec='${libname}${release}${shared_ext}$major'
19068   shlibpath_var=LD_LIBRARY_PATH
19069   hardcode_into_libs=yes
19070   ;;
19071
19072 hpux9* | hpux10* | hpux11*)
19073   # Give a soname corresponding to the major version so that dld.sl refuses to
19074   # link against other versions.
19075   version_type=sunos
19076   need_lib_prefix=no
19077   need_version=no
19078   case $host_cpu in
19079   ia64*)
19080     shrext_cmds='.so'
19081     hardcode_into_libs=yes
19082     dynamic_linker="$host_os dld.so"
19083     shlibpath_var=LD_LIBRARY_PATH
19084     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19085     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19086     soname_spec='${libname}${release}${shared_ext}$major'
19087     if test "X$HPUX_IA64_MODE" = X32; then
19088       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
19089     else
19090       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
19091     fi
19092     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19093     ;;
19094    hppa*64*)
19095      shrext_cmds='.sl'
19096      hardcode_into_libs=yes
19097      dynamic_linker="$host_os dld.sl"
19098      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
19099      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19100      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19101      soname_spec='${libname}${release}${shared_ext}$major'
19102      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
19103      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19104      ;;
19105    *)
19106     shrext_cmds='.sl'
19107     dynamic_linker="$host_os dld.sl"
19108     shlibpath_var=SHLIB_PATH
19109     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
19110     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19111     soname_spec='${libname}${release}${shared_ext}$major'
19112     ;;
19113   esac
19114   # HP-UX runs *really* slowly unless shared libraries are mode 555.
19115   postinstall_cmds='chmod 555 $lib'
19116   ;;
19117
19118 interix3*)
19119   version_type=linux
19120   need_lib_prefix=no
19121   need_version=no
19122   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19123   soname_spec='${libname}${release}${shared_ext}$major'
19124   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
19125   shlibpath_var=LD_LIBRARY_PATH
19126   shlibpath_overrides_runpath=no
19127   hardcode_into_libs=yes
19128   ;;
19129
19130 irix5* | irix6* | nonstopux*)
19131   case $host_os in
19132     nonstopux*) version_type=nonstopux ;;
19133     *)
19134         if test "$lt_cv_prog_gnu_ld" = yes; then
19135                 version_type=linux
19136         else
19137                 version_type=irix
19138         fi ;;
19139   esac
19140   need_lib_prefix=no
19141   need_version=no
19142   soname_spec='${libname}${release}${shared_ext}$major'
19143   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
19144   case $host_os in
19145   irix5* | nonstopux*)
19146     libsuff= shlibsuff=
19147     ;;
19148   *)
19149     case $LD in # libtool.m4 will add one of these switches to LD
19150     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
19151       libsuff= shlibsuff= libmagic=32-bit;;
19152     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
19153       libsuff=32 shlibsuff=N32 libmagic=N32;;
19154     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
19155       libsuff=64 shlibsuff=64 libmagic=64-bit;;
19156     *) libsuff= shlibsuff= libmagic=never-match;;
19157     esac
19158     ;;
19159   esac
19160   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
19161   shlibpath_overrides_runpath=no
19162   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
19163   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
19164   hardcode_into_libs=yes
19165   ;;
19166
19167 # No shared lib support for Linux oldld, aout, or coff.
19168 linux*oldld* | linux*aout* | linux*coff*)
19169   dynamic_linker=no
19170   ;;
19171
19172 # This must be Linux ELF.
19173 linux* | k*bsd*-gnu)
19174   version_type=linux
19175   need_lib_prefix=no
19176   need_version=no
19177   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19178   soname_spec='${libname}${release}${shared_ext}$major'
19179   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
19180   shlibpath_var=LD_LIBRARY_PATH
19181   shlibpath_overrides_runpath=no
19182   # This implies no fast_install, which is unacceptable.
19183   # Some rework will be needed to allow for fast_install
19184   # before this can be enabled.
19185   hardcode_into_libs=yes
19186
19187   # Append ld.so.conf contents to the search path
19188   if test -f /etc/ld.so.conf; then
19189     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' ' '`
19190     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
19191   fi
19192
19193   # We used to test for /lib/ld.so.1 and disable shared libraries on
19194   # powerpc, because MkLinux only supported shared libraries with the
19195   # GNU dynamic linker.  Since this was broken with cross compilers,
19196   # most powerpc-linux boxes support dynamic linking these days and
19197   # people can always --disable-shared, the test was removed, and we
19198   # assume the GNU/Linux dynamic linker is in use.
19199   dynamic_linker='GNU/Linux ld.so'
19200   ;;
19201
19202 netbsdelf*-gnu)
19203   version_type=linux
19204   need_lib_prefix=no
19205   need_version=no
19206   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19207   soname_spec='${libname}${release}${shared_ext}$major'
19208   shlibpath_var=LD_LIBRARY_PATH
19209   shlibpath_overrides_runpath=no
19210   hardcode_into_libs=yes
19211   dynamic_linker='NetBSD ld.elf_so'
19212   ;;
19213
19214 netbsd*)
19215   version_type=sunos
19216   need_lib_prefix=no
19217   need_version=no
19218   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19219     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19220     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19221     dynamic_linker='NetBSD (a.out) ld.so'
19222   else
19223     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19224     soname_spec='${libname}${release}${shared_ext}$major'
19225     dynamic_linker='NetBSD ld.elf_so'
19226   fi
19227   shlibpath_var=LD_LIBRARY_PATH
19228   shlibpath_overrides_runpath=yes
19229   hardcode_into_libs=yes
19230   ;;
19231
19232 newsos6)
19233   version_type=linux
19234   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19235   shlibpath_var=LD_LIBRARY_PATH
19236   shlibpath_overrides_runpath=yes
19237   ;;
19238
19239 nto-qnx*)
19240   version_type=linux
19241   need_lib_prefix=no
19242   need_version=no
19243   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19244   soname_spec='${libname}${release}${shared_ext}$major'
19245   shlibpath_var=LD_LIBRARY_PATH
19246   shlibpath_overrides_runpath=yes
19247   ;;
19248
19249 openbsd*)
19250   version_type=sunos
19251   sys_lib_dlsearch_path_spec="/usr/lib"
19252   need_lib_prefix=no
19253   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
19254   case $host_os in
19255     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
19256     *)                         need_version=no  ;;
19257   esac
19258   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19259   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19260   shlibpath_var=LD_LIBRARY_PATH
19261   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19262     case $host_os in
19263       openbsd2.[89] | openbsd2.[89].*)
19264         shlibpath_overrides_runpath=no
19265         ;;
19266       *)
19267         shlibpath_overrides_runpath=yes
19268         ;;
19269       esac
19270   else
19271     shlibpath_overrides_runpath=yes
19272   fi
19273   ;;
19274
19275 os2*)
19276   libname_spec='$name'
19277   shrext_cmds=".dll"
19278   need_lib_prefix=no
19279   library_names_spec='$libname${shared_ext} $libname.a'
19280   dynamic_linker='OS/2 ld.exe'
19281   shlibpath_var=LIBPATH
19282   ;;
19283
19284 osf3* | osf4* | osf5*)
19285   version_type=osf
19286   need_lib_prefix=no
19287   need_version=no
19288   soname_spec='${libname}${release}${shared_ext}$major'
19289   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19290   shlibpath_var=LD_LIBRARY_PATH
19291   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
19292   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
19293   ;;
19294
19295 solaris*)
19296   version_type=linux
19297   need_lib_prefix=no
19298   need_version=no
19299   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19300   soname_spec='${libname}${release}${shared_ext}$major'
19301   shlibpath_var=LD_LIBRARY_PATH
19302   shlibpath_overrides_runpath=yes
19303   hardcode_into_libs=yes
19304   # ldd complains unless libraries are executable
19305   postinstall_cmds='chmod +x $lib'
19306   ;;
19307
19308 sunos4*)
19309   version_type=sunos
19310   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19311   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
19312   shlibpath_var=LD_LIBRARY_PATH
19313   shlibpath_overrides_runpath=yes
19314   if test "$with_gnu_ld" = yes; then
19315     need_lib_prefix=no
19316   fi
19317   need_version=yes
19318   ;;
19319
19320 sysv4 | sysv4.3*)
19321   version_type=linux
19322   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19323   soname_spec='${libname}${release}${shared_ext}$major'
19324   shlibpath_var=LD_LIBRARY_PATH
19325   case $host_vendor in
19326     sni)
19327       shlibpath_overrides_runpath=no
19328       need_lib_prefix=no
19329       export_dynamic_flag_spec='${wl}-Blargedynsym'
19330       runpath_var=LD_RUN_PATH
19331       ;;
19332     siemens)
19333       need_lib_prefix=no
19334       ;;
19335     motorola)
19336       need_lib_prefix=no
19337       need_version=no
19338       shlibpath_overrides_runpath=no
19339       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
19340       ;;
19341   esac
19342   ;;
19343
19344 sysv4*MP*)
19345   if test -d /usr/nec ;then
19346     version_type=linux
19347     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
19348     soname_spec='$libname${shared_ext}.$major'
19349     shlibpath_var=LD_LIBRARY_PATH
19350   fi
19351   ;;
19352
19353 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
19354   version_type=freebsd-elf
19355   need_lib_prefix=no
19356   need_version=no
19357   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19358   soname_spec='${libname}${release}${shared_ext}$major'
19359   shlibpath_var=LD_LIBRARY_PATH
19360   hardcode_into_libs=yes
19361   if test "$with_gnu_ld" = yes; then
19362     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
19363     shlibpath_overrides_runpath=no
19364   else
19365     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
19366     shlibpath_overrides_runpath=yes
19367     case $host_os in
19368       sco3.2v5*)
19369         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
19370         ;;
19371     esac
19372   fi
19373   sys_lib_dlsearch_path_spec='/usr/lib'
19374   ;;
19375
19376 uts4*)
19377   version_type=linux
19378   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19379   soname_spec='${libname}${release}${shared_ext}$major'
19380   shlibpath_var=LD_LIBRARY_PATH
19381   ;;
19382
19383 *)
19384   dynamic_linker=no
19385   ;;
19386 esac
19387 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
19388 echo "${ECHO_T}$dynamic_linker" >&6; }
19389 test "$dynamic_linker" = no && can_build_shared=no
19390
19391 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
19392 if test "$GCC" = yes; then
19393   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
19394 fi
19395
19396 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
19397 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
19398 hardcode_action_GCJ=
19399 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
19400    test -n "$runpath_var_GCJ" || \
19401    test "X$hardcode_automatic_GCJ" = "Xyes" ; then
19402
19403   # We can hardcode non-existant directories.
19404   if test "$hardcode_direct_GCJ" != no &&
19405      # If the only mechanism to avoid hardcoding is shlibpath_var, we
19406      # have to relink, otherwise we might link with an installed library
19407      # when we should be linking with a yet-to-be-installed one
19408      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
19409      test "$hardcode_minus_L_GCJ" != no; then
19410     # Linking always hardcodes the temporary library directory.
19411     hardcode_action_GCJ=relink
19412   else
19413     # We can link without hardcoding, and we can hardcode nonexisting dirs.
19414     hardcode_action_GCJ=immediate
19415   fi
19416 else
19417   # We cannot hardcode anything, or else we can only hardcode existing
19418   # directories.
19419   hardcode_action_GCJ=unsupported
19420 fi
19421 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
19422 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
19423
19424 if test "$hardcode_action_GCJ" = relink; then
19425   # Fast installation is not supported
19426   enable_fast_install=no
19427 elif test "$shlibpath_overrides_runpath" = yes ||
19428      test "$enable_shared" = no; then
19429   # Fast installation is not necessary
19430   enable_fast_install=needless
19431 fi
19432
19433
19434 # The else clause should only fire when bootstrapping the
19435 # libtool distribution, otherwise you forgot to ship ltmain.sh
19436 # with your package, and you will get complaints that there are
19437 # no rules to generate ltmain.sh.
19438 if test -f "$ltmain"; then
19439   # See if we are running on zsh, and set the options which allow our commands through
19440   # without removal of \ escapes.
19441   if test -n "${ZSH_VERSION+set}" ; then
19442     setopt NO_GLOB_SUBST
19443   fi
19444   # Now quote all the things that may contain metacharacters while being
19445   # careful not to overquote the AC_SUBSTed values.  We take copies of the
19446   # variables and quote the copies for generation of the libtool script.
19447   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19448     SED SHELL STRIP \
19449     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19450     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19451     deplibs_check_method reload_flag reload_cmds need_locks \
19452     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19453     lt_cv_sys_global_symbol_to_c_name_address \
19454     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19455     old_postinstall_cmds old_postuninstall_cmds \
19456     compiler_GCJ \
19457     CC_GCJ \
19458     LD_GCJ \
19459     lt_prog_compiler_wl_GCJ \
19460     lt_prog_compiler_pic_GCJ \
19461     lt_prog_compiler_static_GCJ \
19462     lt_prog_compiler_no_builtin_flag_GCJ \
19463     export_dynamic_flag_spec_GCJ \
19464     thread_safe_flag_spec_GCJ \
19465     whole_archive_flag_spec_GCJ \
19466     enable_shared_with_static_runtimes_GCJ \
19467     old_archive_cmds_GCJ \
19468     old_archive_from_new_cmds_GCJ \
19469     predep_objects_GCJ \
19470     postdep_objects_GCJ \
19471     predeps_GCJ \
19472     postdeps_GCJ \
19473     compiler_lib_search_path_GCJ \
19474     archive_cmds_GCJ \
19475     archive_expsym_cmds_GCJ \
19476     postinstall_cmds_GCJ \
19477     postuninstall_cmds_GCJ \
19478     old_archive_from_expsyms_cmds_GCJ \
19479     allow_undefined_flag_GCJ \
19480     no_undefined_flag_GCJ \
19481     export_symbols_cmds_GCJ \
19482     hardcode_libdir_flag_spec_GCJ \
19483     hardcode_libdir_flag_spec_ld_GCJ \
19484     hardcode_libdir_separator_GCJ \
19485     hardcode_automatic_GCJ \
19486     module_cmds_GCJ \
19487     module_expsym_cmds_GCJ \
19488     lt_cv_prog_compiler_c_o_GCJ \
19489     exclude_expsyms_GCJ \
19490     include_expsyms_GCJ; do
19491
19492     case $var in
19493     old_archive_cmds_GCJ | \
19494     old_archive_from_new_cmds_GCJ | \
19495     archive_cmds_GCJ | \
19496     archive_expsym_cmds_GCJ | \
19497     module_cmds_GCJ | \
19498     module_expsym_cmds_GCJ | \
19499     old_archive_from_expsyms_cmds_GCJ | \
19500     export_symbols_cmds_GCJ | \
19501     extract_expsyms_cmds | reload_cmds | finish_cmds | \
19502     postinstall_cmds | postuninstall_cmds | \
19503     old_postinstall_cmds | old_postuninstall_cmds | \
19504     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19505       # Double-quote double-evaled strings.
19506       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19507       ;;
19508     *)
19509       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19510       ;;
19511     esac
19512   done
19513
19514   case $lt_echo in
19515   *'\$0 --fallback-echo"')
19516     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19517     ;;
19518   esac
19519
19520 cfgfile="$ofile"
19521
19522   cat <<__EOF__ >> "$cfgfile"
19523 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19524
19525 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19526
19527 # Shell to use when invoking shell scripts.
19528 SHELL=$lt_SHELL
19529
19530 # Whether or not to build shared libraries.
19531 build_libtool_libs=$enable_shared
19532
19533 # Whether or not to build static libraries.
19534 build_old_libs=$enable_static
19535
19536 # Whether or not to add -lc for building shared libraries.
19537 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
19538
19539 # Whether or not to disallow shared libs when runtime libs are static
19540 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
19541
19542 # Whether or not to optimize for fast installation.
19543 fast_install=$enable_fast_install
19544
19545 # The host system.
19546 host_alias=$host_alias
19547 host=$host
19548 host_os=$host_os
19549
19550 # The build system.
19551 build_alias=$build_alias
19552 build=$build
19553 build_os=$build_os
19554
19555 # An echo program that does not interpret backslashes.
19556 echo=$lt_echo
19557
19558 # The archiver.
19559 AR=$lt_AR
19560 AR_FLAGS=$lt_AR_FLAGS
19561
19562 # A C compiler.
19563 LTCC=$lt_LTCC
19564
19565 # LTCC compiler flags.
19566 LTCFLAGS=$lt_LTCFLAGS
19567
19568 # A language-specific compiler.
19569 CC=$lt_compiler_GCJ
19570
19571 # Is the compiler the GNU C compiler?
19572 with_gcc=$GCC_GCJ
19573
19574 # An ERE matcher.
19575 EGREP=$lt_EGREP
19576
19577 # The linker used to build libraries.
19578 LD=$lt_LD_GCJ
19579
19580 # Whether we need hard or soft links.
19581 LN_S=$lt_LN_S
19582
19583 # A BSD-compatible nm program.
19584 NM=$lt_NM
19585
19586 # A symbol stripping program
19587 STRIP=$lt_STRIP
19588
19589 # Used to examine libraries when file_magic_cmd begins "file"
19590 MAGIC_CMD=$MAGIC_CMD
19591
19592 # Used on cygwin: DLL creation program.
19593 DLLTOOL="$DLLTOOL"
19594
19595 # Used on cygwin: object dumper.
19596 OBJDUMP="$OBJDUMP"
19597
19598 # Used on cygwin: assembler.
19599 AS="$AS"
19600
19601 # The name of the directory that contains temporary libtool files.
19602 objdir=$objdir
19603
19604 # How to create reloadable object files.
19605 reload_flag=$lt_reload_flag
19606 reload_cmds=$lt_reload_cmds
19607
19608 # How to pass a linker flag through the compiler.
19609 wl=$lt_lt_prog_compiler_wl_GCJ
19610
19611 # Object file suffix (normally "o").
19612 objext="$ac_objext"
19613
19614 # Old archive suffix (normally "a").
19615 libext="$libext"
19616
19617 # Shared library suffix (normally ".so").
19618 shrext_cmds='$shrext_cmds'
19619
19620 # Executable file suffix (normally "").
19621 exeext="$exeext"
19622
19623 # Additional compiler flags for building library objects.
19624 pic_flag=$lt_lt_prog_compiler_pic_GCJ
19625 pic_mode=$pic_mode
19626
19627 # What is the maximum length of a command?
19628 max_cmd_len=$lt_cv_sys_max_cmd_len
19629
19630 # Does compiler simultaneously support -c and -o options?
19631 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
19632
19633 # Must we lock files when doing compilation?
19634 need_locks=$lt_need_locks
19635
19636 # Do we need the lib prefix for modules?
19637 need_lib_prefix=$need_lib_prefix
19638
19639 # Do we need a version for libraries?
19640 need_version=$need_version
19641
19642 # Whether dlopen is supported.
19643 dlopen_support=$enable_dlopen
19644
19645 # Whether dlopen of programs is supported.
19646 dlopen_self=$enable_dlopen_self
19647
19648 # Whether dlopen of statically linked programs is supported.
19649 dlopen_self_static=$enable_dlopen_self_static
19650
19651 # Compiler flag to prevent dynamic linking.
19652 link_static_flag=$lt_lt_prog_compiler_static_GCJ
19653
19654 # Compiler flag to turn off builtin functions.
19655 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
19656
19657 # Compiler flag to allow reflexive dlopens.
19658 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
19659
19660 # Compiler flag to generate shared objects directly from archives.
19661 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
19662
19663 # Compiler flag to generate thread-safe objects.
19664 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
19665
19666 # Library versioning type.
19667 version_type=$version_type
19668
19669 # Format of library name prefix.
19670 libname_spec=$lt_libname_spec
19671
19672 # List of archive names.  First name is the real one, the rest are links.
19673 # The last name is the one that the linker finds with -lNAME.
19674 library_names_spec=$lt_library_names_spec
19675
19676 # The coded name of the library, if different from the real name.
19677 soname_spec=$lt_soname_spec
19678
19679 # Commands used to build and install an old-style archive.
19680 RANLIB=$lt_RANLIB
19681 old_archive_cmds=$lt_old_archive_cmds_GCJ
19682 old_postinstall_cmds=$lt_old_postinstall_cmds
19683 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19684
19685 # Create an old-style archive from a shared archive.
19686 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
19687
19688 # Create a temporary old-style archive to link instead of a shared archive.
19689 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
19690
19691 # Commands used to build and install a shared archive.
19692 archive_cmds=$lt_archive_cmds_GCJ
19693 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
19694 postinstall_cmds=$lt_postinstall_cmds
19695 postuninstall_cmds=$lt_postuninstall_cmds
19696
19697 # Commands used to build a loadable module (assumed same as above if empty)
19698 module_cmds=$lt_module_cmds_GCJ
19699 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
19700
19701 # Commands to strip libraries.
19702 old_striplib=$lt_old_striplib
19703 striplib=$lt_striplib
19704
19705 # Dependencies to place before the objects being linked to create a
19706 # shared library.
19707 predep_objects=$lt_predep_objects_GCJ
19708
19709 # Dependencies to place after the objects being linked to create a
19710 # shared library.
19711 postdep_objects=$lt_postdep_objects_GCJ
19712
19713 # Dependencies to place before the objects being linked to create a
19714 # shared library.
19715 predeps=$lt_predeps_GCJ
19716
19717 # Dependencies to place after the objects being linked to create a
19718 # shared library.
19719 postdeps=$lt_postdeps_GCJ
19720
19721 # The library search path used internally by the compiler when linking
19722 # a shared library.
19723 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
19724
19725 # Method to check whether dependent libraries are shared objects.
19726 deplibs_check_method=$lt_deplibs_check_method
19727
19728 # Command to use when deplibs_check_method == file_magic.
19729 file_magic_cmd=$lt_file_magic_cmd
19730
19731 # Flag that allows shared libraries with undefined symbols to be built.
19732 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
19733
19734 # Flag that forces no undefined symbols.
19735 no_undefined_flag=$lt_no_undefined_flag_GCJ
19736
19737 # Commands used to finish a libtool library installation in a directory.
19738 finish_cmds=$lt_finish_cmds
19739
19740 # Same as above, but a single script fragment to be evaled but not shown.
19741 finish_eval=$lt_finish_eval
19742
19743 # Take the output of nm and produce a listing of raw symbols and C names.
19744 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19745
19746 # Transform the output of nm in a proper C declaration
19747 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19748
19749 # Transform the output of nm in a C name address pair
19750 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19751
19752 # This is the shared library runtime path variable.
19753 runpath_var=$runpath_var
19754
19755 # This is the shared library path variable.
19756 shlibpath_var=$shlibpath_var
19757
19758 # Is shlibpath searched before the hard-coded library search path?
19759 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19760
19761 # How to hardcode a shared library path into an executable.
19762 hardcode_action=$hardcode_action_GCJ
19763
19764 # Whether we should hardcode library paths into libraries.
19765 hardcode_into_libs=$hardcode_into_libs
19766
19767 # Flag to hardcode \$libdir into a binary during linking.
19768 # This must work even if \$libdir does not exist.
19769 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
19770
19771 # If ld is used when linking, flag to hardcode \$libdir into
19772 # a binary during linking. This must work even if \$libdir does
19773 # not exist.
19774 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
19775
19776 # Whether we need a single -rpath flag with a separated argument.
19777 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
19778
19779 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19780 # resulting binary.
19781 hardcode_direct=$hardcode_direct_GCJ
19782
19783 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19784 # resulting binary.
19785 hardcode_minus_L=$hardcode_minus_L_GCJ
19786
19787 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19788 # the resulting binary.
19789 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
19790
19791 # Set to yes if building a shared library automatically hardcodes DIR into the library
19792 # and all subsequent libraries and executables linked against it.
19793 hardcode_automatic=$hardcode_automatic_GCJ
19794
19795 # Variables whose values should be saved in libtool wrapper scripts and
19796 # restored at relink time.
19797 variables_saved_for_relink="$variables_saved_for_relink"
19798
19799 # Whether libtool must link a program against all its dependency libraries.
19800 link_all_deplibs=$link_all_deplibs_GCJ
19801
19802 # Compile-time system search path for libraries
19803 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19804
19805 # Run-time system search path for libraries
19806 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19807
19808 # Fix the shell variable \$srcfile for the compiler.
19809 fix_srcfile_path="$fix_srcfile_path_GCJ"
19810
19811 # Set to yes if exported symbols are required.
19812 always_export_symbols=$always_export_symbols_GCJ
19813
19814 # The commands to list exported symbols.
19815 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
19816
19817 # The commands to extract the exported symbol list from a shared archive.
19818 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19819
19820 # Symbols that should not be listed in the preloaded symbols.
19821 exclude_expsyms=$lt_exclude_expsyms_GCJ
19822
19823 # Symbols that must always be exported.
19824 include_expsyms=$lt_include_expsyms_GCJ
19825
19826 # ### END LIBTOOL TAG CONFIG: $tagname
19827
19828 __EOF__
19829
19830
19831 else
19832   # If there is no Makefile yet, we rely on a make rule to execute
19833   # `config.status --recheck' to rerun these tests and create the
19834   # libtool script then.
19835   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19836   if test -f "$ltmain_in"; then
19837     test -f Makefile && make "$ltmain"
19838   fi
19839 fi
19840
19841
19842 ac_ext=c
19843 ac_cpp='$CPP $CPPFLAGS'
19844 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19845 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19846 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19847
19848 CC="$lt_save_CC"
19849
19850         else
19851           tagname=""
19852         fi
19853         ;;
19854
19855       RC)
19856         
19857
19858 # Source file extension for RC test sources.
19859 ac_ext=rc
19860
19861 # Object file extension for compiled RC test sources.
19862 objext=o
19863 objext_RC=$objext
19864
19865 # Code to be used in simple compile tests
19866 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
19867
19868 # Code to be used in simple link tests
19869 lt_simple_link_test_code="$lt_simple_compile_test_code"
19870
19871 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
19872
19873 # If no C compiler was specified, use CC.
19874 LTCC=${LTCC-"$CC"}
19875
19876 # If no C compiler flags were specified, use CFLAGS.
19877 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
19878
19879 # Allow CC to be a program name with arguments.
19880 compiler=$CC
19881
19882
19883 # save warnings/boilerplate of simple test code
19884 ac_outfile=conftest.$ac_objext
19885 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
19886 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19887 _lt_compiler_boilerplate=`cat conftest.err`
19888 $rm conftest*
19889
19890 ac_outfile=conftest.$ac_objext
19891 printf "$lt_simple_link_test_code" >conftest.$ac_ext
19892 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19893 _lt_linker_boilerplate=`cat conftest.err`
19894 $rm conftest*
19895
19896
19897 # Allow CC to be a program name with arguments.
19898 lt_save_CC="$CC"
19899 CC=${RC-"windres"}
19900 compiler=$CC
19901 compiler_RC=$CC
19902 for cc_temp in $compiler""; do
19903   case $cc_temp in
19904     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19905     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19906     \-*) ;;
19907     *) break;;
19908   esac
19909 done
19910 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
19911
19912 lt_cv_prog_compiler_c_o_RC=yes
19913
19914 # The else clause should only fire when bootstrapping the
19915 # libtool distribution, otherwise you forgot to ship ltmain.sh
19916 # with your package, and you will get complaints that there are
19917 # no rules to generate ltmain.sh.
19918 if test -f "$ltmain"; then
19919   # See if we are running on zsh, and set the options which allow our commands through
19920   # without removal of \ escapes.
19921   if test -n "${ZSH_VERSION+set}" ; then
19922     setopt NO_GLOB_SUBST
19923   fi
19924   # Now quote all the things that may contain metacharacters while being
19925   # careful not to overquote the AC_SUBSTed values.  We take copies of the
19926   # variables and quote the copies for generation of the libtool script.
19927   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19928     SED SHELL STRIP \
19929     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19930     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19931     deplibs_check_method reload_flag reload_cmds need_locks \
19932     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19933     lt_cv_sys_global_symbol_to_c_name_address \
19934     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19935     old_postinstall_cmds old_postuninstall_cmds \
19936     compiler_RC \
19937     CC_RC \
19938     LD_RC \
19939     lt_prog_compiler_wl_RC \
19940     lt_prog_compiler_pic_RC \
19941     lt_prog_compiler_static_RC \
19942     lt_prog_compiler_no_builtin_flag_RC \
19943     export_dynamic_flag_spec_RC \
19944     thread_safe_flag_spec_RC \
19945     whole_archive_flag_spec_RC \
19946     enable_shared_with_static_runtimes_RC \
19947     old_archive_cmds_RC \
19948     old_archive_from_new_cmds_RC \
19949     predep_objects_RC \
19950     postdep_objects_RC \
19951     predeps_RC \
19952     postdeps_RC \
19953     compiler_lib_search_path_RC \
19954     archive_cmds_RC \
19955     archive_expsym_cmds_RC \
19956     postinstall_cmds_RC \
19957     postuninstall_cmds_RC \
19958     old_archive_from_expsyms_cmds_RC \
19959     allow_undefined_flag_RC \
19960     no_undefined_flag_RC \
19961     export_symbols_cmds_RC \
19962     hardcode_libdir_flag_spec_RC \
19963     hardcode_libdir_flag_spec_ld_RC \
19964     hardcode_libdir_separator_RC \
19965     hardcode_automatic_RC \
19966     module_cmds_RC \
19967     module_expsym_cmds_RC \
19968     lt_cv_prog_compiler_c_o_RC \
19969     exclude_expsyms_RC \
19970     include_expsyms_RC; do
19971
19972     case $var in
19973     old_archive_cmds_RC | \
19974     old_archive_from_new_cmds_RC | \
19975     archive_cmds_RC | \
19976     archive_expsym_cmds_RC | \
19977     module_cmds_RC | \
19978     module_expsym_cmds_RC | \
19979     old_archive_from_expsyms_cmds_RC | \
19980     export_symbols_cmds_RC | \
19981     extract_expsyms_cmds | reload_cmds | finish_cmds | \
19982     postinstall_cmds | postuninstall_cmds | \
19983     old_postinstall_cmds | old_postuninstall_cmds | \
19984     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19985       # Double-quote double-evaled strings.
19986       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19987       ;;
19988     *)
19989       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19990       ;;
19991     esac
19992   done
19993
19994   case $lt_echo in
19995   *'\$0 --fallback-echo"')
19996     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19997     ;;
19998   esac
19999
20000 cfgfile="$ofile"
20001
20002   cat <<__EOF__ >> "$cfgfile"
20003 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
20004
20005 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20006
20007 # Shell to use when invoking shell scripts.
20008 SHELL=$lt_SHELL
20009
20010 # Whether or not to build shared libraries.
20011 build_libtool_libs=$enable_shared
20012
20013 # Whether or not to build static libraries.
20014 build_old_libs=$enable_static
20015
20016 # Whether or not to add -lc for building shared libraries.
20017 build_libtool_need_lc=$archive_cmds_need_lc_RC
20018
20019 # Whether or not to disallow shared libs when runtime libs are static
20020 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
20021
20022 # Whether or not to optimize for fast installation.
20023 fast_install=$enable_fast_install
20024
20025 # The host system.
20026 host_alias=$host_alias
20027 host=$host
20028 host_os=$host_os
20029
20030 # The build system.
20031 build_alias=$build_alias
20032 build=$build
20033 build_os=$build_os
20034
20035 # An echo program that does not interpret backslashes.
20036 echo=$lt_echo
20037
20038 # The archiver.
20039 AR=$lt_AR
20040 AR_FLAGS=$lt_AR_FLAGS
20041
20042 # A C compiler.
20043 LTCC=$lt_LTCC
20044
20045 # LTCC compiler flags.
20046 LTCFLAGS=$lt_LTCFLAGS
20047
20048 # A language-specific compiler.
20049 CC=$lt_compiler_RC
20050
20051 # Is the compiler the GNU C compiler?
20052 with_gcc=$GCC_RC
20053
20054 # An ERE matcher.
20055 EGREP=$lt_EGREP
20056
20057 # The linker used to build libraries.
20058 LD=$lt_LD_RC
20059
20060 # Whether we need hard or soft links.
20061 LN_S=$lt_LN_S
20062
20063 # A BSD-compatible nm program.
20064 NM=$lt_NM
20065
20066 # A symbol stripping program
20067 STRIP=$lt_STRIP
20068
20069 # Used to examine libraries when file_magic_cmd begins "file"
20070 MAGIC_CMD=$MAGIC_CMD
20071
20072 # Used on cygwin: DLL creation program.
20073 DLLTOOL="$DLLTOOL"
20074
20075 # Used on cygwin: object dumper.
20076 OBJDUMP="$OBJDUMP"
20077
20078 # Used on cygwin: assembler.
20079 AS="$AS"
20080
20081 # The name of the directory that contains temporary libtool files.
20082 objdir=$objdir
20083
20084 # How to create reloadable object files.
20085 reload_flag=$lt_reload_flag
20086 reload_cmds=$lt_reload_cmds
20087
20088 # How to pass a linker flag through the compiler.
20089 wl=$lt_lt_prog_compiler_wl_RC
20090
20091 # Object file suffix (normally "o").
20092 objext="$ac_objext"
20093
20094 # Old archive suffix (normally "a").
20095 libext="$libext"
20096
20097 # Shared library suffix (normally ".so").
20098 shrext_cmds='$shrext_cmds'
20099
20100 # Executable file suffix (normally "").
20101 exeext="$exeext"
20102
20103 # Additional compiler flags for building library objects.
20104 pic_flag=$lt_lt_prog_compiler_pic_RC
20105 pic_mode=$pic_mode
20106
20107 # What is the maximum length of a command?
20108 max_cmd_len=$lt_cv_sys_max_cmd_len
20109
20110 # Does compiler simultaneously support -c and -o options?
20111 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
20112
20113 # Must we lock files when doing compilation?
20114 need_locks=$lt_need_locks
20115
20116 # Do we need the lib prefix for modules?
20117 need_lib_prefix=$need_lib_prefix
20118
20119 # Do we need a version for libraries?
20120 need_version=$need_version
20121
20122 # Whether dlopen is supported.
20123 dlopen_support=$enable_dlopen
20124
20125 # Whether dlopen of programs is supported.
20126 dlopen_self=$enable_dlopen_self
20127
20128 # Whether dlopen of statically linked programs is supported.
20129 dlopen_self_static=$enable_dlopen_self_static
20130
20131 # Compiler flag to prevent dynamic linking.
20132 link_static_flag=$lt_lt_prog_compiler_static_RC
20133
20134 # Compiler flag to turn off builtin functions.
20135 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
20136
20137 # Compiler flag to allow reflexive dlopens.
20138 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
20139
20140 # Compiler flag to generate shared objects directly from archives.
20141 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
20142
20143 # Compiler flag to generate thread-safe objects.
20144 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
20145
20146 # Library versioning type.
20147 version_type=$version_type
20148
20149 # Format of library name prefix.
20150 libname_spec=$lt_libname_spec
20151
20152 # List of archive names.  First name is the real one, the rest are links.
20153 # The last name is the one that the linker finds with -lNAME.
20154 library_names_spec=$lt_library_names_spec
20155
20156 # The coded name of the library, if different from the real name.
20157 soname_spec=$lt_soname_spec
20158
20159 # Commands used to build and install an old-style archive.
20160 RANLIB=$lt_RANLIB
20161 old_archive_cmds=$lt_old_archive_cmds_RC
20162 old_postinstall_cmds=$lt_old_postinstall_cmds
20163 old_postuninstall_cmds=$lt_old_postuninstall_cmds
20164
20165 # Create an old-style archive from a shared archive.
20166 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
20167
20168 # Create a temporary old-style archive to link instead of a shared archive.
20169 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
20170
20171 # Commands used to build and install a shared archive.
20172 archive_cmds=$lt_archive_cmds_RC
20173 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
20174 postinstall_cmds=$lt_postinstall_cmds
20175 postuninstall_cmds=$lt_postuninstall_cmds
20176
20177 # Commands used to build a loadable module (assumed same as above if empty)
20178 module_cmds=$lt_module_cmds_RC
20179 module_expsym_cmds=$lt_module_expsym_cmds_RC
20180
20181 # Commands to strip libraries.
20182 old_striplib=$lt_old_striplib
20183 striplib=$lt_striplib
20184
20185 # Dependencies to place before the objects being linked to create a
20186 # shared library.
20187 predep_objects=$lt_predep_objects_RC
20188
20189 # Dependencies to place after the objects being linked to create a
20190 # shared library.
20191 postdep_objects=$lt_postdep_objects_RC
20192
20193 # Dependencies to place before the objects being linked to create a
20194 # shared library.
20195 predeps=$lt_predeps_RC
20196
20197 # Dependencies to place after the objects being linked to create a
20198 # shared library.
20199 postdeps=$lt_postdeps_RC
20200
20201 # The library search path used internally by the compiler when linking
20202 # a shared library.
20203 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
20204
20205 # Method to check whether dependent libraries are shared objects.
20206 deplibs_check_method=$lt_deplibs_check_method
20207
20208 # Command to use when deplibs_check_method == file_magic.
20209 file_magic_cmd=$lt_file_magic_cmd
20210
20211 # Flag that allows shared libraries with undefined symbols to be built.
20212 allow_undefined_flag=$lt_allow_undefined_flag_RC
20213
20214 # Flag that forces no undefined symbols.
20215 no_undefined_flag=$lt_no_undefined_flag_RC
20216
20217 # Commands used to finish a libtool library installation in a directory.
20218 finish_cmds=$lt_finish_cmds
20219
20220 # Same as above, but a single script fragment to be evaled but not shown.
20221 finish_eval=$lt_finish_eval
20222
20223 # Take the output of nm and produce a listing of raw symbols and C names.
20224 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20225
20226 # Transform the output of nm in a proper C declaration
20227 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20228
20229 # Transform the output of nm in a C name address pair
20230 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20231
20232 # This is the shared library runtime path variable.
20233 runpath_var=$runpath_var
20234
20235 # This is the shared library path variable.
20236 shlibpath_var=$shlibpath_var
20237
20238 # Is shlibpath searched before the hard-coded library search path?
20239 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20240
20241 # How to hardcode a shared library path into an executable.
20242 hardcode_action=$hardcode_action_RC
20243
20244 # Whether we should hardcode library paths into libraries.
20245 hardcode_into_libs=$hardcode_into_libs
20246
20247 # Flag to hardcode \$libdir into a binary during linking.
20248 # This must work even if \$libdir does not exist.
20249 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
20250
20251 # If ld is used when linking, flag to hardcode \$libdir into
20252 # a binary during linking. This must work even if \$libdir does
20253 # not exist.
20254 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
20255
20256 # Whether we need a single -rpath flag with a separated argument.
20257 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
20258
20259 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20260 # resulting binary.
20261 hardcode_direct=$hardcode_direct_RC
20262
20263 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20264 # resulting binary.
20265 hardcode_minus_L=$hardcode_minus_L_RC
20266
20267 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20268 # the resulting binary.
20269 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
20270
20271 # Set to yes if building a shared library automatically hardcodes DIR into the library
20272 # and all subsequent libraries and executables linked against it.
20273 hardcode_automatic=$hardcode_automatic_RC
20274
20275 # Variables whose values should be saved in libtool wrapper scripts and
20276 # restored at relink time.
20277 variables_saved_for_relink="$variables_saved_for_relink"
20278
20279 # Whether libtool must link a program against all its dependency libraries.
20280 link_all_deplibs=$link_all_deplibs_RC
20281
20282 # Compile-time system search path for libraries
20283 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20284
20285 # Run-time system search path for libraries
20286 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20287
20288 # Fix the shell variable \$srcfile for the compiler.
20289 fix_srcfile_path="$fix_srcfile_path_RC"
20290
20291 # Set to yes if exported symbols are required.
20292 always_export_symbols=$always_export_symbols_RC
20293
20294 # The commands to list exported symbols.
20295 export_symbols_cmds=$lt_export_symbols_cmds_RC
20296
20297 # The commands to extract the exported symbol list from a shared archive.
20298 extract_expsyms_cmds=$lt_extract_expsyms_cmds
20299
20300 # Symbols that should not be listed in the preloaded symbols.
20301 exclude_expsyms=$lt_exclude_expsyms_RC
20302
20303 # Symbols that must always be exported.
20304 include_expsyms=$lt_include_expsyms_RC
20305
20306 # ### END LIBTOOL TAG CONFIG: $tagname
20307
20308 __EOF__
20309
20310
20311 else
20312   # If there is no Makefile yet, we rely on a make rule to execute
20313   # `config.status --recheck' to rerun these tests and create the
20314   # libtool script then.
20315   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20316   if test -f "$ltmain_in"; then
20317     test -f Makefile && make "$ltmain"
20318   fi
20319 fi
20320
20321
20322 ac_ext=c
20323 ac_cpp='$CPP $CPPFLAGS'
20324 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20325 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20326 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20327
20328 CC="$lt_save_CC"
20329
20330         ;;
20331
20332       *)
20333         { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
20334 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
20335    { (exit 1); exit 1; }; }
20336         ;;
20337       esac
20338
20339       # Append the new tag name to the list of available tags.
20340       if test -n "$tagname" ; then
20341       available_tags="$available_tags $tagname"
20342     fi
20343     fi
20344   done
20345   IFS="$lt_save_ifs"
20346
20347   # Now substitute the updated list of available tags.
20348   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
20349     mv "${ofile}T" "$ofile"
20350     chmod +x "$ofile"
20351   else
20352     rm -f "${ofile}T"
20353     { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
20354 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
20355    { (exit 1); exit 1; }; }
20356   fi
20357 fi
20358
20359
20360
20361 # This can be used to rebuild libtool when needed
20362 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
20363
20364 # Always use our own libtool.
20365 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
20366
20367 # Prevent multiple expansion
20368
20369
20370
20371
20372
20373
20374
20375
20376
20377
20378
20379   
20380
20381   
20382
20383
20384   
20385        
20386        
20387
20388
20389 if test "x$cross_compiling" = "xno"; then
20390         CC_FOR_BUILD=${CC_FOR_BUILD-${CC-gcc}}
20391 else
20392         CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
20393 fi
20394
20395
20396
20397 if test -n "$ac_tool_prefix"; then
20398   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
20399 set dummy ${ac_tool_prefix}ar; ac_word=$2
20400 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20401 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20402 if test "${ac_cv_prog_AR+set}" = set; then
20403   echo $ECHO_N "(cached) $ECHO_C" >&6
20404 else
20405   if test -n "$AR"; then
20406   ac_cv_prog_AR="$AR" # Let the user override the test.
20407 else
20408 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20409 for as_dir in $PATH
20410 do
20411   IFS=$as_save_IFS
20412   test -z "$as_dir" && as_dir=.
20413   for ac_exec_ext in '' $ac_executable_extensions; do
20414   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20415     ac_cv_prog_AR="${ac_tool_prefix}ar"
20416     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20417     break 2
20418   fi
20419 done
20420 done
20421 IFS=$as_save_IFS
20422
20423 fi
20424 fi
20425 AR=$ac_cv_prog_AR
20426 if test -n "$AR"; then
20427   { echo "$as_me:$LINENO: result: $AR" >&5
20428 echo "${ECHO_T}$AR" >&6; }
20429 else
20430   { echo "$as_me:$LINENO: result: no" >&5
20431 echo "${ECHO_T}no" >&6; }
20432 fi
20433
20434
20435 fi
20436 if test -z "$ac_cv_prog_AR"; then
20437   ac_ct_AR=$AR
20438   # Extract the first word of "ar", so it can be a program name with args.
20439 set dummy ar; ac_word=$2
20440 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20441 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20442 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
20443   echo $ECHO_N "(cached) $ECHO_C" >&6
20444 else
20445   if test -n "$ac_ct_AR"; then
20446   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
20447 else
20448 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20449 for as_dir in $PATH
20450 do
20451   IFS=$as_save_IFS
20452   test -z "$as_dir" && as_dir=.
20453   for ac_exec_ext in '' $ac_executable_extensions; do
20454   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20455     ac_cv_prog_ac_ct_AR="ar"
20456     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20457     break 2
20458   fi
20459 done
20460 done
20461 IFS=$as_save_IFS
20462
20463 fi
20464 fi
20465 ac_ct_AR=$ac_cv_prog_ac_ct_AR
20466 if test -n "$ac_ct_AR"; then
20467   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
20468 echo "${ECHO_T}$ac_ct_AR" >&6; }
20469 else
20470   { echo "$as_me:$LINENO: result: no" >&5
20471 echo "${ECHO_T}no" >&6; }
20472 fi
20473
20474   if test "x$ac_ct_AR" = x; then
20475     AR=""
20476   else
20477     case $cross_compiling:$ac_tool_warned in
20478 yes:)
20479 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
20480 whose name does not start with the host triplet.  If you think this
20481 configuration is useful to you, please write to autoconf@gnu.org." >&5
20482 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
20483 whose name does not start with the host triplet.  If you think this
20484 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
20485 ac_tool_warned=yes ;;
20486 esac
20487     AR=$ac_ct_AR
20488   fi
20489 else
20490   AR="$ac_cv_prog_AR"
20491 fi
20492
20493 if test -n "$ac_tool_prefix"; then
20494   # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
20495 set dummy ${ac_tool_prefix}ld; ac_word=$2
20496 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20497 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20498 if test "${ac_cv_prog_LD+set}" = set; then
20499   echo $ECHO_N "(cached) $ECHO_C" >&6
20500 else
20501   if test -n "$LD"; then
20502   ac_cv_prog_LD="$LD" # Let the user override the test.
20503 else
20504 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20505 for as_dir in $PATH
20506 do
20507   IFS=$as_save_IFS
20508   test -z "$as_dir" && as_dir=.
20509   for ac_exec_ext in '' $ac_executable_extensions; do
20510   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20511     ac_cv_prog_LD="${ac_tool_prefix}ld"
20512     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20513     break 2
20514   fi
20515 done
20516 done
20517 IFS=$as_save_IFS
20518
20519 fi
20520 fi
20521 LD=$ac_cv_prog_LD
20522 if test -n "$LD"; then
20523   { echo "$as_me:$LINENO: result: $LD" >&5
20524 echo "${ECHO_T}$LD" >&6; }
20525 else
20526   { echo "$as_me:$LINENO: result: no" >&5
20527 echo "${ECHO_T}no" >&6; }
20528 fi
20529
20530
20531 fi
20532 if test -z "$ac_cv_prog_LD"; then
20533   ac_ct_LD=$LD
20534   # Extract the first word of "ld", so it can be a program name with args.
20535 set dummy ld; ac_word=$2
20536 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20537 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20538 if test "${ac_cv_prog_ac_ct_LD+set}" = set; then
20539   echo $ECHO_N "(cached) $ECHO_C" >&6
20540 else
20541   if test -n "$ac_ct_LD"; then
20542   ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
20543 else
20544 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20545 for as_dir in $PATH
20546 do
20547   IFS=$as_save_IFS
20548   test -z "$as_dir" && as_dir=.
20549   for ac_exec_ext in '' $ac_executable_extensions; do
20550   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20551     ac_cv_prog_ac_ct_LD="ld"
20552     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20553     break 2
20554   fi
20555 done
20556 done
20557 IFS=$as_save_IFS
20558
20559 fi
20560 fi
20561 ac_ct_LD=$ac_cv_prog_ac_ct_LD
20562 if test -n "$ac_ct_LD"; then
20563   { echo "$as_me:$LINENO: result: $ac_ct_LD" >&5
20564 echo "${ECHO_T}$ac_ct_LD" >&6; }
20565 else
20566   { echo "$as_me:$LINENO: result: no" >&5
20567 echo "${ECHO_T}no" >&6; }
20568 fi
20569
20570   if test "x$ac_ct_LD" = x; then
20571     LD=""
20572   else
20573     case $cross_compiling:$ac_tool_warned in
20574 yes:)
20575 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
20576 whose name does not start with the host triplet.  If you think this
20577 configuration is useful to you, please write to autoconf@gnu.org." >&5
20578 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
20579 whose name does not start with the host triplet.  If you think this
20580 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
20581 ac_tool_warned=yes ;;
20582 esac
20583     LD=$ac_ct_LD
20584   fi
20585 else
20586   LD="$ac_cv_prog_LD"
20587 fi
20588
20589
20590 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
20591 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
20592 if test "${ac_cv_header_stdc+set}" = set; then
20593   echo $ECHO_N "(cached) $ECHO_C" >&6
20594 else
20595   cat >conftest.$ac_ext <<_ACEOF
20596 /* confdefs.h.  */
20597 _ACEOF
20598 cat confdefs.h >>conftest.$ac_ext
20599 cat >>conftest.$ac_ext <<_ACEOF
20600 /* end confdefs.h.  */
20601 #include <stdlib.h>
20602 #include <stdarg.h>
20603 #include <string.h>
20604 #include <float.h>
20605
20606 int
20607 main ()
20608 {
20609
20610   ;
20611   return 0;
20612 }
20613 _ACEOF
20614 rm -f conftest.$ac_objext
20615 if { (ac_try="$ac_compile"
20616 case "(($ac_try" in
20617   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20618   *) ac_try_echo=$ac_try;;
20619 esac
20620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20621   (eval "$ac_compile") 2>conftest.er1
20622   ac_status=$?
20623   grep -v '^ *+' conftest.er1 >conftest.err
20624   rm -f conftest.er1
20625   cat conftest.err >&5
20626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20627   (exit $ac_status); } && {
20628          test -z "$ac_c_werror_flag" ||
20629          test ! -s conftest.err
20630        } && test -s conftest.$ac_objext; then
20631   ac_cv_header_stdc=yes
20632 else
20633   echo "$as_me: failed program was:" >&5
20634 sed 's/^/| /' conftest.$ac_ext >&5
20635
20636         ac_cv_header_stdc=no
20637 fi
20638
20639 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20640
20641 if test $ac_cv_header_stdc = yes; then
20642   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
20643   cat >conftest.$ac_ext <<_ACEOF
20644 /* confdefs.h.  */
20645 _ACEOF
20646 cat confdefs.h >>conftest.$ac_ext
20647 cat >>conftest.$ac_ext <<_ACEOF
20648 /* end confdefs.h.  */
20649 #include <string.h>
20650
20651 _ACEOF
20652 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20653   $EGREP "memchr" >/dev/null 2>&1; then
20654   :
20655 else
20656   ac_cv_header_stdc=no
20657 fi
20658 rm -f conftest*
20659
20660 fi
20661
20662 if test $ac_cv_header_stdc = yes; then
20663   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
20664   cat >conftest.$ac_ext <<_ACEOF
20665 /* confdefs.h.  */
20666 _ACEOF
20667 cat confdefs.h >>conftest.$ac_ext
20668 cat >>conftest.$ac_ext <<_ACEOF
20669 /* end confdefs.h.  */
20670 #include <stdlib.h>
20671
20672 _ACEOF
20673 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20674   $EGREP "free" >/dev/null 2>&1; then
20675   :
20676 else
20677   ac_cv_header_stdc=no
20678 fi
20679 rm -f conftest*
20680
20681 fi
20682
20683 if test $ac_cv_header_stdc = yes; then
20684   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
20685   if test "$cross_compiling" = yes; then
20686   :
20687 else
20688   cat >conftest.$ac_ext <<_ACEOF
20689 /* confdefs.h.  */
20690 _ACEOF
20691 cat confdefs.h >>conftest.$ac_ext
20692 cat >>conftest.$ac_ext <<_ACEOF
20693 /* end confdefs.h.  */
20694 #include <ctype.h>
20695 #include <stdlib.h>
20696 #if ((' ' & 0x0FF) == 0x020)
20697 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
20698 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
20699 #else
20700 # define ISLOWER(c) \
20701                    (('a' <= (c) && (c) <= 'i') \
20702                      || ('j' <= (c) && (c) <= 'r') \
20703                      || ('s' <= (c) && (c) <= 'z'))
20704 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
20705 #endif
20706
20707 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
20708 int
20709 main ()
20710 {
20711   int i;
20712   for (i = 0; i < 256; i++)
20713     if (XOR (islower (i), ISLOWER (i))
20714         || toupper (i) != TOUPPER (i))
20715       return 2;
20716   return 0;
20717 }
20718 _ACEOF
20719 rm -f conftest$ac_exeext
20720 if { (ac_try="$ac_link"
20721 case "(($ac_try" in
20722   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20723   *) ac_try_echo=$ac_try;;
20724 esac
20725 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20726   (eval "$ac_link") 2>&5
20727   ac_status=$?
20728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20729   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20730   { (case "(($ac_try" in
20731   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20732   *) ac_try_echo=$ac_try;;
20733 esac
20734 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20735   (eval "$ac_try") 2>&5
20736   ac_status=$?
20737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20738   (exit $ac_status); }; }; then
20739   :
20740 else
20741   echo "$as_me: program exited with status $ac_status" >&5
20742 echo "$as_me: failed program was:" >&5
20743 sed 's/^/| /' conftest.$ac_ext >&5
20744
20745 ( exit $ac_status )
20746 ac_cv_header_stdc=no
20747 fi
20748 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20749 fi
20750
20751
20752 fi
20753 fi
20754 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
20755 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
20756 if test $ac_cv_header_stdc = yes; then
20757   
20758 cat >>confdefs.h <<\_ACEOF
20759 @%:@define STDC_HEADERS 1
20760 _ACEOF
20761
20762 fi
20763
20764
20765   { echo "$as_me:$LINENO: checking for GNU libc2" >&5
20766 echo $ECHO_N "checking for GNU libc2... $ECHO_C" >&6; }
20767   if test "${knfsd_cv_glibc2+set}" = set; then
20768   echo $ECHO_N "(cached) $ECHO_C" >&6
20769 else
20770   cat >conftest.$ac_ext <<_ACEOF
20771 /* confdefs.h.  */
20772 _ACEOF
20773 cat confdefs.h >>conftest.$ac_ext
20774 cat >>conftest.$ac_ext <<_ACEOF
20775 /* end confdefs.h.  */
20776
20777       #include <features.h>
20778       #if !defined(__GLIBC__)
20779       # error Nope
20780       #endif
20781       
20782 _ACEOF
20783 if { (ac_try="$ac_cpp conftest.$ac_ext"
20784 case "(($ac_try" in
20785   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20786   *) ac_try_echo=$ac_try;;
20787 esac
20788 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20789   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20790   ac_status=$?
20791   grep -v '^ *+' conftest.er1 >conftest.err
20792   rm -f conftest.er1
20793   cat conftest.err >&5
20794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20795   (exit $ac_status); } >/dev/null && {
20796          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20797          test ! -s conftest.err
20798        }; then
20799   knfsd_cv_glibc2=yes
20800 else
20801   echo "$as_me: failed program was:" >&5
20802 sed 's/^/| /' conftest.$ac_ext >&5
20803
20804   knfsd_cv_glibc2=no
20805 fi
20806
20807 rm -f conftest.err conftest.$ac_ext
20808 fi
20809
20810   { echo "$as_me:$LINENO: result: $knfsd_cv_glibc2" >&5
20811 echo "${ECHO_T}$knfsd_cv_glibc2" >&6; }
20812   if test $knfsd_cv_glibc2 = yes; then
20813     CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE"
20814     CPPFLAGS_FOR_BUILD="$CPPFLAGS_FOR_BUILD -D_GNU_SOURCE"
20815   fi
20816
20817
20818   { echo "$as_me:$LINENO: checking for BSD signal semantics" >&5
20819 echo $ECHO_N "checking for BSD signal semantics... $ECHO_C" >&6; }
20820   if test "${knfsd_cv_bsd_signals+set}" = set; then
20821   echo $ECHO_N "(cached) $ECHO_C" >&6
20822 else
20823   if test "$cross_compiling" = yes; then
20824   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
20825 See \`config.log' for more details." >&5
20826 echo "$as_me: error: cannot run test program while cross compiling
20827 See \`config.log' for more details." >&2;}
20828    { (exit 1); exit 1; }; }
20829 else
20830   cat >conftest.$ac_ext <<_ACEOF
20831 /* confdefs.h.  */
20832 _ACEOF
20833 cat confdefs.h >>conftest.$ac_ext
20834 cat >>conftest.$ac_ext <<_ACEOF
20835 /* end confdefs.h.  */
20836
20837         #include <signal.h>
20838         #include <unistd.h>
20839         #include <sys/wait.h>
20840
20841         static int counter = 0;
20842         static RETSIGTYPE handler(int num) { counter++; }
20843
20844         int main()
20845         {
20846                 int     s;
20847                 if ((s = fork()) < 0) return 1;
20848                 if (s != 0) {
20849                         if (wait(&s) < 0) return 1;
20850                         return WIFSIGNALED(s)? 1 : 0;
20851                 }
20852
20853                 signal(SIGHUP, handler);
20854                 kill(getpid(), SIGHUP); kill(getpid(), SIGHUP);
20855                 return (counter == 2)? 0 : 1;
20856         }
20857     
20858 _ACEOF
20859 rm -f conftest$ac_exeext
20860 if { (ac_try="$ac_link"
20861 case "(($ac_try" in
20862   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20863   *) ac_try_echo=$ac_try;;
20864 esac
20865 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20866   (eval "$ac_link") 2>&5
20867   ac_status=$?
20868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20869   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20870   { (case "(($ac_try" in
20871   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20872   *) ac_try_echo=$ac_try;;
20873 esac
20874 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20875   (eval "$ac_try") 2>&5
20876   ac_status=$?
20877   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20878   (exit $ac_status); }; }; then
20879   knfsd_cv_bsd_signals=yes
20880 else
20881   echo "$as_me: program exited with status $ac_status" >&5
20882 echo "$as_me: failed program was:" >&5
20883 sed 's/^/| /' conftest.$ac_ext >&5
20884
20885 ( exit $ac_status )
20886 knfsd_cv_bsd_signals=no
20887 fi
20888 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20889 fi
20890
20891
20892 fi
20893      { echo "$as_me:$LINENO: result: $knfsd_cv_bsd_signals" >&5
20894 echo "${ECHO_T}$knfsd_cv_bsd_signals" >&6; }
20895     test $knfsd_cv_bsd_signals = yes && 
20896 cat >>confdefs.h <<\_ACEOF
20897 @%:@define HAVE_BSD_SIGNALS 1
20898 _ACEOF
20899
20900
20901
20902 { echo "$as_me:$LINENO: checking for gethostbyname" >&5
20903 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; }
20904 if test "${ac_cv_func_gethostbyname+set}" = set; then
20905   echo $ECHO_N "(cached) $ECHO_C" >&6
20906 else
20907   cat >conftest.$ac_ext <<_ACEOF
20908 /* confdefs.h.  */
20909 _ACEOF
20910 cat confdefs.h >>conftest.$ac_ext
20911 cat >>conftest.$ac_ext <<_ACEOF
20912 /* end confdefs.h.  */
20913 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
20914    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20915 #define gethostbyname innocuous_gethostbyname
20916
20917 /* System header to define __stub macros and hopefully few prototypes,
20918     which can conflict with char gethostbyname (); below.
20919     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20920     <limits.h> exists even on freestanding compilers.  */
20921
20922 #ifdef __STDC__
20923 # include <limits.h>
20924 #else
20925 # include <assert.h>
20926 #endif
20927
20928 #undef gethostbyname
20929
20930 /* Override any GCC internal prototype to avoid an error.
20931    Use char because int might match the return type of a GCC
20932    builtin and then its argument prototype would still apply.  */
20933 #ifdef __cplusplus
20934 extern "C"
20935 #endif
20936 char gethostbyname ();
20937 /* The GNU C library defines this for functions which it implements
20938     to always fail with ENOSYS.  Some functions are actually named
20939     something starting with __ and the normal name is an alias.  */
20940 #if defined __stub_gethostbyname || defined __stub___gethostbyname
20941 choke me
20942 #endif
20943
20944 int
20945 main ()
20946 {
20947 return gethostbyname ();
20948   ;
20949   return 0;
20950 }
20951 _ACEOF
20952 rm -f conftest.$ac_objext conftest$ac_exeext
20953 if { (ac_try="$ac_link"
20954 case "(($ac_try" in
20955   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20956   *) ac_try_echo=$ac_try;;
20957 esac
20958 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20959   (eval "$ac_link") 2>conftest.er1
20960   ac_status=$?
20961   grep -v '^ *+' conftest.er1 >conftest.err
20962   rm -f conftest.er1
20963   cat conftest.err >&5
20964   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20965   (exit $ac_status); } && {
20966          test -z "$ac_c_werror_flag" ||
20967          test ! -s conftest.err
20968        } && test -s conftest$ac_exeext &&
20969        $as_test_x conftest$ac_exeext; then
20970   ac_cv_func_gethostbyname=yes
20971 else
20972   echo "$as_me: failed program was:" >&5
20973 sed 's/^/| /' conftest.$ac_ext >&5
20974
20975         ac_cv_func_gethostbyname=no
20976 fi
20977
20978 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20979       conftest$ac_exeext conftest.$ac_ext
20980 fi
20981 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
20982 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; }
20983 if test $ac_cv_func_gethostbyname = yes; then
20984   :
20985 else
20986   { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
20987 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; }
20988 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
20989   echo $ECHO_N "(cached) $ECHO_C" >&6
20990 else
20991   ac_check_lib_save_LIBS=$LIBS
20992 LIBS="-lnsl  $LIBS"
20993 cat >conftest.$ac_ext <<_ACEOF
20994 /* confdefs.h.  */
20995 _ACEOF
20996 cat confdefs.h >>conftest.$ac_ext
20997 cat >>conftest.$ac_ext <<_ACEOF
20998 /* end confdefs.h.  */
20999
21000 /* Override any GCC internal prototype to avoid an error.
21001    Use char because int might match the return type of a GCC
21002    builtin and then its argument prototype would still apply.  */
21003 #ifdef __cplusplus
21004 extern "C"
21005 #endif
21006 char gethostbyname ();
21007 int
21008 main ()
21009 {
21010 return gethostbyname ();
21011   ;
21012   return 0;
21013 }
21014 _ACEOF
21015 rm -f conftest.$ac_objext conftest$ac_exeext
21016 if { (ac_try="$ac_link"
21017 case "(($ac_try" in
21018   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21019   *) ac_try_echo=$ac_try;;
21020 esac
21021 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21022   (eval "$ac_link") 2>conftest.er1
21023   ac_status=$?
21024   grep -v '^ *+' conftest.er1 >conftest.err
21025   rm -f conftest.er1
21026   cat conftest.err >&5
21027   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21028   (exit $ac_status); } && {
21029          test -z "$ac_c_werror_flag" ||
21030          test ! -s conftest.err
21031        } && test -s conftest$ac_exeext &&
21032        $as_test_x conftest$ac_exeext; then
21033   ac_cv_lib_nsl_gethostbyname=yes
21034 else
21035   echo "$as_me: failed program was:" >&5
21036 sed 's/^/| /' conftest.$ac_ext >&5
21037
21038         ac_cv_lib_nsl_gethostbyname=no
21039 fi
21040
21041 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21042       conftest$ac_exeext conftest.$ac_ext
21043 LIBS=$ac_check_lib_save_LIBS
21044 fi
21045 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
21046 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; }
21047 if test $ac_cv_lib_nsl_gethostbyname = yes; then
21048   LIBNSL="-lnsl"
21049 fi
21050
21051 fi
21052
21053
21054
21055 { echo "$as_me:$LINENO: checking for connect" >&5
21056 echo $ECHO_N "checking for connect... $ECHO_C" >&6; }
21057 if test "${ac_cv_func_connect+set}" = set; then
21058   echo $ECHO_N "(cached) $ECHO_C" >&6
21059 else
21060   cat >conftest.$ac_ext <<_ACEOF
21061 /* confdefs.h.  */
21062 _ACEOF
21063 cat confdefs.h >>conftest.$ac_ext
21064 cat >>conftest.$ac_ext <<_ACEOF
21065 /* end confdefs.h.  */
21066 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
21067    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21068 #define connect innocuous_connect
21069
21070 /* System header to define __stub macros and hopefully few prototypes,
21071     which can conflict with char connect (); below.
21072     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21073     <limits.h> exists even on freestanding compilers.  */
21074
21075 #ifdef __STDC__
21076 # include <limits.h>
21077 #else
21078 # include <assert.h>
21079 #endif
21080
21081 #undef connect
21082
21083 /* Override any GCC internal prototype to avoid an error.
21084    Use char because int might match the return type of a GCC
21085    builtin and then its argument prototype would still apply.  */
21086 #ifdef __cplusplus
21087 extern "C"
21088 #endif
21089 char connect ();
21090 /* The GNU C library defines this for functions which it implements
21091     to always fail with ENOSYS.  Some functions are actually named
21092     something starting with __ and the normal name is an alias.  */
21093 #if defined __stub_connect || defined __stub___connect
21094 choke me
21095 #endif
21096
21097 int
21098 main ()
21099 {
21100 return connect ();
21101   ;
21102   return 0;
21103 }
21104 _ACEOF
21105 rm -f conftest.$ac_objext conftest$ac_exeext
21106 if { (ac_try="$ac_link"
21107 case "(($ac_try" in
21108   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21109   *) ac_try_echo=$ac_try;;
21110 esac
21111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21112   (eval "$ac_link") 2>conftest.er1
21113   ac_status=$?
21114   grep -v '^ *+' conftest.er1 >conftest.err
21115   rm -f conftest.er1
21116   cat conftest.err >&5
21117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21118   (exit $ac_status); } && {
21119          test -z "$ac_c_werror_flag" ||
21120          test ! -s conftest.err
21121        } && test -s conftest$ac_exeext &&
21122        $as_test_x conftest$ac_exeext; then
21123   ac_cv_func_connect=yes
21124 else
21125   echo "$as_me: failed program was:" >&5
21126 sed 's/^/| /' conftest.$ac_ext >&5
21127
21128         ac_cv_func_connect=no
21129 fi
21130
21131 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21132       conftest$ac_exeext conftest.$ac_ext
21133 fi
21134 { echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
21135 echo "${ECHO_T}$ac_cv_func_connect" >&6; }
21136 if test $ac_cv_func_connect = yes; then
21137   :
21138 else
21139   { echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
21140 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6; }
21141 if test "${ac_cv_lib_socket_connect+set}" = set; then
21142   echo $ECHO_N "(cached) $ECHO_C" >&6
21143 else
21144   ac_check_lib_save_LIBS=$LIBS
21145 LIBS="-lsocket $LIBNSL $LIBS"
21146 cat >conftest.$ac_ext <<_ACEOF
21147 /* confdefs.h.  */
21148 _ACEOF
21149 cat confdefs.h >>conftest.$ac_ext
21150 cat >>conftest.$ac_ext <<_ACEOF
21151 /* end confdefs.h.  */
21152
21153 /* Override any GCC internal prototype to avoid an error.
21154    Use char because int might match the return type of a GCC
21155    builtin and then its argument prototype would still apply.  */
21156 #ifdef __cplusplus
21157 extern "C"
21158 #endif
21159 char connect ();
21160 int
21161 main ()
21162 {
21163 return connect ();
21164   ;
21165   return 0;
21166 }
21167 _ACEOF
21168 rm -f conftest.$ac_objext conftest$ac_exeext
21169 if { (ac_try="$ac_link"
21170 case "(($ac_try" in
21171   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21172   *) ac_try_echo=$ac_try;;
21173 esac
21174 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21175   (eval "$ac_link") 2>conftest.er1
21176   ac_status=$?
21177   grep -v '^ *+' conftest.er1 >conftest.err
21178   rm -f conftest.er1
21179   cat conftest.err >&5
21180   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21181   (exit $ac_status); } && {
21182          test -z "$ac_c_werror_flag" ||
21183          test ! -s conftest.err
21184        } && test -s conftest$ac_exeext &&
21185        $as_test_x conftest$ac_exeext; then
21186   ac_cv_lib_socket_connect=yes
21187 else
21188   echo "$as_me: failed program was:" >&5
21189 sed 's/^/| /' conftest.$ac_ext >&5
21190
21191         ac_cv_lib_socket_connect=no
21192 fi
21193
21194 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21195       conftest$ac_exeext conftest.$ac_ext
21196 LIBS=$ac_check_lib_save_LIBS
21197 fi
21198 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
21199 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6; }
21200 if test $ac_cv_lib_socket_connect = yes; then
21201   LIBSOCKET="-lsocket"
21202 else
21203   { { echo "$as_me:$LINENO: error: Function 'socket' not found." >&5
21204 echo "$as_me: error: Function 'socket' not found." >&2;}
21205    { (exit 1); exit 1; }; }
21206 fi
21207
21208 fi
21209
21210
21211 { echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
21212 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6; }
21213 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
21214   echo $ECHO_N "(cached) $ECHO_C" >&6
21215 else
21216   ac_check_lib_save_LIBS=$LIBS
21217 LIBS="-lcrypt  $LIBS"
21218 cat >conftest.$ac_ext <<_ACEOF
21219 /* confdefs.h.  */
21220 _ACEOF
21221 cat confdefs.h >>conftest.$ac_ext
21222 cat >>conftest.$ac_ext <<_ACEOF
21223 /* end confdefs.h.  */
21224
21225 /* Override any GCC internal prototype to avoid an error.
21226    Use char because int might match the return type of a GCC
21227    builtin and then its argument prototype would still apply.  */
21228 #ifdef __cplusplus
21229 extern "C"
21230 #endif
21231 char crypt ();
21232 int
21233 main ()
21234 {
21235 return crypt ();
21236   ;
21237   return 0;
21238 }
21239 _ACEOF
21240 rm -f conftest.$ac_objext conftest$ac_exeext
21241 if { (ac_try="$ac_link"
21242 case "(($ac_try" in
21243   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21244   *) ac_try_echo=$ac_try;;
21245 esac
21246 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21247   (eval "$ac_link") 2>conftest.er1
21248   ac_status=$?
21249   grep -v '^ *+' conftest.er1 >conftest.err
21250   rm -f conftest.er1
21251   cat conftest.err >&5
21252   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21253   (exit $ac_status); } && {
21254          test -z "$ac_c_werror_flag" ||
21255          test ! -s conftest.err
21256        } && test -s conftest$ac_exeext &&
21257        $as_test_x conftest$ac_exeext; then
21258   ac_cv_lib_crypt_crypt=yes
21259 else
21260   echo "$as_me: failed program was:" >&5
21261 sed 's/^/| /' conftest.$ac_ext >&5
21262
21263         ac_cv_lib_crypt_crypt=no
21264 fi
21265
21266 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21267       conftest$ac_exeext conftest.$ac_ext
21268 LIBS=$ac_check_lib_save_LIBS
21269 fi
21270 { echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
21271 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6; }
21272 if test $ac_cv_lib_crypt_crypt = yes; then
21273   LIBCRYPT="-lcrypt"
21274 fi
21275
21276 if test "$enable_nfsv4" = yes; then
21277     { echo "$as_me:$LINENO: checking for event_dispatch in -levent" >&5
21278 echo $ECHO_N "checking for event_dispatch in -levent... $ECHO_C" >&6; }
21279 if test "${ac_cv_lib_event_event_dispatch+set}" = set; then
21280   echo $ECHO_N "(cached) $ECHO_C" >&6
21281 else
21282   ac_check_lib_save_LIBS=$LIBS
21283 LIBS="-levent  $LIBS"
21284 cat >conftest.$ac_ext <<_ACEOF
21285 /* confdefs.h.  */
21286 _ACEOF
21287 cat confdefs.h >>conftest.$ac_ext
21288 cat >>conftest.$ac_ext <<_ACEOF
21289 /* end confdefs.h.  */
21290
21291 /* Override any GCC internal prototype to avoid an error.
21292    Use char because int might match the return type of a GCC
21293    builtin and then its argument prototype would still apply.  */
21294 #ifdef __cplusplus
21295 extern "C"
21296 #endif
21297 char event_dispatch ();
21298 int
21299 main ()
21300 {
21301 return event_dispatch ();
21302   ;
21303   return 0;
21304 }
21305 _ACEOF
21306 rm -f conftest.$ac_objext conftest$ac_exeext
21307 if { (ac_try="$ac_link"
21308 case "(($ac_try" in
21309   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21310   *) ac_try_echo=$ac_try;;
21311 esac
21312 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21313   (eval "$ac_link") 2>conftest.er1
21314   ac_status=$?
21315   grep -v '^ *+' conftest.er1 >conftest.err
21316   rm -f conftest.er1
21317   cat conftest.err >&5
21318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21319   (exit $ac_status); } && {
21320          test -z "$ac_c_werror_flag" ||
21321          test ! -s conftest.err
21322        } && test -s conftest$ac_exeext &&
21323        $as_test_x conftest$ac_exeext; then
21324   ac_cv_lib_event_event_dispatch=yes
21325 else
21326   echo "$as_me: failed program was:" >&5
21327 sed 's/^/| /' conftest.$ac_ext >&5
21328
21329         ac_cv_lib_event_event_dispatch=no
21330 fi
21331
21332 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21333       conftest$ac_exeext conftest.$ac_ext
21334 LIBS=$ac_check_lib_save_LIBS
21335 fi
21336 { echo "$as_me:$LINENO: result: $ac_cv_lib_event_event_dispatch" >&5
21337 echo "${ECHO_T}$ac_cv_lib_event_event_dispatch" >&6; }
21338 if test $ac_cv_lib_event_event_dispatch = yes; then
21339   libevent=1
21340 else
21341   { { echo "$as_me:$LINENO: error: libevent needed for nfsv4 support" >&5
21342 echo "$as_me: error: libevent needed for nfsv4 support" >&2;}
21343    { (exit 1); exit 1; }; }
21344 fi
21345
21346     { echo "$as_me:$LINENO: checking for nfs4_init_name_mapping in -lnfsidmap" >&5
21347 echo $ECHO_N "checking for nfs4_init_name_mapping in -lnfsidmap... $ECHO_C" >&6; }
21348 if test "${ac_cv_lib_nfsidmap_nfs4_init_name_mapping+set}" = set; then
21349   echo $ECHO_N "(cached) $ECHO_C" >&6
21350 else
21351   ac_check_lib_save_LIBS=$LIBS
21352 LIBS="-lnfsidmap  $LIBS"
21353 cat >conftest.$ac_ext <<_ACEOF
21354 /* confdefs.h.  */
21355 _ACEOF
21356 cat confdefs.h >>conftest.$ac_ext
21357 cat >>conftest.$ac_ext <<_ACEOF
21358 /* end confdefs.h.  */
21359
21360 /* Override any GCC internal prototype to avoid an error.
21361    Use char because int might match the return type of a GCC
21362    builtin and then its argument prototype would still apply.  */
21363 #ifdef __cplusplus
21364 extern "C"
21365 #endif
21366 char nfs4_init_name_mapping ();
21367 int
21368 main ()
21369 {
21370 return nfs4_init_name_mapping ();
21371   ;
21372   return 0;
21373 }
21374 _ACEOF
21375 rm -f conftest.$ac_objext conftest$ac_exeext
21376 if { (ac_try="$ac_link"
21377 case "(($ac_try" in
21378   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21379   *) ac_try_echo=$ac_try;;
21380 esac
21381 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21382   (eval "$ac_link") 2>conftest.er1
21383   ac_status=$?
21384   grep -v '^ *+' conftest.er1 >conftest.err
21385   rm -f conftest.er1
21386   cat conftest.err >&5
21387   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21388   (exit $ac_status); } && {
21389          test -z "$ac_c_werror_flag" ||
21390          test ! -s conftest.err
21391        } && test -s conftest$ac_exeext &&
21392        $as_test_x conftest$ac_exeext; then
21393   ac_cv_lib_nfsidmap_nfs4_init_name_mapping=yes
21394 else
21395   echo "$as_me: failed program was:" >&5
21396 sed 's/^/| /' conftest.$ac_ext >&5
21397
21398         ac_cv_lib_nfsidmap_nfs4_init_name_mapping=no
21399 fi
21400
21401 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21402       conftest$ac_exeext conftest.$ac_ext
21403 LIBS=$ac_check_lib_save_LIBS
21404 fi
21405 { echo "$as_me:$LINENO: result: $ac_cv_lib_nfsidmap_nfs4_init_name_mapping" >&5
21406 echo "${ECHO_T}$ac_cv_lib_nfsidmap_nfs4_init_name_mapping" >&6; }
21407 if test $ac_cv_lib_nfsidmap_nfs4_init_name_mapping = yes; then
21408   libnfsidmap=1
21409 else
21410   { { echo "$as_me:$LINENO: error: libnfsidmap needed for nfsv4 support" >&5
21411 echo "$as_me: error: libnfsidmap needed for nfsv4 support" >&2;}
21412    { (exit 1); exit 1; }; }
21413 fi
21414
21415     
21416 for ac_header in event.h
21417 do
21418 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21419 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21420   { echo "$as_me:$LINENO: checking for $ac_header" >&5
21421 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21422 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21423   echo $ECHO_N "(cached) $ECHO_C" >&6
21424 fi
21425 ac_res=`eval echo '${'$as_ac_Header'}'`
21426                { echo "$as_me:$LINENO: result: $ac_res" >&5
21427 echo "${ECHO_T}$ac_res" >&6; }
21428 else
21429   # Is the header compilable?
21430 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21431 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21432 cat >conftest.$ac_ext <<_ACEOF
21433 /* confdefs.h.  */
21434 _ACEOF
21435 cat confdefs.h >>conftest.$ac_ext
21436 cat >>conftest.$ac_ext <<_ACEOF
21437 /* end confdefs.h.  */
21438 $ac_includes_default
21439 @%:@include <$ac_header>
21440 _ACEOF
21441 rm -f conftest.$ac_objext
21442 if { (ac_try="$ac_compile"
21443 case "(($ac_try" in
21444   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21445   *) ac_try_echo=$ac_try;;
21446 esac
21447 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21448   (eval "$ac_compile") 2>conftest.er1
21449   ac_status=$?
21450   grep -v '^ *+' conftest.er1 >conftest.err
21451   rm -f conftest.er1
21452   cat conftest.err >&5
21453   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21454   (exit $ac_status); } && {
21455          test -z "$ac_c_werror_flag" ||
21456          test ! -s conftest.err
21457        } && test -s conftest.$ac_objext; then
21458   ac_header_compiler=yes
21459 else
21460   echo "$as_me: failed program was:" >&5
21461 sed 's/^/| /' conftest.$ac_ext >&5
21462
21463         ac_header_compiler=no
21464 fi
21465
21466 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21467 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21468 echo "${ECHO_T}$ac_header_compiler" >&6; }
21469
21470 # Is the header present?
21471 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21472 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21473 cat >conftest.$ac_ext <<_ACEOF
21474 /* confdefs.h.  */
21475 _ACEOF
21476 cat confdefs.h >>conftest.$ac_ext
21477 cat >>conftest.$ac_ext <<_ACEOF
21478 /* end confdefs.h.  */
21479 @%:@include <$ac_header>
21480 _ACEOF
21481 if { (ac_try="$ac_cpp conftest.$ac_ext"
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_cpp conftest.$ac_ext") 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); } >/dev/null && {
21494          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21495          test ! -s conftest.err
21496        }; then
21497   ac_header_preproc=yes
21498 else
21499   echo "$as_me: failed program was:" >&5
21500 sed 's/^/| /' conftest.$ac_ext >&5
21501
21502   ac_header_preproc=no
21503 fi
21504
21505 rm -f conftest.err conftest.$ac_ext
21506 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21507 echo "${ECHO_T}$ac_header_preproc" >&6; }
21508
21509 # So?  What about this header?
21510 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21511   yes:no: )
21512     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21513 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21514     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21515 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21516     ac_header_preproc=yes
21517     ;;
21518   no:yes:* )
21519     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21520 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21521     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
21522 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
21523     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21524 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21525     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
21526 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
21527     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21528 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21529     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21530 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21531     ( cat <<\_ASBOX
21532 @%:@@%:@ ------------------------------- @%:@@%:@
21533 @%:@@%:@ Report this to nfs@lists.sf.net @%:@@%:@
21534 @%:@@%:@ ------------------------------- @%:@@%:@
21535 _ASBOX
21536      ) | sed "s/^/$as_me: WARNING:     /" >&2
21537     ;;
21538 esac
21539 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21540 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21541 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21542   echo $ECHO_N "(cached) $ECHO_C" >&6
21543 else
21544   eval "$as_ac_Header=\$ac_header_preproc"
21545 fi
21546 ac_res=`eval echo '${'$as_ac_Header'}'`
21547                { echo "$as_me:$LINENO: result: $ac_res" >&5
21548 echo "${ECHO_T}$ac_res" >&6; }
21549
21550 fi
21551 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21552   cat >>confdefs.h <<_ACEOF
21553 @%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21554 _ACEOF
21555  
21556 else
21557   { { echo "$as_me:$LINENO: error: libevent needed for nfsv4 support" >&5
21558 echo "$as_me: error: libevent needed for nfsv4 support" >&2;}
21559    { (exit 1); exit 1; }; }
21560 fi
21561
21562 done
21563
21564     
21565 for ac_header in nfsidmap.h
21566 do
21567 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21568 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21569   { echo "$as_me:$LINENO: checking for $ac_header" >&5
21570 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21571 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21572   echo $ECHO_N "(cached) $ECHO_C" >&6
21573 fi
21574 ac_res=`eval echo '${'$as_ac_Header'}'`
21575                { echo "$as_me:$LINENO: result: $ac_res" >&5
21576 echo "${ECHO_T}$ac_res" >&6; }
21577 else
21578   # Is the header compilable?
21579 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21580 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21581 cat >conftest.$ac_ext <<_ACEOF
21582 /* confdefs.h.  */
21583 _ACEOF
21584 cat confdefs.h >>conftest.$ac_ext
21585 cat >>conftest.$ac_ext <<_ACEOF
21586 /* end confdefs.h.  */
21587 $ac_includes_default
21588 @%:@include <$ac_header>
21589 _ACEOF
21590 rm -f conftest.$ac_objext
21591 if { (ac_try="$ac_compile"
21592 case "(($ac_try" in
21593   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21594   *) ac_try_echo=$ac_try;;
21595 esac
21596 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21597   (eval "$ac_compile") 2>conftest.er1
21598   ac_status=$?
21599   grep -v '^ *+' conftest.er1 >conftest.err
21600   rm -f conftest.er1
21601   cat conftest.err >&5
21602   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21603   (exit $ac_status); } && {
21604          test -z "$ac_c_werror_flag" ||
21605          test ! -s conftest.err
21606        } && test -s conftest.$ac_objext; then
21607   ac_header_compiler=yes
21608 else
21609   echo "$as_me: failed program was:" >&5
21610 sed 's/^/| /' conftest.$ac_ext >&5
21611
21612         ac_header_compiler=no
21613 fi
21614
21615 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21616 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21617 echo "${ECHO_T}$ac_header_compiler" >&6; }
21618
21619 # Is the header present?
21620 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21621 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21622 cat >conftest.$ac_ext <<_ACEOF
21623 /* confdefs.h.  */
21624 _ACEOF
21625 cat confdefs.h >>conftest.$ac_ext
21626 cat >>conftest.$ac_ext <<_ACEOF
21627 /* end confdefs.h.  */
21628 @%:@include <$ac_header>
21629 _ACEOF
21630 if { (ac_try="$ac_cpp conftest.$ac_ext"
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_cpp conftest.$ac_ext") 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); } >/dev/null && {
21643          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21644          test ! -s conftest.err
21645        }; then
21646   ac_header_preproc=yes
21647 else
21648   echo "$as_me: failed program was:" >&5
21649 sed 's/^/| /' conftest.$ac_ext >&5
21650
21651   ac_header_preproc=no
21652 fi
21653
21654 rm -f conftest.err conftest.$ac_ext
21655 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21656 echo "${ECHO_T}$ac_header_preproc" >&6; }
21657
21658 # So?  What about this header?
21659 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21660   yes:no: )
21661     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21662 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21663     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21664 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21665     ac_header_preproc=yes
21666     ;;
21667   no:yes:* )
21668     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21669 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21670     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
21671 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
21672     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21673 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21674     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
21675 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
21676     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21677 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21678     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21679 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21680     ( cat <<\_ASBOX
21681 @%:@@%:@ ------------------------------- @%:@@%:@
21682 @%:@@%:@ Report this to nfs@lists.sf.net @%:@@%:@
21683 @%:@@%:@ ------------------------------- @%:@@%:@
21684 _ASBOX
21685      ) | sed "s/^/$as_me: WARNING:     /" >&2
21686     ;;
21687 esac
21688 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21689 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21690 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21691   echo $ECHO_N "(cached) $ECHO_C" >&6
21692 else
21693   eval "$as_ac_Header=\$ac_header_preproc"
21694 fi
21695 ac_res=`eval echo '${'$as_ac_Header'}'`
21696                { echo "$as_me:$LINENO: result: $ac_res" >&5
21697 echo "${ECHO_T}$ac_res" >&6; }
21698
21699 fi
21700 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21701   cat >>confdefs.h <<_ACEOF
21702 @%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21703 _ACEOF
21704  
21705 else
21706   { { echo "$as_me:$LINENO: error: libnfsidmap needed for nfsv4 support" >&5
21707 echo "$as_me: error: libnfsidmap needed for nfsv4 support" >&2;}
21708    { (exit 1); exit 1; }; }
21709 fi
21710
21711 done
21712
21713             if test "$enable_gss" = yes; then
21714      
21715
21716 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
21717         if test -n "$ac_tool_prefix"; then
21718   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
21719 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
21720 { echo "$as_me:$LINENO: checking for $ac_word" >&5
21721 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
21722 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
21723   echo $ECHO_N "(cached) $ECHO_C" >&6
21724 else
21725   case $PKG_CONFIG in
21726   [\\/]* | ?:[\\/]*)
21727   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
21728   ;;
21729   *)
21730   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21731 for as_dir in $PATH
21732 do
21733   IFS=$as_save_IFS
21734   test -z "$as_dir" && as_dir=.
21735   for ac_exec_ext in '' $ac_executable_extensions; do
21736   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21737     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
21738     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21739     break 2
21740   fi
21741 done
21742 done
21743 IFS=$as_save_IFS
21744
21745   ;;
21746 esac
21747 fi
21748 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
21749 if test -n "$PKG_CONFIG"; then
21750   { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
21751 echo "${ECHO_T}$PKG_CONFIG" >&6; }
21752 else
21753   { echo "$as_me:$LINENO: result: no" >&5
21754 echo "${ECHO_T}no" >&6; }
21755 fi
21756
21757
21758 fi
21759 if test -z "$ac_cv_path_PKG_CONFIG"; then
21760   ac_pt_PKG_CONFIG=$PKG_CONFIG
21761   # Extract the first word of "pkg-config", so it can be a program name with args.
21762 set dummy pkg-config; ac_word=$2
21763 { echo "$as_me:$LINENO: checking for $ac_word" >&5
21764 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
21765 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
21766   echo $ECHO_N "(cached) $ECHO_C" >&6
21767 else
21768   case $ac_pt_PKG_CONFIG in
21769   [\\/]* | ?:[\\/]*)
21770   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
21771   ;;
21772   *)
21773   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21774 for as_dir in $PATH
21775 do
21776   IFS=$as_save_IFS
21777   test -z "$as_dir" && as_dir=.
21778   for ac_exec_ext in '' $ac_executable_extensions; do
21779   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21780     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
21781     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21782     break 2
21783   fi
21784 done
21785 done
21786 IFS=$as_save_IFS
21787
21788   ;;
21789 esac
21790 fi
21791 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
21792 if test -n "$ac_pt_PKG_CONFIG"; then
21793   { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
21794 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
21795 else
21796   { echo "$as_me:$LINENO: result: no" >&5
21797 echo "${ECHO_T}no" >&6; }
21798 fi
21799
21800   if test "x$ac_pt_PKG_CONFIG" = x; then
21801     PKG_CONFIG=""
21802   else
21803     case $cross_compiling:$ac_tool_warned in
21804 yes:)
21805 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
21806 whose name does not start with the host triplet.  If you think this
21807 configuration is useful to you, please write to autoconf@gnu.org." >&5
21808 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
21809 whose name does not start with the host triplet.  If you think this
21810 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
21811 ac_tool_warned=yes ;;
21812 esac
21813     PKG_CONFIG=$ac_pt_PKG_CONFIG
21814   fi
21815 else
21816   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
21817 fi
21818
21819 fi
21820 if test -n "$PKG_CONFIG"; then
21821         _pkg_min_version=0.9.0
21822         { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
21823 echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
21824         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
21825                 { echo "$as_me:$LINENO: result: yes" >&5
21826 echo "${ECHO_T}yes" >&6; }
21827         else
21828                 { echo "$as_me:$LINENO: result: no" >&5
21829 echo "${ECHO_T}no" >&6; }
21830                 PKG_CONFIG=""
21831         fi
21832                 
21833 fi
21834
21835 pkg_failed=no
21836 { echo "$as_me:$LINENO: checking for RPCSECGSS" >&5
21837 echo $ECHO_N "checking for RPCSECGSS... $ECHO_C" >&6; }
21838
21839 if test -n "$PKG_CONFIG"; then
21840     if test -n "$RPCSECGSS_CFLAGS"; then
21841         pkg_cv_RPCSECGSS_CFLAGS="$RPCSECGSS_CFLAGS"
21842     else
21843         if test -n "$PKG_CONFIG" && \
21844     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"librpcsecgss >= 0.10\"") >&5
21845   ($PKG_CONFIG --exists --print-errors "librpcsecgss >= 0.10") 2>&5
21846   ac_status=$?
21847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21848   (exit $ac_status); }; then
21849   pkg_cv_RPCSECGSS_CFLAGS=`$PKG_CONFIG --cflags "librpcsecgss >= 0.10" 2>/dev/null`
21850 else
21851   pkg_failed=yes
21852 fi
21853     fi
21854 else
21855         pkg_failed=untried
21856 fi
21857 if test -n "$PKG_CONFIG"; then
21858     if test -n "$RPCSECGSS_LIBS"; then
21859         pkg_cv_RPCSECGSS_LIBS="$RPCSECGSS_LIBS"
21860     else
21861         if test -n "$PKG_CONFIG" && \
21862     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"librpcsecgss >= 0.10\"") >&5
21863   ($PKG_CONFIG --exists --print-errors "librpcsecgss >= 0.10") 2>&5
21864   ac_status=$?
21865   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21866   (exit $ac_status); }; then
21867   pkg_cv_RPCSECGSS_LIBS=`$PKG_CONFIG --libs "librpcsecgss >= 0.10" 2>/dev/null`
21868 else
21869   pkg_failed=yes
21870 fi
21871     fi
21872 else
21873         pkg_failed=untried
21874 fi
21875
21876
21877
21878 if test $pkg_failed = yes; then
21879         
21880 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
21881         _pkg_short_errors_supported=yes
21882 else
21883         _pkg_short_errors_supported=no
21884 fi
21885         if test $_pkg_short_errors_supported = yes; then
21886                 RPCSECGSS_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "librpcsecgss >= 0.10"`
21887         else 
21888                 RPCSECGSS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "librpcsecgss >= 0.10"`
21889         fi
21890         # Put the nasty error message in config.log where it belongs
21891         echo "$RPCSECGSS_PKG_ERRORS" >&5
21892
21893         { echo "$as_me:$LINENO: result: no" >&5
21894 echo "${ECHO_T}no" >&6; }
21895                 { { 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
21896 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;}
21897    { (exit 1); exit 1; }; }
21898       
21899      
21900 elif test $pkg_failed = untried; then
21901         { { 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
21902 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;}
21903    { (exit 1); exit 1; }; }
21904       
21905      
21906 else
21907         RPCSECGSS_CFLAGS=$pkg_cv_RPCSECGSS_CFLAGS
21908         RPCSECGSS_LIBS=$pkg_cv_RPCSECGSS_LIBS
21909         { echo "$as_me:$LINENO: result: yes" >&5
21910 echo "${ECHO_T}yes" >&6; }
21911         :
21912 fi
21913     
21914 pkg_failed=no
21915 { echo "$as_me:$LINENO: checking for GSSAPI" >&5
21916 echo $ECHO_N "checking for GSSAPI... $ECHO_C" >&6; }
21917
21918 if test -n "$PKG_CONFIG"; then
21919     if test -n "$GSSAPI_CFLAGS"; then
21920         pkg_cv_GSSAPI_CFLAGS="$GSSAPI_CFLAGS"
21921     else
21922         if test -n "$PKG_CONFIG" && \
21923     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libgssapi >= 0.9\"") >&5
21924   ($PKG_CONFIG --exists --print-errors "libgssapi >= 0.9") 2>&5
21925   ac_status=$?
21926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21927   (exit $ac_status); }; then
21928   pkg_cv_GSSAPI_CFLAGS=`$PKG_CONFIG --cflags "libgssapi >= 0.9" 2>/dev/null`
21929 else
21930   pkg_failed=yes
21931 fi
21932     fi
21933 else
21934         pkg_failed=untried
21935 fi
21936 if test -n "$PKG_CONFIG"; then
21937     if test -n "$GSSAPI_LIBS"; then
21938         pkg_cv_GSSAPI_LIBS="$GSSAPI_LIBS"
21939     else
21940         if test -n "$PKG_CONFIG" && \
21941     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libgssapi >= 0.9\"") >&5
21942   ($PKG_CONFIG --exists --print-errors "libgssapi >= 0.9") 2>&5
21943   ac_status=$?
21944   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21945   (exit $ac_status); }; then
21946   pkg_cv_GSSAPI_LIBS=`$PKG_CONFIG --libs "libgssapi >= 0.9" 2>/dev/null`
21947 else
21948   pkg_failed=yes
21949 fi
21950     fi
21951 else
21952         pkg_failed=untried
21953 fi
21954
21955
21956
21957 if test $pkg_failed = yes; then
21958         
21959 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
21960         _pkg_short_errors_supported=yes
21961 else
21962         _pkg_short_errors_supported=no
21963 fi
21964         if test $_pkg_short_errors_supported = yes; then
21965                 GSSAPI_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libgssapi >= 0.9"`
21966         else 
21967                 GSSAPI_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libgssapi >= 0.9"`
21968         fi
21969         # Put the nasty error message in config.log where it belongs
21970         echo "$GSSAPI_PKG_ERRORS" >&5
21971
21972         { { echo "$as_me:$LINENO: error: Package requirements (libgssapi >= 0.9) were not met:
21973
21974 $GSSAPI_PKG_ERRORS
21975
21976 Consider adjusting the PKG_CONFIG_PATH environment variable if you
21977 installed software in a non-standard prefix.
21978
21979 Alternatively, you may set the environment variables GSSAPI_CFLAGS
21980 and GSSAPI_LIBS to avoid the need to call pkg-config.
21981 See the pkg-config man page for more details.
21982 " >&5
21983 echo "$as_me: error: Package requirements (libgssapi >= 0.9) were not met:
21984
21985 $GSSAPI_PKG_ERRORS
21986
21987 Consider adjusting the PKG_CONFIG_PATH environment variable if you
21988 installed software in a non-standard prefix.
21989
21990 Alternatively, you may set the environment variables GSSAPI_CFLAGS
21991 and GSSAPI_LIBS to avoid the need to call pkg-config.
21992 See the pkg-config man page for more details.
21993 " >&2;}
21994    { (exit 1); exit 1; }; }
21995 elif test $pkg_failed = untried; then
21996         { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
21997 is in your PATH or set the PKG_CONFIG environment variable to the full
21998 path to pkg-config.
21999
22000 Alternatively, you may set the environment variables GSSAPI_CFLAGS
22001 and GSSAPI_LIBS to avoid the need to call pkg-config.
22002 See the pkg-config man page for more details.
22003
22004 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
22005 See \`config.log' for more details." >&5
22006 echo "$as_me: error: The pkg-config script could not be found or is too old.  Make sure it
22007 is in your PATH or set the PKG_CONFIG environment variable to the full
22008 path to pkg-config.
22009
22010 Alternatively, you may set the environment variables GSSAPI_CFLAGS
22011 and GSSAPI_LIBS to avoid the need to call pkg-config.
22012 See the pkg-config man page for more details.
22013
22014 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
22015 See \`config.log' for more details." >&2;}
22016    { (exit 1); exit 1; }; }
22017 else
22018         GSSAPI_CFLAGS=$pkg_cv_GSSAPI_CFLAGS
22019         GSSAPI_LIBS=$pkg_cv_GSSAPI_LIBS
22020         { echo "$as_me:$LINENO: result: yes" >&5
22021 echo "${ECHO_T}yes" >&6; }
22022         :
22023 fi
22024     fi
22025
22026 fi
22027 if test "$knfsd_cv_glibc2" = no; then
22028     { echo "$as_me:$LINENO: checking for daemon in -lbsd" >&5
22029 echo $ECHO_N "checking for daemon in -lbsd... $ECHO_C" >&6; }
22030 if test "${ac_cv_lib_bsd_daemon+set}" = set; then
22031   echo $ECHO_N "(cached) $ECHO_C" >&6
22032 else
22033   ac_check_lib_save_LIBS=$LIBS
22034 LIBS="-lbsd  $LIBS"
22035 cat >conftest.$ac_ext <<_ACEOF
22036 /* confdefs.h.  */
22037 _ACEOF
22038 cat confdefs.h >>conftest.$ac_ext
22039 cat >>conftest.$ac_ext <<_ACEOF
22040 /* end confdefs.h.  */
22041
22042 /* Override any GCC internal prototype to avoid an error.
22043    Use char because int might match the return type of a GCC
22044    builtin and then its argument prototype would still apply.  */
22045 #ifdef __cplusplus
22046 extern "C"
22047 #endif
22048 char daemon ();
22049 int
22050 main ()
22051 {
22052 return daemon ();
22053   ;
22054   return 0;
22055 }
22056 _ACEOF
22057 rm -f conftest.$ac_objext conftest$ac_exeext
22058 if { (ac_try="$ac_link"
22059 case "(($ac_try" in
22060   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22061   *) ac_try_echo=$ac_try;;
22062 esac
22063 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22064   (eval "$ac_link") 2>conftest.er1
22065   ac_status=$?
22066   grep -v '^ *+' conftest.er1 >conftest.err
22067   rm -f conftest.er1
22068   cat conftest.err >&5
22069   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22070   (exit $ac_status); } && {
22071          test -z "$ac_c_werror_flag" ||
22072          test ! -s conftest.err
22073        } && test -s conftest$ac_exeext &&
22074        $as_test_x conftest$ac_exeext; then
22075   ac_cv_lib_bsd_daemon=yes
22076 else
22077   echo "$as_me: failed program was:" >&5
22078 sed 's/^/| /' conftest.$ac_ext >&5
22079
22080         ac_cv_lib_bsd_daemon=no
22081 fi
22082
22083 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22084       conftest$ac_exeext conftest.$ac_ext
22085 LIBS=$ac_check_lib_save_LIBS
22086 fi
22087 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_daemon" >&5
22088 echo "${ECHO_T}$ac_cv_lib_bsd_daemon" >&6; }
22089 if test $ac_cv_lib_bsd_daemon = yes; then
22090   LIBBSD="-lbsd"
22091 fi
22092
22093 fi
22094
22095
22096
22097
22098 if test "$enable_gss" = yes; then
22099     
22100 for ac_header in nfsidmap.h
22101 do
22102 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22103 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22104   { echo "$as_me:$LINENO: checking for $ac_header" >&5
22105 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22106 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22107   echo $ECHO_N "(cached) $ECHO_C" >&6
22108 fi
22109 ac_res=`eval echo '${'$as_ac_Header'}'`
22110                { echo "$as_me:$LINENO: result: $ac_res" >&5
22111 echo "${ECHO_T}$ac_res" >&6; }
22112 else
22113   # Is the header compilable?
22114 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
22115 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22116 cat >conftest.$ac_ext <<_ACEOF
22117 /* confdefs.h.  */
22118 _ACEOF
22119 cat confdefs.h >>conftest.$ac_ext
22120 cat >>conftest.$ac_ext <<_ACEOF
22121 /* end confdefs.h.  */
22122 $ac_includes_default
22123 @%:@include <$ac_header>
22124 _ACEOF
22125 rm -f conftest.$ac_objext
22126 if { (ac_try="$ac_compile"
22127 case "(($ac_try" in
22128   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22129   *) ac_try_echo=$ac_try;;
22130 esac
22131 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22132   (eval "$ac_compile") 2>conftest.er1
22133   ac_status=$?
22134   grep -v '^ *+' conftest.er1 >conftest.err
22135   rm -f conftest.er1
22136   cat conftest.err >&5
22137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22138   (exit $ac_status); } && {
22139          test -z "$ac_c_werror_flag" ||
22140          test ! -s conftest.err
22141        } && test -s conftest.$ac_objext; then
22142   ac_header_compiler=yes
22143 else
22144   echo "$as_me: failed program was:" >&5
22145 sed 's/^/| /' conftest.$ac_ext >&5
22146
22147         ac_header_compiler=no
22148 fi
22149
22150 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22151 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22152 echo "${ECHO_T}$ac_header_compiler" >&6; }
22153
22154 # Is the header present?
22155 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
22156 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22157 cat >conftest.$ac_ext <<_ACEOF
22158 /* confdefs.h.  */
22159 _ACEOF
22160 cat confdefs.h >>conftest.$ac_ext
22161 cat >>conftest.$ac_ext <<_ACEOF
22162 /* end confdefs.h.  */
22163 @%:@include <$ac_header>
22164 _ACEOF
22165 if { (ac_try="$ac_cpp conftest.$ac_ext"
22166 case "(($ac_try" in
22167   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22168   *) ac_try_echo=$ac_try;;
22169 esac
22170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22171   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22172   ac_status=$?
22173   grep -v '^ *+' conftest.er1 >conftest.err
22174   rm -f conftest.er1
22175   cat conftest.err >&5
22176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22177   (exit $ac_status); } >/dev/null && {
22178          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22179          test ! -s conftest.err
22180        }; then
22181   ac_header_preproc=yes
22182 else
22183   echo "$as_me: failed program was:" >&5
22184 sed 's/^/| /' conftest.$ac_ext >&5
22185
22186   ac_header_preproc=no
22187 fi
22188
22189 rm -f conftest.err conftest.$ac_ext
22190 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22191 echo "${ECHO_T}$ac_header_preproc" >&6; }
22192
22193 # So?  What about this header?
22194 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22195   yes:no: )
22196     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22197 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22198     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22199 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22200     ac_header_preproc=yes
22201     ;;
22202   no:yes:* )
22203     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22204 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22205     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
22206 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
22207     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22208 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22209     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
22210 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
22211     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22212 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22213     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22214 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22215     ( cat <<\_ASBOX
22216 @%:@@%:@ ------------------------------- @%:@@%:@
22217 @%:@@%:@ Report this to nfs@lists.sf.net @%:@@%:@
22218 @%:@@%:@ ------------------------------- @%:@@%:@
22219 _ASBOX
22220      ) | sed "s/^/$as_me: WARNING:     /" >&2
22221     ;;
22222 esac
22223 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22224 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22225 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22226   echo $ECHO_N "(cached) $ECHO_C" >&6
22227 else
22228   eval "$as_ac_Header=\$ac_header_preproc"
22229 fi
22230 ac_res=`eval echo '${'$as_ac_Header'}'`
22231                { echo "$as_me:$LINENO: result: $ac_res" >&5
22232 echo "${ECHO_T}$ac_res" >&6; }
22233
22234 fi
22235 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22236   cat >>confdefs.h <<_ACEOF
22237 @%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22238 _ACEOF
22239  
22240 else
22241   { { echo "$as_me:$LINENO: error: libnfsidmap needed for gss support" >&5
22242 echo "$as_me: error: libnfsidmap needed for gss support" >&2;}
22243    { (exit 1); exit 1; }; }
22244 fi
22245
22246 done
22247
22248   
22249 for ac_header in spkm3.h
22250 do
22251 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22252 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22253   { echo "$as_me:$LINENO: checking for $ac_header" >&5
22254 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22255 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22256   echo $ECHO_N "(cached) $ECHO_C" >&6
22257 fi
22258 ac_res=`eval echo '${'$as_ac_Header'}'`
22259                { echo "$as_me:$LINENO: result: $ac_res" >&5
22260 echo "${ECHO_T}$ac_res" >&6; }
22261 else
22262   # Is the header compilable?
22263 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
22264 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22265 cat >conftest.$ac_ext <<_ACEOF
22266 /* confdefs.h.  */
22267 _ACEOF
22268 cat confdefs.h >>conftest.$ac_ext
22269 cat >>conftest.$ac_ext <<_ACEOF
22270 /* end confdefs.h.  */
22271 $ac_includes_default
22272 @%:@include <$ac_header>
22273 _ACEOF
22274 rm -f conftest.$ac_objext
22275 if { (ac_try="$ac_compile"
22276 case "(($ac_try" in
22277   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22278   *) ac_try_echo=$ac_try;;
22279 esac
22280 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22281   (eval "$ac_compile") 2>conftest.er1
22282   ac_status=$?
22283   grep -v '^ *+' conftest.er1 >conftest.err
22284   rm -f conftest.er1
22285   cat conftest.err >&5
22286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22287   (exit $ac_status); } && {
22288          test -z "$ac_c_werror_flag" ||
22289          test ! -s conftest.err
22290        } && test -s conftest.$ac_objext; then
22291   ac_header_compiler=yes
22292 else
22293   echo "$as_me: failed program was:" >&5
22294 sed 's/^/| /' conftest.$ac_ext >&5
22295
22296         ac_header_compiler=no
22297 fi
22298
22299 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22300 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22301 echo "${ECHO_T}$ac_header_compiler" >&6; }
22302
22303 # Is the header present?
22304 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
22305 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22306 cat >conftest.$ac_ext <<_ACEOF
22307 /* confdefs.h.  */
22308 _ACEOF
22309 cat confdefs.h >>conftest.$ac_ext
22310 cat >>conftest.$ac_ext <<_ACEOF
22311 /* end confdefs.h.  */
22312 @%:@include <$ac_header>
22313 _ACEOF
22314 if { (ac_try="$ac_cpp conftest.$ac_ext"
22315 case "(($ac_try" in
22316   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22317   *) ac_try_echo=$ac_try;;
22318 esac
22319 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22320   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22321   ac_status=$?
22322   grep -v '^ *+' conftest.er1 >conftest.err
22323   rm -f conftest.er1
22324   cat conftest.err >&5
22325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22326   (exit $ac_status); } >/dev/null && {
22327          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22328          test ! -s conftest.err
22329        }; then
22330   ac_header_preproc=yes
22331 else
22332   echo "$as_me: failed program was:" >&5
22333 sed 's/^/| /' conftest.$ac_ext >&5
22334
22335   ac_header_preproc=no
22336 fi
22337
22338 rm -f conftest.err conftest.$ac_ext
22339 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22340 echo "${ECHO_T}$ac_header_preproc" >&6; }
22341
22342 # So?  What about this header?
22343 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22344   yes:no: )
22345     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22346 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22347     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22348 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22349     ac_header_preproc=yes
22350     ;;
22351   no:yes:* )
22352     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22353 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22354     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
22355 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
22356     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22357 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22358     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
22359 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
22360     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22361 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22362     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22363 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22364     ( cat <<\_ASBOX
22365 @%:@@%:@ ------------------------------- @%:@@%:@
22366 @%:@@%:@ Report this to nfs@lists.sf.net @%:@@%:@
22367 @%:@@%:@ ------------------------------- @%:@@%:@
22368 _ASBOX
22369      ) | sed "s/^/$as_me: WARNING:     /" >&2
22370     ;;
22371 esac
22372 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22373 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22374 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22375   echo $ECHO_N "(cached) $ECHO_C" >&6
22376 else
22377   eval "$as_ac_Header=\$ac_header_preproc"
22378 fi
22379 ac_res=`eval echo '${'$as_ac_Header'}'`
22380                { echo "$as_me:$LINENO: result: $ac_res" >&5
22381 echo "${ECHO_T}$ac_res" >&6; }
22382
22383 fi
22384 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22385   cat >>confdefs.h <<_ACEOF
22386 @%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22387 _ACEOF
22388  
22389 else
22390   { echo "$as_me:$LINENO: WARNING: could not locate SPKM3 header; will not have SPKM3 support" >&5
22391 echo "$as_me: WARNING: could not locate SPKM3 header; will not have SPKM3 support" >&2;}
22392 fi
22393
22394 done
22395
22396     { echo "$as_me:$LINENO: checking for nfs4_set_debug in -lnfsidmap" >&5
22397 echo $ECHO_N "checking for nfs4_set_debug in -lnfsidmap... $ECHO_C" >&6; }
22398 if test "${ac_cv_lib_nfsidmap_nfs4_set_debug+set}" = set; then
22399   echo $ECHO_N "(cached) $ECHO_C" >&6
22400 else
22401   ac_check_lib_save_LIBS=$LIBS
22402 LIBS="-lnfsidmap  $LIBS"
22403 cat >conftest.$ac_ext <<_ACEOF
22404 /* confdefs.h.  */
22405 _ACEOF
22406 cat confdefs.h >>conftest.$ac_ext
22407 cat >>conftest.$ac_ext <<_ACEOF
22408 /* end confdefs.h.  */
22409
22410 /* Override any GCC internal prototype to avoid an error.
22411    Use char because int might match the return type of a GCC
22412    builtin and then its argument prototype would still apply.  */
22413 #ifdef __cplusplus
22414 extern "C"
22415 #endif
22416 char nfs4_set_debug ();
22417 int
22418 main ()
22419 {
22420 return nfs4_set_debug ();
22421   ;
22422   return 0;
22423 }
22424 _ACEOF
22425 rm -f conftest.$ac_objext conftest$ac_exeext
22426 if { (ac_try="$ac_link"
22427 case "(($ac_try" in
22428   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22429   *) ac_try_echo=$ac_try;;
22430 esac
22431 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22432   (eval "$ac_link") 2>conftest.er1
22433   ac_status=$?
22434   grep -v '^ *+' conftest.er1 >conftest.err
22435   rm -f conftest.er1
22436   cat conftest.err >&5
22437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22438   (exit $ac_status); } && {
22439          test -z "$ac_c_werror_flag" ||
22440          test ! -s conftest.err
22441        } && test -s conftest$ac_exeext &&
22442        $as_test_x conftest$ac_exeext; then
22443   ac_cv_lib_nfsidmap_nfs4_set_debug=yes
22444 else
22445   echo "$as_me: failed program was:" >&5
22446 sed 's/^/| /' conftest.$ac_ext >&5
22447
22448         ac_cv_lib_nfsidmap_nfs4_set_debug=no
22449 fi
22450
22451 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22452       conftest$ac_exeext conftest.$ac_ext
22453 LIBS=$ac_check_lib_save_LIBS
22454 fi
22455 { echo "$as_me:$LINENO: result: $ac_cv_lib_nfsidmap_nfs4_set_debug" >&5
22456 echo "${ECHO_T}$ac_cv_lib_nfsidmap_nfs4_set_debug" >&6; }
22457 if test $ac_cv_lib_nfsidmap_nfs4_set_debug = yes; then
22458   
22459 cat >>confdefs.h <<\_ACEOF
22460 @%:@define HAVE_NFS4_SET_DEBUG 1
22461 _ACEOF
22462
22463 fi
22464
22465
22466     
22467   { echo "$as_me:$LINENO: checking for Kerberos v5" >&5
22468 echo $ECHO_N "checking for Kerberos v5... $ECHO_C" >&6; }
22469   
22470 # Check whether --with-krb5 was given.
22471 if test "${with_krb5+set}" = set; then
22472   withval=$with_krb5;  case "$withval" in
22473     yes|no)
22474        krb5_with=""
22475        ;;
22476     *)
22477        krb5_with="$withval"
22478        ;;
22479     esac 
22480   
22481 fi
22482
22483
22484   for dir in $krb5_with /usr /usr/kerberos /usr/local /usr/local/krb5 \
22485              /usr/krb5 /usr/heimdal /usr/local/heimdal /usr/athena ; do
22486             K5CONFIG=""
22487     if test -f $dir/bin/krb5-config; then
22488       K5CONFIG=$dir/bin/krb5-config
22489     elif test -f "/usr/kerberos/bin/krb5-config"; then
22490       K5CONFIG="/usr/kerberos/bin/krb5-config"
22491     elif test -f "/usr/lib/mit/bin/krb5-config"; then
22492       K5CONFIG="/usr/lib/mit/bin/krb5-config"
22493     fi
22494     if test "$K5CONFIG" != ""; then
22495       KRBCFLAGS=`$K5CONFIG --cflags`
22496       KRBLIBS=`$K5CONFIG --libs gssapi`
22497       K5VERS=`$K5CONFIG --version | head -n 1 | awk '{split($(4),v,"."); if (v@<:@"3"@:>@ == "") v@<:@"3"@:>@ = "0"; print v@<:@"1"@:>@v@<:@"2"@:>@v@<:@"3"@:>@ }'`
22498       
22499 cat >>confdefs.h <<_ACEOF
22500 @%:@define KRB5_VERSION $K5VERS
22501 _ACEOF
22502
22503       if test -f $dir/include/gssapi/gssapi_krb5.h -a \
22504                 \( -f $dir/lib/libgssapi_krb5.a -o \
22505                    -f $dir/lib/libgssapi_krb5.so \) ; then
22506          
22507 cat >>confdefs.h <<\_ACEOF
22508 @%:@define HAVE_KRB5 1
22509 _ACEOF
22510
22511          KRBDIR="$dir"
22512                      if test $K5VERS -le 131; then
22513            
22514 cat >>confdefs.h <<\_ACEOF
22515 @%:@define USE_GSS_KRB5_CCACHE_NAME 1
22516 _ACEOF
22517
22518          fi
22519          gssapi_lib=gssapi_krb5
22520          break
22521                   elif test \( -f $dir/include/heim_err.h -o\
22522                  -f $dir/include/heimdal/heim_err.h \) -a \
22523                 -f $dir/lib/libroken.a; then
22524          
22525 cat >>confdefs.h <<\_ACEOF
22526 @%:@define HAVE_HEIMDAL 1
22527 _ACEOF
22528
22529          KRBDIR="$dir"
22530          gssapi_lib=gssapi
22531         break
22532       fi
22533     fi
22534   done
22535     if test "x$KRBDIR" = "x"; then
22536     if test "x$krb5_with" = "x"; then
22537       { { echo "$as_me:$LINENO: error: Kerberos v5 with GSS support not found: consider --disable-gss or --with-krb5=" >&5
22538 echo "$as_me: error: Kerberos v5 with GSS support not found: consider --disable-gss or --with-krb5=" >&2;}
22539    { (exit 1); exit 1; }; }
22540     else
22541       { { echo "$as_me:$LINENO: error: Kerberos v5 with GSS support not found at $krb5_with" >&5
22542 echo "$as_me: error: Kerberos v5 with GSS support not found at $krb5_with" >&2;}
22543    { (exit 1); exit 1; }; }
22544     fi
22545   fi
22546   { echo "$as_me:$LINENO: result: $KRBDIR" >&5
22547 echo "${ECHO_T}$KRBDIR" >&6; }
22548
22549     echo "The current KRBDIR is $KRBDIR"
22550   if test "$KRBDIR/lib" = "/lib" -o "$KRBDIR/lib" = "/usr/lib" \
22551        -o "$KRBDIR/lib" = "//lib" -o "$KRBDIR/lib" = "/usr//lib" ; then
22552     KRBLDFLAGS="";
22553   elif /sbin/ldconfig -p | grep > /dev/null "=> $KRBDIR/lib/"; then
22554     KRBLDFLAGS="";
22555   else
22556     KRBLDFLAGS="-Wl,-rpath=$KRBDIR/lib"
22557   fi
22558
22559     as_ac_Lib=`echo "ac_cv_lib_$gssapi_lib''_gss_krb5_export_lucid_sec_context" | $as_tr_sh`
22560 { echo "$as_me:$LINENO: checking for gss_krb5_export_lucid_sec_context in -l$gssapi_lib" >&5
22561 echo $ECHO_N "checking for gss_krb5_export_lucid_sec_context in -l$gssapi_lib... $ECHO_C" >&6; }
22562 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
22563   echo $ECHO_N "(cached) $ECHO_C" >&6
22564 else
22565   ac_check_lib_save_LIBS=$LIBS
22566 LIBS="-l$gssapi_lib $KRBLIBS $LIBS"
22567 cat >conftest.$ac_ext <<_ACEOF
22568 /* confdefs.h.  */
22569 _ACEOF
22570 cat confdefs.h >>conftest.$ac_ext
22571 cat >>conftest.$ac_ext <<_ACEOF
22572 /* end confdefs.h.  */
22573
22574 /* Override any GCC internal prototype to avoid an error.
22575    Use char because int might match the return type of a GCC
22576    builtin and then its argument prototype would still apply.  */
22577 #ifdef __cplusplus
22578 extern "C"
22579 #endif
22580 char gss_krb5_export_lucid_sec_context ();
22581 int
22582 main ()
22583 {
22584 return gss_krb5_export_lucid_sec_context ();
22585   ;
22586   return 0;
22587 }
22588 _ACEOF
22589 rm -f conftest.$ac_objext conftest$ac_exeext
22590 if { (ac_try="$ac_link"
22591 case "(($ac_try" in
22592   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22593   *) ac_try_echo=$ac_try;;
22594 esac
22595 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22596   (eval "$ac_link") 2>conftest.er1
22597   ac_status=$?
22598   grep -v '^ *+' conftest.er1 >conftest.err
22599   rm -f conftest.er1
22600   cat conftest.err >&5
22601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22602   (exit $ac_status); } && {
22603          test -z "$ac_c_werror_flag" ||
22604          test ! -s conftest.err
22605        } && test -s conftest$ac_exeext &&
22606        $as_test_x conftest$ac_exeext; then
22607   eval "$as_ac_Lib=yes"
22608 else
22609   echo "$as_me: failed program was:" >&5
22610 sed 's/^/| /' conftest.$ac_ext >&5
22611
22612         eval "$as_ac_Lib=no"
22613 fi
22614
22615 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22616       conftest$ac_exeext conftest.$ac_ext
22617 LIBS=$ac_check_lib_save_LIBS
22618 fi
22619 ac_res=`eval echo '${'$as_ac_Lib'}'`
22620                { echo "$as_me:$LINENO: result: $ac_res" >&5
22621 echo "${ECHO_T}$ac_res" >&6; }
22622 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
22623   
22624 cat >>confdefs.h <<\_ACEOF
22625 @%:@define HAVE_LUCID_CONTEXT_SUPPORT 1
22626 _ACEOF
22627
22628 fi
22629
22630   as_ac_Lib=`echo "ac_cv_lib_$gssapi_lib''_gss_krb5_set_allowable_enctypes" | $as_tr_sh`
22631 { echo "$as_me:$LINENO: checking for gss_krb5_set_allowable_enctypes in -l$gssapi_lib" >&5
22632 echo $ECHO_N "checking for gss_krb5_set_allowable_enctypes in -l$gssapi_lib... $ECHO_C" >&6; }
22633 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
22634   echo $ECHO_N "(cached) $ECHO_C" >&6
22635 else
22636   ac_check_lib_save_LIBS=$LIBS
22637 LIBS="-l$gssapi_lib $KRBLIBS $LIBS"
22638 cat >conftest.$ac_ext <<_ACEOF
22639 /* confdefs.h.  */
22640 _ACEOF
22641 cat confdefs.h >>conftest.$ac_ext
22642 cat >>conftest.$ac_ext <<_ACEOF
22643 /* end confdefs.h.  */
22644
22645 /* Override any GCC internal prototype to avoid an error.
22646    Use char because int might match the return type of a GCC
22647    builtin and then its argument prototype would still apply.  */
22648 #ifdef __cplusplus
22649 extern "C"
22650 #endif
22651 char gss_krb5_set_allowable_enctypes ();
22652 int
22653 main ()
22654 {
22655 return gss_krb5_set_allowable_enctypes ();
22656   ;
22657   return 0;
22658 }
22659 _ACEOF
22660 rm -f conftest.$ac_objext conftest$ac_exeext
22661 if { (ac_try="$ac_link"
22662 case "(($ac_try" in
22663   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22664   *) ac_try_echo=$ac_try;;
22665 esac
22666 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22667   (eval "$ac_link") 2>conftest.er1
22668   ac_status=$?
22669   grep -v '^ *+' conftest.er1 >conftest.err
22670   rm -f conftest.er1
22671   cat conftest.err >&5
22672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22673   (exit $ac_status); } && {
22674          test -z "$ac_c_werror_flag" ||
22675          test ! -s conftest.err
22676        } && test -s conftest$ac_exeext &&
22677        $as_test_x conftest$ac_exeext; then
22678   eval "$as_ac_Lib=yes"
22679 else
22680   echo "$as_me: failed program was:" >&5
22681 sed 's/^/| /' conftest.$ac_ext >&5
22682
22683         eval "$as_ac_Lib=no"
22684 fi
22685
22686 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22687       conftest$ac_exeext conftest.$ac_ext
22688 LIBS=$ac_check_lib_save_LIBS
22689 fi
22690 ac_res=`eval echo '${'$as_ac_Lib'}'`
22691                { echo "$as_me:$LINENO: result: $ac_res" >&5
22692 echo "${ECHO_T}$ac_res" >&6; }
22693 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
22694   
22695 cat >>confdefs.h <<\_ACEOF
22696 @%:@define HAVE_SET_ALLOWABLE_ENCTYPES 1
22697 _ACEOF
22698
22699 fi
22700
22701   as_ac_Lib=`echo "ac_cv_lib_$gssapi_lib''_gss_krb5_ccache_name" | $as_tr_sh`
22702 { echo "$as_me:$LINENO: checking for gss_krb5_ccache_name in -l$gssapi_lib" >&5
22703 echo $ECHO_N "checking for gss_krb5_ccache_name in -l$gssapi_lib... $ECHO_C" >&6; }
22704 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
22705   echo $ECHO_N "(cached) $ECHO_C" >&6
22706 else
22707   ac_check_lib_save_LIBS=$LIBS
22708 LIBS="-l$gssapi_lib $KRBLIBS $LIBS"
22709 cat >conftest.$ac_ext <<_ACEOF
22710 /* confdefs.h.  */
22711 _ACEOF
22712 cat confdefs.h >>conftest.$ac_ext
22713 cat >>conftest.$ac_ext <<_ACEOF
22714 /* end confdefs.h.  */
22715
22716 /* Override any GCC internal prototype to avoid an error.
22717    Use char because int might match the return type of a GCC
22718    builtin and then its argument prototype would still apply.  */
22719 #ifdef __cplusplus
22720 extern "C"
22721 #endif
22722 char gss_krb5_ccache_name ();
22723 int
22724 main ()
22725 {
22726 return gss_krb5_ccache_name ();
22727   ;
22728   return 0;
22729 }
22730 _ACEOF
22731 rm -f conftest.$ac_objext conftest$ac_exeext
22732 if { (ac_try="$ac_link"
22733 case "(($ac_try" in
22734   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22735   *) ac_try_echo=$ac_try;;
22736 esac
22737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22738   (eval "$ac_link") 2>conftest.er1
22739   ac_status=$?
22740   grep -v '^ *+' conftest.er1 >conftest.err
22741   rm -f conftest.er1
22742   cat conftest.err >&5
22743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22744   (exit $ac_status); } && {
22745          test -z "$ac_c_werror_flag" ||
22746          test ! -s conftest.err
22747        } && test -s conftest$ac_exeext &&
22748        $as_test_x conftest$ac_exeext; then
22749   eval "$as_ac_Lib=yes"
22750 else
22751   echo "$as_me: failed program was:" >&5
22752 sed 's/^/| /' conftest.$ac_ext >&5
22753
22754         eval "$as_ac_Lib=no"
22755 fi
22756
22757 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22758       conftest$ac_exeext conftest.$ac_ext
22759 LIBS=$ac_check_lib_save_LIBS
22760 fi
22761 ac_res=`eval echo '${'$as_ac_Lib'}'`
22762                { echo "$as_me:$LINENO: result: $ac_res" >&5
22763 echo "${ECHO_T}$ac_res" >&6; }
22764 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
22765   
22766 cat >>confdefs.h <<\_ACEOF
22767 @%:@define HAVE_GSS_KRB5_CCACHE_NAME 1
22768 _ACEOF
22769
22770 fi
22771
22772
22773     if test "x$krb5_with" != "x" -a "$krb5_with" != "$KRBDIR"; then
22774     { echo "$as_me:$LINENO: WARNING: Using $KRBDIR instead of requested value of $krb5_with for Kerberos!" >&5
22775 echo "$as_me: WARNING: Using $KRBDIR instead of requested value of $krb5_with for Kerberos!" >&2;}
22776   fi
22777
22778   
22779   
22780   
22781   
22782   
22783
22784
22785
22786       { echo "$as_me:$LINENO: checking for authgss_create_default in -lrpcsecgss" >&5
22787 echo $ECHO_N "checking for authgss_create_default in -lrpcsecgss... $ECHO_C" >&6; }
22788 if test "${ac_cv_lib_rpcsecgss_authgss_create_default+set}" = set; then
22789   echo $ECHO_N "(cached) $ECHO_C" >&6
22790 else
22791   ac_check_lib_save_LIBS=$LIBS
22792 LIBS="-lrpcsecgss -lgssapi -ldl $LIBS"
22793 cat >conftest.$ac_ext <<_ACEOF
22794 /* confdefs.h.  */
22795 _ACEOF
22796 cat confdefs.h >>conftest.$ac_ext
22797 cat >>conftest.$ac_ext <<_ACEOF
22798 /* end confdefs.h.  */
22799
22800 /* Override any GCC internal prototype to avoid an error.
22801    Use char because int might match the return type of a GCC
22802    builtin and then its argument prototype would still apply.  */
22803 #ifdef __cplusplus
22804 extern "C"
22805 #endif
22806 char authgss_create_default ();
22807 int
22808 main ()
22809 {
22810 return authgss_create_default ();
22811   ;
22812   return 0;
22813 }
22814 _ACEOF
22815 rm -f conftest.$ac_objext conftest$ac_exeext
22816 if { (ac_try="$ac_link"
22817 case "(($ac_try" in
22818   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22819   *) ac_try_echo=$ac_try;;
22820 esac
22821 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22822   (eval "$ac_link") 2>conftest.er1
22823   ac_status=$?
22824   grep -v '^ *+' conftest.er1 >conftest.err
22825   rm -f conftest.er1
22826   cat conftest.err >&5
22827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22828   (exit $ac_status); } && {
22829          test -z "$ac_c_werror_flag" ||
22830          test ! -s conftest.err
22831        } && test -s conftest$ac_exeext &&
22832        $as_test_x conftest$ac_exeext; then
22833   ac_cv_lib_rpcsecgss_authgss_create_default=yes
22834 else
22835   echo "$as_me: failed program was:" >&5
22836 sed 's/^/| /' conftest.$ac_ext >&5
22837
22838         ac_cv_lib_rpcsecgss_authgss_create_default=no
22839 fi
22840
22841 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22842       conftest$ac_exeext conftest.$ac_ext
22843 LIBS=$ac_check_lib_save_LIBS
22844 fi
22845 { echo "$as_me:$LINENO: result: $ac_cv_lib_rpcsecgss_authgss_create_default" >&5
22846 echo "${ECHO_T}$ac_cv_lib_rpcsecgss_authgss_create_default" >&6; }
22847 if test $ac_cv_lib_rpcsecgss_authgss_create_default = yes; then
22848   librpcsecgss=1
22849 else
22850   { { echo "$as_me:$LINENO: error: librpcsecgss needed for nfsv4 support" >&5
22851 echo "$as_me: error: librpcsecgss needed for nfsv4 support" >&2;}
22852    { (exit 1); exit 1; }; }
22853 fi
22854
22855   { echo "$as_me:$LINENO: checking for authgss_set_debug_level in -lrpcsecgss" >&5
22856 echo $ECHO_N "checking for authgss_set_debug_level in -lrpcsecgss... $ECHO_C" >&6; }
22857 if test "${ac_cv_lib_rpcsecgss_authgss_set_debug_level+set}" = set; then
22858   echo $ECHO_N "(cached) $ECHO_C" >&6
22859 else
22860   ac_check_lib_save_LIBS=$LIBS
22861 LIBS="-lrpcsecgss -lgssapi -ldl $LIBS"
22862 cat >conftest.$ac_ext <<_ACEOF
22863 /* confdefs.h.  */
22864 _ACEOF
22865 cat confdefs.h >>conftest.$ac_ext
22866 cat >>conftest.$ac_ext <<_ACEOF
22867 /* end confdefs.h.  */
22868
22869 /* Override any GCC internal prototype to avoid an error.
22870    Use char because int might match the return type of a GCC
22871    builtin and then its argument prototype would still apply.  */
22872 #ifdef __cplusplus
22873 extern "C"
22874 #endif
22875 char authgss_set_debug_level ();
22876 int
22877 main ()
22878 {
22879 return authgss_set_debug_level ();
22880   ;
22881   return 0;
22882 }
22883 _ACEOF
22884 rm -f conftest.$ac_objext conftest$ac_exeext
22885 if { (ac_try="$ac_link"
22886 case "(($ac_try" in
22887   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22888   *) ac_try_echo=$ac_try;;
22889 esac
22890 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22891   (eval "$ac_link") 2>conftest.er1
22892   ac_status=$?
22893   grep -v '^ *+' conftest.er1 >conftest.err
22894   rm -f conftest.er1
22895   cat conftest.err >&5
22896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22897   (exit $ac_status); } && {
22898          test -z "$ac_c_werror_flag" ||
22899          test ! -s conftest.err
22900        } && test -s conftest$ac_exeext &&
22901        $as_test_x conftest$ac_exeext; then
22902   ac_cv_lib_rpcsecgss_authgss_set_debug_level=yes
22903 else
22904   echo "$as_me: failed program was:" >&5
22905 sed 's/^/| /' conftest.$ac_ext >&5
22906
22907         ac_cv_lib_rpcsecgss_authgss_set_debug_level=no
22908 fi
22909
22910 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22911       conftest$ac_exeext conftest.$ac_ext
22912 LIBS=$ac_check_lib_save_LIBS
22913 fi
22914 { echo "$as_me:$LINENO: result: $ac_cv_lib_rpcsecgss_authgss_set_debug_level" >&5
22915 echo "${ECHO_T}$ac_cv_lib_rpcsecgss_authgss_set_debug_level" >&6; }
22916 if test $ac_cv_lib_rpcsecgss_authgss_set_debug_level = yes; then
22917   
22918 cat >>confdefs.h <<\_ACEOF
22919 @%:@define HAVE_AUTHGSS_SET_DEBUG_LEVEL 1
22920 _ACEOF
22921
22922 fi
22923
22924
22925 fi
22926
22927
22928
22929
22930
22931
22932
22933
22934
22935
22936
22937
22938
22939
22940
22941
22942
22943
22944
22945
22946
22947
22948
22949
22950 for ac_header in arpa/inet.h fcntl.h libintl.h limits.h \
22951                  malloc.h memory.h netdb.h netinet/in.h paths.h \
22952                  stdlib.h string.h sys/file.h sys/ioctl.h sys/mount.h \
22953                  sys/param.h sys/socket.h sys/time.h sys/vfs.h \
22954                  syslog.h unistd.h com_err.h et/com_err.h \
22955                  ifaddrs.h
22956 do
22957 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22958 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22959   { echo "$as_me:$LINENO: checking for $ac_header" >&5
22960 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22961 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22962   echo $ECHO_N "(cached) $ECHO_C" >&6
22963 fi
22964 ac_res=`eval echo '${'$as_ac_Header'}'`
22965                { echo "$as_me:$LINENO: result: $ac_res" >&5
22966 echo "${ECHO_T}$ac_res" >&6; }
22967 else
22968   # Is the header compilable?
22969 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
22970 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22971 cat >conftest.$ac_ext <<_ACEOF
22972 /* confdefs.h.  */
22973 _ACEOF
22974 cat confdefs.h >>conftest.$ac_ext
22975 cat >>conftest.$ac_ext <<_ACEOF
22976 /* end confdefs.h.  */
22977 $ac_includes_default
22978 @%:@include <$ac_header>
22979 _ACEOF
22980 rm -f conftest.$ac_objext
22981 if { (ac_try="$ac_compile"
22982 case "(($ac_try" in
22983   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22984   *) ac_try_echo=$ac_try;;
22985 esac
22986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22987   (eval "$ac_compile") 2>conftest.er1
22988   ac_status=$?
22989   grep -v '^ *+' conftest.er1 >conftest.err
22990   rm -f conftest.er1
22991   cat conftest.err >&5
22992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22993   (exit $ac_status); } && {
22994          test -z "$ac_c_werror_flag" ||
22995          test ! -s conftest.err
22996        } && test -s conftest.$ac_objext; then
22997   ac_header_compiler=yes
22998 else
22999   echo "$as_me: failed program was:" >&5
23000 sed 's/^/| /' conftest.$ac_ext >&5
23001
23002         ac_header_compiler=no
23003 fi
23004
23005 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23006 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23007 echo "${ECHO_T}$ac_header_compiler" >&6; }
23008
23009 # Is the header present?
23010 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
23011 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
23012 cat >conftest.$ac_ext <<_ACEOF
23013 /* confdefs.h.  */
23014 _ACEOF
23015 cat confdefs.h >>conftest.$ac_ext
23016 cat >>conftest.$ac_ext <<_ACEOF
23017 /* end confdefs.h.  */
23018 @%:@include <$ac_header>
23019 _ACEOF
23020 if { (ac_try="$ac_cpp conftest.$ac_ext"
23021 case "(($ac_try" in
23022   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23023   *) ac_try_echo=$ac_try;;
23024 esac
23025 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23026   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23027   ac_status=$?
23028   grep -v '^ *+' conftest.er1 >conftest.err
23029   rm -f conftest.er1
23030   cat conftest.err >&5
23031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23032   (exit $ac_status); } >/dev/null && {
23033          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23034          test ! -s conftest.err
23035        }; then
23036   ac_header_preproc=yes
23037 else
23038   echo "$as_me: failed program was:" >&5
23039 sed 's/^/| /' conftest.$ac_ext >&5
23040
23041   ac_header_preproc=no
23042 fi
23043
23044 rm -f conftest.err conftest.$ac_ext
23045 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23046 echo "${ECHO_T}$ac_header_preproc" >&6; }
23047
23048 # So?  What about this header?
23049 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23050   yes:no: )
23051     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23052 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23053     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23054 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23055     ac_header_preproc=yes
23056     ;;
23057   no:yes:* )
23058     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23059 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23060     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
23061 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
23062     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23063 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23064     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
23065 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
23066     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23067 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23068     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23069 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23070     ( cat <<\_ASBOX
23071 @%:@@%:@ ------------------------------- @%:@@%:@
23072 @%:@@%:@ Report this to nfs@lists.sf.net @%:@@%:@
23073 @%:@@%:@ ------------------------------- @%:@@%:@
23074 _ASBOX
23075      ) | sed "s/^/$as_me: WARNING:     /" >&2
23076     ;;
23077 esac
23078 { echo "$as_me:$LINENO: checking for $ac_header" >&5
23079 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23080 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23081   echo $ECHO_N "(cached) $ECHO_C" >&6
23082 else
23083   eval "$as_ac_Header=\$ac_header_preproc"
23084 fi
23085 ac_res=`eval echo '${'$as_ac_Header'}'`
23086                { echo "$as_me:$LINENO: result: $ac_res" >&5
23087 echo "${ECHO_T}$ac_res" >&6; }
23088
23089 fi
23090 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23091   cat >>confdefs.h <<_ACEOF
23092 @%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23093 _ACEOF
23094  
23095 fi
23096
23097 done
23098
23099
23100 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
23101 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
23102 if test "${ac_cv_c_const+set}" = set; then
23103   echo $ECHO_N "(cached) $ECHO_C" >&6
23104 else
23105   cat >conftest.$ac_ext <<_ACEOF
23106 /* confdefs.h.  */
23107 _ACEOF
23108 cat confdefs.h >>conftest.$ac_ext
23109 cat >>conftest.$ac_ext <<_ACEOF
23110 /* end confdefs.h.  */
23111
23112 int
23113 main ()
23114 {
23115 /* FIXME: Include the comments suggested by Paul. */
23116 #ifndef __cplusplus
23117   /* Ultrix mips cc rejects this.  */
23118   typedef int charset[2];
23119   const charset cs;
23120   /* SunOS 4.1.1 cc rejects this.  */
23121   char const *const *pcpcc;
23122   char **ppc;
23123   /* NEC SVR4.0.2 mips cc rejects this.  */
23124   struct point {int x, y;};
23125   static struct point const zero = {0,0};
23126   /* AIX XL C 1.02.0.0 rejects this.
23127      It does not let you subtract one const X* pointer from another in
23128      an arm of an if-expression whose if-part is not a constant
23129      expression */
23130   const char *g = "string";
23131   pcpcc = &g + (g ? g-g : 0);
23132   /* HPUX 7.0 cc rejects these. */
23133   ++pcpcc;
23134   ppc = (char**) pcpcc;
23135   pcpcc = (char const *const *) ppc;
23136   { /* SCO 3.2v4 cc rejects this.  */
23137     char *t;
23138     char const *s = 0 ? (char *) 0 : (char const *) 0;
23139
23140     *t++ = 0;
23141     if (s) return 0;
23142   }
23143   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
23144     int x[] = {25, 17};
23145     const int *foo = &x[0];
23146     ++foo;
23147   }
23148   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
23149     typedef const int *iptr;
23150     iptr p = 0;
23151     ++p;
23152   }
23153   { /* AIX XL C 1.02.0.0 rejects this saying
23154        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
23155     struct s { int j; const int *ap[3]; };
23156     struct s *b; b->j = 5;
23157   }
23158   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
23159     const int foo = 10;
23160     if (!foo) return 0;
23161   }
23162   return !cs[0] && !zero.x;
23163 #endif
23164
23165   ;
23166   return 0;
23167 }
23168 _ACEOF
23169 rm -f conftest.$ac_objext
23170 if { (ac_try="$ac_compile"
23171 case "(($ac_try" in
23172   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23173   *) ac_try_echo=$ac_try;;
23174 esac
23175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23176   (eval "$ac_compile") 2>conftest.er1
23177   ac_status=$?
23178   grep -v '^ *+' conftest.er1 >conftest.err
23179   rm -f conftest.er1
23180   cat conftest.err >&5
23181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23182   (exit $ac_status); } && {
23183          test -z "$ac_c_werror_flag" ||
23184          test ! -s conftest.err
23185        } && test -s conftest.$ac_objext; then
23186   ac_cv_c_const=yes
23187 else
23188   echo "$as_me: failed program was:" >&5
23189 sed 's/^/| /' conftest.$ac_ext >&5
23190
23191         ac_cv_c_const=no
23192 fi
23193
23194 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23195 fi
23196 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
23197 echo "${ECHO_T}$ac_cv_c_const" >&6; }
23198 if test $ac_cv_c_const = no; then
23199   
23200 cat >>confdefs.h <<\_ACEOF
23201 @%:@define const 
23202 _ACEOF
23203
23204 fi
23205
23206 { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
23207 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
23208 if test "${ac_cv_type_uid_t+set}" = set; then
23209   echo $ECHO_N "(cached) $ECHO_C" >&6
23210 else
23211   cat >conftest.$ac_ext <<_ACEOF
23212 /* confdefs.h.  */
23213 _ACEOF
23214 cat confdefs.h >>conftest.$ac_ext
23215 cat >>conftest.$ac_ext <<_ACEOF
23216 /* end confdefs.h.  */
23217 #include <sys/types.h>
23218
23219 _ACEOF
23220 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23221   $EGREP "uid_t" >/dev/null 2>&1; then
23222   ac_cv_type_uid_t=yes
23223 else
23224   ac_cv_type_uid_t=no
23225 fi
23226 rm -f conftest*
23227
23228 fi
23229 { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
23230 echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
23231 if test $ac_cv_type_uid_t = no; then
23232   
23233 cat >>confdefs.h <<\_ACEOF
23234 @%:@define uid_t int
23235 _ACEOF
23236
23237   
23238 cat >>confdefs.h <<\_ACEOF
23239 @%:@define gid_t int
23240 _ACEOF
23241
23242 fi
23243
23244 { echo "$as_me:$LINENO: checking for inline" >&5
23245 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
23246 if test "${ac_cv_c_inline+set}" = set; then
23247   echo $ECHO_N "(cached) $ECHO_C" >&6
23248 else
23249   ac_cv_c_inline=no
23250 for ac_kw in inline __inline__ __inline; do
23251   cat >conftest.$ac_ext <<_ACEOF
23252 /* confdefs.h.  */
23253 _ACEOF
23254 cat confdefs.h >>conftest.$ac_ext
23255 cat >>conftest.$ac_ext <<_ACEOF
23256 /* end confdefs.h.  */
23257 #ifndef __cplusplus
23258 typedef int foo_t;
23259 static $ac_kw foo_t static_foo () {return 0; }
23260 $ac_kw foo_t foo () {return 0; }
23261 #endif
23262
23263 _ACEOF
23264 rm -f conftest.$ac_objext
23265 if { (ac_try="$ac_compile"
23266 case "(($ac_try" in
23267   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23268   *) ac_try_echo=$ac_try;;
23269 esac
23270 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23271   (eval "$ac_compile") 2>conftest.er1
23272   ac_status=$?
23273   grep -v '^ *+' conftest.er1 >conftest.err
23274   rm -f conftest.er1
23275   cat conftest.err >&5
23276   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23277   (exit $ac_status); } && {
23278          test -z "$ac_c_werror_flag" ||
23279          test ! -s conftest.err
23280        } && test -s conftest.$ac_objext; then
23281   ac_cv_c_inline=$ac_kw
23282 else
23283   echo "$as_me: failed program was:" >&5
23284 sed 's/^/| /' conftest.$ac_ext >&5
23285
23286         
23287 fi
23288
23289 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23290   test "$ac_cv_c_inline" != no && break
23291 done
23292
23293 fi
23294 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
23295 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
23296
23297
23298 case $ac_cv_c_inline in
23299   inline | yes) ;;
23300   *)
23301     case $ac_cv_c_inline in
23302       no) ac_val=;;
23303       *) ac_val=$ac_cv_c_inline;;
23304     esac
23305     cat >>confdefs.h <<_ACEOF
23306 #ifndef __cplusplus
23307 #define inline $ac_val
23308 #endif
23309 _ACEOF
23310     ;;
23311 esac
23312
23313 { echo "$as_me:$LINENO: checking for off_t" >&5
23314 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
23315 if test "${ac_cv_type_off_t+set}" = set; then
23316   echo $ECHO_N "(cached) $ECHO_C" >&6
23317 else
23318   cat >conftest.$ac_ext <<_ACEOF
23319 /* confdefs.h.  */
23320 _ACEOF
23321 cat confdefs.h >>conftest.$ac_ext
23322 cat >>conftest.$ac_ext <<_ACEOF
23323 /* end confdefs.h.  */
23324 $ac_includes_default
23325 typedef off_t ac__type_new_;
23326 int
23327 main ()
23328 {
23329 if ((ac__type_new_ *) 0)
23330   return 0;
23331 if (sizeof (ac__type_new_))
23332   return 0;
23333   ;
23334   return 0;
23335 }
23336 _ACEOF
23337 rm -f conftest.$ac_objext
23338 if { (ac_try="$ac_compile"
23339 case "(($ac_try" in
23340   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23341   *) ac_try_echo=$ac_try;;
23342 esac
23343 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23344   (eval "$ac_compile") 2>conftest.er1
23345   ac_status=$?
23346   grep -v '^ *+' conftest.er1 >conftest.err
23347   rm -f conftest.er1
23348   cat conftest.err >&5
23349   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23350   (exit $ac_status); } && {
23351          test -z "$ac_c_werror_flag" ||
23352          test ! -s conftest.err
23353        } && test -s conftest.$ac_objext; then
23354   ac_cv_type_off_t=yes
23355 else
23356   echo "$as_me: failed program was:" >&5
23357 sed 's/^/| /' conftest.$ac_ext >&5
23358
23359         ac_cv_type_off_t=no
23360 fi
23361
23362 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23363 fi
23364 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
23365 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
23366 if test $ac_cv_type_off_t = yes; then
23367   :
23368 else
23369   
23370 cat >>confdefs.h <<_ACEOF
23371 @%:@define off_t long int
23372 _ACEOF
23373
23374 fi
23375
23376 { echo "$as_me:$LINENO: checking for pid_t" >&5
23377 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
23378 if test "${ac_cv_type_pid_t+set}" = set; then
23379   echo $ECHO_N "(cached) $ECHO_C" >&6
23380 else
23381   cat >conftest.$ac_ext <<_ACEOF
23382 /* confdefs.h.  */
23383 _ACEOF
23384 cat confdefs.h >>conftest.$ac_ext
23385 cat >>conftest.$ac_ext <<_ACEOF
23386 /* end confdefs.h.  */
23387 $ac_includes_default
23388 typedef pid_t ac__type_new_;
23389 int
23390 main ()
23391 {
23392 if ((ac__type_new_ *) 0)
23393   return 0;
23394 if (sizeof (ac__type_new_))
23395   return 0;
23396   ;
23397   return 0;
23398 }
23399 _ACEOF
23400 rm -f conftest.$ac_objext
23401 if { (ac_try="$ac_compile"
23402 case "(($ac_try" in
23403   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23404   *) ac_try_echo=$ac_try;;
23405 esac
23406 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23407   (eval "$ac_compile") 2>conftest.er1
23408   ac_status=$?
23409   grep -v '^ *+' conftest.er1 >conftest.err
23410   rm -f conftest.er1
23411   cat conftest.err >&5
23412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23413   (exit $ac_status); } && {
23414          test -z "$ac_c_werror_flag" ||
23415          test ! -s conftest.err
23416        } && test -s conftest.$ac_objext; then
23417   ac_cv_type_pid_t=yes
23418 else
23419   echo "$as_me: failed program was:" >&5
23420 sed 's/^/| /' conftest.$ac_ext >&5
23421
23422         ac_cv_type_pid_t=no
23423 fi
23424
23425 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23426 fi
23427 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
23428 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
23429 if test $ac_cv_type_pid_t = yes; then
23430   :
23431 else
23432   
23433 cat >>confdefs.h <<_ACEOF
23434 @%:@define pid_t int
23435 _ACEOF
23436
23437 fi
23438
23439 { echo "$as_me:$LINENO: checking for size_t" >&5
23440 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
23441 if test "${ac_cv_type_size_t+set}" = set; then
23442   echo $ECHO_N "(cached) $ECHO_C" >&6
23443 else
23444   cat >conftest.$ac_ext <<_ACEOF
23445 /* confdefs.h.  */
23446 _ACEOF
23447 cat confdefs.h >>conftest.$ac_ext
23448 cat >>conftest.$ac_ext <<_ACEOF
23449 /* end confdefs.h.  */
23450 $ac_includes_default
23451 typedef size_t ac__type_new_;
23452 int
23453 main ()
23454 {
23455 if ((ac__type_new_ *) 0)
23456   return 0;
23457 if (sizeof (ac__type_new_))
23458   return 0;
23459   ;
23460   return 0;
23461 }
23462 _ACEOF
23463 rm -f conftest.$ac_objext
23464 if { (ac_try="$ac_compile"
23465 case "(($ac_try" in
23466   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23467   *) ac_try_echo=$ac_try;;
23468 esac
23469 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23470   (eval "$ac_compile") 2>conftest.er1
23471   ac_status=$?
23472   grep -v '^ *+' conftest.er1 >conftest.err
23473   rm -f conftest.er1
23474   cat conftest.err >&5
23475   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23476   (exit $ac_status); } && {
23477          test -z "$ac_c_werror_flag" ||
23478          test ! -s conftest.err
23479        } && test -s conftest.$ac_objext; then
23480   ac_cv_type_size_t=yes
23481 else
23482   echo "$as_me: failed program was:" >&5
23483 sed 's/^/| /' conftest.$ac_ext >&5
23484
23485         ac_cv_type_size_t=no
23486 fi
23487
23488 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23489 fi
23490 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
23491 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
23492 if test $ac_cv_type_size_t = yes; then
23493   :
23494 else
23495   
23496 cat >>confdefs.h <<_ACEOF
23497 @%:@define size_t unsigned int
23498 _ACEOF
23499
23500 fi
23501
23502 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
23503 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
23504 if test "${ac_cv_header_time+set}" = set; then
23505   echo $ECHO_N "(cached) $ECHO_C" >&6
23506 else
23507   cat >conftest.$ac_ext <<_ACEOF
23508 /* confdefs.h.  */
23509 _ACEOF
23510 cat confdefs.h >>conftest.$ac_ext
23511 cat >>conftest.$ac_ext <<_ACEOF
23512 /* end confdefs.h.  */
23513 #include <sys/types.h>
23514 #include <sys/time.h>
23515 #include <time.h>
23516
23517 int
23518 main ()
23519 {
23520 if ((struct tm *) 0)
23521 return 0;
23522   ;
23523   return 0;
23524 }
23525 _ACEOF
23526 rm -f conftest.$ac_objext
23527 if { (ac_try="$ac_compile"
23528 case "(($ac_try" in
23529   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23530   *) ac_try_echo=$ac_try;;
23531 esac
23532 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23533   (eval "$ac_compile") 2>conftest.er1
23534   ac_status=$?
23535   grep -v '^ *+' conftest.er1 >conftest.err
23536   rm -f conftest.er1
23537   cat conftest.err >&5
23538   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23539   (exit $ac_status); } && {
23540          test -z "$ac_c_werror_flag" ||
23541          test ! -s conftest.err
23542        } && test -s conftest.$ac_objext; then
23543   ac_cv_header_time=yes
23544 else
23545   echo "$as_me: failed program was:" >&5
23546 sed 's/^/| /' conftest.$ac_ext >&5
23547
23548         ac_cv_header_time=no
23549 fi
23550
23551 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23552 fi
23553 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
23554 echo "${ECHO_T}$ac_cv_header_time" >&6; }
23555 if test $ac_cv_header_time = yes; then
23556   
23557 cat >>confdefs.h <<\_ACEOF
23558 @%:@define TIME_WITH_SYS_TIME 1
23559 _ACEOF
23560
23561 fi
23562
23563 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
23564 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
23565 if test "${ac_cv_struct_tm+set}" = set; then
23566   echo $ECHO_N "(cached) $ECHO_C" >&6
23567 else
23568   cat >conftest.$ac_ext <<_ACEOF
23569 /* confdefs.h.  */
23570 _ACEOF
23571 cat confdefs.h >>conftest.$ac_ext
23572 cat >>conftest.$ac_ext <<_ACEOF
23573 /* end confdefs.h.  */
23574 #include <sys/types.h>
23575 #include <time.h>
23576
23577 int
23578 main ()
23579 {
23580 struct tm tm;
23581                                      int *p = &tm.tm_sec;
23582                                      return !p;
23583   ;
23584   return 0;
23585 }
23586 _ACEOF
23587 rm -f conftest.$ac_objext
23588 if { (ac_try="$ac_compile"
23589 case "(($ac_try" in
23590   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23591   *) ac_try_echo=$ac_try;;
23592 esac
23593 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23594   (eval "$ac_compile") 2>conftest.er1
23595   ac_status=$?
23596   grep -v '^ *+' conftest.er1 >conftest.err
23597   rm -f conftest.er1
23598   cat conftest.err >&5
23599   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23600   (exit $ac_status); } && {
23601          test -z "$ac_c_werror_flag" ||
23602          test ! -s conftest.err
23603        } && test -s conftest.$ac_objext; then
23604   ac_cv_struct_tm=time.h
23605 else
23606   echo "$as_me: failed program was:" >&5
23607 sed 's/^/| /' conftest.$ac_ext >&5
23608
23609         ac_cv_struct_tm=sys/time.h
23610 fi
23611
23612 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23613 fi
23614 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
23615 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
23616 if test $ac_cv_struct_tm = sys/time.h; then
23617   
23618 cat >>confdefs.h <<\_ACEOF
23619 @%:@define TM_IN_SYS_TIME 1
23620 _ACEOF
23621
23622 fi
23623
23624
23625 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
23626 # for constant arguments.  Useless!
23627 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
23628 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
23629 if test "${ac_cv_working_alloca_h+set}" = set; then
23630   echo $ECHO_N "(cached) $ECHO_C" >&6
23631 else
23632   cat >conftest.$ac_ext <<_ACEOF
23633 /* confdefs.h.  */
23634 _ACEOF
23635 cat confdefs.h >>conftest.$ac_ext
23636 cat >>conftest.$ac_ext <<_ACEOF
23637 /* end confdefs.h.  */
23638 @%:@include <alloca.h>
23639 int
23640 main ()
23641 {
23642 char *p = (char *) alloca (2 * sizeof (int));
23643                           if (p) return 0;
23644   ;
23645   return 0;
23646 }
23647 _ACEOF
23648 rm -f conftest.$ac_objext conftest$ac_exeext
23649 if { (ac_try="$ac_link"
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_link") 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_exeext &&
23665        $as_test_x conftest$ac_exeext; then
23666   ac_cv_working_alloca_h=yes
23667 else
23668   echo "$as_me: failed program was:" >&5
23669 sed 's/^/| /' conftest.$ac_ext >&5
23670
23671         ac_cv_working_alloca_h=no
23672 fi
23673
23674 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23675       conftest$ac_exeext conftest.$ac_ext
23676 fi
23677 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
23678 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
23679 if test $ac_cv_working_alloca_h = yes; then
23680   
23681 cat >>confdefs.h <<\_ACEOF
23682 @%:@define HAVE_ALLOCA_H 1
23683 _ACEOF
23684
23685 fi
23686
23687 { echo "$as_me:$LINENO: checking for alloca" >&5
23688 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
23689 if test "${ac_cv_func_alloca_works+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 #ifdef __GNUC__
23699 # define alloca __builtin_alloca
23700 #else
23701 # ifdef _MSC_VER
23702 #  include <malloc.h>
23703 #  define alloca _alloca
23704 # else
23705 #  ifdef HAVE_ALLOCA_H
23706 #   include <alloca.h>
23707 #  else
23708 #   ifdef _AIX
23709  #pragma alloca
23710 #   else
23711 #    ifndef alloca /* predefined by HP cc +Olibcalls */
23712 char *alloca ();
23713 #    endif
23714 #   endif
23715 #  endif
23716 # endif
23717 #endif
23718
23719 int
23720 main ()
23721 {
23722 char *p = (char *) alloca (1);
23723                                     if (p) return 0;
23724   ;
23725   return 0;
23726 }
23727 _ACEOF
23728 rm -f conftest.$ac_objext conftest$ac_exeext
23729 if { (ac_try="$ac_link"
23730 case "(($ac_try" in
23731   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23732   *) ac_try_echo=$ac_try;;
23733 esac
23734 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23735   (eval "$ac_link") 2>conftest.er1
23736   ac_status=$?
23737   grep -v '^ *+' conftest.er1 >conftest.err
23738   rm -f conftest.er1
23739   cat conftest.err >&5
23740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23741   (exit $ac_status); } && {
23742          test -z "$ac_c_werror_flag" ||
23743          test ! -s conftest.err
23744        } && test -s conftest$ac_exeext &&
23745        $as_test_x conftest$ac_exeext; then
23746   ac_cv_func_alloca_works=yes
23747 else
23748   echo "$as_me: failed program was:" >&5
23749 sed 's/^/| /' conftest.$ac_ext >&5
23750
23751         ac_cv_func_alloca_works=no
23752 fi
23753
23754 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23755       conftest$ac_exeext conftest.$ac_ext
23756 fi
23757 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
23758 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
23759
23760 if test $ac_cv_func_alloca_works = yes; then
23761   
23762 cat >>confdefs.h <<\_ACEOF
23763 @%:@define HAVE_ALLOCA 1
23764 _ACEOF
23765
23766 else
23767   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
23768 # that cause trouble.  Some versions do not even contain alloca or
23769 # contain a buggy version.  If you still want to use their alloca,
23770 # use ar to extract alloca.o from them instead of compiling alloca.c.
23771
23772 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
23773
23774 cat >>confdefs.h <<\_ACEOF
23775 @%:@define C_ALLOCA 1
23776 _ACEOF
23777
23778
23779 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
23780 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
23781 if test "${ac_cv_os_cray+set}" = set; then
23782   echo $ECHO_N "(cached) $ECHO_C" >&6
23783 else
23784   cat >conftest.$ac_ext <<_ACEOF
23785 /* confdefs.h.  */
23786 _ACEOF
23787 cat confdefs.h >>conftest.$ac_ext
23788 cat >>conftest.$ac_ext <<_ACEOF
23789 /* end confdefs.h.  */
23790 #if defined CRAY && ! defined CRAY2
23791 webecray
23792 #else
23793 wenotbecray
23794 #endif
23795
23796 _ACEOF
23797 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23798   $EGREP "webecray" >/dev/null 2>&1; then
23799   ac_cv_os_cray=yes
23800 else
23801   ac_cv_os_cray=no
23802 fi
23803 rm -f conftest*
23804
23805 fi
23806 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
23807 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
23808 if test $ac_cv_os_cray = yes; then
23809   for ac_func in _getb67 GETB67 getb67; do
23810     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23811 { echo "$as_me:$LINENO: checking for $ac_func" >&5
23812 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
23813 if { as_var=$as_ac_var; eval "test \"\${$as_var+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 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23823    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
23824 #define $ac_func innocuous_$ac_func
23825
23826 /* System header to define __stub macros and hopefully few prototypes,
23827     which can conflict with char $ac_func (); below.
23828     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23829     <limits.h> exists even on freestanding compilers.  */
23830
23831 #ifdef __STDC__
23832 # include <limits.h>
23833 #else
23834 # include <assert.h>
23835 #endif
23836
23837 #undef $ac_func
23838
23839 /* Override any GCC internal prototype to avoid an error.
23840    Use char because int might match the return type of a GCC
23841    builtin and then its argument prototype would still apply.  */
23842 #ifdef __cplusplus
23843 extern "C"
23844 #endif
23845 char $ac_func ();
23846 /* The GNU C library defines this for functions which it implements
23847     to always fail with ENOSYS.  Some functions are actually named
23848     something starting with __ and the normal name is an alias.  */
23849 #if defined __stub_$ac_func || defined __stub___$ac_func
23850 choke me
23851 #endif
23852
23853 int
23854 main ()
23855 {
23856 return $ac_func ();
23857   ;
23858   return 0;
23859 }
23860 _ACEOF
23861 rm -f conftest.$ac_objext conftest$ac_exeext
23862 if { (ac_try="$ac_link"
23863 case "(($ac_try" in
23864   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23865   *) ac_try_echo=$ac_try;;
23866 esac
23867 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23868   (eval "$ac_link") 2>conftest.er1
23869   ac_status=$?
23870   grep -v '^ *+' conftest.er1 >conftest.err
23871   rm -f conftest.er1
23872   cat conftest.err >&5
23873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23874   (exit $ac_status); } && {
23875          test -z "$ac_c_werror_flag" ||
23876          test ! -s conftest.err
23877        } && test -s conftest$ac_exeext &&
23878        $as_test_x conftest$ac_exeext; then
23879   eval "$as_ac_var=yes"
23880 else
23881   echo "$as_me: failed program was:" >&5
23882 sed 's/^/| /' conftest.$ac_ext >&5
23883
23884         eval "$as_ac_var=no"
23885 fi
23886
23887 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23888       conftest$ac_exeext conftest.$ac_ext
23889 fi
23890 ac_res=`eval echo '${'$as_ac_var'}'`
23891                { echo "$as_me:$LINENO: result: $ac_res" >&5
23892 echo "${ECHO_T}$ac_res" >&6; }
23893 if test `eval echo '${'$as_ac_var'}'` = yes; then
23894   
23895 cat >>confdefs.h <<_ACEOF
23896 @%:@define CRAY_STACKSEG_END $ac_func
23897 _ACEOF
23898
23899     break
23900 fi
23901
23902   done
23903 fi
23904
23905 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
23906 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
23907 if test "${ac_cv_c_stack_direction+set}" = set; then
23908   echo $ECHO_N "(cached) $ECHO_C" >&6
23909 else
23910   if test "$cross_compiling" = yes; then
23911   ac_cv_c_stack_direction=0
23912 else
23913   cat >conftest.$ac_ext <<_ACEOF
23914 /* confdefs.h.  */
23915 _ACEOF
23916 cat confdefs.h >>conftest.$ac_ext
23917 cat >>conftest.$ac_ext <<_ACEOF
23918 /* end confdefs.h.  */
23919 $ac_includes_default
23920 int
23921 find_stack_direction ()
23922 {
23923   static char *addr = 0;
23924   auto char dummy;
23925   if (addr == 0)
23926     {
23927       addr = &dummy;
23928       return find_stack_direction ();
23929     }
23930   else
23931     return (&dummy > addr) ? 1 : -1;
23932 }
23933
23934 int
23935 main ()
23936 {
23937   return find_stack_direction () < 0;
23938 }
23939 _ACEOF
23940 rm -f conftest$ac_exeext
23941 if { (ac_try="$ac_link"
23942 case "(($ac_try" in
23943   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23944   *) ac_try_echo=$ac_try;;
23945 esac
23946 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23947   (eval "$ac_link") 2>&5
23948   ac_status=$?
23949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23950   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23951   { (case "(($ac_try" in
23952   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23953   *) ac_try_echo=$ac_try;;
23954 esac
23955 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23956   (eval "$ac_try") 2>&5
23957   ac_status=$?
23958   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23959   (exit $ac_status); }; }; then
23960   ac_cv_c_stack_direction=1
23961 else
23962   echo "$as_me: program exited with status $ac_status" >&5
23963 echo "$as_me: failed program was:" >&5
23964 sed 's/^/| /' conftest.$ac_ext >&5
23965
23966 ( exit $ac_status )
23967 ac_cv_c_stack_direction=-1
23968 fi
23969 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23970 fi
23971
23972
23973 fi
23974 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
23975 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
23976
23977 cat >>confdefs.h <<_ACEOF
23978 @%:@define STACK_DIRECTION $ac_cv_c_stack_direction
23979 _ACEOF
23980
23981
23982 fi
23983
23984
23985
23986
23987
23988
23989 ac_header_dirent=no
23990 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
23991   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
23992 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
23993 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
23994 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23995   echo $ECHO_N "(cached) $ECHO_C" >&6
23996 else
23997   cat >conftest.$ac_ext <<_ACEOF
23998 /* confdefs.h.  */
23999 _ACEOF
24000 cat confdefs.h >>conftest.$ac_ext
24001 cat >>conftest.$ac_ext <<_ACEOF
24002 /* end confdefs.h.  */
24003 #include <sys/types.h>
24004 #include <$ac_hdr>
24005
24006 int
24007 main ()
24008 {
24009 if ((DIR *) 0)
24010 return 0;
24011   ;
24012   return 0;
24013 }
24014 _ACEOF
24015 rm -f conftest.$ac_objext
24016 if { (ac_try="$ac_compile"
24017 case "(($ac_try" in
24018   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24019   *) ac_try_echo=$ac_try;;
24020 esac
24021 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24022   (eval "$ac_compile") 2>conftest.er1
24023   ac_status=$?
24024   grep -v '^ *+' conftest.er1 >conftest.err
24025   rm -f conftest.er1
24026   cat conftest.err >&5
24027   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24028   (exit $ac_status); } && {
24029          test -z "$ac_c_werror_flag" ||
24030          test ! -s conftest.err
24031        } && test -s conftest.$ac_objext; then
24032   eval "$as_ac_Header=yes"
24033 else
24034   echo "$as_me: failed program was:" >&5
24035 sed 's/^/| /' conftest.$ac_ext >&5
24036
24037         eval "$as_ac_Header=no"
24038 fi
24039
24040 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24041 fi
24042 ac_res=`eval echo '${'$as_ac_Header'}'`
24043                { echo "$as_me:$LINENO: result: $ac_res" >&5
24044 echo "${ECHO_T}$ac_res" >&6; }
24045 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24046   cat >>confdefs.h <<_ACEOF
24047 @%:@define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
24048 _ACEOF
24049
24050 ac_header_dirent=$ac_hdr; break
24051 fi
24052
24053 done
24054 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
24055 if test $ac_header_dirent = dirent.h; then
24056   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
24057 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
24058 if test "${ac_cv_search_opendir+set}" = set; then
24059   echo $ECHO_N "(cached) $ECHO_C" >&6
24060 else
24061   ac_func_search_save_LIBS=$LIBS
24062 cat >conftest.$ac_ext <<_ACEOF
24063 /* confdefs.h.  */
24064 _ACEOF
24065 cat confdefs.h >>conftest.$ac_ext
24066 cat >>conftest.$ac_ext <<_ACEOF
24067 /* end confdefs.h.  */
24068
24069 /* Override any GCC internal prototype to avoid an error.
24070    Use char because int might match the return type of a GCC
24071    builtin and then its argument prototype would still apply.  */
24072 #ifdef __cplusplus
24073 extern "C"
24074 #endif
24075 char opendir ();
24076 int
24077 main ()
24078 {
24079 return opendir ();
24080   ;
24081   return 0;
24082 }
24083 _ACEOF
24084 for ac_lib in '' dir; do
24085   if test -z "$ac_lib"; then
24086     ac_res="none required"
24087   else
24088     ac_res=-l$ac_lib
24089     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
24090   fi
24091   rm -f conftest.$ac_objext conftest$ac_exeext
24092 if { (ac_try="$ac_link"
24093 case "(($ac_try" in
24094   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24095   *) ac_try_echo=$ac_try;;
24096 esac
24097 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24098   (eval "$ac_link") 2>conftest.er1
24099   ac_status=$?
24100   grep -v '^ *+' conftest.er1 >conftest.err
24101   rm -f conftest.er1
24102   cat conftest.err >&5
24103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24104   (exit $ac_status); } && {
24105          test -z "$ac_c_werror_flag" ||
24106          test ! -s conftest.err
24107        } && test -s conftest$ac_exeext &&
24108        $as_test_x conftest$ac_exeext; then
24109   ac_cv_search_opendir=$ac_res
24110 else
24111   echo "$as_me: failed program was:" >&5
24112 sed 's/^/| /' conftest.$ac_ext >&5
24113
24114         
24115 fi
24116
24117 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24118       conftest$ac_exeext 
24119   if test "${ac_cv_search_opendir+set}" = set; then
24120   break
24121 fi
24122 done
24123 if test "${ac_cv_search_opendir+set}" = set; then
24124   :
24125 else
24126   ac_cv_search_opendir=no
24127 fi
24128 rm conftest.$ac_ext
24129 LIBS=$ac_func_search_save_LIBS
24130 fi
24131 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
24132 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
24133 ac_res=$ac_cv_search_opendir
24134 if test "$ac_res" != no; then
24135   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
24136   
24137 fi
24138
24139 else
24140   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
24141 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
24142 if test "${ac_cv_search_opendir+set}" = set; then
24143   echo $ECHO_N "(cached) $ECHO_C" >&6
24144 else
24145   ac_func_search_save_LIBS=$LIBS
24146 cat >conftest.$ac_ext <<_ACEOF
24147 /* confdefs.h.  */
24148 _ACEOF
24149 cat confdefs.h >>conftest.$ac_ext
24150 cat >>conftest.$ac_ext <<_ACEOF
24151 /* end confdefs.h.  */
24152
24153 /* Override any GCC internal prototype to avoid an error.
24154    Use char because int might match the return type of a GCC
24155    builtin and then its argument prototype would still apply.  */
24156 #ifdef __cplusplus
24157 extern "C"
24158 #endif
24159 char opendir ();
24160 int
24161 main ()
24162 {
24163 return opendir ();
24164   ;
24165   return 0;
24166 }
24167 _ACEOF
24168 for ac_lib in '' x; do
24169   if test -z "$ac_lib"; then
24170     ac_res="none required"
24171   else
24172     ac_res=-l$ac_lib
24173     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
24174   fi
24175   rm -f conftest.$ac_objext conftest$ac_exeext
24176 if { (ac_try="$ac_link"
24177 case "(($ac_try" in
24178   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24179   *) ac_try_echo=$ac_try;;
24180 esac
24181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24182   (eval "$ac_link") 2>conftest.er1
24183   ac_status=$?
24184   grep -v '^ *+' conftest.er1 >conftest.err
24185   rm -f conftest.er1
24186   cat conftest.err >&5
24187   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24188   (exit $ac_status); } && {
24189          test -z "$ac_c_werror_flag" ||
24190          test ! -s conftest.err
24191        } && test -s conftest$ac_exeext &&
24192        $as_test_x conftest$ac_exeext; then
24193   ac_cv_search_opendir=$ac_res
24194 else
24195   echo "$as_me: failed program was:" >&5
24196 sed 's/^/| /' conftest.$ac_ext >&5
24197
24198         
24199 fi
24200
24201 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24202       conftest$ac_exeext 
24203   if test "${ac_cv_search_opendir+set}" = set; then
24204   break
24205 fi
24206 done
24207 if test "${ac_cv_search_opendir+set}" = set; then
24208   :
24209 else
24210   ac_cv_search_opendir=no
24211 fi
24212 rm conftest.$ac_ext
24213 LIBS=$ac_func_search_save_LIBS
24214 fi
24215 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
24216 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
24217 ac_res=$ac_cv_search_opendir
24218 if test "$ac_res" != no; then
24219   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
24220   
24221 fi
24222
24223 fi
24224
24225 { echo "$as_me:$LINENO: checking whether closedir returns void" >&5
24226 echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6; }
24227 if test "${ac_cv_func_closedir_void+set}" = set; then
24228   echo $ECHO_N "(cached) $ECHO_C" >&6
24229 else
24230   if test "$cross_compiling" = yes; then
24231   ac_cv_func_closedir_void=yes
24232 else
24233   cat >conftest.$ac_ext <<_ACEOF
24234 /* confdefs.h.  */
24235 _ACEOF
24236 cat confdefs.h >>conftest.$ac_ext
24237 cat >>conftest.$ac_ext <<_ACEOF
24238 /* end confdefs.h.  */
24239 $ac_includes_default
24240 #include <$ac_header_dirent>
24241 #ifndef __cplusplus
24242 int closedir ();
24243 #endif
24244
24245 int
24246 main ()
24247 {
24248 return closedir (opendir (".")) != 0;
24249   ;
24250   return 0;
24251 }
24252 _ACEOF
24253 rm -f conftest$ac_exeext
24254 if { (ac_try="$ac_link"
24255 case "(($ac_try" in
24256   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24257   *) ac_try_echo=$ac_try;;
24258 esac
24259 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24260   (eval "$ac_link") 2>&5
24261   ac_status=$?
24262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24263   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24264   { (case "(($ac_try" in
24265   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24266   *) ac_try_echo=$ac_try;;
24267 esac
24268 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24269   (eval "$ac_try") 2>&5
24270   ac_status=$?
24271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24272   (exit $ac_status); }; }; then
24273   ac_cv_func_closedir_void=no
24274 else
24275   echo "$as_me: program exited with status $ac_status" >&5
24276 echo "$as_me: failed program was:" >&5
24277 sed 's/^/| /' conftest.$ac_ext >&5
24278
24279 ( exit $ac_status )
24280 ac_cv_func_closedir_void=yes
24281 fi
24282 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24283 fi
24284
24285
24286 fi
24287 { echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
24288 echo "${ECHO_T}$ac_cv_func_closedir_void" >&6; }
24289 if test $ac_cv_func_closedir_void = yes; then
24290   
24291 cat >>confdefs.h <<\_ACEOF
24292 @%:@define CLOSEDIR_VOID 1
24293 _ACEOF
24294
24295 fi
24296
24297 { echo "$as_me:$LINENO: checking for error_at_line" >&5
24298 echo $ECHO_N "checking for error_at_line... $ECHO_C" >&6; }
24299 if test "${ac_cv_lib_error_at_line+set}" = set; then
24300   echo $ECHO_N "(cached) $ECHO_C" >&6
24301 else
24302   cat >conftest.$ac_ext <<_ACEOF
24303 /* confdefs.h.  */
24304 _ACEOF
24305 cat confdefs.h >>conftest.$ac_ext
24306 cat >>conftest.$ac_ext <<_ACEOF
24307 /* end confdefs.h.  */
24308 #include <error.h>
24309 int
24310 main ()
24311 {
24312 error_at_line (0, 0, "", 0, "an error occurred");
24313   ;
24314   return 0;
24315 }
24316 _ACEOF
24317 rm -f conftest.$ac_objext conftest$ac_exeext
24318 if { (ac_try="$ac_link"
24319 case "(($ac_try" in
24320   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24321   *) ac_try_echo=$ac_try;;
24322 esac
24323 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24324   (eval "$ac_link") 2>conftest.er1
24325   ac_status=$?
24326   grep -v '^ *+' conftest.er1 >conftest.err
24327   rm -f conftest.er1
24328   cat conftest.err >&5
24329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24330   (exit $ac_status); } && {
24331          test -z "$ac_c_werror_flag" ||
24332          test ! -s conftest.err
24333        } && test -s conftest$ac_exeext &&
24334        $as_test_x conftest$ac_exeext; then
24335   ac_cv_lib_error_at_line=yes
24336 else
24337   echo "$as_me: failed program was:" >&5
24338 sed 's/^/| /' conftest.$ac_ext >&5
24339
24340         ac_cv_lib_error_at_line=no
24341 fi
24342
24343 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24344       conftest$ac_exeext conftest.$ac_ext
24345 fi
24346 { echo "$as_me:$LINENO: result: $ac_cv_lib_error_at_line" >&5
24347 echo "${ECHO_T}$ac_cv_lib_error_at_line" >&6; }
24348 if test $ac_cv_lib_error_at_line = no; then
24349   case " $LIB@&t@OBJS " in
24350   *" error.$ac_objext "* ) ;;
24351   *) LIB@&t@OBJS="$LIB@&t@OBJS error.$ac_objext"
24352  ;;
24353 esac
24354
24355 fi
24356
24357
24358 for ac_header in vfork.h
24359 do
24360 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24361 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24362   { echo "$as_me:$LINENO: checking for $ac_header" >&5
24363 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24364 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24365   echo $ECHO_N "(cached) $ECHO_C" >&6
24366 fi
24367 ac_res=`eval echo '${'$as_ac_Header'}'`
24368                { echo "$as_me:$LINENO: result: $ac_res" >&5
24369 echo "${ECHO_T}$ac_res" >&6; }
24370 else
24371   # Is the header compilable?
24372 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
24373 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
24374 cat >conftest.$ac_ext <<_ACEOF
24375 /* confdefs.h.  */
24376 _ACEOF
24377 cat confdefs.h >>conftest.$ac_ext
24378 cat >>conftest.$ac_ext <<_ACEOF
24379 /* end confdefs.h.  */
24380 $ac_includes_default
24381 @%:@include <$ac_header>
24382 _ACEOF
24383 rm -f conftest.$ac_objext
24384 if { (ac_try="$ac_compile"
24385 case "(($ac_try" in
24386   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24387   *) ac_try_echo=$ac_try;;
24388 esac
24389 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24390   (eval "$ac_compile") 2>conftest.er1
24391   ac_status=$?
24392   grep -v '^ *+' conftest.er1 >conftest.err
24393   rm -f conftest.er1
24394   cat conftest.err >&5
24395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24396   (exit $ac_status); } && {
24397          test -z "$ac_c_werror_flag" ||
24398          test ! -s conftest.err
24399        } && test -s conftest.$ac_objext; then
24400   ac_header_compiler=yes
24401 else
24402   echo "$as_me: failed program was:" >&5
24403 sed 's/^/| /' conftest.$ac_ext >&5
24404
24405         ac_header_compiler=no
24406 fi
24407
24408 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24409 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24410 echo "${ECHO_T}$ac_header_compiler" >&6; }
24411
24412 # Is the header present?
24413 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
24414 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
24415 cat >conftest.$ac_ext <<_ACEOF
24416 /* confdefs.h.  */
24417 _ACEOF
24418 cat confdefs.h >>conftest.$ac_ext
24419 cat >>conftest.$ac_ext <<_ACEOF
24420 /* end confdefs.h.  */
24421 @%:@include <$ac_header>
24422 _ACEOF
24423 if { (ac_try="$ac_cpp conftest.$ac_ext"
24424 case "(($ac_try" in
24425   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24426   *) ac_try_echo=$ac_try;;
24427 esac
24428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24429   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24430   ac_status=$?
24431   grep -v '^ *+' conftest.er1 >conftest.err
24432   rm -f conftest.er1
24433   cat conftest.err >&5
24434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24435   (exit $ac_status); } >/dev/null && {
24436          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24437          test ! -s conftest.err
24438        }; then
24439   ac_header_preproc=yes
24440 else
24441   echo "$as_me: failed program was:" >&5
24442 sed 's/^/| /' conftest.$ac_ext >&5
24443
24444   ac_header_preproc=no
24445 fi
24446
24447 rm -f conftest.err conftest.$ac_ext
24448 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24449 echo "${ECHO_T}$ac_header_preproc" >&6; }
24450
24451 # So?  What about this header?
24452 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24453   yes:no: )
24454     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24455 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24456     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24457 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24458     ac_header_preproc=yes
24459     ;;
24460   no:yes:* )
24461     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24462 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24463     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
24464 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
24465     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24466 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24467     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
24468 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
24469     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24470 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24471     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24472 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24473     ( cat <<\_ASBOX
24474 @%:@@%:@ ------------------------------- @%:@@%:@
24475 @%:@@%:@ Report this to nfs@lists.sf.net @%:@@%:@
24476 @%:@@%:@ ------------------------------- @%:@@%:@
24477 _ASBOX
24478      ) | sed "s/^/$as_me: WARNING:     /" >&2
24479     ;;
24480 esac
24481 { echo "$as_me:$LINENO: checking for $ac_header" >&5
24482 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24483 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24484   echo $ECHO_N "(cached) $ECHO_C" >&6
24485 else
24486   eval "$as_ac_Header=\$ac_header_preproc"
24487 fi
24488 ac_res=`eval echo '${'$as_ac_Header'}'`
24489                { echo "$as_me:$LINENO: result: $ac_res" >&5
24490 echo "${ECHO_T}$ac_res" >&6; }
24491
24492 fi
24493 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24494   cat >>confdefs.h <<_ACEOF
24495 @%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24496 _ACEOF
24497  
24498 fi
24499
24500 done
24501
24502
24503
24504 for ac_func in fork vfork
24505 do
24506 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24507 { echo "$as_me:$LINENO: checking for $ac_func" >&5
24508 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
24509 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
24510   echo $ECHO_N "(cached) $ECHO_C" >&6
24511 else
24512   cat >conftest.$ac_ext <<_ACEOF
24513 /* confdefs.h.  */
24514 _ACEOF
24515 cat confdefs.h >>conftest.$ac_ext
24516 cat >>conftest.$ac_ext <<_ACEOF
24517 /* end confdefs.h.  */
24518 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24519    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24520 #define $ac_func innocuous_$ac_func
24521
24522 /* System header to define __stub macros and hopefully few prototypes,
24523     which can conflict with char $ac_func (); below.
24524     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24525     <limits.h> exists even on freestanding compilers.  */
24526
24527 #ifdef __STDC__
24528 # include <limits.h>
24529 #else
24530 # include <assert.h>
24531 #endif
24532
24533 #undef $ac_func
24534
24535 /* Override any GCC internal prototype to avoid an error.
24536    Use char because int might match the return type of a GCC
24537    builtin and then its argument prototype would still apply.  */
24538 #ifdef __cplusplus
24539 extern "C"
24540 #endif
24541 char $ac_func ();
24542 /* The GNU C library defines this for functions which it implements
24543     to always fail with ENOSYS.  Some functions are actually named
24544     something starting with __ and the normal name is an alias.  */
24545 #if defined __stub_$ac_func || defined __stub___$ac_func
24546 choke me
24547 #endif
24548
24549 int
24550 main ()
24551 {
24552 return $ac_func ();
24553   ;
24554   return 0;
24555 }
24556 _ACEOF
24557 rm -f conftest.$ac_objext conftest$ac_exeext
24558 if { (ac_try="$ac_link"
24559 case "(($ac_try" in
24560   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24561   *) ac_try_echo=$ac_try;;
24562 esac
24563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24564   (eval "$ac_link") 2>conftest.er1
24565   ac_status=$?
24566   grep -v '^ *+' conftest.er1 >conftest.err
24567   rm -f conftest.er1
24568   cat conftest.err >&5
24569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24570   (exit $ac_status); } && {
24571          test -z "$ac_c_werror_flag" ||
24572          test ! -s conftest.err
24573        } && test -s conftest$ac_exeext &&
24574        $as_test_x conftest$ac_exeext; then
24575   eval "$as_ac_var=yes"
24576 else
24577   echo "$as_me: failed program was:" >&5
24578 sed 's/^/| /' conftest.$ac_ext >&5
24579
24580         eval "$as_ac_var=no"
24581 fi
24582
24583 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24584       conftest$ac_exeext conftest.$ac_ext
24585 fi
24586 ac_res=`eval echo '${'$as_ac_var'}'`
24587                { echo "$as_me:$LINENO: result: $ac_res" >&5
24588 echo "${ECHO_T}$ac_res" >&6; }
24589 if test `eval echo '${'$as_ac_var'}'` = yes; then
24590   cat >>confdefs.h <<_ACEOF
24591 @%:@define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24592 _ACEOF
24593  
24594 fi
24595 done
24596
24597 if test "x$ac_cv_func_fork" = xyes; then
24598   { echo "$as_me:$LINENO: checking for working fork" >&5
24599 echo $ECHO_N "checking for working fork... $ECHO_C" >&6; }
24600 if test "${ac_cv_func_fork_works+set}" = set; then
24601   echo $ECHO_N "(cached) $ECHO_C" >&6
24602 else
24603   if test "$cross_compiling" = yes; then
24604   ac_cv_func_fork_works=cross
24605 else
24606   cat >conftest.$ac_ext <<_ACEOF
24607 /* confdefs.h.  */
24608 _ACEOF
24609 cat confdefs.h >>conftest.$ac_ext
24610 cat >>conftest.$ac_ext <<_ACEOF
24611 /* end confdefs.h.  */
24612 $ac_includes_default
24613 int
24614 main ()
24615 {
24616
24617           /* By Ruediger Kuhlmann. */
24618           return fork () < 0;
24619         
24620   ;
24621   return 0;
24622 }
24623 _ACEOF
24624 rm -f conftest$ac_exeext
24625 if { (ac_try="$ac_link"
24626 case "(($ac_try" in
24627   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24628   *) ac_try_echo=$ac_try;;
24629 esac
24630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24631   (eval "$ac_link") 2>&5
24632   ac_status=$?
24633   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24634   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24635   { (case "(($ac_try" in
24636   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24637   *) ac_try_echo=$ac_try;;
24638 esac
24639 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24640   (eval "$ac_try") 2>&5
24641   ac_status=$?
24642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24643   (exit $ac_status); }; }; then
24644   ac_cv_func_fork_works=yes
24645 else
24646   echo "$as_me: program exited with status $ac_status" >&5
24647 echo "$as_me: failed program was:" >&5
24648 sed 's/^/| /' conftest.$ac_ext >&5
24649
24650 ( exit $ac_status )
24651 ac_cv_func_fork_works=no
24652 fi
24653 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24654 fi
24655
24656
24657 fi
24658 { echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
24659 echo "${ECHO_T}$ac_cv_func_fork_works" >&6; }
24660
24661 else
24662   ac_cv_func_fork_works=$ac_cv_func_fork
24663 fi
24664 if test "x$ac_cv_func_fork_works" = xcross; then
24665   case $host in
24666     *-*-amigaos* | *-*-msdosdjgpp*)
24667       # Override, as these systems have only a dummy fork() stub
24668       ac_cv_func_fork_works=no
24669       ;;
24670     *)
24671       ac_cv_func_fork_works=yes
24672       ;;
24673   esac
24674   { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
24675 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
24676 fi
24677 ac_cv_func_vfork_works=$ac_cv_func_vfork
24678 if test "x$ac_cv_func_vfork" = xyes; then
24679   { echo "$as_me:$LINENO: checking for working vfork" >&5
24680 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6; }
24681 if test "${ac_cv_func_vfork_works+set}" = set; then
24682   echo $ECHO_N "(cached) $ECHO_C" >&6
24683 else
24684   if test "$cross_compiling" = yes; then
24685   ac_cv_func_vfork_works=cross
24686 else
24687   cat >conftest.$ac_ext <<_ACEOF
24688 /* confdefs.h.  */
24689 _ACEOF
24690 cat confdefs.h >>conftest.$ac_ext
24691 cat >>conftest.$ac_ext <<_ACEOF
24692 /* end confdefs.h.  */
24693 /* Thanks to Paul Eggert for this test.  */
24694 $ac_includes_default
24695 #include <sys/wait.h>
24696 #ifdef HAVE_VFORK_H
24697 # include <vfork.h>
24698 #endif
24699 /* On some sparc systems, changes by the child to local and incoming
24700    argument registers are propagated back to the parent.  The compiler
24701    is told about this with #include <vfork.h>, but some compilers
24702    (e.g. gcc -O) don't grok <vfork.h>.  Test for this by using a
24703    static variable whose address is put into a register that is
24704    clobbered by the vfork.  */
24705 static void
24706 #ifdef __cplusplus
24707 sparc_address_test (int arg)
24708 # else
24709 sparc_address_test (arg) int arg;
24710 #endif
24711 {
24712   static pid_t child;
24713   if (!child) {
24714     child = vfork ();
24715     if (child < 0) {
24716       perror ("vfork");
24717       _exit(2);
24718     }
24719     if (!child) {
24720       arg = getpid();
24721       write(-1, "", 0);
24722       _exit (arg);
24723     }
24724   }
24725 }
24726
24727 int
24728 main ()
24729 {
24730   pid_t parent = getpid ();
24731   pid_t child;
24732
24733   sparc_address_test (0);
24734
24735   child = vfork ();
24736
24737   if (child == 0) {
24738     /* Here is another test for sparc vfork register problems.  This
24739        test uses lots of local variables, at least as many local
24740        variables as main has allocated so far including compiler
24741        temporaries.  4 locals are enough for gcc 1.40.3 on a Solaris
24742        4.1.3 sparc, but we use 8 to be safe.  A buggy compiler should
24743        reuse the register of parent for one of the local variables,
24744        since it will think that parent can't possibly be used any more
24745        in this routine.  Assigning to the local variable will thus
24746        munge parent in the parent process.  */
24747     pid_t
24748       p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
24749       p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
24750     /* Convince the compiler that p..p7 are live; otherwise, it might
24751        use the same hardware register for all 8 local variables.  */
24752     if (p != p1 || p != p2 || p != p3 || p != p4
24753         || p != p5 || p != p6 || p != p7)
24754       _exit(1);
24755
24756     /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
24757        from child file descriptors.  If the child closes a descriptor
24758        before it execs or exits, this munges the parent's descriptor
24759        as well.  Test for this by closing stdout in the child.  */
24760     _exit(close(fileno(stdout)) != 0);
24761   } else {
24762     int status;
24763     struct stat st;
24764
24765     while (wait(&status) != child)
24766       ;
24767     return (
24768          /* Was there some problem with vforking?  */
24769          child < 0
24770
24771          /* Did the child fail?  (This shouldn't happen.)  */
24772          || status
24773
24774          /* Did the vfork/compiler bug occur?  */
24775          || parent != getpid()
24776
24777          /* Did the file descriptor bug occur?  */
24778          || fstat(fileno(stdout), &st) != 0
24779          );
24780   }
24781 }
24782 _ACEOF
24783 rm -f conftest$ac_exeext
24784 if { (ac_try="$ac_link"
24785 case "(($ac_try" in
24786   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24787   *) ac_try_echo=$ac_try;;
24788 esac
24789 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24790   (eval "$ac_link") 2>&5
24791   ac_status=$?
24792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24793   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24794   { (case "(($ac_try" in
24795   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24796   *) ac_try_echo=$ac_try;;
24797 esac
24798 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24799   (eval "$ac_try") 2>&5
24800   ac_status=$?
24801   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24802   (exit $ac_status); }; }; then
24803   ac_cv_func_vfork_works=yes
24804 else
24805   echo "$as_me: program exited with status $ac_status" >&5
24806 echo "$as_me: failed program was:" >&5
24807 sed 's/^/| /' conftest.$ac_ext >&5
24808
24809 ( exit $ac_status )
24810 ac_cv_func_vfork_works=no
24811 fi
24812 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24813 fi
24814
24815
24816 fi
24817 { echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
24818 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6; }
24819
24820 fi;
24821 if test "x$ac_cv_func_fork_works" = xcross; then
24822   ac_cv_func_vfork_works=$ac_cv_func_vfork
24823   { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
24824 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
24825 fi
24826
24827 if test "x$ac_cv_func_vfork_works" = xyes; then
24828   
24829 cat >>confdefs.h <<\_ACEOF
24830 @%:@define HAVE_WORKING_VFORK 1
24831 _ACEOF
24832
24833 else
24834   
24835 cat >>confdefs.h <<\_ACEOF
24836 @%:@define vfork fork
24837 _ACEOF
24838
24839 fi
24840 if test "x$ac_cv_func_fork_works" = xyes; then
24841   
24842 cat >>confdefs.h <<\_ACEOF
24843 @%:@define HAVE_WORKING_FORK 1
24844 _ACEOF
24845
24846 fi
24847
24848 { echo "$as_me:$LINENO: checking type of array argument to getgroups" >&5
24849 echo $ECHO_N "checking type of array argument to getgroups... $ECHO_C" >&6; }
24850 if test "${ac_cv_type_getgroups+set}" = set; then
24851   echo $ECHO_N "(cached) $ECHO_C" >&6
24852 else
24853   if test "$cross_compiling" = yes; then
24854   ac_cv_type_getgroups=cross
24855 else
24856   cat >conftest.$ac_ext <<_ACEOF
24857 /* confdefs.h.  */
24858 _ACEOF
24859 cat confdefs.h >>conftest.$ac_ext
24860 cat >>conftest.$ac_ext <<_ACEOF
24861 /* end confdefs.h.  */
24862 /* Thanks to Mike Rendell for this test.  */
24863 $ac_includes_default
24864 #define NGID 256
24865 #undef MAX
24866 #define MAX(x, y) ((x) > (y) ? (x) : (y))
24867
24868 int
24869 main ()
24870 {
24871   gid_t gidset[NGID];
24872   int i, n;
24873   union { gid_t gval; long int lval; }  val;
24874
24875   val.lval = -1;
24876   for (i = 0; i < NGID; i++)
24877     gidset[i] = val.gval;
24878   n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
24879                  gidset);
24880   /* Exit non-zero if getgroups seems to require an array of ints.  This
24881      happens when gid_t is short int but getgroups modifies an array
24882      of ints.  */
24883   return n > 0 && gidset[n] != val.gval;
24884 }
24885 _ACEOF
24886 rm -f conftest$ac_exeext
24887 if { (ac_try="$ac_link"
24888 case "(($ac_try" in
24889   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24890   *) ac_try_echo=$ac_try;;
24891 esac
24892 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24893   (eval "$ac_link") 2>&5
24894   ac_status=$?
24895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24896   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24897   { (case "(($ac_try" in
24898   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24899   *) ac_try_echo=$ac_try;;
24900 esac
24901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24902   (eval "$ac_try") 2>&5
24903   ac_status=$?
24904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24905   (exit $ac_status); }; }; then
24906   ac_cv_type_getgroups=gid_t
24907 else
24908   echo "$as_me: program exited with status $ac_status" >&5
24909 echo "$as_me: failed program was:" >&5
24910 sed 's/^/| /' conftest.$ac_ext >&5
24911
24912 ( exit $ac_status )
24913 ac_cv_type_getgroups=int
24914 fi
24915 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24916 fi
24917
24918
24919 if test $ac_cv_type_getgroups = cross; then
24920         cat >conftest.$ac_ext <<_ACEOF
24921 /* confdefs.h.  */
24922 _ACEOF
24923 cat confdefs.h >>conftest.$ac_ext
24924 cat >>conftest.$ac_ext <<_ACEOF
24925 /* end confdefs.h.  */
24926 #include <unistd.h>
24927
24928 _ACEOF
24929 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24930   $EGREP "getgroups.*int.*gid_t" >/dev/null 2>&1; then
24931   ac_cv_type_getgroups=gid_t
24932 else
24933   ac_cv_type_getgroups=int
24934 fi
24935 rm -f conftest*
24936
24937 fi
24938 fi
24939 { echo "$as_me:$LINENO: result: $ac_cv_type_getgroups" >&5
24940 echo "${ECHO_T}$ac_cv_type_getgroups" >&6; }
24941
24942 cat >>confdefs.h <<_ACEOF
24943 @%:@define GETGROUPS_T $ac_cv_type_getgroups
24944 _ACEOF
24945
24946
24947 { echo "$as_me:$LINENO: checking for getgroups" >&5
24948 echo $ECHO_N "checking for getgroups... $ECHO_C" >&6; }
24949 if test "${ac_cv_func_getgroups+set}" = set; then
24950   echo $ECHO_N "(cached) $ECHO_C" >&6
24951 else
24952   cat >conftest.$ac_ext <<_ACEOF
24953 /* confdefs.h.  */
24954 _ACEOF
24955 cat confdefs.h >>conftest.$ac_ext
24956 cat >>conftest.$ac_ext <<_ACEOF
24957 /* end confdefs.h.  */
24958 /* Define getgroups to an innocuous variant, in case <limits.h> declares getgroups.
24959    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24960 #define getgroups innocuous_getgroups
24961
24962 /* System header to define __stub macros and hopefully few prototypes,
24963     which can conflict with char getgroups (); below.
24964     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24965     <limits.h> exists even on freestanding compilers.  */
24966
24967 #ifdef __STDC__
24968 # include <limits.h>
24969 #else
24970 # include <assert.h>
24971 #endif
24972
24973 #undef getgroups
24974
24975 /* Override any GCC internal prototype to avoid an error.
24976    Use char because int might match the return type of a GCC
24977    builtin and then its argument prototype would still apply.  */
24978 #ifdef __cplusplus
24979 extern "C"
24980 #endif
24981 char getgroups ();
24982 /* The GNU C library defines this for functions which it implements
24983     to always fail with ENOSYS.  Some functions are actually named
24984     something starting with __ and the normal name is an alias.  */
24985 #if defined __stub_getgroups || defined __stub___getgroups
24986 choke me
24987 #endif
24988
24989 int
24990 main ()
24991 {
24992 return getgroups ();
24993   ;
24994   return 0;
24995 }
24996 _ACEOF
24997 rm -f conftest.$ac_objext conftest$ac_exeext
24998 if { (ac_try="$ac_link"
24999 case "(($ac_try" in
25000   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25001   *) ac_try_echo=$ac_try;;
25002 esac
25003 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25004   (eval "$ac_link") 2>conftest.er1
25005   ac_status=$?
25006   grep -v '^ *+' conftest.er1 >conftest.err
25007   rm -f conftest.er1
25008   cat conftest.err >&5
25009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25010   (exit $ac_status); } && {
25011          test -z "$ac_c_werror_flag" ||
25012          test ! -s conftest.err
25013        } && test -s conftest$ac_exeext &&
25014        $as_test_x conftest$ac_exeext; then
25015   ac_cv_func_getgroups=yes
25016 else
25017   echo "$as_me: failed program was:" >&5
25018 sed 's/^/| /' conftest.$ac_ext >&5
25019
25020         ac_cv_func_getgroups=no
25021 fi
25022
25023 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25024       conftest$ac_exeext conftest.$ac_ext
25025 fi
25026 { echo "$as_me:$LINENO: result: $ac_cv_func_getgroups" >&5
25027 echo "${ECHO_T}$ac_cv_func_getgroups" >&6; }
25028
25029
25030 # If we don't yet have getgroups, see if it's in -lbsd.
25031 # This is reported to be necessary on an ITOS 3000WS running SEIUX 3.1.
25032 ac_save_LIBS=$LIBS
25033 if test $ac_cv_func_getgroups = no; then
25034   { echo "$as_me:$LINENO: checking for getgroups in -lbsd" >&5
25035 echo $ECHO_N "checking for getgroups in -lbsd... $ECHO_C" >&6; }
25036 if test "${ac_cv_lib_bsd_getgroups+set}" = set; then
25037   echo $ECHO_N "(cached) $ECHO_C" >&6
25038 else
25039   ac_check_lib_save_LIBS=$LIBS
25040 LIBS="-lbsd  $LIBS"
25041 cat >conftest.$ac_ext <<_ACEOF
25042 /* confdefs.h.  */
25043 _ACEOF
25044 cat confdefs.h >>conftest.$ac_ext
25045 cat >>conftest.$ac_ext <<_ACEOF
25046 /* end confdefs.h.  */
25047
25048 /* Override any GCC internal prototype to avoid an error.
25049    Use char because int might match the return type of a GCC
25050    builtin and then its argument prototype would still apply.  */
25051 #ifdef __cplusplus
25052 extern "C"
25053 #endif
25054 char getgroups ();
25055 int
25056 main ()
25057 {
25058 return getgroups ();
25059   ;
25060   return 0;
25061 }
25062 _ACEOF
25063 rm -f conftest.$ac_objext conftest$ac_exeext
25064 if { (ac_try="$ac_link"
25065 case "(($ac_try" in
25066   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25067   *) ac_try_echo=$ac_try;;
25068 esac
25069 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25070   (eval "$ac_link") 2>conftest.er1
25071   ac_status=$?
25072   grep -v '^ *+' conftest.er1 >conftest.err
25073   rm -f conftest.er1
25074   cat conftest.err >&5
25075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25076   (exit $ac_status); } && {
25077          test -z "$ac_c_werror_flag" ||
25078          test ! -s conftest.err
25079        } && test -s conftest$ac_exeext &&
25080        $as_test_x conftest$ac_exeext; then
25081   ac_cv_lib_bsd_getgroups=yes
25082 else
25083   echo "$as_me: failed program was:" >&5
25084 sed 's/^/| /' conftest.$ac_ext >&5
25085
25086         ac_cv_lib_bsd_getgroups=no
25087 fi
25088
25089 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25090       conftest$ac_exeext conftest.$ac_ext
25091 LIBS=$ac_check_lib_save_LIBS
25092 fi
25093 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_getgroups" >&5
25094 echo "${ECHO_T}$ac_cv_lib_bsd_getgroups" >&6; }
25095 if test $ac_cv_lib_bsd_getgroups = yes; then
25096   GETGROUPS_LIB=-lbsd
25097 fi
25098
25099 fi
25100
25101 # Run the program to test the functionality of the system-supplied
25102 # getgroups function only if there is such a function.
25103 if test $ac_cv_func_getgroups = yes; then
25104   { echo "$as_me:$LINENO: checking for working getgroups" >&5
25105 echo $ECHO_N "checking for working getgroups... $ECHO_C" >&6; }
25106 if test "${ac_cv_func_getgroups_works+set}" = set; then
25107   echo $ECHO_N "(cached) $ECHO_C" >&6
25108 else
25109   if test "$cross_compiling" = yes; then
25110   ac_cv_func_getgroups_works=no
25111 else
25112   cat >conftest.$ac_ext <<_ACEOF
25113 /* confdefs.h.  */
25114 _ACEOF
25115 cat confdefs.h >>conftest.$ac_ext
25116 cat >>conftest.$ac_ext <<_ACEOF
25117 /* end confdefs.h.  */
25118 $ac_includes_default
25119 int
25120 main ()
25121 {
25122 /* On Ultrix 4.3, getgroups (0, 0) always fails.  */
25123        return getgroups (0, 0) == -1;
25124   ;
25125   return 0;
25126 }
25127 _ACEOF
25128 rm -f conftest$ac_exeext
25129 if { (ac_try="$ac_link"
25130 case "(($ac_try" in
25131   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25132   *) ac_try_echo=$ac_try;;
25133 esac
25134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25135   (eval "$ac_link") 2>&5
25136   ac_status=$?
25137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25138   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25139   { (case "(($ac_try" in
25140   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25141   *) ac_try_echo=$ac_try;;
25142 esac
25143 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25144   (eval "$ac_try") 2>&5
25145   ac_status=$?
25146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25147   (exit $ac_status); }; }; then
25148   ac_cv_func_getgroups_works=yes
25149 else
25150   echo "$as_me: program exited with status $ac_status" >&5
25151 echo "$as_me: failed program was:" >&5
25152 sed 's/^/| /' conftest.$ac_ext >&5
25153
25154 ( exit $ac_status )
25155 ac_cv_func_getgroups_works=no
25156 fi
25157 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25158 fi
25159
25160
25161    
25162 fi
25163 { echo "$as_me:$LINENO: result: $ac_cv_func_getgroups_works" >&5
25164 echo "${ECHO_T}$ac_cv_func_getgroups_works" >&6; }
25165   if test $ac_cv_func_getgroups_works = yes; then
25166     
25167 cat >>confdefs.h <<\_ACEOF
25168 @%:@define HAVE_GETGROUPS 1
25169 _ACEOF
25170
25171   fi
25172 fi
25173 LIBS=$ac_save_LIBS
25174
25175 # getmntent is in the standard C library on UNICOS, in -lsun on Irix 4,
25176 # -lseq on Dynix/PTX, -lgen on Unixware.
25177 { echo "$as_me:$LINENO: checking for library containing getmntent" >&5
25178 echo $ECHO_N "checking for library containing getmntent... $ECHO_C" >&6; }
25179 if test "${ac_cv_search_getmntent+set}" = set; then
25180   echo $ECHO_N "(cached) $ECHO_C" >&6
25181 else
25182   ac_func_search_save_LIBS=$LIBS
25183 cat >conftest.$ac_ext <<_ACEOF
25184 /* confdefs.h.  */
25185 _ACEOF
25186 cat confdefs.h >>conftest.$ac_ext
25187 cat >>conftest.$ac_ext <<_ACEOF
25188 /* end confdefs.h.  */
25189
25190 /* Override any GCC internal prototype to avoid an error.
25191    Use char because int might match the return type of a GCC
25192    builtin and then its argument prototype would still apply.  */
25193 #ifdef __cplusplus
25194 extern "C"
25195 #endif
25196 char getmntent ();
25197 int
25198 main ()
25199 {
25200 return getmntent ();
25201   ;
25202   return 0;
25203 }
25204 _ACEOF
25205 for ac_lib in '' sun seq gen; do
25206   if test -z "$ac_lib"; then
25207     ac_res="none required"
25208   else
25209     ac_res=-l$ac_lib
25210     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
25211   fi
25212   rm -f conftest.$ac_objext conftest$ac_exeext
25213 if { (ac_try="$ac_link"
25214 case "(($ac_try" in
25215   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25216   *) ac_try_echo=$ac_try;;
25217 esac
25218 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25219   (eval "$ac_link") 2>conftest.er1
25220   ac_status=$?
25221   grep -v '^ *+' conftest.er1 >conftest.err
25222   rm -f conftest.er1
25223   cat conftest.err >&5
25224   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25225   (exit $ac_status); } && {
25226          test -z "$ac_c_werror_flag" ||
25227          test ! -s conftest.err
25228        } && test -s conftest$ac_exeext &&
25229        $as_test_x conftest$ac_exeext; then
25230   ac_cv_search_getmntent=$ac_res
25231 else
25232   echo "$as_me: failed program was:" >&5
25233 sed 's/^/| /' conftest.$ac_ext >&5
25234
25235         
25236 fi
25237
25238 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25239       conftest$ac_exeext 
25240   if test "${ac_cv_search_getmntent+set}" = set; then
25241   break
25242 fi
25243 done
25244 if test "${ac_cv_search_getmntent+set}" = set; then
25245   :
25246 else
25247   ac_cv_search_getmntent=no
25248 fi
25249 rm conftest.$ac_ext
25250 LIBS=$ac_func_search_save_LIBS
25251 fi
25252 { echo "$as_me:$LINENO: result: $ac_cv_search_getmntent" >&5
25253 echo "${ECHO_T}$ac_cv_search_getmntent" >&6; }
25254 ac_res=$ac_cv_search_getmntent
25255 if test "$ac_res" != no; then
25256   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25257   ac_cv_func_getmntent=yes
25258                 
25259 cat >>confdefs.h <<\_ACEOF
25260 @%:@define HAVE_GETMNTENT 1
25261 _ACEOF
25262
25263 else
25264   ac_cv_func_getmntent=no
25265 fi
25266
25267
25268 if test $ac_cv_c_compiler_gnu = yes; then
25269     { echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
25270 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6; }
25271 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
25272   echo $ECHO_N "(cached) $ECHO_C" >&6
25273 else
25274     ac_pattern="Autoconf.*'x'"
25275   cat >conftest.$ac_ext <<_ACEOF
25276 /* confdefs.h.  */
25277 _ACEOF
25278 cat confdefs.h >>conftest.$ac_ext
25279 cat >>conftest.$ac_ext <<_ACEOF
25280 /* end confdefs.h.  */
25281 #include <sgtty.h>
25282 Autoconf TIOCGETP
25283 _ACEOF
25284 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25285   $EGREP "$ac_pattern" >/dev/null 2>&1; then
25286   ac_cv_prog_gcc_traditional=yes
25287 else
25288   ac_cv_prog_gcc_traditional=no
25289 fi
25290 rm -f conftest*
25291
25292
25293   if test $ac_cv_prog_gcc_traditional = no; then
25294     cat >conftest.$ac_ext <<_ACEOF
25295 /* confdefs.h.  */
25296 _ACEOF
25297 cat confdefs.h >>conftest.$ac_ext
25298 cat >>conftest.$ac_ext <<_ACEOF
25299 /* end confdefs.h.  */
25300 #include <termio.h>
25301 Autoconf TCGETA
25302 _ACEOF
25303 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25304   $EGREP "$ac_pattern" >/dev/null 2>&1; then
25305   ac_cv_prog_gcc_traditional=yes
25306 fi
25307 rm -f conftest*
25308
25309   fi
25310 fi
25311 { echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
25312 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6; }
25313   if test $ac_cv_prog_gcc_traditional = yes; then
25314     CC="$CC -traditional"
25315   fi
25316 fi
25317
25318 { echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
25319 echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6; }
25320 if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
25321   echo $ECHO_N "(cached) $ECHO_C" >&6
25322 else
25323   rm -f conftest.sym conftest.file
25324 echo >conftest.file
25325 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
25326   if test "$cross_compiling" = yes; then
25327   ac_cv_func_lstat_dereferences_slashed_symlink=no
25328 else
25329   cat >conftest.$ac_ext <<_ACEOF
25330 /* confdefs.h.  */
25331 _ACEOF
25332 cat confdefs.h >>conftest.$ac_ext
25333 cat >>conftest.$ac_ext <<_ACEOF
25334 /* end confdefs.h.  */
25335 $ac_includes_default
25336 int
25337 main ()
25338 {
25339 struct stat sbuf;
25340      /* Linux will dereference the symlink and fail.
25341         That is better in the sense that it means we will not
25342         have to compile and use the lstat wrapper.  */
25343      return lstat ("conftest.sym/", &sbuf) == 0;
25344   ;
25345   return 0;
25346 }
25347 _ACEOF
25348 rm -f conftest$ac_exeext
25349 if { (ac_try="$ac_link"
25350 case "(($ac_try" in
25351   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25352   *) ac_try_echo=$ac_try;;
25353 esac
25354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25355   (eval "$ac_link") 2>&5
25356   ac_status=$?
25357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25358   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25359   { (case "(($ac_try" in
25360   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25361   *) ac_try_echo=$ac_try;;
25362 esac
25363 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25364   (eval "$ac_try") 2>&5
25365   ac_status=$?
25366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25367   (exit $ac_status); }; }; then
25368   ac_cv_func_lstat_dereferences_slashed_symlink=yes
25369 else
25370   echo "$as_me: program exited with status $ac_status" >&5
25371 echo "$as_me: failed program was:" >&5
25372 sed 's/^/| /' conftest.$ac_ext >&5
25373
25374 ( exit $ac_status )
25375 ac_cv_func_lstat_dereferences_slashed_symlink=no
25376 fi
25377 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25378 fi
25379
25380
25381 else
25382   # If the `ln -s' command failed, then we probably don't even
25383   # have an lstat function.
25384   ac_cv_func_lstat_dereferences_slashed_symlink=no
25385 fi
25386 rm -f conftest.sym conftest.file
25387
25388 fi
25389 { echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
25390 echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
25391
25392 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
25393   
25394 cat >>confdefs.h <<_ACEOF
25395 @%:@define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
25396 _ACEOF
25397
25398
25399 if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
25400   case " $LIB@&t@OBJS " in
25401   *" lstat.$ac_objext "* ) ;;
25402   *) LIB@&t@OBJS="$LIB@&t@OBJS lstat.$ac_objext"
25403  ;;
25404 esac
25405
25406 fi
25407
25408 { echo "$as_me:$LINENO: checking whether lstat accepts an empty string" >&5
25409 echo $ECHO_N "checking whether lstat accepts an empty string... $ECHO_C" >&6; }
25410 if test "${ac_cv_func_lstat_empty_string_bug+set}" = set; then
25411   echo $ECHO_N "(cached) $ECHO_C" >&6
25412 else
25413   if test "$cross_compiling" = yes; then
25414   ac_cv_func_lstat_empty_string_bug=yes
25415 else
25416   cat >conftest.$ac_ext <<_ACEOF
25417 /* confdefs.h.  */
25418 _ACEOF
25419 cat confdefs.h >>conftest.$ac_ext
25420 cat >>conftest.$ac_ext <<_ACEOF
25421 /* end confdefs.h.  */
25422 $ac_includes_default
25423 int
25424 main ()
25425 {
25426 struct stat sbuf;
25427   return lstat ("", &sbuf) == 0;
25428   ;
25429   return 0;
25430 }
25431 _ACEOF
25432 rm -f conftest$ac_exeext
25433 if { (ac_try="$ac_link"
25434 case "(($ac_try" in
25435   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25436   *) ac_try_echo=$ac_try;;
25437 esac
25438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25439   (eval "$ac_link") 2>&5
25440   ac_status=$?
25441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25442   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25443   { (case "(($ac_try" in
25444   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25445   *) ac_try_echo=$ac_try;;
25446 esac
25447 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25448   (eval "$ac_try") 2>&5
25449   ac_status=$?
25450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25451   (exit $ac_status); }; }; then
25452   ac_cv_func_lstat_empty_string_bug=no
25453 else
25454   echo "$as_me: program exited with status $ac_status" >&5
25455 echo "$as_me: failed program was:" >&5
25456 sed 's/^/| /' conftest.$ac_ext >&5
25457
25458 ( exit $ac_status )
25459 ac_cv_func_lstat_empty_string_bug=yes
25460 fi
25461 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25462 fi
25463
25464
25465 fi
25466 { echo "$as_me:$LINENO: result: $ac_cv_func_lstat_empty_string_bug" >&5
25467 echo "${ECHO_T}$ac_cv_func_lstat_empty_string_bug" >&6; }
25468 if test $ac_cv_func_lstat_empty_string_bug = yes; then
25469   case " $LIB@&t@OBJS " in
25470   *" lstat.$ac_objext "* ) ;;
25471   *) LIB@&t@OBJS="$LIB@&t@OBJS lstat.$ac_objext"
25472  ;;
25473 esac
25474
25475   
25476 cat >>confdefs.h <<_ACEOF
25477 @%:@define HAVE_LSTAT_EMPTY_STRING_BUG 1
25478 _ACEOF
25479
25480 fi
25481
25482 { echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
25483 echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6; }
25484 if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
25485   echo $ECHO_N "(cached) $ECHO_C" >&6
25486 else
25487   rm -f conftest.sym conftest.file
25488 echo >conftest.file
25489 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
25490   if test "$cross_compiling" = yes; then
25491   ac_cv_func_lstat_dereferences_slashed_symlink=no
25492 else
25493   cat >conftest.$ac_ext <<_ACEOF
25494 /* confdefs.h.  */
25495 _ACEOF
25496 cat confdefs.h >>conftest.$ac_ext
25497 cat >>conftest.$ac_ext <<_ACEOF
25498 /* end confdefs.h.  */
25499 $ac_includes_default
25500 int
25501 main ()
25502 {
25503 struct stat sbuf;
25504      /* Linux will dereference the symlink and fail.
25505         That is better in the sense that it means we will not
25506         have to compile and use the lstat wrapper.  */
25507      return lstat ("conftest.sym/", &sbuf) == 0;
25508   ;
25509   return 0;
25510 }
25511 _ACEOF
25512 rm -f conftest$ac_exeext
25513 if { (ac_try="$ac_link"
25514 case "(($ac_try" in
25515   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25516   *) ac_try_echo=$ac_try;;
25517 esac
25518 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25519   (eval "$ac_link") 2>&5
25520   ac_status=$?
25521   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25522   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25523   { (case "(($ac_try" in
25524   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25525   *) ac_try_echo=$ac_try;;
25526 esac
25527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25528   (eval "$ac_try") 2>&5
25529   ac_status=$?
25530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25531   (exit $ac_status); }; }; then
25532   ac_cv_func_lstat_dereferences_slashed_symlink=yes
25533 else
25534   echo "$as_me: program exited with status $ac_status" >&5
25535 echo "$as_me: failed program was:" >&5
25536 sed 's/^/| /' conftest.$ac_ext >&5
25537
25538 ( exit $ac_status )
25539 ac_cv_func_lstat_dereferences_slashed_symlink=no
25540 fi
25541 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25542 fi
25543
25544
25545 else
25546   # If the `ln -s' command failed, then we probably don't even
25547   # have an lstat function.
25548   ac_cv_func_lstat_dereferences_slashed_symlink=no
25549 fi
25550 rm -f conftest.sym conftest.file
25551
25552 fi
25553 { echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
25554 echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
25555
25556 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
25557   
25558 cat >>confdefs.h <<_ACEOF
25559 @%:@define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
25560 _ACEOF
25561
25562
25563 if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
25564   case " $LIB@&t@OBJS " in
25565   *" lstat.$ac_objext "* ) ;;
25566   *) LIB@&t@OBJS="$LIB@&t@OBJS lstat.$ac_objext"
25567  ;;
25568 esac
25569
25570 fi
25571
25572 { echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
25573 echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6; }
25574 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
25575   echo $ECHO_N "(cached) $ECHO_C" >&6
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 @%:@include <sys/types.h>
25584 int
25585 main ()
25586 {
25587 return makedev(0, 0);
25588   ;
25589   return 0;
25590 }
25591 _ACEOF
25592 rm -f conftest.$ac_objext conftest$ac_exeext
25593 if { (ac_try="$ac_link"
25594 case "(($ac_try" in
25595   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25596   *) ac_try_echo=$ac_try;;
25597 esac
25598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25599   (eval "$ac_link") 2>conftest.er1
25600   ac_status=$?
25601   grep -v '^ *+' conftest.er1 >conftest.err
25602   rm -f conftest.er1
25603   cat conftest.err >&5
25604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25605   (exit $ac_status); } && {
25606          test -z "$ac_c_werror_flag" ||
25607          test ! -s conftest.err
25608        } && test -s conftest$ac_exeext &&
25609        $as_test_x conftest$ac_exeext; then
25610   ac_cv_header_sys_types_h_makedev=yes
25611 else
25612   echo "$as_me: failed program was:" >&5
25613 sed 's/^/| /' conftest.$ac_ext >&5
25614
25615         ac_cv_header_sys_types_h_makedev=no
25616 fi
25617
25618 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25619       conftest$ac_exeext conftest.$ac_ext
25620
25621 fi
25622 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
25623 echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6; }
25624
25625 if test $ac_cv_header_sys_types_h_makedev = no; then
25626 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
25627   { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
25628 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
25629 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
25630   echo $ECHO_N "(cached) $ECHO_C" >&6
25631 fi
25632 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
25633 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
25634 else
25635   # Is the header compilable?
25636 { echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
25637 echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6; }
25638 cat >conftest.$ac_ext <<_ACEOF
25639 /* confdefs.h.  */
25640 _ACEOF
25641 cat confdefs.h >>conftest.$ac_ext
25642 cat >>conftest.$ac_ext <<_ACEOF
25643 /* end confdefs.h.  */
25644 $ac_includes_default
25645 @%:@include <sys/mkdev.h>
25646 _ACEOF
25647 rm -f conftest.$ac_objext
25648 if { (ac_try="$ac_compile"
25649 case "(($ac_try" in
25650   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25651   *) ac_try_echo=$ac_try;;
25652 esac
25653 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25654   (eval "$ac_compile") 2>conftest.er1
25655   ac_status=$?
25656   grep -v '^ *+' conftest.er1 >conftest.err
25657   rm -f conftest.er1
25658   cat conftest.err >&5
25659   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25660   (exit $ac_status); } && {
25661          test -z "$ac_c_werror_flag" ||
25662          test ! -s conftest.err
25663        } && test -s conftest.$ac_objext; then
25664   ac_header_compiler=yes
25665 else
25666   echo "$as_me: failed program was:" >&5
25667 sed 's/^/| /' conftest.$ac_ext >&5
25668
25669         ac_header_compiler=no
25670 fi
25671
25672 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25673 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25674 echo "${ECHO_T}$ac_header_compiler" >&6; }
25675
25676 # Is the header present?
25677 { echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
25678 echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6; }
25679 cat >conftest.$ac_ext <<_ACEOF
25680 /* confdefs.h.  */
25681 _ACEOF
25682 cat confdefs.h >>conftest.$ac_ext
25683 cat >>conftest.$ac_ext <<_ACEOF
25684 /* end confdefs.h.  */
25685 @%:@include <sys/mkdev.h>
25686 _ACEOF
25687 if { (ac_try="$ac_cpp conftest.$ac_ext"
25688 case "(($ac_try" in
25689   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25690   *) ac_try_echo=$ac_try;;
25691 esac
25692 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25693   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25694   ac_status=$?
25695   grep -v '^ *+' conftest.er1 >conftest.err
25696   rm -f conftest.er1
25697   cat conftest.err >&5
25698   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25699   (exit $ac_status); } >/dev/null && {
25700          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25701          test ! -s conftest.err
25702        }; then
25703   ac_header_preproc=yes
25704 else
25705   echo "$as_me: failed program was:" >&5
25706 sed 's/^/| /' conftest.$ac_ext >&5
25707
25708   ac_header_preproc=no
25709 fi
25710
25711 rm -f conftest.err conftest.$ac_ext
25712 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25713 echo "${ECHO_T}$ac_header_preproc" >&6; }
25714
25715 # So?  What about this header?
25716 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25717   yes:no: )
25718     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
25719 echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25720     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5
25721 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&2;}
25722     ac_header_preproc=yes
25723     ;;
25724   no:yes:* )
25725     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
25726 echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
25727     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h:     check for missing prerequisite headers?" >&5
25728 echo "$as_me: WARNING: sys/mkdev.h:     check for missing prerequisite headers?" >&2;}
25729     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5
25730 echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;}
25731     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h:     section \"Present But Cannot Be Compiled\"" >&5
25732 echo "$as_me: WARNING: sys/mkdev.h:     section \"Present But Cannot Be Compiled\"" >&2;}
25733     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
25734 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
25735     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5
25736 echo "$as_me: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&2;}
25737     ( cat <<\_ASBOX
25738 @%:@@%:@ ------------------------------- @%:@@%:@
25739 @%:@@%:@ Report this to nfs@lists.sf.net @%:@@%:@
25740 @%:@@%:@ ------------------------------- @%:@@%:@
25741 _ASBOX
25742      ) | sed "s/^/$as_me: WARNING:     /" >&2
25743     ;;
25744 esac
25745 { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
25746 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
25747 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
25748   echo $ECHO_N "(cached) $ECHO_C" >&6
25749 else
25750   ac_cv_header_sys_mkdev_h=$ac_header_preproc
25751 fi
25752 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
25753 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
25754
25755 fi
25756 if test $ac_cv_header_sys_mkdev_h = yes; then
25757   
25758 cat >>confdefs.h <<\_ACEOF
25759 @%:@define MAJOR_IN_MKDEV 1
25760 _ACEOF
25761
25762 fi
25763
25764
25765
25766   if test $ac_cv_header_sys_mkdev_h = no; then
25767     if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
25768   { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
25769 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
25770 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
25771   echo $ECHO_N "(cached) $ECHO_C" >&6
25772 fi
25773 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
25774 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
25775 else
25776   # Is the header compilable?
25777 { echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
25778 echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6; }
25779 cat >conftest.$ac_ext <<_ACEOF
25780 /* confdefs.h.  */
25781 _ACEOF
25782 cat confdefs.h >>conftest.$ac_ext
25783 cat >>conftest.$ac_ext <<_ACEOF
25784 /* end confdefs.h.  */
25785 $ac_includes_default
25786 @%:@include <sys/sysmacros.h>
25787 _ACEOF
25788 rm -f conftest.$ac_objext
25789 if { (ac_try="$ac_compile"
25790 case "(($ac_try" in
25791   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25792   *) ac_try_echo=$ac_try;;
25793 esac
25794 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25795   (eval "$ac_compile") 2>conftest.er1
25796   ac_status=$?
25797   grep -v '^ *+' conftest.er1 >conftest.err
25798   rm -f conftest.er1
25799   cat conftest.err >&5
25800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25801   (exit $ac_status); } && {
25802          test -z "$ac_c_werror_flag" ||
25803          test ! -s conftest.err
25804        } && test -s conftest.$ac_objext; then
25805   ac_header_compiler=yes
25806 else
25807   echo "$as_me: failed program was:" >&5
25808 sed 's/^/| /' conftest.$ac_ext >&5
25809
25810         ac_header_compiler=no
25811 fi
25812
25813 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25814 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25815 echo "${ECHO_T}$ac_header_compiler" >&6; }
25816
25817 # Is the header present?
25818 { echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
25819 echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6; }
25820 cat >conftest.$ac_ext <<_ACEOF
25821 /* confdefs.h.  */
25822 _ACEOF
25823 cat confdefs.h >>conftest.$ac_ext
25824 cat >>conftest.$ac_ext <<_ACEOF
25825 /* end confdefs.h.  */
25826 @%:@include <sys/sysmacros.h>
25827 _ACEOF
25828 if { (ac_try="$ac_cpp conftest.$ac_ext"
25829 case "(($ac_try" in
25830   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25831   *) ac_try_echo=$ac_try;;
25832 esac
25833 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25834   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25835   ac_status=$?
25836   grep -v '^ *+' conftest.er1 >conftest.err
25837   rm -f conftest.er1
25838   cat conftest.err >&5
25839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25840   (exit $ac_status); } >/dev/null && {
25841          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25842          test ! -s conftest.err
25843        }; then
25844   ac_header_preproc=yes
25845 else
25846   echo "$as_me: failed program was:" >&5
25847 sed 's/^/| /' conftest.$ac_ext >&5
25848
25849   ac_header_preproc=no
25850 fi
25851
25852 rm -f conftest.err conftest.$ac_ext
25853 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25854 echo "${ECHO_T}$ac_header_preproc" >&6; }
25855
25856 # So?  What about this header?
25857 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25858   yes:no: )
25859     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
25860 echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25861     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5
25862 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&2;}
25863     ac_header_preproc=yes
25864     ;;
25865   no:yes:* )
25866     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
25867 echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
25868     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h:     check for missing prerequisite headers?" >&5
25869 echo "$as_me: WARNING: sys/sysmacros.h:     check for missing prerequisite headers?" >&2;}
25870     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5
25871 echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;}
25872     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h:     section \"Present But Cannot Be Compiled\"" >&5
25873 echo "$as_me: WARNING: sys/sysmacros.h:     section \"Present But Cannot Be Compiled\"" >&2;}
25874     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
25875 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
25876     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5
25877 echo "$as_me: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&2;}
25878     ( cat <<\_ASBOX
25879 @%:@@%:@ ------------------------------- @%:@@%:@
25880 @%:@@%:@ Report this to nfs@lists.sf.net @%:@@%:@
25881 @%:@@%:@ ------------------------------- @%:@@%:@
25882 _ASBOX
25883      ) | sed "s/^/$as_me: WARNING:     /" >&2
25884     ;;
25885 esac
25886 { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
25887 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
25888 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
25889   echo $ECHO_N "(cached) $ECHO_C" >&6
25890 else
25891   ac_cv_header_sys_sysmacros_h=$ac_header_preproc
25892 fi
25893 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
25894 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
25895
25896 fi
25897 if test $ac_cv_header_sys_sysmacros_h = yes; then
25898   
25899 cat >>confdefs.h <<\_ACEOF
25900 @%:@define MAJOR_IN_SYSMACROS 1
25901 _ACEOF
25902
25903 fi
25904
25905
25906   fi
25907 fi
25908
25909 #AC_FUNC_MALLOC
25910 { echo "$as_me:$LINENO: checking for working memcmp" >&5
25911 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6; }
25912 if test "${ac_cv_func_memcmp_working+set}" = set; then
25913   echo $ECHO_N "(cached) $ECHO_C" >&6
25914 else
25915   if test "$cross_compiling" = yes; then
25916   ac_cv_func_memcmp_working=no
25917 else
25918   cat >conftest.$ac_ext <<_ACEOF
25919 /* confdefs.h.  */
25920 _ACEOF
25921 cat confdefs.h >>conftest.$ac_ext
25922 cat >>conftest.$ac_ext <<_ACEOF
25923 /* end confdefs.h.  */
25924 $ac_includes_default
25925 int
25926 main ()
25927 {
25928
25929   /* Some versions of memcmp are not 8-bit clean.  */
25930   char c0 = '\100', c1 = '\200', c2 = '\201';
25931   if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
25932     return 1;
25933
25934   /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
25935      or more and with at least one buffer not starting on a 4-byte boundary.
25936      William Lewis provided this test program.   */
25937   {
25938     char foo[21];
25939     char bar[21];
25940     int i;
25941     for (i = 0; i < 4; i++)
25942       {
25943         char *a = foo + i;
25944         char *b = bar + i;
25945         strcpy (a, "--------01111111");
25946         strcpy (b, "--------10000000");
25947         if (memcmp (a, b, 16) >= 0)
25948           return 1;
25949       }
25950     return 0;
25951   }
25952
25953   ;
25954   return 0;
25955 }
25956 _ACEOF
25957 rm -f conftest$ac_exeext
25958 if { (ac_try="$ac_link"
25959 case "(($ac_try" in
25960   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25961   *) ac_try_echo=$ac_try;;
25962 esac
25963 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25964   (eval "$ac_link") 2>&5
25965   ac_status=$?
25966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25967   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25968   { (case "(($ac_try" in
25969   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25970   *) ac_try_echo=$ac_try;;
25971 esac
25972 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25973   (eval "$ac_try") 2>&5
25974   ac_status=$?
25975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25976   (exit $ac_status); }; }; then
25977   ac_cv_func_memcmp_working=yes
25978 else
25979   echo "$as_me: program exited with status $ac_status" >&5
25980 echo "$as_me: failed program was:" >&5
25981 sed 's/^/| /' conftest.$ac_ext >&5
25982
25983 ( exit $ac_status )
25984 ac_cv_func_memcmp_working=no
25985 fi
25986 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25987 fi
25988
25989
25990 fi
25991 { echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
25992 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6; }
25993 test $ac_cv_func_memcmp_working = no && case " $LIB@&t@OBJS " in
25994   *" memcmp.$ac_objext "* ) ;;
25995   *) LIB@&t@OBJS="$LIB@&t@OBJS memcmp.$ac_objext"
25996  ;;
25997 esac
25998
25999
26000 #AC_FUNC_REALLOC
26001
26002
26003 for ac_header in sys/select.h sys/socket.h
26004 do
26005 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26006 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26007   { echo "$as_me:$LINENO: checking for $ac_header" >&5
26008 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
26009 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26010   echo $ECHO_N "(cached) $ECHO_C" >&6
26011 fi
26012 ac_res=`eval echo '${'$as_ac_Header'}'`
26013                { echo "$as_me:$LINENO: result: $ac_res" >&5
26014 echo "${ECHO_T}$ac_res" >&6; }
26015 else
26016   # Is the header compilable?
26017 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
26018 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
26019 cat >conftest.$ac_ext <<_ACEOF
26020 /* confdefs.h.  */
26021 _ACEOF
26022 cat confdefs.h >>conftest.$ac_ext
26023 cat >>conftest.$ac_ext <<_ACEOF
26024 /* end confdefs.h.  */
26025 $ac_includes_default
26026 @%:@include <$ac_header>
26027 _ACEOF
26028 rm -f conftest.$ac_objext
26029 if { (ac_try="$ac_compile"
26030 case "(($ac_try" in
26031   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26032   *) ac_try_echo=$ac_try;;
26033 esac
26034 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26035   (eval "$ac_compile") 2>conftest.er1
26036   ac_status=$?
26037   grep -v '^ *+' conftest.er1 >conftest.err
26038   rm -f conftest.er1
26039   cat conftest.err >&5
26040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26041   (exit $ac_status); } && {
26042          test -z "$ac_c_werror_flag" ||
26043          test ! -s conftest.err
26044        } && test -s conftest.$ac_objext; then
26045   ac_header_compiler=yes
26046 else
26047   echo "$as_me: failed program was:" >&5
26048 sed 's/^/| /' conftest.$ac_ext >&5
26049
26050         ac_header_compiler=no
26051 fi
26052
26053 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26054 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26055 echo "${ECHO_T}$ac_header_compiler" >&6; }
26056
26057 # Is the header present?
26058 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
26059 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
26060 cat >conftest.$ac_ext <<_ACEOF
26061 /* confdefs.h.  */
26062 _ACEOF
26063 cat confdefs.h >>conftest.$ac_ext
26064 cat >>conftest.$ac_ext <<_ACEOF
26065 /* end confdefs.h.  */
26066 @%:@include <$ac_header>
26067 _ACEOF
26068 if { (ac_try="$ac_cpp conftest.$ac_ext"
26069 case "(($ac_try" in
26070   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26071   *) ac_try_echo=$ac_try;;
26072 esac
26073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26074   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26075   ac_status=$?
26076   grep -v '^ *+' conftest.er1 >conftest.err
26077   rm -f conftest.er1
26078   cat conftest.err >&5
26079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26080   (exit $ac_status); } >/dev/null && {
26081          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26082          test ! -s conftest.err
26083        }; then
26084   ac_header_preproc=yes
26085 else
26086   echo "$as_me: failed program was:" >&5
26087 sed 's/^/| /' conftest.$ac_ext >&5
26088
26089   ac_header_preproc=no
26090 fi
26091
26092 rm -f conftest.err conftest.$ac_ext
26093 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26094 echo "${ECHO_T}$ac_header_preproc" >&6; }
26095
26096 # So?  What about this header?
26097 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26098   yes:no: )
26099     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26100 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26101     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26102 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26103     ac_header_preproc=yes
26104     ;;
26105   no:yes:* )
26106     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26107 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26108     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
26109 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
26110     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26111 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26112     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
26113 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
26114     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26115 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26116     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26117 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26118     ( cat <<\_ASBOX
26119 @%:@@%:@ ------------------------------- @%:@@%:@
26120 @%:@@%:@ Report this to nfs@lists.sf.net @%:@@%:@
26121 @%:@@%:@ ------------------------------- @%:@@%:@
26122 _ASBOX
26123      ) | sed "s/^/$as_me: WARNING:     /" >&2
26124     ;;
26125 esac
26126 { echo "$as_me:$LINENO: checking for $ac_header" >&5
26127 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
26128 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26129   echo $ECHO_N "(cached) $ECHO_C" >&6
26130 else
26131   eval "$as_ac_Header=\$ac_header_preproc"
26132 fi
26133 ac_res=`eval echo '${'$as_ac_Header'}'`
26134                { echo "$as_me:$LINENO: result: $ac_res" >&5
26135 echo "${ECHO_T}$ac_res" >&6; }
26136
26137 fi
26138 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26139   cat >>confdefs.h <<_ACEOF
26140 @%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26141 _ACEOF
26142  
26143 fi
26144
26145 done
26146
26147 { echo "$as_me:$LINENO: checking types of arguments for select" >&5
26148 echo $ECHO_N "checking types of arguments for select... $ECHO_C" >&6; }
26149 if test "${ac_cv_func_select_args+set}" = set; then
26150   echo $ECHO_N "(cached) $ECHO_C" >&6
26151 else
26152   for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
26153  for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
26154   for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
26155    cat >conftest.$ac_ext <<_ACEOF
26156 /* confdefs.h.  */
26157 _ACEOF
26158 cat confdefs.h >>conftest.$ac_ext
26159 cat >>conftest.$ac_ext <<_ACEOF
26160 /* end confdefs.h.  */
26161 $ac_includes_default
26162 #ifdef HAVE_SYS_SELECT_H
26163 # include <sys/select.h>
26164 #endif
26165 #ifdef HAVE_SYS_SOCKET_H
26166 # include <sys/socket.h>
26167 #endif
26168
26169 int
26170 main ()
26171 {
26172 extern int select ($ac_arg1,
26173                                             $ac_arg234, $ac_arg234, $ac_arg234,
26174                                             $ac_arg5);
26175   ;
26176   return 0;
26177 }
26178 _ACEOF
26179 rm -f conftest.$ac_objext
26180 if { (ac_try="$ac_compile"
26181 case "(($ac_try" in
26182   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26183   *) ac_try_echo=$ac_try;;
26184 esac
26185 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26186   (eval "$ac_compile") 2>conftest.er1
26187   ac_status=$?
26188   grep -v '^ *+' conftest.er1 >conftest.err
26189   rm -f conftest.er1
26190   cat conftest.err >&5
26191   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26192   (exit $ac_status); } && {
26193          test -z "$ac_c_werror_flag" ||
26194          test ! -s conftest.err
26195        } && test -s conftest.$ac_objext; then
26196   ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
26197 else
26198   echo "$as_me: failed program was:" >&5
26199 sed 's/^/| /' conftest.$ac_ext >&5
26200
26201         
26202 fi
26203
26204 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26205   done
26206  done
26207 done
26208 # Provide a safe default value.
26209 : ${ac_cv_func_select_args='int,int *,struct timeval *'}
26210
26211 fi
26212 { echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5
26213 echo "${ECHO_T}$ac_cv_func_select_args" >&6; }
26214 ac_save_IFS=$IFS; IFS=','
26215 set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
26216 IFS=$ac_save_IFS
26217 shift
26218
26219 cat >>confdefs.h <<_ACEOF
26220 @%:@define SELECT_TYPE_ARG1 $1
26221 _ACEOF
26222
26223
26224 cat >>confdefs.h <<_ACEOF
26225 @%:@define SELECT_TYPE_ARG234 ($2)
26226 _ACEOF
26227
26228
26229 cat >>confdefs.h <<_ACEOF
26230 @%:@define SELECT_TYPE_ARG5 ($3)
26231 _ACEOF
26232
26233 rm -f conftest*
26234
26235 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
26236 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
26237 if test "${ac_cv_type_signal+set}" = set; then
26238   echo $ECHO_N "(cached) $ECHO_C" >&6
26239 else
26240   cat >conftest.$ac_ext <<_ACEOF
26241 /* confdefs.h.  */
26242 _ACEOF
26243 cat confdefs.h >>conftest.$ac_ext
26244 cat >>conftest.$ac_ext <<_ACEOF
26245 /* end confdefs.h.  */
26246 #include <sys/types.h>
26247 #include <signal.h>
26248
26249 int
26250 main ()
26251 {
26252 return *(signal (0, 0)) (0) == 1;
26253   ;
26254   return 0;
26255 }
26256 _ACEOF
26257 rm -f conftest.$ac_objext
26258 if { (ac_try="$ac_compile"
26259 case "(($ac_try" in
26260   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26261   *) ac_try_echo=$ac_try;;
26262 esac
26263 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26264   (eval "$ac_compile") 2>conftest.er1
26265   ac_status=$?
26266   grep -v '^ *+' conftest.er1 >conftest.err
26267   rm -f conftest.er1
26268   cat conftest.err >&5
26269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26270   (exit $ac_status); } && {
26271          test -z "$ac_c_werror_flag" ||
26272          test ! -s conftest.err
26273        } && test -s conftest.$ac_objext; then
26274   ac_cv_type_signal=int
26275 else
26276   echo "$as_me: failed program was:" >&5
26277 sed 's/^/| /' conftest.$ac_ext >&5
26278
26279         ac_cv_type_signal=void
26280 fi
26281
26282 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26283 fi
26284 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
26285 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
26286
26287 cat >>confdefs.h <<_ACEOF
26288 @%:@define RETSIGTYPE $ac_cv_type_signal
26289 _ACEOF
26290
26291
26292 { echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5
26293 echo $ECHO_N "checking whether stat accepts an empty string... $ECHO_C" >&6; }
26294 if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then
26295   echo $ECHO_N "(cached) $ECHO_C" >&6
26296 else
26297   if test "$cross_compiling" = yes; then
26298   ac_cv_func_stat_empty_string_bug=yes
26299 else
26300   cat >conftest.$ac_ext <<_ACEOF
26301 /* confdefs.h.  */
26302 _ACEOF
26303 cat confdefs.h >>conftest.$ac_ext
26304 cat >>conftest.$ac_ext <<_ACEOF
26305 /* end confdefs.h.  */
26306 $ac_includes_default
26307 int
26308 main ()
26309 {
26310 struct stat sbuf;
26311   return stat ("", &sbuf) == 0;
26312   ;
26313   return 0;
26314 }
26315 _ACEOF
26316 rm -f conftest$ac_exeext
26317 if { (ac_try="$ac_link"
26318 case "(($ac_try" in
26319   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26320   *) ac_try_echo=$ac_try;;
26321 esac
26322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26323   (eval "$ac_link") 2>&5
26324   ac_status=$?
26325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26326   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26327   { (case "(($ac_try" in
26328   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26329   *) ac_try_echo=$ac_try;;
26330 esac
26331 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26332   (eval "$ac_try") 2>&5
26333   ac_status=$?
26334   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26335   (exit $ac_status); }; }; then
26336   ac_cv_func_stat_empty_string_bug=no
26337 else
26338   echo "$as_me: program exited with status $ac_status" >&5
26339 echo "$as_me: failed program was:" >&5
26340 sed 's/^/| /' conftest.$ac_ext >&5
26341
26342 ( exit $ac_status )
26343 ac_cv_func_stat_empty_string_bug=yes
26344 fi
26345 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26346 fi
26347
26348
26349 fi
26350 { echo "$as_me:$LINENO: result: $ac_cv_func_stat_empty_string_bug" >&5
26351 echo "${ECHO_T}$ac_cv_func_stat_empty_string_bug" >&6; }
26352 if test $ac_cv_func_stat_empty_string_bug = yes; then
26353   case " $LIB@&t@OBJS " in
26354   *" stat.$ac_objext "* ) ;;
26355   *) LIB@&t@OBJS="$LIB@&t@OBJS stat.$ac_objext"
26356  ;;
26357 esac
26358
26359   
26360 cat >>confdefs.h <<_ACEOF
26361 @%:@define HAVE_STAT_EMPTY_STRING_BUG 1
26362 _ACEOF
26363
26364 fi
26365
26366
26367 for ac_func in vprintf
26368 do
26369 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26370 { echo "$as_me:$LINENO: checking for $ac_func" >&5
26371 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
26372 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
26373   echo $ECHO_N "(cached) $ECHO_C" >&6
26374 else
26375   cat >conftest.$ac_ext <<_ACEOF
26376 /* confdefs.h.  */
26377 _ACEOF
26378 cat confdefs.h >>conftest.$ac_ext
26379 cat >>conftest.$ac_ext <<_ACEOF
26380 /* end confdefs.h.  */
26381 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26382    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26383 #define $ac_func innocuous_$ac_func
26384
26385 /* System header to define __stub macros and hopefully few prototypes,
26386     which can conflict with char $ac_func (); below.
26387     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26388     <limits.h> exists even on freestanding compilers.  */
26389
26390 #ifdef __STDC__
26391 # include <limits.h>
26392 #else
26393 # include <assert.h>
26394 #endif
26395
26396 #undef $ac_func
26397
26398 /* Override any GCC internal prototype to avoid an error.
26399    Use char because int might match the return type of a GCC
26400    builtin and then its argument prototype would still apply.  */
26401 #ifdef __cplusplus
26402 extern "C"
26403 #endif
26404 char $ac_func ();
26405 /* The GNU C library defines this for functions which it implements
26406     to always fail with ENOSYS.  Some functions are actually named
26407     something starting with __ and the normal name is an alias.  */
26408 #if defined __stub_$ac_func || defined __stub___$ac_func
26409 choke me
26410 #endif
26411
26412 int
26413 main ()
26414 {
26415 return $ac_func ();
26416   ;
26417   return 0;
26418 }
26419 _ACEOF
26420 rm -f conftest.$ac_objext conftest$ac_exeext
26421 if { (ac_try="$ac_link"
26422 case "(($ac_try" in
26423   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26424   *) ac_try_echo=$ac_try;;
26425 esac
26426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26427   (eval "$ac_link") 2>conftest.er1
26428   ac_status=$?
26429   grep -v '^ *+' conftest.er1 >conftest.err
26430   rm -f conftest.er1
26431   cat conftest.err >&5
26432   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26433   (exit $ac_status); } && {
26434          test -z "$ac_c_werror_flag" ||
26435          test ! -s conftest.err
26436        } && test -s conftest$ac_exeext &&
26437        $as_test_x conftest$ac_exeext; then
26438   eval "$as_ac_var=yes"
26439 else
26440   echo "$as_me: failed program was:" >&5
26441 sed 's/^/| /' conftest.$ac_ext >&5
26442
26443         eval "$as_ac_var=no"
26444 fi
26445
26446 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26447       conftest$ac_exeext conftest.$ac_ext
26448 fi
26449 ac_res=`eval echo '${'$as_ac_var'}'`
26450                { echo "$as_me:$LINENO: result: $ac_res" >&5
26451 echo "${ECHO_T}$ac_res" >&6; }
26452 if test `eval echo '${'$as_ac_var'}'` = yes; then
26453   cat >>confdefs.h <<_ACEOF
26454 @%:@define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26455 _ACEOF
26456  
26457 { echo "$as_me:$LINENO: checking for _doprnt" >&5
26458 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6; }
26459 if test "${ac_cv_func__doprnt+set}" = set; then
26460   echo $ECHO_N "(cached) $ECHO_C" >&6
26461 else
26462   cat >conftest.$ac_ext <<_ACEOF
26463 /* confdefs.h.  */
26464 _ACEOF
26465 cat confdefs.h >>conftest.$ac_ext
26466 cat >>conftest.$ac_ext <<_ACEOF
26467 /* end confdefs.h.  */
26468 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
26469    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26470 #define _doprnt innocuous__doprnt
26471
26472 /* System header to define __stub macros and hopefully few prototypes,
26473     which can conflict with char _doprnt (); below.
26474     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26475     <limits.h> exists even on freestanding compilers.  */
26476
26477 #ifdef __STDC__
26478 # include <limits.h>
26479 #else
26480 # include <assert.h>
26481 #endif
26482
26483 #undef _doprnt
26484
26485 /* Override any GCC internal prototype to avoid an error.
26486    Use char because int might match the return type of a GCC
26487    builtin and then its argument prototype would still apply.  */
26488 #ifdef __cplusplus
26489 extern "C"
26490 #endif
26491 char _doprnt ();
26492 /* The GNU C library defines this for functions which it implements
26493     to always fail with ENOSYS.  Some functions are actually named
26494     something starting with __ and the normal name is an alias.  */
26495 #if defined __stub__doprnt || defined __stub____doprnt
26496 choke me
26497 #endif
26498
26499 int
26500 main ()
26501 {
26502 return _doprnt ();
26503   ;
26504   return 0;
26505 }
26506 _ACEOF
26507 rm -f conftest.$ac_objext conftest$ac_exeext
26508 if { (ac_try="$ac_link"
26509 case "(($ac_try" in
26510   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26511   *) ac_try_echo=$ac_try;;
26512 esac
26513 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26514   (eval "$ac_link") 2>conftest.er1
26515   ac_status=$?
26516   grep -v '^ *+' conftest.er1 >conftest.err
26517   rm -f conftest.er1
26518   cat conftest.err >&5
26519   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26520   (exit $ac_status); } && {
26521          test -z "$ac_c_werror_flag" ||
26522          test ! -s conftest.err
26523        } && test -s conftest$ac_exeext &&
26524        $as_test_x conftest$ac_exeext; then
26525   ac_cv_func__doprnt=yes
26526 else
26527   echo "$as_me: failed program was:" >&5
26528 sed 's/^/| /' conftest.$ac_ext >&5
26529
26530         ac_cv_func__doprnt=no
26531 fi
26532
26533 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26534       conftest$ac_exeext conftest.$ac_ext
26535 fi
26536 { echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
26537 echo "${ECHO_T}$ac_cv_func__doprnt" >&6; }
26538 if test $ac_cv_func__doprnt = yes; then
26539   
26540 cat >>confdefs.h <<\_ACEOF
26541 @%:@define HAVE_DOPRNT 1
26542 _ACEOF
26543
26544 fi
26545
26546 fi
26547 done
26548
26549
26550
26551
26552
26553
26554
26555
26556
26557
26558
26559
26560
26561
26562
26563
26564
26565
26566
26567
26568
26569
26570
26571
26572
26573
26574
26575
26576
26577
26578
26579 for ac_func in alarm atexit dup2 fdatasync ftruncate getcwd \
26580                gethostbyaddr gethostbyname gethostname getmntent \
26581                gettimeofday hasmntopt inet_ntoa innetgr memset mkdir pathconf \
26582                realpath rmdir select socket strcasecmp strchr strdup \
26583                strerror strrchr strtol strtoul sigprocmask
26584 do
26585 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26586 { echo "$as_me:$LINENO: checking for $ac_func" >&5
26587 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
26588 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
26589   echo $ECHO_N "(cached) $ECHO_C" >&6
26590 else
26591   cat >conftest.$ac_ext <<_ACEOF
26592 /* confdefs.h.  */
26593 _ACEOF
26594 cat confdefs.h >>conftest.$ac_ext
26595 cat >>conftest.$ac_ext <<_ACEOF
26596 /* end confdefs.h.  */
26597 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26598    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26599 #define $ac_func innocuous_$ac_func
26600
26601 /* System header to define __stub macros and hopefully few prototypes,
26602     which can conflict with char $ac_func (); below.
26603     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26604     <limits.h> exists even on freestanding compilers.  */
26605
26606 #ifdef __STDC__
26607 # include <limits.h>
26608 #else
26609 # include <assert.h>
26610 #endif
26611
26612 #undef $ac_func
26613
26614 /* Override any GCC internal prototype to avoid an error.
26615    Use char because int might match the return type of a GCC
26616    builtin and then its argument prototype would still apply.  */
26617 #ifdef __cplusplus
26618 extern "C"
26619 #endif
26620 char $ac_func ();
26621 /* The GNU C library defines this for functions which it implements
26622     to always fail with ENOSYS.  Some functions are actually named
26623     something starting with __ and the normal name is an alias.  */
26624 #if defined __stub_$ac_func || defined __stub___$ac_func
26625 choke me
26626 #endif
26627
26628 int
26629 main ()
26630 {
26631 return $ac_func ();
26632   ;
26633   return 0;
26634 }
26635 _ACEOF
26636 rm -f conftest.$ac_objext conftest$ac_exeext
26637 if { (ac_try="$ac_link"
26638 case "(($ac_try" in
26639   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26640   *) ac_try_echo=$ac_try;;
26641 esac
26642 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26643   (eval "$ac_link") 2>conftest.er1
26644   ac_status=$?
26645   grep -v '^ *+' conftest.er1 >conftest.err
26646   rm -f conftest.er1
26647   cat conftest.err >&5
26648   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26649   (exit $ac_status); } && {
26650          test -z "$ac_c_werror_flag" ||
26651          test ! -s conftest.err
26652        } && test -s conftest$ac_exeext &&
26653        $as_test_x conftest$ac_exeext; then
26654   eval "$as_ac_var=yes"
26655 else
26656   echo "$as_me: failed program was:" >&5
26657 sed 's/^/| /' conftest.$ac_ext >&5
26658
26659         eval "$as_ac_var=no"
26660 fi
26661
26662 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26663       conftest$ac_exeext conftest.$ac_ext
26664 fi
26665 ac_res=`eval echo '${'$as_ac_var'}'`
26666                { echo "$as_me:$LINENO: result: $ac_res" >&5
26667 echo "${ECHO_T}$ac_res" >&6; }
26668 if test `eval echo '${'$as_ac_var'}'` = yes; then
26669   cat >>confdefs.h <<_ACEOF
26670 @%:@define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26671 _ACEOF
26672  
26673 fi
26674 done
26675
26676
26677
26678 { echo "$as_me:$LINENO: checking for short" >&5
26679 echo $ECHO_N "checking for short... $ECHO_C" >&6; }
26680 if test "${ac_cv_type_short+set}" = set; then
26681   echo $ECHO_N "(cached) $ECHO_C" >&6
26682 else
26683   cat >conftest.$ac_ext <<_ACEOF
26684 /* confdefs.h.  */
26685 _ACEOF
26686 cat confdefs.h >>conftest.$ac_ext
26687 cat >>conftest.$ac_ext <<_ACEOF
26688 /* end confdefs.h.  */
26689 $ac_includes_default
26690 typedef short ac__type_new_;
26691 int
26692 main ()
26693 {
26694 if ((ac__type_new_ *) 0)
26695   return 0;
26696 if (sizeof (ac__type_new_))
26697   return 0;
26698   ;
26699   return 0;
26700 }
26701 _ACEOF
26702 rm -f conftest.$ac_objext
26703 if { (ac_try="$ac_compile"
26704 case "(($ac_try" in
26705   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26706   *) ac_try_echo=$ac_try;;
26707 esac
26708 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26709   (eval "$ac_compile") 2>conftest.er1
26710   ac_status=$?
26711   grep -v '^ *+' conftest.er1 >conftest.err
26712   rm -f conftest.er1
26713   cat conftest.err >&5
26714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26715   (exit $ac_status); } && {
26716          test -z "$ac_c_werror_flag" ||
26717          test ! -s conftest.err
26718        } && test -s conftest.$ac_objext; then
26719   ac_cv_type_short=yes
26720 else
26721   echo "$as_me: failed program was:" >&5
26722 sed 's/^/| /' conftest.$ac_ext >&5
26723
26724         ac_cv_type_short=no
26725 fi
26726
26727 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26728 fi
26729 { echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
26730 echo "${ECHO_T}$ac_cv_type_short" >&6; }
26731
26732 # The cast to long int works around a bug in the HP C Compiler
26733 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
26734 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
26735 # This bug is HP SR number 8606223364.
26736 { echo "$as_me:$LINENO: checking size of short" >&5
26737 echo $ECHO_N "checking size of short... $ECHO_C" >&6; }
26738 if test "${ac_cv_sizeof_short+set}" = set; then
26739   echo $ECHO_N "(cached) $ECHO_C" >&6
26740 else
26741   if test "$cross_compiling" = yes; then
26742   # Depending upon the size, compute the lo and hi bounds.
26743 cat >conftest.$ac_ext <<_ACEOF
26744 /* confdefs.h.  */
26745 _ACEOF
26746 cat confdefs.h >>conftest.$ac_ext
26747 cat >>conftest.$ac_ext <<_ACEOF
26748 /* end confdefs.h.  */
26749 $ac_includes_default
26750    typedef short ac__type_sizeof_;
26751 int
26752 main ()
26753 {
26754 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)@:>@;
26755 test_array @<:@0@:>@ = 0
26756
26757   ;
26758   return 0;
26759 }
26760 _ACEOF
26761 rm -f conftest.$ac_objext
26762 if { (ac_try="$ac_compile"
26763 case "(($ac_try" in
26764   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26765   *) ac_try_echo=$ac_try;;
26766 esac
26767 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26768   (eval "$ac_compile") 2>conftest.er1
26769   ac_status=$?
26770   grep -v '^ *+' conftest.er1 >conftest.err
26771   rm -f conftest.er1
26772   cat conftest.err >&5
26773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26774   (exit $ac_status); } && {
26775          test -z "$ac_c_werror_flag" ||
26776          test ! -s conftest.err
26777        } && test -s conftest.$ac_objext; then
26778   ac_lo=0 ac_mid=0
26779   while :; do
26780     cat >conftest.$ac_ext <<_ACEOF
26781 /* confdefs.h.  */
26782 _ACEOF
26783 cat confdefs.h >>conftest.$ac_ext
26784 cat >>conftest.$ac_ext <<_ACEOF
26785 /* end confdefs.h.  */
26786 $ac_includes_default
26787    typedef short ac__type_sizeof_;
26788 int
26789 main ()
26790 {
26791 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)@:>@;
26792 test_array @<:@0@:>@ = 0
26793
26794   ;
26795   return 0;
26796 }
26797 _ACEOF
26798 rm -f conftest.$ac_objext
26799 if { (ac_try="$ac_compile"
26800 case "(($ac_try" in
26801   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26802   *) ac_try_echo=$ac_try;;
26803 esac
26804 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26805   (eval "$ac_compile") 2>conftest.er1
26806   ac_status=$?
26807   grep -v '^ *+' conftest.er1 >conftest.err
26808   rm -f conftest.er1
26809   cat conftest.err >&5
26810   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26811   (exit $ac_status); } && {
26812          test -z "$ac_c_werror_flag" ||
26813          test ! -s conftest.err
26814        } && test -s conftest.$ac_objext; then
26815   ac_hi=$ac_mid; break
26816 else
26817   echo "$as_me: failed program was:" >&5
26818 sed 's/^/| /' conftest.$ac_ext >&5
26819
26820         ac_lo=`expr $ac_mid + 1`
26821                         if test $ac_lo -le $ac_mid; then
26822                           ac_lo= ac_hi=
26823                           break
26824                         fi
26825                         ac_mid=`expr 2 '*' $ac_mid + 1`
26826 fi
26827
26828 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26829   done
26830 else
26831   echo "$as_me: failed program was:" >&5
26832 sed 's/^/| /' conftest.$ac_ext >&5
26833
26834         cat >conftest.$ac_ext <<_ACEOF
26835 /* confdefs.h.  */
26836 _ACEOF
26837 cat confdefs.h >>conftest.$ac_ext
26838 cat >>conftest.$ac_ext <<_ACEOF
26839 /* end confdefs.h.  */
26840 $ac_includes_default
26841    typedef short ac__type_sizeof_;
26842 int
26843 main ()
26844 {
26845 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)@:>@;
26846 test_array @<:@0@:>@ = 0
26847
26848   ;
26849   return 0;
26850 }
26851 _ACEOF
26852 rm -f conftest.$ac_objext
26853 if { (ac_try="$ac_compile"
26854 case "(($ac_try" in
26855   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26856   *) ac_try_echo=$ac_try;;
26857 esac
26858 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26859   (eval "$ac_compile") 2>conftest.er1
26860   ac_status=$?
26861   grep -v '^ *+' conftest.er1 >conftest.err
26862   rm -f conftest.er1
26863   cat conftest.err >&5
26864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26865   (exit $ac_status); } && {
26866          test -z "$ac_c_werror_flag" ||
26867          test ! -s conftest.err
26868        } && test -s conftest.$ac_objext; then
26869   ac_hi=-1 ac_mid=-1
26870   while :; do
26871     cat >conftest.$ac_ext <<_ACEOF
26872 /* confdefs.h.  */
26873 _ACEOF
26874 cat confdefs.h >>conftest.$ac_ext
26875 cat >>conftest.$ac_ext <<_ACEOF
26876 /* end confdefs.h.  */
26877 $ac_includes_default
26878    typedef short ac__type_sizeof_;
26879 int
26880 main ()
26881 {
26882 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)@:>@;
26883 test_array @<:@0@:>@ = 0
26884
26885   ;
26886   return 0;
26887 }
26888 _ACEOF
26889 rm -f conftest.$ac_objext
26890 if { (ac_try="$ac_compile"
26891 case "(($ac_try" in
26892   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26893   *) ac_try_echo=$ac_try;;
26894 esac
26895 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26896   (eval "$ac_compile") 2>conftest.er1
26897   ac_status=$?
26898   grep -v '^ *+' conftest.er1 >conftest.err
26899   rm -f conftest.er1
26900   cat conftest.err >&5
26901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26902   (exit $ac_status); } && {
26903          test -z "$ac_c_werror_flag" ||
26904          test ! -s conftest.err
26905        } && test -s conftest.$ac_objext; then
26906   ac_lo=$ac_mid; break
26907 else
26908   echo "$as_me: failed program was:" >&5
26909 sed 's/^/| /' conftest.$ac_ext >&5
26910
26911         ac_hi=`expr '(' $ac_mid ')' - 1`
26912                         if test $ac_mid -le $ac_hi; then
26913                           ac_lo= ac_hi=
26914                           break
26915                         fi
26916                         ac_mid=`expr 2 '*' $ac_mid`
26917 fi
26918
26919 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26920   done
26921 else
26922   echo "$as_me: failed program was:" >&5
26923 sed 's/^/| /' conftest.$ac_ext >&5
26924
26925         ac_lo= ac_hi=
26926 fi
26927
26928 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26929 fi
26930
26931 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26932 # Binary search between lo and hi bounds.
26933 while test "x$ac_lo" != "x$ac_hi"; do
26934   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
26935   cat >conftest.$ac_ext <<_ACEOF
26936 /* confdefs.h.  */
26937 _ACEOF
26938 cat confdefs.h >>conftest.$ac_ext
26939 cat >>conftest.$ac_ext <<_ACEOF
26940 /* end confdefs.h.  */
26941 $ac_includes_default
26942    typedef short ac__type_sizeof_;
26943 int
26944 main ()
26945 {
26946 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)@:>@;
26947 test_array @<:@0@:>@ = 0
26948
26949   ;
26950   return 0;
26951 }
26952 _ACEOF
26953 rm -f conftest.$ac_objext
26954 if { (ac_try="$ac_compile"
26955 case "(($ac_try" in
26956   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26957   *) ac_try_echo=$ac_try;;
26958 esac
26959 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26960   (eval "$ac_compile") 2>conftest.er1
26961   ac_status=$?
26962   grep -v '^ *+' conftest.er1 >conftest.err
26963   rm -f conftest.er1
26964   cat conftest.err >&5
26965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26966   (exit $ac_status); } && {
26967          test -z "$ac_c_werror_flag" ||
26968          test ! -s conftest.err
26969        } && test -s conftest.$ac_objext; then
26970   ac_hi=$ac_mid
26971 else
26972   echo "$as_me: failed program was:" >&5
26973 sed 's/^/| /' conftest.$ac_ext >&5
26974
26975         ac_lo=`expr '(' $ac_mid ')' + 1`
26976 fi
26977
26978 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26979 done
26980 case $ac_lo in
26981 ?*) ac_cv_sizeof_short=$ac_lo;;
26982 '') if test "$ac_cv_type_short" = yes; then
26983      { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
26984 See \`config.log' for more details." >&5
26985 echo "$as_me: error: cannot compute sizeof (short)
26986 See \`config.log' for more details." >&2;}
26987    { (exit 77); exit 77; }; }
26988    else
26989      ac_cv_sizeof_short=0
26990    fi ;;
26991 esac
26992 else
26993   cat >conftest.$ac_ext <<_ACEOF
26994 /* confdefs.h.  */
26995 _ACEOF
26996 cat confdefs.h >>conftest.$ac_ext
26997 cat >>conftest.$ac_ext <<_ACEOF
26998 /* end confdefs.h.  */
26999 $ac_includes_default
27000    typedef short ac__type_sizeof_;
27001 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
27002 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
27003 @%:@include <stdio.h>
27004 @%:@include <stdlib.h>
27005 int
27006 main ()
27007 {
27008
27009   FILE *f = fopen ("conftest.val", "w");
27010   if (! f)
27011     return 1;
27012   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
27013     {
27014       long int i = longval ();
27015       if (i != ((long int) (sizeof (ac__type_sizeof_))))
27016         return 1;
27017       fprintf (f, "%ld\n", i);
27018     }
27019   else
27020     {
27021       unsigned long int i = ulongval ();
27022       if (i != ((long int) (sizeof (ac__type_sizeof_))))
27023         return 1;
27024       fprintf (f, "%lu\n", i);
27025     }
27026   return ferror (f) || fclose (f) != 0;
27027
27028   ;
27029   return 0;
27030 }
27031 _ACEOF
27032 rm -f conftest$ac_exeext
27033 if { (ac_try="$ac_link"
27034 case "(($ac_try" in
27035   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27036   *) ac_try_echo=$ac_try;;
27037 esac
27038 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27039   (eval "$ac_link") 2>&5
27040   ac_status=$?
27041   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27042   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27043   { (case "(($ac_try" in
27044   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27045   *) ac_try_echo=$ac_try;;
27046 esac
27047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27048   (eval "$ac_try") 2>&5
27049   ac_status=$?
27050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27051   (exit $ac_status); }; }; then
27052   ac_cv_sizeof_short=`cat conftest.val`
27053 else
27054   echo "$as_me: program exited with status $ac_status" >&5
27055 echo "$as_me: failed program was:" >&5
27056 sed 's/^/| /' conftest.$ac_ext >&5
27057
27058 ( exit $ac_status )
27059 if test "$ac_cv_type_short" = yes; then
27060      { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
27061 See \`config.log' for more details." >&5
27062 echo "$as_me: error: cannot compute sizeof (short)
27063 See \`config.log' for more details." >&2;}
27064    { (exit 77); exit 77; }; }
27065    else
27066      ac_cv_sizeof_short=0
27067    fi
27068 fi
27069 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27070 fi
27071 rm -f conftest.val
27072 fi
27073 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
27074 echo "${ECHO_T}$ac_cv_sizeof_short" >&6; }
27075
27076
27077
27078 cat >>confdefs.h <<_ACEOF
27079 @%:@define SIZEOF_SHORT $ac_cv_sizeof_short
27080 _ACEOF
27081
27082
27083 { echo "$as_me:$LINENO: checking for int" >&5
27084 echo $ECHO_N "checking for int... $ECHO_C" >&6; }
27085 if test "${ac_cv_type_int+set}" = set; then
27086   echo $ECHO_N "(cached) $ECHO_C" >&6
27087 else
27088   cat >conftest.$ac_ext <<_ACEOF
27089 /* confdefs.h.  */
27090 _ACEOF
27091 cat confdefs.h >>conftest.$ac_ext
27092 cat >>conftest.$ac_ext <<_ACEOF
27093 /* end confdefs.h.  */
27094 $ac_includes_default
27095 typedef int ac__type_new_;
27096 int
27097 main ()
27098 {
27099 if ((ac__type_new_ *) 0)
27100   return 0;
27101 if (sizeof (ac__type_new_))
27102   return 0;
27103   ;
27104   return 0;
27105 }
27106 _ACEOF
27107 rm -f conftest.$ac_objext
27108 if { (ac_try="$ac_compile"
27109 case "(($ac_try" in
27110   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27111   *) ac_try_echo=$ac_try;;
27112 esac
27113 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27114   (eval "$ac_compile") 2>conftest.er1
27115   ac_status=$?
27116   grep -v '^ *+' conftest.er1 >conftest.err
27117   rm -f conftest.er1
27118   cat conftest.err >&5
27119   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27120   (exit $ac_status); } && {
27121          test -z "$ac_c_werror_flag" ||
27122          test ! -s conftest.err
27123        } && test -s conftest.$ac_objext; then
27124   ac_cv_type_int=yes
27125 else
27126   echo "$as_me: failed program was:" >&5
27127 sed 's/^/| /' conftest.$ac_ext >&5
27128
27129         ac_cv_type_int=no
27130 fi
27131
27132 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27133 fi
27134 { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
27135 echo "${ECHO_T}$ac_cv_type_int" >&6; }
27136
27137 # The cast to long int works around a bug in the HP C Compiler
27138 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27139 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27140 # This bug is HP SR number 8606223364.
27141 { echo "$as_me:$LINENO: checking size of int" >&5
27142 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
27143 if test "${ac_cv_sizeof_int+set}" = set; then
27144   echo $ECHO_N "(cached) $ECHO_C" >&6
27145 else
27146   if test "$cross_compiling" = yes; then
27147   # Depending upon the size, compute the lo and hi bounds.
27148 cat >conftest.$ac_ext <<_ACEOF
27149 /* confdefs.h.  */
27150 _ACEOF
27151 cat confdefs.h >>conftest.$ac_ext
27152 cat >>conftest.$ac_ext <<_ACEOF
27153 /* end confdefs.h.  */
27154 $ac_includes_default
27155    typedef int ac__type_sizeof_;
27156 int
27157 main ()
27158 {
27159 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)@:>@;
27160 test_array @<:@0@:>@ = 0
27161
27162   ;
27163   return 0;
27164 }
27165 _ACEOF
27166 rm -f conftest.$ac_objext
27167 if { (ac_try="$ac_compile"
27168 case "(($ac_try" in
27169   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27170   *) ac_try_echo=$ac_try;;
27171 esac
27172 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27173   (eval "$ac_compile") 2>conftest.er1
27174   ac_status=$?
27175   grep -v '^ *+' conftest.er1 >conftest.err
27176   rm -f conftest.er1
27177   cat conftest.err >&5
27178   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27179   (exit $ac_status); } && {
27180          test -z "$ac_c_werror_flag" ||
27181          test ! -s conftest.err
27182        } && test -s conftest.$ac_objext; then
27183   ac_lo=0 ac_mid=0
27184   while :; do
27185     cat >conftest.$ac_ext <<_ACEOF
27186 /* confdefs.h.  */
27187 _ACEOF
27188 cat confdefs.h >>conftest.$ac_ext
27189 cat >>conftest.$ac_ext <<_ACEOF
27190 /* end confdefs.h.  */
27191 $ac_includes_default
27192    typedef int ac__type_sizeof_;
27193 int
27194 main ()
27195 {
27196 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)@:>@;
27197 test_array @<:@0@:>@ = 0
27198
27199   ;
27200   return 0;
27201 }
27202 _ACEOF
27203 rm -f conftest.$ac_objext
27204 if { (ac_try="$ac_compile"
27205 case "(($ac_try" in
27206   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27207   *) ac_try_echo=$ac_try;;
27208 esac
27209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27210   (eval "$ac_compile") 2>conftest.er1
27211   ac_status=$?
27212   grep -v '^ *+' conftest.er1 >conftest.err
27213   rm -f conftest.er1
27214   cat conftest.err >&5
27215   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27216   (exit $ac_status); } && {
27217          test -z "$ac_c_werror_flag" ||
27218          test ! -s conftest.err
27219        } && test -s conftest.$ac_objext; then
27220   ac_hi=$ac_mid; break
27221 else
27222   echo "$as_me: failed program was:" >&5
27223 sed 's/^/| /' conftest.$ac_ext >&5
27224
27225         ac_lo=`expr $ac_mid + 1`
27226                         if test $ac_lo -le $ac_mid; then
27227                           ac_lo= ac_hi=
27228                           break
27229                         fi
27230                         ac_mid=`expr 2 '*' $ac_mid + 1`
27231 fi
27232
27233 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27234   done
27235 else
27236   echo "$as_me: failed program was:" >&5
27237 sed 's/^/| /' conftest.$ac_ext >&5
27238
27239         cat >conftest.$ac_ext <<_ACEOF
27240 /* confdefs.h.  */
27241 _ACEOF
27242 cat confdefs.h >>conftest.$ac_ext
27243 cat >>conftest.$ac_ext <<_ACEOF
27244 /* end confdefs.h.  */
27245 $ac_includes_default
27246    typedef int ac__type_sizeof_;
27247 int
27248 main ()
27249 {
27250 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)@:>@;
27251 test_array @<:@0@:>@ = 0
27252
27253   ;
27254   return 0;
27255 }
27256 _ACEOF
27257 rm -f conftest.$ac_objext
27258 if { (ac_try="$ac_compile"
27259 case "(($ac_try" in
27260   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27261   *) ac_try_echo=$ac_try;;
27262 esac
27263 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27264   (eval "$ac_compile") 2>conftest.er1
27265   ac_status=$?
27266   grep -v '^ *+' conftest.er1 >conftest.err
27267   rm -f conftest.er1
27268   cat conftest.err >&5
27269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27270   (exit $ac_status); } && {
27271          test -z "$ac_c_werror_flag" ||
27272          test ! -s conftest.err
27273        } && test -s conftest.$ac_objext; then
27274   ac_hi=-1 ac_mid=-1
27275   while :; do
27276     cat >conftest.$ac_ext <<_ACEOF
27277 /* confdefs.h.  */
27278 _ACEOF
27279 cat confdefs.h >>conftest.$ac_ext
27280 cat >>conftest.$ac_ext <<_ACEOF
27281 /* end confdefs.h.  */
27282 $ac_includes_default
27283    typedef int ac__type_sizeof_;
27284 int
27285 main ()
27286 {
27287 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)@:>@;
27288 test_array @<:@0@:>@ = 0
27289
27290   ;
27291   return 0;
27292 }
27293 _ACEOF
27294 rm -f conftest.$ac_objext
27295 if { (ac_try="$ac_compile"
27296 case "(($ac_try" in
27297   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27298   *) ac_try_echo=$ac_try;;
27299 esac
27300 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27301   (eval "$ac_compile") 2>conftest.er1
27302   ac_status=$?
27303   grep -v '^ *+' conftest.er1 >conftest.err
27304   rm -f conftest.er1
27305   cat conftest.err >&5
27306   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27307   (exit $ac_status); } && {
27308          test -z "$ac_c_werror_flag" ||
27309          test ! -s conftest.err
27310        } && test -s conftest.$ac_objext; then
27311   ac_lo=$ac_mid; break
27312 else
27313   echo "$as_me: failed program was:" >&5
27314 sed 's/^/| /' conftest.$ac_ext >&5
27315
27316         ac_hi=`expr '(' $ac_mid ')' - 1`
27317                         if test $ac_mid -le $ac_hi; then
27318                           ac_lo= ac_hi=
27319                           break
27320                         fi
27321                         ac_mid=`expr 2 '*' $ac_mid`
27322 fi
27323
27324 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27325   done
27326 else
27327   echo "$as_me: failed program was:" >&5
27328 sed 's/^/| /' conftest.$ac_ext >&5
27329
27330         ac_lo= ac_hi=
27331 fi
27332
27333 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27334 fi
27335
27336 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27337 # Binary search between lo and hi bounds.
27338 while test "x$ac_lo" != "x$ac_hi"; do
27339   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
27340   cat >conftest.$ac_ext <<_ACEOF
27341 /* confdefs.h.  */
27342 _ACEOF
27343 cat confdefs.h >>conftest.$ac_ext
27344 cat >>conftest.$ac_ext <<_ACEOF
27345 /* end confdefs.h.  */
27346 $ac_includes_default
27347    typedef int ac__type_sizeof_;
27348 int
27349 main ()
27350 {
27351 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)@:>@;
27352 test_array @<:@0@:>@ = 0
27353
27354   ;
27355   return 0;
27356 }
27357 _ACEOF
27358 rm -f conftest.$ac_objext
27359 if { (ac_try="$ac_compile"
27360 case "(($ac_try" in
27361   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27362   *) ac_try_echo=$ac_try;;
27363 esac
27364 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27365   (eval "$ac_compile") 2>conftest.er1
27366   ac_status=$?
27367   grep -v '^ *+' conftest.er1 >conftest.err
27368   rm -f conftest.er1
27369   cat conftest.err >&5
27370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27371   (exit $ac_status); } && {
27372          test -z "$ac_c_werror_flag" ||
27373          test ! -s conftest.err
27374        } && test -s conftest.$ac_objext; then
27375   ac_hi=$ac_mid
27376 else
27377   echo "$as_me: failed program was:" >&5
27378 sed 's/^/| /' conftest.$ac_ext >&5
27379
27380         ac_lo=`expr '(' $ac_mid ')' + 1`
27381 fi
27382
27383 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27384 done
27385 case $ac_lo in
27386 ?*) ac_cv_sizeof_int=$ac_lo;;
27387 '') if test "$ac_cv_type_int" = yes; then
27388      { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
27389 See \`config.log' for more details." >&5
27390 echo "$as_me: error: cannot compute sizeof (int)
27391 See \`config.log' for more details." >&2;}
27392    { (exit 77); exit 77; }; }
27393    else
27394      ac_cv_sizeof_int=0
27395    fi ;;
27396 esac
27397 else
27398   cat >conftest.$ac_ext <<_ACEOF
27399 /* confdefs.h.  */
27400 _ACEOF
27401 cat confdefs.h >>conftest.$ac_ext
27402 cat >>conftest.$ac_ext <<_ACEOF
27403 /* end confdefs.h.  */
27404 $ac_includes_default
27405    typedef int ac__type_sizeof_;
27406 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
27407 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
27408 @%:@include <stdio.h>
27409 @%:@include <stdlib.h>
27410 int
27411 main ()
27412 {
27413
27414   FILE *f = fopen ("conftest.val", "w");
27415   if (! f)
27416     return 1;
27417   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
27418     {
27419       long int i = longval ();
27420       if (i != ((long int) (sizeof (ac__type_sizeof_))))
27421         return 1;
27422       fprintf (f, "%ld\n", i);
27423     }
27424   else
27425     {
27426       unsigned long int i = ulongval ();
27427       if (i != ((long int) (sizeof (ac__type_sizeof_))))
27428         return 1;
27429       fprintf (f, "%lu\n", i);
27430     }
27431   return ferror (f) || fclose (f) != 0;
27432
27433   ;
27434   return 0;
27435 }
27436 _ACEOF
27437 rm -f conftest$ac_exeext
27438 if { (ac_try="$ac_link"
27439 case "(($ac_try" in
27440   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27441   *) ac_try_echo=$ac_try;;
27442 esac
27443 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27444   (eval "$ac_link") 2>&5
27445   ac_status=$?
27446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27447   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27448   { (case "(($ac_try" in
27449   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27450   *) ac_try_echo=$ac_try;;
27451 esac
27452 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27453   (eval "$ac_try") 2>&5
27454   ac_status=$?
27455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27456   (exit $ac_status); }; }; then
27457   ac_cv_sizeof_int=`cat conftest.val`
27458 else
27459   echo "$as_me: program exited with status $ac_status" >&5
27460 echo "$as_me: failed program was:" >&5
27461 sed 's/^/| /' conftest.$ac_ext >&5
27462
27463 ( exit $ac_status )
27464 if test "$ac_cv_type_int" = yes; then
27465      { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
27466 See \`config.log' for more details." >&5
27467 echo "$as_me: error: cannot compute sizeof (int)
27468 See \`config.log' for more details." >&2;}
27469    { (exit 77); exit 77; }; }
27470    else
27471      ac_cv_sizeof_int=0
27472    fi
27473 fi
27474 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27475 fi
27476 rm -f conftest.val
27477 fi
27478 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
27479 echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
27480
27481
27482
27483 cat >>confdefs.h <<_ACEOF
27484 @%:@define SIZEOF_INT $ac_cv_sizeof_int
27485 _ACEOF
27486
27487
27488 { echo "$as_me:$LINENO: checking for long" >&5
27489 echo $ECHO_N "checking for long... $ECHO_C" >&6; }
27490 if test "${ac_cv_type_long+set}" = set; then
27491   echo $ECHO_N "(cached) $ECHO_C" >&6
27492 else
27493   cat >conftest.$ac_ext <<_ACEOF
27494 /* confdefs.h.  */
27495 _ACEOF
27496 cat confdefs.h >>conftest.$ac_ext
27497 cat >>conftest.$ac_ext <<_ACEOF
27498 /* end confdefs.h.  */
27499 $ac_includes_default
27500 typedef long ac__type_new_;
27501 int
27502 main ()
27503 {
27504 if ((ac__type_new_ *) 0)
27505   return 0;
27506 if (sizeof (ac__type_new_))
27507   return 0;
27508   ;
27509   return 0;
27510 }
27511 _ACEOF
27512 rm -f conftest.$ac_objext
27513 if { (ac_try="$ac_compile"
27514 case "(($ac_try" in
27515   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27516   *) ac_try_echo=$ac_try;;
27517 esac
27518 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27519   (eval "$ac_compile") 2>conftest.er1
27520   ac_status=$?
27521   grep -v '^ *+' conftest.er1 >conftest.err
27522   rm -f conftest.er1
27523   cat conftest.err >&5
27524   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27525   (exit $ac_status); } && {
27526          test -z "$ac_c_werror_flag" ||
27527          test ! -s conftest.err
27528        } && test -s conftest.$ac_objext; then
27529   ac_cv_type_long=yes
27530 else
27531   echo "$as_me: failed program was:" >&5
27532 sed 's/^/| /' conftest.$ac_ext >&5
27533
27534         ac_cv_type_long=no
27535 fi
27536
27537 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27538 fi
27539 { echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
27540 echo "${ECHO_T}$ac_cv_type_long" >&6; }
27541
27542 # The cast to long int works around a bug in the HP C Compiler
27543 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27544 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27545 # This bug is HP SR number 8606223364.
27546 { echo "$as_me:$LINENO: checking size of long" >&5
27547 echo $ECHO_N "checking size of long... $ECHO_C" >&6; }
27548 if test "${ac_cv_sizeof_long+set}" = set; then
27549   echo $ECHO_N "(cached) $ECHO_C" >&6
27550 else
27551   if test "$cross_compiling" = yes; then
27552   # Depending upon the size, compute the lo and hi bounds.
27553 cat >conftest.$ac_ext <<_ACEOF
27554 /* confdefs.h.  */
27555 _ACEOF
27556 cat confdefs.h >>conftest.$ac_ext
27557 cat >>conftest.$ac_ext <<_ACEOF
27558 /* end confdefs.h.  */
27559 $ac_includes_default
27560    typedef long ac__type_sizeof_;
27561 int
27562 main ()
27563 {
27564 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)@:>@;
27565 test_array @<:@0@:>@ = 0
27566
27567   ;
27568   return 0;
27569 }
27570 _ACEOF
27571 rm -f conftest.$ac_objext
27572 if { (ac_try="$ac_compile"
27573 case "(($ac_try" in
27574   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27575   *) ac_try_echo=$ac_try;;
27576 esac
27577 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27578   (eval "$ac_compile") 2>conftest.er1
27579   ac_status=$?
27580   grep -v '^ *+' conftest.er1 >conftest.err
27581   rm -f conftest.er1
27582   cat conftest.err >&5
27583   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27584   (exit $ac_status); } && {
27585          test -z "$ac_c_werror_flag" ||
27586          test ! -s conftest.err
27587        } && test -s conftest.$ac_objext; then
27588   ac_lo=0 ac_mid=0
27589   while :; do
27590     cat >conftest.$ac_ext <<_ACEOF
27591 /* confdefs.h.  */
27592 _ACEOF
27593 cat confdefs.h >>conftest.$ac_ext
27594 cat >>conftest.$ac_ext <<_ACEOF
27595 /* end confdefs.h.  */
27596 $ac_includes_default
27597    typedef long ac__type_sizeof_;
27598 int
27599 main ()
27600 {
27601 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)@:>@;
27602 test_array @<:@0@:>@ = 0
27603
27604   ;
27605   return 0;
27606 }
27607 _ACEOF
27608 rm -f conftest.$ac_objext
27609 if { (ac_try="$ac_compile"
27610 case "(($ac_try" in
27611   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27612   *) ac_try_echo=$ac_try;;
27613 esac
27614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27615   (eval "$ac_compile") 2>conftest.er1
27616   ac_status=$?
27617   grep -v '^ *+' conftest.er1 >conftest.err
27618   rm -f conftest.er1
27619   cat conftest.err >&5
27620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27621   (exit $ac_status); } && {
27622          test -z "$ac_c_werror_flag" ||
27623          test ! -s conftest.err
27624        } && test -s conftest.$ac_objext; then
27625   ac_hi=$ac_mid; break
27626 else
27627   echo "$as_me: failed program was:" >&5
27628 sed 's/^/| /' conftest.$ac_ext >&5
27629
27630         ac_lo=`expr $ac_mid + 1`
27631                         if test $ac_lo -le $ac_mid; then
27632                           ac_lo= ac_hi=
27633                           break
27634                         fi
27635                         ac_mid=`expr 2 '*' $ac_mid + 1`
27636 fi
27637
27638 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27639   done
27640 else
27641   echo "$as_me: failed program was:" >&5
27642 sed 's/^/| /' conftest.$ac_ext >&5
27643
27644         cat >conftest.$ac_ext <<_ACEOF
27645 /* confdefs.h.  */
27646 _ACEOF
27647 cat confdefs.h >>conftest.$ac_ext
27648 cat >>conftest.$ac_ext <<_ACEOF
27649 /* end confdefs.h.  */
27650 $ac_includes_default
27651    typedef long ac__type_sizeof_;
27652 int
27653 main ()
27654 {
27655 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)@:>@;
27656 test_array @<:@0@:>@ = 0
27657
27658   ;
27659   return 0;
27660 }
27661 _ACEOF
27662 rm -f conftest.$ac_objext
27663 if { (ac_try="$ac_compile"
27664 case "(($ac_try" in
27665   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27666   *) ac_try_echo=$ac_try;;
27667 esac
27668 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27669   (eval "$ac_compile") 2>conftest.er1
27670   ac_status=$?
27671   grep -v '^ *+' conftest.er1 >conftest.err
27672   rm -f conftest.er1
27673   cat conftest.err >&5
27674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27675   (exit $ac_status); } && {
27676          test -z "$ac_c_werror_flag" ||
27677          test ! -s conftest.err
27678        } && test -s conftest.$ac_objext; then
27679   ac_hi=-1 ac_mid=-1
27680   while :; do
27681     cat >conftest.$ac_ext <<_ACEOF
27682 /* confdefs.h.  */
27683 _ACEOF
27684 cat confdefs.h >>conftest.$ac_ext
27685 cat >>conftest.$ac_ext <<_ACEOF
27686 /* end confdefs.h.  */
27687 $ac_includes_default
27688    typedef long ac__type_sizeof_;
27689 int
27690 main ()
27691 {
27692 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)@:>@;
27693 test_array @<:@0@:>@ = 0
27694
27695   ;
27696   return 0;
27697 }
27698 _ACEOF
27699 rm -f conftest.$ac_objext
27700 if { (ac_try="$ac_compile"
27701 case "(($ac_try" in
27702   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27703   *) ac_try_echo=$ac_try;;
27704 esac
27705 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27706   (eval "$ac_compile") 2>conftest.er1
27707   ac_status=$?
27708   grep -v '^ *+' conftest.er1 >conftest.err
27709   rm -f conftest.er1
27710   cat conftest.err >&5
27711   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27712   (exit $ac_status); } && {
27713          test -z "$ac_c_werror_flag" ||
27714          test ! -s conftest.err
27715        } && test -s conftest.$ac_objext; then
27716   ac_lo=$ac_mid; break
27717 else
27718   echo "$as_me: failed program was:" >&5
27719 sed 's/^/| /' conftest.$ac_ext >&5
27720
27721         ac_hi=`expr '(' $ac_mid ')' - 1`
27722                         if test $ac_mid -le $ac_hi; then
27723                           ac_lo= ac_hi=
27724                           break
27725                         fi
27726                         ac_mid=`expr 2 '*' $ac_mid`
27727 fi
27728
27729 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27730   done
27731 else
27732   echo "$as_me: failed program was:" >&5
27733 sed 's/^/| /' conftest.$ac_ext >&5
27734
27735         ac_lo= ac_hi=
27736 fi
27737
27738 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27739 fi
27740
27741 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27742 # Binary search between lo and hi bounds.
27743 while test "x$ac_lo" != "x$ac_hi"; do
27744   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
27745   cat >conftest.$ac_ext <<_ACEOF
27746 /* confdefs.h.  */
27747 _ACEOF
27748 cat confdefs.h >>conftest.$ac_ext
27749 cat >>conftest.$ac_ext <<_ACEOF
27750 /* end confdefs.h.  */
27751 $ac_includes_default
27752    typedef long ac__type_sizeof_;
27753 int
27754 main ()
27755 {
27756 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)@:>@;
27757 test_array @<:@0@:>@ = 0
27758
27759   ;
27760   return 0;
27761 }
27762 _ACEOF
27763 rm -f conftest.$ac_objext
27764 if { (ac_try="$ac_compile"
27765 case "(($ac_try" in
27766   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27767   *) ac_try_echo=$ac_try;;
27768 esac
27769 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27770   (eval "$ac_compile") 2>conftest.er1
27771   ac_status=$?
27772   grep -v '^ *+' conftest.er1 >conftest.err
27773   rm -f conftest.er1
27774   cat conftest.err >&5
27775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27776   (exit $ac_status); } && {
27777          test -z "$ac_c_werror_flag" ||
27778          test ! -s conftest.err
27779        } && test -s conftest.$ac_objext; then
27780   ac_hi=$ac_mid
27781 else
27782   echo "$as_me: failed program was:" >&5
27783 sed 's/^/| /' conftest.$ac_ext >&5
27784
27785         ac_lo=`expr '(' $ac_mid ')' + 1`
27786 fi
27787
27788 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27789 done
27790 case $ac_lo in
27791 ?*) ac_cv_sizeof_long=$ac_lo;;
27792 '') if test "$ac_cv_type_long" = yes; then
27793      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
27794 See \`config.log' for more details." >&5
27795 echo "$as_me: error: cannot compute sizeof (long)
27796 See \`config.log' for more details." >&2;}
27797    { (exit 77); exit 77; }; }
27798    else
27799      ac_cv_sizeof_long=0
27800    fi ;;
27801 esac
27802 else
27803   cat >conftest.$ac_ext <<_ACEOF
27804 /* confdefs.h.  */
27805 _ACEOF
27806 cat confdefs.h >>conftest.$ac_ext
27807 cat >>conftest.$ac_ext <<_ACEOF
27808 /* end confdefs.h.  */
27809 $ac_includes_default
27810    typedef long ac__type_sizeof_;
27811 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
27812 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
27813 @%:@include <stdio.h>
27814 @%:@include <stdlib.h>
27815 int
27816 main ()
27817 {
27818
27819   FILE *f = fopen ("conftest.val", "w");
27820   if (! f)
27821     return 1;
27822   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
27823     {
27824       long int i = longval ();
27825       if (i != ((long int) (sizeof (ac__type_sizeof_))))
27826         return 1;
27827       fprintf (f, "%ld\n", i);
27828     }
27829   else
27830     {
27831       unsigned long int i = ulongval ();
27832       if (i != ((long int) (sizeof (ac__type_sizeof_))))
27833         return 1;
27834       fprintf (f, "%lu\n", i);
27835     }
27836   return ferror (f) || fclose (f) != 0;
27837
27838   ;
27839   return 0;
27840 }
27841 _ACEOF
27842 rm -f conftest$ac_exeext
27843 if { (ac_try="$ac_link"
27844 case "(($ac_try" in
27845   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27846   *) ac_try_echo=$ac_try;;
27847 esac
27848 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27849   (eval "$ac_link") 2>&5
27850   ac_status=$?
27851   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27852   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27853   { (case "(($ac_try" in
27854   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27855   *) ac_try_echo=$ac_try;;
27856 esac
27857 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27858   (eval "$ac_try") 2>&5
27859   ac_status=$?
27860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27861   (exit $ac_status); }; }; then
27862   ac_cv_sizeof_long=`cat conftest.val`
27863 else
27864   echo "$as_me: program exited with status $ac_status" >&5
27865 echo "$as_me: failed program was:" >&5
27866 sed 's/^/| /' conftest.$ac_ext >&5
27867
27868 ( exit $ac_status )
27869 if test "$ac_cv_type_long" = yes; then
27870      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
27871 See \`config.log' for more details." >&5
27872 echo "$as_me: error: cannot compute sizeof (long)
27873 See \`config.log' for more details." >&2;}
27874    { (exit 77); exit 77; }; }
27875    else
27876      ac_cv_sizeof_long=0
27877    fi
27878 fi
27879 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27880 fi
27881 rm -f conftest.val
27882 fi
27883 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
27884 echo "${ECHO_T}$ac_cv_sizeof_long" >&6; }
27885
27886
27887
27888 cat >>confdefs.h <<_ACEOF
27889 @%:@define SIZEOF_LONG $ac_cv_sizeof_long
27890 _ACEOF
27891
27892
27893 { echo "$as_me:$LINENO: checking for size_t" >&5
27894 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
27895 if test "${ac_cv_type_size_t+set}" = set; then
27896   echo $ECHO_N "(cached) $ECHO_C" >&6
27897 else
27898   cat >conftest.$ac_ext <<_ACEOF
27899 /* confdefs.h.  */
27900 _ACEOF
27901 cat confdefs.h >>conftest.$ac_ext
27902 cat >>conftest.$ac_ext <<_ACEOF
27903 /* end confdefs.h.  */
27904 $ac_includes_default
27905 typedef size_t ac__type_new_;
27906 int
27907 main ()
27908 {
27909 if ((ac__type_new_ *) 0)
27910   return 0;
27911 if (sizeof (ac__type_new_))
27912   return 0;
27913   ;
27914   return 0;
27915 }
27916 _ACEOF
27917 rm -f conftest.$ac_objext
27918 if { (ac_try="$ac_compile"
27919 case "(($ac_try" in
27920   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27921   *) ac_try_echo=$ac_try;;
27922 esac
27923 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27924   (eval "$ac_compile") 2>conftest.er1
27925   ac_status=$?
27926   grep -v '^ *+' conftest.er1 >conftest.err
27927   rm -f conftest.er1
27928   cat conftest.err >&5
27929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27930   (exit $ac_status); } && {
27931          test -z "$ac_c_werror_flag" ||
27932          test ! -s conftest.err
27933        } && test -s conftest.$ac_objext; then
27934   ac_cv_type_size_t=yes
27935 else
27936   echo "$as_me: failed program was:" >&5
27937 sed 's/^/| /' conftest.$ac_ext >&5
27938
27939         ac_cv_type_size_t=no
27940 fi
27941
27942 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27943 fi
27944 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
27945 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
27946
27947 # The cast to long int works around a bug in the HP C Compiler
27948 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27949 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27950 # This bug is HP SR number 8606223364.
27951 { echo "$as_me:$LINENO: checking size of size_t" >&5
27952 echo $ECHO_N "checking size of size_t... $ECHO_C" >&6; }
27953 if test "${ac_cv_sizeof_size_t+set}" = set; then
27954   echo $ECHO_N "(cached) $ECHO_C" >&6
27955 else
27956   if test "$cross_compiling" = yes; then
27957   # Depending upon the size, compute the lo and hi bounds.
27958 cat >conftest.$ac_ext <<_ACEOF
27959 /* confdefs.h.  */
27960 _ACEOF
27961 cat confdefs.h >>conftest.$ac_ext
27962 cat >>conftest.$ac_ext <<_ACEOF
27963 /* end confdefs.h.  */
27964 $ac_includes_default
27965    typedef size_t ac__type_sizeof_;
27966 int
27967 main ()
27968 {
27969 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)@:>@;
27970 test_array @<:@0@:>@ = 0
27971
27972   ;
27973   return 0;
27974 }
27975 _ACEOF
27976 rm -f conftest.$ac_objext
27977 if { (ac_try="$ac_compile"
27978 case "(($ac_try" in
27979   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27980   *) ac_try_echo=$ac_try;;
27981 esac
27982 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27983   (eval "$ac_compile") 2>conftest.er1
27984   ac_status=$?
27985   grep -v '^ *+' conftest.er1 >conftest.err
27986   rm -f conftest.er1
27987   cat conftest.err >&5
27988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27989   (exit $ac_status); } && {
27990          test -z "$ac_c_werror_flag" ||
27991          test ! -s conftest.err
27992        } && test -s conftest.$ac_objext; then
27993   ac_lo=0 ac_mid=0
27994   while :; do
27995     cat >conftest.$ac_ext <<_ACEOF
27996 /* confdefs.h.  */
27997 _ACEOF
27998 cat confdefs.h >>conftest.$ac_ext
27999 cat >>conftest.$ac_ext <<_ACEOF
28000 /* end confdefs.h.  */
28001 $ac_includes_default
28002    typedef size_t ac__type_sizeof_;
28003 int
28004 main ()
28005 {
28006 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)@:>@;
28007 test_array @<:@0@:>@ = 0
28008
28009   ;
28010   return 0;
28011 }
28012 _ACEOF
28013 rm -f conftest.$ac_objext
28014 if { (ac_try="$ac_compile"
28015 case "(($ac_try" in
28016   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28017   *) ac_try_echo=$ac_try;;
28018 esac
28019 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28020   (eval "$ac_compile") 2>conftest.er1
28021   ac_status=$?
28022   grep -v '^ *+' conftest.er1 >conftest.err
28023   rm -f conftest.er1
28024   cat conftest.err >&5
28025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28026   (exit $ac_status); } && {
28027          test -z "$ac_c_werror_flag" ||
28028          test ! -s conftest.err
28029        } && test -s conftest.$ac_objext; then
28030   ac_hi=$ac_mid; break
28031 else
28032   echo "$as_me: failed program was:" >&5
28033 sed 's/^/| /' conftest.$ac_ext >&5
28034
28035         ac_lo=`expr $ac_mid + 1`
28036                         if test $ac_lo -le $ac_mid; then
28037                           ac_lo= ac_hi=
28038                           break
28039                         fi
28040                         ac_mid=`expr 2 '*' $ac_mid + 1`
28041 fi
28042
28043 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28044   done
28045 else
28046   echo "$as_me: failed program was:" >&5
28047 sed 's/^/| /' conftest.$ac_ext >&5
28048
28049         cat >conftest.$ac_ext <<_ACEOF
28050 /* confdefs.h.  */
28051 _ACEOF
28052 cat confdefs.h >>conftest.$ac_ext
28053 cat >>conftest.$ac_ext <<_ACEOF
28054 /* end confdefs.h.  */
28055 $ac_includes_default
28056    typedef size_t ac__type_sizeof_;
28057 int
28058 main ()
28059 {
28060 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)@:>@;
28061 test_array @<:@0@:>@ = 0
28062
28063   ;
28064   return 0;
28065 }
28066 _ACEOF
28067 rm -f conftest.$ac_objext
28068 if { (ac_try="$ac_compile"
28069 case "(($ac_try" in
28070   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28071   *) ac_try_echo=$ac_try;;
28072 esac
28073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28074   (eval "$ac_compile") 2>conftest.er1
28075   ac_status=$?
28076   grep -v '^ *+' conftest.er1 >conftest.err
28077   rm -f conftest.er1
28078   cat conftest.err >&5
28079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28080   (exit $ac_status); } && {
28081          test -z "$ac_c_werror_flag" ||
28082          test ! -s conftest.err
28083        } && test -s conftest.$ac_objext; then
28084   ac_hi=-1 ac_mid=-1
28085   while :; do
28086     cat >conftest.$ac_ext <<_ACEOF
28087 /* confdefs.h.  */
28088 _ACEOF
28089 cat confdefs.h >>conftest.$ac_ext
28090 cat >>conftest.$ac_ext <<_ACEOF
28091 /* end confdefs.h.  */
28092 $ac_includes_default
28093    typedef size_t ac__type_sizeof_;
28094 int
28095 main ()
28096 {
28097 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)@:>@;
28098 test_array @<:@0@:>@ = 0
28099
28100   ;
28101   return 0;
28102 }
28103 _ACEOF
28104 rm -f conftest.$ac_objext
28105 if { (ac_try="$ac_compile"
28106 case "(($ac_try" in
28107   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28108   *) ac_try_echo=$ac_try;;
28109 esac
28110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28111   (eval "$ac_compile") 2>conftest.er1
28112   ac_status=$?
28113   grep -v '^ *+' conftest.er1 >conftest.err
28114   rm -f conftest.er1
28115   cat conftest.err >&5
28116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28117   (exit $ac_status); } && {
28118          test -z "$ac_c_werror_flag" ||
28119          test ! -s conftest.err
28120        } && test -s conftest.$ac_objext; then
28121   ac_lo=$ac_mid; break
28122 else
28123   echo "$as_me: failed program was:" >&5
28124 sed 's/^/| /' conftest.$ac_ext >&5
28125
28126         ac_hi=`expr '(' $ac_mid ')' - 1`
28127                         if test $ac_mid -le $ac_hi; then
28128                           ac_lo= ac_hi=
28129                           break
28130                         fi
28131                         ac_mid=`expr 2 '*' $ac_mid`
28132 fi
28133
28134 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28135   done
28136 else
28137   echo "$as_me: failed program was:" >&5
28138 sed 's/^/| /' conftest.$ac_ext >&5
28139
28140         ac_lo= ac_hi=
28141 fi
28142
28143 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28144 fi
28145
28146 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28147 # Binary search between lo and hi bounds.
28148 while test "x$ac_lo" != "x$ac_hi"; do
28149   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
28150   cat >conftest.$ac_ext <<_ACEOF
28151 /* confdefs.h.  */
28152 _ACEOF
28153 cat confdefs.h >>conftest.$ac_ext
28154 cat >>conftest.$ac_ext <<_ACEOF
28155 /* end confdefs.h.  */
28156 $ac_includes_default
28157    typedef size_t ac__type_sizeof_;
28158 int
28159 main ()
28160 {
28161 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)@:>@;
28162 test_array @<:@0@:>@ = 0
28163
28164   ;
28165   return 0;
28166 }
28167 _ACEOF
28168 rm -f conftest.$ac_objext
28169 if { (ac_try="$ac_compile"
28170 case "(($ac_try" in
28171   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28172   *) ac_try_echo=$ac_try;;
28173 esac
28174 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28175   (eval "$ac_compile") 2>conftest.er1
28176   ac_status=$?
28177   grep -v '^ *+' conftest.er1 >conftest.err
28178   rm -f conftest.er1
28179   cat conftest.err >&5
28180   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28181   (exit $ac_status); } && {
28182          test -z "$ac_c_werror_flag" ||
28183          test ! -s conftest.err
28184        } && test -s conftest.$ac_objext; then
28185   ac_hi=$ac_mid
28186 else
28187   echo "$as_me: failed program was:" >&5
28188 sed 's/^/| /' conftest.$ac_ext >&5
28189
28190         ac_lo=`expr '(' $ac_mid ')' + 1`
28191 fi
28192
28193 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28194 done
28195 case $ac_lo in
28196 ?*) ac_cv_sizeof_size_t=$ac_lo;;
28197 '') if test "$ac_cv_type_size_t" = yes; then
28198      { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
28199 See \`config.log' for more details." >&5
28200 echo "$as_me: error: cannot compute sizeof (size_t)
28201 See \`config.log' for more details." >&2;}
28202    { (exit 77); exit 77; }; }
28203    else
28204      ac_cv_sizeof_size_t=0
28205    fi ;;
28206 esac
28207 else
28208   cat >conftest.$ac_ext <<_ACEOF
28209 /* confdefs.h.  */
28210 _ACEOF
28211 cat confdefs.h >>conftest.$ac_ext
28212 cat >>conftest.$ac_ext <<_ACEOF
28213 /* end confdefs.h.  */
28214 $ac_includes_default
28215    typedef size_t ac__type_sizeof_;
28216 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
28217 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
28218 @%:@include <stdio.h>
28219 @%:@include <stdlib.h>
28220 int
28221 main ()
28222 {
28223
28224   FILE *f = fopen ("conftest.val", "w");
28225   if (! f)
28226     return 1;
28227   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
28228     {
28229       long int i = longval ();
28230       if (i != ((long int) (sizeof (ac__type_sizeof_))))
28231         return 1;
28232       fprintf (f, "%ld\n", i);
28233     }
28234   else
28235     {
28236       unsigned long int i = ulongval ();
28237       if (i != ((long int) (sizeof (ac__type_sizeof_))))
28238         return 1;
28239       fprintf (f, "%lu\n", i);
28240     }
28241   return ferror (f) || fclose (f) != 0;
28242
28243   ;
28244   return 0;
28245 }
28246 _ACEOF
28247 rm -f conftest$ac_exeext
28248 if { (ac_try="$ac_link"
28249 case "(($ac_try" in
28250   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28251   *) ac_try_echo=$ac_try;;
28252 esac
28253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28254   (eval "$ac_link") 2>&5
28255   ac_status=$?
28256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28257   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28258   { (case "(($ac_try" in
28259   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28260   *) ac_try_echo=$ac_try;;
28261 esac
28262 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28263   (eval "$ac_try") 2>&5
28264   ac_status=$?
28265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28266   (exit $ac_status); }; }; then
28267   ac_cv_sizeof_size_t=`cat conftest.val`
28268 else
28269   echo "$as_me: program exited with status $ac_status" >&5
28270 echo "$as_me: failed program was:" >&5
28271 sed 's/^/| /' conftest.$ac_ext >&5
28272
28273 ( exit $ac_status )
28274 if test "$ac_cv_type_size_t" = yes; then
28275      { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
28276 See \`config.log' for more details." >&5
28277 echo "$as_me: error: cannot compute sizeof (size_t)
28278 See \`config.log' for more details." >&2;}
28279    { (exit 77); exit 77; }; }
28280    else
28281      ac_cv_sizeof_size_t=0
28282    fi
28283 fi
28284 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28285 fi
28286 rm -f conftest.val
28287 fi
28288 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
28289 echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6; }
28290
28291
28292
28293 cat >>confdefs.h <<_ACEOF
28294 @%:@define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
28295 _ACEOF
28296
28297
28298 { echo "$as_me:$LINENO: checking for socklen_t" >&5
28299 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; }
28300 if test "${ac_cv_type_socklen_t+set}" = set; then
28301   echo $ECHO_N "(cached) $ECHO_C" >&6
28302 else
28303   cat >conftest.$ac_ext <<_ACEOF
28304 /* confdefs.h.  */
28305 _ACEOF
28306 cat confdefs.h >>conftest.$ac_ext
28307 cat >>conftest.$ac_ext <<_ACEOF
28308 /* end confdefs.h.  */
28309 $ac_includes_default
28310 typedef socklen_t ac__type_new_;
28311 int
28312 main ()
28313 {
28314 if ((ac__type_new_ *) 0)
28315   return 0;
28316 if (sizeof (ac__type_new_))
28317   return 0;
28318   ;
28319   return 0;
28320 }
28321 _ACEOF
28322 rm -f conftest.$ac_objext
28323 if { (ac_try="$ac_compile"
28324 case "(($ac_try" in
28325   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28326   *) ac_try_echo=$ac_try;;
28327 esac
28328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28329   (eval "$ac_compile") 2>conftest.er1
28330   ac_status=$?
28331   grep -v '^ *+' conftest.er1 >conftest.err
28332   rm -f conftest.er1
28333   cat conftest.err >&5
28334   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28335   (exit $ac_status); } && {
28336          test -z "$ac_c_werror_flag" ||
28337          test ! -s conftest.err
28338        } && test -s conftest.$ac_objext; then
28339   ac_cv_type_socklen_t=yes
28340 else
28341   echo "$as_me: failed program was:" >&5
28342 sed 's/^/| /' conftest.$ac_ext >&5
28343
28344         ac_cv_type_socklen_t=no
28345 fi
28346
28347 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28348 fi
28349 { echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
28350 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6; }
28351
28352 # The cast to long int works around a bug in the HP C Compiler
28353 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
28354 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
28355 # This bug is HP SR number 8606223364.
28356 { echo "$as_me:$LINENO: checking size of socklen_t" >&5
28357 echo $ECHO_N "checking size of socklen_t... $ECHO_C" >&6; }
28358 if test "${ac_cv_sizeof_socklen_t+set}" = set; then
28359   echo $ECHO_N "(cached) $ECHO_C" >&6
28360 else
28361   if test "$cross_compiling" = yes; then
28362   # Depending upon the size, compute the lo and hi bounds.
28363 cat >conftest.$ac_ext <<_ACEOF
28364 /* confdefs.h.  */
28365 _ACEOF
28366 cat confdefs.h >>conftest.$ac_ext
28367 cat >>conftest.$ac_ext <<_ACEOF
28368 /* end confdefs.h.  */
28369 $ac_includes_default
28370    typedef socklen_t ac__type_sizeof_;
28371 int
28372 main ()
28373 {
28374 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)@:>@;
28375 test_array @<:@0@:>@ = 0
28376
28377   ;
28378   return 0;
28379 }
28380 _ACEOF
28381 rm -f conftest.$ac_objext
28382 if { (ac_try="$ac_compile"
28383 case "(($ac_try" in
28384   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28385   *) ac_try_echo=$ac_try;;
28386 esac
28387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28388   (eval "$ac_compile") 2>conftest.er1
28389   ac_status=$?
28390   grep -v '^ *+' conftest.er1 >conftest.err
28391   rm -f conftest.er1
28392   cat conftest.err >&5
28393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28394   (exit $ac_status); } && {
28395          test -z "$ac_c_werror_flag" ||
28396          test ! -s conftest.err
28397        } && test -s conftest.$ac_objext; then
28398   ac_lo=0 ac_mid=0
28399   while :; do
28400     cat >conftest.$ac_ext <<_ACEOF
28401 /* confdefs.h.  */
28402 _ACEOF
28403 cat confdefs.h >>conftest.$ac_ext
28404 cat >>conftest.$ac_ext <<_ACEOF
28405 /* end confdefs.h.  */
28406 $ac_includes_default
28407    typedef socklen_t ac__type_sizeof_;
28408 int
28409 main ()
28410 {
28411 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)@:>@;
28412 test_array @<:@0@:>@ = 0
28413
28414   ;
28415   return 0;
28416 }
28417 _ACEOF
28418 rm -f conftest.$ac_objext
28419 if { (ac_try="$ac_compile"
28420 case "(($ac_try" in
28421   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28422   *) ac_try_echo=$ac_try;;
28423 esac
28424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28425   (eval "$ac_compile") 2>conftest.er1
28426   ac_status=$?
28427   grep -v '^ *+' conftest.er1 >conftest.err
28428   rm -f conftest.er1
28429   cat conftest.err >&5
28430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28431   (exit $ac_status); } && {
28432          test -z "$ac_c_werror_flag" ||
28433          test ! -s conftest.err
28434        } && test -s conftest.$ac_objext; then
28435   ac_hi=$ac_mid; break
28436 else
28437   echo "$as_me: failed program was:" >&5
28438 sed 's/^/| /' conftest.$ac_ext >&5
28439
28440         ac_lo=`expr $ac_mid + 1`
28441                         if test $ac_lo -le $ac_mid; then
28442                           ac_lo= ac_hi=
28443                           break
28444                         fi
28445                         ac_mid=`expr 2 '*' $ac_mid + 1`
28446 fi
28447
28448 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28449   done
28450 else
28451   echo "$as_me: failed program was:" >&5
28452 sed 's/^/| /' conftest.$ac_ext >&5
28453
28454         cat >conftest.$ac_ext <<_ACEOF
28455 /* confdefs.h.  */
28456 _ACEOF
28457 cat confdefs.h >>conftest.$ac_ext
28458 cat >>conftest.$ac_ext <<_ACEOF
28459 /* end confdefs.h.  */
28460 $ac_includes_default
28461    typedef socklen_t ac__type_sizeof_;
28462 int
28463 main ()
28464 {
28465 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)@:>@;
28466 test_array @<:@0@:>@ = 0
28467
28468   ;
28469   return 0;
28470 }
28471 _ACEOF
28472 rm -f conftest.$ac_objext
28473 if { (ac_try="$ac_compile"
28474 case "(($ac_try" in
28475   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28476   *) ac_try_echo=$ac_try;;
28477 esac
28478 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28479   (eval "$ac_compile") 2>conftest.er1
28480   ac_status=$?
28481   grep -v '^ *+' conftest.er1 >conftest.err
28482   rm -f conftest.er1
28483   cat conftest.err >&5
28484   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28485   (exit $ac_status); } && {
28486          test -z "$ac_c_werror_flag" ||
28487          test ! -s conftest.err
28488        } && test -s conftest.$ac_objext; then
28489   ac_hi=-1 ac_mid=-1
28490   while :; do
28491     cat >conftest.$ac_ext <<_ACEOF
28492 /* confdefs.h.  */
28493 _ACEOF
28494 cat confdefs.h >>conftest.$ac_ext
28495 cat >>conftest.$ac_ext <<_ACEOF
28496 /* end confdefs.h.  */
28497 $ac_includes_default
28498    typedef socklen_t ac__type_sizeof_;
28499 int
28500 main ()
28501 {
28502 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)@:>@;
28503 test_array @<:@0@:>@ = 0
28504
28505   ;
28506   return 0;
28507 }
28508 _ACEOF
28509 rm -f conftest.$ac_objext
28510 if { (ac_try="$ac_compile"
28511 case "(($ac_try" in
28512   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28513   *) ac_try_echo=$ac_try;;
28514 esac
28515 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28516   (eval "$ac_compile") 2>conftest.er1
28517   ac_status=$?
28518   grep -v '^ *+' conftest.er1 >conftest.err
28519   rm -f conftest.er1
28520   cat conftest.err >&5
28521   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28522   (exit $ac_status); } && {
28523          test -z "$ac_c_werror_flag" ||
28524          test ! -s conftest.err
28525        } && test -s conftest.$ac_objext; then
28526   ac_lo=$ac_mid; break
28527 else
28528   echo "$as_me: failed program was:" >&5
28529 sed 's/^/| /' conftest.$ac_ext >&5
28530
28531         ac_hi=`expr '(' $ac_mid ')' - 1`
28532                         if test $ac_mid -le $ac_hi; then
28533                           ac_lo= ac_hi=
28534                           break
28535                         fi
28536                         ac_mid=`expr 2 '*' $ac_mid`
28537 fi
28538
28539 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28540   done
28541 else
28542   echo "$as_me: failed program was:" >&5
28543 sed 's/^/| /' conftest.$ac_ext >&5
28544
28545         ac_lo= ac_hi=
28546 fi
28547
28548 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28549 fi
28550
28551 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28552 # Binary search between lo and hi bounds.
28553 while test "x$ac_lo" != "x$ac_hi"; do
28554   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
28555   cat >conftest.$ac_ext <<_ACEOF
28556 /* confdefs.h.  */
28557 _ACEOF
28558 cat confdefs.h >>conftest.$ac_ext
28559 cat >>conftest.$ac_ext <<_ACEOF
28560 /* end confdefs.h.  */
28561 $ac_includes_default
28562    typedef socklen_t ac__type_sizeof_;
28563 int
28564 main ()
28565 {
28566 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)@:>@;
28567 test_array @<:@0@:>@ = 0
28568
28569   ;
28570   return 0;
28571 }
28572 _ACEOF
28573 rm -f conftest.$ac_objext
28574 if { (ac_try="$ac_compile"
28575 case "(($ac_try" in
28576   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28577   *) ac_try_echo=$ac_try;;
28578 esac
28579 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28580   (eval "$ac_compile") 2>conftest.er1
28581   ac_status=$?
28582   grep -v '^ *+' conftest.er1 >conftest.err
28583   rm -f conftest.er1
28584   cat conftest.err >&5
28585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28586   (exit $ac_status); } && {
28587          test -z "$ac_c_werror_flag" ||
28588          test ! -s conftest.err
28589        } && test -s conftest.$ac_objext; then
28590   ac_hi=$ac_mid
28591 else
28592   echo "$as_me: failed program was:" >&5
28593 sed 's/^/| /' conftest.$ac_ext >&5
28594
28595         ac_lo=`expr '(' $ac_mid ')' + 1`
28596 fi
28597
28598 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28599 done
28600 case $ac_lo in
28601 ?*) ac_cv_sizeof_socklen_t=$ac_lo;;
28602 '') if test "$ac_cv_type_socklen_t" = yes; then
28603      { { echo "$as_me:$LINENO: error: cannot compute sizeof (socklen_t)
28604 See \`config.log' for more details." >&5
28605 echo "$as_me: error: cannot compute sizeof (socklen_t)
28606 See \`config.log' for more details." >&2;}
28607    { (exit 77); exit 77; }; }
28608    else
28609      ac_cv_sizeof_socklen_t=0
28610    fi ;;
28611 esac
28612 else
28613   cat >conftest.$ac_ext <<_ACEOF
28614 /* confdefs.h.  */
28615 _ACEOF
28616 cat confdefs.h >>conftest.$ac_ext
28617 cat >>conftest.$ac_ext <<_ACEOF
28618 /* end confdefs.h.  */
28619 $ac_includes_default
28620    typedef socklen_t ac__type_sizeof_;
28621 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
28622 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
28623 @%:@include <stdio.h>
28624 @%:@include <stdlib.h>
28625 int
28626 main ()
28627 {
28628
28629   FILE *f = fopen ("conftest.val", "w");
28630   if (! f)
28631     return 1;
28632   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
28633     {
28634       long int i = longval ();
28635       if (i != ((long int) (sizeof (ac__type_sizeof_))))
28636         return 1;
28637       fprintf (f, "%ld\n", i);
28638     }
28639   else
28640     {
28641       unsigned long int i = ulongval ();
28642       if (i != ((long int) (sizeof (ac__type_sizeof_))))
28643         return 1;
28644       fprintf (f, "%lu\n", i);
28645     }
28646   return ferror (f) || fclose (f) != 0;
28647
28648   ;
28649   return 0;
28650 }
28651 _ACEOF
28652 rm -f conftest$ac_exeext
28653 if { (ac_try="$ac_link"
28654 case "(($ac_try" in
28655   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28656   *) ac_try_echo=$ac_try;;
28657 esac
28658 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28659   (eval "$ac_link") 2>&5
28660   ac_status=$?
28661   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28662   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28663   { (case "(($ac_try" in
28664   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28665   *) ac_try_echo=$ac_try;;
28666 esac
28667 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28668   (eval "$ac_try") 2>&5
28669   ac_status=$?
28670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28671   (exit $ac_status); }; }; then
28672   ac_cv_sizeof_socklen_t=`cat conftest.val`
28673 else
28674   echo "$as_me: program exited with status $ac_status" >&5
28675 echo "$as_me: failed program was:" >&5
28676 sed 's/^/| /' conftest.$ac_ext >&5
28677
28678 ( exit $ac_status )
28679 if test "$ac_cv_type_socklen_t" = yes; then
28680      { { echo "$as_me:$LINENO: error: cannot compute sizeof (socklen_t)
28681 See \`config.log' for more details." >&5
28682 echo "$as_me: error: cannot compute sizeof (socklen_t)
28683 See \`config.log' for more details." >&2;}
28684    { (exit 77); exit 77; }; }
28685    else
28686      ac_cv_sizeof_socklen_t=0
28687    fi
28688 fi
28689 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28690 fi
28691 rm -f conftest.val
28692 fi
28693 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_socklen_t" >&5
28694 echo "${ECHO_T}$ac_cv_sizeof_socklen_t" >&6; }
28695
28696
28697
28698 cat >>confdefs.h <<_ACEOF
28699 @%:@define SIZEOF_SOCKLEN_T $ac_cv_sizeof_socklen_t
28700 _ACEOF
28701
28702
28703
28704
28705
28706 cat >>confdefs.h <<_ACEOF
28707 @%:@define NFS_STATEDIR "$statedir"
28708 _ACEOF
28709
28710
28711 if test "x$cross_compiling" = "xno"; then
28712         CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-"$CFLAGS"}
28713         CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-"$CXXFLAGS"}
28714         CPPFLAGS_FOR_BUILD=${CPPFLAGS_FOR_BUILD-"$CPPFLAGS"}
28715         LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-"$LDFLAGS"}
28716 else
28717         CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-""}
28718         CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-""}
28719         CPPFLAGS_FOR_BUILD=${CPPFLAGS_FOR_BUILD-""}
28720         LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-""}
28721 fi
28722
28723
28724
28725
28726
28727
28728
28729
28730
28731
28732
28733 case $host in
28734   alpha*)
28735     ARCHFLAGS="-mno-fp-regs -ffixed-8" ;;
28736   *)
28737     ARCHFLAGS="" ;;
28738 esac
28739
28740 my_am_cflags="-Wall $ARCHFLAGS -pipe"
28741
28742 AM_CPPFLAGS="-I\${top_srcdir}/support/include -D_FILE_OFFSET_BITS=64"
28743
28744 AM_CFLAGS="$my_am_cflags"
28745
28746
28747 # Make sure that $ACLOCAL_FLAGS are used during a rebuild
28748 ACLOCAL_AMFLAGS="-I $ac_macro_dir \$(ACLOCAL_FLAGS)"
28749
28750
28751 ac_config_files="$ac_config_files Makefile linux-nfs/Makefile support/Makefile support/export/Makefile support/include/nfs/Makefile support/include/rpcsvc/Makefile support/include/sys/fs/Makefile support/include/sys/Makefile support/include/Makefile support/misc/Makefile support/nfs/Makefile tools/Makefile tools/getiversion/Makefile tools/getkversion/Makefile tools/locktest/Makefile tools/nlmtest/Makefile tools/rpcdebug/Makefile tools/rpcgen/Makefile utils/Makefile utils/exportfs/Makefile utils/gssd/Makefile utils/idmapd/Makefile utils/lockd/Makefile utils/mount/Makefile utils/mountd/Makefile utils/nfsd/Makefile utils/nfsstat/Makefile utils/rquotad/Makefile utils/showmount/Makefile utils/statd/Makefile"
28752
28753 cat >confcache <<\_ACEOF
28754 # This file is a shell script that caches the results of configure
28755 # tests run on this system so they can be shared between configure
28756 # scripts and configure runs, see configure's option --config-cache.
28757 # It is not useful on other systems.  If it contains results you don't
28758 # want to keep, you may remove or edit it.
28759 #
28760 # config.status only pays attention to the cache file if you give it
28761 # the --recheck option to rerun configure.
28762 #
28763 # `ac_cv_env_foo' variables (set or unset) will be overridden when
28764 # loading this file, other *unset* `ac_cv_foo' will be assigned the
28765 # following values.
28766
28767 _ACEOF
28768
28769 # The following way of writing the cache mishandles newlines in values,
28770 # but we know of no workaround that is simple, portable, and efficient.
28771 # So, we kill variables containing newlines.
28772 # Ultrix sh set writes to stderr and can't be redirected directly,
28773 # and sets the high bit in the cache file unless we assign to the vars.
28774 (
28775   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
28776     eval ac_val=\$$ac_var
28777     case $ac_val in #(
28778     *${as_nl}*)
28779       case $ac_var in #(
28780       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
28781 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
28782       esac
28783       case $ac_var in #(
28784       _ | IFS | as_nl) ;; #(
28785       *) $as_unset $ac_var ;;
28786       esac ;;
28787     esac
28788   done
28789
28790   (set) 2>&1 |
28791     case $as_nl`(ac_space=' '; set) 2>&1` in #(
28792     *${as_nl}ac_space=\ *)
28793       # `set' does not quote correctly, so add quotes (double-quote
28794       # substitution turns \\\\ into \\, and sed turns \\ into \).
28795       sed -n \
28796         "s/'/'\\\\''/g;
28797           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
28798       ;; #(
28799     *)
28800       # `set' quotes correctly as required by POSIX, so do not add quotes.
28801       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
28802       ;;
28803     esac |
28804     sort
28805 ) |
28806   sed '
28807      /^ac_cv_env_/b end
28808      t clear
28809      :clear
28810      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
28811      t end
28812      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
28813      :end' >>confcache
28814 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
28815   if test -w "$cache_file"; then
28816     test "x$cache_file" != "x/dev/null" &&
28817       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
28818 echo "$as_me: updating cache $cache_file" >&6;}
28819     cat confcache >$cache_file
28820   else
28821     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
28822 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
28823   fi
28824 fi
28825 rm -f confcache
28826
28827 test "x$prefix" = xNONE && prefix=$ac_default_prefix
28828 # Let make expand exec_prefix.
28829 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
28830
28831 DEFS=-DHAVE_CONFIG_H
28832
28833 ac_libobjs=
28834 ac_ltlibobjs=
28835 for ac_i in : $LIB@&t@OBJS; do test "x$ac_i" = x: && continue
28836   # 1. Remove the extension, and $U if already installed.
28837   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
28838   ac_i=`echo "$ac_i" | sed "$ac_script"`
28839   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
28840   #    will be set to the directory where LIBOBJS objects are built.
28841   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
28842   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
28843 done
28844 LIB@&t@OBJS=$ac_libobjs
28845
28846 LTLIBOBJS=$ac_ltlibobjs
28847
28848
28849 if test -z "${CONFIG_NFSV4_TRUE}" && test -z "${CONFIG_NFSV4_FALSE}"; then
28850   { { echo "$as_me:$LINENO: error: conditional \"CONFIG_NFSV4\" was never defined.
28851 Usually this means the macro was only invoked conditionally." >&5
28852 echo "$as_me: error: conditional \"CONFIG_NFSV4\" was never defined.
28853 Usually this means the macro was only invoked conditionally." >&2;}
28854    { (exit 1); exit 1; }; }
28855 fi
28856 if test -z "${CONFIG_GSS_TRUE}" && test -z "${CONFIG_GSS_FALSE}"; then
28857   { { echo "$as_me:$LINENO: error: conditional \"CONFIG_GSS\" was never defined.
28858 Usually this means the macro was only invoked conditionally." >&5
28859 echo "$as_me: error: conditional \"CONFIG_GSS\" was never defined.
28860 Usually this means the macro was only invoked conditionally." >&2;}
28861    { (exit 1); exit 1; }; }
28862 fi
28863 if test -z "${CONFIG_RQUOTAD_TRUE}" && test -z "${CONFIG_RQUOTAD_FALSE}"; then
28864   { { echo "$as_me:$LINENO: error: conditional \"CONFIG_RQUOTAD\" was never defined.
28865 Usually this means the macro was only invoked conditionally." >&5
28866 echo "$as_me: error: conditional \"CONFIG_RQUOTAD\" was never defined.
28867 Usually this means the macro was only invoked conditionally." >&2;}
28868    { (exit 1); exit 1; }; }
28869 fi
28870 if test -z "${CONFIG_MOUNT_TRUE}" && test -z "${CONFIG_MOUNT_FALSE}"; then
28871   { { echo "$as_me:$LINENO: error: conditional \"CONFIG_MOUNT\" was never defined.
28872 Usually this means the macro was only invoked conditionally." >&5
28873 echo "$as_me: error: conditional \"CONFIG_MOUNT\" was never defined.
28874 Usually this means the macro was only invoked conditionally." >&2;}
28875    { (exit 1); exit 1; }; }
28876 fi
28877 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
28878   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
28879 Usually this means the macro was only invoked conditionally." >&5
28880 echo "$as_me: error: conditional \"AMDEP\" was never defined.
28881 Usually this means the macro was only invoked conditionally." >&2;}
28882    { (exit 1); exit 1; }; }
28883 fi
28884 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
28885   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
28886 Usually this means the macro was only invoked conditionally." >&5
28887 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
28888 Usually this means the macro was only invoked conditionally." >&2;}
28889    { (exit 1); exit 1; }; }
28890 fi
28891 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
28892   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
28893 Usually this means the macro was only invoked conditionally." >&5
28894 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
28895 Usually this means the macro was only invoked conditionally." >&2;}
28896    { (exit 1); exit 1; }; }
28897 fi
28898 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
28899   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
28900 Usually this means the macro was only invoked conditionally." >&5
28901 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
28902 Usually this means the macro was only invoked conditionally." >&2;}
28903    { (exit 1); exit 1; }; }
28904 fi
28905
28906 : ${CONFIG_STATUS=./config.status}
28907 ac_clean_files_save=$ac_clean_files
28908 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
28909 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
28910 echo "$as_me: creating $CONFIG_STATUS" >&6;}
28911 cat >$CONFIG_STATUS <<_ACEOF
28912 #! $SHELL
28913 # Generated by $as_me.
28914 # Run this file to recreate the current configuration.
28915 # Compiler output produced by configure, useful for debugging
28916 # configure, is in config.log if it exists.
28917
28918 debug=false
28919 ac_cs_recheck=false
28920 ac_cs_silent=false
28921 SHELL=\${CONFIG_SHELL-$SHELL}
28922 _ACEOF
28923
28924 cat >>$CONFIG_STATUS <<\_ACEOF
28925 ## --------------------- ##
28926 ## M4sh Initialization.  ##
28927 ## --------------------- ##
28928
28929 # Be more Bourne compatible
28930 DUALCASE=1; export DUALCASE # for MKS sh
28931 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
28932   emulate sh
28933   NULLCMD=:
28934   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
28935   # is contrary to our usage.  Disable this feature.
28936   alias -g '${1+"$@"}'='"$@"'
28937   setopt NO_GLOB_SUBST
28938 else
28939   case `(set -o) 2>/dev/null` in
28940   *posix*) set -o posix ;;
28941 esac
28942
28943 fi
28944
28945
28946
28947
28948 # PATH needs CR
28949 # Avoid depending upon Character Ranges.
28950 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
28951 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
28952 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
28953 as_cr_digits='0123456789'
28954 as_cr_alnum=$as_cr_Letters$as_cr_digits
28955
28956 # The user is always right.
28957 if test "${PATH_SEPARATOR+set}" != set; then
28958   echo "#! /bin/sh" >conf$$.sh
28959   echo  "exit 0"   >>conf$$.sh
28960   chmod +x conf$$.sh
28961   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
28962     PATH_SEPARATOR=';'
28963   else
28964     PATH_SEPARATOR=:
28965   fi
28966   rm -f conf$$.sh
28967 fi
28968
28969 # Support unset when possible.
28970 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
28971   as_unset=unset
28972 else
28973   as_unset=false
28974 fi
28975
28976
28977 # IFS
28978 # We need space, tab and new line, in precisely that order.  Quoting is
28979 # there to prevent editors from complaining about space-tab.
28980 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
28981 # splitting by setting IFS to empty value.)
28982 as_nl='
28983 '
28984 IFS=" ""        $as_nl"
28985
28986 # Find who we are.  Look in the path if we contain no directory separator.
28987 case $0 in
28988   *[\\/]* ) as_myself=$0 ;;
28989   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28990 for as_dir in $PATH
28991 do
28992   IFS=$as_save_IFS
28993   test -z "$as_dir" && as_dir=.
28994   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
28995 done
28996 IFS=$as_save_IFS
28997
28998      ;;
28999 esac
29000 # We did not find ourselves, most probably we were run as `sh COMMAND'
29001 # in which case we are not to be found in the path.
29002 if test "x$as_myself" = x; then
29003   as_myself=$0
29004 fi
29005 if test ! -f "$as_myself"; then
29006   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
29007   { (exit 1); exit 1; }
29008 fi
29009
29010 # Work around bugs in pre-3.0 UWIN ksh.
29011 for as_var in ENV MAIL MAILPATH
29012 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
29013 done
29014 PS1='$ '
29015 PS2='> '
29016 PS4='+ '
29017
29018 # NLS nuisances.
29019 for as_var in \
29020   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
29021   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
29022   LC_TELEPHONE LC_TIME
29023 do
29024   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
29025     eval $as_var=C; export $as_var
29026   else
29027     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
29028   fi
29029 done
29030
29031 # Required to use basename.
29032 if expr a : '\(a\)' >/dev/null 2>&1 &&
29033    test "X`expr 00001 : '.*\(...\)'`" = X001; then
29034   as_expr=expr
29035 else
29036   as_expr=false
29037 fi
29038
29039 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
29040   as_basename=basename
29041 else
29042   as_basename=false
29043 fi
29044
29045
29046 # Name of the executable.
29047 as_me=`$as_basename -- "$0" ||
29048 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
29049          X"$0" : 'X\(//\)$' \| \
29050          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
29051 echo X/"$0" |
29052     sed '/^.*\/\([^/][^/]*\)\/*$/{
29053             s//\1/
29054             q
29055           }
29056           /^X\/\(\/\/\)$/{
29057             s//\1/
29058             q
29059           }
29060           /^X\/\(\/\).*/{
29061             s//\1/
29062             q
29063           }
29064           s/.*/./; q'`
29065
29066 # CDPATH.
29067 $as_unset CDPATH
29068
29069
29070
29071   as_lineno_1=$LINENO
29072   as_lineno_2=$LINENO
29073   test "x$as_lineno_1" != "x$as_lineno_2" &&
29074   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
29075
29076   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
29077   # uniformly replaced by the line number.  The first 'sed' inserts a
29078   # line-number line after each line using $LINENO; the second 'sed'
29079   # does the real work.  The second script uses 'N' to pair each
29080   # line-number line with the line containing $LINENO, and appends
29081   # trailing '-' during substitution so that $LINENO is not a special
29082   # case at line end.
29083   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
29084   # scripts with optimization help from Paolo Bonzini.  Blame Lee
29085   # E. McMahon (1931-1989) for sed's syntax.  :-)
29086   sed -n '
29087     p
29088     /[$]LINENO/=
29089   ' <$as_myself |
29090     sed '
29091       s/[$]LINENO.*/&-/
29092       t lineno
29093       b
29094       :lineno
29095       N
29096       :loop
29097       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
29098       t loop
29099       s/-\n.*//
29100     ' >$as_me.lineno &&
29101   chmod +x "$as_me.lineno" ||
29102     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
29103    { (exit 1); exit 1; }; }
29104
29105   # Don't try to exec as it changes $[0], causing all sort of problems
29106   # (the dirname of $[0] is not the place where we might find the
29107   # original and so on.  Autoconf is especially sensitive to this).
29108   . "./$as_me.lineno"
29109   # Exit status is that of the last command.
29110   exit
29111 }
29112
29113
29114 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
29115   as_dirname=dirname
29116 else
29117   as_dirname=false
29118 fi
29119
29120 ECHO_C= ECHO_N= ECHO_T=
29121 case `echo -n x` in
29122 -n*)
29123   case `echo 'x\c'` in
29124   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
29125   *)   ECHO_C='\c';;
29126   esac;;
29127 *)
29128   ECHO_N='-n';;
29129 esac
29130
29131 if expr a : '\(a\)' >/dev/null 2>&1 &&
29132    test "X`expr 00001 : '.*\(...\)'`" = X001; then
29133   as_expr=expr
29134 else
29135   as_expr=false
29136 fi
29137
29138 rm -f conf$$ conf$$.exe conf$$.file
29139 if test -d conf$$.dir; then
29140   rm -f conf$$.dir/conf$$.file
29141 else
29142   rm -f conf$$.dir
29143   mkdir conf$$.dir
29144 fi
29145 echo >conf$$.file
29146 if ln -s conf$$.file conf$$ 2>/dev/null; then
29147   as_ln_s='ln -s'
29148   # ... but there are two gotchas:
29149   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
29150   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
29151   # In both cases, we have to default to `cp -p'.
29152   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
29153     as_ln_s='cp -p'
29154 elif ln conf$$.file conf$$ 2>/dev/null; then
29155   as_ln_s=ln
29156 else
29157   as_ln_s='cp -p'
29158 fi
29159 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
29160 rmdir conf$$.dir 2>/dev/null
29161
29162 if mkdir -p . 2>/dev/null; then
29163   as_mkdir_p=:
29164 else
29165   test -d ./-p && rmdir ./-p
29166   as_mkdir_p=false
29167 fi
29168
29169 if test -x / >/dev/null 2>&1; then
29170   as_test_x='test -x'
29171 else
29172   if ls -dL / >/dev/null 2>&1; then
29173     as_ls_L_option=L
29174   else
29175     as_ls_L_option=
29176   fi
29177   as_test_x='
29178     eval sh -c '\''
29179       if test -d "$1"; then
29180         test -d "$1/.";
29181       else
29182         case $1 in
29183         -*)set "./$1";;
29184         esac;
29185         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
29186         ???[sx]*):;;*)false;;esac;fi
29187     '\'' sh
29188   '
29189 fi
29190 as_executable_p=$as_test_x
29191
29192 # Sed expression to map a string onto a valid CPP name.
29193 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
29194
29195 # Sed expression to map a string onto a valid variable name.
29196 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
29197
29198
29199 exec 6>&1
29200
29201 # Save the log message, to keep $[0] and so on meaningful, and to
29202 # report actual input values of CONFIG_FILES etc. instead of their
29203 # values after options handling.
29204 ac_log="
29205 This file was extended by linux nfs-utils $as_me 1.0.10, which was
29206 generated by GNU Autoconf 2.61.  Invocation command line was
29207
29208   CONFIG_FILES    = $CONFIG_FILES
29209   CONFIG_HEADERS  = $CONFIG_HEADERS
29210   CONFIG_LINKS    = $CONFIG_LINKS
29211   CONFIG_COMMANDS = $CONFIG_COMMANDS
29212   $ $0 $@
29213
29214 on `(hostname || uname -n) 2>/dev/null | sed 1q`
29215 "
29216
29217 _ACEOF
29218
29219 cat >>$CONFIG_STATUS <<_ACEOF
29220 # Files that config.status was made for.
29221 config_files="$ac_config_files"
29222 config_headers="$ac_config_headers"
29223 config_commands="$ac_config_commands"
29224
29225 _ACEOF
29226
29227 cat >>$CONFIG_STATUS <<\_ACEOF
29228 ac_cs_usage="\
29229 \`$as_me' instantiates files from templates according to the
29230 current configuration.
29231
29232 Usage: $0 [OPTIONS] [FILE]...
29233
29234   -h, --help       print this help, then exit
29235   -V, --version    print version number and configuration settings, then exit
29236   -q, --quiet      do not print progress messages
29237   -d, --debug      don't remove temporary files
29238       --recheck    update $as_me by reconfiguring in the same conditions
29239   --file=FILE[:TEMPLATE]
29240                    instantiate the configuration file FILE
29241   --header=FILE[:TEMPLATE]
29242                    instantiate the configuration header FILE
29243
29244 Configuration files:
29245 $config_files
29246
29247 Configuration headers:
29248 $config_headers
29249
29250 Configuration commands:
29251 $config_commands
29252
29253 Report bugs to <bug-autoconf@gnu.org>."
29254
29255 _ACEOF
29256 cat >>$CONFIG_STATUS <<_ACEOF
29257 ac_cs_version="\\
29258 linux nfs-utils config.status 1.0.10
29259 configured by $0, generated by GNU Autoconf 2.61,
29260   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
29261
29262 Copyright (C) 2006 Free Software Foundation, Inc.
29263 This config.status script is free software; the Free Software Foundation
29264 gives unlimited permission to copy, distribute and modify it."
29265
29266 ac_pwd='$ac_pwd'
29267 srcdir='$srcdir'
29268 INSTALL='$INSTALL'
29269 _ACEOF
29270
29271 cat >>$CONFIG_STATUS <<\_ACEOF
29272 # If no file are specified by the user, then we need to provide default
29273 # value.  By we need to know if files were specified by the user.
29274 ac_need_defaults=:
29275 while test $# != 0
29276 do
29277   case $1 in
29278   --*=*)
29279     ac_option=`expr "X$1" : 'X\([^=]*\)='`
29280     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
29281     ac_shift=:
29282     ;;
29283   *)
29284     ac_option=$1
29285     ac_optarg=$2
29286     ac_shift=shift
29287     ;;
29288   esac
29289
29290   case $ac_option in
29291   # Handling of the options.
29292   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
29293     ac_cs_recheck=: ;;
29294   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
29295     echo "$ac_cs_version"; exit ;;
29296   --debug | --debu | --deb | --de | --d | -d )
29297     debug=: ;;
29298   --file | --fil | --fi | --f )
29299     $ac_shift
29300     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
29301     ac_need_defaults=false;;
29302   --header | --heade | --head | --hea )
29303     $ac_shift
29304     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
29305     ac_need_defaults=false;;
29306   --he | --h)
29307     # Conflict between --help and --header
29308     { echo "$as_me: error: ambiguous option: $1
29309 Try \`$0 --help' for more information." >&2
29310    { (exit 1); exit 1; }; };;
29311   --help | --hel | -h )
29312     echo "$ac_cs_usage"; exit ;;
29313   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
29314   | -silent | --silent | --silen | --sile | --sil | --si | --s)
29315     ac_cs_silent=: ;;
29316
29317   # This is an error.
29318   -*) { echo "$as_me: error: unrecognized option: $1
29319 Try \`$0 --help' for more information." >&2
29320    { (exit 1); exit 1; }; } ;;
29321
29322   *) ac_config_targets="$ac_config_targets $1"
29323      ac_need_defaults=false ;;
29324
29325   esac
29326   shift
29327 done
29328
29329 ac_configure_extra_args=
29330
29331 if $ac_cs_silent; then
29332   exec 6>/dev/null
29333   ac_configure_extra_args="$ac_configure_extra_args --silent"
29334 fi
29335
29336 _ACEOF
29337 cat >>$CONFIG_STATUS <<_ACEOF
29338 if \$ac_cs_recheck; then
29339   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
29340   CONFIG_SHELL=$SHELL
29341   export CONFIG_SHELL
29342   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
29343 fi
29344
29345 _ACEOF
29346 cat >>$CONFIG_STATUS <<\_ACEOF
29347 exec 5>>config.log
29348 {
29349   echo
29350   sed 'h;s/./-/g;s/^.../@%:@@%:@ /;s/...$/ @%:@@%:@/;p;x;p;x' <<_ASBOX
29351 @%:@@%:@ Running $as_me. @%:@@%:@
29352 _ASBOX
29353   echo "$ac_log"
29354 } >&5
29355
29356 _ACEOF
29357 cat >>$CONFIG_STATUS <<_ACEOF
29358 #
29359 # INIT-COMMANDS
29360 #
29361 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
29362
29363 _ACEOF
29364
29365 cat >>$CONFIG_STATUS <<\_ACEOF
29366
29367 # Handling of arguments.
29368 for ac_config_target in $ac_config_targets
29369 do
29370   case $ac_config_target in
29371     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
29372     "support/include/config.h") CONFIG_HEADERS="$CONFIG_HEADERS support/include/config.h" ;;
29373     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
29374     "linux-nfs/Makefile") CONFIG_FILES="$CONFIG_FILES linux-nfs/Makefile" ;;
29375     "support/Makefile") CONFIG_FILES="$CONFIG_FILES support/Makefile" ;;
29376     "support/export/Makefile") CONFIG_FILES="$CONFIG_FILES support/export/Makefile" ;;
29377     "support/include/nfs/Makefile") CONFIG_FILES="$CONFIG_FILES support/include/nfs/Makefile" ;;
29378     "support/include/rpcsvc/Makefile") CONFIG_FILES="$CONFIG_FILES support/include/rpcsvc/Makefile" ;;
29379     "support/include/sys/fs/Makefile") CONFIG_FILES="$CONFIG_FILES support/include/sys/fs/Makefile" ;;
29380     "support/include/sys/Makefile") CONFIG_FILES="$CONFIG_FILES support/include/sys/Makefile" ;;
29381     "support/include/Makefile") CONFIG_FILES="$CONFIG_FILES support/include/Makefile" ;;
29382     "support/misc/Makefile") CONFIG_FILES="$CONFIG_FILES support/misc/Makefile" ;;
29383     "support/nfs/Makefile") CONFIG_FILES="$CONFIG_FILES support/nfs/Makefile" ;;
29384     "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
29385     "tools/getiversion/Makefile") CONFIG_FILES="$CONFIG_FILES tools/getiversion/Makefile" ;;
29386     "tools/getkversion/Makefile") CONFIG_FILES="$CONFIG_FILES tools/getkversion/Makefile" ;;
29387     "tools/locktest/Makefile") CONFIG_FILES="$CONFIG_FILES tools/locktest/Makefile" ;;
29388     "tools/nlmtest/Makefile") CONFIG_FILES="$CONFIG_FILES tools/nlmtest/Makefile" ;;
29389     "tools/rpcdebug/Makefile") CONFIG_FILES="$CONFIG_FILES tools/rpcdebug/Makefile" ;;
29390     "tools/rpcgen/Makefile") CONFIG_FILES="$CONFIG_FILES tools/rpcgen/Makefile" ;;
29391     "utils/Makefile") CONFIG_FILES="$CONFIG_FILES utils/Makefile" ;;
29392     "utils/exportfs/Makefile") CONFIG_FILES="$CONFIG_FILES utils/exportfs/Makefile" ;;
29393     "utils/gssd/Makefile") CONFIG_FILES="$CONFIG_FILES utils/gssd/Makefile" ;;
29394     "utils/idmapd/Makefile") CONFIG_FILES="$CONFIG_FILES utils/idmapd/Makefile" ;;
29395     "utils/lockd/Makefile") CONFIG_FILES="$CONFIG_FILES utils/lockd/Makefile" ;;
29396     "utils/mount/Makefile") CONFIG_FILES="$CONFIG_FILES utils/mount/Makefile" ;;
29397     "utils/mountd/Makefile") CONFIG_FILES="$CONFIG_FILES utils/mountd/Makefile" ;;
29398     "utils/nfsd/Makefile") CONFIG_FILES="$CONFIG_FILES utils/nfsd/Makefile" ;;
29399     "utils/nfsstat/Makefile") CONFIG_FILES="$CONFIG_FILES utils/nfsstat/Makefile" ;;
29400     "utils/rquotad/Makefile") CONFIG_FILES="$CONFIG_FILES utils/rquotad/Makefile" ;;
29401     "utils/showmount/Makefile") CONFIG_FILES="$CONFIG_FILES utils/showmount/Makefile" ;;
29402     "utils/statd/Makefile") CONFIG_FILES="$CONFIG_FILES utils/statd/Makefile" ;;
29403
29404   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
29405 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
29406    { (exit 1); exit 1; }; };;
29407   esac
29408 done
29409
29410
29411 # If the user did not use the arguments to specify the items to instantiate,
29412 # then the envvar interface is used.  Set only those that are not.
29413 # We use the long form for the default assignment because of an extremely
29414 # bizarre bug on SunOS 4.1.3.
29415 if $ac_need_defaults; then
29416   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
29417   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
29418   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
29419 fi
29420
29421 # Have a temporary directory for convenience.  Make it in the build tree
29422 # simply because there is no reason against having it here, and in addition,
29423 # creating and moving files from /tmp can sometimes cause problems.
29424 # Hook for its removal unless debugging.
29425 # Note that there is a small window in which the directory will not be cleaned:
29426 # after its creation but before its name has been assigned to `$tmp'.
29427 $debug ||
29428 {
29429   tmp=
29430   trap 'exit_status=$?
29431   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
29432 ' 0
29433   trap '{ (exit 1); exit 1; }' 1 2 13 15
29434 }
29435 # Create a (secure) tmp directory for tmp files.
29436
29437 {
29438   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
29439   test -n "$tmp" && test -d "$tmp"
29440 }  ||
29441 {
29442   tmp=./conf$$-$RANDOM
29443   (umask 077 && mkdir "$tmp")
29444 } ||
29445 {
29446    echo "$me: cannot create a temporary directory in ." >&2
29447    { (exit 1); exit 1; }
29448 }
29449
29450 #
29451 # Set up the sed scripts for CONFIG_FILES section.
29452 #
29453
29454 # No need to generate the scripts if there are no CONFIG_FILES.
29455 # This happens for instance when ./config.status config.h
29456 if test -n "$CONFIG_FILES"; then
29457
29458 _ACEOF
29459
29460
29461
29462 ac_delim='%!_!# '
29463 for ac_last_try in false false false false false :; do
29464   cat >conf$$subs.sed <<_ACEOF
29465 SHELL!$SHELL$ac_delim
29466 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
29467 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
29468 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
29469 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
29470 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
29471 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
29472 exec_prefix!$exec_prefix$ac_delim
29473 prefix!$prefix$ac_delim
29474 program_transform_name!$program_transform_name$ac_delim
29475 bindir!$bindir$ac_delim
29476 sbindir!$sbindir$ac_delim
29477 libexecdir!$libexecdir$ac_delim
29478 datarootdir!$datarootdir$ac_delim
29479 datadir!$datadir$ac_delim
29480 sysconfdir!$sysconfdir$ac_delim
29481 sharedstatedir!$sharedstatedir$ac_delim
29482 localstatedir!$localstatedir$ac_delim
29483 includedir!$includedir$ac_delim
29484 oldincludedir!$oldincludedir$ac_delim
29485 docdir!$docdir$ac_delim
29486 infodir!$infodir$ac_delim
29487 htmldir!$htmldir$ac_delim
29488 dvidir!$dvidir$ac_delim
29489 pdfdir!$pdfdir$ac_delim
29490 psdir!$psdir$ac_delim
29491 libdir!$libdir$ac_delim
29492 localedir!$localedir$ac_delim
29493 mandir!$mandir$ac_delim
29494 DEFS!$DEFS$ac_delim
29495 ECHO_C!$ECHO_C$ac_delim
29496 ECHO_N!$ECHO_N$ac_delim
29497 ECHO_T!$ECHO_T$ac_delim
29498 LIBS!$LIBS$ac_delim
29499 build_alias!$build_alias$ac_delim
29500 host_alias!$host_alias$ac_delim
29501 target_alias!$target_alias$ac_delim
29502 build!$build$ac_delim
29503 build_cpu!$build_cpu$ac_delim
29504 build_vendor!$build_vendor$ac_delim
29505 build_os!$build_os$ac_delim
29506 host!$host$ac_delim
29507 host_cpu!$host_cpu$ac_delim
29508 host_vendor!$host_vendor$ac_delim
29509 host_os!$host_os$ac_delim
29510 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
29511 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
29512 INSTALL_DATA!$INSTALL_DATA$ac_delim
29513 CYGPATH_W!$CYGPATH_W$ac_delim
29514 PACKAGE!$PACKAGE$ac_delim
29515 VERSION!$VERSION$ac_delim
29516 ACLOCAL!$ACLOCAL$ac_delim
29517 AUTOCONF!$AUTOCONF$ac_delim
29518 AUTOMAKE!$AUTOMAKE$ac_delim
29519 AUTOHEADER!$AUTOHEADER$ac_delim
29520 MAKEINFO!$MAKEINFO$ac_delim
29521 install_sh!$install_sh$ac_delim
29522 STRIP!$STRIP$ac_delim
29523 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
29524 mkdir_p!$mkdir_p$ac_delim
29525 AWK!$AWK$ac_delim
29526 SET_MAKE!$SET_MAKE$ac_delim
29527 am__leading_dot!$am__leading_dot$ac_delim
29528 AMTAR!$AMTAR$ac_delim
29529 am__tar!$am__tar$ac_delim
29530 am__untar!$am__untar$ac_delim
29531 RELEASE!$RELEASE$ac_delim
29532 statedir!$statedir$ac_delim
29533 statduser!$statduser$ac_delim
29534 enable_nfsv3!$enable_nfsv3$ac_delim
29535 IDMAPD!$IDMAPD$ac_delim
29536 enable_nfsv4!$enable_nfsv4$ac_delim
29537 CONFIG_NFSV4_TRUE!$CONFIG_NFSV4_TRUE$ac_delim
29538 CONFIG_NFSV4_FALSE!$CONFIG_NFSV4_FALSE$ac_delim
29539 GSSD!$GSSD$ac_delim
29540 SVCGSSD!$SVCGSSD$ac_delim
29541 enable_gss!$enable_gss$ac_delim
29542 CONFIG_GSS_TRUE!$CONFIG_GSS_TRUE$ac_delim
29543 CONFIG_GSS_FALSE!$CONFIG_GSS_FALSE$ac_delim
29544 kprefix!$kprefix$ac_delim
29545 secure_statd!$secure_statd$ac_delim
29546 CONFIG_RQUOTAD_TRUE!$CONFIG_RQUOTAD_TRUE$ac_delim
29547 CONFIG_RQUOTAD_FALSE!$CONFIG_RQUOTAD_FALSE$ac_delim
29548 CONFIG_MOUNT_TRUE!$CONFIG_MOUNT_TRUE$ac_delim
29549 CONFIG_MOUNT_FALSE!$CONFIG_MOUNT_FALSE$ac_delim
29550 CC!$CC$ac_delim
29551 CFLAGS!$CFLAGS$ac_delim
29552 LDFLAGS!$LDFLAGS$ac_delim
29553 CPPFLAGS!$CPPFLAGS$ac_delim
29554 ac_ct_CC!$ac_ct_CC$ac_delim
29555 EXEEXT!$EXEEXT$ac_delim
29556 OBJEXT!$OBJEXT$ac_delim
29557 DEPDIR!$DEPDIR$ac_delim
29558 am__include!$am__include$ac_delim
29559 am__quote!$am__quote$ac_delim
29560 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
29561 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
29562 _ACEOF
29563
29564   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
29565     break
29566   elif $ac_last_try; then
29567     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
29568 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
29569    { (exit 1); exit 1; }; }
29570   else
29571     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
29572   fi
29573 done
29574
29575 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
29576 if test -n "$ac_eof"; then
29577   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
29578   ac_eof=`expr $ac_eof + 1`
29579 fi
29580
29581 cat >>$CONFIG_STATUS <<_ACEOF
29582 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
29583 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
29584 _ACEOF
29585 sed '
29586 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
29587 s/^/s,@/; s/!/@,|#_!!_#|/
29588 :n
29589 t n
29590 s/'"$ac_delim"'$/,g/; t
29591 s/$/\\/; p
29592 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
29593 ' >>$CONFIG_STATUS <conf$$subs.sed
29594 rm -f conf$$subs.sed
29595 cat >>$CONFIG_STATUS <<_ACEOF
29596 CEOF$ac_eof
29597 _ACEOF
29598
29599
29600 ac_delim='%!_!# '
29601 for ac_last_try in false false false false false :; do
29602   cat >conf$$subs.sed <<_ACEOF
29603 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
29604 CCDEPMODE!$CCDEPMODE$ac_delim
29605 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
29606 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
29607 LIBWRAP!$LIBWRAP$ac_delim
29608 HAVE_LIBWRAP!$HAVE_LIBWRAP$ac_delim
29609 HAVE_TCP_WRAPPER!$HAVE_TCP_WRAPPER$ac_delim
29610 CXX!$CXX$ac_delim
29611 CXXFLAGS!$CXXFLAGS$ac_delim
29612 ac_ct_CXX!$ac_ct_CXX$ac_delim
29613 CXXDEPMODE!$CXXDEPMODE$ac_delim
29614 am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
29615 am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
29616 CPP!$CPP$ac_delim
29617 LN_S!$LN_S$ac_delim
29618 GREP!$GREP$ac_delim
29619 EGREP!$EGREP$ac_delim
29620 ECHO!$ECHO$ac_delim
29621 AR!$AR$ac_delim
29622 RANLIB!$RANLIB$ac_delim
29623 CXXCPP!$CXXCPP$ac_delim
29624 F77!$F77$ac_delim
29625 FFLAGS!$FFLAGS$ac_delim
29626 ac_ct_F77!$ac_ct_F77$ac_delim
29627 LIBTOOL!$LIBTOOL$ac_delim
29628 CC_FOR_BUILD!$CC_FOR_BUILD$ac_delim
29629 LD!$LD$ac_delim
29630 LIBNSL!$LIBNSL$ac_delim
29631 PKG_CONFIG!$PKG_CONFIG$ac_delim
29632 RPCSECGSS_CFLAGS!$RPCSECGSS_CFLAGS$ac_delim
29633 RPCSECGSS_LIBS!$RPCSECGSS_LIBS$ac_delim
29634 GSSAPI_CFLAGS!$GSSAPI_CFLAGS$ac_delim
29635 GSSAPI_LIBS!$GSSAPI_LIBS$ac_delim
29636 LIBSOCKET!$LIBSOCKET$ac_delim
29637 LIBCRYPT!$LIBCRYPT$ac_delim
29638 LIBBSD!$LIBBSD$ac_delim
29639 KRBDIR!$KRBDIR$ac_delim
29640 KRBLIBS!$KRBLIBS$ac_delim
29641 KRBCFLAGS!$KRBCFLAGS$ac_delim
29642 KRBLDFLAGS!$KRBLDFLAGS$ac_delim
29643 K5VERS!$K5VERS$ac_delim
29644 ALLOCA!$ALLOCA$ac_delim
29645 LIB@&t@OBJS!$LIB@&t@OBJS$ac_delim
29646 CFLAGS_FOR_BUILD!$CFLAGS_FOR_BUILD$ac_delim
29647 CXXFLAGS_FOR_BUILD!$CXXFLAGS_FOR_BUILD$ac_delim
29648 CPPFLAGS_FOR_BUILD!$CPPFLAGS_FOR_BUILD$ac_delim
29649 LDFLAGS_FOR_BUILD!$LDFLAGS_FOR_BUILD$ac_delim
29650 AM_CPPFLAGS!$AM_CPPFLAGS$ac_delim
29651 AM_CFLAGS!$AM_CFLAGS$ac_delim
29652 ACLOCAL_AMFLAGS!$ACLOCAL_AMFLAGS$ac_delim
29653 LTLIBOBJS!$LTLIBOBJS$ac_delim
29654 _ACEOF
29655
29656   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 51; then
29657     break
29658   elif $ac_last_try; then
29659     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
29660 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
29661    { (exit 1); exit 1; }; }
29662   else
29663     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
29664   fi
29665 done
29666
29667 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
29668 if test -n "$ac_eof"; then
29669   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
29670   ac_eof=`expr $ac_eof + 1`
29671 fi
29672
29673 cat >>$CONFIG_STATUS <<_ACEOF
29674 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
29675 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
29676 _ACEOF
29677 sed '
29678 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
29679 s/^/s,@/; s/!/@,|#_!!_#|/
29680 :n
29681 t n
29682 s/'"$ac_delim"'$/,g/; t
29683 s/$/\\/; p
29684 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
29685 ' >>$CONFIG_STATUS <conf$$subs.sed
29686 rm -f conf$$subs.sed
29687 cat >>$CONFIG_STATUS <<_ACEOF
29688 :end
29689 s/|#_!!_#|//g
29690 CEOF$ac_eof
29691 _ACEOF
29692
29693
29694 # VPATH may cause trouble with some makes, so we remove $(srcdir),
29695 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
29696 # trailing colons and then remove the whole line if VPATH becomes empty
29697 # (actually we leave an empty line to preserve line numbers).
29698 if test "x$srcdir" = x.; then
29699   ac_vpsub='/^[  ]*VPATH[        ]*=/{
29700 s/:*\$(srcdir):*/:/
29701 s/:*\${srcdir}:*/:/
29702 s/:*@srcdir@:*/:/
29703 s/^\([^=]*=[     ]*\):*/\1/
29704 s/:*$//
29705 s/^[^=]*=[       ]*$//
29706 }'
29707 fi
29708
29709 cat >>$CONFIG_STATUS <<\_ACEOF
29710 fi # test -n "$CONFIG_FILES"
29711
29712
29713 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
29714 do
29715   case $ac_tag in
29716   :[FHLC]) ac_mode=$ac_tag; continue;;
29717   esac
29718   case $ac_mode$ac_tag in
29719   :[FHL]*:*);;
29720   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
29721 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
29722    { (exit 1); exit 1; }; };;
29723   :[FH]-) ac_tag=-:-;;
29724   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
29725   esac
29726   ac_save_IFS=$IFS
29727   IFS=:
29728   set x $ac_tag
29729   IFS=$ac_save_IFS
29730   shift
29731   ac_file=$1
29732   shift
29733
29734   case $ac_mode in
29735   :L) ac_source=$1;;
29736   :[FH])
29737     ac_file_inputs=
29738     for ac_f
29739     do
29740       case $ac_f in
29741       -) ac_f="$tmp/stdin";;
29742       *) # Look for the file first in the build tree, then in the source tree
29743          # (if the path is not absolute).  The absolute path cannot be DOS-style,
29744          # because $ac_f cannot contain `:'.
29745          test -f "$ac_f" ||
29746            case $ac_f in
29747            [\\/$]*) false;;
29748            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
29749            esac ||
29750            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
29751 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
29752    { (exit 1); exit 1; }; };;
29753       esac
29754       ac_file_inputs="$ac_file_inputs $ac_f"
29755     done
29756
29757     # Let's still pretend it is `configure' which instantiates (i.e., don't
29758     # use $as_me), people would be surprised to read:
29759     #    /* config.h.  Generated by config.status.  */
29760     configure_input="Generated from "`IFS=:
29761           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
29762     if test x"$ac_file" != x-; then
29763       configure_input="$ac_file.  $configure_input"
29764       { echo "$as_me:$LINENO: creating $ac_file" >&5
29765 echo "$as_me: creating $ac_file" >&6;}
29766     fi
29767
29768     case $ac_tag in
29769     *:-:* | *:-) cat >"$tmp/stdin";;
29770     esac
29771     ;;
29772   esac
29773
29774   ac_dir=`$as_dirname -- "$ac_file" ||
29775 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29776          X"$ac_file" : 'X\(//\)[^/]' \| \
29777          X"$ac_file" : 'X\(//\)$' \| \
29778          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
29779 echo X"$ac_file" |
29780     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
29781             s//\1/
29782             q
29783           }
29784           /^X\(\/\/\)[^/].*/{
29785             s//\1/
29786             q
29787           }
29788           /^X\(\/\/\)$/{
29789             s//\1/
29790             q
29791           }
29792           /^X\(\/\).*/{
29793             s//\1/
29794             q
29795           }
29796           s/.*/./; q'`
29797   { as_dir="$ac_dir"
29798   case $as_dir in #(
29799   -*) as_dir=./$as_dir;;
29800   esac
29801   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
29802     as_dirs=
29803     while :; do
29804       case $as_dir in #(
29805       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
29806       *) as_qdir=$as_dir;;
29807       esac
29808       as_dirs="'$as_qdir' $as_dirs"
29809       as_dir=`$as_dirname -- "$as_dir" ||
29810 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29811          X"$as_dir" : 'X\(//\)[^/]' \| \
29812          X"$as_dir" : 'X\(//\)$' \| \
29813          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
29814 echo X"$as_dir" |
29815     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
29816             s//\1/
29817             q
29818           }
29819           /^X\(\/\/\)[^/].*/{
29820             s//\1/
29821             q
29822           }
29823           /^X\(\/\/\)$/{
29824             s//\1/
29825             q
29826           }
29827           /^X\(\/\).*/{
29828             s//\1/
29829             q
29830           }
29831           s/.*/./; q'`
29832       test -d "$as_dir" && break
29833     done
29834     test -z "$as_dirs" || eval "mkdir $as_dirs"
29835   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
29836 echo "$as_me: error: cannot create directory $as_dir" >&2;}
29837    { (exit 1); exit 1; }; }; }
29838   ac_builddir=.
29839
29840 case "$ac_dir" in
29841 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
29842 *)
29843   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
29844   # A ".." for each directory in $ac_dir_suffix.
29845   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
29846   case $ac_top_builddir_sub in
29847   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
29848   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
29849   esac ;;
29850 esac
29851 ac_abs_top_builddir=$ac_pwd
29852 ac_abs_builddir=$ac_pwd$ac_dir_suffix
29853 # for backward compatibility:
29854 ac_top_builddir=$ac_top_build_prefix
29855
29856 case $srcdir in
29857   .)  # We are building in place.
29858     ac_srcdir=.
29859     ac_top_srcdir=$ac_top_builddir_sub
29860     ac_abs_top_srcdir=$ac_pwd ;;
29861   [\\/]* | ?:[\\/]* )  # Absolute name.
29862     ac_srcdir=$srcdir$ac_dir_suffix;
29863     ac_top_srcdir=$srcdir
29864     ac_abs_top_srcdir=$srcdir ;;
29865   *) # Relative name.
29866     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
29867     ac_top_srcdir=$ac_top_build_prefix$srcdir
29868     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
29869 esac
29870 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
29871
29872
29873   case $ac_mode in
29874   :F)
29875   #
29876   # CONFIG_FILE
29877   #
29878
29879   case $INSTALL in
29880   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
29881   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
29882   esac
29883 _ACEOF
29884
29885 cat >>$CONFIG_STATUS <<\_ACEOF
29886 # If the template does not know about datarootdir, expand it.
29887 # FIXME: This hack should be removed a few years after 2.60.
29888 ac_datarootdir_hack=; ac_datarootdir_seen=
29889
29890 case `sed -n '/datarootdir/ {
29891   p
29892   q
29893 }
29894 /@datadir@/p
29895 /@docdir@/p
29896 /@infodir@/p
29897 /@localedir@/p
29898 /@mandir@/p
29899 ' $ac_file_inputs` in
29900 *datarootdir*) ac_datarootdir_seen=yes;;
29901 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
29902   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
29903 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
29904 _ACEOF
29905 cat >>$CONFIG_STATUS <<_ACEOF
29906   ac_datarootdir_hack='
29907   s&@datadir@&$datadir&g
29908   s&@docdir@&$docdir&g
29909   s&@infodir@&$infodir&g
29910   s&@localedir@&$localedir&g
29911   s&@mandir@&$mandir&g
29912     s&\\\${datarootdir}&$datarootdir&g' ;;
29913 esac
29914 _ACEOF
29915
29916 # Neutralize VPATH when `$srcdir' = `.'.
29917 # Shell code in configure.ac might set extrasub.
29918 # FIXME: do we really want to maintain this feature?
29919 cat >>$CONFIG_STATUS <<_ACEOF
29920   sed "$ac_vpsub
29921 $extrasub
29922 _ACEOF
29923 cat >>$CONFIG_STATUS <<\_ACEOF
29924 :t
29925 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
29926 s&@configure_input@&$configure_input&;t t
29927 s&@top_builddir@&$ac_top_builddir_sub&;t t
29928 s&@srcdir@&$ac_srcdir&;t t
29929 s&@abs_srcdir@&$ac_abs_srcdir&;t t
29930 s&@top_srcdir@&$ac_top_srcdir&;t t
29931 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
29932 s&@builddir@&$ac_builddir&;t t
29933 s&@abs_builddir@&$ac_abs_builddir&;t t
29934 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
29935 s&@INSTALL@&$ac_INSTALL&;t t
29936 $ac_datarootdir_hack
29937 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
29938
29939 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
29940   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
29941   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
29942   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
29943 which seems to be undefined.  Please make sure it is defined." >&5
29944 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
29945 which seems to be undefined.  Please make sure it is defined." >&2;}
29946
29947   rm -f "$tmp/stdin"
29948   case $ac_file in
29949   -) cat "$tmp/out"; rm -f "$tmp/out";;
29950   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
29951   esac
29952  ;;
29953   :H)
29954   #
29955   # CONFIG_HEADER
29956   #
29957 _ACEOF
29958
29959 # Transform confdefs.h into a sed script `conftest.defines', that
29960 # substitutes the proper values into config.h.in to produce config.h.
29961 rm -f conftest.defines conftest.tail
29962 # First, append a space to every undef/define line, to ease matching.
29963 echo 's/$/ /' >conftest.defines
29964 # Then, protect against being on the right side of a sed subst, or in
29965 # an unquoted here document, in config.status.  If some macros were
29966 # called several times there might be several #defines for the same
29967 # symbol, which is useless.  But do not sort them, since the last
29968 # AC_DEFINE must be honored.
29969 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
29970 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
29971 # NAME is the cpp macro being defined, VALUE is the value it is being given.
29972 # PARAMS is the parameter list in the macro definition--in most cases, it's
29973 # just an empty string.
29974 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
29975 ac_dB='\\)[      (].*,\\1define\\2'
29976 ac_dC=' '
29977 ac_dD=' ,'
29978
29979 uniq confdefs.h |
29980   sed -n '
29981         t rset
29982         :rset
29983         s/^[     ]*#[    ]*define[       ][      ]*//
29984         t ok
29985         d
29986         :ok
29987         s/[\\&,]/\\&/g
29988         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
29989         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
29990   ' >>conftest.defines
29991
29992 # Remove the space that was appended to ease matching.
29993 # Then replace #undef with comments.  This is necessary, for
29994 # example, in the case of _POSIX_SOURCE, which is predefined and required
29995 # on some systems where configure will not decide to define it.
29996 # (The regexp can be short, since the line contains either #define or #undef.)
29997 echo 's/ $//
29998 s,^[     #]*u.*,/* & */,' >>conftest.defines
29999
30000 # Break up conftest.defines:
30001 ac_max_sed_lines=50
30002
30003 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
30004 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
30005 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
30006 # et cetera.
30007 ac_in='$ac_file_inputs'
30008 ac_out='"$tmp/out1"'
30009 ac_nxt='"$tmp/out2"'
30010
30011 while :
30012 do
30013   # Write a here document:
30014     cat >>$CONFIG_STATUS <<_ACEOF
30015     # First, check the format of the line:
30016     cat >"\$tmp/defines.sed" <<\\CEOF
30017 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
30018 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
30019 b
30020 :def
30021 _ACEOF
30022   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
30023   echo 'CEOF
30024     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
30025   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
30026   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
30027   grep . conftest.tail >/dev/null || break
30028   rm -f conftest.defines
30029   mv conftest.tail conftest.defines
30030 done
30031 rm -f conftest.defines conftest.tail
30032
30033 echo "ac_result=$ac_in" >>$CONFIG_STATUS
30034 cat >>$CONFIG_STATUS <<\_ACEOF
30035   if test x"$ac_file" != x-; then
30036     echo "/* $configure_input  */" >"$tmp/config.h"
30037     cat "$ac_result" >>"$tmp/config.h"
30038     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
30039       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
30040 echo "$as_me: $ac_file is unchanged" >&6;}
30041     else
30042       rm -f $ac_file
30043       mv "$tmp/config.h" $ac_file
30044     fi
30045   else
30046     echo "/* $configure_input  */"
30047     cat "$ac_result"
30048   fi
30049   rm -f "$tmp/out12"
30050 # Compute $ac_file's index in $config_headers.
30051 _am_stamp_count=1
30052 for _am_header in $config_headers :; do
30053   case $_am_header in
30054     $ac_file | $ac_file:* )
30055       break ;;
30056     * )
30057       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
30058   esac
30059 done
30060 echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
30061 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30062          X$ac_file : 'X\(//\)[^/]' \| \
30063          X$ac_file : 'X\(//\)$' \| \
30064          X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
30065 echo X$ac_file |
30066     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30067             s//\1/
30068             q
30069           }
30070           /^X\(\/\/\)[^/].*/{
30071             s//\1/
30072             q
30073           }
30074           /^X\(\/\/\)$/{
30075             s//\1/
30076             q
30077           }
30078           /^X\(\/\).*/{
30079             s//\1/
30080             q
30081           }
30082           s/.*/./; q'`/stamp-h$_am_stamp_count
30083  ;;
30084   
30085   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
30086 echo "$as_me: executing $ac_file commands" >&6;}
30087  ;;
30088   esac
30089
30090
30091   case $ac_file$ac_mode in
30092     "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
30093   # Strip MF so we end up with the name of the file.
30094   mf=`echo "$mf" | sed -e 's/:.*$//'`
30095   # Check whether this is an Automake generated Makefile or not.
30096   # We used to match only the files named `Makefile.in', but
30097   # some people rename them; so instead we look at the file content.
30098   # Grep'ing the first line is not enough: some people post-process
30099   # each Makefile.in and add a new line on top of each file to say so.
30100   # So let's grep whole file.
30101   if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
30102     dirpart=`$as_dirname -- "$mf" ||
30103 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30104          X"$mf" : 'X\(//\)[^/]' \| \
30105          X"$mf" : 'X\(//\)$' \| \
30106          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
30107 echo X"$mf" |
30108     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30109             s//\1/
30110             q
30111           }
30112           /^X\(\/\/\)[^/].*/{
30113             s//\1/
30114             q
30115           }
30116           /^X\(\/\/\)$/{
30117             s//\1/
30118             q
30119           }
30120           /^X\(\/\).*/{
30121             s//\1/
30122             q
30123           }
30124           s/.*/./; q'`
30125   else
30126     continue
30127   fi
30128   # Extract the definition of DEPDIR, am__include, and am__quote
30129   # from the Makefile without running `make'.
30130   DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
30131   test -z "$DEPDIR" && continue
30132   am__include=`sed -n 's/^am__include = //p' < "$mf"`
30133   test -z "am__include" && continue
30134   am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
30135   # When using ansi2knr, U may be empty or an underscore; expand it
30136   U=`sed -n 's/^U = //p' < "$mf"`
30137   # Find all dependency output files, they are included files with
30138   # $(DEPDIR) in their names.  We invoke sed twice because it is the
30139   # simplest approach to changing $(DEPDIR) to its actual value in the
30140   # expansion.
30141   for file in `sed -n "
30142     s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
30143        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
30144     # Make sure the directory exists.
30145     test -f "$dirpart/$file" && continue
30146     fdir=`$as_dirname -- "$file" ||
30147 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30148          X"$file" : 'X\(//\)[^/]' \| \
30149          X"$file" : 'X\(//\)$' \| \
30150          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
30151 echo X"$file" |
30152     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30153             s//\1/
30154             q
30155           }
30156           /^X\(\/\/\)[^/].*/{
30157             s//\1/
30158             q
30159           }
30160           /^X\(\/\/\)$/{
30161             s//\1/
30162             q
30163           }
30164           /^X\(\/\).*/{
30165             s//\1/
30166             q
30167           }
30168           s/.*/./; q'`
30169     { as_dir=$dirpart/$fdir
30170   case $as_dir in #(
30171   -*) as_dir=./$as_dir;;
30172   esac
30173   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
30174     as_dirs=
30175     while :; do
30176       case $as_dir in #(
30177       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
30178       *) as_qdir=$as_dir;;
30179       esac
30180       as_dirs="'$as_qdir' $as_dirs"
30181       as_dir=`$as_dirname -- "$as_dir" ||
30182 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30183          X"$as_dir" : 'X\(//\)[^/]' \| \
30184          X"$as_dir" : 'X\(//\)$' \| \
30185          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
30186 echo X"$as_dir" |
30187     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30188             s//\1/
30189             q
30190           }
30191           /^X\(\/\/\)[^/].*/{
30192             s//\1/
30193             q
30194           }
30195           /^X\(\/\/\)$/{
30196             s//\1/
30197             q
30198           }
30199           /^X\(\/\).*/{
30200             s//\1/
30201             q
30202           }
30203           s/.*/./; q'`
30204       test -d "$as_dir" && break
30205     done
30206     test -z "$as_dirs" || eval "mkdir $as_dirs"
30207   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
30208 echo "$as_me: error: cannot create directory $as_dir" >&2;}
30209    { (exit 1); exit 1; }; }; }
30210     # echo "creating $dirpart/$file"
30211     echo '# dummy' > "$dirpart/$file"
30212   done
30213 done
30214  ;;
30215
30216   esac
30217 done # for ac_tag
30218
30219
30220 { (exit 0); exit 0; }
30221 _ACEOF
30222 chmod +x $CONFIG_STATUS
30223 ac_clean_files=$ac_clean_files_save
30224
30225
30226 # configure is writing to config.log, and then calls config.status.
30227 # config.status does its own redirection, appending to config.log.
30228 # Unfortunately, on DOS this fails, as config.log is still kept open
30229 # by configure, so config.status won't be able to write to it; its
30230 # output is simply discarded.  So we exec the FD to /dev/null,
30231 # effectively closing config.log, so it can be properly (re)opened and
30232 # appended to by config.status.  When coming back to configure, we
30233 # need to make the FD available again.
30234 if test "$no_create" != yes; then
30235   ac_cs_success=:
30236   ac_config_status_args=
30237   test "$silent" = yes &&
30238     ac_config_status_args="$ac_config_status_args --quiet"
30239   exec 5>/dev/null
30240   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
30241   exec 5>>config.log
30242   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
30243   # would make configure fail if this is the last instruction.
30244   $ac_cs_success || { (exit 1); exit 1; }
30245 fi
30246
30247