]> git.decadent.org.uk Git - nfs-utils.git/blob - autom4te.cache/output.0
Merge branch 'upstream'
[nfs-utils.git] / autom4te.cache / output.0
1 @%:@! /bin/sh
2 @%:@ Guess values for system-dependent variables and create Makefiles.
3 @%:@ Generated by GNU Autoconf 2.61 for linux nfs-utils 1.1.0.
4 @%:@
5 @%:@ Report bugs to <nfs@lists.sf.net>.
6 @%:@ 
7 @%:@ Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 @%:@ 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
9 @%:@ This configure script is free software; the Free Software Foundation
10 @%:@ gives unlimited permission to copy, distribute and modify it.
11 ## --------------------- ##
12 ## M4sh Initialization.  ##
13 ## --------------------- ##
14
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18   emulate sh
19   NULLCMD=:
20   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21   # is contrary to our usage.  Disable this feature.
22   alias -g '${1+"$@"}'='"$@"'
23   setopt NO_GLOB_SUBST
24 else
25   case `(set -o) 2>/dev/null` in
26   *posix*) set -o posix ;;
27 esac
28
29 fi
30
31
32
33
34 # PATH needs CR
35 # Avoid depending upon Character Ranges.
36 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
37 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
38 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
39 as_cr_digits='0123456789'
40 as_cr_alnum=$as_cr_Letters$as_cr_digits
41
42 # The user is always right.
43 if test "${PATH_SEPARATOR+set}" != set; then
44   echo "#! /bin/sh" >conf$$.sh
45   echo  "exit 0"   >>conf$$.sh
46   chmod +x conf$$.sh
47   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
48     PATH_SEPARATOR=';'
49   else
50     PATH_SEPARATOR=:
51   fi
52   rm -f conf$$.sh
53 fi
54
55 # Support unset when possible.
56 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
57   as_unset=unset
58 else
59   as_unset=false
60 fi
61
62
63 # IFS
64 # We need space, tab and new line, in precisely that order.  Quoting is
65 # there to prevent editors from complaining about space-tab.
66 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
67 # splitting by setting IFS to empty value.)
68 as_nl='
69 '
70 IFS=" ""        $as_nl"
71
72 # Find who we are.  Look in the path if we contain no directory separator.
73 case $0 in
74   *[\\/]* ) as_myself=$0 ;;
75   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
76 for as_dir in $PATH
77 do
78   IFS=$as_save_IFS
79   test -z "$as_dir" && as_dir=.
80   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
81 done
82 IFS=$as_save_IFS
83
84      ;;
85 esac
86 # We did not find ourselves, most probably we were run as `sh COMMAND'
87 # in which case we are not to be found in the path.
88 if test "x$as_myself" = x; then
89   as_myself=$0
90 fi
91 if test ! -f "$as_myself"; then
92   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
93   { (exit 1); exit 1; }
94 fi
95
96 # Work around bugs in pre-3.0 UWIN ksh.
97 for as_var in ENV MAIL MAILPATH
98 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
99 done
100 PS1='$ '
101 PS2='> '
102 PS4='+ '
103
104 # NLS nuisances.
105 for as_var in \
106   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
107   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
108   LC_TELEPHONE LC_TIME
109 do
110   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
111     eval $as_var=C; export $as_var
112   else
113     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
114   fi
115 done
116
117 # Required to use basename.
118 if expr a : '\(a\)' >/dev/null 2>&1 &&
119    test "X`expr 00001 : '.*\(...\)'`" = X001; then
120   as_expr=expr
121 else
122   as_expr=false
123 fi
124
125 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
126   as_basename=basename
127 else
128   as_basename=false
129 fi
130
131
132 # Name of the executable.
133 as_me=`$as_basename -- "$0" ||
134 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
135          X"$0" : 'X\(//\)$' \| \
136          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
137 echo X/"$0" |
138     sed '/^.*\/\([^/][^/]*\)\/*$/{
139             s//\1/
140             q
141           }
142           /^X\/\(\/\/\)$/{
143             s//\1/
144             q
145           }
146           /^X\/\(\/\).*/{
147             s//\1/
148             q
149           }
150           s/.*/./; q'`
151
152 # CDPATH.
153 $as_unset CDPATH
154
155
156 if test "x$CONFIG_SHELL" = x; then
157   if (eval ":") 2>/dev/null; then
158   as_have_required=yes
159 else
160   as_have_required=no
161 fi
162
163   if test $as_have_required = yes &&     (eval ":
164 (as_func_return () {
165   (exit \$1)
166 }
167 as_func_success () {
168   as_func_return 0
169 }
170 as_func_failure () {
171   as_func_return 1
172 }
173 as_func_ret_success () {
174   return 0
175 }
176 as_func_ret_failure () {
177   return 1
178 }
179
180 exitcode=0
181 if as_func_success; then
182   :
183 else
184   exitcode=1
185   echo as_func_success failed.
186 fi
187
188 if as_func_failure; then
189   exitcode=1
190   echo as_func_failure succeeded.
191 fi
192
193 if as_func_ret_success; then
194   :
195 else
196   exitcode=1
197   echo as_func_ret_success failed.
198 fi
199
200 if as_func_ret_failure; then
201   exitcode=1
202   echo as_func_ret_failure succeeded.
203 fi
204
205 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
206   :
207 else
208   exitcode=1
209   echo positional parameters were not saved.
210 fi
211
212 test \$exitcode = 0) || { (exit 1); exit 1; }
213
214 (
215   as_lineno_1=\$LINENO
216   as_lineno_2=\$LINENO
217   test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
218   test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
219 ") 2> /dev/null; then
220   :
221 else
222   as_candidate_shells=
223     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
224 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
225 do
226   IFS=$as_save_IFS
227   test -z "$as_dir" && as_dir=.
228   case $as_dir in
229          /*)
230            for as_base in sh bash ksh sh5; do
231              as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
232            done;;
233        esac
234 done
235 IFS=$as_save_IFS
236
237
238       for as_shell in $as_candidate_shells $SHELL; do
239          # Try only shells that exist, to save several forks.
240          if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
241                 { ("$as_shell") 2> /dev/null <<\_ASEOF
242 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
243   emulate sh
244   NULLCMD=:
245   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
246   # is contrary to our usage.  Disable this feature.
247   alias -g '${1+"$@"}'='"$@"'
248   setopt NO_GLOB_SUBST
249 else
250   case `(set -o) 2>/dev/null` in
251   *posix*) set -o posix ;;
252 esac
253
254 fi
255
256
257 :
258 _ASEOF
259 }; then
260   CONFIG_SHELL=$as_shell
261                as_have_required=yes
262                if { "$as_shell" 2> /dev/null <<\_ASEOF
263 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
264   emulate sh
265   NULLCMD=:
266   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
267   # is contrary to our usage.  Disable this feature.
268   alias -g '${1+"$@"}'='"$@"'
269   setopt NO_GLOB_SUBST
270 else
271   case `(set -o) 2>/dev/null` in
272   *posix*) set -o posix ;;
273 esac
274
275 fi
276
277
278 :
279 (as_func_return () {
280   (exit $1)
281 }
282 as_func_success () {
283   as_func_return 0
284 }
285 as_func_failure () {
286   as_func_return 1
287 }
288 as_func_ret_success () {
289   return 0
290 }
291 as_func_ret_failure () {
292   return 1
293 }
294
295 exitcode=0
296 if as_func_success; then
297   :
298 else
299   exitcode=1
300   echo as_func_success failed.
301 fi
302
303 if as_func_failure; then
304   exitcode=1
305   echo as_func_failure succeeded.
306 fi
307
308 if as_func_ret_success; then
309   :
310 else
311   exitcode=1
312   echo as_func_ret_success failed.
313 fi
314
315 if as_func_ret_failure; then
316   exitcode=1
317   echo as_func_ret_failure succeeded.
318 fi
319
320 if ( set x; as_func_ret_success y && test x = "$1" ); then
321   :
322 else
323   exitcode=1
324   echo positional parameters were not saved.
325 fi
326
327 test $exitcode = 0) || { (exit 1); exit 1; }
328
329 (
330   as_lineno_1=$LINENO
331   as_lineno_2=$LINENO
332   test "x$as_lineno_1" != "x$as_lineno_2" &&
333   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
334
335 _ASEOF
336 }; then
337   break
338 fi
339
340 fi
341
342       done
343
344       if test "x$CONFIG_SHELL" != x; then
345   for as_var in BASH_ENV ENV
346         do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
347         done
348         export CONFIG_SHELL
349         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
350 fi
351
352
353     if test $as_have_required = no; then
354   echo This script requires a shell more modern than all the
355       echo shells that I found on your system.  Please install a
356       echo modern shell, or manually run the script under such a
357       echo shell if you do have one.
358       { (exit 1); exit 1; }
359 fi
360
361     
362 fi
363
364 fi
365
366
367
368 (eval "as_func_return () {
369   (exit \$1)
370 }
371 as_func_success () {
372   as_func_return 0
373 }
374 as_func_failure () {
375   as_func_return 1
376 }
377 as_func_ret_success () {
378   return 0
379 }
380 as_func_ret_failure () {
381   return 1
382 }
383
384 exitcode=0
385 if as_func_success; then
386   :
387 else
388   exitcode=1
389   echo as_func_success failed.
390 fi
391
392 if as_func_failure; then
393   exitcode=1
394   echo as_func_failure succeeded.
395 fi
396
397 if as_func_ret_success; then
398   :
399 else
400   exitcode=1
401   echo as_func_ret_success failed.
402 fi
403
404 if as_func_ret_failure; then
405   exitcode=1
406   echo as_func_ret_failure succeeded.
407 fi
408
409 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
410   :
411 else
412   exitcode=1
413   echo positional parameters were not saved.
414 fi
415
416 test \$exitcode = 0") || {
417   echo No shell found that supports shell functions.
418   echo Please tell autoconf@gnu.org about your system,
419   echo including any error possibly output before this
420   echo message
421 }
422
423
424
425   as_lineno_1=$LINENO
426   as_lineno_2=$LINENO
427   test "x$as_lineno_1" != "x$as_lineno_2" &&
428   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
429
430   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
431   # uniformly replaced by the line number.  The first 'sed' inserts a
432   # line-number line after each line using $LINENO; the second 'sed'
433   # does the real work.  The second script uses 'N' to pair each
434   # line-number line with the line containing $LINENO, and appends
435   # trailing '-' during substitution so that $LINENO is not a special
436   # case at line end.
437   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
438   # scripts with optimization help from Paolo Bonzini.  Blame Lee
439   # E. McMahon (1931-1989) for sed's syntax.  :-)
440   sed -n '
441     p
442     /[$]LINENO/=
443   ' <$as_myself |
444     sed '
445       s/[$]LINENO.*/&-/
446       t lineno
447       b
448       :lineno
449       N
450       :loop
451       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
452       t loop
453       s/-\n.*//
454     ' >$as_me.lineno &&
455   chmod +x "$as_me.lineno" ||
456     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
457    { (exit 1); exit 1; }; }
458
459   # Don't try to exec as it changes $[0], causing all sort of problems
460   # (the dirname of $[0] is not the place where we might find the
461   # original and so on.  Autoconf is especially sensitive to this).
462   . "./$as_me.lineno"
463   # Exit status is that of the last command.
464   exit
465 }
466
467
468 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
469   as_dirname=dirname
470 else
471   as_dirname=false
472 fi
473
474 ECHO_C= ECHO_N= ECHO_T=
475 case `echo -n x` in
476 -n*)
477   case `echo 'x\c'` in
478   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
479   *)   ECHO_C='\c';;
480   esac;;
481 *)
482   ECHO_N='-n';;
483 esac
484
485 if expr a : '\(a\)' >/dev/null 2>&1 &&
486    test "X`expr 00001 : '.*\(...\)'`" = X001; then
487   as_expr=expr
488 else
489   as_expr=false
490 fi
491
492 rm -f conf$$ conf$$.exe conf$$.file
493 if test -d conf$$.dir; then
494   rm -f conf$$.dir/conf$$.file
495 else
496   rm -f conf$$.dir
497   mkdir conf$$.dir
498 fi
499 echo >conf$$.file
500 if ln -s conf$$.file conf$$ 2>/dev/null; then
501   as_ln_s='ln -s'
502   # ... but there are two gotchas:
503   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
504   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
505   # In both cases, we have to default to `cp -p'.
506   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
507     as_ln_s='cp -p'
508 elif ln conf$$.file conf$$ 2>/dev/null; then
509   as_ln_s=ln
510 else
511   as_ln_s='cp -p'
512 fi
513 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
514 rmdir conf$$.dir 2>/dev/null
515
516 if mkdir -p . 2>/dev/null; then
517   as_mkdir_p=:
518 else
519   test -d ./-p && rmdir ./-p
520   as_mkdir_p=false
521 fi
522
523 if test -x / >/dev/null 2>&1; then
524   as_test_x='test -x'
525 else
526   if ls -dL / >/dev/null 2>&1; then
527     as_ls_L_option=L
528   else
529     as_ls_L_option=
530   fi
531   as_test_x='
532     eval sh -c '\''
533       if test -d "$1"; then
534         test -d "$1/.";
535       else
536         case $1 in
537         -*)set "./$1";;
538         esac;
539         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
540         ???[sx]*):;;*)false;;esac;fi
541     '\'' sh
542   '
543 fi
544 as_executable_p=$as_test_x
545
546 # Sed expression to map a string onto a valid CPP name.
547 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
548
549 # Sed expression to map a string onto a valid variable name.
550 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
551
552
553
554
555 # Check that we are running under the correct shell.
556 SHELL=${CONFIG_SHELL-/bin/sh}
557
558 case X$ECHO in
559 X*--fallback-echo)
560   # Remove one level of quotation (which was required for Make).
561   ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
562   ;;
563 esac
564
565 echo=${ECHO-echo}
566 if test "X$1" = X--no-reexec; then
567   # Discard the --no-reexec flag, and continue.
568   shift
569 elif test "X$1" = X--fallback-echo; then
570   # Avoid inline document here, it may be left over
571   :
572 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
573   # Yippee, $echo works!
574   :
575 else
576   # Restart under the correct shell.
577   exec $SHELL "$0" --no-reexec ${1+"$@"}
578 fi
579
580 if test "X$1" = X--fallback-echo; then
581   # used as fallback echo
582   shift
583   cat <<EOF
584 $*
585 EOF
586   exit 0
587 fi
588
589 # The HP-UX ksh and POSIX shell print the target directory to stdout
590 # if CDPATH is set.
591 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
592
593 if test -z "$ECHO"; then
594 if test "X${echo_test_string+set}" != Xset; then
595 # find a string as large as possible, as long as the shell can cope with it
596   for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
597     # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
598     if (echo_test_string=`eval $cmd`) 2>/dev/null &&
599        echo_test_string=`eval $cmd` &&
600        (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
601     then
602       break
603     fi
604   done
605 fi
606
607 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
608    echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
609    test "X$echo_testing_string" = "X$echo_test_string"; then
610   :
611 else
612   # The Solaris, AIX, and Digital Unix default echo programs unquote
613   # backslashes.  This makes it impossible to quote backslashes using
614   #   echo "$something" | sed 's/\\/\\\\/g'
615   #
616   # So, first we look for a working echo in the user's PATH.
617
618   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
619   for dir in $PATH /usr/ucb; do
620     IFS="$lt_save_ifs"
621     if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
622        test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
623        echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
624        test "X$echo_testing_string" = "X$echo_test_string"; then
625       echo="$dir/echo"
626       break
627     fi
628   done
629   IFS="$lt_save_ifs"
630
631   if test "X$echo" = Xecho; then
632     # We didn't find a better echo, so look for alternatives.
633     if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
634        echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
635        test "X$echo_testing_string" = "X$echo_test_string"; then
636       # This shell has a builtin print -r that does the trick.
637       echo='print -r'
638     elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
639          test "X$CONFIG_SHELL" != X/bin/ksh; then
640       # If we have ksh, try running configure again with it.
641       ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
642       export ORIGINAL_CONFIG_SHELL
643       CONFIG_SHELL=/bin/ksh
644       export CONFIG_SHELL
645       exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
646     else
647       # Try using printf.
648       echo='printf %s\n'
649       if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
650          echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
651          test "X$echo_testing_string" = "X$echo_test_string"; then
652         # Cool, printf works
653         :
654       elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
655            test "X$echo_testing_string" = 'X\t' &&
656            echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
657            test "X$echo_testing_string" = "X$echo_test_string"; then
658         CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
659         export CONFIG_SHELL
660         SHELL="$CONFIG_SHELL"
661         export SHELL
662         echo="$CONFIG_SHELL $0 --fallback-echo"
663       elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
664            test "X$echo_testing_string" = 'X\t' &&
665            echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
666            test "X$echo_testing_string" = "X$echo_test_string"; then
667         echo="$CONFIG_SHELL $0 --fallback-echo"
668       else
669         # maybe with a smaller string...
670         prev=:
671
672         for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
673           if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
674           then
675             break
676           fi
677           prev="$cmd"
678         done
679
680         if test "$prev" != 'sed 50q "$0"'; then
681           echo_test_string=`eval $prev`
682           export echo_test_string
683           exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
684         else
685           # Oops.  We lost completely, so just stick with echo.
686           echo=echo
687         fi
688       fi
689     fi
690   fi
691 fi
692 fi
693
694 # Copy echo and quote the copy suitably for passing to libtool from
695 # the Makefile, instead of quoting the original, which is used later.
696 ECHO=$echo
697 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
698    ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
699 fi
700
701
702
703
704 tagnames=${tagnames+${tagnames},}CXX
705
706 tagnames=${tagnames+${tagnames},}F77
707
708 exec 7<&0 </dev/null 6>&1
709
710 # Name of the host.
711 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
712 # so uname gets run too.
713 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
714
715 #
716 # Initializations.
717 #
718 ac_default_prefix=/usr/local
719 ac_clean_files=
720 ac_config_libobj_dir=.
721 LIB@&t@OBJS=
722 cross_compiling=no
723 subdirs=
724 MFLAGS=
725 MAKEFLAGS=
726 SHELL=${CONFIG_SHELL-/bin/sh}
727
728 # Identity of this package.
729 PACKAGE_NAME='linux nfs-utils'
730 PACKAGE_TARNAME='nfs-utils'
731 PACKAGE_VERSION='1.1.0'
732 PACKAGE_STRING='linux nfs-utils 1.1.0'
733 PACKAGE_BUGREPORT='nfs@lists.sf.net'
734
735 ac_default_prefix=/usr
736 ac_unique_file="support/include/config.h.in"
737 # Factoring default headers for most tests.
738 ac_includes_default="\
739 #include <stdio.h>
740 #ifdef HAVE_SYS_TYPES_H
741 # include <sys/types.h>
742 #endif
743 #ifdef HAVE_SYS_STAT_H
744 # include <sys/stat.h>
745 #endif
746 #ifdef STDC_HEADERS
747 # include <stdlib.h>
748 # include <stddef.h>
749 #else
750 # ifdef HAVE_STDLIB_H
751 #  include <stdlib.h>
752 # endif
753 #endif
754 #ifdef HAVE_STRING_H
755 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
756 #  include <memory.h>
757 # endif
758 # include <string.h>
759 #endif
760 #ifdef HAVE_STRINGS_H
761 # include <strings.h>
762 #endif
763 #ifdef HAVE_INTTYPES_H
764 # include <inttypes.h>
765 #endif
766 #ifdef HAVE_STDINT_H
767 # include <stdint.h>
768 #endif
769 #ifdef HAVE_UNISTD_H
770 # include <unistd.h>
771 #endif"
772
773 ac_subst_vars='SHELL
774 PATH_SEPARATOR
775 PACKAGE_NAME
776 PACKAGE_TARNAME
777 PACKAGE_VERSION
778 PACKAGE_STRING
779 PACKAGE_BUGREPORT
780 exec_prefix
781 prefix
782 program_transform_name
783 bindir
784 sbindir
785 libexecdir
786 datarootdir
787 datadir
788 sysconfdir
789 sharedstatedir
790 localstatedir
791 includedir
792 oldincludedir
793 docdir
794 infodir
795 htmldir
796 dvidir
797 pdfdir
798 psdir
799 libdir
800 localedir
801 mandir
802 DEFS
803 ECHO_C
804 ECHO_N
805 ECHO_T
806 LIBS
807 build_alias
808 host_alias
809 target_alias
810 build
811 build_cpu
812 build_vendor
813 build_os
814 host
815 host_cpu
816 host_vendor
817 host_os
818 INSTALL_PROGRAM
819 INSTALL_SCRIPT
820 INSTALL_DATA
821 CYGPATH_W
822 PACKAGE
823 VERSION
824 ACLOCAL
825 AUTOCONF
826 AUTOMAKE
827 AUTOHEADER
828 MAKEINFO
829 install_sh
830 STRIP
831 INSTALL_STRIP_PROGRAM
832 mkdir_p
833 AWK
834 SET_MAKE
835 am__leading_dot
836 AMTAR
837 am__tar
838 am__untar
839 MAINTAINER_MODE_TRUE
840 MAINTAINER_MODE_FALSE
841 MAINT
842 RELEASE
843 statedir
844 statduser
845 startstatd
846 enable_nfsv3
847 IDMAPD
848 enable_nfsv4
849 CONFIG_NFSV4_TRUE
850 CONFIG_NFSV4_FALSE
851 GSSD
852 SVCGSSD
853 enable_gss
854 CONFIG_GSS_TRUE
855 CONFIG_GSS_FALSE
856 kprefix
857 secure_statd
858 RPCGEN_PATH
859 CONFIG_RPCGEN_TRUE
860 CONFIG_RPCGEN_FALSE
861 CONFIG_MOUNT_TRUE
862 CONFIG_MOUNT_FALSE
863 CC
864 CFLAGS
865 LDFLAGS
866 CPPFLAGS
867 ac_ct_CC
868 EXEEXT
869 OBJEXT
870 DEPDIR
871 am__include
872 am__quote
873 AMDEP_TRUE
874 AMDEP_FALSE
875 AMDEPBACKSLASH
876 CCDEPMODE
877 am__fastdepCC_TRUE
878 am__fastdepCC_FALSE
879 LIBWRAP
880 HAVE_LIBWRAP
881 HAVE_TCP_WRAPPER
882 CXX
883 CXXFLAGS
884 ac_ct_CXX
885 CXXDEPMODE
886 am__fastdepCXX_TRUE
887 am__fastdepCXX_FALSE
888 CPP
889 LN_S
890 SED
891 GREP
892 EGREP
893 ECHO
894 AR
895 RANLIB
896 CXXCPP
897 F77
898 FFLAGS
899 ac_ct_F77
900 LIBTOOL
901 CC_FOR_BUILD
902 LD
903 LIBNSL
904 PKG_CONFIG
905 RPCSECGSS_CFLAGS
906 RPCSECGSS_LIBS
907 GSSGLUE_CFLAGS
908 GSSGLUE_LIBS
909 LIBSOCKET
910 LIBCRYPT
911 LIBBSD
912 LIBBLKID
913 KRBDIR
914 KRBLIBS
915 KRBCFLAGS
916 KRBLDFLAGS
917 K5VERS
918 ALLOCA
919 LIB@&t@OBJS
920 CFLAGS_FOR_BUILD
921 CXXFLAGS_FOR_BUILD
922 CPPFLAGS_FOR_BUILD
923 LDFLAGS_FOR_BUILD
924 AM_CPPFLAGS
925 AM_CFLAGS
926 ACLOCAL_AMFLAGS
927 LTLIBOBJS'
928 ac_subst_files=''
929       ac_precious_vars='build_alias
930 host_alias
931 target_alias
932 CC
933 CFLAGS
934 LDFLAGS
935 LIBS
936 CPPFLAGS
937 CXX
938 CXXFLAGS
939 CCC
940 CPP
941 CXXCPP
942 F77
943 FFLAGS
944 PKG_CONFIG
945 RPCSECGSS_CFLAGS
946 RPCSECGSS_LIBS
947 GSSGLUE_CFLAGS
948 GSSGLUE_LIBS'
949
950
951 # Initialize some variables set by options.
952 ac_init_help=
953 ac_init_version=false
954 # The variables have the same names as the options, with
955 # dashes changed to underlines.
956 cache_file=/dev/null
957 exec_prefix=NONE
958 no_create=
959 no_recursion=
960 prefix=NONE
961 program_prefix=NONE
962 program_suffix=NONE
963 program_transform_name=s,x,x,
964 silent=
965 site=
966 srcdir=
967 verbose=
968 x_includes=NONE
969 x_libraries=NONE
970
971 # Installation directory options.
972 # These are left unexpanded so users can "make install exec_prefix=/foo"
973 # and all the variables that are supposed to be based on exec_prefix
974 # by default will actually change.
975 # Use braces instead of parens because sh, perl, etc. also accept them.
976 # (The list follows the same order as the GNU Coding Standards.)
977 bindir='${exec_prefix}/bin'
978 sbindir='${exec_prefix}/sbin'
979 libexecdir='${exec_prefix}/libexec'
980 datarootdir='${prefix}/share'
981 datadir='${datarootdir}'
982 sysconfdir='${prefix}/etc'
983 sharedstatedir='${prefix}/com'
984 localstatedir='${prefix}/var'
985 includedir='${prefix}/include'
986 oldincludedir='/usr/include'
987 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
988 infodir='${datarootdir}/info'
989 htmldir='${docdir}'
990 dvidir='${docdir}'
991 pdfdir='${docdir}'
992 psdir='${docdir}'
993 libdir='${exec_prefix}/lib'
994 localedir='${datarootdir}/locale'
995 mandir='${datarootdir}/man'
996
997 ac_prev=
998 ac_dashdash=
999 for ac_option
1000 do
1001   # If the previous option needs an argument, assign it.
1002   if test -n "$ac_prev"; then
1003     eval $ac_prev=\$ac_option
1004     ac_prev=
1005     continue
1006   fi
1007
1008   case $ac_option in
1009   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1010   *)    ac_optarg=yes ;;
1011   esac
1012
1013   # Accept the important Cygnus configure options, so we can diagnose typos.
1014
1015   case $ac_dashdash$ac_option in
1016   --)
1017     ac_dashdash=yes ;;
1018
1019   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1020     ac_prev=bindir ;;
1021   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1022     bindir=$ac_optarg ;;
1023
1024   -build | --build | --buil | --bui | --bu)
1025     ac_prev=build_alias ;;
1026   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1027     build_alias=$ac_optarg ;;
1028
1029   -cache-file | --cache-file | --cache-fil | --cache-fi \
1030   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1031     ac_prev=cache_file ;;
1032   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1033   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1034     cache_file=$ac_optarg ;;
1035
1036   --config-cache | -C)
1037     cache_file=config.cache ;;
1038
1039   -datadir | --datadir | --datadi | --datad)
1040     ac_prev=datadir ;;
1041   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1042     datadir=$ac_optarg ;;
1043
1044   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1045   | --dataroo | --dataro | --datar)
1046     ac_prev=datarootdir ;;
1047   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1048   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1049     datarootdir=$ac_optarg ;;
1050
1051   -disable-* | --disable-*)
1052     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1053     # Reject names that are not valid shell variable names.
1054     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1055       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1056    { (exit 1); exit 1; }; }
1057     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1058     eval enable_$ac_feature=no ;;
1059
1060   -docdir | --docdir | --docdi | --doc | --do)
1061     ac_prev=docdir ;;
1062   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1063     docdir=$ac_optarg ;;
1064
1065   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1066     ac_prev=dvidir ;;
1067   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1068     dvidir=$ac_optarg ;;
1069
1070   -enable-* | --enable-*)
1071     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1072     # Reject names that are not valid shell variable names.
1073     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1074       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1075    { (exit 1); exit 1; }; }
1076     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1077     eval enable_$ac_feature=\$ac_optarg ;;
1078
1079   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1080   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1081   | --exec | --exe | --ex)
1082     ac_prev=exec_prefix ;;
1083   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1084   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1085   | --exec=* | --exe=* | --ex=*)
1086     exec_prefix=$ac_optarg ;;
1087
1088   -gas | --gas | --ga | --g)
1089     # Obsolete; use --with-gas.
1090     with_gas=yes ;;
1091
1092   -help | --help | --hel | --he | -h)
1093     ac_init_help=long ;;
1094   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1095     ac_init_help=recursive ;;
1096   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1097     ac_init_help=short ;;
1098
1099   -host | --host | --hos | --ho)
1100     ac_prev=host_alias ;;
1101   -host=* | --host=* | --hos=* | --ho=*)
1102     host_alias=$ac_optarg ;;
1103
1104   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1105     ac_prev=htmldir ;;
1106   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1107   | --ht=*)
1108     htmldir=$ac_optarg ;;
1109
1110   -includedir | --includedir | --includedi | --included | --include \
1111   | --includ | --inclu | --incl | --inc)
1112     ac_prev=includedir ;;
1113   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1114   | --includ=* | --inclu=* | --incl=* | --inc=*)
1115     includedir=$ac_optarg ;;
1116
1117   -infodir | --infodir | --infodi | --infod | --info | --inf)
1118     ac_prev=infodir ;;
1119   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1120     infodir=$ac_optarg ;;
1121
1122   -libdir | --libdir | --libdi | --libd)
1123     ac_prev=libdir ;;
1124   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1125     libdir=$ac_optarg ;;
1126
1127   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1128   | --libexe | --libex | --libe)
1129     ac_prev=libexecdir ;;
1130   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1131   | --libexe=* | --libex=* | --libe=*)
1132     libexecdir=$ac_optarg ;;
1133
1134   -localedir | --localedir | --localedi | --localed | --locale)
1135     ac_prev=localedir ;;
1136   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1137     localedir=$ac_optarg ;;
1138
1139   -localstatedir | --localstatedir | --localstatedi | --localstated \
1140   | --localstate | --localstat | --localsta | --localst | --locals)
1141     ac_prev=localstatedir ;;
1142   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1143   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1144     localstatedir=$ac_optarg ;;
1145
1146   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1147     ac_prev=mandir ;;
1148   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1149     mandir=$ac_optarg ;;
1150
1151   -nfp | --nfp | --nf)
1152     # Obsolete; use --without-fp.
1153     with_fp=no ;;
1154
1155   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1156   | --no-cr | --no-c | -n)
1157     no_create=yes ;;
1158
1159   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1160   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1161     no_recursion=yes ;;
1162
1163   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1164   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1165   | --oldin | --oldi | --old | --ol | --o)
1166     ac_prev=oldincludedir ;;
1167   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1168   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1169   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1170     oldincludedir=$ac_optarg ;;
1171
1172   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1173     ac_prev=prefix ;;
1174   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1175     prefix=$ac_optarg ;;
1176
1177   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1178   | --program-pre | --program-pr | --program-p)
1179     ac_prev=program_prefix ;;
1180   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1181   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1182     program_prefix=$ac_optarg ;;
1183
1184   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1185   | --program-suf | --program-su | --program-s)
1186     ac_prev=program_suffix ;;
1187   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1188   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1189     program_suffix=$ac_optarg ;;
1190
1191   -program-transform-name | --program-transform-name \
1192   | --program-transform-nam | --program-transform-na \
1193   | --program-transform-n | --program-transform- \
1194   | --program-transform | --program-transfor \
1195   | --program-transfo | --program-transf \
1196   | --program-trans | --program-tran \
1197   | --progr-tra | --program-tr | --program-t)
1198     ac_prev=program_transform_name ;;
1199   -program-transform-name=* | --program-transform-name=* \
1200   | --program-transform-nam=* | --program-transform-na=* \
1201   | --program-transform-n=* | --program-transform-=* \
1202   | --program-transform=* | --program-transfor=* \
1203   | --program-transfo=* | --program-transf=* \
1204   | --program-trans=* | --program-tran=* \
1205   | --progr-tra=* | --program-tr=* | --program-t=*)
1206     program_transform_name=$ac_optarg ;;
1207
1208   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1209     ac_prev=pdfdir ;;
1210   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1211     pdfdir=$ac_optarg ;;
1212
1213   -psdir | --psdir | --psdi | --psd | --ps)
1214     ac_prev=psdir ;;
1215   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1216     psdir=$ac_optarg ;;
1217
1218   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1219   | -silent | --silent | --silen | --sile | --sil)
1220     silent=yes ;;
1221
1222   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1223     ac_prev=sbindir ;;
1224   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1225   | --sbi=* | --sb=*)
1226     sbindir=$ac_optarg ;;
1227
1228   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1229   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1230   | --sharedst | --shareds | --shared | --share | --shar \
1231   | --sha | --sh)
1232     ac_prev=sharedstatedir ;;
1233   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1234   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1235   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1236   | --sha=* | --sh=*)
1237     sharedstatedir=$ac_optarg ;;
1238
1239   -site | --site | --sit)
1240     ac_prev=site ;;
1241   -site=* | --site=* | --sit=*)
1242     site=$ac_optarg ;;
1243
1244   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1245     ac_prev=srcdir ;;
1246   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1247     srcdir=$ac_optarg ;;
1248
1249   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1250   | --syscon | --sysco | --sysc | --sys | --sy)
1251     ac_prev=sysconfdir ;;
1252   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1253   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1254     sysconfdir=$ac_optarg ;;
1255
1256   -target | --target | --targe | --targ | --tar | --ta | --t)
1257     ac_prev=target_alias ;;
1258   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1259     target_alias=$ac_optarg ;;
1260
1261   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1262     verbose=yes ;;
1263
1264   -version | --version | --versio | --versi | --vers | -V)
1265     ac_init_version=: ;;
1266
1267   -with-* | --with-*)
1268     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1269     # Reject names that are not valid shell variable names.
1270     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1271       { echo "$as_me: error: invalid package name: $ac_package" >&2
1272    { (exit 1); exit 1; }; }
1273     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1274     eval with_$ac_package=\$ac_optarg ;;
1275
1276   -without-* | --without-*)
1277     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1278     # Reject names that are not valid shell variable names.
1279     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1280       { echo "$as_me: error: invalid package name: $ac_package" >&2
1281    { (exit 1); exit 1; }; }
1282     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1283     eval with_$ac_package=no ;;
1284
1285   --x)
1286     # Obsolete; use --with-x.
1287     with_x=yes ;;
1288
1289   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1290   | --x-incl | --x-inc | --x-in | --x-i)
1291     ac_prev=x_includes ;;
1292   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1293   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1294     x_includes=$ac_optarg ;;
1295
1296   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1297   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1298     ac_prev=x_libraries ;;
1299   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1300   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1301     x_libraries=$ac_optarg ;;
1302
1303   -*) { echo "$as_me: error: unrecognized option: $ac_option
1304 Try \`$0 --help' for more information." >&2
1305    { (exit 1); exit 1; }; }
1306     ;;
1307
1308   *=*)
1309     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1310     # Reject names that are not valid shell variable names.
1311     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1312       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1313    { (exit 1); exit 1; }; }
1314     eval $ac_envvar=\$ac_optarg
1315     export $ac_envvar ;;
1316
1317   *)
1318     # FIXME: should be removed in autoconf 3.0.
1319     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1320     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1321       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1322     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1323     ;;
1324
1325   esac
1326 done
1327
1328 if test -n "$ac_prev"; then
1329   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1330   { echo "$as_me: error: missing argument to $ac_option" >&2
1331    { (exit 1); exit 1; }; }
1332 fi
1333
1334 # Be sure to have absolute directory names.
1335 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1336                 datadir sysconfdir sharedstatedir localstatedir includedir \
1337                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1338                 libdir localedir mandir
1339 do
1340   eval ac_val=\$$ac_var
1341   case $ac_val in
1342     [\\/$]* | ?:[\\/]* )  continue;;
1343     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1344   esac
1345   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1346    { (exit 1); exit 1; }; }
1347 done
1348
1349 # There might be people who depend on the old broken behavior: `$host'
1350 # used to hold the argument of --host etc.
1351 # FIXME: To remove some day.
1352 build=$build_alias
1353 host=$host_alias
1354 target=$target_alias
1355
1356 # FIXME: To remove some day.
1357 if test "x$host_alias" != x; then
1358   if test "x$build_alias" = x; then
1359     cross_compiling=maybe
1360     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1361     If a cross compiler is detected then cross compile mode will be used." >&2
1362   elif test "x$build_alias" != "x$host_alias"; then
1363     cross_compiling=yes
1364   fi
1365 fi
1366
1367 ac_tool_prefix=
1368 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1369
1370 test "$silent" = yes && exec 6>/dev/null
1371
1372
1373 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1374 ac_ls_di=`ls -di .` &&
1375 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1376   { echo "$as_me: error: Working directory cannot be determined" >&2
1377    { (exit 1); exit 1; }; }
1378 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1379   { echo "$as_me: error: pwd does not report name of working directory" >&2
1380    { (exit 1); exit 1; }; }
1381
1382
1383 # Find the source files, if location was not specified.
1384 if test -z "$srcdir"; then
1385   ac_srcdir_defaulted=yes
1386   # Try the directory containing this script, then the parent directory.
1387   ac_confdir=`$as_dirname -- "$0" ||
1388 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1389          X"$0" : 'X\(//\)[^/]' \| \
1390          X"$0" : 'X\(//\)$' \| \
1391          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1392 echo X"$0" |
1393     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1394             s//\1/
1395             q
1396           }
1397           /^X\(\/\/\)[^/].*/{
1398             s//\1/
1399             q
1400           }
1401           /^X\(\/\/\)$/{
1402             s//\1/
1403             q
1404           }
1405           /^X\(\/\).*/{
1406             s//\1/
1407             q
1408           }
1409           s/.*/./; q'`
1410   srcdir=$ac_confdir
1411   if test ! -r "$srcdir/$ac_unique_file"; then
1412     srcdir=..
1413   fi
1414 else
1415   ac_srcdir_defaulted=no
1416 fi
1417 if test ! -r "$srcdir/$ac_unique_file"; then
1418   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1419   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1420    { (exit 1); exit 1; }; }
1421 fi
1422 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1423 ac_abs_confdir=`(
1424         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1425    { (exit 1); exit 1; }; }
1426         pwd)`
1427 # When building in place, set srcdir=.
1428 if test "$ac_abs_confdir" = "$ac_pwd"; then
1429   srcdir=.
1430 fi
1431 # Remove unnecessary trailing slashes from srcdir.
1432 # Double slashes in file names in object file debugging info
1433 # mess up M-x gdb in Emacs.
1434 case $srcdir in
1435 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1436 esac
1437 for ac_var in $ac_precious_vars; do
1438   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1439   eval ac_env_${ac_var}_value=\$${ac_var}
1440   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1441   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1442 done
1443
1444 #
1445 # Report the --help message.
1446 #
1447 if test "$ac_init_help" = "long"; then
1448   # Omit some internal or obsolete options to make the list less imposing.
1449   # This message is too long to be a string in the A/UX 3.1 sh.
1450   cat <<_ACEOF
1451 \`configure' configures linux nfs-utils 1.1.0 to adapt to many kinds of systems.
1452
1453 Usage: $0 [OPTION]... [VAR=VALUE]...
1454
1455 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1456 VAR=VALUE.  See below for descriptions of some of the useful variables.
1457
1458 Defaults for the options are specified in brackets.
1459
1460 Configuration:
1461   -h, --help              display this help and exit
1462       --help=short        display options specific to this package
1463       --help=recursive    display the short help of all the included packages
1464   -V, --version           display version information and exit
1465   -q, --quiet, --silent   do not print \`checking...' messages
1466       --cache-file=FILE   cache test results in FILE [disabled]
1467   -C, --config-cache      alias for \`--cache-file=config.cache'
1468   -n, --no-create         do not create output files
1469       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1470
1471 Installation directories:
1472   --prefix=PREFIX         install architecture-independent files in PREFIX
1473                           [$ac_default_prefix]
1474   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1475                           [PREFIX]
1476
1477 By default, \`make install' will install all the files in
1478 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1479 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1480 for instance \`--prefix=\$HOME'.
1481
1482 For better control, use the options below.
1483
1484 Fine tuning of the installation directories:
1485   --bindir=DIR           user executables [EPREFIX/bin]
1486   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1487   --libexecdir=DIR       program executables [EPREFIX/libexec]
1488   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1489   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1490   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1491   --libdir=DIR           object code libraries [EPREFIX/lib]
1492   --includedir=DIR       C header files [PREFIX/include]
1493   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1494   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1495   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1496   --infodir=DIR          info documentation [DATAROOTDIR/info]
1497   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1498   --mandir=DIR           man documentation [DATAROOTDIR/man]
1499   --docdir=DIR           documentation root @<:@DATAROOTDIR/doc/nfs-utils@:>@
1500   --htmldir=DIR          html documentation [DOCDIR]
1501   --dvidir=DIR           dvi documentation [DOCDIR]
1502   --pdfdir=DIR           pdf documentation [DOCDIR]
1503   --psdir=DIR            ps documentation [DOCDIR]
1504 _ACEOF
1505
1506   cat <<\_ACEOF
1507
1508 Program names:
1509   --program-prefix=PREFIX            prepend PREFIX to installed program names
1510   --program-suffix=SUFFIX            append SUFFIX to installed program names
1511   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1512
1513 System types:
1514   --build=BUILD     configure for building on BUILD [guessed]
1515   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1516 _ACEOF
1517 fi
1518
1519 if test -n "$ac_init_help"; then
1520   case $ac_init_help in
1521      short | recursive ) echo "Configuration of linux nfs-utils 1.1.0:";;
1522    esac
1523   cat <<\_ACEOF
1524
1525 Optional Features:
1526   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1527   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1528   --enable-maintainer-mode  enable make rules and dependencies not useful
1529                           (and sometimes confusing) to the casual installer
1530   --enable-nfsv3          enable support for NFSv3 @<:@default=yes@:>@
1531   --enable-nfsv4          enable support for NFSv4 @<:@default=yes@:>@
1532   --enable-gss            enable support for rpcsec_gss @<:@default=yes@:>@
1533   --enable-kprefix        install progs as rpc.knfsd etc
1534   --enable-secure-statd   Only lockd can use statd (security)
1535   --without-uuid          Exclude uuid support and so avoid possibly buggy
1536                           libblkid
1537   --enable-mount          Create mount.nfs and don't use the util-linux
1538                           mount(8) functionality. @<:@default=yes@:>@
1539   --disable-dependency-tracking  speeds up one-time build
1540   --enable-dependency-tracking   do not reject slow dependency extractors
1541   --disable-largefile     omit support for large files
1542   --enable-shared@<:@=PKGS@:>@  build shared libraries @<:@default=yes@:>@
1543   --enable-static@<:@=PKGS@:>@  build static libraries @<:@default=yes@:>@
1544   --enable-fast-install@<:@=PKGS@:>@ 
1545                           optimize for fast installation @<:@default=yes@:>@
1546   --disable-libtool-lock  avoid locking (might break parallel builds)
1547
1548 Optional Packages:
1549   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1550   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1551   --with-release=XXX      set release to XXX [1]
1552   --with-statedir=/foo    use state dir /foo /var/lib/nfs
1553   --with-statduser=rpcuser 
1554                           statd to run under @<:@rpcuser or nobody@:>@
1555   --with-start-statd=scriptname 
1556                           When an nfs filesystems is mounted with locking, run
1557                           this script
1558   --with-rpcgen=internal  use internal rpcgen instead of system one
1559   --with-tcp-wrappers[=PATH]      Enable tcpwrappers support
1560                  (optionally in PATH)
1561   --with-gnu-ld           assume the C compiler uses GNU ld @<:@default=no@:>@
1562   --with-pic              try to use only PIC/non-PIC objects @<:@default=use
1563                           both@:>@
1564   --with-tags@<:@=TAGS@:>@      include additional configurations @<:@automatic@:>@
1565   --with-krb5=DIR         use Kerberos v5 installation in DIR
1566
1567 Some influential environment variables:
1568   CC          C compiler command
1569   CFLAGS      C compiler flags
1570   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1571               nonstandard directory <lib dir>
1572   LIBS        libraries to pass to the linker, e.g. -l<library>
1573   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1574               you have headers in a nonstandard directory <include dir>
1575   CXX         C++ compiler command
1576   CXXFLAGS    C++ compiler flags
1577   CPP         C preprocessor
1578   CXXCPP      C++ preprocessor
1579   F77         Fortran 77 compiler command
1580   FFLAGS      Fortran 77 compiler flags
1581   PKG_CONFIG  path to pkg-config utility
1582   RPCSECGSS_CFLAGS 
1583               C compiler flags for RPCSECGSS, overriding pkg-config
1584   RPCSECGSS_LIBS 
1585               linker flags for RPCSECGSS, overriding pkg-config
1586   GSSGLUE_CFLAGS 
1587               C compiler flags for GSSGLUE, overriding pkg-config
1588   GSSGLUE_LIBS 
1589               linker flags for GSSGLUE, overriding pkg-config
1590
1591 Use these variables to override the choices made by `configure' or to help
1592 it to find libraries and programs with nonstandard names/locations.
1593
1594 Report bugs to <nfs@lists.sf.net>.
1595 _ACEOF
1596 ac_status=$?
1597 fi
1598
1599 if test "$ac_init_help" = "recursive"; then
1600   # If there are subdirs, report their specific --help.
1601   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1602     test -d "$ac_dir" || continue
1603     ac_builddir=.
1604
1605 case "$ac_dir" in
1606 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1607 *)
1608   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1609   # A ".." for each directory in $ac_dir_suffix.
1610   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1611   case $ac_top_builddir_sub in
1612   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1613   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1614   esac ;;
1615 esac
1616 ac_abs_top_builddir=$ac_pwd
1617 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1618 # for backward compatibility:
1619 ac_top_builddir=$ac_top_build_prefix
1620
1621 case $srcdir in
1622   .)  # We are building in place.
1623     ac_srcdir=.
1624     ac_top_srcdir=$ac_top_builddir_sub
1625     ac_abs_top_srcdir=$ac_pwd ;;
1626   [\\/]* | ?:[\\/]* )  # Absolute name.
1627     ac_srcdir=$srcdir$ac_dir_suffix;
1628     ac_top_srcdir=$srcdir
1629     ac_abs_top_srcdir=$srcdir ;;
1630   *) # Relative name.
1631     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1632     ac_top_srcdir=$ac_top_build_prefix$srcdir
1633     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1634 esac
1635 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1636
1637     cd "$ac_dir" || { ac_status=$?; continue; }
1638     # Check for guested configure.
1639     if test -f "$ac_srcdir/configure.gnu"; then
1640       echo &&
1641       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1642     elif test -f "$ac_srcdir/configure"; then
1643       echo &&
1644       $SHELL "$ac_srcdir/configure" --help=recursive
1645     else
1646       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1647     fi || ac_status=$?
1648     cd "$ac_pwd" || { ac_status=$?; break; }
1649   done
1650 fi
1651
1652 test -n "$ac_init_help" && exit $ac_status
1653 if $ac_init_version; then
1654   cat <<\_ACEOF
1655 linux nfs-utils configure 1.1.0
1656 generated by GNU Autoconf 2.61
1657
1658 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1659 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1660 This configure script is free software; the Free Software Foundation
1661 gives unlimited permission to copy, distribute and modify it.
1662 _ACEOF
1663   exit
1664 fi
1665 cat >config.log <<_ACEOF
1666 This file contains any messages produced by compilers while
1667 running configure, to aid debugging if configure makes a mistake.
1668
1669 It was created by linux nfs-utils $as_me 1.1.0, which was
1670 generated by GNU Autoconf 2.61.  Invocation command line was
1671
1672   $ $0 $@
1673
1674 _ACEOF
1675 exec 5>>config.log
1676 {
1677 cat <<_ASUNAME
1678 @%:@@%:@ --------- @%:@@%:@
1679 @%:@@%:@ Platform. @%:@@%:@
1680 @%:@@%:@ --------- @%:@@%:@
1681
1682 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1683 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1684 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1685 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1686 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1687
1688 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1689 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1690
1691 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1692 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1693 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1694 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1695 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1696 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1697 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1698
1699 _ASUNAME
1700
1701 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1702 for as_dir in $PATH
1703 do
1704   IFS=$as_save_IFS
1705   test -z "$as_dir" && as_dir=.
1706   echo "PATH: $as_dir"
1707 done
1708 IFS=$as_save_IFS
1709
1710 } >&5
1711
1712 cat >&5 <<_ACEOF
1713
1714
1715 @%:@@%:@ ----------- @%:@@%:@
1716 @%:@@%:@ Core tests. @%:@@%:@
1717 @%:@@%:@ ----------- @%:@@%:@
1718
1719 _ACEOF
1720
1721
1722 # Keep a trace of the command line.
1723 # Strip out --no-create and --no-recursion so they do not pile up.
1724 # Strip out --silent because we don't want to record it for future runs.
1725 # Also quote any args containing shell meta-characters.
1726 # Make two passes to allow for proper duplicate-argument suppression.
1727 ac_configure_args=
1728 ac_configure_args0=
1729 ac_configure_args1=
1730 ac_must_keep_next=false
1731 for ac_pass in 1 2
1732 do
1733   for ac_arg
1734   do
1735     case $ac_arg in
1736     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1737     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1738     | -silent | --silent | --silen | --sile | --sil)
1739       continue ;;
1740     *\'*)
1741       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1742     esac
1743     case $ac_pass in
1744     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1745     2)
1746       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1747       if test $ac_must_keep_next = true; then
1748         ac_must_keep_next=false # Got value, back to normal.
1749       else
1750         case $ac_arg in
1751           *=* | --config-cache | -C | -disable-* | --disable-* \
1752           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1753           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1754           | -with-* | --with-* | -without-* | --without-* | --x)
1755             case "$ac_configure_args0 " in
1756               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1757             esac
1758             ;;
1759           -* ) ac_must_keep_next=true ;;
1760         esac
1761       fi
1762       ac_configure_args="$ac_configure_args '$ac_arg'"
1763       ;;
1764     esac
1765   done
1766 done
1767 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1768 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1769
1770 # When interrupted or exit'd, cleanup temporary files, and complete
1771 # config.log.  We remove comments because anyway the quotes in there
1772 # would cause problems or look ugly.
1773 # WARNING: Use '\'' to represent an apostrophe within the trap.
1774 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1775 trap 'exit_status=$?
1776   # Save into config.log some information that might help in debugging.
1777   {
1778     echo
1779
1780     cat <<\_ASBOX
1781 @%:@@%:@ ---------------- @%:@@%:@
1782 @%:@@%:@ Cache variables. @%:@@%:@
1783 @%:@@%:@ ---------------- @%:@@%:@
1784 _ASBOX
1785     echo
1786     # The following way of writing the cache mishandles newlines in values,
1787 (
1788   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1789     eval ac_val=\$$ac_var
1790     case $ac_val in #(
1791     *${as_nl}*)
1792       case $ac_var in #(
1793       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1794 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1795       esac
1796       case $ac_var in #(
1797       _ | IFS | as_nl) ;; #(
1798       *) $as_unset $ac_var ;;
1799       esac ;;
1800     esac
1801   done
1802   (set) 2>&1 |
1803     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1804     *${as_nl}ac_space=\ *)
1805       sed -n \
1806         "s/'\''/'\''\\\\'\'''\''/g;
1807           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1808       ;; #(
1809     *)
1810       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1811       ;;
1812     esac |
1813     sort
1814 )
1815     echo
1816
1817     cat <<\_ASBOX
1818 @%:@@%:@ ----------------- @%:@@%:@
1819 @%:@@%:@ Output variables. @%:@@%:@
1820 @%:@@%:@ ----------------- @%:@@%:@
1821 _ASBOX
1822     echo
1823     for ac_var in $ac_subst_vars
1824     do
1825       eval ac_val=\$$ac_var
1826       case $ac_val in
1827       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1828       esac
1829       echo "$ac_var='\''$ac_val'\''"
1830     done | sort
1831     echo
1832
1833     if test -n "$ac_subst_files"; then
1834       cat <<\_ASBOX
1835 @%:@@%:@ ------------------- @%:@@%:@
1836 @%:@@%:@ File substitutions. @%:@@%:@
1837 @%:@@%:@ ------------------- @%:@@%:@
1838 _ASBOX
1839       echo
1840       for ac_var in $ac_subst_files
1841       do
1842         eval ac_val=\$$ac_var
1843         case $ac_val in
1844         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1845         esac
1846         echo "$ac_var='\''$ac_val'\''"
1847       done | sort
1848       echo
1849     fi
1850
1851     if test -s confdefs.h; then
1852       cat <<\_ASBOX
1853 @%:@@%:@ ----------- @%:@@%:@
1854 @%:@@%:@ confdefs.h. @%:@@%:@
1855 @%:@@%:@ ----------- @%:@@%:@
1856 _ASBOX
1857       echo
1858       cat confdefs.h
1859       echo
1860     fi
1861     test "$ac_signal" != 0 &&
1862       echo "$as_me: caught signal $ac_signal"
1863     echo "$as_me: exit $exit_status"
1864   } >&5
1865   rm -f core *.core core.conftest.* &&
1866     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1867     exit $exit_status
1868 ' 0
1869 for ac_signal in 1 2 13 15; do
1870   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1871 done
1872 ac_signal=0
1873
1874 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1875 rm -f -r conftest* confdefs.h
1876
1877 # Predefined preprocessor variables.
1878
1879 cat >>confdefs.h <<_ACEOF
1880 @%:@define PACKAGE_NAME "$PACKAGE_NAME"
1881 _ACEOF
1882
1883
1884 cat >>confdefs.h <<_ACEOF
1885 @%:@define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1886 _ACEOF
1887
1888
1889 cat >>confdefs.h <<_ACEOF
1890 @%:@define PACKAGE_VERSION "$PACKAGE_VERSION"
1891 _ACEOF
1892
1893
1894 cat >>confdefs.h <<_ACEOF
1895 @%:@define PACKAGE_STRING "$PACKAGE_STRING"
1896 _ACEOF
1897
1898
1899 cat >>confdefs.h <<_ACEOF
1900 @%:@define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1901 _ACEOF
1902
1903
1904 # Let the site file select an alternate cache file if it wants to.
1905 # Prefer explicitly selected file to automatically selected ones.
1906 if test -n "$CONFIG_SITE"; then
1907   set x "$CONFIG_SITE"
1908 elif test "x$prefix" != xNONE; then
1909   set x "$prefix/share/config.site" "$prefix/etc/config.site"
1910 else
1911   set x "$ac_default_prefix/share/config.site" \
1912         "$ac_default_prefix/etc/config.site"
1913 fi
1914 shift
1915 for ac_site_file
1916 do
1917   if test -r "$ac_site_file"; then
1918     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1919 echo "$as_me: loading site script $ac_site_file" >&6;}
1920     sed 's/^/| /' "$ac_site_file" >&5
1921     . "$ac_site_file"
1922   fi
1923 done
1924
1925 if test -r "$cache_file"; then
1926   # Some versions of bash will fail to source /dev/null (special
1927   # files actually), so we avoid doing that.
1928   if test -f "$cache_file"; then
1929     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1930 echo "$as_me: loading cache $cache_file" >&6;}
1931     case $cache_file in
1932       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1933       *)                      . "./$cache_file";;
1934     esac
1935   fi
1936 else
1937   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1938 echo "$as_me: creating cache $cache_file" >&6;}
1939   >$cache_file
1940 fi
1941
1942 # Check that the precious variables saved in the cache have kept the same
1943 # value.
1944 ac_cache_corrupted=false
1945 for ac_var in $ac_precious_vars; do
1946   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1947   eval ac_new_set=\$ac_env_${ac_var}_set
1948   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1949   eval ac_new_val=\$ac_env_${ac_var}_value
1950   case $ac_old_set,$ac_new_set in
1951     set,)
1952       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1953 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1954       ac_cache_corrupted=: ;;
1955     ,set)
1956       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1957 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1958       ac_cache_corrupted=: ;;
1959     ,);;
1960     *)
1961       if test "x$ac_old_val" != "x$ac_new_val"; then
1962         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1963 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1964         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1965 echo "$as_me:   former value:  $ac_old_val" >&2;}
1966         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1967 echo "$as_me:   current value: $ac_new_val" >&2;}
1968         ac_cache_corrupted=:
1969       fi;;
1970   esac
1971   # Pass precious variables to config.status.
1972   if test "$ac_new_set" = set; then
1973     case $ac_new_val in
1974     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1975     *) ac_arg=$ac_var=$ac_new_val ;;
1976     esac
1977     case " $ac_configure_args " in
1978       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1979       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1980     esac
1981   fi
1982 done
1983 if $ac_cache_corrupted; then
1984   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1985 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1986   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1987 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1988    { (exit 1); exit 1; }; }
1989 fi
1990
1991
1992
1993
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015 ac_ext=c
2016 ac_cpp='$CPP $CPPFLAGS'
2017 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2018 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2019 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2020
2021
2022 ac_aux_dir=
2023 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2024   if test -f "$ac_dir/install-sh"; then
2025     ac_aux_dir=$ac_dir
2026     ac_install_sh="$ac_aux_dir/install-sh -c"
2027     break
2028   elif test -f "$ac_dir/install.sh"; then
2029     ac_aux_dir=$ac_dir
2030     ac_install_sh="$ac_aux_dir/install.sh -c"
2031     break
2032   elif test -f "$ac_dir/shtool"; then
2033     ac_aux_dir=$ac_dir
2034     ac_install_sh="$ac_aux_dir/shtool install -c"
2035     break
2036   fi
2037 done
2038 if test -z "$ac_aux_dir"; then
2039   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2040 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2041    { (exit 1); exit 1; }; }
2042 fi
2043
2044 # These three variables are undocumented and unsupported,
2045 # and are intended to be withdrawn in a future Autoconf release.
2046 # They can cause serious problems if a builder's source tree is in a directory
2047 # whose full name contains unusual characters.
2048 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2049 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2050 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2051
2052
2053 # Make sure we can run config.sub.
2054 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2055   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2056 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2057    { (exit 1); exit 1; }; }
2058
2059 { echo "$as_me:$LINENO: checking build system type" >&5
2060 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2061 if test "${ac_cv_build+set}" = set; then
2062   echo $ECHO_N "(cached) $ECHO_C" >&6
2063 else
2064   ac_build_alias=$build_alias
2065 test "x$ac_build_alias" = x &&
2066   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2067 test "x$ac_build_alias" = x &&
2068   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2069 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2070    { (exit 1); exit 1; }; }
2071 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2072   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2073 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2074    { (exit 1); exit 1; }; }
2075
2076 fi
2077 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2078 echo "${ECHO_T}$ac_cv_build" >&6; }
2079 case $ac_cv_build in
2080 *-*-*) ;;
2081 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2082 echo "$as_me: error: invalid value of canonical build" >&2;}
2083    { (exit 1); exit 1; }; };;
2084 esac
2085 build=$ac_cv_build
2086 ac_save_IFS=$IFS; IFS='-'
2087 set x $ac_cv_build
2088 shift
2089 build_cpu=$1
2090 build_vendor=$2
2091 shift; shift
2092 # Remember, the first character of IFS is used to create $*,
2093 # except with old shells:
2094 build_os=$*
2095 IFS=$ac_save_IFS
2096 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2097
2098
2099 { echo "$as_me:$LINENO: checking host system type" >&5
2100 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2101 if test "${ac_cv_host+set}" = set; then
2102   echo $ECHO_N "(cached) $ECHO_C" >&6
2103 else
2104   if test "x$host_alias" = x; then
2105   ac_cv_host=$ac_cv_build
2106 else
2107   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2108     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2109 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2110    { (exit 1); exit 1; }; }
2111 fi
2112
2113 fi
2114 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2115 echo "${ECHO_T}$ac_cv_host" >&6; }
2116 case $ac_cv_host in
2117 *-*-*) ;;
2118 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2119 echo "$as_me: error: invalid value of canonical host" >&2;}
2120    { (exit 1); exit 1; }; };;
2121 esac
2122 host=$ac_cv_host
2123 ac_save_IFS=$IFS; IFS='-'
2124 set x $ac_cv_host
2125 shift
2126 host_cpu=$1
2127 host_vendor=$2
2128 shift; shift
2129 # Remember, the first character of IFS is used to create $*,
2130 # except with old shells:
2131 host_os=$*
2132 IFS=$ac_save_IFS
2133 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2134
2135
2136
2137 am__api_version="1.9"
2138 # Find a good install program.  We prefer a C program (faster),
2139 # so one script is as good as another.  But avoid the broken or
2140 # incompatible versions:
2141 # SysV /etc/install, /usr/sbin/install
2142 # SunOS /usr/etc/install
2143 # IRIX /sbin/install
2144 # AIX /bin/install
2145 # AmigaOS /C/install, which installs bootblocks on floppy discs
2146 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2147 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2148 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2149 # OS/2's system install, which has a completely different semantic
2150 # ./install, which can be erroneously created by make from ./install.sh.
2151 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2152 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
2153 if test -z "$INSTALL"; then
2154 if test "${ac_cv_path_install+set}" = set; then
2155   echo $ECHO_N "(cached) $ECHO_C" >&6
2156 else
2157   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2158 for as_dir in $PATH
2159 do
2160   IFS=$as_save_IFS
2161   test -z "$as_dir" && as_dir=.
2162   # Account for people who put trailing slashes in PATH elements.
2163 case $as_dir/ in
2164   ./ | .// | /cC/* | \
2165   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2166   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2167   /usr/ucb/* ) ;;
2168   *)
2169     # OSF1 and SCO ODT 3.0 have their own names for install.
2170     # Don't use installbsd from OSF since it installs stuff as root
2171     # by default.
2172     for ac_prog in ginstall scoinst install; do
2173       for ac_exec_ext in '' $ac_executable_extensions; do
2174         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2175           if test $ac_prog = install &&
2176             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2177             # AIX install.  It has an incompatible calling convention.
2178             :
2179           elif test $ac_prog = install &&
2180             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2181             # program-specific install script used by HP pwplus--don't use.
2182             :
2183           else
2184             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2185             break 3
2186           fi
2187         fi
2188       done
2189     done
2190     ;;
2191 esac
2192 done
2193 IFS=$as_save_IFS
2194
2195
2196 fi
2197   if test "${ac_cv_path_install+set}" = set; then
2198     INSTALL=$ac_cv_path_install
2199   else
2200     # As a last resort, use the slow shell script.  Don't cache a
2201     # value for INSTALL within a source directory, because that will
2202     # break other packages using the cache if that directory is
2203     # removed, or if the value is a relative name.
2204     INSTALL=$ac_install_sh
2205   fi
2206 fi
2207 { echo "$as_me:$LINENO: result: $INSTALL" >&5
2208 echo "${ECHO_T}$INSTALL" >&6; }
2209
2210 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2211 # It thinks the first close brace ends the variable substitution.
2212 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2213
2214 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2215
2216 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2217
2218 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2219 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2220 # Just in case
2221 sleep 1
2222 echo timestamp > conftest.file
2223 # Do `set' in a subshell so we don't clobber the current shell's
2224 # arguments.  Must try -L first in case configure is actually a
2225 # symlink; some systems play weird games with the mod time of symlinks
2226 # (eg FreeBSD returns the mod time of the symlink's containing
2227 # directory).
2228 if (
2229    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2230    if test "$*" = "X"; then
2231       # -L didn't work.
2232       set X `ls -t $srcdir/configure conftest.file`
2233    fi
2234    rm -f conftest.file
2235    if test "$*" != "X $srcdir/configure conftest.file" \
2236       && test "$*" != "X conftest.file $srcdir/configure"; then
2237
2238       # If neither matched, then we have a broken ls.  This can happen
2239       # if, for instance, CONFIG_SHELL is bash and it inherits a
2240       # broken ls alias from the environment.  This has actually
2241       # happened.  Such a system could not be considered "sane".
2242       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
2243 alias in your environment" >&5
2244 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
2245 alias in your environment" >&2;}
2246    { (exit 1); exit 1; }; }
2247    fi
2248
2249    test "$2" = conftest.file
2250    )
2251 then
2252    # Ok.
2253    :
2254 else
2255    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2256 Check your system clock" >&5
2257 echo "$as_me: error: newly created file is older than distributed files!
2258 Check your system clock" >&2;}
2259    { (exit 1); exit 1; }; }
2260 fi
2261 { echo "$as_me:$LINENO: result: yes" >&5
2262 echo "${ECHO_T}yes" >&6; }
2263 test "$program_prefix" != NONE &&
2264   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2265 # Use a double $ so make ignores it.
2266 test "$program_suffix" != NONE &&
2267   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2268 # Double any \ or $.  echo might interpret backslashes.
2269 # By default was `s,x,x', remove it if useless.
2270 cat <<\_ACEOF >conftest.sed
2271 s/[\\$]/&&/g;s/;s,x,x,$//
2272 _ACEOF
2273 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2274 rm -f conftest.sed
2275
2276 # expand $ac_aux_dir to an absolute path
2277 am_aux_dir=`cd $ac_aux_dir && pwd`
2278
2279 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2280 # Use eval to expand $SHELL
2281 if eval "$MISSING --run true"; then
2282   am_missing_run="$MISSING --run "
2283 else
2284   am_missing_run=
2285   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2286 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2287 fi
2288
2289 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
2290   # We used to keeping the `.' as first argument, in order to
2291   # allow $(mkdir_p) to be used without argument.  As in
2292   #   $(mkdir_p) $(somedir)
2293   # where $(somedir) is conditionally defined.  However this is wrong
2294   # for two reasons:
2295   #  1. if the package is installed by a user who cannot write `.'
2296   #     make install will fail,
2297   #  2. the above comment should most certainly read
2298   #     $(mkdir_p) $(DESTDIR)$(somedir)
2299   #     so it does not work when $(somedir) is undefined and
2300   #     $(DESTDIR) is not.
2301   #  To support the latter case, we have to write
2302   #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
2303   #  so the `.' trick is pointless.
2304   mkdir_p='mkdir -p --'
2305 else
2306   # On NextStep and OpenStep, the `mkdir' command does not
2307   # recognize any option.  It will interpret all options as
2308   # directories to create, and then abort because `.' already
2309   # exists.
2310   for d in ./-p ./--version;
2311   do
2312     test -d $d && rmdir $d
2313   done
2314   # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2315   if test -f "$ac_aux_dir/mkinstalldirs"; then
2316     mkdir_p='$(mkinstalldirs)'
2317   else
2318     mkdir_p='$(install_sh) -d'
2319   fi
2320 fi
2321
2322 for ac_prog in gawk mawk nawk awk
2323 do
2324   # Extract the first word of "$ac_prog", so it can be a program name with args.
2325 set dummy $ac_prog; ac_word=$2
2326 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2327 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2328 if test "${ac_cv_prog_AWK+set}" = set; then
2329   echo $ECHO_N "(cached) $ECHO_C" >&6
2330 else
2331   if test -n "$AWK"; then
2332   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2333 else
2334 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2335 for as_dir in $PATH
2336 do
2337   IFS=$as_save_IFS
2338   test -z "$as_dir" && as_dir=.
2339   for ac_exec_ext in '' $ac_executable_extensions; do
2340   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2341     ac_cv_prog_AWK="$ac_prog"
2342     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2343     break 2
2344   fi
2345 done
2346 done
2347 IFS=$as_save_IFS
2348
2349 fi
2350 fi
2351 AWK=$ac_cv_prog_AWK
2352 if test -n "$AWK"; then
2353   { echo "$as_me:$LINENO: result: $AWK" >&5
2354 echo "${ECHO_T}$AWK" >&6; }
2355 else
2356   { echo "$as_me:$LINENO: result: no" >&5
2357 echo "${ECHO_T}no" >&6; }
2358 fi
2359
2360
2361   test -n "$AWK" && break
2362 done
2363
2364 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2365 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2366 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2367 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2368   echo $ECHO_N "(cached) $ECHO_C" >&6
2369 else
2370   cat >conftest.make <<\_ACEOF
2371 SHELL = /bin/sh
2372 all:
2373         @echo '@@@%%%=$(MAKE)=@@@%%%'
2374 _ACEOF
2375 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2376 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2377   *@@@%%%=?*=@@@%%%*)
2378     eval ac_cv_prog_make_${ac_make}_set=yes;;
2379   *)
2380     eval ac_cv_prog_make_${ac_make}_set=no;;
2381 esac
2382 rm -f conftest.make
2383 fi
2384 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2385   { echo "$as_me:$LINENO: result: yes" >&5
2386 echo "${ECHO_T}yes" >&6; }
2387   SET_MAKE=
2388 else
2389   { echo "$as_me:$LINENO: result: no" >&5
2390 echo "${ECHO_T}no" >&6; }
2391   SET_MAKE="MAKE=${MAKE-make}"
2392 fi
2393
2394 rm -rf .tst 2>/dev/null
2395 mkdir .tst 2>/dev/null
2396 if test -d .tst; then
2397   am__leading_dot=.
2398 else
2399   am__leading_dot=_
2400 fi
2401 rmdir .tst 2>/dev/null
2402
2403 # test to see if srcdir already configured
2404 if test "`cd $srcdir && pwd`" != "`pwd`" &&
2405    test -f $srcdir/config.status; then
2406   { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2407 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2408    { (exit 1); exit 1; }; }
2409 fi
2410
2411 # test whether we have cygpath
2412 if test -z "$CYGPATH_W"; then
2413   if (cygpath --version) >/dev/null 2>/dev/null; then
2414     CYGPATH_W='cygpath -w'
2415   else
2416     CYGPATH_W=echo
2417   fi
2418 fi
2419
2420
2421 # Define the identity of the package.
2422  PACKAGE='nfs-utils'
2423  VERSION='1.1.0'
2424
2425
2426 cat >>confdefs.h <<_ACEOF
2427 @%:@define PACKAGE "$PACKAGE"
2428 _ACEOF
2429
2430  
2431 cat >>confdefs.h <<_ACEOF
2432 @%:@define VERSION "$VERSION"
2433 _ACEOF
2434
2435 # Some tools Automake needs.
2436
2437 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2438
2439
2440 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2441
2442
2443 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2444
2445
2446 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2447
2448
2449 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2450
2451 install_sh=${install_sh-"$am_aux_dir/install-sh"}
2452
2453 # Installed binaries are usually stripped using `strip' when the user
2454 # run `make install-strip'.  However `strip' might not be the right
2455 # tool to use in cross-compilation environments, therefore Automake
2456 # will honor the `STRIP' environment variable to overrule this program.
2457 if test "$cross_compiling" != no; then
2458   if test -n "$ac_tool_prefix"; then
2459   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2460 set dummy ${ac_tool_prefix}strip; ac_word=$2
2461 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2462 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2463 if test "${ac_cv_prog_STRIP+set}" = set; then
2464   echo $ECHO_N "(cached) $ECHO_C" >&6
2465 else
2466   if test -n "$STRIP"; then
2467   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2468 else
2469 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2470 for as_dir in $PATH
2471 do
2472   IFS=$as_save_IFS
2473   test -z "$as_dir" && as_dir=.
2474   for ac_exec_ext in '' $ac_executable_extensions; do
2475   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2476     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2477     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2478     break 2
2479   fi
2480 done
2481 done
2482 IFS=$as_save_IFS
2483
2484 fi
2485 fi
2486 STRIP=$ac_cv_prog_STRIP
2487 if test -n "$STRIP"; then
2488   { echo "$as_me:$LINENO: result: $STRIP" >&5
2489 echo "${ECHO_T}$STRIP" >&6; }
2490 else
2491   { echo "$as_me:$LINENO: result: no" >&5
2492 echo "${ECHO_T}no" >&6; }
2493 fi
2494
2495
2496 fi
2497 if test -z "$ac_cv_prog_STRIP"; then
2498   ac_ct_STRIP=$STRIP
2499   # Extract the first word of "strip", so it can be a program name with args.
2500 set dummy strip; ac_word=$2
2501 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2502 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2503 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2504   echo $ECHO_N "(cached) $ECHO_C" >&6
2505 else
2506   if test -n "$ac_ct_STRIP"; then
2507   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2508 else
2509 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2510 for as_dir in $PATH
2511 do
2512   IFS=$as_save_IFS
2513   test -z "$as_dir" && as_dir=.
2514   for ac_exec_ext in '' $ac_executable_extensions; do
2515   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2516     ac_cv_prog_ac_ct_STRIP="strip"
2517     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2518     break 2
2519   fi
2520 done
2521 done
2522 IFS=$as_save_IFS
2523
2524 fi
2525 fi
2526 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2527 if test -n "$ac_ct_STRIP"; then
2528   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2529 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2530 else
2531   { echo "$as_me:$LINENO: result: no" >&5
2532 echo "${ECHO_T}no" >&6; }
2533 fi
2534
2535   if test "x$ac_ct_STRIP" = x; then
2536     STRIP=":"
2537   else
2538     case $cross_compiling:$ac_tool_warned in
2539 yes:)
2540 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2541 whose name does not start with the host triplet.  If you think this
2542 configuration is useful to you, please write to autoconf@gnu.org." >&5
2543 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2544 whose name does not start with the host triplet.  If you think this
2545 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2546 ac_tool_warned=yes ;;
2547 esac
2548     STRIP=$ac_ct_STRIP
2549   fi
2550 else
2551   STRIP="$ac_cv_prog_STRIP"
2552 fi
2553
2554 fi
2555 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2556
2557 # We need awk for the "check" target.  The system "awk" is bad on
2558 # some platforms.
2559 # Always define AMTAR for backward compatibility.
2560
2561 AMTAR=${AMTAR-"${am_missing_run}tar"}
2562
2563 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2564
2565
2566
2567
2568
2569
2570
2571 { echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
2572 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6; }
2573     # Check whether --enable-maintainer-mode was given.
2574 if test "${enable_maintainer_mode+set}" = set; then
2575   enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2576 else
2577   USE_MAINTAINER_MODE=no
2578 fi
2579
2580   { echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
2581 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6; }
2582    
2583
2584 if test $USE_MAINTAINER_MODE = yes; then
2585   MAINTAINER_MODE_TRUE=
2586   MAINTAINER_MODE_FALSE='#'
2587 else
2588   MAINTAINER_MODE_TRUE='#'
2589   MAINTAINER_MODE_FALSE=
2590 fi
2591
2592   MAINT=$MAINTAINER_MODE_TRUE
2593   
2594
2595
2596
2597 # Check whether --with-release was given.
2598 if test "${with_release+set}" = set; then
2599   withval=$with_release; RELEASE=$withval
2600 else
2601   RELEASE=1
2602 fi
2603
2604         
2605
2606 # Check whether --with-statedir was given.
2607 if test "${with_statedir+set}" = set; then
2608   withval=$with_statedir; statedir=$withval
2609 else
2610   statedir=/var/lib/nfs
2611 fi
2612
2613         
2614
2615 # Check whether --with-statduser was given.
2616 if test "${with_statduser+set}" = set; then
2617   withval=$with_statduser; statduser=$withval
2618 else
2619   if test "x$cross_compiling" = "xno"; then
2620                 if grep -s '^rpcuser:' /etc/passwd > /dev/null; then
2621                         statduser=rpcuser
2622                 else
2623                         statduser=nobody
2624                 fi
2625         else
2626                 statduser=nobody
2627         fi
2628 fi
2629
2630         
2631
2632 # Check whether --with-start-statd was given.
2633 if test "${with_start_statd+set}" = set; then
2634   withval=$with_start_statd; startstatd=$withval
2635 else
2636   startstatd=/usr/sbin/start-statd
2637         
2638 fi
2639
2640         
2641         
2642 cat >>confdefs.h <<_ACEOF
2643 @%:@define START_STATD "$startstatd"
2644 _ACEOF
2645
2646 # Check whether --enable-nfsv3 was given.
2647 if test "${enable_nfsv3+set}" = set; then
2648   enableval=$enable_nfsv3; enable_nfsv3=$enableval
2649 else
2650   enable_nfsv3=yes
2651 fi
2652
2653         if test "$enable_nfsv3" = yes; then
2654                 
2655 cat >>confdefs.h <<\_ACEOF
2656 @%:@define NFS3_SUPPORTED 1
2657 _ACEOF
2658
2659         else
2660                 enable_nfsv3=
2661         fi
2662         
2663 # Check whether --enable-nfsv4 was given.
2664 if test "${enable_nfsv4+set}" = set; then
2665   enableval=$enable_nfsv4; enable_nfsv4=$enableval
2666 else
2667   enable_nfsv4=yes
2668 fi
2669
2670         if test "$enable_nfsv4" = yes; then
2671                 
2672 cat >>confdefs.h <<\_ACEOF
2673 @%:@define NFS4_SUPPORTED 1
2674 _ACEOF
2675
2676                 IDMAPD=idmapd
2677         else
2678                 enable_nfsv4=
2679                 IDMAPD=
2680         fi
2681         
2682         
2683          
2684
2685 if test "$enable_nfsv4" = "yes"; then
2686   CONFIG_NFSV4_TRUE=
2687   CONFIG_NFSV4_FALSE='#'
2688 else
2689   CONFIG_NFSV4_TRUE='#'
2690   CONFIG_NFSV4_FALSE=
2691 fi
2692
2693 # Check whether --enable-gss was given.
2694 if test "${enable_gss+set}" = set; then
2695   enableval=$enable_gss; enable_gss=$enableval
2696 else
2697   enable_gss=yes
2698 fi
2699
2700         if test "$enable_gss" = yes; then
2701                 
2702 cat >>confdefs.h <<\_ACEOF
2703 @%:@define GSS_SUPPORTED 1
2704 _ACEOF
2705
2706                 GSSD=gssd
2707                 SVCGSSD=svcgssd
2708         else
2709                 enable_gss=
2710                 GSSD=
2711                 SVCGSSD=
2712         fi
2713         
2714         
2715         
2716          
2717
2718 if test "$enable_gss" = "yes"; then
2719   CONFIG_GSS_TRUE=
2720   CONFIG_GSS_FALSE='#'
2721 else
2722   CONFIG_GSS_TRUE='#'
2723   CONFIG_GSS_FALSE=
2724 fi
2725
2726 # Check whether --enable-kprefix was given.
2727 if test "${enable_kprefix+set}" = set; then
2728   enableval=$enable_kprefix; test "$enableval" = "yes" && kprefix=k
2729 else
2730   kprefix=
2731 fi
2732
2733         
2734 # Check whether --enable-secure-statd was given.
2735 if test "${enable_secure_statd+set}" = set; then
2736   enableval=$enable_secure_statd; test "$enableval" = "yes" && secure_statd=yes
2737 else
2738   secure_statd=yes
2739 fi
2740
2741         if test "$secure_statd" = yes; then
2742                 
2743 cat >>confdefs.h <<\_ACEOF
2744 @%:@define RESTRICTED_STATD 1
2745 _ACEOF
2746
2747         fi
2748         
2749
2750 # Check whether --with-rpcgen was given.
2751 if test "${with_rpcgen+set}" = set; then
2752   withval=$with_rpcgen; rpcgen_path=$withval
2753 else
2754   rpcgen_path=yes 
2755 fi
2756
2757         RPCGEN_PATH=
2758         if test "$rpcgen_path" == "yes"; then
2759             for p in /usr/local/bin/rpcgen /usr/bin/rpcgen /bin/rpcgen
2760             do if test -f $p ; then RPCGEN_PATH=$p ; break; fi ; done
2761         elif test "$rpcgen_path" != "internal"; then
2762             RPCGEN_PATH=$rpcgen_path
2763         fi
2764         
2765          
2766
2767 if test "$RPCGEN_PATH" == ""; then
2768   CONFIG_RPCGEN_TRUE=
2769   CONFIG_RPCGEN_FALSE='#'
2770 else
2771   CONFIG_RPCGEN_TRUE='#'
2772   CONFIG_RPCGEN_FALSE=
2773 fi
2774
2775 # Check whether --enable-uuid was given.
2776 if test "${enable_uuid+set}" = set; then
2777   enableval=$enable_uuid; if test "$enableval" = "yes" ; then choose_blkid=yes; else choose_blkid=no; fi
2778 else
2779   choose_blkid=default
2780 fi
2781
2782 # Check whether --enable-mount was given.
2783 if test "${enable_mount+set}" = set; then
2784   enableval=$enable_mount; enable_mount=$enableval
2785 else
2786   enable_mount=yes
2787 fi
2788
2789          
2790
2791 if test "$enable_mount" = "yes"; then
2792   CONFIG_MOUNT_TRUE=
2793   CONFIG_MOUNT_FALSE='#'
2794 else
2795   CONFIG_MOUNT_TRUE='#'
2796   CONFIG_MOUNT_FALSE=
2797 fi
2798
2799
2800 # Check whether user wants TCP wrappers support
2801 DEPDIR="${am__leading_dot}deps"
2802
2803 ac_config_commands="$ac_config_commands depfiles"
2804
2805
2806 am_make=${MAKE-make}
2807 cat > confinc << 'END'
2808 am__doit:
2809         @echo done
2810 .PHONY: am__doit
2811 END
2812 # If we don't find an include directive, just comment out the code.
2813 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2814 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
2815 am__include="#"
2816 am__quote=
2817 _am_result=none
2818 # First try GNU make style include.
2819 echo "include confinc" > confmf
2820 # We grep out `Entering directory' and `Leaving directory'
2821 # messages which can occur if `w' ends up in MAKEFLAGS.
2822 # In particular we don't look at `^make:' because GNU make might
2823 # be invoked under some other name (usually "gmake"), in which
2824 # case it prints its new name instead of `make'.
2825 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2826    am__include=include
2827    am__quote=
2828    _am_result=GNU
2829 fi
2830 # Now try BSD make style include.
2831 if test "$am__include" = "#"; then
2832    echo '.include "confinc"' > confmf
2833    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2834       am__include=.include
2835       am__quote="\""
2836       _am_result=BSD
2837    fi
2838 fi
2839
2840
2841 { echo "$as_me:$LINENO: result: $_am_result" >&5
2842 echo "${ECHO_T}$_am_result" >&6; }
2843 rm -f confinc confmf
2844
2845 # Check whether --enable-dependency-tracking was given.
2846 if test "${enable_dependency_tracking+set}" = set; then
2847   enableval=$enable_dependency_tracking; 
2848 fi
2849
2850 if test "x$enable_dependency_tracking" != xno; then
2851   am_depcomp="$ac_aux_dir/depcomp"
2852   AMDEPBACKSLASH='\'
2853 fi
2854  
2855
2856 if test "x$enable_dependency_tracking" != xno; then
2857   AMDEP_TRUE=
2858   AMDEP_FALSE='#'
2859 else
2860   AMDEP_TRUE='#'
2861   AMDEP_FALSE=
2862 fi
2863
2864
2865
2866 ac_ext=c
2867 ac_cpp='$CPP $CPPFLAGS'
2868 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2869 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2870 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2871 if test -n "$ac_tool_prefix"; then
2872   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2873 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2874 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2875 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2876 if test "${ac_cv_prog_CC+set}" = set; then
2877   echo $ECHO_N "(cached) $ECHO_C" >&6
2878 else
2879   if test -n "$CC"; then
2880   ac_cv_prog_CC="$CC" # Let the user override the test.
2881 else
2882 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2883 for as_dir in $PATH
2884 do
2885   IFS=$as_save_IFS
2886   test -z "$as_dir" && as_dir=.
2887   for ac_exec_ext in '' $ac_executable_extensions; do
2888   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2889     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2890     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2891     break 2
2892   fi
2893 done
2894 done
2895 IFS=$as_save_IFS
2896
2897 fi
2898 fi
2899 CC=$ac_cv_prog_CC
2900 if test -n "$CC"; then
2901   { echo "$as_me:$LINENO: result: $CC" >&5
2902 echo "${ECHO_T}$CC" >&6; }
2903 else
2904   { echo "$as_me:$LINENO: result: no" >&5
2905 echo "${ECHO_T}no" >&6; }
2906 fi
2907
2908
2909 fi
2910 if test -z "$ac_cv_prog_CC"; then
2911   ac_ct_CC=$CC
2912   # Extract the first word of "gcc", so it can be a program name with args.
2913 set dummy gcc; ac_word=$2
2914 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2915 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2916 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2917   echo $ECHO_N "(cached) $ECHO_C" >&6
2918 else
2919   if test -n "$ac_ct_CC"; then
2920   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2921 else
2922 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2923 for as_dir in $PATH
2924 do
2925   IFS=$as_save_IFS
2926   test -z "$as_dir" && as_dir=.
2927   for ac_exec_ext in '' $ac_executable_extensions; do
2928   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2929     ac_cv_prog_ac_ct_CC="gcc"
2930     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2931     break 2
2932   fi
2933 done
2934 done
2935 IFS=$as_save_IFS
2936
2937 fi
2938 fi
2939 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2940 if test -n "$ac_ct_CC"; then
2941   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2942 echo "${ECHO_T}$ac_ct_CC" >&6; }
2943 else
2944   { echo "$as_me:$LINENO: result: no" >&5
2945 echo "${ECHO_T}no" >&6; }
2946 fi
2947
2948   if test "x$ac_ct_CC" = x; then
2949     CC=""
2950   else
2951     case $cross_compiling:$ac_tool_warned in
2952 yes:)
2953 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2954 whose name does not start with the host triplet.  If you think this
2955 configuration is useful to you, please write to autoconf@gnu.org." >&5
2956 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2957 whose name does not start with the host triplet.  If you think this
2958 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2959 ac_tool_warned=yes ;;
2960 esac
2961     CC=$ac_ct_CC
2962   fi
2963 else
2964   CC="$ac_cv_prog_CC"
2965 fi
2966
2967 if test -z "$CC"; then
2968           if test -n "$ac_tool_prefix"; then
2969     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2970 set dummy ${ac_tool_prefix}cc; ac_word=$2
2971 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2972 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2973 if test "${ac_cv_prog_CC+set}" = set; then
2974   echo $ECHO_N "(cached) $ECHO_C" >&6
2975 else
2976   if test -n "$CC"; then
2977   ac_cv_prog_CC="$CC" # Let the user override the test.
2978 else
2979 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2980 for as_dir in $PATH
2981 do
2982   IFS=$as_save_IFS
2983   test -z "$as_dir" && as_dir=.
2984   for ac_exec_ext in '' $ac_executable_extensions; do
2985   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2986     ac_cv_prog_CC="${ac_tool_prefix}cc"
2987     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2988     break 2
2989   fi
2990 done
2991 done
2992 IFS=$as_save_IFS
2993
2994 fi
2995 fi
2996 CC=$ac_cv_prog_CC
2997 if test -n "$CC"; then
2998   { echo "$as_me:$LINENO: result: $CC" >&5
2999 echo "${ECHO_T}$CC" >&6; }
3000 else
3001   { echo "$as_me:$LINENO: result: no" >&5
3002 echo "${ECHO_T}no" >&6; }
3003 fi
3004
3005
3006   fi
3007 fi
3008 if test -z "$CC"; then
3009   # Extract the first word of "cc", so it can be a program name with args.
3010 set dummy cc; ac_word=$2
3011 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3012 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3013 if test "${ac_cv_prog_CC+set}" = set; then
3014   echo $ECHO_N "(cached) $ECHO_C" >&6
3015 else
3016   if test -n "$CC"; then
3017   ac_cv_prog_CC="$CC" # Let the user override the test.
3018 else
3019   ac_prog_rejected=no
3020 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3021 for as_dir in $PATH
3022 do
3023   IFS=$as_save_IFS
3024   test -z "$as_dir" && as_dir=.
3025   for ac_exec_ext in '' $ac_executable_extensions; do
3026   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3027     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3028        ac_prog_rejected=yes
3029        continue
3030      fi
3031     ac_cv_prog_CC="cc"
3032     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3033     break 2
3034   fi
3035 done
3036 done
3037 IFS=$as_save_IFS
3038
3039 if test $ac_prog_rejected = yes; then
3040   # We found a bogon in the path, so make sure we never use it.
3041   set dummy $ac_cv_prog_CC
3042   shift
3043   if test $@%:@ != 0; then
3044     # We chose a different compiler from the bogus one.
3045     # However, it has the same basename, so the bogon will be chosen
3046     # first if we set CC to just the basename; use the full file name.
3047     shift
3048     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3049   fi
3050 fi
3051 fi
3052 fi
3053 CC=$ac_cv_prog_CC
3054 if test -n "$CC"; then
3055   { echo "$as_me:$LINENO: result: $CC" >&5
3056 echo "${ECHO_T}$CC" >&6; }
3057 else
3058   { echo "$as_me:$LINENO: result: no" >&5
3059 echo "${ECHO_T}no" >&6; }
3060 fi
3061
3062
3063 fi
3064 if test -z "$CC"; then
3065   if test -n "$ac_tool_prefix"; then
3066   for ac_prog in cl.exe
3067   do
3068     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3069 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3070 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3071 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3072 if test "${ac_cv_prog_CC+set}" = set; then
3073   echo $ECHO_N "(cached) $ECHO_C" >&6
3074 else
3075   if test -n "$CC"; then
3076   ac_cv_prog_CC="$CC" # Let the user override the test.
3077 else
3078 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3079 for as_dir in $PATH
3080 do
3081   IFS=$as_save_IFS
3082   test -z "$as_dir" && as_dir=.
3083   for ac_exec_ext in '' $ac_executable_extensions; do
3084   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3085     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3086     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3087     break 2
3088   fi
3089 done
3090 done
3091 IFS=$as_save_IFS
3092
3093 fi
3094 fi
3095 CC=$ac_cv_prog_CC
3096 if test -n "$CC"; then
3097   { echo "$as_me:$LINENO: result: $CC" >&5
3098 echo "${ECHO_T}$CC" >&6; }
3099 else
3100   { echo "$as_me:$LINENO: result: no" >&5
3101 echo "${ECHO_T}no" >&6; }
3102 fi
3103
3104
3105     test -n "$CC" && break
3106   done
3107 fi
3108 if test -z "$CC"; then
3109   ac_ct_CC=$CC
3110   for ac_prog in cl.exe
3111 do
3112   # Extract the first word of "$ac_prog", so it can be a program name with args.
3113 set dummy $ac_prog; ac_word=$2
3114 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3115 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3116 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3117   echo $ECHO_N "(cached) $ECHO_C" >&6
3118 else
3119   if test -n "$ac_ct_CC"; then
3120   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3121 else
3122 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3123 for as_dir in $PATH
3124 do
3125   IFS=$as_save_IFS
3126   test -z "$as_dir" && as_dir=.
3127   for ac_exec_ext in '' $ac_executable_extensions; do
3128   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3129     ac_cv_prog_ac_ct_CC="$ac_prog"
3130     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3131     break 2
3132   fi
3133 done
3134 done
3135 IFS=$as_save_IFS
3136
3137 fi
3138 fi
3139 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3140 if test -n "$ac_ct_CC"; then
3141   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3142 echo "${ECHO_T}$ac_ct_CC" >&6; }
3143 else
3144   { echo "$as_me:$LINENO: result: no" >&5
3145 echo "${ECHO_T}no" >&6; }
3146 fi
3147
3148
3149   test -n "$ac_ct_CC" && break
3150 done
3151
3152   if test "x$ac_ct_CC" = x; then
3153     CC=""
3154   else
3155     case $cross_compiling:$ac_tool_warned in
3156 yes:)
3157 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3158 whose name does not start with the host triplet.  If you think this
3159 configuration is useful to you, please write to autoconf@gnu.org." >&5
3160 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3161 whose name does not start with the host triplet.  If you think this
3162 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3163 ac_tool_warned=yes ;;
3164 esac
3165     CC=$ac_ct_CC
3166   fi
3167 fi
3168
3169 fi
3170
3171
3172 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3173 See \`config.log' for more details." >&5
3174 echo "$as_me: error: no acceptable C compiler found in \$PATH
3175 See \`config.log' for more details." >&2;}
3176    { (exit 1); exit 1; }; }
3177
3178 # Provide some information about the compiler.
3179 echo "$as_me:$LINENO: checking for C compiler version" >&5
3180 ac_compiler=`set X $ac_compile; echo $2`
3181 { (ac_try="$ac_compiler --version >&5"
3182 case "(($ac_try" in
3183   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3184   *) ac_try_echo=$ac_try;;
3185 esac
3186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3187   (eval "$ac_compiler --version >&5") 2>&5
3188   ac_status=$?
3189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3190   (exit $ac_status); }
3191 { (ac_try="$ac_compiler -v >&5"
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_compiler -v >&5") 2>&5
3198   ac_status=$?
3199   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3200   (exit $ac_status); }
3201 { (ac_try="$ac_compiler -V >&5"
3202 case "(($ac_try" in
3203   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3204   *) ac_try_echo=$ac_try;;
3205 esac
3206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3207   (eval "$ac_compiler -V >&5") 2>&5
3208   ac_status=$?
3209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3210   (exit $ac_status); }
3211
3212 cat >conftest.$ac_ext <<_ACEOF
3213 /* confdefs.h.  */
3214 _ACEOF
3215 cat confdefs.h >>conftest.$ac_ext
3216 cat >>conftest.$ac_ext <<_ACEOF
3217 /* end confdefs.h.  */
3218
3219 int
3220 main ()
3221 {
3222
3223   ;
3224   return 0;
3225 }
3226 _ACEOF
3227 ac_clean_files_save=$ac_clean_files
3228 ac_clean_files="$ac_clean_files a.out a.exe b.out"
3229 # Try to create an executable without -o first, disregard a.out.
3230 # It will help us diagnose broken compilers, and finding out an intuition
3231 # of exeext.
3232 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3233 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
3234 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3235 #
3236 # List of possible output files, starting from the most likely.
3237 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
3238 # only as a last resort.  b.out is created by i960 compilers.
3239 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
3240 #
3241 # The IRIX 6 linker writes into existing files which may not be
3242 # executable, retaining their permissions.  Remove them first so a
3243 # subsequent execution test works.
3244 ac_rmfiles=
3245 for ac_file in $ac_files
3246 do
3247   case $ac_file in
3248     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3249     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3250   esac
3251 done
3252 rm -f $ac_rmfiles
3253
3254 if { (ac_try="$ac_link_default"
3255 case "(($ac_try" in
3256   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3257   *) ac_try_echo=$ac_try;;
3258 esac
3259 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3260   (eval "$ac_link_default") 2>&5
3261   ac_status=$?
3262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3263   (exit $ac_status); }; then
3264   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3265 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3266 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3267 # so that the user can short-circuit this test for compilers unknown to
3268 # Autoconf.
3269 for ac_file in $ac_files ''
3270 do
3271   test -f "$ac_file" || continue
3272   case $ac_file in
3273     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
3274         ;;
3275     [ab].out )
3276         # We found the default executable, but exeext='' is most
3277         # certainly right.
3278         break;;
3279     *.* )
3280         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3281         then :; else
3282            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3283         fi
3284         # We set ac_cv_exeext here because the later test for it is not
3285         # safe: cross compilers may not add the suffix if given an `-o'
3286         # argument, so we may need to know it at that point already.
3287         # Even if this section looks crufty: it has the advantage of
3288         # actually working.
3289         break;;
3290     * )
3291         break;;
3292   esac
3293 done
3294 test "$ac_cv_exeext" = no && ac_cv_exeext=
3295
3296 else
3297   ac_file=''
3298 fi
3299
3300 { echo "$as_me:$LINENO: result: $ac_file" >&5
3301 echo "${ECHO_T}$ac_file" >&6; }
3302 if test -z "$ac_file"; then
3303   echo "$as_me: failed program was:" >&5
3304 sed 's/^/| /' conftest.$ac_ext >&5
3305
3306 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3307 See \`config.log' for more details." >&5
3308 echo "$as_me: error: C compiler cannot create executables
3309 See \`config.log' for more details." >&2;}
3310    { (exit 77); exit 77; }; }
3311 fi
3312
3313 ac_exeext=$ac_cv_exeext
3314
3315 # Check that the compiler produces executables we can run.  If not, either
3316 # the compiler is broken, or we cross compile.
3317 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3318 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3319 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3320 # If not cross compiling, check that we can run a simple program.
3321 if test "$cross_compiling" != yes; then
3322   if { ac_try='./$ac_file'
3323   { (case "(($ac_try" in
3324   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3325   *) ac_try_echo=$ac_try;;
3326 esac
3327 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3328   (eval "$ac_try") 2>&5
3329   ac_status=$?
3330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3331   (exit $ac_status); }; }; then
3332     cross_compiling=no
3333   else
3334     if test "$cross_compiling" = maybe; then
3335         cross_compiling=yes
3336     else
3337         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3338 If you meant to cross compile, use \`--host'.
3339 See \`config.log' for more details." >&5
3340 echo "$as_me: error: cannot run C compiled programs.
3341 If you meant to cross compile, use \`--host'.
3342 See \`config.log' for more details." >&2;}
3343    { (exit 1); exit 1; }; }
3344     fi
3345   fi
3346 fi
3347 { echo "$as_me:$LINENO: result: yes" >&5
3348 echo "${ECHO_T}yes" >&6; }
3349
3350 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3351 ac_clean_files=$ac_clean_files_save
3352 # Check that the compiler produces executables we can run.  If not, either
3353 # the compiler is broken, or we cross compile.
3354 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3355 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3356 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
3357 echo "${ECHO_T}$cross_compiling" >&6; }
3358
3359 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
3360 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3361 if { (ac_try="$ac_link"
3362 case "(($ac_try" in
3363   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3364   *) ac_try_echo=$ac_try;;
3365 esac
3366 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3367   (eval "$ac_link") 2>&5
3368   ac_status=$?
3369   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3370   (exit $ac_status); }; then
3371   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3372 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3373 # work properly (i.e., refer to `conftest.exe'), while it won't with
3374 # `rm'.
3375 for ac_file in conftest.exe conftest conftest.*; do
3376   test -f "$ac_file" || continue
3377   case $ac_file in
3378     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3379     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3380           break;;
3381     * ) break;;
3382   esac
3383 done
3384 else
3385   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3386 See \`config.log' for more details." >&5
3387 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3388 See \`config.log' for more details." >&2;}
3389    { (exit 1); exit 1; }; }
3390 fi
3391
3392 rm -f conftest$ac_cv_exeext
3393 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3394 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3395
3396 rm -f conftest.$ac_ext
3397 EXEEXT=$ac_cv_exeext
3398 ac_exeext=$EXEEXT
3399 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3400 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3401 if test "${ac_cv_objext+set}" = set; then
3402   echo $ECHO_N "(cached) $ECHO_C" >&6
3403 else
3404   cat >conftest.$ac_ext <<_ACEOF
3405 /* confdefs.h.  */
3406 _ACEOF
3407 cat confdefs.h >>conftest.$ac_ext
3408 cat >>conftest.$ac_ext <<_ACEOF
3409 /* end confdefs.h.  */
3410
3411 int
3412 main ()
3413 {
3414
3415   ;
3416   return 0;
3417 }
3418 _ACEOF
3419 rm -f conftest.o conftest.obj
3420 if { (ac_try="$ac_compile"
3421 case "(($ac_try" in
3422   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3423   *) ac_try_echo=$ac_try;;
3424 esac
3425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3426   (eval "$ac_compile") 2>&5
3427   ac_status=$?
3428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3429   (exit $ac_status); }; then
3430   for ac_file in conftest.o conftest.obj conftest.*; do
3431   test -f "$ac_file" || continue;
3432   case $ac_file in
3433     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3434     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3435        break;;
3436   esac
3437 done
3438 else
3439   echo "$as_me: failed program was:" >&5
3440 sed 's/^/| /' conftest.$ac_ext >&5
3441
3442 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3443 See \`config.log' for more details." >&5
3444 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3445 See \`config.log' for more details." >&2;}
3446    { (exit 1); exit 1; }; }
3447 fi
3448
3449 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3450 fi
3451 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3452 echo "${ECHO_T}$ac_cv_objext" >&6; }
3453 OBJEXT=$ac_cv_objext
3454 ac_objext=$OBJEXT
3455 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3456 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3457 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3458   echo $ECHO_N "(cached) $ECHO_C" >&6
3459 else
3460   cat >conftest.$ac_ext <<_ACEOF
3461 /* confdefs.h.  */
3462 _ACEOF
3463 cat confdefs.h >>conftest.$ac_ext
3464 cat >>conftest.$ac_ext <<_ACEOF
3465 /* end confdefs.h.  */
3466
3467 int
3468 main ()
3469 {
3470 #ifndef __GNUC__
3471        choke me
3472 #endif
3473
3474   ;
3475   return 0;
3476 }
3477 _ACEOF
3478 rm -f conftest.$ac_objext
3479 if { (ac_try="$ac_compile"
3480 case "(($ac_try" in
3481   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3482   *) ac_try_echo=$ac_try;;
3483 esac
3484 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3485   (eval "$ac_compile") 2>conftest.er1
3486   ac_status=$?
3487   grep -v '^ *+' conftest.er1 >conftest.err
3488   rm -f conftest.er1
3489   cat conftest.err >&5
3490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3491   (exit $ac_status); } && {
3492          test -z "$ac_c_werror_flag" ||
3493          test ! -s conftest.err
3494        } && test -s conftest.$ac_objext; then
3495   ac_compiler_gnu=yes
3496 else
3497   echo "$as_me: failed program was:" >&5
3498 sed 's/^/| /' conftest.$ac_ext >&5
3499
3500         ac_compiler_gnu=no
3501 fi
3502
3503 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3504 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3505
3506 fi
3507 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3508 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3509 GCC=`test $ac_compiler_gnu = yes && echo yes`
3510 ac_test_CFLAGS=${CFLAGS+set}
3511 ac_save_CFLAGS=$CFLAGS
3512 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3513 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3514 if test "${ac_cv_prog_cc_g+set}" = set; then
3515   echo $ECHO_N "(cached) $ECHO_C" >&6
3516 else
3517   ac_save_c_werror_flag=$ac_c_werror_flag
3518    ac_c_werror_flag=yes
3519    ac_cv_prog_cc_g=no
3520    CFLAGS="-g"
3521    cat >conftest.$ac_ext <<_ACEOF
3522 /* confdefs.h.  */
3523 _ACEOF
3524 cat confdefs.h >>conftest.$ac_ext
3525 cat >>conftest.$ac_ext <<_ACEOF
3526 /* end confdefs.h.  */
3527
3528 int
3529 main ()
3530 {
3531
3532   ;
3533   return 0;
3534 }
3535 _ACEOF
3536 rm -f conftest.$ac_objext
3537 if { (ac_try="$ac_compile"
3538 case "(($ac_try" in
3539   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3540   *) ac_try_echo=$ac_try;;
3541 esac
3542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3543   (eval "$ac_compile") 2>conftest.er1
3544   ac_status=$?
3545   grep -v '^ *+' conftest.er1 >conftest.err
3546   rm -f conftest.er1
3547   cat conftest.err >&5
3548   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3549   (exit $ac_status); } && {
3550          test -z "$ac_c_werror_flag" ||
3551          test ! -s conftest.err
3552        } && test -s conftest.$ac_objext; then
3553   ac_cv_prog_cc_g=yes
3554 else
3555   echo "$as_me: failed program was:" >&5
3556 sed 's/^/| /' conftest.$ac_ext >&5
3557
3558         CFLAGS=""
3559       cat >conftest.$ac_ext <<_ACEOF
3560 /* confdefs.h.  */
3561 _ACEOF
3562 cat confdefs.h >>conftest.$ac_ext
3563 cat >>conftest.$ac_ext <<_ACEOF
3564 /* end confdefs.h.  */
3565
3566 int
3567 main ()
3568 {
3569
3570   ;
3571   return 0;
3572 }
3573 _ACEOF
3574 rm -f conftest.$ac_objext
3575 if { (ac_try="$ac_compile"
3576 case "(($ac_try" in
3577   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3578   *) ac_try_echo=$ac_try;;
3579 esac
3580 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3581   (eval "$ac_compile") 2>conftest.er1
3582   ac_status=$?
3583   grep -v '^ *+' conftest.er1 >conftest.err
3584   rm -f conftest.er1
3585   cat conftest.err >&5
3586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3587   (exit $ac_status); } && {
3588          test -z "$ac_c_werror_flag" ||
3589          test ! -s conftest.err
3590        } && test -s conftest.$ac_objext; then
3591   :
3592 else
3593   echo "$as_me: failed program was:" >&5
3594 sed 's/^/| /' conftest.$ac_ext >&5
3595
3596         ac_c_werror_flag=$ac_save_c_werror_flag
3597          CFLAGS="-g"
3598          cat >conftest.$ac_ext <<_ACEOF
3599 /* confdefs.h.  */
3600 _ACEOF
3601 cat confdefs.h >>conftest.$ac_ext
3602 cat >>conftest.$ac_ext <<_ACEOF
3603 /* end confdefs.h.  */
3604
3605 int
3606 main ()
3607 {
3608
3609   ;
3610   return 0;
3611 }
3612 _ACEOF
3613 rm -f conftest.$ac_objext
3614 if { (ac_try="$ac_compile"
3615 case "(($ac_try" in
3616   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3617   *) ac_try_echo=$ac_try;;
3618 esac
3619 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3620   (eval "$ac_compile") 2>conftest.er1
3621   ac_status=$?
3622   grep -v '^ *+' conftest.er1 >conftest.err
3623   rm -f conftest.er1
3624   cat conftest.err >&5
3625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3626   (exit $ac_status); } && {
3627          test -z "$ac_c_werror_flag" ||
3628          test ! -s conftest.err
3629        } && test -s conftest.$ac_objext; then
3630   ac_cv_prog_cc_g=yes
3631 else
3632   echo "$as_me: failed program was:" >&5
3633 sed 's/^/| /' conftest.$ac_ext >&5
3634
3635         
3636 fi
3637
3638 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3639 fi
3640
3641 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3642 fi
3643
3644 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3645    ac_c_werror_flag=$ac_save_c_werror_flag
3646 fi
3647 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3648 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3649 if test "$ac_test_CFLAGS" = set; then
3650   CFLAGS=$ac_save_CFLAGS
3651 elif test $ac_cv_prog_cc_g = yes; then
3652   if test "$GCC" = yes; then
3653     CFLAGS="-g -O2"
3654   else
3655     CFLAGS="-g"
3656   fi
3657 else
3658   if test "$GCC" = yes; then
3659     CFLAGS="-O2"
3660   else
3661     CFLAGS=
3662   fi
3663 fi
3664 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3665 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3666 if test "${ac_cv_prog_cc_c89+set}" = set; then
3667   echo $ECHO_N "(cached) $ECHO_C" >&6
3668 else
3669   ac_cv_prog_cc_c89=no
3670 ac_save_CC=$CC
3671 cat >conftest.$ac_ext <<_ACEOF
3672 /* confdefs.h.  */
3673 _ACEOF
3674 cat confdefs.h >>conftest.$ac_ext
3675 cat >>conftest.$ac_ext <<_ACEOF
3676 /* end confdefs.h.  */
3677 #include <stdarg.h>
3678 #include <stdio.h>
3679 #include <sys/types.h>
3680 #include <sys/stat.h>
3681 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3682 struct buf { int x; };
3683 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3684 static char *e (p, i)
3685      char **p;
3686      int i;
3687 {
3688   return p[i];
3689 }
3690 static char *f (char * (*g) (char **, int), char **p, ...)
3691 {
3692   char *s;
3693   va_list v;
3694   va_start (v,p);
3695   s = g (p, va_arg (v,int));
3696   va_end (v);
3697   return s;
3698 }
3699
3700 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3701    function prototypes and stuff, but not '\xHH' hex character constants.
3702    These don't provoke an error unfortunately, instead are silently treated
3703    as 'x'.  The following induces an error, until -std is added to get
3704    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3705    array size at least.  It's necessary to write '\x00'==0 to get something
3706    that's true only with -std.  */
3707 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3708
3709 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3710    inside strings and character constants.  */
3711 #define FOO(x) 'x'
3712 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3713
3714 int test (int i, double x);
3715 struct s1 {int (*f) (int a);};
3716 struct s2 {int (*f) (double a);};
3717 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3718 int argc;
3719 char **argv;
3720 int
3721 main ()
3722 {
3723 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3724   ;
3725   return 0;
3726 }
3727 _ACEOF
3728 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3729         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3730 do
3731   CC="$ac_save_CC $ac_arg"
3732   rm -f conftest.$ac_objext
3733 if { (ac_try="$ac_compile"
3734 case "(($ac_try" in
3735   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3736   *) ac_try_echo=$ac_try;;
3737 esac
3738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3739   (eval "$ac_compile") 2>conftest.er1
3740   ac_status=$?
3741   grep -v '^ *+' conftest.er1 >conftest.err
3742   rm -f conftest.er1
3743   cat conftest.err >&5
3744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3745   (exit $ac_status); } && {
3746          test -z "$ac_c_werror_flag" ||
3747          test ! -s conftest.err
3748        } && test -s conftest.$ac_objext; then
3749   ac_cv_prog_cc_c89=$ac_arg
3750 else
3751   echo "$as_me: failed program was:" >&5
3752 sed 's/^/| /' conftest.$ac_ext >&5
3753
3754         
3755 fi
3756
3757 rm -f core conftest.err conftest.$ac_objext 
3758   test "x$ac_cv_prog_cc_c89" != "xno" && break
3759 done
3760 rm -f conftest.$ac_ext
3761 CC=$ac_save_CC
3762
3763 fi
3764 # AC_CACHE_VAL
3765 case "x$ac_cv_prog_cc_c89" in
3766   x)
3767     { echo "$as_me:$LINENO: result: none needed" >&5
3768 echo "${ECHO_T}none needed" >&6; } ;;
3769   xno)
3770     { echo "$as_me:$LINENO: result: unsupported" >&5
3771 echo "${ECHO_T}unsupported" >&6; } ;;
3772   *)
3773     CC="$CC $ac_cv_prog_cc_c89"
3774     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3775 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3776 esac
3777
3778
3779 ac_ext=c
3780 ac_cpp='$CPP $CPPFLAGS'
3781 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3782 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3783 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3784
3785 depcc="$CC"   am_compiler_list=
3786
3787 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3788 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3789 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3790   echo $ECHO_N "(cached) $ECHO_C" >&6
3791 else
3792   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3793   # We make a subdir and do the tests there.  Otherwise we can end up
3794   # making bogus files that we don't know about and never remove.  For
3795   # instance it was reported that on HP-UX the gcc test will end up
3796   # making a dummy file named `D' -- because `-MD' means `put the output
3797   # in D'.
3798   mkdir conftest.dir
3799   # Copy depcomp to subdir because otherwise we won't find it if we're
3800   # using a relative directory.
3801   cp "$am_depcomp" conftest.dir
3802   cd conftest.dir
3803   # We will build objects and dependencies in a subdirectory because
3804   # it helps to detect inapplicable dependency modes.  For instance
3805   # both Tru64's cc and ICC support -MD to output dependencies as a
3806   # side effect of compilation, but ICC will put the dependencies in
3807   # the current directory while Tru64 will put them in the object
3808   # directory.
3809   mkdir sub
3810
3811   am_cv_CC_dependencies_compiler_type=none
3812   if test "$am_compiler_list" = ""; then
3813      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3814   fi
3815   for depmode in $am_compiler_list; do
3816     # Setup a source with many dependencies, because some compilers
3817     # like to wrap large dependency lists on column 80 (with \), and
3818     # we should not choose a depcomp mode which is confused by this.
3819     #
3820     # We need to recreate these files for each test, as the compiler may
3821     # overwrite some of them when testing with obscure command lines.
3822     # This happens at least with the AIX C compiler.
3823     : > sub/conftest.c
3824     for i in 1 2 3 4 5 6; do
3825       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3826       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3827       # Solaris 8's {/usr,}/bin/sh.
3828       touch sub/conftst$i.h
3829     done
3830     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3831
3832     case $depmode in
3833     nosideeffect)
3834       # after this tag, mechanisms are not by side-effect, so they'll
3835       # only be used when explicitly requested
3836       if test "x$enable_dependency_tracking" = xyes; then
3837         continue
3838       else
3839         break
3840       fi
3841       ;;
3842     none) break ;;
3843     esac
3844     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3845     # mode.  It turns out that the SunPro C++ compiler does not properly
3846     # handle `-M -o', and we need to detect this.
3847     if depmode=$depmode \
3848        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3849        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3850        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3851          >/dev/null 2>conftest.err &&
3852        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3853        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3854        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3855       # icc doesn't choke on unknown options, it will just issue warnings
3856       # or remarks (even with -Werror).  So we grep stderr for any message
3857       # that says an option was ignored or not supported.
3858       # When given -MP, icc 7.0 and 7.1 complain thusly:
3859       #   icc: Command line warning: ignoring option '-M'; no argument required
3860       # The diagnosis changed in icc 8.0:
3861       #   icc: Command line remark: option '-MP' not supported
3862       if (grep 'ignoring option' conftest.err ||
3863           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3864         am_cv_CC_dependencies_compiler_type=$depmode
3865         break
3866       fi
3867     fi
3868   done
3869
3870   cd ..
3871   rm -rf conftest.dir
3872 else
3873   am_cv_CC_dependencies_compiler_type=none
3874 fi
3875
3876 fi
3877 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3878 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3879 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3880
3881  
3882
3883 if 
3884   test "x$enable_dependency_tracking" != xno \
3885   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3886   am__fastdepCC_TRUE=
3887   am__fastdepCC_FALSE='#'
3888 else
3889   am__fastdepCC_TRUE='#'
3890   am__fastdepCC_FALSE=
3891 fi
3892
3893
3894
3895
3896   TCPW_MSG="no"
3897   
3898 # Check whether --with-tcp-wrappers was given.
3899 if test "${with_tcp_wrappers+set}" = set; then
3900   withval=$with_tcp_wrappers; with_tcpw=$withval
3901 else
3902   with_tcpw=yes
3903 fi
3904
3905         if test "x$with_tcpw" != "xno" ; then
3906             saved_LIBS="$LIBS"
3907             saved_LDFLAGS="$LDFLAGS"
3908             saved_CPPFLAGS="$CPPFLAGS"
3909             if test -n "${with_tcpw}" -a "${with_tcpw}" != "yes"; then
3910                 if test -d "${with_tcpw}/lib"; then
3911                     if test -n "${need_dash_r}"; then
3912                         LDFLAGS="-L${with_tcpw}/lib -R${with_tcpw}/lib ${LDFLAGS}"
3913                     else
3914                         LDFLAGS="-L${with_tcpw}/lib ${LDFLAGS}"
3915                     fi
3916                 else
3917                     if test -n "${need_dash_r}"; then
3918                         LDFLAGS="-L${with_tcpw} -R${with_tcpw} ${LDFLAGS}"
3919                     else
3920                         LDFLAGS="-L${with_tcpw} ${LDFLAGS}"
3921                     fi
3922                 fi
3923                 if test -d "${with_tcpw}/include"; then
3924                     CPPFLAGS="-I${with_tcpw}/include ${CPPFLAGS}"
3925                 else
3926                     CPPFLAGS="-I${with_tcpw} ${CPPFLAGS}"
3927                 fi
3928             fi
3929             LIBWRAP="-lwrap"
3930             LIBS="$LIBWRAP $LIBS"
3931             { echo "$as_me:$LINENO: checking for libwrap" >&5
3932 echo $ECHO_N "checking for libwrap... $ECHO_C" >&6; }
3933             cat >conftest.$ac_ext <<_ACEOF
3934 /* confdefs.h.  */
3935 _ACEOF
3936 cat confdefs.h >>conftest.$ac_ext
3937 cat >>conftest.$ac_ext <<_ACEOF
3938 /* end confdefs.h.  */
3939
3940                 #include <tcpd.h>
3941                 int deny_severity = 0, allow_severity = 0;
3942                 
3943 int
3944 main ()
3945 {
3946 hosts_access(0);
3947   ;
3948   return 0;
3949 }
3950 _ACEOF
3951 rm -f conftest.$ac_objext conftest$ac_exeext
3952 if { (ac_try="$ac_link"
3953 case "(($ac_try" in
3954   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3955   *) ac_try_echo=$ac_try;;
3956 esac
3957 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3958   (eval "$ac_link") 2>conftest.er1
3959   ac_status=$?
3960   grep -v '^ *+' conftest.er1 >conftest.err
3961   rm -f conftest.er1
3962   cat conftest.err >&5
3963   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3964   (exit $ac_status); } && {
3965          test -z "$ac_c_werror_flag" ||
3966          test ! -s conftest.err
3967        } && test -s conftest$ac_exeext &&
3968        $as_test_x conftest$ac_exeext; then
3969   
3970                 { echo "$as_me:$LINENO: result: yes" >&5
3971 echo "${ECHO_T}yes" >&6; }
3972                 
3973                 
3974 cat >>confdefs.h <<\_ACEOF
3975 @%:@define LIBWRAP 1
3976 _ACEOF
3977
3978                 
3979 cat >>confdefs.h <<\_ACEOF
3980 @%:@define HAVE_LIBWRAP 1
3981 _ACEOF
3982
3983                 
3984 cat >>confdefs.h <<\_ACEOF
3985 @%:@define HAVE_TCP_WRAPPER 1
3986 _ACEOF
3987
3988                 TCPW_MSG="yes"
3989                 
3990 else
3991   echo "$as_me: failed program was:" >&5
3992 sed 's/^/| /' conftest.$ac_ext >&5
3993
3994         
3995                 { { echo "$as_me:$LINENO: error: *** libwrap missing" >&5
3996 echo "$as_me: error: *** libwrap missing" >&2;}
3997    { (exit 1); exit 1; }; }
3998                 
3999             
4000 fi
4001
4002 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4003       conftest$ac_exeext conftest.$ac_ext
4004             LIBS="$saved_LIBS"
4005         fi
4006   
4007   
4008   
4009
4010
4011 # Arrange for large-file support
4012 # Check whether --enable-largefile was given.
4013 if test "${enable_largefile+set}" = set; then
4014   enableval=$enable_largefile; 
4015 fi
4016
4017 if test "$enable_largefile" != no; then
4018
4019   { echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
4020 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6; }
4021 if test "${ac_cv_sys_largefile_CC+set}" = set; then
4022   echo $ECHO_N "(cached) $ECHO_C" >&6
4023 else
4024   ac_cv_sys_largefile_CC=no
4025      if test "$GCC" != yes; then
4026        ac_save_CC=$CC
4027        while :; do
4028          # IRIX 6.2 and later do not support large files by default,
4029          # so use the C compiler's -n32 option if that helps.
4030          cat >conftest.$ac_ext <<_ACEOF
4031 /* confdefs.h.  */
4032 _ACEOF
4033 cat confdefs.h >>conftest.$ac_ext
4034 cat >>conftest.$ac_ext <<_ACEOF
4035 /* end confdefs.h.  */
4036 @%:@include <sys/types.h>
4037  /* Check that off_t can represent 2**63 - 1 correctly.
4038     We can't simply define LARGE_OFF_T to be 9223372036854775807,
4039     since some C++ compilers masquerading as C compilers
4040     incorrectly reject 9223372036854775807.  */
4041 @%:@define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4042   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4043                        && LARGE_OFF_T % 2147483647 == 1)
4044                       ? 1 : -1];
4045 int
4046 main ()
4047 {
4048
4049   ;
4050   return 0;
4051 }
4052 _ACEOF
4053          rm -f conftest.$ac_objext
4054 if { (ac_try="$ac_compile"
4055 case "(($ac_try" in
4056   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4057   *) ac_try_echo=$ac_try;;
4058 esac
4059 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4060   (eval "$ac_compile") 2>conftest.er1
4061   ac_status=$?
4062   grep -v '^ *+' conftest.er1 >conftest.err
4063   rm -f conftest.er1
4064   cat conftest.err >&5
4065   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4066   (exit $ac_status); } && {
4067          test -z "$ac_c_werror_flag" ||
4068          test ! -s conftest.err
4069        } && test -s conftest.$ac_objext; then
4070   break
4071 else
4072   echo "$as_me: failed program was:" >&5
4073 sed 's/^/| /' conftest.$ac_ext >&5
4074
4075         
4076 fi
4077
4078 rm -f core conftest.err conftest.$ac_objext 
4079          CC="$CC -n32"
4080          rm -f conftest.$ac_objext
4081 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
4088   ac_status=$?
4089   grep -v '^ *+' conftest.er1 >conftest.err
4090   rm -f conftest.er1
4091   cat conftest.err >&5
4092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4093   (exit $ac_status); } && {
4094          test -z "$ac_c_werror_flag" ||
4095          test ! -s conftest.err
4096        } && test -s conftest.$ac_objext; then
4097   ac_cv_sys_largefile_CC=' -n32'; break
4098 else
4099   echo "$as_me: failed program was:" >&5
4100 sed 's/^/| /' conftest.$ac_ext >&5
4101
4102         
4103 fi
4104
4105 rm -f core conftest.err conftest.$ac_objext 
4106          break
4107        done
4108        CC=$ac_save_CC
4109        rm -f conftest.$ac_ext
4110     fi
4111 fi
4112 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
4113 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; }
4114   if test "$ac_cv_sys_largefile_CC" != no; then
4115     CC=$CC$ac_cv_sys_largefile_CC
4116   fi
4117
4118   { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4119 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
4120 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
4121   echo $ECHO_N "(cached) $ECHO_C" >&6
4122 else
4123   while :; do
4124   cat >conftest.$ac_ext <<_ACEOF
4125 /* confdefs.h.  */
4126 _ACEOF
4127 cat confdefs.h >>conftest.$ac_ext
4128 cat >>conftest.$ac_ext <<_ACEOF
4129 /* end confdefs.h.  */
4130 @%:@include <sys/types.h>
4131  /* Check that off_t can represent 2**63 - 1 correctly.
4132     We can't simply define LARGE_OFF_T to be 9223372036854775807,
4133     since some C++ compilers masquerading as C compilers
4134     incorrectly reject 9223372036854775807.  */
4135 @%:@define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4136   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4137                        && LARGE_OFF_T % 2147483647 == 1)
4138                       ? 1 : -1];
4139 int
4140 main ()
4141 {
4142
4143   ;
4144   return 0;
4145 }
4146 _ACEOF
4147 rm -f conftest.$ac_objext
4148 if { (ac_try="$ac_compile"
4149 case "(($ac_try" in
4150   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4151   *) ac_try_echo=$ac_try;;
4152 esac
4153 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4154   (eval "$ac_compile") 2>conftest.er1
4155   ac_status=$?
4156   grep -v '^ *+' conftest.er1 >conftest.err
4157   rm -f conftest.er1
4158   cat conftest.err >&5
4159   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4160   (exit $ac_status); } && {
4161          test -z "$ac_c_werror_flag" ||
4162          test ! -s conftest.err
4163        } && test -s conftest.$ac_objext; then
4164   ac_cv_sys_file_offset_bits=no; break
4165 else
4166   echo "$as_me: failed program was:" >&5
4167 sed 's/^/| /' conftest.$ac_ext >&5
4168
4169         
4170 fi
4171
4172 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4173   cat >conftest.$ac_ext <<_ACEOF
4174 /* confdefs.h.  */
4175 _ACEOF
4176 cat confdefs.h >>conftest.$ac_ext
4177 cat >>conftest.$ac_ext <<_ACEOF
4178 /* end confdefs.h.  */
4179 @%:@define _FILE_OFFSET_BITS 64
4180 @%:@include <sys/types.h>
4181  /* Check that off_t can represent 2**63 - 1 correctly.
4182     We can't simply define LARGE_OFF_T to be 9223372036854775807,
4183     since some C++ compilers masquerading as C compilers
4184     incorrectly reject 9223372036854775807.  */
4185 @%:@define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4186   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4187                        && LARGE_OFF_T % 2147483647 == 1)
4188                       ? 1 : -1];
4189 int
4190 main ()
4191 {
4192
4193   ;
4194   return 0;
4195 }
4196 _ACEOF
4197 rm -f conftest.$ac_objext
4198 if { (ac_try="$ac_compile"
4199 case "(($ac_try" in
4200   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4201   *) ac_try_echo=$ac_try;;
4202 esac
4203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4204   (eval "$ac_compile") 2>conftest.er1
4205   ac_status=$?
4206   grep -v '^ *+' conftest.er1 >conftest.err
4207   rm -f conftest.er1
4208   cat conftest.err >&5
4209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4210   (exit $ac_status); } && {
4211          test -z "$ac_c_werror_flag" ||
4212          test ! -s conftest.err
4213        } && test -s conftest.$ac_objext; then
4214   ac_cv_sys_file_offset_bits=64; break
4215 else
4216   echo "$as_me: failed program was:" >&5
4217 sed 's/^/| /' conftest.$ac_ext >&5
4218
4219         
4220 fi
4221
4222 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4223   ac_cv_sys_file_offset_bits=unknown
4224   break
4225 done
4226 fi
4227 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
4228 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
4229 case $ac_cv_sys_file_offset_bits in #(
4230   no | unknown) ;;
4231   *) 
4232 cat >>confdefs.h <<_ACEOF
4233 @%:@define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4234 _ACEOF
4235 ;;
4236 esac
4237 rm -f conftest*
4238   if test $ac_cv_sys_file_offset_bits = unknown; then
4239     { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
4240 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
4241 if test "${ac_cv_sys_large_files+set}" = set; then
4242   echo $ECHO_N "(cached) $ECHO_C" >&6
4243 else
4244   while :; do
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 @%:@include <sys/types.h>
4252  /* Check that off_t can represent 2**63 - 1 correctly.
4253     We can't simply define LARGE_OFF_T to be 9223372036854775807,
4254     since some C++ compilers masquerading as C compilers
4255     incorrectly reject 9223372036854775807.  */
4256 @%:@define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4257   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4258                        && LARGE_OFF_T % 2147483647 == 1)
4259                       ? 1 : -1];
4260 int
4261 main ()
4262 {
4263
4264   ;
4265   return 0;
4266 }
4267 _ACEOF
4268 rm -f conftest.$ac_objext
4269 if { (ac_try="$ac_compile"
4270 case "(($ac_try" in
4271   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4272   *) ac_try_echo=$ac_try;;
4273 esac
4274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4275   (eval "$ac_compile") 2>conftest.er1
4276   ac_status=$?
4277   grep -v '^ *+' conftest.er1 >conftest.err
4278   rm -f conftest.er1
4279   cat conftest.err >&5
4280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4281   (exit $ac_status); } && {
4282          test -z "$ac_c_werror_flag" ||
4283          test ! -s conftest.err
4284        } && test -s conftest.$ac_objext; then
4285   ac_cv_sys_large_files=no; break
4286 else
4287   echo "$as_me: failed program was:" >&5
4288 sed 's/^/| /' conftest.$ac_ext >&5
4289
4290         
4291 fi
4292
4293 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4294   cat >conftest.$ac_ext <<_ACEOF
4295 /* confdefs.h.  */
4296 _ACEOF
4297 cat confdefs.h >>conftest.$ac_ext
4298 cat >>conftest.$ac_ext <<_ACEOF
4299 /* end confdefs.h.  */
4300 @%:@define _LARGE_FILES 1
4301 @%:@include <sys/types.h>
4302  /* Check that off_t can represent 2**63 - 1 correctly.
4303     We can't simply define LARGE_OFF_T to be 9223372036854775807,
4304     since some C++ compilers masquerading as C compilers
4305     incorrectly reject 9223372036854775807.  */
4306 @%:@define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4307   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4308                        && LARGE_OFF_T % 2147483647 == 1)
4309                       ? 1 : -1];
4310 int
4311 main ()
4312 {
4313
4314   ;
4315   return 0;
4316 }
4317 _ACEOF
4318 rm -f conftest.$ac_objext
4319 if { (ac_try="$ac_compile"
4320 case "(($ac_try" in
4321   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4322   *) ac_try_echo=$ac_try;;
4323 esac
4324 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4325   (eval "$ac_compile") 2>conftest.er1
4326   ac_status=$?
4327   grep -v '^ *+' conftest.er1 >conftest.err
4328   rm -f conftest.er1
4329   cat conftest.err >&5
4330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4331   (exit $ac_status); } && {
4332          test -z "$ac_c_werror_flag" ||
4333          test ! -s conftest.err
4334        } && test -s conftest.$ac_objext; then
4335   ac_cv_sys_large_files=1; break
4336 else
4337   echo "$as_me: failed program was:" >&5
4338 sed 's/^/| /' conftest.$ac_ext >&5
4339
4340         
4341 fi
4342
4343 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4344   ac_cv_sys_large_files=unknown
4345   break
4346 done
4347 fi
4348 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
4349 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
4350 case $ac_cv_sys_large_files in #(
4351   no | unknown) ;;
4352   *) 
4353 cat >>confdefs.h <<_ACEOF
4354 @%:@define _LARGE_FILES $ac_cv_sys_large_files
4355 _ACEOF
4356 ;;
4357 esac
4358 rm -f conftest*
4359   fi
4360 fi
4361
4362
4363
4364 ac_config_headers="$ac_config_headers support/include/config.h"
4365
4366
4367 # Checks for programs.
4368 ac_ext=cpp
4369 ac_cpp='$CXXCPP $CPPFLAGS'
4370 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4371 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4372 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4373 if test -z "$CXX"; then
4374   if test -n "$CCC"; then
4375     CXX=$CCC
4376   else
4377     if test -n "$ac_tool_prefix"; then
4378   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4379   do
4380     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4381 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4382 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4383 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4384 if test "${ac_cv_prog_CXX+set}" = set; then
4385   echo $ECHO_N "(cached) $ECHO_C" >&6
4386 else
4387   if test -n "$CXX"; then
4388   ac_cv_prog_CXX="$CXX" # Let the user override the test.
4389 else
4390 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4391 for as_dir in $PATH
4392 do
4393   IFS=$as_save_IFS
4394   test -z "$as_dir" && as_dir=.
4395   for ac_exec_ext in '' $ac_executable_extensions; do
4396   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4397     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4398     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4399     break 2
4400   fi
4401 done
4402 done
4403 IFS=$as_save_IFS
4404
4405 fi
4406 fi
4407 CXX=$ac_cv_prog_CXX
4408 if test -n "$CXX"; then
4409   { echo "$as_me:$LINENO: result: $CXX" >&5
4410 echo "${ECHO_T}$CXX" >&6; }
4411 else
4412   { echo "$as_me:$LINENO: result: no" >&5
4413 echo "${ECHO_T}no" >&6; }
4414 fi
4415
4416
4417     test -n "$CXX" && break
4418   done
4419 fi
4420 if test -z "$CXX"; then
4421   ac_ct_CXX=$CXX
4422   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4423 do
4424   # Extract the first word of "$ac_prog", so it can be a program name with args.
4425 set dummy $ac_prog; ac_word=$2
4426 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4427 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4428 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
4429   echo $ECHO_N "(cached) $ECHO_C" >&6
4430 else
4431   if test -n "$ac_ct_CXX"; then
4432   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4433 else
4434 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4435 for as_dir in $PATH
4436 do
4437   IFS=$as_save_IFS
4438   test -z "$as_dir" && as_dir=.
4439   for ac_exec_ext in '' $ac_executable_extensions; do
4440   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4441     ac_cv_prog_ac_ct_CXX="$ac_prog"
4442     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4443     break 2
4444   fi
4445 done
4446 done
4447 IFS=$as_save_IFS
4448
4449 fi
4450 fi
4451 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4452 if test -n "$ac_ct_CXX"; then
4453   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
4454 echo "${ECHO_T}$ac_ct_CXX" >&6; }
4455 else
4456   { echo "$as_me:$LINENO: result: no" >&5
4457 echo "${ECHO_T}no" >&6; }
4458 fi
4459
4460
4461   test -n "$ac_ct_CXX" && break
4462 done
4463
4464   if test "x$ac_ct_CXX" = x; then
4465     CXX="g++"
4466   else
4467     case $cross_compiling:$ac_tool_warned in
4468 yes:)
4469 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4470 whose name does not start with the host triplet.  If you think this
4471 configuration is useful to you, please write to autoconf@gnu.org." >&5
4472 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4473 whose name does not start with the host triplet.  If you think this
4474 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4475 ac_tool_warned=yes ;;
4476 esac
4477     CXX=$ac_ct_CXX
4478   fi
4479 fi
4480
4481   fi
4482 fi
4483 # Provide some information about the compiler.
4484 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
4485 ac_compiler=`set X $ac_compile; echo $2`
4486 { (ac_try="$ac_compiler --version >&5"
4487 case "(($ac_try" in
4488   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4489   *) ac_try_echo=$ac_try;;
4490 esac
4491 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4492   (eval "$ac_compiler --version >&5") 2>&5
4493   ac_status=$?
4494   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4495   (exit $ac_status); }
4496 { (ac_try="$ac_compiler -v >&5"
4497 case "(($ac_try" in
4498   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4499   *) ac_try_echo=$ac_try;;
4500 esac
4501 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4502   (eval "$ac_compiler -v >&5") 2>&5
4503   ac_status=$?
4504   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4505   (exit $ac_status); }
4506 { (ac_try="$ac_compiler -V >&5"
4507 case "(($ac_try" in
4508   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4509   *) ac_try_echo=$ac_try;;
4510 esac
4511 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4512   (eval "$ac_compiler -V >&5") 2>&5
4513   ac_status=$?
4514   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4515   (exit $ac_status); }
4516
4517 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
4518 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
4519 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
4520   echo $ECHO_N "(cached) $ECHO_C" >&6
4521 else
4522   cat >conftest.$ac_ext <<_ACEOF
4523 /* confdefs.h.  */
4524 _ACEOF
4525 cat confdefs.h >>conftest.$ac_ext
4526 cat >>conftest.$ac_ext <<_ACEOF
4527 /* end confdefs.h.  */
4528
4529 int
4530 main ()
4531 {
4532 #ifndef __GNUC__
4533        choke me
4534 #endif
4535
4536   ;
4537   return 0;
4538 }
4539 _ACEOF
4540 rm -f conftest.$ac_objext
4541 if { (ac_try="$ac_compile"
4542 case "(($ac_try" in
4543   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4544   *) ac_try_echo=$ac_try;;
4545 esac
4546 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4547   (eval "$ac_compile") 2>conftest.er1
4548   ac_status=$?
4549   grep -v '^ *+' conftest.er1 >conftest.err
4550   rm -f conftest.er1
4551   cat conftest.err >&5
4552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4553   (exit $ac_status); } && {
4554          test -z "$ac_cxx_werror_flag" ||
4555          test ! -s conftest.err
4556        } && test -s conftest.$ac_objext; then
4557   ac_compiler_gnu=yes
4558 else
4559   echo "$as_me: failed program was:" >&5
4560 sed 's/^/| /' conftest.$ac_ext >&5
4561
4562         ac_compiler_gnu=no
4563 fi
4564
4565 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4566 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4567
4568 fi
4569 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4570 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
4571 GXX=`test $ac_compiler_gnu = yes && echo yes`
4572 ac_test_CXXFLAGS=${CXXFLAGS+set}
4573 ac_save_CXXFLAGS=$CXXFLAGS
4574 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4575 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
4576 if test "${ac_cv_prog_cxx_g+set}" = set; then
4577   echo $ECHO_N "(cached) $ECHO_C" >&6
4578 else
4579   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4580    ac_cxx_werror_flag=yes
4581    ac_cv_prog_cxx_g=no
4582    CXXFLAGS="-g"
4583    cat >conftest.$ac_ext <<_ACEOF
4584 /* confdefs.h.  */
4585 _ACEOF
4586 cat confdefs.h >>conftest.$ac_ext
4587 cat >>conftest.$ac_ext <<_ACEOF
4588 /* end confdefs.h.  */
4589
4590 int
4591 main ()
4592 {
4593
4594   ;
4595   return 0;
4596 }
4597 _ACEOF
4598 rm -f conftest.$ac_objext
4599 if { (ac_try="$ac_compile"
4600 case "(($ac_try" in
4601   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4602   *) ac_try_echo=$ac_try;;
4603 esac
4604 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4605   (eval "$ac_compile") 2>conftest.er1
4606   ac_status=$?
4607   grep -v '^ *+' conftest.er1 >conftest.err
4608   rm -f conftest.er1
4609   cat conftest.err >&5
4610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4611   (exit $ac_status); } && {
4612          test -z "$ac_cxx_werror_flag" ||
4613          test ! -s conftest.err
4614        } && test -s conftest.$ac_objext; then
4615   ac_cv_prog_cxx_g=yes
4616 else
4617   echo "$as_me: failed program was:" >&5
4618 sed 's/^/| /' conftest.$ac_ext >&5
4619
4620         CXXFLAGS=""
4621       cat >conftest.$ac_ext <<_ACEOF
4622 /* confdefs.h.  */
4623 _ACEOF
4624 cat confdefs.h >>conftest.$ac_ext
4625 cat >>conftest.$ac_ext <<_ACEOF
4626 /* end confdefs.h.  */
4627
4628 int
4629 main ()
4630 {
4631
4632   ;
4633   return 0;
4634 }
4635 _ACEOF
4636 rm -f conftest.$ac_objext
4637 if { (ac_try="$ac_compile"
4638 case "(($ac_try" in
4639   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4640   *) ac_try_echo=$ac_try;;
4641 esac
4642 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4643   (eval "$ac_compile") 2>conftest.er1
4644   ac_status=$?
4645   grep -v '^ *+' conftest.er1 >conftest.err
4646   rm -f conftest.er1
4647   cat conftest.err >&5
4648   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4649   (exit $ac_status); } && {
4650          test -z "$ac_cxx_werror_flag" ||
4651          test ! -s conftest.err
4652        } && test -s conftest.$ac_objext; then
4653   :
4654 else
4655   echo "$as_me: failed program was:" >&5
4656 sed 's/^/| /' conftest.$ac_ext >&5
4657
4658         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4659          CXXFLAGS="-g"
4660          cat >conftest.$ac_ext <<_ACEOF
4661 /* confdefs.h.  */
4662 _ACEOF
4663 cat confdefs.h >>conftest.$ac_ext
4664 cat >>conftest.$ac_ext <<_ACEOF
4665 /* end confdefs.h.  */
4666
4667 int
4668 main ()
4669 {
4670
4671   ;
4672   return 0;
4673 }
4674 _ACEOF
4675 rm -f conftest.$ac_objext
4676 if { (ac_try="$ac_compile"
4677 case "(($ac_try" in
4678   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4679   *) ac_try_echo=$ac_try;;
4680 esac
4681 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4682   (eval "$ac_compile") 2>conftest.er1
4683   ac_status=$?
4684   grep -v '^ *+' conftest.er1 >conftest.err
4685   rm -f conftest.er1
4686   cat conftest.err >&5
4687   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4688   (exit $ac_status); } && {
4689          test -z "$ac_cxx_werror_flag" ||
4690          test ! -s conftest.err
4691        } && test -s conftest.$ac_objext; then
4692   ac_cv_prog_cxx_g=yes
4693 else
4694   echo "$as_me: failed program was:" >&5
4695 sed 's/^/| /' conftest.$ac_ext >&5
4696
4697         
4698 fi
4699
4700 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4701 fi
4702
4703 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4704 fi
4705
4706 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4707    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4708 fi
4709 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4710 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
4711 if test "$ac_test_CXXFLAGS" = set; then
4712   CXXFLAGS=$ac_save_CXXFLAGS
4713 elif test $ac_cv_prog_cxx_g = yes; then
4714   if test "$GXX" = yes; then
4715     CXXFLAGS="-g -O2"
4716   else
4717     CXXFLAGS="-g"
4718   fi
4719 else
4720   if test "$GXX" = yes; then
4721     CXXFLAGS="-O2"
4722   else
4723     CXXFLAGS=
4724   fi
4725 fi
4726 ac_ext=c
4727 ac_cpp='$CPP $CPPFLAGS'
4728 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4729 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4730 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4731
4732 depcc="$CXX"  am_compiler_list=
4733
4734 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4735 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
4736 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
4737   echo $ECHO_N "(cached) $ECHO_C" >&6
4738 else
4739   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4740   # We make a subdir and do the tests there.  Otherwise we can end up
4741   # making bogus files that we don't know about and never remove.  For
4742   # instance it was reported that on HP-UX the gcc test will end up
4743   # making a dummy file named `D' -- because `-MD' means `put the output
4744   # in D'.
4745   mkdir conftest.dir
4746   # Copy depcomp to subdir because otherwise we won't find it if we're
4747   # using a relative directory.
4748   cp "$am_depcomp" conftest.dir
4749   cd conftest.dir
4750   # We will build objects and dependencies in a subdirectory because
4751   # it helps to detect inapplicable dependency modes.  For instance
4752   # both Tru64's cc and ICC support -MD to output dependencies as a
4753   # side effect of compilation, but ICC will put the dependencies in
4754   # the current directory while Tru64 will put them in the object
4755   # directory.
4756   mkdir sub
4757
4758   am_cv_CXX_dependencies_compiler_type=none
4759   if test "$am_compiler_list" = ""; then
4760      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4761   fi
4762   for depmode in $am_compiler_list; do
4763     # Setup a source with many dependencies, because some compilers
4764     # like to wrap large dependency lists on column 80 (with \), and
4765     # we should not choose a depcomp mode which is confused by this.
4766     #
4767     # We need to recreate these files for each test, as the compiler may
4768     # overwrite some of them when testing with obscure command lines.
4769     # This happens at least with the AIX C compiler.
4770     : > sub/conftest.c
4771     for i in 1 2 3 4 5 6; do
4772       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4773       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4774       # Solaris 8's {/usr,}/bin/sh.
4775       touch sub/conftst$i.h
4776     done
4777     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4778
4779     case $depmode in
4780     nosideeffect)
4781       # after this tag, mechanisms are not by side-effect, so they'll
4782       # only be used when explicitly requested
4783       if test "x$enable_dependency_tracking" = xyes; then
4784         continue
4785       else
4786         break
4787       fi
4788       ;;
4789     none) break ;;
4790     esac
4791     # We check with `-c' and `-o' for the sake of the "dashmstdout"
4792     # mode.  It turns out that the SunPro C++ compiler does not properly
4793     # handle `-M -o', and we need to detect this.
4794     if depmode=$depmode \
4795        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4796        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4797        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4798          >/dev/null 2>conftest.err &&
4799        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4800        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4801        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4802       # icc doesn't choke on unknown options, it will just issue warnings
4803       # or remarks (even with -Werror).  So we grep stderr for any message
4804       # that says an option was ignored or not supported.
4805       # When given -MP, icc 7.0 and 7.1 complain thusly:
4806       #   icc: Command line warning: ignoring option '-M'; no argument required
4807       # The diagnosis changed in icc 8.0:
4808       #   icc: Command line remark: option '-MP' not supported
4809       if (grep 'ignoring option' conftest.err ||
4810           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4811         am_cv_CXX_dependencies_compiler_type=$depmode
4812         break
4813       fi
4814     fi
4815   done
4816
4817   cd ..
4818   rm -rf conftest.dir
4819 else
4820   am_cv_CXX_dependencies_compiler_type=none
4821 fi
4822
4823 fi
4824 { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
4825 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
4826 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4827
4828  
4829
4830 if 
4831   test "x$enable_dependency_tracking" != xno \
4832   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4833   am__fastdepCXX_TRUE=
4834   am__fastdepCXX_FALSE='#'
4835 else
4836   am__fastdepCXX_TRUE='#'
4837   am__fastdepCXX_FALSE=
4838 fi
4839
4840
4841 ac_ext=c
4842 ac_cpp='$CPP $CPPFLAGS'
4843 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4844 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4845 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4846 if test -n "$ac_tool_prefix"; then
4847   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4848 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4849 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4850 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4851 if test "${ac_cv_prog_CC+set}" = set; then
4852   echo $ECHO_N "(cached) $ECHO_C" >&6
4853 else
4854   if test -n "$CC"; then
4855   ac_cv_prog_CC="$CC" # Let the user override the test.
4856 else
4857 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4858 for as_dir in $PATH
4859 do
4860   IFS=$as_save_IFS
4861   test -z "$as_dir" && as_dir=.
4862   for ac_exec_ext in '' $ac_executable_extensions; do
4863   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4864     ac_cv_prog_CC="${ac_tool_prefix}gcc"
4865     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4866     break 2
4867   fi
4868 done
4869 done
4870 IFS=$as_save_IFS
4871
4872 fi
4873 fi
4874 CC=$ac_cv_prog_CC
4875 if test -n "$CC"; then
4876   { echo "$as_me:$LINENO: result: $CC" >&5
4877 echo "${ECHO_T}$CC" >&6; }
4878 else
4879   { echo "$as_me:$LINENO: result: no" >&5
4880 echo "${ECHO_T}no" >&6; }
4881 fi
4882
4883
4884 fi
4885 if test -z "$ac_cv_prog_CC"; then
4886   ac_ct_CC=$CC
4887   # Extract the first word of "gcc", so it can be a program name with args.
4888 set dummy gcc; ac_word=$2
4889 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4890 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4891 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4892   echo $ECHO_N "(cached) $ECHO_C" >&6
4893 else
4894   if test -n "$ac_ct_CC"; then
4895   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4896 else
4897 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4898 for as_dir in $PATH
4899 do
4900   IFS=$as_save_IFS
4901   test -z "$as_dir" && as_dir=.
4902   for ac_exec_ext in '' $ac_executable_extensions; do
4903   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4904     ac_cv_prog_ac_ct_CC="gcc"
4905     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4906     break 2
4907   fi
4908 done
4909 done
4910 IFS=$as_save_IFS
4911
4912 fi
4913 fi
4914 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4915 if test -n "$ac_ct_CC"; then
4916   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4917 echo "${ECHO_T}$ac_ct_CC" >&6; }
4918 else
4919   { echo "$as_me:$LINENO: result: no" >&5
4920 echo "${ECHO_T}no" >&6; }
4921 fi
4922
4923   if test "x$ac_ct_CC" = x; then
4924     CC=""
4925   else
4926     case $cross_compiling:$ac_tool_warned in
4927 yes:)
4928 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4929 whose name does not start with the host triplet.  If you think this
4930 configuration is useful to you, please write to autoconf@gnu.org." >&5
4931 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4932 whose name does not start with the host triplet.  If you think this
4933 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4934 ac_tool_warned=yes ;;
4935 esac
4936     CC=$ac_ct_CC
4937   fi
4938 else
4939   CC="$ac_cv_prog_CC"
4940 fi
4941
4942 if test -z "$CC"; then
4943           if test -n "$ac_tool_prefix"; then
4944     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4945 set dummy ${ac_tool_prefix}cc; ac_word=$2
4946 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4947 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4948 if test "${ac_cv_prog_CC+set}" = set; then
4949   echo $ECHO_N "(cached) $ECHO_C" >&6
4950 else
4951   if test -n "$CC"; then
4952   ac_cv_prog_CC="$CC" # Let the user override the test.
4953 else
4954 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4955 for as_dir in $PATH
4956 do
4957   IFS=$as_save_IFS
4958   test -z "$as_dir" && as_dir=.
4959   for ac_exec_ext in '' $ac_executable_extensions; do
4960   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4961     ac_cv_prog_CC="${ac_tool_prefix}cc"
4962     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4963     break 2
4964   fi
4965 done
4966 done
4967 IFS=$as_save_IFS
4968
4969 fi
4970 fi
4971 CC=$ac_cv_prog_CC
4972 if test -n "$CC"; then
4973   { echo "$as_me:$LINENO: result: $CC" >&5
4974 echo "${ECHO_T}$CC" >&6; }
4975 else
4976   { echo "$as_me:$LINENO: result: no" >&5
4977 echo "${ECHO_T}no" >&6; }
4978 fi
4979
4980
4981   fi
4982 fi
4983 if test -z "$CC"; then
4984   # Extract the first word of "cc", so it can be a program name with args.
4985 set dummy cc; ac_word=$2
4986 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4987 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4988 if test "${ac_cv_prog_CC+set}" = set; then
4989   echo $ECHO_N "(cached) $ECHO_C" >&6
4990 else
4991   if test -n "$CC"; then
4992   ac_cv_prog_CC="$CC" # Let the user override the test.
4993 else
4994   ac_prog_rejected=no
4995 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4996 for as_dir in $PATH
4997 do
4998   IFS=$as_save_IFS
4999   test -z "$as_dir" && as_dir=.
5000   for ac_exec_ext in '' $ac_executable_extensions; do
5001   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5002     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5003        ac_prog_rejected=yes
5004        continue
5005      fi
5006     ac_cv_prog_CC="cc"
5007     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5008     break 2
5009   fi
5010 done
5011 done
5012 IFS=$as_save_IFS
5013
5014 if test $ac_prog_rejected = yes; then
5015   # We found a bogon in the path, so make sure we never use it.
5016   set dummy $ac_cv_prog_CC
5017   shift
5018   if test $@%:@ != 0; then
5019     # We chose a different compiler from the bogus one.
5020     # However, it has the same basename, so the bogon will be chosen
5021     # first if we set CC to just the basename; use the full file name.
5022     shift
5023     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
5024   fi
5025 fi
5026 fi
5027 fi
5028 CC=$ac_cv_prog_CC
5029 if test -n "$CC"; then
5030   { echo "$as_me:$LINENO: result: $CC" >&5
5031 echo "${ECHO_T}$CC" >&6; }
5032 else
5033   { echo "$as_me:$LINENO: result: no" >&5
5034 echo "${ECHO_T}no" >&6; }
5035 fi
5036
5037
5038 fi
5039 if test -z "$CC"; then
5040   if test -n "$ac_tool_prefix"; then
5041   for ac_prog in cl.exe
5042   do
5043     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5044 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5045 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5046 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5047 if test "${ac_cv_prog_CC+set}" = set; then
5048   echo $ECHO_N "(cached) $ECHO_C" >&6
5049 else
5050   if test -n "$CC"; then
5051   ac_cv_prog_CC="$CC" # Let the user override the test.
5052 else
5053 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5054 for as_dir in $PATH
5055 do
5056   IFS=$as_save_IFS
5057   test -z "$as_dir" && as_dir=.
5058   for ac_exec_ext in '' $ac_executable_extensions; do
5059   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5060     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5061     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5062     break 2
5063   fi
5064 done
5065 done
5066 IFS=$as_save_IFS
5067
5068 fi
5069 fi
5070 CC=$ac_cv_prog_CC
5071 if test -n "$CC"; then
5072   { echo "$as_me:$LINENO: result: $CC" >&5
5073 echo "${ECHO_T}$CC" >&6; }
5074 else
5075   { echo "$as_me:$LINENO: result: no" >&5
5076 echo "${ECHO_T}no" >&6; }
5077 fi
5078
5079
5080     test -n "$CC" && break
5081   done
5082 fi
5083 if test -z "$CC"; then
5084   ac_ct_CC=$CC
5085   for ac_prog in cl.exe
5086 do
5087   # Extract the first word of "$ac_prog", so it can be a program name with args.
5088 set dummy $ac_prog; ac_word=$2
5089 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5090 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5091 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5092   echo $ECHO_N "(cached) $ECHO_C" >&6
5093 else
5094   if test -n "$ac_ct_CC"; then
5095   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5096 else
5097 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5098 for as_dir in $PATH
5099 do
5100   IFS=$as_save_IFS
5101   test -z "$as_dir" && as_dir=.
5102   for ac_exec_ext in '' $ac_executable_extensions; do
5103   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5104     ac_cv_prog_ac_ct_CC="$ac_prog"
5105     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5106     break 2
5107   fi
5108 done
5109 done
5110 IFS=$as_save_IFS
5111
5112 fi
5113 fi
5114 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5115 if test -n "$ac_ct_CC"; then
5116   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5117 echo "${ECHO_T}$ac_ct_CC" >&6; }
5118 else
5119   { echo "$as_me:$LINENO: result: no" >&5
5120 echo "${ECHO_T}no" >&6; }
5121 fi
5122
5123
5124   test -n "$ac_ct_CC" && break
5125 done
5126
5127   if test "x$ac_ct_CC" = x; then
5128     CC=""
5129   else
5130     case $cross_compiling:$ac_tool_warned in
5131 yes:)
5132 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5133 whose name does not start with the host triplet.  If you think this
5134 configuration is useful to you, please write to autoconf@gnu.org." >&5
5135 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5136 whose name does not start with the host triplet.  If you think this
5137 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5138 ac_tool_warned=yes ;;
5139 esac
5140     CC=$ac_ct_CC
5141   fi
5142 fi
5143
5144 fi
5145
5146
5147 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
5148 See \`config.log' for more details." >&5
5149 echo "$as_me: error: no acceptable C compiler found in \$PATH
5150 See \`config.log' for more details." >&2;}
5151    { (exit 1); exit 1; }; }
5152
5153 # Provide some information about the compiler.
5154 echo "$as_me:$LINENO: checking for C compiler version" >&5
5155 ac_compiler=`set X $ac_compile; echo $2`
5156 { (ac_try="$ac_compiler --version >&5"
5157 case "(($ac_try" in
5158   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5159   *) ac_try_echo=$ac_try;;
5160 esac
5161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5162   (eval "$ac_compiler --version >&5") 2>&5
5163   ac_status=$?
5164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5165   (exit $ac_status); }
5166 { (ac_try="$ac_compiler -v >&5"
5167 case "(($ac_try" in
5168   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5169   *) ac_try_echo=$ac_try;;
5170 esac
5171 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5172   (eval "$ac_compiler -v >&5") 2>&5
5173   ac_status=$?
5174   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5175   (exit $ac_status); }
5176 { (ac_try="$ac_compiler -V >&5"
5177 case "(($ac_try" in
5178   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5179   *) ac_try_echo=$ac_try;;
5180 esac
5181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5182   (eval "$ac_compiler -V >&5") 2>&5
5183   ac_status=$?
5184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5185   (exit $ac_status); }
5186
5187 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
5188 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
5189 if test "${ac_cv_c_compiler_gnu+set}" = set; then
5190   echo $ECHO_N "(cached) $ECHO_C" >&6
5191 else
5192   cat >conftest.$ac_ext <<_ACEOF
5193 /* confdefs.h.  */
5194 _ACEOF
5195 cat confdefs.h >>conftest.$ac_ext
5196 cat >>conftest.$ac_ext <<_ACEOF
5197 /* end confdefs.h.  */
5198
5199 int
5200 main ()
5201 {
5202 #ifndef __GNUC__
5203        choke me
5204 #endif
5205
5206   ;
5207   return 0;
5208 }
5209 _ACEOF
5210 rm -f conftest.$ac_objext
5211 if { (ac_try="$ac_compile"
5212 case "(($ac_try" in
5213   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5214   *) ac_try_echo=$ac_try;;
5215 esac
5216 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5217   (eval "$ac_compile") 2>conftest.er1
5218   ac_status=$?
5219   grep -v '^ *+' conftest.er1 >conftest.err
5220   rm -f conftest.er1
5221   cat conftest.err >&5
5222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5223   (exit $ac_status); } && {
5224          test -z "$ac_c_werror_flag" ||
5225          test ! -s conftest.err
5226        } && test -s conftest.$ac_objext; then
5227   ac_compiler_gnu=yes
5228 else
5229   echo "$as_me: failed program was:" >&5
5230 sed 's/^/| /' conftest.$ac_ext >&5
5231
5232         ac_compiler_gnu=no
5233 fi
5234
5235 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5236 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5237
5238 fi
5239 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
5240 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
5241 GCC=`test $ac_compiler_gnu = yes && echo yes`
5242 ac_test_CFLAGS=${CFLAGS+set}
5243 ac_save_CFLAGS=$CFLAGS
5244 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
5245 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
5246 if test "${ac_cv_prog_cc_g+set}" = set; then
5247   echo $ECHO_N "(cached) $ECHO_C" >&6
5248 else
5249   ac_save_c_werror_flag=$ac_c_werror_flag
5250    ac_c_werror_flag=yes
5251    ac_cv_prog_cc_g=no
5252    CFLAGS="-g"
5253    cat >conftest.$ac_ext <<_ACEOF
5254 /* confdefs.h.  */
5255 _ACEOF
5256 cat confdefs.h >>conftest.$ac_ext
5257 cat >>conftest.$ac_ext <<_ACEOF
5258 /* end confdefs.h.  */
5259
5260 int
5261 main ()
5262 {
5263
5264   ;
5265   return 0;
5266 }
5267 _ACEOF
5268 rm -f conftest.$ac_objext
5269 if { (ac_try="$ac_compile"
5270 case "(($ac_try" in
5271   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5272   *) ac_try_echo=$ac_try;;
5273 esac
5274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5275   (eval "$ac_compile") 2>conftest.er1
5276   ac_status=$?
5277   grep -v '^ *+' conftest.er1 >conftest.err
5278   rm -f conftest.er1
5279   cat conftest.err >&5
5280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5281   (exit $ac_status); } && {
5282          test -z "$ac_c_werror_flag" ||
5283          test ! -s conftest.err
5284        } && test -s conftest.$ac_objext; then
5285   ac_cv_prog_cc_g=yes
5286 else
5287   echo "$as_me: failed program was:" >&5
5288 sed 's/^/| /' conftest.$ac_ext >&5
5289
5290         CFLAGS=""
5291       cat >conftest.$ac_ext <<_ACEOF
5292 /* confdefs.h.  */
5293 _ACEOF
5294 cat confdefs.h >>conftest.$ac_ext
5295 cat >>conftest.$ac_ext <<_ACEOF
5296 /* end confdefs.h.  */
5297
5298 int
5299 main ()
5300 {
5301
5302   ;
5303   return 0;
5304 }
5305 _ACEOF
5306 rm -f conftest.$ac_objext
5307 if { (ac_try="$ac_compile"
5308 case "(($ac_try" in
5309   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5310   *) ac_try_echo=$ac_try;;
5311 esac
5312 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5313   (eval "$ac_compile") 2>conftest.er1
5314   ac_status=$?
5315   grep -v '^ *+' conftest.er1 >conftest.err
5316   rm -f conftest.er1
5317   cat conftest.err >&5
5318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5319   (exit $ac_status); } && {
5320          test -z "$ac_c_werror_flag" ||
5321          test ! -s conftest.err
5322        } && test -s conftest.$ac_objext; then
5323   :
5324 else
5325   echo "$as_me: failed program was:" >&5
5326 sed 's/^/| /' conftest.$ac_ext >&5
5327
5328         ac_c_werror_flag=$ac_save_c_werror_flag
5329          CFLAGS="-g"
5330          cat >conftest.$ac_ext <<_ACEOF
5331 /* confdefs.h.  */
5332 _ACEOF
5333 cat confdefs.h >>conftest.$ac_ext
5334 cat >>conftest.$ac_ext <<_ACEOF
5335 /* end confdefs.h.  */
5336
5337 int
5338 main ()
5339 {
5340
5341   ;
5342   return 0;
5343 }
5344 _ACEOF
5345 rm -f conftest.$ac_objext
5346 if { (ac_try="$ac_compile"
5347 case "(($ac_try" in
5348   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5349   *) ac_try_echo=$ac_try;;
5350 esac
5351 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5352   (eval "$ac_compile") 2>conftest.er1
5353   ac_status=$?
5354   grep -v '^ *+' conftest.er1 >conftest.err
5355   rm -f conftest.er1
5356   cat conftest.err >&5
5357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5358   (exit $ac_status); } && {
5359          test -z "$ac_c_werror_flag" ||
5360          test ! -s conftest.err
5361        } && test -s conftest.$ac_objext; then
5362   ac_cv_prog_cc_g=yes
5363 else
5364   echo "$as_me: failed program was:" >&5
5365 sed 's/^/| /' conftest.$ac_ext >&5
5366
5367         
5368 fi
5369
5370 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5371 fi
5372
5373 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5374 fi
5375
5376 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5377    ac_c_werror_flag=$ac_save_c_werror_flag
5378 fi
5379 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
5380 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
5381 if test "$ac_test_CFLAGS" = set; then
5382   CFLAGS=$ac_save_CFLAGS
5383 elif test $ac_cv_prog_cc_g = yes; then
5384   if test "$GCC" = yes; then
5385     CFLAGS="-g -O2"
5386   else
5387     CFLAGS="-g"
5388   fi
5389 else
5390   if test "$GCC" = yes; then
5391     CFLAGS="-O2"
5392   else
5393     CFLAGS=
5394   fi
5395 fi
5396 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
5397 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
5398 if test "${ac_cv_prog_cc_c89+set}" = set; then
5399   echo $ECHO_N "(cached) $ECHO_C" >&6
5400 else
5401   ac_cv_prog_cc_c89=no
5402 ac_save_CC=$CC
5403 cat >conftest.$ac_ext <<_ACEOF
5404 /* confdefs.h.  */
5405 _ACEOF
5406 cat confdefs.h >>conftest.$ac_ext
5407 cat >>conftest.$ac_ext <<_ACEOF
5408 /* end confdefs.h.  */
5409 #include <stdarg.h>
5410 #include <stdio.h>
5411 #include <sys/types.h>
5412 #include <sys/stat.h>
5413 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
5414 struct buf { int x; };
5415 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5416 static char *e (p, i)
5417      char **p;
5418      int i;
5419 {
5420   return p[i];
5421 }
5422 static char *f (char * (*g) (char **, int), char **p, ...)
5423 {
5424   char *s;
5425   va_list v;
5426   va_start (v,p);
5427   s = g (p, va_arg (v,int));
5428   va_end (v);
5429   return s;
5430 }
5431
5432 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
5433    function prototypes and stuff, but not '\xHH' hex character constants.
5434    These don't provoke an error unfortunately, instead are silently treated
5435    as 'x'.  The following induces an error, until -std is added to get
5436    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
5437    array size at least.  It's necessary to write '\x00'==0 to get something
5438    that's true only with -std.  */
5439 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5440
5441 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5442    inside strings and character constants.  */
5443 #define FOO(x) 'x'
5444 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5445
5446 int test (int i, double x);
5447 struct s1 {int (*f) (int a);};
5448 struct s2 {int (*f) (double a);};
5449 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5450 int argc;
5451 char **argv;
5452 int
5453 main ()
5454 {
5455 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
5456   ;
5457   return 0;
5458 }
5459 _ACEOF
5460 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5461         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5462 do
5463   CC="$ac_save_CC $ac_arg"
5464   rm -f conftest.$ac_objext
5465 if { (ac_try="$ac_compile"
5466 case "(($ac_try" in
5467   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5468   *) ac_try_echo=$ac_try;;
5469 esac
5470 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5471   (eval "$ac_compile") 2>conftest.er1
5472   ac_status=$?
5473   grep -v '^ *+' conftest.er1 >conftest.err
5474   rm -f conftest.er1
5475   cat conftest.err >&5
5476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5477   (exit $ac_status); } && {
5478          test -z "$ac_c_werror_flag" ||
5479          test ! -s conftest.err
5480        } && test -s conftest.$ac_objext; then
5481   ac_cv_prog_cc_c89=$ac_arg
5482 else
5483   echo "$as_me: failed program was:" >&5
5484 sed 's/^/| /' conftest.$ac_ext >&5
5485
5486         
5487 fi
5488
5489 rm -f core conftest.err conftest.$ac_objext 
5490   test "x$ac_cv_prog_cc_c89" != "xno" && break
5491 done
5492 rm -f conftest.$ac_ext
5493 CC=$ac_save_CC
5494
5495 fi
5496 # AC_CACHE_VAL
5497 case "x$ac_cv_prog_cc_c89" in
5498   x)
5499     { echo "$as_me:$LINENO: result: none needed" >&5
5500 echo "${ECHO_T}none needed" >&6; } ;;
5501   xno)
5502     { echo "$as_me:$LINENO: result: unsupported" >&5
5503 echo "${ECHO_T}unsupported" >&6; } ;;
5504   *)
5505     CC="$CC $ac_cv_prog_cc_c89"
5506     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
5507 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
5508 esac
5509
5510
5511 ac_ext=c
5512 ac_cpp='$CPP $CPPFLAGS'
5513 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5514 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5515 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5516
5517 depcc="$CC"   am_compiler_list=
5518
5519 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5520 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
5521 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
5522   echo $ECHO_N "(cached) $ECHO_C" >&6
5523 else
5524   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5525   # We make a subdir and do the tests there.  Otherwise we can end up
5526   # making bogus files that we don't know about and never remove.  For
5527   # instance it was reported that on HP-UX the gcc test will end up
5528   # making a dummy file named `D' -- because `-MD' means `put the output
5529   # in D'.
5530   mkdir conftest.dir
5531   # Copy depcomp to subdir because otherwise we won't find it if we're
5532   # using a relative directory.
5533   cp "$am_depcomp" conftest.dir
5534   cd conftest.dir
5535   # We will build objects and dependencies in a subdirectory because
5536   # it helps to detect inapplicable dependency modes.  For instance
5537   # both Tru64's cc and ICC support -MD to output dependencies as a
5538   # side effect of compilation, but ICC will put the dependencies in
5539   # the current directory while Tru64 will put them in the object
5540   # directory.
5541   mkdir sub
5542
5543   am_cv_CC_dependencies_compiler_type=none
5544   if test "$am_compiler_list" = ""; then
5545      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5546   fi
5547   for depmode in $am_compiler_list; do
5548     # Setup a source with many dependencies, because some compilers
5549     # like to wrap large dependency lists on column 80 (with \), and
5550     # we should not choose a depcomp mode which is confused by this.
5551     #
5552     # We need to recreate these files for each test, as the compiler may
5553     # overwrite some of them when testing with obscure command lines.
5554     # This happens at least with the AIX C compiler.
5555     : > sub/conftest.c
5556     for i in 1 2 3 4 5 6; do
5557       echo '#include "conftst'$i'.h"' >> sub/conftest.c
5558       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5559       # Solaris 8's {/usr,}/bin/sh.
5560       touch sub/conftst$i.h
5561     done
5562     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5563
5564     case $depmode in
5565     nosideeffect)
5566       # after this tag, mechanisms are not by side-effect, so they'll
5567       # only be used when explicitly requested
5568       if test "x$enable_dependency_tracking" = xyes; then
5569         continue
5570       else
5571         break
5572       fi
5573       ;;
5574     none) break ;;
5575     esac
5576     # We check with `-c' and `-o' for the sake of the "dashmstdout"
5577     # mode.  It turns out that the SunPro C++ compiler does not properly
5578     # handle `-M -o', and we need to detect this.
5579     if depmode=$depmode \
5580        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5581        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5582        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5583          >/dev/null 2>conftest.err &&
5584        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5585        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5586        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5587       # icc doesn't choke on unknown options, it will just issue warnings
5588       # or remarks (even with -Werror).  So we grep stderr for any message
5589       # that says an option was ignored or not supported.
5590       # When given -MP, icc 7.0 and 7.1 complain thusly:
5591       #   icc: Command line warning: ignoring option '-M'; no argument required
5592       # The diagnosis changed in icc 8.0:
5593       #   icc: Command line remark: option '-MP' not supported
5594       if (grep 'ignoring option' conftest.err ||
5595           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5596         am_cv_CC_dependencies_compiler_type=$depmode
5597         break
5598       fi
5599     fi
5600   done
5601
5602   cd ..
5603   rm -rf conftest.dir
5604 else
5605   am_cv_CC_dependencies_compiler_type=none
5606 fi
5607
5608 fi
5609 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
5610 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
5611 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5612
5613  
5614
5615 if 
5616   test "x$enable_dependency_tracking" != xno \
5617   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5618   am__fastdepCC_TRUE=
5619   am__fastdepCC_FALSE='#'
5620 else
5621   am__fastdepCC_TRUE='#'
5622   am__fastdepCC_FALSE=
5623 fi
5624
5625
5626 ac_ext=c
5627 ac_cpp='$CPP $CPPFLAGS'
5628 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5629 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5630 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5631 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5632 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
5633 # On Suns, sometimes $CPP names a directory.
5634 if test -n "$CPP" && test -d "$CPP"; then
5635   CPP=
5636 fi
5637 if test -z "$CPP"; then
5638   if test "${ac_cv_prog_CPP+set}" = set; then
5639   echo $ECHO_N "(cached) $ECHO_C" >&6
5640 else
5641       # Double quotes because CPP needs to be expanded
5642     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5643     do
5644       ac_preproc_ok=false
5645 for ac_c_preproc_warn_flag in '' yes
5646 do
5647   # Use a header file that comes with gcc, so configuring glibc
5648   # with a fresh cross-compiler works.
5649   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5650   # <limits.h> exists even on freestanding compilers.
5651   # On the NeXT, cc -E runs the code through the compiler's parser,
5652   # not just through cpp. "Syntax error" is here to catch this case.
5653   cat >conftest.$ac_ext <<_ACEOF
5654 /* confdefs.h.  */
5655 _ACEOF
5656 cat confdefs.h >>conftest.$ac_ext
5657 cat >>conftest.$ac_ext <<_ACEOF
5658 /* end confdefs.h.  */
5659 @%:@ifdef __STDC__
5660 @%:@ include <limits.h>
5661 @%:@else
5662 @%:@ include <assert.h>
5663 @%:@endif
5664                      Syntax error
5665 _ACEOF
5666 if { (ac_try="$ac_cpp conftest.$ac_ext"
5667 case "(($ac_try" in
5668   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5669   *) ac_try_echo=$ac_try;;
5670 esac
5671 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5672   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5673   ac_status=$?
5674   grep -v '^ *+' conftest.er1 >conftest.err
5675   rm -f conftest.er1
5676   cat conftest.err >&5
5677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5678   (exit $ac_status); } >/dev/null && {
5679          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5680          test ! -s conftest.err
5681        }; then
5682   :
5683 else
5684   echo "$as_me: failed program was:" >&5
5685 sed 's/^/| /' conftest.$ac_ext >&5
5686
5687   # Broken: fails on valid input.
5688 continue
5689 fi
5690
5691 rm -f conftest.err conftest.$ac_ext
5692
5693   # OK, works on sane cases.  Now check whether nonexistent headers
5694   # can be detected and how.
5695   cat >conftest.$ac_ext <<_ACEOF
5696 /* confdefs.h.  */
5697 _ACEOF
5698 cat confdefs.h >>conftest.$ac_ext
5699 cat >>conftest.$ac_ext <<_ACEOF
5700 /* end confdefs.h.  */
5701 @%:@include <ac_nonexistent.h>
5702 _ACEOF
5703 if { (ac_try="$ac_cpp conftest.$ac_ext"
5704 case "(($ac_try" in
5705   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5706   *) ac_try_echo=$ac_try;;
5707 esac
5708 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5709   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5710   ac_status=$?
5711   grep -v '^ *+' conftest.er1 >conftest.err
5712   rm -f conftest.er1
5713   cat conftest.err >&5
5714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5715   (exit $ac_status); } >/dev/null && {
5716          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5717          test ! -s conftest.err
5718        }; then
5719   # Broken: success on invalid input.
5720 continue
5721 else
5722   echo "$as_me: failed program was:" >&5
5723 sed 's/^/| /' conftest.$ac_ext >&5
5724
5725   # Passes both tests.
5726 ac_preproc_ok=:
5727 break
5728 fi
5729
5730 rm -f conftest.err conftest.$ac_ext
5731
5732 done
5733 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5734 rm -f conftest.err conftest.$ac_ext
5735 if $ac_preproc_ok; then
5736   break
5737 fi
5738
5739     done
5740     ac_cv_prog_CPP=$CPP
5741   
5742 fi
5743   CPP=$ac_cv_prog_CPP
5744 else
5745   ac_cv_prog_CPP=$CPP
5746 fi
5747 { echo "$as_me:$LINENO: result: $CPP" >&5
5748 echo "${ECHO_T}$CPP" >&6; }
5749 ac_preproc_ok=false
5750 for ac_c_preproc_warn_flag in '' yes
5751 do
5752   # Use a header file that comes with gcc, so configuring glibc
5753   # with a fresh cross-compiler works.
5754   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5755   # <limits.h> exists even on freestanding compilers.
5756   # On the NeXT, cc -E runs the code through the compiler's parser,
5757   # not just through cpp. "Syntax error" is here to catch this case.
5758   cat >conftest.$ac_ext <<_ACEOF
5759 /* confdefs.h.  */
5760 _ACEOF
5761 cat confdefs.h >>conftest.$ac_ext
5762 cat >>conftest.$ac_ext <<_ACEOF
5763 /* end confdefs.h.  */
5764 @%:@ifdef __STDC__
5765 @%:@ include <limits.h>
5766 @%:@else
5767 @%:@ include <assert.h>
5768 @%:@endif
5769                      Syntax error
5770 _ACEOF
5771 if { (ac_try="$ac_cpp conftest.$ac_ext"
5772 case "(($ac_try" in
5773   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5774   *) ac_try_echo=$ac_try;;
5775 esac
5776 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5777   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5778   ac_status=$?
5779   grep -v '^ *+' conftest.er1 >conftest.err
5780   rm -f conftest.er1
5781   cat conftest.err >&5
5782   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5783   (exit $ac_status); } >/dev/null && {
5784          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5785          test ! -s conftest.err
5786        }; then
5787   :
5788 else
5789   echo "$as_me: failed program was:" >&5
5790 sed 's/^/| /' conftest.$ac_ext >&5
5791
5792   # Broken: fails on valid input.
5793 continue
5794 fi
5795
5796 rm -f conftest.err conftest.$ac_ext
5797
5798   # OK, works on sane cases.  Now check whether nonexistent headers
5799   # can be detected and how.
5800   cat >conftest.$ac_ext <<_ACEOF
5801 /* confdefs.h.  */
5802 _ACEOF
5803 cat confdefs.h >>conftest.$ac_ext
5804 cat >>conftest.$ac_ext <<_ACEOF
5805 /* end confdefs.h.  */
5806 @%:@include <ac_nonexistent.h>
5807 _ACEOF
5808 if { (ac_try="$ac_cpp conftest.$ac_ext"
5809 case "(($ac_try" in
5810   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5811   *) ac_try_echo=$ac_try;;
5812 esac
5813 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5814   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5815   ac_status=$?
5816   grep -v '^ *+' conftest.er1 >conftest.err
5817   rm -f conftest.er1
5818   cat conftest.err >&5
5819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5820   (exit $ac_status); } >/dev/null && {
5821          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5822          test ! -s conftest.err
5823        }; then
5824   # Broken: success on invalid input.
5825 continue
5826 else
5827   echo "$as_me: failed program was:" >&5
5828 sed 's/^/| /' conftest.$ac_ext >&5
5829
5830   # Passes both tests.
5831 ac_preproc_ok=:
5832 break
5833 fi
5834
5835 rm -f conftest.err conftest.$ac_ext
5836
5837 done
5838 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5839 rm -f conftest.err conftest.$ac_ext
5840 if $ac_preproc_ok; then
5841   :
5842 else
5843   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5844 See \`config.log' for more details." >&5
5845 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5846 See \`config.log' for more details." >&2;}
5847    { (exit 1); exit 1; }; }
5848 fi
5849
5850 ac_ext=c
5851 ac_cpp='$CPP $CPPFLAGS'
5852 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5853 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5854 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5855
5856 # Find a good install program.  We prefer a C program (faster),
5857 # so one script is as good as another.  But avoid the broken or
5858 # incompatible versions:
5859 # SysV /etc/install, /usr/sbin/install
5860 # SunOS /usr/etc/install
5861 # IRIX /sbin/install
5862 # AIX /bin/install
5863 # AmigaOS /C/install, which installs bootblocks on floppy discs
5864 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5865 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5866 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5867 # OS/2's system install, which has a completely different semantic
5868 # ./install, which can be erroneously created by make from ./install.sh.
5869 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
5870 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
5871 if test -z "$INSTALL"; then
5872 if test "${ac_cv_path_install+set}" = set; then
5873   echo $ECHO_N "(cached) $ECHO_C" >&6
5874 else
5875   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5876 for as_dir in $PATH
5877 do
5878   IFS=$as_save_IFS
5879   test -z "$as_dir" && as_dir=.
5880   # Account for people who put trailing slashes in PATH elements.
5881 case $as_dir/ in
5882   ./ | .// | /cC/* | \
5883   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5884   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
5885   /usr/ucb/* ) ;;
5886   *)
5887     # OSF1 and SCO ODT 3.0 have their own names for install.
5888     # Don't use installbsd from OSF since it installs stuff as root
5889     # by default.
5890     for ac_prog in ginstall scoinst install; do
5891       for ac_exec_ext in '' $ac_executable_extensions; do
5892         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
5893           if test $ac_prog = install &&
5894             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5895             # AIX install.  It has an incompatible calling convention.
5896             :
5897           elif test $ac_prog = install &&
5898             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5899             # program-specific install script used by HP pwplus--don't use.
5900             :
5901           else
5902             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5903             break 3
5904           fi
5905         fi
5906       done
5907     done
5908     ;;
5909 esac
5910 done
5911 IFS=$as_save_IFS
5912
5913
5914 fi
5915   if test "${ac_cv_path_install+set}" = set; then
5916     INSTALL=$ac_cv_path_install
5917   else
5918     # As a last resort, use the slow shell script.  Don't cache a
5919     # value for INSTALL within a source directory, because that will
5920     # break other packages using the cache if that directory is
5921     # removed, or if the value is a relative name.
5922     INSTALL=$ac_install_sh
5923   fi
5924 fi
5925 { echo "$as_me:$LINENO: result: $INSTALL" >&5
5926 echo "${ECHO_T}$INSTALL" >&6; }
5927
5928 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5929 # It thinks the first close brace ends the variable substitution.
5930 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5931
5932 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5933
5934 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5935
5936 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
5937 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
5938 LN_S=$as_ln_s
5939 if test "$LN_S" = "ln -s"; then
5940   { echo "$as_me:$LINENO: result: yes" >&5
5941 echo "${ECHO_T}yes" >&6; }
5942 else
5943   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5944 echo "${ECHO_T}no, using $LN_S" >&6; }
5945 fi
5946
5947 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5948 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
5949 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
5950 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
5951   echo $ECHO_N "(cached) $ECHO_C" >&6
5952 else
5953   cat >conftest.make <<\_ACEOF
5954 SHELL = /bin/sh
5955 all:
5956         @echo '@@@%%%=$(MAKE)=@@@%%%'
5957 _ACEOF
5958 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5959 case `${MAKE-make} -f conftest.make 2>/dev/null` in
5960   *@@@%%%=?*=@@@%%%*)
5961     eval ac_cv_prog_make_${ac_make}_set=yes;;
5962   *)
5963     eval ac_cv_prog_make_${ac_make}_set=no;;
5964 esac
5965 rm -f conftest.make
5966 fi
5967 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
5968   { echo "$as_me:$LINENO: result: yes" >&5
5969 echo "${ECHO_T}yes" >&6; }
5970   SET_MAKE=
5971 else
5972   { echo "$as_me:$LINENO: result: no" >&5
5973 echo "${ECHO_T}no" >&6; }
5974   SET_MAKE="MAKE=${MAKE-make}"
5975 fi
5976
5977 # Check whether --enable-shared was given.
5978 if test "${enable_shared+set}" = set; then
5979   enableval=$enable_shared; p=${PACKAGE-default}
5980     case $enableval in
5981     yes) enable_shared=yes ;;
5982     no) enable_shared=no ;;
5983     *)
5984       enable_shared=no
5985       # Look at the argument we got.  We use all the common list separators.
5986       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5987       for pkg in $enableval; do
5988         IFS="$lt_save_ifs"
5989         if test "X$pkg" = "X$p"; then
5990           enable_shared=yes
5991         fi
5992       done
5993       IFS="$lt_save_ifs"
5994       ;;
5995     esac
5996 else
5997   enable_shared=yes
5998 fi
5999
6000
6001 # Check whether --enable-static was given.
6002 if test "${enable_static+set}" = set; then
6003   enableval=$enable_static; p=${PACKAGE-default}
6004     case $enableval in
6005     yes) enable_static=yes ;;
6006     no) enable_static=no ;;
6007     *)
6008      enable_static=no
6009       # Look at the argument we got.  We use all the common list separators.
6010       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6011       for pkg in $enableval; do
6012         IFS="$lt_save_ifs"
6013         if test "X$pkg" = "X$p"; then
6014           enable_static=yes
6015         fi
6016       done
6017       IFS="$lt_save_ifs"
6018       ;;
6019     esac
6020 else
6021   enable_static=yes
6022 fi
6023
6024
6025 # Check whether --enable-fast-install was given.
6026 if test "${enable_fast_install+set}" = set; then
6027   enableval=$enable_fast_install; p=${PACKAGE-default}
6028     case $enableval in
6029     yes) enable_fast_install=yes ;;
6030     no) enable_fast_install=no ;;
6031     *)
6032       enable_fast_install=no
6033       # Look at the argument we got.  We use all the common list separators.
6034       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6035       for pkg in $enableval; do
6036         IFS="$lt_save_ifs"
6037         if test "X$pkg" = "X$p"; then
6038           enable_fast_install=yes
6039         fi
6040       done
6041       IFS="$lt_save_ifs"
6042       ;;
6043     esac
6044 else
6045   enable_fast_install=yes
6046 fi
6047
6048
6049 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
6050 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
6051 if test "${lt_cv_path_SED+set}" = set; then
6052   echo $ECHO_N "(cached) $ECHO_C" >&6
6053 else
6054   # Loop through the user's path and test for sed and gsed.
6055 # Then use that list of sed's as ones to test for truncation.
6056 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6057 for as_dir in $PATH
6058 do
6059   IFS=$as_save_IFS
6060   test -z "$as_dir" && as_dir=.
6061   for lt_ac_prog in sed gsed; do
6062     for ac_exec_ext in '' $ac_executable_extensions; do
6063       if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then
6064         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
6065       fi
6066     done
6067   done
6068 done
6069 IFS=$as_save_IFS
6070 lt_ac_max=0
6071 lt_ac_count=0
6072 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
6073 # along with /bin/sed that truncates output.
6074 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
6075   test ! -f $lt_ac_sed && continue
6076   cat /dev/null > conftest.in
6077   lt_ac_count=0
6078   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
6079   # Check for GNU sed and select it if it is found.
6080   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
6081     lt_cv_path_SED=$lt_ac_sed
6082     break
6083   fi
6084   while true; do
6085     cat conftest.in conftest.in >conftest.tmp
6086     mv conftest.tmp conftest.in
6087     cp conftest.in conftest.nl
6088     echo >>conftest.nl
6089     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
6090     cmp -s conftest.out conftest.nl || break
6091     # 10000 chars as input seems more than enough
6092     test $lt_ac_count -gt 10 && break
6093     lt_ac_count=`expr $lt_ac_count + 1`
6094     if test $lt_ac_count -gt $lt_ac_max; then
6095       lt_ac_max=$lt_ac_count
6096       lt_cv_path_SED=$lt_ac_sed
6097     fi
6098   done
6099 done
6100
6101 fi
6102
6103 SED=$lt_cv_path_SED
6104
6105 { echo "$as_me:$LINENO: result: $SED" >&5
6106 echo "${ECHO_T}$SED" >&6; }
6107
6108 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
6109 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
6110 if test "${ac_cv_path_GREP+set}" = set; then
6111   echo $ECHO_N "(cached) $ECHO_C" >&6
6112 else
6113   # Extract the first word of "grep ggrep" to use in msg output
6114 if test -z "$GREP"; then
6115 set dummy grep ggrep; ac_prog_name=$2
6116 if test "${ac_cv_path_GREP+set}" = set; then
6117   echo $ECHO_N "(cached) $ECHO_C" >&6
6118 else
6119   ac_path_GREP_found=false
6120 # Loop through the user's path and test for each of PROGNAME-LIST
6121 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6122 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6123 do
6124   IFS=$as_save_IFS
6125   test -z "$as_dir" && as_dir=.
6126   for ac_prog in grep ggrep; do
6127   for ac_exec_ext in '' $ac_executable_extensions; do
6128     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
6129     { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
6130     # Check for GNU ac_path_GREP and select it if it is found.
6131   # Check for GNU $ac_path_GREP
6132 case `"$ac_path_GREP" --version 2>&1` in
6133 *GNU*)
6134   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
6135 *)
6136   ac_count=0
6137   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
6138   while :
6139   do
6140     cat "conftest.in" "conftest.in" >"conftest.tmp"
6141     mv "conftest.tmp" "conftest.in"
6142     cp "conftest.in" "conftest.nl"
6143     echo 'GREP' >> "conftest.nl"
6144     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6145     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6146     ac_count=`expr $ac_count + 1`
6147     if test $ac_count -gt ${ac_path_GREP_max-0}; then
6148       # Best one so far, save it but keep looking for a better one
6149       ac_cv_path_GREP="$ac_path_GREP"
6150       ac_path_GREP_max=$ac_count
6151     fi
6152     # 10*(2^10) chars as input seems more than enough
6153     test $ac_count -gt 10 && break
6154   done
6155   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6156 esac
6157
6158
6159     $ac_path_GREP_found && break 3
6160   done
6161 done
6162
6163 done
6164 IFS=$as_save_IFS
6165
6166
6167 fi
6168
6169 GREP="$ac_cv_path_GREP"
6170 if test -z "$GREP"; then
6171   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
6172 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
6173    { (exit 1); exit 1; }; }
6174 fi
6175
6176 else
6177   ac_cv_path_GREP=$GREP
6178 fi
6179
6180
6181 fi
6182 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
6183 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
6184  GREP="$ac_cv_path_GREP"
6185  
6186
6187 { echo "$as_me:$LINENO: checking for egrep" >&5
6188 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
6189 if test "${ac_cv_path_EGREP+set}" = set; then
6190   echo $ECHO_N "(cached) $ECHO_C" >&6
6191 else
6192   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
6193    then ac_cv_path_EGREP="$GREP -E"
6194    else
6195      # Extract the first word of "egrep" to use in msg output
6196 if test -z "$EGREP"; then
6197 set dummy egrep; ac_prog_name=$2
6198 if test "${ac_cv_path_EGREP+set}" = set; then
6199   echo $ECHO_N "(cached) $ECHO_C" >&6
6200 else
6201   ac_path_EGREP_found=false
6202 # Loop through the user's path and test for each of PROGNAME-LIST
6203 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6204 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6205 do
6206   IFS=$as_save_IFS
6207   test -z "$as_dir" && as_dir=.
6208   for ac_prog in egrep; do
6209   for ac_exec_ext in '' $ac_executable_extensions; do
6210     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
6211     { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
6212     # Check for GNU ac_path_EGREP and select it if it is found.
6213   # Check for GNU $ac_path_EGREP
6214 case `"$ac_path_EGREP" --version 2>&1` in
6215 *GNU*)
6216   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6217 *)
6218   ac_count=0
6219   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
6220   while :
6221   do
6222     cat "conftest.in" "conftest.in" >"conftest.tmp"
6223     mv "conftest.tmp" "conftest.in"
6224     cp "conftest.in" "conftest.nl"
6225     echo 'EGREP' >> "conftest.nl"
6226     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6227     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6228     ac_count=`expr $ac_count + 1`
6229     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6230       # Best one so far, save it but keep looking for a better one
6231       ac_cv_path_EGREP="$ac_path_EGREP"
6232       ac_path_EGREP_max=$ac_count
6233     fi
6234     # 10*(2^10) chars as input seems more than enough
6235     test $ac_count -gt 10 && break
6236   done
6237   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6238 esac
6239
6240
6241     $ac_path_EGREP_found && break 3
6242   done
6243 done
6244
6245 done
6246 IFS=$as_save_IFS
6247
6248
6249 fi
6250
6251 EGREP="$ac_cv_path_EGREP"
6252 if test -z "$EGREP"; then
6253   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
6254 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
6255    { (exit 1); exit 1; }; }
6256 fi
6257
6258 else
6259   ac_cv_path_EGREP=$EGREP
6260 fi
6261
6262
6263    fi
6264 fi
6265 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
6266 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
6267  EGREP="$ac_cv_path_EGREP"
6268  
6269
6270
6271 # Check whether --with-gnu-ld was given.
6272 if test "${with_gnu_ld+set}" = set; then
6273   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6274 else
6275   with_gnu_ld=no
6276 fi
6277
6278 ac_prog=ld
6279 if test "$GCC" = yes; then
6280   # Check if gcc -print-prog-name=ld gives a path.
6281   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
6282 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
6283   case $host in
6284   *-*-mingw*)
6285     # gcc leaves a trailing carriage return which upsets mingw
6286     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6287   *)
6288     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6289   esac
6290   case $ac_prog in
6291     # Accept absolute paths.
6292     [\\/]* | ?:[\\/]*)
6293       re_direlt='/[^/][^/]*/\.\./'
6294       # Canonicalize the pathname of ld
6295       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
6296       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
6297         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
6298       done
6299       test -z "$LD" && LD="$ac_prog"
6300       ;;
6301   "")
6302     # If it fails, then pretend we aren't using GCC.
6303     ac_prog=ld
6304     ;;
6305   *)
6306     # If it is relative, then search for the first ld in PATH.
6307     with_gnu_ld=unknown
6308     ;;
6309   esac
6310 elif test "$with_gnu_ld" = yes; then
6311   { echo "$as_me:$LINENO: checking for GNU ld" >&5
6312 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
6313 else
6314   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
6315 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
6316 fi
6317 if test "${lt_cv_path_LD+set}" = set; then
6318   echo $ECHO_N "(cached) $ECHO_C" >&6
6319 else
6320   if test -z "$LD"; then
6321   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6322   for ac_dir in $PATH; do
6323     IFS="$lt_save_ifs"
6324     test -z "$ac_dir" && ac_dir=.
6325     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6326       lt_cv_path_LD="$ac_dir/$ac_prog"
6327       # Check to see if the program is GNU ld.  I'd rather use --version,
6328       # but apparently some variants of GNU ld only accept -v.
6329       # Break only if it was the GNU/non-GNU ld that we prefer.
6330       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6331       *GNU* | *'with BFD'*)
6332         test "$with_gnu_ld" != no && break
6333         ;;
6334       *)
6335         test "$with_gnu_ld" != yes && break
6336         ;;
6337       esac
6338     fi
6339   done
6340   IFS="$lt_save_ifs"
6341 else
6342   lt_cv_path_LD="$LD" # Let the user override the test with a path.
6343 fi
6344 fi
6345
6346 LD="$lt_cv_path_LD"
6347 if test -n "$LD"; then
6348   { echo "$as_me:$LINENO: result: $LD" >&5
6349 echo "${ECHO_T}$LD" >&6; }
6350 else
6351   { echo "$as_me:$LINENO: result: no" >&5
6352 echo "${ECHO_T}no" >&6; }
6353 fi
6354 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
6355 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
6356    { (exit 1); exit 1; }; }
6357 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
6358 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
6359 if test "${lt_cv_prog_gnu_ld+set}" = set; then
6360   echo $ECHO_N "(cached) $ECHO_C" >&6
6361 else
6362   # I'd rather use --version here, but apparently some GNU lds only accept -v.
6363 case `$LD -v 2>&1 </dev/null` in
6364 *GNU* | *'with BFD'*)
6365   lt_cv_prog_gnu_ld=yes
6366   ;;
6367 *)
6368   lt_cv_prog_gnu_ld=no
6369   ;;
6370 esac
6371 fi
6372 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
6373 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
6374 with_gnu_ld=$lt_cv_prog_gnu_ld
6375
6376
6377 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
6378 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
6379 if test "${lt_cv_ld_reload_flag+set}" = set; then
6380   echo $ECHO_N "(cached) $ECHO_C" >&6
6381 else
6382   lt_cv_ld_reload_flag='-r'
6383 fi
6384 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
6385 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
6386 reload_flag=$lt_cv_ld_reload_flag
6387 case $reload_flag in
6388 "" | " "*) ;;
6389 *) reload_flag=" $reload_flag" ;;
6390 esac
6391 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6392 case $host_os in
6393   darwin*)
6394     if test "$GCC" = yes; then
6395       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6396     else
6397       reload_cmds='$LD$reload_flag -o $output$reload_objs'
6398     fi
6399     ;;
6400 esac
6401
6402 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6403 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
6404 if test "${lt_cv_path_NM+set}" = set; then
6405   echo $ECHO_N "(cached) $ECHO_C" >&6
6406 else
6407   if test -n "$NM"; then
6408   # Let the user override the test.
6409   lt_cv_path_NM="$NM"
6410 else
6411   lt_nm_to_check="${ac_tool_prefix}nm"
6412   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6413     lt_nm_to_check="$lt_nm_to_check nm"
6414   fi
6415   for lt_tmp_nm in $lt_nm_to_check; do
6416     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6417     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6418       IFS="$lt_save_ifs"
6419       test -z "$ac_dir" && ac_dir=.
6420       tmp_nm="$ac_dir/$lt_tmp_nm"
6421       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6422         # Check to see if the nm accepts a BSD-compat flag.
6423         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6424         #   nm: unknown option "B" ignored
6425         # Tru64's nm complains that /dev/null is an invalid object file
6426         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6427         */dev/null* | *'Invalid file or object type'*)
6428           lt_cv_path_NM="$tmp_nm -B"
6429           break
6430           ;;
6431         *)
6432           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6433           */dev/null*)
6434             lt_cv_path_NM="$tmp_nm -p"
6435             break
6436             ;;
6437           *)
6438             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6439             continue # so that we can try to find one that supports BSD flags
6440             ;;
6441           esac
6442           ;;
6443         esac
6444       fi
6445     done
6446     IFS="$lt_save_ifs"
6447   done
6448   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6449 fi
6450 fi
6451 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6452 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
6453 NM="$lt_cv_path_NM"
6454
6455 { echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
6456 echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; }
6457 if test "${lt_cv_deplibs_check_method+set}" = set; then
6458   echo $ECHO_N "(cached) $ECHO_C" >&6
6459 else
6460   lt_cv_file_magic_cmd='$MAGIC_CMD'
6461 lt_cv_file_magic_test_file=
6462 lt_cv_deplibs_check_method='unknown'
6463 # Need to set the preceding variable on all platforms that support
6464 # interlibrary dependencies.
6465 # 'none' -- dependencies not supported.
6466 # `unknown' -- same as none, but documents that we really don't know.
6467 # 'pass_all' -- all dependencies passed with no checks.
6468 # 'test_compile' -- check by making test program.
6469 # 'file_magic [[regex]]' -- check by looking for files in library path
6470 # which responds to the $file_magic_cmd with a given extended regex.
6471 # If you have `file' or equivalent on your system and you're not sure
6472 # whether `pass_all' will *always* work, you probably want this one.
6473
6474 case $host_os in
6475 aix4* | aix5*)
6476   lt_cv_deplibs_check_method=pass_all
6477   ;;
6478
6479 beos*)
6480   lt_cv_deplibs_check_method=pass_all
6481   ;;
6482
6483 bsdi[45]*)
6484   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6485   lt_cv_file_magic_cmd='/usr/bin/file -L'
6486   lt_cv_file_magic_test_file=/shlib/libc.so
6487   ;;
6488
6489 cygwin*)
6490   # func_win32_libid is a shell function defined in ltmain.sh
6491   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6492   lt_cv_file_magic_cmd='func_win32_libid'
6493   ;;
6494
6495 mingw* | pw32*)
6496   # Base MSYS/MinGW do not provide the 'file' command needed by
6497   # func_win32_libid shell function, so use a weaker test based on 'objdump',
6498   # unless we find 'file', for example because we are cross-compiling.
6499   if ( file / ) >/dev/null 2>&1; then
6500     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6501     lt_cv_file_magic_cmd='func_win32_libid'
6502   else
6503     lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6504     lt_cv_file_magic_cmd='$OBJDUMP -f'
6505   fi
6506   ;;
6507
6508 darwin* | rhapsody*)
6509   lt_cv_deplibs_check_method=pass_all
6510   ;;
6511
6512 freebsd* | dragonfly*)
6513   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
6514     case $host_cpu in
6515     i*86 )
6516       # Not sure whether the presence of OpenBSD here was a mistake.
6517       # Let's accept both of them until this is cleared up.
6518       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6519       lt_cv_file_magic_cmd=/usr/bin/file
6520       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6521       ;;
6522     esac
6523   else
6524     lt_cv_deplibs_check_method=pass_all
6525   fi
6526   ;;
6527
6528 gnu*)
6529   lt_cv_deplibs_check_method=pass_all
6530   ;;
6531
6532 hpux10.20* | hpux11*)
6533   lt_cv_file_magic_cmd=/usr/bin/file
6534   case $host_cpu in
6535   ia64*)
6536     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6537     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6538     ;;
6539   hppa*64*)
6540     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]'
6541     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6542     ;;
6543   *)
6544     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
6545     lt_cv_file_magic_test_file=/usr/lib/libc.sl
6546     ;;
6547   esac
6548   ;;
6549
6550 interix[3-9]*)
6551   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6552   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6553   ;;
6554
6555 irix5* | irix6* | nonstopux*)
6556   case $LD in
6557   *-32|*"-32 ") libmagic=32-bit;;
6558   *-n32|*"-n32 ") libmagic=N32;;
6559   *-64|*"-64 ") libmagic=64-bit;;
6560   *) libmagic=never-match;;
6561   esac
6562   lt_cv_deplibs_check_method=pass_all
6563   ;;
6564
6565 # This must be Linux ELF.
6566 linux* | k*bsd*-gnu)
6567   lt_cv_deplibs_check_method=pass_all
6568   ;;
6569
6570 netbsd* | netbsdelf*-gnu)
6571   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
6572     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6573   else
6574     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6575   fi
6576   ;;
6577
6578 newos6*)
6579   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6580   lt_cv_file_magic_cmd=/usr/bin/file
6581   lt_cv_file_magic_test_file=/usr/lib/libnls.so
6582   ;;
6583
6584 nto-qnx*)
6585   lt_cv_deplibs_check_method=unknown
6586   ;;
6587
6588 openbsd*)
6589   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6590     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6591   else
6592     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6593   fi
6594   ;;
6595
6596 osf3* | osf4* | osf5*)
6597   lt_cv_deplibs_check_method=pass_all
6598   ;;
6599
6600 rdos*)
6601   lt_cv_deplibs_check_method=pass_all
6602   ;;
6603
6604 solaris*)
6605   lt_cv_deplibs_check_method=pass_all
6606   ;;
6607
6608 sysv4 | sysv4.3*)
6609   case $host_vendor in
6610   motorola)
6611     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]'
6612     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6613     ;;
6614   ncr)
6615     lt_cv_deplibs_check_method=pass_all
6616     ;;
6617   sequent)
6618     lt_cv_file_magic_cmd='/bin/file'
6619     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6620     ;;
6621   sni)
6622     lt_cv_file_magic_cmd='/bin/file'
6623     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6624     lt_cv_file_magic_test_file=/lib/libc.so
6625     ;;
6626   siemens)
6627     lt_cv_deplibs_check_method=pass_all
6628     ;;
6629   pc)
6630     lt_cv_deplibs_check_method=pass_all
6631     ;;
6632   esac
6633   ;;
6634
6635 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6636   lt_cv_deplibs_check_method=pass_all
6637   ;;
6638 esac
6639
6640 fi
6641 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
6642 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
6643 file_magic_cmd=$lt_cv_file_magic_cmd
6644 deplibs_check_method=$lt_cv_deplibs_check_method
6645 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6646
6647
6648
6649
6650 # If no C compiler was specified, use CC.
6651 LTCC=${LTCC-"$CC"}
6652
6653 # If no C compiler flags were specified, use CFLAGS.
6654 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6655
6656 # Allow CC to be a program name with arguments.
6657 compiler=$CC
6658
6659 # Check whether --enable-libtool-lock was given.
6660 if test "${enable_libtool_lock+set}" = set; then
6661   enableval=$enable_libtool_lock; 
6662 fi
6663
6664 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6665
6666 # Some flags need to be propagated to the compiler or linker for good
6667 # libtool support.
6668 case $host in
6669 ia64-*-hpux*)
6670   # Find out which ABI we are using.
6671   echo 'int i;' > conftest.$ac_ext
6672   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6673   (eval $ac_compile) 2>&5
6674   ac_status=$?
6675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6676   (exit $ac_status); }; then
6677     case `/usr/bin/file conftest.$ac_objext` in
6678     *ELF-32*)
6679       HPUX_IA64_MODE="32"
6680       ;;
6681     *ELF-64*)
6682       HPUX_IA64_MODE="64"
6683       ;;
6684     esac
6685   fi
6686   rm -rf conftest*
6687   ;;
6688 *-*-irix6*)
6689   # Find out which ABI we are using.
6690   echo '#line __oline__ "configure"' > conftest.$ac_ext
6691   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6692   (eval $ac_compile) 2>&5
6693   ac_status=$?
6694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6695   (exit $ac_status); }; then
6696    if test "$lt_cv_prog_gnu_ld" = yes; then
6697     case `/usr/bin/file conftest.$ac_objext` in
6698     *32-bit*)
6699       LD="${LD-ld} -melf32bsmip"
6700       ;;
6701     *N32*)
6702       LD="${LD-ld} -melf32bmipn32"
6703       ;;
6704     *64-bit*)
6705       LD="${LD-ld} -melf64bmip"
6706       ;;
6707     esac
6708    else
6709     case `/usr/bin/file conftest.$ac_objext` in
6710     *32-bit*)
6711       LD="${LD-ld} -32"
6712       ;;
6713     *N32*)
6714       LD="${LD-ld} -n32"
6715       ;;
6716     *64-bit*)
6717       LD="${LD-ld} -64"
6718       ;;
6719     esac
6720    fi
6721   fi
6722   rm -rf conftest*
6723   ;;
6724
6725 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6726 s390*-*linux*|sparc*-*linux*)
6727   # Find out which ABI we are using.
6728   echo 'int i;' > conftest.$ac_ext
6729   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6730   (eval $ac_compile) 2>&5
6731   ac_status=$?
6732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6733   (exit $ac_status); }; then
6734     case `/usr/bin/file conftest.o` in
6735     *32-bit*)
6736       case $host in
6737         x86_64-*kfreebsd*-gnu)
6738           LD="${LD-ld} -m elf_i386_fbsd"
6739           ;;
6740         x86_64-*linux*)
6741           LD="${LD-ld} -m elf_i386"
6742           ;;
6743         ppc64-*linux*|powerpc64-*linux*)
6744           LD="${LD-ld} -m elf32ppclinux"
6745           ;;
6746         s390x-*linux*)
6747           LD="${LD-ld} -m elf_s390"
6748           ;;
6749         sparc64-*linux*)
6750           LD="${LD-ld} -m elf32_sparc"
6751           ;;
6752       esac
6753       ;;
6754     *64-bit*)
6755       case $host in
6756         x86_64-*kfreebsd*-gnu)
6757           LD="${LD-ld} -m elf_x86_64_fbsd"
6758           ;;
6759         x86_64-*linux*)
6760           LD="${LD-ld} -m elf_x86_64"
6761           ;;
6762         ppc*-*linux*|powerpc*-*linux*)
6763           LD="${LD-ld} -m elf64ppc"
6764           ;;
6765         s390*-*linux*)
6766           LD="${LD-ld} -m elf64_s390"
6767           ;;
6768         sparc*-*linux*)
6769           LD="${LD-ld} -m elf64_sparc"
6770           ;;
6771       esac
6772       ;;
6773     esac
6774   fi
6775   rm -rf conftest*
6776   ;;
6777
6778 *-*-sco3.2v5*)
6779   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6780   SAVE_CFLAGS="$CFLAGS"
6781   CFLAGS="$CFLAGS -belf"
6782   { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
6783 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
6784 if test "${lt_cv_cc_needs_belf+set}" = set; then
6785   echo $ECHO_N "(cached) $ECHO_C" >&6
6786 else
6787   ac_ext=c
6788 ac_cpp='$CPP $CPPFLAGS'
6789 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6790 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6791 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6792
6793      cat >conftest.$ac_ext <<_ACEOF
6794 /* confdefs.h.  */
6795 _ACEOF
6796 cat confdefs.h >>conftest.$ac_ext
6797 cat >>conftest.$ac_ext <<_ACEOF
6798 /* end confdefs.h.  */
6799
6800 int
6801 main ()
6802 {
6803
6804   ;
6805   return 0;
6806 }
6807 _ACEOF
6808 rm -f conftest.$ac_objext conftest$ac_exeext
6809 if { (ac_try="$ac_link"
6810 case "(($ac_try" in
6811   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6812   *) ac_try_echo=$ac_try;;
6813 esac
6814 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6815   (eval "$ac_link") 2>conftest.er1
6816   ac_status=$?
6817   grep -v '^ *+' conftest.er1 >conftest.err
6818   rm -f conftest.er1
6819   cat conftest.err >&5
6820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6821   (exit $ac_status); } && {
6822          test -z "$ac_c_werror_flag" ||
6823          test ! -s conftest.err
6824        } && test -s conftest$ac_exeext &&
6825        $as_test_x conftest$ac_exeext; then
6826   lt_cv_cc_needs_belf=yes
6827 else
6828   echo "$as_me: failed program was:" >&5
6829 sed 's/^/| /' conftest.$ac_ext >&5
6830
6831         lt_cv_cc_needs_belf=no
6832 fi
6833
6834 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6835       conftest$ac_exeext conftest.$ac_ext
6836      ac_ext=c
6837 ac_cpp='$CPP $CPPFLAGS'
6838 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6839 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6840 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6841
6842 fi
6843 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
6844 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
6845   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6846     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6847     CFLAGS="$SAVE_CFLAGS"
6848   fi
6849   ;;
6850 sparc*-*solaris*)
6851   # Find out which ABI we are using.
6852   echo 'int i;' > conftest.$ac_ext
6853   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6854   (eval $ac_compile) 2>&5
6855   ac_status=$?
6856   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6857   (exit $ac_status); }; then
6858     case `/usr/bin/file conftest.o` in
6859     *64-bit*)
6860       case $lt_cv_prog_gnu_ld in
6861       yes*) LD="${LD-ld} -m elf64_sparc" ;;
6862       *)    LD="${LD-ld} -64" ;;
6863       esac
6864       ;;
6865     esac
6866   fi
6867   rm -rf conftest*
6868   ;;
6869
6870
6871 esac
6872
6873 need_locks="$enable_libtool_lock"
6874
6875
6876
6877 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6878 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
6879 if test "${ac_cv_header_stdc+set}" = set; then
6880   echo $ECHO_N "(cached) $ECHO_C" >&6
6881 else
6882   cat >conftest.$ac_ext <<_ACEOF
6883 /* confdefs.h.  */
6884 _ACEOF
6885 cat confdefs.h >>conftest.$ac_ext
6886 cat >>conftest.$ac_ext <<_ACEOF
6887 /* end confdefs.h.  */
6888 #include <stdlib.h>
6889 #include <stdarg.h>
6890 #include <string.h>
6891 #include <float.h>
6892
6893 int
6894 main ()
6895 {
6896
6897   ;
6898   return 0;
6899 }
6900 _ACEOF
6901 rm -f conftest.$ac_objext
6902 if { (ac_try="$ac_compile"
6903 case "(($ac_try" in
6904   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6905   *) ac_try_echo=$ac_try;;
6906 esac
6907 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6908   (eval "$ac_compile") 2>conftest.er1
6909   ac_status=$?
6910   grep -v '^ *+' conftest.er1 >conftest.err
6911   rm -f conftest.er1
6912   cat conftest.err >&5
6913   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6914   (exit $ac_status); } && {
6915          test -z "$ac_c_werror_flag" ||
6916          test ! -s conftest.err
6917        } && test -s conftest.$ac_objext; then
6918   ac_cv_header_stdc=yes
6919 else
6920   echo "$as_me: failed program was:" >&5
6921 sed 's/^/| /' conftest.$ac_ext >&5
6922
6923         ac_cv_header_stdc=no
6924 fi
6925
6926 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6927
6928 if test $ac_cv_header_stdc = yes; then
6929   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6930   cat >conftest.$ac_ext <<_ACEOF
6931 /* confdefs.h.  */
6932 _ACEOF
6933 cat confdefs.h >>conftest.$ac_ext
6934 cat >>conftest.$ac_ext <<_ACEOF
6935 /* end confdefs.h.  */
6936 #include <string.h>
6937
6938 _ACEOF
6939 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6940   $EGREP "memchr" >/dev/null 2>&1; then
6941   :
6942 else
6943   ac_cv_header_stdc=no
6944 fi
6945 rm -f conftest*
6946
6947 fi
6948
6949 if test $ac_cv_header_stdc = yes; then
6950   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6951   cat >conftest.$ac_ext <<_ACEOF
6952 /* confdefs.h.  */
6953 _ACEOF
6954 cat confdefs.h >>conftest.$ac_ext
6955 cat >>conftest.$ac_ext <<_ACEOF
6956 /* end confdefs.h.  */
6957 #include <stdlib.h>
6958
6959 _ACEOF
6960 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6961   $EGREP "free" >/dev/null 2>&1; then
6962   :
6963 else
6964   ac_cv_header_stdc=no
6965 fi
6966 rm -f conftest*
6967
6968 fi
6969
6970 if test $ac_cv_header_stdc = yes; then
6971   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6972   if test "$cross_compiling" = yes; then
6973   :
6974 else
6975   cat >conftest.$ac_ext <<_ACEOF
6976 /* confdefs.h.  */
6977 _ACEOF
6978 cat confdefs.h >>conftest.$ac_ext
6979 cat >>conftest.$ac_ext <<_ACEOF
6980 /* end confdefs.h.  */
6981 #include <ctype.h>
6982 #include <stdlib.h>
6983 #if ((' ' & 0x0FF) == 0x020)
6984 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6985 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6986 #else
6987 # define ISLOWER(c) \
6988                    (('a' <= (c) && (c) <= 'i') \
6989                      || ('j' <= (c) && (c) <= 'r') \
6990                      || ('s' <= (c) && (c) <= 'z'))
6991 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6992 #endif
6993
6994 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6995 int
6996 main ()
6997 {
6998   int i;
6999   for (i = 0; i < 256; i++)
7000     if (XOR (islower (i), ISLOWER (i))
7001         || toupper (i) != TOUPPER (i))
7002       return 2;
7003   return 0;
7004 }
7005 _ACEOF
7006 rm -f conftest$ac_exeext
7007 if { (ac_try="$ac_link"
7008 case "(($ac_try" in
7009   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7010   *) ac_try_echo=$ac_try;;
7011 esac
7012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7013   (eval "$ac_link") 2>&5
7014   ac_status=$?
7015   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7016   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7017   { (case "(($ac_try" in
7018   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7019   *) ac_try_echo=$ac_try;;
7020 esac
7021 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7022   (eval "$ac_try") 2>&5
7023   ac_status=$?
7024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7025   (exit $ac_status); }; }; then
7026   :
7027 else
7028   echo "$as_me: program exited with status $ac_status" >&5
7029 echo "$as_me: failed program was:" >&5
7030 sed 's/^/| /' conftest.$ac_ext >&5
7031
7032 ( exit $ac_status )
7033 ac_cv_header_stdc=no
7034 fi
7035 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7036 fi
7037
7038
7039 fi
7040 fi
7041 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7042 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
7043 if test $ac_cv_header_stdc = yes; then
7044   
7045 cat >>confdefs.h <<\_ACEOF
7046 @%:@define STDC_HEADERS 1
7047 _ACEOF
7048
7049 fi
7050
7051 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7052
7053
7054
7055
7056
7057
7058
7059
7060
7061 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7062                   inttypes.h stdint.h unistd.h
7063 do
7064 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7065 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7066 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7067 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7068   echo $ECHO_N "(cached) $ECHO_C" >&6
7069 else
7070   cat >conftest.$ac_ext <<_ACEOF
7071 /* confdefs.h.  */
7072 _ACEOF
7073 cat confdefs.h >>conftest.$ac_ext
7074 cat >>conftest.$ac_ext <<_ACEOF
7075 /* end confdefs.h.  */
7076 $ac_includes_default
7077
7078 @%:@include <$ac_header>
7079 _ACEOF
7080 rm -f conftest.$ac_objext
7081 if { (ac_try="$ac_compile"
7082 case "(($ac_try" in
7083   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7084   *) ac_try_echo=$ac_try;;
7085 esac
7086 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7087   (eval "$ac_compile") 2>conftest.er1
7088   ac_status=$?
7089   grep -v '^ *+' conftest.er1 >conftest.err
7090   rm -f conftest.er1
7091   cat conftest.err >&5
7092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7093   (exit $ac_status); } && {
7094          test -z "$ac_c_werror_flag" ||
7095          test ! -s conftest.err
7096        } && test -s conftest.$ac_objext; then
7097   eval "$as_ac_Header=yes"
7098 else
7099   echo "$as_me: failed program was:" >&5
7100 sed 's/^/| /' conftest.$ac_ext >&5
7101
7102         eval "$as_ac_Header=no"
7103 fi
7104
7105 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7106 fi
7107 ac_res=`eval echo '${'$as_ac_Header'}'`
7108                { echo "$as_me:$LINENO: result: $ac_res" >&5
7109 echo "${ECHO_T}$ac_res" >&6; }
7110 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7111   cat >>confdefs.h <<_ACEOF
7112 @%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7113 _ACEOF
7114  
7115 fi
7116
7117 done
7118
7119
7120
7121 for ac_header in dlfcn.h
7122 do
7123 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7124 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7125   { echo "$as_me:$LINENO: checking for $ac_header" >&5
7126 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7127 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7128   echo $ECHO_N "(cached) $ECHO_C" >&6
7129 fi
7130 ac_res=`eval echo '${'$as_ac_Header'}'`
7131                { echo "$as_me:$LINENO: result: $ac_res" >&5
7132 echo "${ECHO_T}$ac_res" >&6; }
7133 else
7134   # Is the header compilable?
7135 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
7136 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
7137 cat >conftest.$ac_ext <<_ACEOF
7138 /* confdefs.h.  */
7139 _ACEOF
7140 cat confdefs.h >>conftest.$ac_ext
7141 cat >>conftest.$ac_ext <<_ACEOF
7142 /* end confdefs.h.  */
7143 $ac_includes_default
7144 @%:@include <$ac_header>
7145 _ACEOF
7146 rm -f conftest.$ac_objext
7147 if { (ac_try="$ac_compile"
7148 case "(($ac_try" in
7149   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7150   *) ac_try_echo=$ac_try;;
7151 esac
7152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7153   (eval "$ac_compile") 2>conftest.er1
7154   ac_status=$?
7155   grep -v '^ *+' conftest.er1 >conftest.err
7156   rm -f conftest.er1
7157   cat conftest.err >&5
7158   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7159   (exit $ac_status); } && {
7160          test -z "$ac_c_werror_flag" ||
7161          test ! -s conftest.err
7162        } && test -s conftest.$ac_objext; then
7163   ac_header_compiler=yes
7164 else
7165   echo "$as_me: failed program was:" >&5
7166 sed 's/^/| /' conftest.$ac_ext >&5
7167
7168         ac_header_compiler=no
7169 fi
7170
7171 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7172 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7173 echo "${ECHO_T}$ac_header_compiler" >&6; }
7174
7175 # Is the header present?
7176 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
7177 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
7178 cat >conftest.$ac_ext <<_ACEOF
7179 /* confdefs.h.  */
7180 _ACEOF
7181 cat confdefs.h >>conftest.$ac_ext
7182 cat >>conftest.$ac_ext <<_ACEOF
7183 /* end confdefs.h.  */
7184 @%:@include <$ac_header>
7185 _ACEOF
7186 if { (ac_try="$ac_cpp conftest.$ac_ext"
7187 case "(($ac_try" in
7188   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7189   *) ac_try_echo=$ac_try;;
7190 esac
7191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7192   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7193   ac_status=$?
7194   grep -v '^ *+' conftest.er1 >conftest.err
7195   rm -f conftest.er1
7196   cat conftest.err >&5
7197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7198   (exit $ac_status); } >/dev/null && {
7199          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7200          test ! -s conftest.err
7201        }; then
7202   ac_header_preproc=yes
7203 else
7204   echo "$as_me: failed program was:" >&5
7205 sed 's/^/| /' conftest.$ac_ext >&5
7206
7207   ac_header_preproc=no
7208 fi
7209
7210 rm -f conftest.err conftest.$ac_ext
7211 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7212 echo "${ECHO_T}$ac_header_preproc" >&6; }
7213
7214 # So?  What about this header?
7215 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7216   yes:no: )
7217     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7218 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7219     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7220 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7221     ac_header_preproc=yes
7222     ;;
7223   no:yes:* )
7224     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7225 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7226     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
7227 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
7228     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7229 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7230     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
7231 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
7232     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7233 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7234     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7235 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7236     ( cat <<\_ASBOX
7237 @%:@@%:@ ------------------------------- @%:@@%:@
7238 @%:@@%:@ Report this to nfs@lists.sf.net @%:@@%:@
7239 @%:@@%:@ ------------------------------- @%:@@%:@
7240 _ASBOX
7241      ) | sed "s/^/$as_me: WARNING:     /" >&2
7242     ;;
7243 esac
7244 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7245 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7246 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7247   echo $ECHO_N "(cached) $ECHO_C" >&6
7248 else
7249   eval "$as_ac_Header=\$ac_header_preproc"
7250 fi
7251 ac_res=`eval echo '${'$as_ac_Header'}'`
7252                { echo "$as_me:$LINENO: result: $ac_res" >&5
7253 echo "${ECHO_T}$ac_res" >&6; }
7254
7255 fi
7256 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7257   cat >>confdefs.h <<_ACEOF
7258 @%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7259 _ACEOF
7260  
7261 fi
7262
7263 done
7264
7265
7266
7267 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
7268     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
7269     (test "X$CXX" != "Xg++"))) ; then
7270   ac_ext=cpp
7271 ac_cpp='$CXXCPP $CPPFLAGS'
7272 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7273 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7274 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7275 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
7276 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
7277 if test -z "$CXXCPP"; then
7278   if test "${ac_cv_prog_CXXCPP+set}" = set; then
7279   echo $ECHO_N "(cached) $ECHO_C" >&6
7280 else
7281       # Double quotes because CXXCPP needs to be expanded
7282     for CXXCPP in "$CXX -E" "/lib/cpp"
7283     do
7284       ac_preproc_ok=false
7285 for ac_cxx_preproc_warn_flag in '' yes
7286 do
7287   # Use a header file that comes with gcc, so configuring glibc
7288   # with a fresh cross-compiler works.
7289   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7290   # <limits.h> exists even on freestanding compilers.
7291   # On the NeXT, cc -E runs the code through the compiler's parser,
7292   # not just through cpp. "Syntax error" is here to catch this case.
7293   cat >conftest.$ac_ext <<_ACEOF
7294 /* confdefs.h.  */
7295 _ACEOF
7296 cat confdefs.h >>conftest.$ac_ext
7297 cat >>conftest.$ac_ext <<_ACEOF
7298 /* end confdefs.h.  */
7299 @%:@ifdef __STDC__
7300 @%:@ include <limits.h>
7301 @%:@else
7302 @%:@ include <assert.h>
7303 @%:@endif
7304                      Syntax error
7305 _ACEOF
7306 if { (ac_try="$ac_cpp conftest.$ac_ext"
7307 case "(($ac_try" in
7308   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7309   *) ac_try_echo=$ac_try;;
7310 esac
7311 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7312   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7313   ac_status=$?
7314   grep -v '^ *+' conftest.er1 >conftest.err
7315   rm -f conftest.er1
7316   cat conftest.err >&5
7317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7318   (exit $ac_status); } >/dev/null && {
7319          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
7320          test ! -s conftest.err
7321        }; then
7322   :
7323 else
7324   echo "$as_me: failed program was:" >&5
7325 sed 's/^/| /' conftest.$ac_ext >&5
7326
7327   # Broken: fails on valid input.
7328 continue
7329 fi
7330
7331 rm -f conftest.err conftest.$ac_ext
7332
7333   # OK, works on sane cases.  Now check whether nonexistent headers
7334   # can be detected and how.
7335   cat >conftest.$ac_ext <<_ACEOF
7336 /* confdefs.h.  */
7337 _ACEOF
7338 cat confdefs.h >>conftest.$ac_ext
7339 cat >>conftest.$ac_ext <<_ACEOF
7340 /* end confdefs.h.  */
7341 @%:@include <ac_nonexistent.h>
7342 _ACEOF
7343 if { (ac_try="$ac_cpp conftest.$ac_ext"
7344 case "(($ac_try" in
7345   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7346   *) ac_try_echo=$ac_try;;
7347 esac
7348 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7349   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7350   ac_status=$?
7351   grep -v '^ *+' conftest.er1 >conftest.err
7352   rm -f conftest.er1
7353   cat conftest.err >&5
7354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7355   (exit $ac_status); } >/dev/null && {
7356          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
7357          test ! -s conftest.err
7358        }; then
7359   # Broken: success on invalid input.
7360 continue
7361 else
7362   echo "$as_me: failed program was:" >&5
7363 sed 's/^/| /' conftest.$ac_ext >&5
7364
7365   # Passes both tests.
7366 ac_preproc_ok=:
7367 break
7368 fi
7369
7370 rm -f conftest.err conftest.$ac_ext
7371
7372 done
7373 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7374 rm -f conftest.err conftest.$ac_ext
7375 if $ac_preproc_ok; then
7376   break
7377 fi
7378
7379     done
7380     ac_cv_prog_CXXCPP=$CXXCPP
7381   
7382 fi
7383   CXXCPP=$ac_cv_prog_CXXCPP
7384 else
7385   ac_cv_prog_CXXCPP=$CXXCPP
7386 fi
7387 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
7388 echo "${ECHO_T}$CXXCPP" >&6; }
7389 ac_preproc_ok=false
7390 for ac_cxx_preproc_warn_flag in '' yes
7391 do
7392   # Use a header file that comes with gcc, so configuring glibc
7393   # with a fresh cross-compiler works.
7394   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7395   # <limits.h> exists even on freestanding compilers.
7396   # On the NeXT, cc -E runs the code through the compiler's parser,
7397   # not just through cpp. "Syntax error" is here to catch this case.
7398   cat >conftest.$ac_ext <<_ACEOF
7399 /* confdefs.h.  */
7400 _ACEOF
7401 cat confdefs.h >>conftest.$ac_ext
7402 cat >>conftest.$ac_ext <<_ACEOF
7403 /* end confdefs.h.  */
7404 @%:@ifdef __STDC__
7405 @%:@ include <limits.h>
7406 @%:@else
7407 @%:@ include <assert.h>
7408 @%:@endif
7409                      Syntax error
7410 _ACEOF
7411 if { (ac_try="$ac_cpp conftest.$ac_ext"
7412 case "(($ac_try" in
7413   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7414   *) ac_try_echo=$ac_try;;
7415 esac
7416 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7417   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7418   ac_status=$?
7419   grep -v '^ *+' conftest.er1 >conftest.err
7420   rm -f conftest.er1
7421   cat conftest.err >&5
7422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7423   (exit $ac_status); } >/dev/null && {
7424          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
7425          test ! -s conftest.err
7426        }; then
7427   :
7428 else
7429   echo "$as_me: failed program was:" >&5
7430 sed 's/^/| /' conftest.$ac_ext >&5
7431
7432   # Broken: fails on valid input.
7433 continue
7434 fi
7435
7436 rm -f conftest.err conftest.$ac_ext
7437
7438   # OK, works on sane cases.  Now check whether nonexistent headers
7439   # can be detected and how.
7440   cat >conftest.$ac_ext <<_ACEOF
7441 /* confdefs.h.  */
7442 _ACEOF
7443 cat confdefs.h >>conftest.$ac_ext
7444 cat >>conftest.$ac_ext <<_ACEOF
7445 /* end confdefs.h.  */
7446 @%:@include <ac_nonexistent.h>
7447 _ACEOF
7448 if { (ac_try="$ac_cpp conftest.$ac_ext"
7449 case "(($ac_try" in
7450   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7451   *) ac_try_echo=$ac_try;;
7452 esac
7453 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7454   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7455   ac_status=$?
7456   grep -v '^ *+' conftest.er1 >conftest.err
7457   rm -f conftest.er1
7458   cat conftest.err >&5
7459   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7460   (exit $ac_status); } >/dev/null && {
7461          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
7462          test ! -s conftest.err
7463        }; then
7464   # Broken: success on invalid input.
7465 continue
7466 else
7467   echo "$as_me: failed program was:" >&5
7468 sed 's/^/| /' conftest.$ac_ext >&5
7469
7470   # Passes both tests.
7471 ac_preproc_ok=:
7472 break
7473 fi
7474
7475 rm -f conftest.err conftest.$ac_ext
7476
7477 done
7478 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7479 rm -f conftest.err conftest.$ac_ext
7480 if $ac_preproc_ok; then
7481   :
7482 else
7483   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
7484 See \`config.log' for more details." >&5
7485 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
7486 See \`config.log' for more details." >&2;}
7487    { (exit 1); exit 1; }; }
7488 fi
7489
7490 ac_ext=cpp
7491 ac_cpp='$CXXCPP $CPPFLAGS'
7492 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7493 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7494 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7495
7496 fi
7497
7498
7499 ac_ext=f
7500 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
7501 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7502 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
7503 if test -n "$ac_tool_prefix"; then
7504   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
7505   do
7506     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7507 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7508 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7509 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7510 if test "${ac_cv_prog_F77+set}" = set; then
7511   echo $ECHO_N "(cached) $ECHO_C" >&6
7512 else
7513   if test -n "$F77"; then
7514   ac_cv_prog_F77="$F77" # Let the user override the test.
7515 else
7516 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7517 for as_dir in $PATH
7518 do
7519   IFS=$as_save_IFS
7520   test -z "$as_dir" && as_dir=.
7521   for ac_exec_ext in '' $ac_executable_extensions; do
7522   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7523     ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
7524     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7525     break 2
7526   fi
7527 done
7528 done
7529 IFS=$as_save_IFS
7530
7531 fi
7532 fi
7533 F77=$ac_cv_prog_F77
7534 if test -n "$F77"; then
7535   { echo "$as_me:$LINENO: result: $F77" >&5
7536 echo "${ECHO_T}$F77" >&6; }
7537 else
7538   { echo "$as_me:$LINENO: result: no" >&5
7539 echo "${ECHO_T}no" >&6; }
7540 fi
7541
7542
7543     test -n "$F77" && break
7544   done
7545 fi
7546 if test -z "$F77"; then
7547   ac_ct_F77=$F77
7548   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
7549 do
7550   # Extract the first word of "$ac_prog", so it can be a program name with args.
7551 set dummy $ac_prog; ac_word=$2
7552 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7553 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7554 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
7555   echo $ECHO_N "(cached) $ECHO_C" >&6
7556 else
7557   if test -n "$ac_ct_F77"; then
7558   ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
7559 else
7560 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7561 for as_dir in $PATH
7562 do
7563   IFS=$as_save_IFS
7564   test -z "$as_dir" && as_dir=.
7565   for ac_exec_ext in '' $ac_executable_extensions; do
7566   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7567     ac_cv_prog_ac_ct_F77="$ac_prog"
7568     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7569     break 2
7570   fi
7571 done
7572 done
7573 IFS=$as_save_IFS
7574
7575 fi
7576 fi
7577 ac_ct_F77=$ac_cv_prog_ac_ct_F77
7578 if test -n "$ac_ct_F77"; then
7579   { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
7580 echo "${ECHO_T}$ac_ct_F77" >&6; }
7581 else
7582   { echo "$as_me:$LINENO: result: no" >&5
7583 echo "${ECHO_T}no" >&6; }
7584 fi
7585
7586
7587   test -n "$ac_ct_F77" && break
7588 done
7589
7590   if test "x$ac_ct_F77" = x; then
7591     F77=""
7592   else
7593     case $cross_compiling:$ac_tool_warned in
7594 yes:)
7595 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7596 whose name does not start with the host triplet.  If you think this
7597 configuration is useful to you, please write to autoconf@gnu.org." >&5
7598 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7599 whose name does not start with the host triplet.  If you think this
7600 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7601 ac_tool_warned=yes ;;
7602 esac
7603     F77=$ac_ct_F77
7604   fi
7605 fi
7606
7607
7608 # Provide some information about the compiler.
7609 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
7610 ac_compiler=`set X $ac_compile; echo $2`
7611 { (ac_try="$ac_compiler --version >&5"
7612 case "(($ac_try" in
7613   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7614   *) ac_try_echo=$ac_try;;
7615 esac
7616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7617   (eval "$ac_compiler --version >&5") 2>&5
7618   ac_status=$?
7619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7620   (exit $ac_status); }
7621 { (ac_try="$ac_compiler -v >&5"
7622 case "(($ac_try" in
7623   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7624   *) ac_try_echo=$ac_try;;
7625 esac
7626 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7627   (eval "$ac_compiler -v >&5") 2>&5
7628   ac_status=$?
7629   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7630   (exit $ac_status); }
7631 { (ac_try="$ac_compiler -V >&5"
7632 case "(($ac_try" in
7633   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7634   *) ac_try_echo=$ac_try;;
7635 esac
7636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7637   (eval "$ac_compiler -V >&5") 2>&5
7638   ac_status=$?
7639   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7640   (exit $ac_status); }
7641 rm -f a.out
7642
7643 # If we don't use `.F' as extension, the preprocessor is not run on the
7644 # input file.  (Note that this only needs to work for GNU compilers.)
7645 ac_save_ext=$ac_ext
7646 ac_ext=F
7647 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
7648 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
7649 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
7650   echo $ECHO_N "(cached) $ECHO_C" >&6
7651 else
7652   cat >conftest.$ac_ext <<_ACEOF
7653       program main
7654 #ifndef __GNUC__
7655        choke me
7656 #endif
7657
7658       end
7659 _ACEOF
7660 rm -f conftest.$ac_objext
7661 if { (ac_try="$ac_compile"
7662 case "(($ac_try" in
7663   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7664   *) ac_try_echo=$ac_try;;
7665 esac
7666 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7667   (eval "$ac_compile") 2>conftest.er1
7668   ac_status=$?
7669   grep -v '^ *+' conftest.er1 >conftest.err
7670   rm -f conftest.er1
7671   cat conftest.err >&5
7672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7673   (exit $ac_status); } && {
7674          test -z "$ac_f77_werror_flag" ||
7675          test ! -s conftest.err
7676        } && test -s conftest.$ac_objext; then
7677   ac_compiler_gnu=yes
7678 else
7679   echo "$as_me: failed program was:" >&5
7680 sed 's/^/| /' conftest.$ac_ext >&5
7681
7682         ac_compiler_gnu=no
7683 fi
7684
7685 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7686 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
7687
7688 fi
7689 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
7690 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
7691 ac_ext=$ac_save_ext
7692 ac_test_FFLAGS=${FFLAGS+set}
7693 ac_save_FFLAGS=$FFLAGS
7694 FFLAGS=
7695 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
7696 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
7697 if test "${ac_cv_prog_f77_g+set}" = set; then
7698   echo $ECHO_N "(cached) $ECHO_C" >&6
7699 else
7700   FFLAGS=-g
7701 cat >conftest.$ac_ext <<_ACEOF
7702       program main
7703
7704       end
7705 _ACEOF
7706 rm -f conftest.$ac_objext
7707 if { (ac_try="$ac_compile"
7708 case "(($ac_try" in
7709   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7710   *) ac_try_echo=$ac_try;;
7711 esac
7712 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7713   (eval "$ac_compile") 2>conftest.er1
7714   ac_status=$?
7715   grep -v '^ *+' conftest.er1 >conftest.err
7716   rm -f conftest.er1
7717   cat conftest.err >&5
7718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7719   (exit $ac_status); } && {
7720          test -z "$ac_f77_werror_flag" ||
7721          test ! -s conftest.err
7722        } && test -s conftest.$ac_objext; then
7723   ac_cv_prog_f77_g=yes
7724 else
7725   echo "$as_me: failed program was:" >&5
7726 sed 's/^/| /' conftest.$ac_ext >&5
7727
7728         ac_cv_prog_f77_g=no
7729 fi
7730
7731 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7732
7733 fi
7734 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
7735 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
7736 if test "$ac_test_FFLAGS" = set; then
7737   FFLAGS=$ac_save_FFLAGS
7738 elif test $ac_cv_prog_f77_g = yes; then
7739   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
7740     FFLAGS="-g -O2"
7741   else
7742     FFLAGS="-g"
7743   fi
7744 else
7745   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
7746     FFLAGS="-O2"
7747   else
7748     FFLAGS=
7749   fi
7750 fi
7751
7752 G77=`test $ac_compiler_gnu = yes && echo yes`
7753 ac_ext=c
7754 ac_cpp='$CPP $CPPFLAGS'
7755 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7756 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7757 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7758
7759
7760
7761 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
7762
7763 # find the maximum length of command line arguments
7764 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
7765 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
7766 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
7767   echo $ECHO_N "(cached) $ECHO_C" >&6
7768 else
7769     i=0
7770   teststring="ABCD"
7771
7772   case $build_os in
7773   msdosdjgpp*)
7774     # On DJGPP, this test can blow up pretty badly due to problems in libc
7775     # (any single argument exceeding 2000 bytes causes a buffer overrun
7776     # during glob expansion).  Even if it were fixed, the result of this
7777     # check would be larger than it should be.
7778     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
7779     ;;
7780
7781   gnu*)
7782     # Under GNU Hurd, this test is not required because there is
7783     # no limit to the length of command line arguments.
7784     # Libtool will interpret -1 as no limit whatsoever
7785     lt_cv_sys_max_cmd_len=-1;
7786     ;;
7787
7788   cygwin* | mingw*)
7789     # On Win9x/ME, this test blows up -- it succeeds, but takes
7790     # about 5 minutes as the teststring grows exponentially.
7791     # Worse, since 9x/ME are not pre-emptively multitasking,
7792     # you end up with a "frozen" computer, even though with patience
7793     # the test eventually succeeds (with a max line length of 256k).
7794     # Instead, let's just punt: use the minimum linelength reported by
7795     # all of the supported platforms: 8192 (on NT/2K/XP).
7796     lt_cv_sys_max_cmd_len=8192;
7797     ;;
7798
7799   amigaos*)
7800     # On AmigaOS with pdksh, this test takes hours, literally.
7801     # So we just punt and use a minimum line length of 8192.
7802     lt_cv_sys_max_cmd_len=8192;
7803     ;;
7804
7805   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
7806     # This has been around since 386BSD, at least.  Likely further.
7807     if test -x /sbin/sysctl; then
7808       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7809     elif test -x /usr/sbin/sysctl; then
7810       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7811     else
7812       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
7813     fi
7814     # And add a safety zone
7815     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7816     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7817     ;;
7818
7819   interix*)
7820     # We know the value 262144 and hardcode it with a safety zone (like BSD)
7821     lt_cv_sys_max_cmd_len=196608
7822     ;;
7823
7824   osf*)
7825     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7826     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7827     # nice to cause kernel panics so lets avoid the loop below.
7828     # First set a reasonable default.
7829     lt_cv_sys_max_cmd_len=16384
7830     #
7831     if test -x /sbin/sysconfig; then
7832       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7833         *1*) lt_cv_sys_max_cmd_len=-1 ;;
7834       esac
7835     fi
7836     ;;
7837   sco3.2v5*)
7838     lt_cv_sys_max_cmd_len=102400
7839     ;;
7840   sysv5* | sco5v6* | sysv4.2uw2*)
7841     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
7842     if test -n "$kargmax"; then
7843       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
7844     else
7845       lt_cv_sys_max_cmd_len=32768
7846     fi
7847     ;;
7848   *)
7849     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
7850     if test -n "$lt_cv_sys_max_cmd_len"; then
7851       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7852       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7853     else
7854       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7855       while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
7856                = "XX$teststring") >/dev/null 2>&1 &&
7857               new_result=`expr "X$teststring" : ".*" 2>&1` &&
7858               lt_cv_sys_max_cmd_len=$new_result &&
7859               test $i != 17 # 1/2 MB should be enough
7860       do
7861         i=`expr $i + 1`
7862         teststring=$teststring$teststring
7863       done
7864       teststring=
7865       # Add a significant safety factor because C++ compilers can tack on massive
7866       # amounts of additional arguments before passing them to the linker.
7867       # It appears as though 1/2 is a usable value.
7868       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7869     fi
7870     ;;
7871   esac
7872
7873 fi
7874
7875 if test -n $lt_cv_sys_max_cmd_len ; then
7876   { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
7877 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
7878 else
7879   { echo "$as_me:$LINENO: result: none" >&5
7880 echo "${ECHO_T}none" >&6; }
7881 fi
7882
7883
7884
7885
7886
7887 # Check for command to grab the raw symbol name followed by C symbol from nm.
7888 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
7889 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
7890 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
7891   echo $ECHO_N "(cached) $ECHO_C" >&6
7892 else
7893   
7894 # These are sane defaults that work on at least a few old systems.
7895 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
7896
7897 # Character class describing NM global symbol codes.
7898 symcode='[BCDEGRST]'
7899
7900 # Regexp to match symbols that can be accessed directly from C.
7901 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7902
7903 # Transform an extracted symbol line into a proper C declaration
7904 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
7905
7906 # Transform an extracted symbol line into symbol name and symbol address
7907 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'"
7908
7909 # Define system-specific variables.
7910 case $host_os in
7911 aix*)
7912   symcode='[BCDT]'
7913   ;;
7914 cygwin* | mingw* | pw32*)
7915   symcode='[ABCDGISTW]'
7916   ;;
7917 hpux*) # Its linker distinguishes data from code symbols
7918   if test "$host_cpu" = ia64; then
7919     symcode='[ABCDEGRST]'
7920   fi
7921   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7922   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'"
7923   ;;
7924 linux* | k*bsd*-gnu)
7925   if test "$host_cpu" = ia64; then
7926     symcode='[ABCDGIRSTW]'
7927     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7928     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'"
7929   fi
7930   ;;
7931 irix* | nonstopux*)
7932   symcode='[BCDEGRST]'
7933   ;;
7934 osf*)
7935   symcode='[BCDEGQRST]'
7936   ;;
7937 solaris*)
7938   symcode='[BDRT]'
7939   ;;
7940 sco3.2v5*)
7941   symcode='[DT]'
7942   ;;
7943 sysv4.2uw2*)
7944   symcode='[DT]'
7945   ;;
7946 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7947   symcode='[ABDT]'
7948   ;;
7949 sysv4)
7950   symcode='[DFNSTU]'
7951   ;;
7952 esac
7953
7954 # Handle CRLF in mingw tool chain
7955 opt_cr=
7956 case $build_os in
7957 mingw*)
7958   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7959   ;;
7960 esac
7961
7962 # If we're using GNU nm, then use its standard symbol codes.
7963 case `$NM -V 2>&1` in
7964 *GNU* | *'with BFD'*)
7965   symcode='[ABCDGIRSTW]' ;;
7966 esac
7967
7968 # Try without a prefix undercore, then with it.
7969 for ac_symprfx in "" "_"; do
7970
7971   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7972   symxfrm="\\1 $ac_symprfx\\2 \\2"
7973
7974   # Write the raw and C identifiers.
7975   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7976
7977   # Check to see that the pipe works correctly.
7978   pipe_works=no
7979
7980   rm -f conftest*
7981   cat > conftest.$ac_ext <<EOF
7982 #ifdef __cplusplus
7983 extern "C" {
7984 #endif
7985 char nm_test_var;
7986 void nm_test_func(){}
7987 #ifdef __cplusplus
7988 }
7989 #endif
7990 int main(){nm_test_var='a';nm_test_func();return(0);}
7991 EOF
7992
7993   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7994   (eval $ac_compile) 2>&5
7995   ac_status=$?
7996   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7997   (exit $ac_status); }; then
7998     # Now try to grab the symbols.
7999     nlist=conftest.nm
8000     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
8001   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
8002   ac_status=$?
8003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8004   (exit $ac_status); } && test -s "$nlist"; then
8005       # Try sorting and uniquifying the output.
8006       if sort "$nlist" | uniq > "$nlist"T; then
8007         mv -f "$nlist"T "$nlist"
8008       else
8009         rm -f "$nlist"T
8010       fi
8011
8012       # Make sure that we snagged all the symbols we need.
8013       if grep ' nm_test_var$' "$nlist" >/dev/null; then
8014         if grep ' nm_test_func$' "$nlist" >/dev/null; then
8015           cat <<EOF > conftest.$ac_ext
8016 #ifdef __cplusplus
8017 extern "C" {
8018 #endif
8019
8020 EOF
8021           # Now generate the symbol file.
8022           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
8023
8024           cat <<EOF >> conftest.$ac_ext
8025 #if defined (__STDC__) && __STDC__
8026 # define lt_ptr_t void *
8027 #else
8028 # define lt_ptr_t char *
8029 # define const
8030 #endif
8031
8032 /* The mapping between symbol names and symbols. */
8033 const struct {
8034   const char *name;
8035   lt_ptr_t address;
8036 }
8037 lt_preloaded_symbols[] =
8038 {
8039 EOF
8040           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
8041           cat <<\EOF >> conftest.$ac_ext
8042   {0, (lt_ptr_t) 0}
8043 };
8044
8045 #ifdef __cplusplus
8046 }
8047 #endif
8048 EOF
8049           # Now try linking the two files.
8050           mv conftest.$ac_objext conftstm.$ac_objext
8051           lt_save_LIBS="$LIBS"
8052           lt_save_CFLAGS="$CFLAGS"
8053           LIBS="conftstm.$ac_objext"
8054           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
8055           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8056   (eval $ac_link) 2>&5
8057   ac_status=$?
8058   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8059   (exit $ac_status); } && test -s conftest${ac_exeext}; then
8060             pipe_works=yes
8061           fi
8062           LIBS="$lt_save_LIBS"
8063           CFLAGS="$lt_save_CFLAGS"
8064         else
8065           echo "cannot find nm_test_func in $nlist" >&5
8066         fi
8067       else
8068         echo "cannot find nm_test_var in $nlist" >&5
8069       fi
8070     else
8071       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
8072     fi
8073   else
8074     echo "$progname: failed program was:" >&5
8075     cat conftest.$ac_ext >&5
8076   fi
8077   rm -f conftest* conftst*
8078
8079   # Do not use the global_symbol_pipe unless it works.
8080   if test "$pipe_works" = yes; then
8081     break
8082   else
8083     lt_cv_sys_global_symbol_pipe=
8084   fi
8085 done
8086
8087 fi
8088
8089 if test -z "$lt_cv_sys_global_symbol_pipe"; then
8090   lt_cv_sys_global_symbol_to_cdecl=
8091 fi
8092 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
8093   { echo "$as_me:$LINENO: result: failed" >&5
8094 echo "${ECHO_T}failed" >&6; }
8095 else
8096   { echo "$as_me:$LINENO: result: ok" >&5
8097 echo "${ECHO_T}ok" >&6; }
8098 fi
8099
8100 { echo "$as_me:$LINENO: checking for objdir" >&5
8101 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
8102 if test "${lt_cv_objdir+set}" = set; then
8103   echo $ECHO_N "(cached) $ECHO_C" >&6
8104 else
8105   rm -f .libs 2>/dev/null
8106 mkdir .libs 2>/dev/null
8107 if test -d .libs; then
8108   lt_cv_objdir=.libs
8109 else
8110   # MS-DOS does not allow filenames that begin with a dot.
8111   lt_cv_objdir=_libs
8112 fi
8113 rmdir .libs 2>/dev/null
8114 fi
8115 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
8116 echo "${ECHO_T}$lt_cv_objdir" >&6; }
8117 objdir=$lt_cv_objdir
8118
8119
8120
8121
8122
8123 case $host_os in
8124 aix3*)
8125   # AIX sometimes has problems with the GCC collect2 program.  For some
8126   # reason, if we set the COLLECT_NAMES environment variable, the problems
8127   # vanish in a puff of smoke.
8128   if test "X${COLLECT_NAMES+set}" != Xset; then
8129     COLLECT_NAMES=
8130     export COLLECT_NAMES
8131   fi
8132   ;;
8133 esac
8134
8135 # Sed substitution that helps us do robust quoting.  It backslashifies
8136 # metacharacters that are still active within double-quoted strings.
8137 Xsed='sed -e 1s/^X//'
8138 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
8139
8140 # Same as above, but do not quote variable references.
8141 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
8142
8143 # Sed substitution to delay expansion of an escaped shell variable in a
8144 # double_quote_subst'ed string.
8145 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
8146
8147 # Sed substitution to avoid accidental globbing in evaled expressions
8148 no_glob_subst='s/\*/\\\*/g'
8149
8150 # Constants:
8151 rm="rm -f"
8152
8153 # Global variables:
8154 default_ofile=libtool
8155 can_build_shared=yes
8156
8157 # All known linkers require a `.a' archive for static linking (except MSVC,
8158 # which needs '.lib').
8159 libext=a
8160 ltmain="$ac_aux_dir/ltmain.sh"
8161 ofile="$default_ofile"
8162 with_gnu_ld="$lt_cv_prog_gnu_ld"
8163
8164 if test -n "$ac_tool_prefix"; then
8165   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
8166 set dummy ${ac_tool_prefix}ar; ac_word=$2
8167 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8168 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8169 if test "${ac_cv_prog_AR+set}" = set; then
8170   echo $ECHO_N "(cached) $ECHO_C" >&6
8171 else
8172   if test -n "$AR"; then
8173   ac_cv_prog_AR="$AR" # Let the user override the test.
8174 else
8175 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8176 for as_dir in $PATH
8177 do
8178   IFS=$as_save_IFS
8179   test -z "$as_dir" && as_dir=.
8180   for ac_exec_ext in '' $ac_executable_extensions; do
8181   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8182     ac_cv_prog_AR="${ac_tool_prefix}ar"
8183     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8184     break 2
8185   fi
8186 done
8187 done
8188 IFS=$as_save_IFS
8189
8190 fi
8191 fi
8192 AR=$ac_cv_prog_AR
8193 if test -n "$AR"; then
8194   { echo "$as_me:$LINENO: result: $AR" >&5
8195 echo "${ECHO_T}$AR" >&6; }
8196 else
8197   { echo "$as_me:$LINENO: result: no" >&5
8198 echo "${ECHO_T}no" >&6; }
8199 fi
8200
8201
8202 fi
8203 if test -z "$ac_cv_prog_AR"; then
8204   ac_ct_AR=$AR
8205   # Extract the first word of "ar", so it can be a program name with args.
8206 set dummy ar; ac_word=$2
8207 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8208 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8209 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
8210   echo $ECHO_N "(cached) $ECHO_C" >&6
8211 else
8212   if test -n "$ac_ct_AR"; then
8213   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
8214 else
8215 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8216 for as_dir in $PATH
8217 do
8218   IFS=$as_save_IFS
8219   test -z "$as_dir" && as_dir=.
8220   for ac_exec_ext in '' $ac_executable_extensions; do
8221   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8222     ac_cv_prog_ac_ct_AR="ar"
8223     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8224     break 2
8225   fi
8226 done
8227 done
8228 IFS=$as_save_IFS
8229
8230 fi
8231 fi
8232 ac_ct_AR=$ac_cv_prog_ac_ct_AR
8233 if test -n "$ac_ct_AR"; then
8234   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
8235 echo "${ECHO_T}$ac_ct_AR" >&6; }
8236 else
8237   { echo "$as_me:$LINENO: result: no" >&5
8238 echo "${ECHO_T}no" >&6; }
8239 fi
8240
8241   if test "x$ac_ct_AR" = x; then
8242     AR="false"
8243   else
8244     case $cross_compiling:$ac_tool_warned in
8245 yes:)
8246 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
8247 whose name does not start with the host triplet.  If you think this
8248 configuration is useful to you, please write to autoconf@gnu.org." >&5
8249 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
8250 whose name does not start with the host triplet.  If you think this
8251 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
8252 ac_tool_warned=yes ;;
8253 esac
8254     AR=$ac_ct_AR
8255   fi
8256 else
8257   AR="$ac_cv_prog_AR"
8258 fi
8259
8260 if test -n "$ac_tool_prefix"; then
8261   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8262 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8263 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8264 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8265 if test "${ac_cv_prog_RANLIB+set}" = set; then
8266   echo $ECHO_N "(cached) $ECHO_C" >&6
8267 else
8268   if test -n "$RANLIB"; then
8269   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8270 else
8271 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8272 for as_dir in $PATH
8273 do
8274   IFS=$as_save_IFS
8275   test -z "$as_dir" && as_dir=.
8276   for ac_exec_ext in '' $ac_executable_extensions; do
8277   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8278     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8279     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8280     break 2
8281   fi
8282 done
8283 done
8284 IFS=$as_save_IFS
8285
8286 fi
8287 fi
8288 RANLIB=$ac_cv_prog_RANLIB
8289 if test -n "$RANLIB"; then
8290   { echo "$as_me:$LINENO: result: $RANLIB" >&5
8291 echo "${ECHO_T}$RANLIB" >&6; }
8292 else
8293   { echo "$as_me:$LINENO: result: no" >&5
8294 echo "${ECHO_T}no" >&6; }
8295 fi
8296
8297
8298 fi
8299 if test -z "$ac_cv_prog_RANLIB"; then
8300   ac_ct_RANLIB=$RANLIB
8301   # Extract the first word of "ranlib", so it can be a program name with args.
8302 set dummy ranlib; ac_word=$2
8303 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8304 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8305 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
8306   echo $ECHO_N "(cached) $ECHO_C" >&6
8307 else
8308   if test -n "$ac_ct_RANLIB"; then
8309   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8310 else
8311 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8312 for as_dir in $PATH
8313 do
8314   IFS=$as_save_IFS
8315   test -z "$as_dir" && as_dir=.
8316   for ac_exec_ext in '' $ac_executable_extensions; do
8317   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8318     ac_cv_prog_ac_ct_RANLIB="ranlib"
8319     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8320     break 2
8321   fi
8322 done
8323 done
8324 IFS=$as_save_IFS
8325
8326 fi
8327 fi
8328 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8329 if test -n "$ac_ct_RANLIB"; then
8330   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
8331 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
8332 else
8333   { echo "$as_me:$LINENO: result: no" >&5
8334 echo "${ECHO_T}no" >&6; }
8335 fi
8336
8337   if test "x$ac_ct_RANLIB" = x; then
8338     RANLIB=":"
8339   else
8340     case $cross_compiling:$ac_tool_warned in
8341 yes:)
8342 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
8343 whose name does not start with the host triplet.  If you think this
8344 configuration is useful to you, please write to autoconf@gnu.org." >&5
8345 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
8346 whose name does not start with the host triplet.  If you think this
8347 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
8348 ac_tool_warned=yes ;;
8349 esac
8350     RANLIB=$ac_ct_RANLIB
8351   fi
8352 else
8353   RANLIB="$ac_cv_prog_RANLIB"
8354 fi
8355
8356 if test -n "$ac_tool_prefix"; then
8357   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
8358 set dummy ${ac_tool_prefix}strip; ac_word=$2
8359 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8360 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8361 if test "${ac_cv_prog_STRIP+set}" = set; then
8362   echo $ECHO_N "(cached) $ECHO_C" >&6
8363 else
8364   if test -n "$STRIP"; then
8365   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8366 else
8367 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8368 for as_dir in $PATH
8369 do
8370   IFS=$as_save_IFS
8371   test -z "$as_dir" && as_dir=.
8372   for ac_exec_ext in '' $ac_executable_extensions; do
8373   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8374     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
8375     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8376     break 2
8377   fi
8378 done
8379 done
8380 IFS=$as_save_IFS
8381
8382 fi
8383 fi
8384 STRIP=$ac_cv_prog_STRIP
8385 if test -n "$STRIP"; then
8386   { echo "$as_me:$LINENO: result: $STRIP" >&5
8387 echo "${ECHO_T}$STRIP" >&6; }
8388 else
8389   { echo "$as_me:$LINENO: result: no" >&5
8390 echo "${ECHO_T}no" >&6; }
8391 fi
8392
8393
8394 fi
8395 if test -z "$ac_cv_prog_STRIP"; then
8396   ac_ct_STRIP=$STRIP
8397   # Extract the first word of "strip", so it can be a program name with args.
8398 set dummy strip; ac_word=$2
8399 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8400 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8401 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
8402   echo $ECHO_N "(cached) $ECHO_C" >&6
8403 else
8404   if test -n "$ac_ct_STRIP"; then
8405   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
8406 else
8407 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8408 for as_dir in $PATH
8409 do
8410   IFS=$as_save_IFS
8411   test -z "$as_dir" && as_dir=.
8412   for ac_exec_ext in '' $ac_executable_extensions; do
8413   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8414     ac_cv_prog_ac_ct_STRIP="strip"
8415     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8416     break 2
8417   fi
8418 done
8419 done
8420 IFS=$as_save_IFS
8421
8422 fi
8423 fi
8424 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
8425 if test -n "$ac_ct_STRIP"; then
8426   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
8427 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
8428 else
8429   { echo "$as_me:$LINENO: result: no" >&5
8430 echo "${ECHO_T}no" >&6; }
8431 fi
8432
8433   if test "x$ac_ct_STRIP" = x; then
8434     STRIP=":"
8435   else
8436     case $cross_compiling:$ac_tool_warned in
8437 yes:)
8438 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
8439 whose name does not start with the host triplet.  If you think this
8440 configuration is useful to you, please write to autoconf@gnu.org." >&5
8441 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
8442 whose name does not start with the host triplet.  If you think this
8443 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
8444 ac_tool_warned=yes ;;
8445 esac
8446     STRIP=$ac_ct_STRIP
8447   fi
8448 else
8449   STRIP="$ac_cv_prog_STRIP"
8450 fi
8451
8452
8453 old_CC="$CC"
8454 old_CFLAGS="$CFLAGS"
8455
8456 # Set sane defaults for various variables
8457 test -z "$AR" && AR=ar
8458 test -z "$AR_FLAGS" && AR_FLAGS=cru
8459 test -z "$AS" && AS=as
8460 test -z "$CC" && CC=cc
8461 test -z "$LTCC" && LTCC=$CC
8462 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8463 test -z "$DLLTOOL" && DLLTOOL=dlltool
8464 test -z "$LD" && LD=ld
8465 test -z "$LN_S" && LN_S="ln -s"
8466 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8467 test -z "$NM" && NM=nm
8468 test -z "$SED" && SED=sed
8469 test -z "$OBJDUMP" && OBJDUMP=objdump
8470 test -z "$RANLIB" && RANLIB=:
8471 test -z "$STRIP" && STRIP=:
8472 test -z "$ac_objext" && ac_objext=o
8473
8474 # Determine commands to create old-style static archives.
8475 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
8476 old_postinstall_cmds='chmod 644 $oldlib'
8477 old_postuninstall_cmds=
8478
8479 if test -n "$RANLIB"; then
8480   case $host_os in
8481   openbsd*)
8482     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
8483     ;;
8484   *)
8485     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
8486     ;;
8487   esac
8488   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
8489 fi
8490
8491 for cc_temp in $compiler""; do
8492   case $cc_temp in
8493     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8494     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8495     \-*) ;;
8496     *) break;;
8497   esac
8498 done
8499 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8500
8501
8502 # Only perform the check for file, if the check method requires it
8503 case $deplibs_check_method in
8504 file_magic*)
8505   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8506     { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
8507 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
8508 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8509   echo $ECHO_N "(cached) $ECHO_C" >&6
8510 else
8511   case $MAGIC_CMD in
8512 [\\/*] |  ?:[\\/]*)
8513   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8514   ;;
8515 *)
8516   lt_save_MAGIC_CMD="$MAGIC_CMD"
8517   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8518   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8519   for ac_dir in $ac_dummy; do
8520     IFS="$lt_save_ifs"
8521     test -z "$ac_dir" && ac_dir=.
8522     if test -f $ac_dir/${ac_tool_prefix}file; then
8523       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8524       if test -n "$file_magic_test_file"; then
8525         case $deplibs_check_method in
8526         "file_magic "*)
8527           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8528           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8529           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8530             $EGREP "$file_magic_regex" > /dev/null; then
8531             :
8532           else
8533             cat <<EOF 1>&2
8534
8535 *** Warning: the command libtool uses to detect shared libraries,
8536 *** $file_magic_cmd, produces output that libtool cannot recognize.
8537 *** The result is that libtool may fail to recognize shared libraries
8538 *** as such.  This will affect the creation of libtool libraries that
8539 *** depend on shared libraries, but programs linked with such libtool
8540 *** libraries will work regardless of this problem.  Nevertheless, you
8541 *** may want to report the problem to your system manager and/or to
8542 *** bug-libtool@gnu.org
8543
8544 EOF
8545           fi ;;
8546         esac
8547       fi
8548       break
8549     fi
8550   done
8551   IFS="$lt_save_ifs"
8552   MAGIC_CMD="$lt_save_MAGIC_CMD"
8553   ;;
8554 esac
8555 fi
8556
8557 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8558 if test -n "$MAGIC_CMD"; then
8559   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8560 echo "${ECHO_T}$MAGIC_CMD" >&6; }
8561 else
8562   { echo "$as_me:$LINENO: result: no" >&5
8563 echo "${ECHO_T}no" >&6; }
8564 fi
8565
8566 if test -z "$lt_cv_path_MAGIC_CMD"; then
8567   if test -n "$ac_tool_prefix"; then
8568     { echo "$as_me:$LINENO: checking for file" >&5
8569 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
8570 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8571   echo $ECHO_N "(cached) $ECHO_C" >&6
8572 else
8573   case $MAGIC_CMD in
8574 [\\/*] |  ?:[\\/]*)
8575   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8576   ;;
8577 *)
8578   lt_save_MAGIC_CMD="$MAGIC_CMD"
8579   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8580   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8581   for ac_dir in $ac_dummy; do
8582     IFS="$lt_save_ifs"
8583     test -z "$ac_dir" && ac_dir=.
8584     if test -f $ac_dir/file; then
8585       lt_cv_path_MAGIC_CMD="$ac_dir/file"
8586       if test -n "$file_magic_test_file"; then
8587         case $deplibs_check_method in
8588         "file_magic "*)
8589           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8590           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8591           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8592             $EGREP "$file_magic_regex" > /dev/null; then
8593             :
8594           else
8595             cat <<EOF 1>&2
8596
8597 *** Warning: the command libtool uses to detect shared libraries,
8598 *** $file_magic_cmd, produces output that libtool cannot recognize.
8599 *** The result is that libtool may fail to recognize shared libraries
8600 *** as such.  This will affect the creation of libtool libraries that
8601 *** depend on shared libraries, but programs linked with such libtool
8602 *** libraries will work regardless of this problem.  Nevertheless, you
8603 *** may want to report the problem to your system manager and/or to
8604 *** bug-libtool@gnu.org
8605
8606 EOF
8607           fi ;;
8608         esac
8609       fi
8610       break
8611     fi
8612   done
8613   IFS="$lt_save_ifs"
8614   MAGIC_CMD="$lt_save_MAGIC_CMD"
8615   ;;
8616 esac
8617 fi
8618
8619 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8620 if test -n "$MAGIC_CMD"; then
8621   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8622 echo "${ECHO_T}$MAGIC_CMD" >&6; }
8623 else
8624   { echo "$as_me:$LINENO: result: no" >&5
8625 echo "${ECHO_T}no" >&6; }
8626 fi
8627
8628   else
8629     MAGIC_CMD=:
8630   fi
8631 fi
8632
8633   fi
8634   ;;
8635 esac
8636
8637 enable_dlopen=no
8638 enable_win32_dll=no
8639
8640 # Check whether --enable-libtool-lock was given.
8641 if test "${enable_libtool_lock+set}" = set; then
8642   enableval=$enable_libtool_lock; 
8643 fi
8644
8645 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8646
8647
8648 # Check whether --with-pic was given.
8649 if test "${with_pic+set}" = set; then
8650   withval=$with_pic; pic_mode="$withval"
8651 else
8652   pic_mode=default
8653 fi
8654
8655 test -z "$pic_mode" && pic_mode=default
8656
8657 # Use C for the default configuration in the libtool script
8658 tagname=
8659 lt_save_CC="$CC"
8660 ac_ext=c
8661 ac_cpp='$CPP $CPPFLAGS'
8662 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8663 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8664 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8665
8666
8667 # Source file extension for C test sources.
8668 ac_ext=c
8669
8670 # Object file extension for compiled C test sources.
8671 objext=o
8672 objext=$objext
8673
8674 # Code to be used in simple compile tests
8675 lt_simple_compile_test_code="int some_variable = 0;"
8676
8677 # Code to be used in simple link tests
8678 lt_simple_link_test_code='int main(){return(0);}'
8679
8680
8681 # If no C compiler was specified, use CC.
8682 LTCC=${LTCC-"$CC"}
8683
8684 # If no C compiler flags were specified, use CFLAGS.
8685 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8686
8687 # Allow CC to be a program name with arguments.
8688 compiler=$CC
8689
8690
8691 # save warnings/boilerplate of simple test code
8692 ac_outfile=conftest.$ac_objext
8693 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8694 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8695 _lt_compiler_boilerplate=`cat conftest.err`
8696 $rm conftest*
8697
8698 ac_outfile=conftest.$ac_objext
8699 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8700 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8701 _lt_linker_boilerplate=`cat conftest.err`
8702 $rm conftest*
8703
8704
8705 ## CAVEAT EMPTOR:
8706 ## There is no encapsulation within the following macros, do not change
8707 ## the running order or otherwise move them around unless you know exactly
8708 ## what you are doing...
8709
8710 lt_prog_compiler_no_builtin_flag=
8711
8712 if test "$GCC" = yes; then
8713   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
8714
8715   
8716 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8717 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
8718 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
8719   echo $ECHO_N "(cached) $ECHO_C" >&6
8720 else
8721   lt_cv_prog_compiler_rtti_exceptions=no
8722   ac_outfile=conftest.$ac_objext
8723    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8724    lt_compiler_flag="-fno-rtti -fno-exceptions"
8725    # Insert the option either (1) after the last *FLAGS variable, or
8726    # (2) before a word containing "conftest.", or (3) at the end.
8727    # Note that $ac_compile itself does not contain backslashes and begins
8728    # with a dollar sign (not a hyphen), so the echo should work correctly.
8729    # The option is referenced via a variable to avoid confusing sed.
8730    lt_compile=`echo "$ac_compile" | $SED \
8731    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8732    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8733    -e 's:$: $lt_compiler_flag:'`
8734    (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
8735    (eval "$lt_compile" 2>conftest.err)
8736    ac_status=$?
8737    cat conftest.err >&5
8738    echo "$as_me:__oline__: \$? = $ac_status" >&5
8739    if (exit $ac_status) && test -s "$ac_outfile"; then
8740      # The compiler can only warn and ignore the option if not recognized
8741      # So say no if there are warnings other than the usual output.
8742      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8743      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8744      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8745        lt_cv_prog_compiler_rtti_exceptions=yes
8746      fi
8747    fi
8748    $rm conftest*
8749
8750 fi
8751 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8752 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8753
8754 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8755     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8756 else
8757     :
8758 fi
8759
8760 fi
8761
8762 lt_prog_compiler_wl=
8763 lt_prog_compiler_pic=
8764 lt_prog_compiler_static=
8765
8766 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
8767 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
8768  
8769   if test "$GCC" = yes; then
8770     lt_prog_compiler_wl='-Wl,'
8771     lt_prog_compiler_static='-static'
8772
8773     case $host_os in
8774       aix*)
8775       # All AIX code is PIC.
8776       if test "$host_cpu" = ia64; then
8777         # AIX 5 now supports IA64 processor
8778         lt_prog_compiler_static='-Bstatic'
8779       fi
8780       ;;
8781
8782     amigaos*)
8783       # FIXME: we need at least 68020 code to build shared libraries, but
8784       # adding the `-m68020' flag to GCC prevents building anything better,
8785       # like `-m68040'.
8786       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8787       ;;
8788
8789     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8790       # PIC is the default for these OSes.
8791       ;;
8792
8793     mingw* | cygwin* | pw32* | os2*)
8794       # This hack is so that the source file can tell whether it is being
8795       # built for inclusion in a dll (and should export symbols for example).
8796       # Although the cygwin gcc ignores -fPIC, still need this for old-style
8797       # (--disable-auto-import) libraries
8798       lt_prog_compiler_pic='-DDLL_EXPORT'
8799       ;;
8800
8801     darwin* | rhapsody*)
8802       # PIC is the default on this platform
8803       # Common symbols not allowed in MH_DYLIB files
8804       lt_prog_compiler_pic='-fno-common'
8805       ;;
8806
8807     interix[3-9]*)
8808       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8809       # Instead, we relocate shared libraries at runtime.
8810       ;;
8811
8812     msdosdjgpp*)
8813       # Just because we use GCC doesn't mean we suddenly get shared libraries
8814       # on systems that don't support them.
8815       lt_prog_compiler_can_build_shared=no
8816       enable_shared=no
8817       ;;
8818
8819     sysv4*MP*)
8820       if test -d /usr/nec; then
8821         lt_prog_compiler_pic=-Kconform_pic
8822       fi
8823       ;;
8824
8825     hpux*)
8826       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8827       # not for PA HP-UX.
8828       case $host_cpu in
8829       hppa*64*|ia64*)
8830         # +Z the default
8831         ;;
8832       *)
8833         lt_prog_compiler_pic='-fPIC'
8834         ;;
8835       esac
8836       ;;
8837
8838     *)
8839       lt_prog_compiler_pic='-fPIC'
8840       ;;
8841     esac
8842   else
8843     # PORTME Check for flag to pass linker flags through the system compiler.
8844     case $host_os in
8845     aix*)
8846       lt_prog_compiler_wl='-Wl,'
8847       if test "$host_cpu" = ia64; then
8848         # AIX 5 now supports IA64 processor
8849         lt_prog_compiler_static='-Bstatic'
8850       else
8851         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8852       fi
8853       ;;
8854       darwin*)
8855         # PIC is the default on this platform
8856         # Common symbols not allowed in MH_DYLIB files
8857        case $cc_basename in
8858          xlc*)
8859          lt_prog_compiler_pic='-qnocommon'
8860          lt_prog_compiler_wl='-Wl,'
8861          ;;
8862        esac
8863        ;;
8864
8865     mingw* | cygwin* | pw32* | os2*)
8866       # This hack is so that the source file can tell whether it is being
8867       # built for inclusion in a dll (and should export symbols for example).
8868       lt_prog_compiler_pic='-DDLL_EXPORT'
8869       ;;
8870
8871     hpux9* | hpux10* | hpux11*)
8872       lt_prog_compiler_wl='-Wl,'
8873       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8874       # not for PA HP-UX.
8875       case $host_cpu in
8876       hppa*64*|ia64*)
8877         # +Z the default
8878         ;;
8879       *)
8880         lt_prog_compiler_pic='+Z'
8881         ;;
8882       esac
8883       # Is there a better lt_prog_compiler_static that works with the bundled CC?
8884       lt_prog_compiler_static='${wl}-a ${wl}archive'
8885       ;;
8886
8887     irix5* | irix6* | nonstopux*)
8888       lt_prog_compiler_wl='-Wl,'
8889       # PIC (with -KPIC) is the default.
8890       lt_prog_compiler_static='-non_shared'
8891       ;;
8892
8893     newsos6)
8894       lt_prog_compiler_pic='-KPIC'
8895       lt_prog_compiler_static='-Bstatic'
8896       ;;
8897
8898     linux* | k*bsd*-gnu)
8899       case $cc_basename in
8900       icc* | ecc*)
8901         lt_prog_compiler_wl='-Wl,'
8902         lt_prog_compiler_pic='-KPIC'
8903         lt_prog_compiler_static='-static'
8904         ;;
8905       pgcc* | pgf77* | pgf90* | pgf95*)
8906         # Portland Group compilers (*not* the Pentium gcc compiler,
8907         # which looks to be a dead project)
8908         lt_prog_compiler_wl='-Wl,'
8909         lt_prog_compiler_pic='-fpic'
8910         lt_prog_compiler_static='-Bstatic'
8911         ;;
8912       ccc*)
8913         lt_prog_compiler_wl='-Wl,'
8914         # All Alpha code is PIC.
8915         lt_prog_compiler_static='-non_shared'
8916         ;;
8917       *)
8918         case `$CC -V 2>&1 | sed 5q` in
8919         *Sun\ C*)
8920           # Sun C 5.9
8921           lt_prog_compiler_pic='-KPIC'
8922           lt_prog_compiler_static='-Bstatic'
8923           lt_prog_compiler_wl='-Wl,'
8924           ;;
8925         *Sun\ F*)
8926           # Sun Fortran 8.3 passes all unrecognized flags to the linker
8927           lt_prog_compiler_pic='-KPIC'
8928           lt_prog_compiler_static='-Bstatic'
8929           lt_prog_compiler_wl=''
8930           ;;
8931         esac
8932         ;;
8933       esac
8934       ;;
8935
8936     osf3* | osf4* | osf5*)
8937       lt_prog_compiler_wl='-Wl,'
8938       # All OSF/1 code is PIC.
8939       lt_prog_compiler_static='-non_shared'
8940       ;;
8941
8942     rdos*)
8943       lt_prog_compiler_static='-non_shared'
8944       ;;
8945
8946     solaris*)
8947       lt_prog_compiler_pic='-KPIC'
8948       lt_prog_compiler_static='-Bstatic'
8949       case $cc_basename in
8950       f77* | f90* | f95*)
8951         lt_prog_compiler_wl='-Qoption ld ';;
8952       *)
8953         lt_prog_compiler_wl='-Wl,';;
8954       esac
8955       ;;
8956
8957     sunos4*)
8958       lt_prog_compiler_wl='-Qoption ld '
8959       lt_prog_compiler_pic='-PIC'
8960       lt_prog_compiler_static='-Bstatic'
8961       ;;
8962
8963     sysv4 | sysv4.2uw2* | sysv4.3*)
8964       lt_prog_compiler_wl='-Wl,'
8965       lt_prog_compiler_pic='-KPIC'
8966       lt_prog_compiler_static='-Bstatic'
8967       ;;
8968
8969     sysv4*MP*)
8970       if test -d /usr/nec ;then
8971         lt_prog_compiler_pic='-Kconform_pic'
8972         lt_prog_compiler_static='-Bstatic'
8973       fi
8974       ;;
8975
8976     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8977       lt_prog_compiler_wl='-Wl,'
8978       lt_prog_compiler_pic='-KPIC'
8979       lt_prog_compiler_static='-Bstatic'
8980       ;;
8981
8982     unicos*)
8983       lt_prog_compiler_wl='-Wl,'
8984       lt_prog_compiler_can_build_shared=no
8985       ;;
8986
8987     uts4*)
8988       lt_prog_compiler_pic='-pic'
8989       lt_prog_compiler_static='-Bstatic'
8990       ;;
8991
8992     *)
8993       lt_prog_compiler_can_build_shared=no
8994       ;;
8995     esac
8996   fi
8997
8998 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
8999 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
9000
9001 #
9002 # Check to make sure the PIC flag actually works.
9003 #
9004 if test -n "$lt_prog_compiler_pic"; then
9005   
9006 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9007 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
9008 if test "${lt_prog_compiler_pic_works+set}" = set; then
9009   echo $ECHO_N "(cached) $ECHO_C" >&6
9010 else
9011   lt_prog_compiler_pic_works=no
9012   ac_outfile=conftest.$ac_objext
9013    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9014    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9015    # Insert the option either (1) after the last *FLAGS variable, or
9016    # (2) before a word containing "conftest.", or (3) at the end.
9017    # Note that $ac_compile itself does not contain backslashes and begins
9018    # with a dollar sign (not a hyphen), so the echo should work correctly.
9019    # The option is referenced via a variable to avoid confusing sed.
9020    lt_compile=`echo "$ac_compile" | $SED \
9021    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9022    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9023    -e 's:$: $lt_compiler_flag:'`
9024    (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
9025    (eval "$lt_compile" 2>conftest.err)
9026    ac_status=$?
9027    cat conftest.err >&5
9028    echo "$as_me:__oline__: \$? = $ac_status" >&5
9029    if (exit $ac_status) && test -s "$ac_outfile"; then
9030      # The compiler can only warn and ignore the option if not recognized
9031      # So say no if there are warnings other than the usual output.
9032      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9033      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9034      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9035        lt_prog_compiler_pic_works=yes
9036      fi
9037    fi
9038    $rm conftest*
9039
9040 fi
9041 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
9042 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
9043
9044 if test x"$lt_prog_compiler_pic_works" = xyes; then
9045     case $lt_prog_compiler_pic in
9046      "" | " "*) ;;
9047      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9048      esac
9049 else
9050     lt_prog_compiler_pic=
9051      lt_prog_compiler_can_build_shared=no
9052 fi
9053
9054 fi
9055 case $host_os in
9056   # For platforms which do not support PIC, -DPIC is meaningless:
9057   *djgpp*)
9058     lt_prog_compiler_pic=
9059     ;;
9060   *)
9061     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9062     ;;
9063 esac
9064
9065 #
9066 # Check to make sure the static flag actually works.
9067 #
9068 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9069 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9070 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
9071 if test "${lt_prog_compiler_static_works+set}" = set; then
9072   echo $ECHO_N "(cached) $ECHO_C" >&6
9073 else
9074   lt_prog_compiler_static_works=no
9075    save_LDFLAGS="$LDFLAGS"
9076    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9077    echo "$lt_simple_link_test_code" > conftest.$ac_ext
9078    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9079      # The linker can only warn and ignore the option if not recognized
9080      # So say no if there are warnings
9081      if test -s conftest.err; then
9082        # Append any errors to the config.log.
9083        cat conftest.err 1>&5
9084        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
9085        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9086        if diff conftest.exp conftest.er2 >/dev/null; then
9087          lt_prog_compiler_static_works=yes
9088        fi
9089      else
9090        lt_prog_compiler_static_works=yes
9091      fi
9092    fi
9093    $rm conftest*
9094    LDFLAGS="$save_LDFLAGS"
9095
9096 fi
9097 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
9098 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
9099
9100 if test x"$lt_prog_compiler_static_works" = xyes; then
9101     :
9102 else
9103     lt_prog_compiler_static=
9104 fi
9105
9106
9107 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
9108 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
9109 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
9110   echo $ECHO_N "(cached) $ECHO_C" >&6
9111 else
9112   lt_cv_prog_compiler_c_o=no
9113    $rm -r conftest 2>/dev/null
9114    mkdir conftest
9115    cd conftest
9116    mkdir out
9117    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9118
9119    lt_compiler_flag="-o out/conftest2.$ac_objext"
9120    # Insert the option either (1) after the last *FLAGS variable, or
9121    # (2) before a word containing "conftest.", or (3) at the end.
9122    # Note that $ac_compile itself does not contain backslashes and begins
9123    # with a dollar sign (not a hyphen), so the echo should work correctly.
9124    lt_compile=`echo "$ac_compile" | $SED \
9125    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9126    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9127    -e 's:$: $lt_compiler_flag:'`
9128    (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
9129    (eval "$lt_compile" 2>out/conftest.err)
9130    ac_status=$?
9131    cat out/conftest.err >&5
9132    echo "$as_me:__oline__: \$? = $ac_status" >&5
9133    if (exit $ac_status) && test -s out/conftest2.$ac_objext
9134    then
9135      # The compiler can only warn and ignore the option if not recognized
9136      # So say no if there are warnings
9137      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9138      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9139      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9140        lt_cv_prog_compiler_c_o=yes
9141      fi
9142    fi
9143    chmod u+w . 2>&5
9144    $rm conftest*
9145    # SGI C++ compiler will create directory out/ii_files/ for
9146    # template instantiation
9147    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
9148    $rm out/* && rmdir out
9149    cd ..
9150    rmdir conftest
9151    $rm conftest*
9152
9153 fi
9154 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
9155 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
9156
9157
9158 hard_links="nottested"
9159 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9160   # do not overwrite the value of need_locks provided by the user
9161   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
9162 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
9163   hard_links=yes
9164   $rm conftest*
9165   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9166   touch conftest.a
9167   ln conftest.a conftest.b 2>&5 || hard_links=no
9168   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9169   { echo "$as_me:$LINENO: result: $hard_links" >&5
9170 echo "${ECHO_T}$hard_links" >&6; }
9171   if test "$hard_links" = no; then
9172     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9173 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9174     need_locks=warn
9175   fi
9176 else
9177   need_locks=no
9178 fi
9179
9180 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9181 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
9182
9183   runpath_var=
9184   allow_undefined_flag=
9185   enable_shared_with_static_runtimes=no
9186   archive_cmds=
9187   archive_expsym_cmds=
9188   old_archive_From_new_cmds=
9189   old_archive_from_expsyms_cmds=
9190   export_dynamic_flag_spec=
9191   whole_archive_flag_spec=
9192   thread_safe_flag_spec=
9193   hardcode_libdir_flag_spec=
9194   hardcode_libdir_flag_spec_ld=
9195   hardcode_libdir_separator=
9196   hardcode_direct=no
9197   hardcode_minus_L=no
9198   hardcode_shlibpath_var=unsupported
9199   link_all_deplibs=unknown
9200   hardcode_automatic=no
9201   module_cmds=
9202   module_expsym_cmds=
9203   always_export_symbols=no
9204   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9205   # include_expsyms should be a list of space-separated symbols to be *always*
9206   # included in the symbol list
9207   include_expsyms=
9208   # exclude_expsyms can be an extended regexp of symbols to exclude
9209   # it will be wrapped by ` (' and `)$', so one must not match beginning or
9210   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9211   # as well as any symbol that contains `d'.
9212   exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
9213   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9214   # platforms (ab)use it in PIC code, but their linkers get confused if
9215   # the symbol is explicitly referenced.  Since portable code cannot
9216   # rely on this symbol name, it's probably fine to never include it in
9217   # preloaded symbol tables.
9218   extract_expsyms_cmds=
9219   # Just being paranoid about ensuring that cc_basename is set.
9220   for cc_temp in $compiler""; do
9221   case $cc_temp in
9222     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9223     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9224     \-*) ;;
9225     *) break;;
9226   esac
9227 done
9228 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
9229
9230   case $host_os in
9231   cygwin* | mingw* | pw32*)
9232     # FIXME: the MSVC++ port hasn't been tested in a loooong time
9233     # When not using gcc, we currently assume that we are using
9234     # Microsoft Visual C++.
9235     if test "$GCC" != yes; then
9236       with_gnu_ld=no
9237     fi
9238     ;;
9239   interix*)
9240     # we just hope/assume this is gcc and not c89 (= MSVC++)
9241     with_gnu_ld=yes
9242     ;;
9243   openbsd*)
9244     with_gnu_ld=no
9245     ;;
9246   esac
9247
9248   ld_shlibs=yes
9249   if test "$with_gnu_ld" = yes; then
9250     # If archive_cmds runs LD, not CC, wlarc should be empty
9251     wlarc='${wl}'
9252
9253     # Set some defaults for GNU ld with shared library support. These
9254     # are reset later if shared libraries are not supported. Putting them
9255     # here allows them to be overridden if necessary.
9256     runpath_var=LD_RUN_PATH
9257     hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
9258     export_dynamic_flag_spec='${wl}--export-dynamic'
9259     # ancient GNU ld didn't support --whole-archive et. al.
9260     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
9261         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9262       else
9263         whole_archive_flag_spec=
9264     fi
9265     supports_anon_versioning=no
9266     case `$LD -v 2>/dev/null` in
9267       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9268       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9269       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9270       *\ 2.11.*) ;; # other 2.11 versions
9271       *) supports_anon_versioning=yes ;;
9272     esac
9273
9274     # See if GNU ld supports shared libraries.
9275     case $host_os in
9276     aix3* | aix4* | aix5*)
9277       # On AIX/PPC, the GNU linker is very broken
9278       if test "$host_cpu" != ia64; then
9279         ld_shlibs=no
9280         cat <<EOF 1>&2
9281
9282 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
9283 *** to be unable to reliably create shared libraries on AIX.
9284 *** Therefore, libtool is disabling shared libraries support.  If you
9285 *** really care for shared libraries, you may want to modify your PATH
9286 *** so that a non-GNU linker is found, and then restart.
9287
9288 EOF
9289       fi
9290       ;;
9291
9292     amigaos*)
9293       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)'
9294       hardcode_libdir_flag_spec='-L$libdir'
9295       hardcode_minus_L=yes
9296
9297       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
9298       # that the semantics of dynamic libraries on AmigaOS, at least up
9299       # to version 4, is to share data among multiple programs linked
9300       # with the same dynamic library.  Since this doesn't match the
9301       # behavior of shared libraries on other platforms, we can't use
9302       # them.
9303       ld_shlibs=no
9304       ;;
9305
9306     beos*)
9307       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9308         allow_undefined_flag=unsupported
9309         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9310         # support --undefined.  This deserves some investigation.  FIXME
9311         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9312       else
9313         ld_shlibs=no
9314       fi
9315       ;;
9316
9317     cygwin* | mingw* | pw32*)
9318       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9319       # as there is no search path for DLLs.
9320       hardcode_libdir_flag_spec='-L$libdir'
9321       allow_undefined_flag=unsupported
9322       always_export_symbols=no
9323       enable_shared_with_static_runtimes=yes
9324       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9325
9326       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
9327         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9328         # If the export-symbols file already is a .def file (1st line
9329         # is EXPORTS), use it as is; otherwise, prepend...
9330         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9331           cp $export_symbols $output_objdir/$soname.def;
9332         else
9333           echo EXPORTS > $output_objdir/$soname.def;
9334           cat $export_symbols >> $output_objdir/$soname.def;
9335         fi~
9336         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9337       else
9338         ld_shlibs=no
9339       fi
9340       ;;
9341
9342     interix[3-9]*)
9343       hardcode_direct=no
9344       hardcode_shlibpath_var=no
9345       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9346       export_dynamic_flag_spec='${wl}-E'
9347       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9348       # Instead, shared libraries are loaded at an image base (0x10000000 by
9349       # default) and relocated if they conflict, which is a slow very memory
9350       # consuming and fragmenting process.  To avoid this, we pick a random,
9351       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9352       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9353       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9354       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'
9355       ;;
9356
9357     gnu* | linux* | k*bsd*-gnu)
9358       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9359         tmp_addflag=
9360         case $cc_basename,$host_cpu in
9361         pgcc*)                          # Portland Group C compiler
9362           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'
9363           tmp_addflag=' $pic_flag'
9364           ;;
9365         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
9366           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'
9367           tmp_addflag=' $pic_flag -Mnomain' ;;
9368         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
9369           tmp_addflag=' -i_dynamic' ;;
9370         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
9371           tmp_addflag=' -i_dynamic -nofor_main' ;;
9372         ifc* | ifort*)                  # Intel Fortran compiler
9373           tmp_addflag=' -nofor_main' ;;
9374         esac
9375         case `$CC -V 2>&1 | sed 5q` in
9376         *Sun\ C*)                       # Sun C 5.9
9377           whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
9378           tmp_sharedflag='-G' ;;
9379         *Sun\ F*)                       # Sun Fortran 8.3
9380           tmp_sharedflag='-G' ;;
9381         *)
9382           tmp_sharedflag='-shared' ;;
9383         esac
9384         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9385
9386         if test $supports_anon_versioning = yes; then
9387           archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
9388   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9389   $echo "local: *; };" >> $output_objdir/$libname.ver~
9390           $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9391         fi
9392         link_all_deplibs=no
9393       else
9394         ld_shlibs=no
9395       fi
9396       ;;
9397
9398     netbsd* | netbsdelf*-gnu)
9399       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9400         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9401         wlarc=
9402       else
9403         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9404         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9405       fi
9406       ;;
9407
9408     solaris*)
9409       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
9410         ld_shlibs=no
9411         cat <<EOF 1>&2
9412
9413 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9414 *** create shared libraries on Solaris systems.  Therefore, libtool
9415 *** is disabling shared libraries support.  We urge you to upgrade GNU
9416 *** binutils to release 2.9.1 or newer.  Another option is to modify
9417 *** your PATH or compiler configuration so that the native linker is
9418 *** used, and then restart.
9419
9420 EOF
9421       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9422         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9423         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9424       else
9425         ld_shlibs=no
9426       fi
9427       ;;
9428
9429     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9430       case `$LD -v 2>&1` in
9431         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9432         ld_shlibs=no
9433         cat <<_LT_EOF 1>&2
9434
9435 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9436 *** reliably create shared libraries on SCO systems.  Therefore, libtool
9437 *** is disabling shared libraries support.  We urge you to upgrade GNU
9438 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9439 *** your PATH or compiler configuration so that the native linker is
9440 *** used, and then restart.
9441
9442 _LT_EOF
9443         ;;
9444         *)
9445           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9446             hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
9447             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
9448             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
9449           else
9450             ld_shlibs=no
9451           fi
9452         ;;
9453       esac
9454       ;;
9455
9456     sunos4*)
9457       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9458       wlarc=
9459       hardcode_direct=yes
9460       hardcode_shlibpath_var=no
9461       ;;
9462
9463     *)
9464       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9465         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9466         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9467       else
9468         ld_shlibs=no
9469       fi
9470       ;;
9471     esac
9472
9473     if test "$ld_shlibs" = no; then
9474       runpath_var=
9475       hardcode_libdir_flag_spec=
9476       export_dynamic_flag_spec=
9477       whole_archive_flag_spec=
9478     fi
9479   else
9480     # PORTME fill in a description of your system's linker (not GNU ld)
9481     case $host_os in
9482     aix3*)
9483       allow_undefined_flag=unsupported
9484       always_export_symbols=yes
9485       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'
9486       # Note: this linker hardcodes the directories in LIBPATH if there
9487       # are no directories specified by -L.
9488       hardcode_minus_L=yes
9489       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9490         # Neither direct hardcoding nor static linking is supported with a
9491         # broken collect2.
9492         hardcode_direct=unsupported
9493       fi
9494       ;;
9495
9496     aix4* | aix5*)
9497       if test "$host_cpu" = ia64; then
9498         # On IA64, the linker does run time linking by default, so we don't
9499         # have to do anything special.
9500         aix_use_runtimelinking=no
9501         exp_sym_flag='-Bexport'
9502         no_entry_flag=""
9503       else
9504         # If we're using GNU nm, then we don't want the "-C" option.
9505         # -C means demangle to AIX nm, but means don't demangle with GNU nm
9506         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
9507           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'
9508         else
9509           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'
9510         fi
9511         aix_use_runtimelinking=no
9512
9513         # Test if we are trying to use run time linking or normal
9514         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9515         # need to do runtime linking.
9516         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9517           for ld_flag in $LDFLAGS; do
9518           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9519             aix_use_runtimelinking=yes
9520             break
9521           fi
9522           done
9523           ;;
9524         esac
9525
9526         exp_sym_flag='-bexport'
9527         no_entry_flag='-bnoentry'
9528       fi
9529
9530       # When large executables or shared objects are built, AIX ld can
9531       # have problems creating the table of contents.  If linking a library
9532       # or program results in "error TOC overflow" add -mminimal-toc to
9533       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9534       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9535
9536       archive_cmds=''
9537       hardcode_direct=yes
9538       hardcode_libdir_separator=':'
9539       link_all_deplibs=yes
9540
9541       if test "$GCC" = yes; then
9542         case $host_os in aix4.[012]|aix4.[012].*)
9543         # We only want to do this on AIX 4.2 and lower, the check
9544         # below for broken collect2 doesn't work under 4.3+
9545           collect2name=`${CC} -print-prog-name=collect2`
9546           if test -f "$collect2name" && \
9547            strings "$collect2name" | grep resolve_lib_name >/dev/null
9548           then
9549           # We have reworked collect2
9550           :
9551           else
9552           # We have old collect2
9553           hardcode_direct=unsupported
9554           # It fails to find uninstalled libraries when the uninstalled
9555           # path is not listed in the libpath.  Setting hardcode_minus_L
9556           # to unsupported forces relinking
9557           hardcode_minus_L=yes
9558           hardcode_libdir_flag_spec='-L$libdir'
9559           hardcode_libdir_separator=
9560           fi
9561           ;;
9562         esac
9563         shared_flag='-shared'
9564         if test "$aix_use_runtimelinking" = yes; then
9565           shared_flag="$shared_flag "'${wl}-G'
9566         fi
9567       else
9568         # not using gcc
9569         if test "$host_cpu" = ia64; then
9570         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9571         # chokes on -Wl,-G. The following line is correct:
9572           shared_flag='-G'
9573         else
9574           if test "$aix_use_runtimelinking" = yes; then
9575             shared_flag='${wl}-G'
9576           else
9577             shared_flag='${wl}-bM:SRE'
9578           fi
9579         fi
9580       fi
9581
9582       # It seems that -bexpall does not export symbols beginning with
9583       # underscore (_), so it is better to generate a list of symbols to export.
9584       always_export_symbols=yes
9585       if test "$aix_use_runtimelinking" = yes; then
9586         # Warning - without using the other runtime loading flags (-brtl),
9587         # -berok will link without error, but may produce a broken library.
9588         allow_undefined_flag='-berok'
9589        # Determine the default libpath from the value encoded in an empty executable.
9590        cat >conftest.$ac_ext <<_ACEOF
9591 /* confdefs.h.  */
9592 _ACEOF
9593 cat confdefs.h >>conftest.$ac_ext
9594 cat >>conftest.$ac_ext <<_ACEOF
9595 /* end confdefs.h.  */
9596
9597 int
9598 main ()
9599 {
9600
9601   ;
9602   return 0;
9603 }
9604 _ACEOF
9605 rm -f conftest.$ac_objext conftest$ac_exeext
9606 if { (ac_try="$ac_link"
9607 case "(($ac_try" in
9608   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9609   *) ac_try_echo=$ac_try;;
9610 esac
9611 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9612   (eval "$ac_link") 2>conftest.er1
9613   ac_status=$?
9614   grep -v '^ *+' conftest.er1 >conftest.err
9615   rm -f conftest.er1
9616   cat conftest.err >&5
9617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9618   (exit $ac_status); } && {
9619          test -z "$ac_c_werror_flag" ||
9620          test ! -s conftest.err
9621        } && test -s conftest$ac_exeext &&
9622        $as_test_x conftest$ac_exeext; then
9623   
9624 lt_aix_libpath_sed='
9625     /Import File Strings/,/^$/ {
9626         /^0/ {
9627             s/^0  *\(.*\)$/\1/
9628             p
9629         }
9630     }'
9631 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9632 # Check for a 64-bit object if we didn't find anything.
9633 if test -z "$aix_libpath"; then
9634   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9635 fi
9636 else
9637   echo "$as_me: failed program was:" >&5
9638 sed 's/^/| /' conftest.$ac_ext >&5
9639
9640         
9641 fi
9642
9643 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9644       conftest$ac_exeext conftest.$ac_ext
9645 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9646
9647        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9648         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"
9649        else
9650         if test "$host_cpu" = ia64; then
9651           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9652           allow_undefined_flag="-z nodefs"
9653           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"
9654         else
9655          # Determine the default libpath from the value encoded in an empty executable.
9656          cat >conftest.$ac_ext <<_ACEOF
9657 /* confdefs.h.  */
9658 _ACEOF
9659 cat confdefs.h >>conftest.$ac_ext
9660 cat >>conftest.$ac_ext <<_ACEOF
9661 /* end confdefs.h.  */
9662
9663 int
9664 main ()
9665 {
9666
9667   ;
9668   return 0;
9669 }
9670 _ACEOF
9671 rm -f conftest.$ac_objext conftest$ac_exeext
9672 if { (ac_try="$ac_link"
9673 case "(($ac_try" in
9674   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9675   *) ac_try_echo=$ac_try;;
9676 esac
9677 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9678   (eval "$ac_link") 2>conftest.er1
9679   ac_status=$?
9680   grep -v '^ *+' conftest.er1 >conftest.err
9681   rm -f conftest.er1
9682   cat conftest.err >&5
9683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9684   (exit $ac_status); } && {
9685          test -z "$ac_c_werror_flag" ||
9686          test ! -s conftest.err
9687        } && test -s conftest$ac_exeext &&
9688        $as_test_x conftest$ac_exeext; then
9689   
9690 lt_aix_libpath_sed='
9691     /Import File Strings/,/^$/ {
9692         /^0/ {
9693             s/^0  *\(.*\)$/\1/
9694             p
9695         }
9696     }'
9697 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9698 # Check for a 64-bit object if we didn't find anything.
9699 if test -z "$aix_libpath"; then
9700   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9701 fi
9702 else
9703   echo "$as_me: failed program was:" >&5
9704 sed 's/^/| /' conftest.$ac_ext >&5
9705
9706         
9707 fi
9708
9709 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9710       conftest$ac_exeext conftest.$ac_ext
9711 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9712
9713          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9714           # Warning - without using the other run time loading flags,
9715           # -berok will link without error, but may produce a broken library.
9716           no_undefined_flag=' ${wl}-bernotok'
9717           allow_undefined_flag=' ${wl}-berok'
9718           # Exported symbols can be pulled into shared objects from archives
9719           whole_archive_flag_spec='$convenience'
9720           archive_cmds_need_lc=yes
9721           # This is similar to how AIX traditionally builds its shared libraries.
9722           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'
9723         fi
9724       fi
9725       ;;
9726
9727     amigaos*)
9728       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)'
9729       hardcode_libdir_flag_spec='-L$libdir'
9730       hardcode_minus_L=yes
9731       # see comment about different semantics on the GNU ld section
9732       ld_shlibs=no
9733       ;;
9734
9735     bsdi[45]*)
9736       export_dynamic_flag_spec=-rdynamic
9737       ;;
9738
9739     cygwin* | mingw* | pw32*)
9740       # When not using gcc, we currently assume that we are using
9741       # Microsoft Visual C++.
9742       # hardcode_libdir_flag_spec is actually meaningless, as there is
9743       # no search path for DLLs.
9744       hardcode_libdir_flag_spec=' '
9745       allow_undefined_flag=unsupported
9746       # Tell ltmain to make .lib files, not .a files.
9747       libext=lib
9748       # Tell ltmain to make .dll files, not .so files.
9749       shrext_cmds=".dll"
9750       # FIXME: Setting linknames here is a bad hack.
9751       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
9752       # The linker will automatically build a .lib file if we build a DLL.
9753       old_archive_From_new_cmds='true'
9754       # FIXME: Should let the user specify the lib program.
9755       old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9756       fix_srcfile_path='`cygpath -w "$srcfile"`'
9757       enable_shared_with_static_runtimes=yes
9758       ;;
9759
9760     darwin* | rhapsody*)
9761       case $host_os in
9762         rhapsody* | darwin1.[012])
9763          allow_undefined_flag='${wl}-undefined ${wl}suppress'
9764          ;;
9765        *) # Darwin 1.3 on
9766          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
9767            allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9768          else
9769            case ${MACOSX_DEPLOYMENT_TARGET} in
9770              10.[012])
9771                allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9772                ;;
9773              10.*)
9774                allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
9775                ;;
9776            esac
9777          fi
9778          ;;
9779       esac
9780       archive_cmds_need_lc=no
9781       hardcode_direct=no
9782       hardcode_automatic=yes
9783       hardcode_shlibpath_var=unsupported
9784       whole_archive_flag_spec=''
9785       link_all_deplibs=yes
9786     if test "$GCC" = yes ; then
9787         output_verbose_link_cmd='echo'
9788         archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9789       module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9790       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
9791       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}'
9792       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}'
9793     else
9794       case $cc_basename in
9795         xlc*)
9796          output_verbose_link_cmd='echo'
9797          archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
9798          module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9799           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
9800          archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
9801           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}'
9802           ;;
9803        *)
9804          ld_shlibs=no
9805           ;;
9806       esac
9807     fi
9808       ;;
9809
9810     dgux*)
9811       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9812       hardcode_libdir_flag_spec='-L$libdir'
9813       hardcode_shlibpath_var=no
9814       ;;
9815
9816     freebsd1*)
9817       ld_shlibs=no
9818       ;;
9819
9820     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9821     # support.  Future versions do this automatically, but an explicit c++rt0.o
9822     # does not break anything, and helps significantly (at the cost of a little
9823     # extra space).
9824     freebsd2.2*)
9825       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9826       hardcode_libdir_flag_spec='-R$libdir'
9827       hardcode_direct=yes
9828       hardcode_shlibpath_var=no
9829       ;;
9830
9831     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9832     freebsd2*)
9833       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9834       hardcode_direct=yes
9835       hardcode_minus_L=yes
9836       hardcode_shlibpath_var=no
9837       ;;
9838
9839     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9840     freebsd* | dragonfly*)
9841       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9842       hardcode_libdir_flag_spec='-R$libdir'
9843       hardcode_direct=yes
9844       hardcode_shlibpath_var=no
9845       ;;
9846
9847     hpux9*)
9848       if test "$GCC" = yes; then
9849         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'
9850       else
9851         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'
9852       fi
9853       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9854       hardcode_libdir_separator=:
9855       hardcode_direct=yes
9856
9857       # hardcode_minus_L: Not really in the search PATH,
9858       # but as the default location of the library.
9859       hardcode_minus_L=yes
9860       export_dynamic_flag_spec='${wl}-E'
9861       ;;
9862
9863     hpux10*)
9864       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9865         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9866       else
9867         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9868       fi
9869       if test "$with_gnu_ld" = no; then
9870         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9871         hardcode_libdir_separator=:
9872
9873         hardcode_direct=yes
9874         export_dynamic_flag_spec='${wl}-E'
9875
9876         # hardcode_minus_L: Not really in the search PATH,
9877         # but as the default location of the library.
9878         hardcode_minus_L=yes
9879       fi
9880       ;;
9881
9882     hpux11*)
9883       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9884         case $host_cpu in
9885         hppa*64*)
9886           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9887           ;;
9888         ia64*)
9889           archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9890           ;;
9891         *)
9892           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9893           ;;
9894         esac
9895       else
9896         case $host_cpu in
9897         hppa*64*)
9898           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9899           ;;
9900         ia64*)
9901           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9902           ;;
9903         *)
9904           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9905           ;;
9906         esac
9907       fi
9908       if test "$with_gnu_ld" = no; then
9909         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9910         hardcode_libdir_separator=:
9911
9912         case $host_cpu in
9913         hppa*64*|ia64*)
9914           hardcode_libdir_flag_spec_ld='+b $libdir'
9915           hardcode_direct=no
9916           hardcode_shlibpath_var=no
9917           ;;
9918         *)
9919           hardcode_direct=yes
9920           export_dynamic_flag_spec='${wl}-E'
9921
9922           # hardcode_minus_L: Not really in the search PATH,
9923           # but as the default location of the library.
9924           hardcode_minus_L=yes
9925           ;;
9926         esac
9927       fi
9928       ;;
9929
9930     irix5* | irix6* | nonstopux*)
9931       if test "$GCC" = yes; then
9932         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'
9933       else
9934         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'
9935         hardcode_libdir_flag_spec_ld='-rpath $libdir'
9936       fi
9937       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9938       hardcode_libdir_separator=:
9939       link_all_deplibs=yes
9940       ;;
9941
9942     netbsd* | netbsdelf*-gnu)
9943       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9944         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9945       else
9946         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9947       fi
9948       hardcode_libdir_flag_spec='-R$libdir'
9949       hardcode_direct=yes
9950       hardcode_shlibpath_var=no
9951       ;;
9952
9953     newsos6)
9954       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9955       hardcode_direct=yes
9956       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9957       hardcode_libdir_separator=:
9958       hardcode_shlibpath_var=no
9959       ;;
9960
9961     openbsd*)
9962       if test -f /usr/libexec/ld.so; then
9963         hardcode_direct=yes
9964         hardcode_shlibpath_var=no
9965         if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9966           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9967           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9968           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9969           export_dynamic_flag_spec='${wl}-E'
9970         else
9971           case $host_os in
9972            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9973              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9974              hardcode_libdir_flag_spec='-R$libdir'
9975              ;;
9976            *)
9977              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9978              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9979              ;;
9980           esac
9981         fi
9982       else
9983         ld_shlibs=no
9984       fi
9985       ;;
9986
9987     os2*)
9988       hardcode_libdir_flag_spec='-L$libdir'
9989       hardcode_minus_L=yes
9990       allow_undefined_flag=unsupported
9991       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'
9992       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9993       ;;
9994
9995     osf3*)
9996       if test "$GCC" = yes; then
9997         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9998         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'
9999       else
10000         allow_undefined_flag=' -expect_unresolved \*'
10001         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'
10002       fi
10003       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10004       hardcode_libdir_separator=:
10005       ;;
10006
10007     osf4* | osf5*)      # as osf3* with the addition of -msym flag
10008       if test "$GCC" = yes; then
10009         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10010         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'
10011         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10012       else
10013         allow_undefined_flag=' -expect_unresolved \*'
10014         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'
10015         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
10016         $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'
10017
10018         # Both c and cxx compiler support -rpath directly
10019         hardcode_libdir_flag_spec='-rpath $libdir'
10020       fi
10021       hardcode_libdir_separator=:
10022       ;;
10023
10024     solaris*)
10025       no_undefined_flag=' -z text'
10026       if test "$GCC" = yes; then
10027         wlarc='${wl}'
10028         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10029         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10030           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
10031       else
10032         wlarc=''
10033         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10034         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10035         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
10036       fi
10037       hardcode_libdir_flag_spec='-R$libdir'
10038       hardcode_shlibpath_var=no
10039       case $host_os in
10040       solaris2.[0-5] | solaris2.[0-5].*) ;;
10041       *)
10042         # The compiler driver will combine and reorder linker options,
10043         # but understands `-z linker_flag'.  GCC discards it without `$wl',
10044         # but is careful enough not to reorder.
10045         # Supported since Solaris 2.6 (maybe 2.5.1?)
10046         if test "$GCC" = yes; then
10047           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10048         else
10049           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10050         fi
10051         ;;
10052       esac
10053       link_all_deplibs=yes
10054       ;;
10055
10056     sunos4*)
10057       if test "x$host_vendor" = xsequent; then
10058         # Use $CC to link under sequent, because it throws in some extra .o
10059         # files that make .init and .fini sections work.
10060         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10061       else
10062         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10063       fi
10064       hardcode_libdir_flag_spec='-L$libdir'
10065       hardcode_direct=yes
10066       hardcode_minus_L=yes
10067       hardcode_shlibpath_var=no
10068       ;;
10069
10070     sysv4)
10071       case $host_vendor in
10072         sni)
10073           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10074           hardcode_direct=yes # is this really true???
10075         ;;
10076         siemens)
10077           ## LD is ld it makes a PLAMLIB
10078           ## CC just makes a GrossModule.
10079           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10080           reload_cmds='$CC -r -o $output$reload_objs'
10081           hardcode_direct=no
10082         ;;
10083         motorola)
10084           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10085           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10086         ;;
10087       esac
10088       runpath_var='LD_RUN_PATH'
10089       hardcode_shlibpath_var=no
10090       ;;
10091
10092     sysv4.3*)
10093       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10094       hardcode_shlibpath_var=no
10095       export_dynamic_flag_spec='-Bexport'
10096       ;;
10097
10098     sysv4*MP*)
10099       if test -d /usr/nec; then
10100         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10101         hardcode_shlibpath_var=no
10102         runpath_var=LD_RUN_PATH
10103         hardcode_runpath_var=yes
10104         ld_shlibs=yes
10105       fi
10106       ;;
10107
10108     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10109       no_undefined_flag='${wl}-z,text'
10110       archive_cmds_need_lc=no
10111       hardcode_shlibpath_var=no
10112       runpath_var='LD_RUN_PATH'
10113
10114       if test "$GCC" = yes; then
10115         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10116         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10117       else
10118         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10119         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10120       fi
10121       ;;
10122
10123     sysv5* | sco3.2v5* | sco5v6*)
10124       # Note: We can NOT use -z defs as we might desire, because we do not
10125       # link with -lc, and that would cause any symbols used from libc to
10126       # always be unresolved, which means just about no library would
10127       # ever link correctly.  If we're not using GNU ld we use -z text
10128       # though, which does catch some bad symbols but isn't as heavy-handed
10129       # as -z defs.
10130       no_undefined_flag='${wl}-z,text'
10131       allow_undefined_flag='${wl}-z,nodefs'
10132       archive_cmds_need_lc=no
10133       hardcode_shlibpath_var=no
10134       hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
10135       hardcode_libdir_separator=':'
10136       link_all_deplibs=yes
10137       export_dynamic_flag_spec='${wl}-Bexport'
10138       runpath_var='LD_RUN_PATH'
10139
10140       if test "$GCC" = yes; then
10141         archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10142         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10143       else
10144         archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10145         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10146       fi
10147       ;;
10148
10149     uts4*)
10150       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10151       hardcode_libdir_flag_spec='-L$libdir'
10152       hardcode_shlibpath_var=no
10153       ;;
10154
10155     *)
10156       ld_shlibs=no
10157       ;;
10158     esac
10159   fi
10160
10161 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
10162 echo "${ECHO_T}$ld_shlibs" >&6; }
10163 test "$ld_shlibs" = no && can_build_shared=no
10164
10165 #
10166 # Do we need to explicitly link libc?
10167 #
10168 case "x$archive_cmds_need_lc" in
10169 x|xyes)
10170   # Assume -lc should be added
10171   archive_cmds_need_lc=yes
10172
10173   if test "$enable_shared" = yes && test "$GCC" = yes; then
10174     case $archive_cmds in
10175     *'~'*)
10176       # FIXME: we may have to deal with multi-command sequences.
10177       ;;
10178     '$CC '*)
10179       # Test whether the compiler implicitly links with -lc since on some
10180       # systems, -lgcc has to come before -lc. If gcc already passes -lc
10181       # to ld, don't add -lc before -lgcc.
10182       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
10183 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
10184       $rm conftest*
10185       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10186
10187       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10188   (eval $ac_compile) 2>&5
10189   ac_status=$?
10190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10191   (exit $ac_status); } 2>conftest.err; then
10192         soname=conftest
10193         lib=conftest
10194         libobjs=conftest.$ac_objext
10195         deplibs=
10196         wl=$lt_prog_compiler_wl
10197         pic_flag=$lt_prog_compiler_pic
10198         compiler_flags=-v
10199         linker_flags=-v
10200         verstring=
10201         output_objdir=.
10202         libname=conftest
10203         lt_save_allow_undefined_flag=$allow_undefined_flag
10204         allow_undefined_flag=
10205         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
10206   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
10207   ac_status=$?
10208   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10209   (exit $ac_status); }
10210         then
10211           archive_cmds_need_lc=no
10212         else
10213           archive_cmds_need_lc=yes
10214         fi
10215         allow_undefined_flag=$lt_save_allow_undefined_flag
10216       else
10217         cat conftest.err 1>&5
10218       fi
10219       $rm conftest*
10220       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
10221 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
10222       ;;
10223     esac
10224   fi
10225   ;;
10226 esac
10227
10228 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
10229 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
10230 library_names_spec=
10231 libname_spec='lib$name'
10232 soname_spec=
10233 shrext_cmds=".so"
10234 postinstall_cmds=
10235 postuninstall_cmds=
10236 finish_cmds=
10237 finish_eval=
10238 shlibpath_var=
10239 shlibpath_overrides_runpath=unknown
10240 version_type=none
10241 dynamic_linker="$host_os ld.so"
10242 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10243
10244 if test "$GCC" = yes; then
10245   case $host_os in
10246     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10247     *) lt_awk_arg="/^libraries:/" ;;
10248   esac
10249   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10250   if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
10251     # if the path contains ";" then we assume it to be the separator
10252     # otherwise default to the standard path separator (i.e. ":") - it is
10253     # assumed that no part of a normal pathname contains ";" but that should
10254     # okay in the real world where ";" in dirpaths is itself problematic.
10255     lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
10256   else
10257     lt_search_path_spec=`echo "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
10258   fi
10259   # Ok, now we have the path, separated by spaces, we can step through it
10260   # and add multilib dir if necessary.
10261   lt_tmp_lt_search_path_spec=
10262   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10263   for lt_sys_path in $lt_search_path_spec; do
10264     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10265       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10266     else
10267       test -d "$lt_sys_path" && \
10268         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10269     fi
10270   done
10271   lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
10272 BEGIN {RS=" "; FS="/|\n";} {
10273   lt_foo="";
10274   lt_count=0;
10275   for (lt_i = NF; lt_i > 0; lt_i--) {
10276     if ($lt_i != "" && $lt_i != ".") {
10277       if ($lt_i == "..") {
10278         lt_count++;
10279       } else {
10280         if (lt_count == 0) {
10281           lt_foo="/" $lt_i lt_foo;
10282         } else {
10283           lt_count--;
10284         }
10285       }
10286     }
10287   }
10288   if (lt_foo != "") { lt_freq[lt_foo]++; }
10289   if (lt_freq[lt_foo] == 1) { print lt_foo; }
10290 }'`
10291   sys_lib_search_path_spec=`echo $lt_search_path_spec`
10292 else
10293   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10294 fi
10295 need_lib_prefix=unknown
10296 hardcode_into_libs=no
10297
10298 # when you set need_version to no, make sure it does not cause -set_version
10299 # flags to be left without arguments
10300 need_version=unknown
10301
10302 case $host_os in
10303 aix3*)
10304   version_type=linux
10305   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10306   shlibpath_var=LIBPATH
10307
10308   # AIX 3 has no versioning support, so we append a major version to the name.
10309   soname_spec='${libname}${release}${shared_ext}$major'
10310   ;;
10311
10312 aix4* | aix5*)
10313   version_type=linux
10314   need_lib_prefix=no
10315   need_version=no
10316   hardcode_into_libs=yes
10317   if test "$host_cpu" = ia64; then
10318     # AIX 5 supports IA64
10319     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10320     shlibpath_var=LD_LIBRARY_PATH
10321   else
10322     # With GCC up to 2.95.x, collect2 would create an import file
10323     # for dependence libraries.  The import file would start with
10324     # the line `#! .'.  This would cause the generated library to
10325     # depend on `.', always an invalid library.  This was fixed in
10326     # development snapshots of GCC prior to 3.0.
10327     case $host_os in
10328       aix4 | aix4.[01] | aix4.[01].*)
10329       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10330            echo ' yes '
10331            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
10332         :
10333       else
10334         can_build_shared=no
10335       fi
10336       ;;
10337     esac
10338     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10339     # soname into executable. Probably we can add versioning support to
10340     # collect2, so additional links can be useful in future.
10341     if test "$aix_use_runtimelinking" = yes; then
10342       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10343       # instead of lib<name>.a to let people know that these are not
10344       # typical AIX shared libraries.
10345       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10346     else
10347       # We preserve .a as extension for shared libraries through AIX4.2
10348       # and later when we are not doing run time linking.
10349       library_names_spec='${libname}${release}.a $libname.a'
10350       soname_spec='${libname}${release}${shared_ext}$major'
10351     fi
10352     shlibpath_var=LIBPATH
10353   fi
10354   ;;
10355
10356 amigaos*)
10357   library_names_spec='$libname.ixlibrary $libname.a'
10358   # Create ${libname}_ixlibrary.a entries in /sys/libs.
10359   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'
10360   ;;
10361
10362 beos*)
10363   library_names_spec='${libname}${shared_ext}'
10364   dynamic_linker="$host_os ld.so"
10365   shlibpath_var=LIBRARY_PATH
10366   ;;
10367
10368 bsdi[45]*)
10369   version_type=linux
10370   need_version=no
10371   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10372   soname_spec='${libname}${release}${shared_ext}$major'
10373   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10374   shlibpath_var=LD_LIBRARY_PATH
10375   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10376   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10377   # the default ld.so.conf also contains /usr/contrib/lib and
10378   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10379   # libtool to hard-code these into programs
10380   ;;
10381
10382 cygwin* | mingw* | pw32*)
10383   version_type=windows
10384   shrext_cmds=".dll"
10385   need_version=no
10386   need_lib_prefix=no
10387
10388   case $GCC,$host_os in
10389   yes,cygwin* | yes,mingw* | yes,pw32*)
10390     library_names_spec='$libname.dll.a'
10391     # DLL is installed to $(libdir)/../bin by postinstall_cmds
10392     postinstall_cmds='base_file=`basename \${file}`~
10393       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
10394       dldir=$destdir/`dirname \$dlpath`~
10395       test -d \$dldir || mkdir -p \$dldir~
10396       $install_prog $dir/$dlname \$dldir/$dlname~
10397       chmod a+x \$dldir/$dlname'
10398     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10399       dlpath=$dir/\$dldll~
10400        $rm \$dlpath'
10401     shlibpath_overrides_runpath=yes
10402
10403     case $host_os in
10404     cygwin*)
10405       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10406       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10407       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
10408       ;;
10409     mingw*)
10410       # MinGW DLLs use traditional 'lib' prefix
10411       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10412       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10413       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
10414         # It is most probably a Windows format PATH printed by
10415         # mingw gcc, but we are running on Cygwin. Gcc prints its search
10416         # path with ; separators, and with drive letters. We can handle the
10417         # drive letters (cygwin fileutils understands them), so leave them,
10418         # especially as we might pass files found there to a mingw objdump,
10419         # which wouldn't understand a cygwinified path. Ahh.
10420         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10421       else
10422         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
10423       fi
10424       ;;
10425     pw32*)
10426       # pw32 DLLs use 'pw' prefix rather than 'lib'
10427       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10428       ;;
10429     esac
10430     ;;
10431
10432   *)
10433     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10434     ;;
10435   esac
10436   dynamic_linker='Win32 ld.exe'
10437   # FIXME: first we should search . and the directory the executable is in
10438   shlibpath_var=PATH
10439   ;;
10440
10441 darwin* | rhapsody*)
10442   dynamic_linker="$host_os dyld"
10443   version_type=darwin
10444   need_lib_prefix=no
10445   need_version=no
10446   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10447   soname_spec='${libname}${release}${major}$shared_ext'
10448   shlibpath_overrides_runpath=yes
10449   shlibpath_var=DYLD_LIBRARY_PATH
10450   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10451   
10452   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 
10453   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10454   ;;
10455
10456 dgux*)
10457   version_type=linux
10458   need_lib_prefix=no
10459   need_version=no
10460   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10461   soname_spec='${libname}${release}${shared_ext}$major'
10462   shlibpath_var=LD_LIBRARY_PATH
10463   ;;
10464
10465 freebsd1*)
10466   dynamic_linker=no
10467   ;;
10468
10469 freebsd* | dragonfly*)
10470   # DragonFly does not have aout.  When/if they implement a new
10471   # versioning mechanism, adjust this.
10472   if test -x /usr/bin/objformat; then
10473     objformat=`/usr/bin/objformat`
10474   else
10475     case $host_os in
10476     freebsd[123]*) objformat=aout ;;
10477     *) objformat=elf ;;
10478     esac
10479   fi
10480   version_type=freebsd-$objformat
10481   case $version_type in
10482     freebsd-elf*)
10483       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10484       need_version=no
10485       need_lib_prefix=no
10486       ;;
10487     freebsd-*)
10488       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10489       need_version=yes
10490       ;;
10491   esac
10492   shlibpath_var=LD_LIBRARY_PATH
10493   case $host_os in
10494   freebsd2*)
10495     shlibpath_overrides_runpath=yes
10496     ;;
10497   freebsd3.[01]* | freebsdelf3.[01]*)
10498     shlibpath_overrides_runpath=yes
10499     hardcode_into_libs=yes
10500     ;;
10501   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10502   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10503     shlibpath_overrides_runpath=no
10504     hardcode_into_libs=yes
10505     ;;
10506   *) # from 4.6 on, and DragonFly
10507     shlibpath_overrides_runpath=yes
10508     hardcode_into_libs=yes
10509     ;;
10510   esac
10511   ;;
10512
10513 gnu*)
10514   version_type=linux
10515   need_lib_prefix=no
10516   need_version=no
10517   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10518   soname_spec='${libname}${release}${shared_ext}$major'
10519   shlibpath_var=LD_LIBRARY_PATH
10520   hardcode_into_libs=yes
10521   ;;
10522
10523 hpux9* | hpux10* | hpux11*)
10524   # Give a soname corresponding to the major version so that dld.sl refuses to
10525   # link against other versions.
10526   version_type=sunos
10527   need_lib_prefix=no
10528   need_version=no
10529   case $host_cpu in
10530   ia64*)
10531     shrext_cmds='.so'
10532     hardcode_into_libs=yes
10533     dynamic_linker="$host_os dld.so"
10534     shlibpath_var=LD_LIBRARY_PATH
10535     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10536     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10537     soname_spec='${libname}${release}${shared_ext}$major'
10538     if test "X$HPUX_IA64_MODE" = X32; then
10539       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10540     else
10541       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10542     fi
10543     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10544     ;;
10545    hppa*64*)
10546      shrext_cmds='.sl'
10547      hardcode_into_libs=yes
10548      dynamic_linker="$host_os dld.sl"
10549      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10550      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10551      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10552      soname_spec='${libname}${release}${shared_ext}$major'
10553      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10554      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10555      ;;
10556    *)
10557     shrext_cmds='.sl'
10558     dynamic_linker="$host_os dld.sl"
10559     shlibpath_var=SHLIB_PATH
10560     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10561     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10562     soname_spec='${libname}${release}${shared_ext}$major'
10563     ;;
10564   esac
10565   # HP-UX runs *really* slowly unless shared libraries are mode 555.
10566   postinstall_cmds='chmod 555 $lib'
10567   ;;
10568
10569 interix[3-9]*)
10570   version_type=linux
10571   need_lib_prefix=no
10572   need_version=no
10573   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10574   soname_spec='${libname}${release}${shared_ext}$major'
10575   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10576   shlibpath_var=LD_LIBRARY_PATH
10577   shlibpath_overrides_runpath=no
10578   hardcode_into_libs=yes
10579   ;;
10580
10581 irix5* | irix6* | nonstopux*)
10582   case $host_os in
10583     nonstopux*) version_type=nonstopux ;;
10584     *)
10585         if test "$lt_cv_prog_gnu_ld" = yes; then
10586                 version_type=linux
10587         else
10588                 version_type=irix
10589         fi ;;
10590   esac
10591   need_lib_prefix=no
10592   need_version=no
10593   soname_spec='${libname}${release}${shared_ext}$major'
10594   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10595   case $host_os in
10596   irix5* | nonstopux*)
10597     libsuff= shlibsuff=
10598     ;;
10599   *)
10600     case $LD in # libtool.m4 will add one of these switches to LD
10601     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10602       libsuff= shlibsuff= libmagic=32-bit;;
10603     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10604       libsuff=32 shlibsuff=N32 libmagic=N32;;
10605     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10606       libsuff=64 shlibsuff=64 libmagic=64-bit;;
10607     *) libsuff= shlibsuff= libmagic=never-match;;
10608     esac
10609     ;;
10610   esac
10611   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10612   shlibpath_overrides_runpath=no
10613   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10614   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10615   hardcode_into_libs=yes
10616   ;;
10617
10618 # No shared lib support for Linux oldld, aout, or coff.
10619 linux*oldld* | linux*aout* | linux*coff*)
10620   dynamic_linker=no
10621   ;;
10622
10623 # This must be Linux ELF.
10624 linux* | k*bsd*-gnu)
10625   version_type=linux
10626   need_lib_prefix=no
10627   need_version=no
10628   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10629   soname_spec='${libname}${release}${shared_ext}$major'
10630   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10631   shlibpath_var=LD_LIBRARY_PATH
10632   shlibpath_overrides_runpath=no
10633   # This implies no fast_install, which is unacceptable.
10634   # Some rework will be needed to allow for fast_install
10635   # before this can be enabled.
10636   hardcode_into_libs=yes
10637
10638   # Append ld.so.conf contents to the search path
10639   if test -f /etc/ld.so.conf; then
10640     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[      ]*hwcap[        ]/d;s/[:,       ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
10641     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10642   fi
10643
10644   # We used to test for /lib/ld.so.1 and disable shared libraries on
10645   # powerpc, because MkLinux only supported shared libraries with the
10646   # GNU dynamic linker.  Since this was broken with cross compilers,
10647   # most powerpc-linux boxes support dynamic linking these days and
10648   # people can always --disable-shared, the test was removed, and we
10649   # assume the GNU/Linux dynamic linker is in use.
10650   dynamic_linker='GNU/Linux ld.so'
10651   ;;
10652
10653 netbsdelf*-gnu)
10654   version_type=linux
10655   need_lib_prefix=no
10656   need_version=no
10657   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10658   soname_spec='${libname}${release}${shared_ext}$major'
10659   shlibpath_var=LD_LIBRARY_PATH
10660   shlibpath_overrides_runpath=no
10661   hardcode_into_libs=yes
10662   dynamic_linker='NetBSD ld.elf_so'
10663   ;;
10664
10665 netbsd*)
10666   version_type=sunos
10667   need_lib_prefix=no
10668   need_version=no
10669   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10670     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10671     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10672     dynamic_linker='NetBSD (a.out) ld.so'
10673   else
10674     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10675     soname_spec='${libname}${release}${shared_ext}$major'
10676     dynamic_linker='NetBSD ld.elf_so'
10677   fi
10678   shlibpath_var=LD_LIBRARY_PATH
10679   shlibpath_overrides_runpath=yes
10680   hardcode_into_libs=yes
10681   ;;
10682
10683 newsos6)
10684   version_type=linux
10685   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10686   shlibpath_var=LD_LIBRARY_PATH
10687   shlibpath_overrides_runpath=yes
10688   ;;
10689
10690 nto-qnx*)
10691   version_type=linux
10692   need_lib_prefix=no
10693   need_version=no
10694   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10695   soname_spec='${libname}${release}${shared_ext}$major'
10696   shlibpath_var=LD_LIBRARY_PATH
10697   shlibpath_overrides_runpath=yes
10698   ;;
10699
10700 openbsd*)
10701   version_type=sunos
10702   sys_lib_dlsearch_path_spec="/usr/lib"
10703   need_lib_prefix=no
10704   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10705   case $host_os in
10706     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10707     *)                         need_version=no  ;;
10708   esac
10709   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10710   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10711   shlibpath_var=LD_LIBRARY_PATH
10712   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10713     case $host_os in
10714       openbsd2.[89] | openbsd2.[89].*)
10715         shlibpath_overrides_runpath=no
10716         ;;
10717       *)
10718         shlibpath_overrides_runpath=yes
10719         ;;
10720       esac
10721   else
10722     shlibpath_overrides_runpath=yes
10723   fi
10724   ;;
10725
10726 os2*)
10727   libname_spec='$name'
10728   shrext_cmds=".dll"
10729   need_lib_prefix=no
10730   library_names_spec='$libname${shared_ext} $libname.a'
10731   dynamic_linker='OS/2 ld.exe'
10732   shlibpath_var=LIBPATH
10733   ;;
10734
10735 osf3* | osf4* | osf5*)
10736   version_type=osf
10737   need_lib_prefix=no
10738   need_version=no
10739   soname_spec='${libname}${release}${shared_ext}$major'
10740   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10741   shlibpath_var=LD_LIBRARY_PATH
10742   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10743   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10744   ;;
10745
10746 rdos*)
10747   dynamic_linker=no
10748   ;;
10749
10750 solaris*)
10751   version_type=linux
10752   need_lib_prefix=no
10753   need_version=no
10754   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10755   soname_spec='${libname}${release}${shared_ext}$major'
10756   shlibpath_var=LD_LIBRARY_PATH
10757   shlibpath_overrides_runpath=yes
10758   hardcode_into_libs=yes
10759   # ldd complains unless libraries are executable
10760   postinstall_cmds='chmod +x $lib'
10761   ;;
10762
10763 sunos4*)
10764   version_type=sunos
10765   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10766   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10767   shlibpath_var=LD_LIBRARY_PATH
10768   shlibpath_overrides_runpath=yes
10769   if test "$with_gnu_ld" = yes; then
10770     need_lib_prefix=no
10771   fi
10772   need_version=yes
10773   ;;
10774
10775 sysv4 | sysv4.3*)
10776   version_type=linux
10777   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10778   soname_spec='${libname}${release}${shared_ext}$major'
10779   shlibpath_var=LD_LIBRARY_PATH
10780   case $host_vendor in
10781     sni)
10782       shlibpath_overrides_runpath=no
10783       need_lib_prefix=no
10784       export_dynamic_flag_spec='${wl}-Blargedynsym'
10785       runpath_var=LD_RUN_PATH
10786       ;;
10787     siemens)
10788       need_lib_prefix=no
10789       ;;
10790     motorola)
10791       need_lib_prefix=no
10792       need_version=no
10793       shlibpath_overrides_runpath=no
10794       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10795       ;;
10796   esac
10797   ;;
10798
10799 sysv4*MP*)
10800   if test -d /usr/nec ;then
10801     version_type=linux
10802     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10803     soname_spec='$libname${shared_ext}.$major'
10804     shlibpath_var=LD_LIBRARY_PATH
10805   fi
10806   ;;
10807
10808 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10809   version_type=freebsd-elf
10810   need_lib_prefix=no
10811   need_version=no
10812   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10813   soname_spec='${libname}${release}${shared_ext}$major'
10814   shlibpath_var=LD_LIBRARY_PATH
10815   hardcode_into_libs=yes
10816   if test "$with_gnu_ld" = yes; then
10817     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10818     shlibpath_overrides_runpath=no
10819   else
10820     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10821     shlibpath_overrides_runpath=yes
10822     case $host_os in
10823       sco3.2v5*)
10824         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10825         ;;
10826     esac
10827   fi
10828   sys_lib_dlsearch_path_spec='/usr/lib'
10829   ;;
10830
10831 uts4*)
10832   version_type=linux
10833   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10834   soname_spec='${libname}${release}${shared_ext}$major'
10835   shlibpath_var=LD_LIBRARY_PATH
10836   ;;
10837
10838 *)
10839   dynamic_linker=no
10840   ;;
10841 esac
10842 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10843 echo "${ECHO_T}$dynamic_linker" >&6; }
10844 test "$dynamic_linker" = no && can_build_shared=no
10845
10846 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10847 if test "$GCC" = yes; then
10848   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10849 fi
10850
10851 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10852 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
10853 hardcode_action=
10854 if test -n "$hardcode_libdir_flag_spec" || \
10855    test -n "$runpath_var" || \
10856    test "X$hardcode_automatic" = "Xyes" ; then
10857
10858   # We can hardcode non-existant directories.
10859   if test "$hardcode_direct" != no &&
10860      # If the only mechanism to avoid hardcoding is shlibpath_var, we
10861      # have to relink, otherwise we might link with an installed library
10862      # when we should be linking with a yet-to-be-installed one
10863      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
10864      test "$hardcode_minus_L" != no; then
10865     # Linking always hardcodes the temporary library directory.
10866     hardcode_action=relink
10867   else
10868     # We can link without hardcoding, and we can hardcode nonexisting dirs.
10869     hardcode_action=immediate
10870   fi
10871 else
10872   # We cannot hardcode anything, or else we can only hardcode existing
10873   # directories.
10874   hardcode_action=unsupported
10875 fi
10876 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
10877 echo "${ECHO_T}$hardcode_action" >&6; }
10878
10879 if test "$hardcode_action" = relink; then
10880   # Fast installation is not supported
10881   enable_fast_install=no
10882 elif test "$shlibpath_overrides_runpath" = yes ||
10883      test "$enable_shared" = no; then
10884   # Fast installation is not necessary
10885   enable_fast_install=needless
10886 fi
10887
10888 striplib=
10889 old_striplib=
10890 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10891 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
10892 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
10893   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10894   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10895   { echo "$as_me:$LINENO: result: yes" >&5
10896 echo "${ECHO_T}yes" >&6; }
10897 else
10898 # FIXME - insert some real tests, host_os isn't really good enough
10899   case $host_os in
10900    darwin*)
10901        if test -n "$STRIP" ; then
10902          striplib="$STRIP -x"
10903          old_striplib="$STRIP -S"
10904          { echo "$as_me:$LINENO: result: yes" >&5
10905 echo "${ECHO_T}yes" >&6; }
10906        else
10907   { echo "$as_me:$LINENO: result: no" >&5
10908 echo "${ECHO_T}no" >&6; }
10909 fi
10910        ;;
10911    *)
10912   { echo "$as_me:$LINENO: result: no" >&5
10913 echo "${ECHO_T}no" >&6; }
10914     ;;
10915   esac
10916 fi
10917
10918 if test "x$enable_dlopen" != xyes; then
10919   enable_dlopen=unknown
10920   enable_dlopen_self=unknown
10921   enable_dlopen_self_static=unknown
10922 else
10923   lt_cv_dlopen=no
10924   lt_cv_dlopen_libs=
10925
10926   case $host_os in
10927   beos*)
10928     lt_cv_dlopen="load_add_on"
10929     lt_cv_dlopen_libs=
10930     lt_cv_dlopen_self=yes
10931     ;;
10932
10933   mingw* | pw32*)
10934     lt_cv_dlopen="LoadLibrary"
10935     lt_cv_dlopen_libs=
10936    ;;
10937
10938   cygwin*)
10939     lt_cv_dlopen="dlopen"
10940     lt_cv_dlopen_libs=
10941    ;;
10942
10943   darwin*)
10944   # if libdl is installed we need to link against it
10945     { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10946 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10947 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10948   echo $ECHO_N "(cached) $ECHO_C" >&6
10949 else
10950   ac_check_lib_save_LIBS=$LIBS
10951 LIBS="-ldl  $LIBS"
10952 cat >conftest.$ac_ext <<_ACEOF
10953 /* confdefs.h.  */
10954 _ACEOF
10955 cat confdefs.h >>conftest.$ac_ext
10956 cat >>conftest.$ac_ext <<_ACEOF
10957 /* end confdefs.h.  */
10958
10959 /* Override any GCC internal prototype to avoid an error.
10960    Use char because int might match the return type of a GCC
10961    builtin and then its argument prototype would still apply.  */
10962 #ifdef __cplusplus
10963 extern "C"
10964 #endif
10965 char dlopen ();
10966 int
10967 main ()
10968 {
10969 return dlopen ();
10970   ;
10971   return 0;
10972 }
10973 _ACEOF
10974 rm -f conftest.$ac_objext conftest$ac_exeext
10975 if { (ac_try="$ac_link"
10976 case "(($ac_try" in
10977   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10978   *) ac_try_echo=$ac_try;;
10979 esac
10980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10981   (eval "$ac_link") 2>conftest.er1
10982   ac_status=$?
10983   grep -v '^ *+' conftest.er1 >conftest.err
10984   rm -f conftest.er1
10985   cat conftest.err >&5
10986   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10987   (exit $ac_status); } && {
10988          test -z "$ac_c_werror_flag" ||
10989          test ! -s conftest.err
10990        } && test -s conftest$ac_exeext &&
10991        $as_test_x conftest$ac_exeext; then
10992   ac_cv_lib_dl_dlopen=yes
10993 else
10994   echo "$as_me: failed program was:" >&5
10995 sed 's/^/| /' conftest.$ac_ext >&5
10996
10997         ac_cv_lib_dl_dlopen=no
10998 fi
10999
11000 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11001       conftest$ac_exeext conftest.$ac_ext
11002 LIBS=$ac_check_lib_save_LIBS
11003 fi
11004 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11005 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
11006 if test $ac_cv_lib_dl_dlopen = yes; then
11007   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11008 else
11009   
11010     lt_cv_dlopen="dyld"
11011     lt_cv_dlopen_libs=
11012     lt_cv_dlopen_self=yes
11013     
11014 fi
11015
11016    ;;
11017
11018   *)
11019     { echo "$as_me:$LINENO: checking for shl_load" >&5
11020 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
11021 if test "${ac_cv_func_shl_load+set}" = set; then
11022   echo $ECHO_N "(cached) $ECHO_C" >&6
11023 else
11024   cat >conftest.$ac_ext <<_ACEOF
11025 /* confdefs.h.  */
11026 _ACEOF
11027 cat confdefs.h >>conftest.$ac_ext
11028 cat >>conftest.$ac_ext <<_ACEOF
11029 /* end confdefs.h.  */
11030 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
11031    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11032 #define shl_load innocuous_shl_load
11033
11034 /* System header to define __stub macros and hopefully few prototypes,
11035     which can conflict with char shl_load (); below.
11036     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11037     <limits.h> exists even on freestanding compilers.  */
11038
11039 #ifdef __STDC__
11040 # include <limits.h>
11041 #else
11042 # include <assert.h>
11043 #endif
11044
11045 #undef shl_load
11046
11047 /* Override any GCC internal prototype to avoid an error.
11048    Use char because int might match the return type of a GCC
11049    builtin and then its argument prototype would still apply.  */
11050 #ifdef __cplusplus
11051 extern "C"
11052 #endif
11053 char shl_load ();
11054 /* The GNU C library defines this for functions which it implements
11055     to always fail with ENOSYS.  Some functions are actually named
11056     something starting with __ and the normal name is an alias.  */
11057 #if defined __stub_shl_load || defined __stub___shl_load
11058 choke me
11059 #endif
11060
11061 int
11062 main ()
11063 {
11064 return shl_load ();
11065   ;
11066   return 0;
11067 }
11068 _ACEOF
11069 rm -f conftest.$ac_objext conftest$ac_exeext
11070 if { (ac_try="$ac_link"
11071 case "(($ac_try" in
11072   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11073   *) ac_try_echo=$ac_try;;
11074 esac
11075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11076   (eval "$ac_link") 2>conftest.er1
11077   ac_status=$?
11078   grep -v '^ *+' conftest.er1 >conftest.err
11079   rm -f conftest.er1
11080   cat conftest.err >&5
11081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11082   (exit $ac_status); } && {
11083          test -z "$ac_c_werror_flag" ||
11084          test ! -s conftest.err
11085        } && test -s conftest$ac_exeext &&
11086        $as_test_x conftest$ac_exeext; then
11087   ac_cv_func_shl_load=yes
11088 else
11089   echo "$as_me: failed program was:" >&5
11090 sed 's/^/| /' conftest.$ac_ext >&5
11091
11092         ac_cv_func_shl_load=no
11093 fi
11094
11095 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11096       conftest$ac_exeext conftest.$ac_ext
11097 fi
11098 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
11099 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
11100 if test $ac_cv_func_shl_load = yes; then
11101   lt_cv_dlopen="shl_load"
11102 else
11103   { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
11104 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
11105 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
11106   echo $ECHO_N "(cached) $ECHO_C" >&6
11107 else
11108   ac_check_lib_save_LIBS=$LIBS
11109 LIBS="-ldld  $LIBS"
11110 cat >conftest.$ac_ext <<_ACEOF
11111 /* confdefs.h.  */
11112 _ACEOF
11113 cat confdefs.h >>conftest.$ac_ext
11114 cat >>conftest.$ac_ext <<_ACEOF
11115 /* end confdefs.h.  */
11116
11117 /* Override any GCC internal prototype to avoid an error.
11118    Use char because int might match the return type of a GCC
11119    builtin and then its argument prototype would still apply.  */
11120 #ifdef __cplusplus
11121 extern "C"
11122 #endif
11123 char shl_load ();
11124 int
11125 main ()
11126 {
11127 return shl_load ();
11128   ;
11129   return 0;
11130 }
11131 _ACEOF
11132 rm -f conftest.$ac_objext conftest$ac_exeext
11133 if { (ac_try="$ac_link"
11134 case "(($ac_try" in
11135   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11136   *) ac_try_echo=$ac_try;;
11137 esac
11138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11139   (eval "$ac_link") 2>conftest.er1
11140   ac_status=$?
11141   grep -v '^ *+' conftest.er1 >conftest.err
11142   rm -f conftest.er1
11143   cat conftest.err >&5
11144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11145   (exit $ac_status); } && {
11146          test -z "$ac_c_werror_flag" ||
11147          test ! -s conftest.err
11148        } && test -s conftest$ac_exeext &&
11149        $as_test_x conftest$ac_exeext; then
11150   ac_cv_lib_dld_shl_load=yes
11151 else
11152   echo "$as_me: failed program was:" >&5
11153 sed 's/^/| /' conftest.$ac_ext >&5
11154
11155         ac_cv_lib_dld_shl_load=no
11156 fi
11157
11158 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11159       conftest$ac_exeext conftest.$ac_ext
11160 LIBS=$ac_check_lib_save_LIBS
11161 fi
11162 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
11163 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
11164 if test $ac_cv_lib_dld_shl_load = yes; then
11165   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
11166 else
11167   { echo "$as_me:$LINENO: checking for dlopen" >&5
11168 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
11169 if test "${ac_cv_func_dlopen+set}" = set; then
11170   echo $ECHO_N "(cached) $ECHO_C" >&6
11171 else
11172   cat >conftest.$ac_ext <<_ACEOF
11173 /* confdefs.h.  */
11174 _ACEOF
11175 cat confdefs.h >>conftest.$ac_ext
11176 cat >>conftest.$ac_ext <<_ACEOF
11177 /* end confdefs.h.  */
11178 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
11179    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11180 #define dlopen innocuous_dlopen
11181
11182 /* System header to define __stub macros and hopefully few prototypes,
11183     which can conflict with char dlopen (); below.
11184     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11185     <limits.h> exists even on freestanding compilers.  */
11186
11187 #ifdef __STDC__
11188 # include <limits.h>
11189 #else
11190 # include <assert.h>
11191 #endif
11192
11193 #undef dlopen
11194
11195 /* Override any GCC internal prototype to avoid an error.
11196    Use char because int might match the return type of a GCC
11197    builtin and then its argument prototype would still apply.  */
11198 #ifdef __cplusplus
11199 extern "C"
11200 #endif
11201 char dlopen ();
11202 /* The GNU C library defines this for functions which it implements
11203     to always fail with ENOSYS.  Some functions are actually named
11204     something starting with __ and the normal name is an alias.  */
11205 #if defined __stub_dlopen || defined __stub___dlopen
11206 choke me
11207 #endif
11208
11209 int
11210 main ()
11211 {
11212 return dlopen ();
11213   ;
11214   return 0;
11215 }
11216 _ACEOF
11217 rm -f conftest.$ac_objext conftest$ac_exeext
11218 if { (ac_try="$ac_link"
11219 case "(($ac_try" in
11220   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11221   *) ac_try_echo=$ac_try;;
11222 esac
11223 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11224   (eval "$ac_link") 2>conftest.er1
11225   ac_status=$?
11226   grep -v '^ *+' conftest.er1 >conftest.err
11227   rm -f conftest.er1
11228   cat conftest.err >&5
11229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11230   (exit $ac_status); } && {
11231          test -z "$ac_c_werror_flag" ||
11232          test ! -s conftest.err
11233        } && test -s conftest$ac_exeext &&
11234        $as_test_x conftest$ac_exeext; then
11235   ac_cv_func_dlopen=yes
11236 else
11237   echo "$as_me: failed program was:" >&5
11238 sed 's/^/| /' conftest.$ac_ext >&5
11239
11240         ac_cv_func_dlopen=no
11241 fi
11242
11243 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11244       conftest$ac_exeext conftest.$ac_ext
11245 fi
11246 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
11247 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
11248 if test $ac_cv_func_dlopen = yes; then
11249   lt_cv_dlopen="dlopen"
11250 else
11251   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11252 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
11253 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11254   echo $ECHO_N "(cached) $ECHO_C" >&6
11255 else
11256   ac_check_lib_save_LIBS=$LIBS
11257 LIBS="-ldl  $LIBS"
11258 cat >conftest.$ac_ext <<_ACEOF
11259 /* confdefs.h.  */
11260 _ACEOF
11261 cat confdefs.h >>conftest.$ac_ext
11262 cat >>conftest.$ac_ext <<_ACEOF
11263 /* end confdefs.h.  */
11264
11265 /* Override any GCC internal prototype to avoid an error.
11266    Use char because int might match the return type of a GCC
11267    builtin and then its argument prototype would still apply.  */
11268 #ifdef __cplusplus
11269 extern "C"
11270 #endif
11271 char dlopen ();
11272 int
11273 main ()
11274 {
11275 return dlopen ();
11276   ;
11277   return 0;
11278 }
11279 _ACEOF
11280 rm -f conftest.$ac_objext conftest$ac_exeext
11281 if { (ac_try="$ac_link"
11282 case "(($ac_try" in
11283   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11284   *) ac_try_echo=$ac_try;;
11285 esac
11286 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11287   (eval "$ac_link") 2>conftest.er1
11288   ac_status=$?
11289   grep -v '^ *+' conftest.er1 >conftest.err
11290   rm -f conftest.er1
11291   cat conftest.err >&5
11292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11293   (exit $ac_status); } && {
11294          test -z "$ac_c_werror_flag" ||
11295          test ! -s conftest.err
11296        } && test -s conftest$ac_exeext &&
11297        $as_test_x conftest$ac_exeext; then
11298   ac_cv_lib_dl_dlopen=yes
11299 else
11300   echo "$as_me: failed program was:" >&5
11301 sed 's/^/| /' conftest.$ac_ext >&5
11302
11303         ac_cv_lib_dl_dlopen=no
11304 fi
11305
11306 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11307       conftest$ac_exeext conftest.$ac_ext
11308 LIBS=$ac_check_lib_save_LIBS
11309 fi
11310 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11311 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
11312 if test $ac_cv_lib_dl_dlopen = yes; then
11313   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11314 else
11315   { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
11316 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
11317 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
11318   echo $ECHO_N "(cached) $ECHO_C" >&6
11319 else
11320   ac_check_lib_save_LIBS=$LIBS
11321 LIBS="-lsvld  $LIBS"
11322 cat >conftest.$ac_ext <<_ACEOF
11323 /* confdefs.h.  */
11324 _ACEOF
11325 cat confdefs.h >>conftest.$ac_ext
11326 cat >>conftest.$ac_ext <<_ACEOF
11327 /* end confdefs.h.  */
11328
11329 /* Override any GCC internal prototype to avoid an error.
11330    Use char because int might match the return type of a GCC
11331    builtin and then its argument prototype would still apply.  */
11332 #ifdef __cplusplus
11333 extern "C"
11334 #endif
11335 char dlopen ();
11336 int
11337 main ()
11338 {
11339 return dlopen ();
11340   ;
11341   return 0;
11342 }
11343 _ACEOF
11344 rm -f conftest.$ac_objext conftest$ac_exeext
11345 if { (ac_try="$ac_link"
11346 case "(($ac_try" in
11347   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11348   *) ac_try_echo=$ac_try;;
11349 esac
11350 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11351   (eval "$ac_link") 2>conftest.er1
11352   ac_status=$?
11353   grep -v '^ *+' conftest.er1 >conftest.err
11354   rm -f conftest.er1
11355   cat conftest.err >&5
11356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11357   (exit $ac_status); } && {
11358          test -z "$ac_c_werror_flag" ||
11359          test ! -s conftest.err
11360        } && test -s conftest$ac_exeext &&
11361        $as_test_x conftest$ac_exeext; then
11362   ac_cv_lib_svld_dlopen=yes
11363 else
11364   echo "$as_me: failed program was:" >&5
11365 sed 's/^/| /' conftest.$ac_ext >&5
11366
11367         ac_cv_lib_svld_dlopen=no
11368 fi
11369
11370 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11371       conftest$ac_exeext conftest.$ac_ext
11372 LIBS=$ac_check_lib_save_LIBS
11373 fi
11374 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
11375 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
11376 if test $ac_cv_lib_svld_dlopen = yes; then
11377   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11378 else
11379   { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
11380 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
11381 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
11382   echo $ECHO_N "(cached) $ECHO_C" >&6
11383 else
11384   ac_check_lib_save_LIBS=$LIBS
11385 LIBS="-ldld  $LIBS"
11386 cat >conftest.$ac_ext <<_ACEOF
11387 /* confdefs.h.  */
11388 _ACEOF
11389 cat confdefs.h >>conftest.$ac_ext
11390 cat >>conftest.$ac_ext <<_ACEOF
11391 /* end confdefs.h.  */
11392
11393 /* Override any GCC internal prototype to avoid an error.
11394    Use char because int might match the return type of a GCC
11395    builtin and then its argument prototype would still apply.  */
11396 #ifdef __cplusplus
11397 extern "C"
11398 #endif
11399 char dld_link ();
11400 int
11401 main ()
11402 {
11403 return dld_link ();
11404   ;
11405   return 0;
11406 }
11407 _ACEOF
11408 rm -f conftest.$ac_objext conftest$ac_exeext
11409 if { (ac_try="$ac_link"
11410 case "(($ac_try" in
11411   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11412   *) ac_try_echo=$ac_try;;
11413 esac
11414 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11415   (eval "$ac_link") 2>conftest.er1
11416   ac_status=$?
11417   grep -v '^ *+' conftest.er1 >conftest.err
11418   rm -f conftest.er1
11419   cat conftest.err >&5
11420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11421   (exit $ac_status); } && {
11422          test -z "$ac_c_werror_flag" ||
11423          test ! -s conftest.err
11424        } && test -s conftest$ac_exeext &&
11425        $as_test_x conftest$ac_exeext; then
11426   ac_cv_lib_dld_dld_link=yes
11427 else
11428   echo "$as_me: failed program was:" >&5
11429 sed 's/^/| /' conftest.$ac_ext >&5
11430
11431         ac_cv_lib_dld_dld_link=no
11432 fi
11433
11434 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11435       conftest$ac_exeext conftest.$ac_ext
11436 LIBS=$ac_check_lib_save_LIBS
11437 fi
11438 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
11439 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
11440 if test $ac_cv_lib_dld_dld_link = yes; then
11441   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
11442 fi
11443
11444               
11445 fi
11446
11447             
11448 fi
11449
11450           
11451 fi
11452
11453         
11454 fi
11455
11456       
11457 fi
11458
11459     ;;
11460   esac
11461
11462   if test "x$lt_cv_dlopen" != xno; then
11463     enable_dlopen=yes
11464   else
11465     enable_dlopen=no
11466   fi
11467
11468   case $lt_cv_dlopen in
11469   dlopen)
11470     save_CPPFLAGS="$CPPFLAGS"
11471     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11472
11473     save_LDFLAGS="$LDFLAGS"
11474     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11475
11476     save_LIBS="$LIBS"
11477     LIBS="$lt_cv_dlopen_libs $LIBS"
11478
11479     { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
11480 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
11481 if test "${lt_cv_dlopen_self+set}" = set; then
11482   echo $ECHO_N "(cached) $ECHO_C" >&6
11483 else
11484           if test "$cross_compiling" = yes; then :
11485   lt_cv_dlopen_self=cross
11486 else
11487   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11488   lt_status=$lt_dlunknown
11489   cat > conftest.$ac_ext <<EOF
11490 #line __oline__ "configure"
11491 #include "confdefs.h"
11492
11493 #if HAVE_DLFCN_H
11494 #include <dlfcn.h>
11495 #endif
11496
11497 #include <stdio.h>
11498
11499 #ifdef RTLD_GLOBAL
11500 #  define LT_DLGLOBAL           RTLD_GLOBAL
11501 #else
11502 #  ifdef DL_GLOBAL
11503 #    define LT_DLGLOBAL         DL_GLOBAL
11504 #  else
11505 #    define LT_DLGLOBAL         0
11506 #  endif
11507 #endif
11508
11509 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11510    find out it does not work in some platform. */
11511 #ifndef LT_DLLAZY_OR_NOW
11512 #  ifdef RTLD_LAZY
11513 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11514 #  else
11515 #    ifdef DL_LAZY
11516 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11517 #    else
11518 #      ifdef RTLD_NOW
11519 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11520 #      else
11521 #        ifdef DL_NOW
11522 #          define LT_DLLAZY_OR_NOW      DL_NOW
11523 #        else
11524 #          define LT_DLLAZY_OR_NOW      0
11525 #        endif
11526 #      endif
11527 #    endif
11528 #  endif
11529 #endif
11530
11531 #ifdef __cplusplus
11532 extern "C" void exit (int);
11533 #endif
11534
11535 void fnord() { int i=42;}
11536 int main ()
11537 {
11538   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11539   int status = $lt_dlunknown;
11540
11541   if (self)
11542     {
11543       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11544       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11545       /* dlclose (self); */
11546     }
11547   else
11548     puts (dlerror ());
11549
11550     exit (status);
11551 }
11552 EOF
11553   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11554   (eval $ac_link) 2>&5
11555   ac_status=$?
11556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11557   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11558     (./conftest; exit; ) >&5 2>/dev/null
11559     lt_status=$?
11560     case x$lt_status in
11561       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11562       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11563       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11564     esac
11565   else :
11566     # compilation failed
11567     lt_cv_dlopen_self=no
11568   fi
11569 fi
11570 rm -fr conftest*
11571
11572     
11573 fi
11574 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
11575 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
11576
11577     if test "x$lt_cv_dlopen_self" = xyes; then
11578       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11579       { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
11580 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
11581 if test "${lt_cv_dlopen_self_static+set}" = set; then
11582   echo $ECHO_N "(cached) $ECHO_C" >&6
11583 else
11584           if test "$cross_compiling" = yes; then :
11585   lt_cv_dlopen_self_static=cross
11586 else
11587   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11588   lt_status=$lt_dlunknown
11589   cat > conftest.$ac_ext <<EOF
11590 #line __oline__ "configure"
11591 #include "confdefs.h"
11592
11593 #if HAVE_DLFCN_H
11594 #include <dlfcn.h>
11595 #endif
11596
11597 #include <stdio.h>
11598
11599 #ifdef RTLD_GLOBAL
11600 #  define LT_DLGLOBAL           RTLD_GLOBAL
11601 #else
11602 #  ifdef DL_GLOBAL
11603 #    define LT_DLGLOBAL         DL_GLOBAL
11604 #  else
11605 #    define LT_DLGLOBAL         0
11606 #  endif
11607 #endif
11608
11609 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11610    find out it does not work in some platform. */
11611 #ifndef LT_DLLAZY_OR_NOW
11612 #  ifdef RTLD_LAZY
11613 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11614 #  else
11615 #    ifdef DL_LAZY
11616 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11617 #    else
11618 #      ifdef RTLD_NOW
11619 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11620 #      else
11621 #        ifdef DL_NOW
11622 #          define LT_DLLAZY_OR_NOW      DL_NOW
11623 #        else
11624 #          define LT_DLLAZY_OR_NOW      0
11625 #        endif
11626 #      endif
11627 #    endif
11628 #  endif
11629 #endif
11630
11631 #ifdef __cplusplus
11632 extern "C" void exit (int);
11633 #endif
11634
11635 void fnord() { int i=42;}
11636 int main ()
11637 {
11638   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11639   int status = $lt_dlunknown;
11640
11641   if (self)
11642     {
11643       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11644       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11645       /* dlclose (self); */
11646     }
11647   else
11648     puts (dlerror ());
11649
11650     exit (status);
11651 }
11652 EOF
11653   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11654   (eval $ac_link) 2>&5
11655   ac_status=$?
11656   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11657   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11658     (./conftest; exit; ) >&5 2>/dev/null
11659     lt_status=$?
11660     case x$lt_status in
11661       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11662       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11663       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11664     esac
11665   else :
11666     # compilation failed
11667     lt_cv_dlopen_self_static=no
11668   fi
11669 fi
11670 rm -fr conftest*
11671
11672       
11673 fi
11674 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
11675 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
11676     fi
11677
11678     CPPFLAGS="$save_CPPFLAGS"
11679     LDFLAGS="$save_LDFLAGS"
11680     LIBS="$save_LIBS"
11681     ;;
11682   esac
11683
11684   case $lt_cv_dlopen_self in
11685   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11686   *) enable_dlopen_self=unknown ;;
11687   esac
11688
11689   case $lt_cv_dlopen_self_static in
11690   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11691   *) enable_dlopen_self_static=unknown ;;
11692   esac
11693 fi
11694
11695
11696 # Report which library types will actually be built
11697 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
11698 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
11699 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
11700 echo "${ECHO_T}$can_build_shared" >&6; }
11701
11702 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
11703 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
11704 test "$can_build_shared" = "no" && enable_shared=no
11705
11706 # On AIX, shared libraries and static libraries use the same namespace, and
11707 # are all built from PIC.
11708 case $host_os in
11709 aix3*)
11710   test "$enable_shared" = yes && enable_static=no
11711   if test -n "$RANLIB"; then
11712     archive_cmds="$archive_cmds~\$RANLIB \$lib"
11713     postinstall_cmds='$RANLIB $lib'
11714   fi
11715   ;;
11716
11717 aix4* | aix5*)
11718   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11719     test "$enable_shared" = yes && enable_static=no
11720   fi
11721     ;;
11722 esac
11723 { echo "$as_me:$LINENO: result: $enable_shared" >&5
11724 echo "${ECHO_T}$enable_shared" >&6; }
11725
11726 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
11727 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
11728 # Make sure either enable_shared or enable_static is yes.
11729 test "$enable_shared" = yes || enable_static=yes
11730 { echo "$as_me:$LINENO: result: $enable_static" >&5
11731 echo "${ECHO_T}$enable_static" >&6; }
11732
11733 # The else clause should only fire when bootstrapping the
11734 # libtool distribution, otherwise you forgot to ship ltmain.sh
11735 # with your package, and you will get complaints that there are
11736 # no rules to generate ltmain.sh.
11737 if test -f "$ltmain"; then
11738   # See if we are running on zsh, and set the options which allow our commands through
11739   # without removal of \ escapes.
11740   if test -n "${ZSH_VERSION+set}" ; then
11741     setopt NO_GLOB_SUBST
11742   fi
11743   # Now quote all the things that may contain metacharacters while being
11744   # careful not to overquote the AC_SUBSTed values.  We take copies of the
11745   # variables and quote the copies for generation of the libtool script.
11746   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
11747     SED SHELL STRIP \
11748     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
11749     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
11750     deplibs_check_method reload_flag reload_cmds need_locks \
11751     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
11752     lt_cv_sys_global_symbol_to_c_name_address \
11753     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
11754     old_postinstall_cmds old_postuninstall_cmds \
11755     compiler \
11756     CC \
11757     LD \
11758     lt_prog_compiler_wl \
11759     lt_prog_compiler_pic \
11760     lt_prog_compiler_static \
11761     lt_prog_compiler_no_builtin_flag \
11762     export_dynamic_flag_spec \
11763     thread_safe_flag_spec \
11764     whole_archive_flag_spec \
11765     enable_shared_with_static_runtimes \
11766     old_archive_cmds \
11767     old_archive_from_new_cmds \
11768     predep_objects \
11769     postdep_objects \
11770     predeps \
11771     postdeps \
11772     compiler_lib_search_path \
11773     archive_cmds \
11774     archive_expsym_cmds \
11775     postinstall_cmds \
11776     postuninstall_cmds \
11777     old_archive_from_expsyms_cmds \
11778     allow_undefined_flag \
11779     no_undefined_flag \
11780     export_symbols_cmds \
11781     hardcode_libdir_flag_spec \
11782     hardcode_libdir_flag_spec_ld \
11783     hardcode_libdir_separator \
11784     hardcode_automatic \
11785     module_cmds \
11786     module_expsym_cmds \
11787     lt_cv_prog_compiler_c_o \
11788     fix_srcfile_path \
11789     exclude_expsyms \
11790     include_expsyms; do
11791
11792     case $var in
11793     old_archive_cmds | \
11794     old_archive_from_new_cmds | \
11795     archive_cmds | \
11796     archive_expsym_cmds | \
11797     module_cmds | \
11798     module_expsym_cmds | \
11799     old_archive_from_expsyms_cmds | \
11800     export_symbols_cmds | \
11801     extract_expsyms_cmds | reload_cmds | finish_cmds | \
11802     postinstall_cmds | postuninstall_cmds | \
11803     old_postinstall_cmds | old_postuninstall_cmds | \
11804     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
11805       # Double-quote double-evaled strings.
11806       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
11807       ;;
11808     *)
11809       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
11810       ;;
11811     esac
11812   done
11813
11814   case $lt_echo in
11815   *'\$0 --fallback-echo"')
11816     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
11817     ;;
11818   esac
11819
11820 cfgfile="${ofile}T"
11821   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
11822   $rm -f "$cfgfile"
11823   { echo "$as_me:$LINENO: creating $ofile" >&5
11824 echo "$as_me: creating $ofile" >&6;}
11825
11826   cat <<__EOF__ >> "$cfgfile"
11827 #! $SHELL
11828
11829 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
11830 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
11831 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
11832 #
11833 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007
11834 # Free Software Foundation, Inc.
11835 #
11836 # This file is part of GNU Libtool:
11837 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
11838 #
11839 # This program is free software; you can redistribute it and/or modify
11840 # it under the terms of the GNU General Public License as published by
11841 # the Free Software Foundation; either version 2 of the License, or
11842 # (at your option) any later version.
11843 #
11844 # This program is distributed in the hope that it will be useful, but
11845 # WITHOUT ANY WARRANTY; without even the implied warranty of
11846 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
11847 # General Public License for more details.
11848 #
11849 # You should have received a copy of the GNU General Public License
11850 # along with this program; if not, write to the Free Software
11851 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
11852 #
11853 # As a special exception to the GNU General Public License, if you
11854 # distribute this file as part of a program that contains a
11855 # configuration script generated by Autoconf, you may include it under
11856 # the same distribution terms that you use for the rest of that program.
11857
11858 # A sed program that does not truncate output.
11859 SED=$lt_SED
11860
11861 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
11862 Xsed="$SED -e 1s/^X//"
11863
11864 # The HP-UX ksh and POSIX shell print the target directory to stdout
11865 # if CDPATH is set.
11866 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11867
11868 # The names of the tagged configurations supported by this script.
11869 available_tags=
11870
11871 # ### BEGIN LIBTOOL CONFIG
11872
11873 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
11874
11875 # Shell to use when invoking shell scripts.
11876 SHELL=$lt_SHELL
11877
11878 # Whether or not to build shared libraries.
11879 build_libtool_libs=$enable_shared
11880
11881 # Whether or not to build static libraries.
11882 build_old_libs=$enable_static
11883
11884 # Whether or not to add -lc for building shared libraries.
11885 build_libtool_need_lc=$archive_cmds_need_lc
11886
11887 # Whether or not to disallow shared libs when runtime libs are static
11888 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
11889
11890 # Whether or not to optimize for fast installation.
11891 fast_install=$enable_fast_install
11892
11893 # The host system.
11894 host_alias=$host_alias
11895 host=$host
11896 host_os=$host_os
11897
11898 # The build system.
11899 build_alias=$build_alias
11900 build=$build
11901 build_os=$build_os
11902
11903 # An echo program that does not interpret backslashes.
11904 echo=$lt_echo
11905
11906 # The archiver.
11907 AR=$lt_AR
11908 AR_FLAGS=$lt_AR_FLAGS
11909
11910 # A C compiler.
11911 LTCC=$lt_LTCC
11912
11913 # LTCC compiler flags.
11914 LTCFLAGS=$lt_LTCFLAGS
11915
11916 # A language-specific compiler.
11917 CC=$lt_compiler
11918
11919 # Is the compiler the GNU C compiler?
11920 with_gcc=$GCC
11921
11922 # An ERE matcher.
11923 EGREP=$lt_EGREP
11924
11925 # The linker used to build libraries.
11926 LD=$lt_LD
11927
11928 # Whether we need hard or soft links.
11929 LN_S=$lt_LN_S
11930
11931 # A BSD-compatible nm program.
11932 NM=$lt_NM
11933
11934 # A symbol stripping program
11935 STRIP=$lt_STRIP
11936
11937 # Used to examine libraries when file_magic_cmd begins "file"
11938 MAGIC_CMD=$MAGIC_CMD
11939
11940 # Used on cygwin: DLL creation program.
11941 DLLTOOL="$DLLTOOL"
11942
11943 # Used on cygwin: object dumper.
11944 OBJDUMP="$OBJDUMP"
11945
11946 # Used on cygwin: assembler.
11947 AS="$AS"
11948
11949 # The name of the directory that contains temporary libtool files.
11950 objdir=$objdir
11951
11952 # How to create reloadable object files.
11953 reload_flag=$lt_reload_flag
11954 reload_cmds=$lt_reload_cmds
11955
11956 # How to pass a linker flag through the compiler.
11957 wl=$lt_lt_prog_compiler_wl
11958
11959 # Object file suffix (normally "o").
11960 objext="$ac_objext"
11961
11962 # Old archive suffix (normally "a").
11963 libext="$libext"
11964
11965 # Shared library suffix (normally ".so").
11966 shrext_cmds='$shrext_cmds'
11967
11968 # Executable file suffix (normally "").
11969 exeext="$exeext"
11970
11971 # Additional compiler flags for building library objects.
11972 pic_flag=$lt_lt_prog_compiler_pic
11973 pic_mode=$pic_mode
11974
11975 # What is the maximum length of a command?
11976 max_cmd_len=$lt_cv_sys_max_cmd_len
11977
11978 # Does compiler simultaneously support -c and -o options?
11979 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
11980
11981 # Must we lock files when doing compilation?
11982 need_locks=$lt_need_locks
11983
11984 # Do we need the lib prefix for modules?
11985 need_lib_prefix=$need_lib_prefix
11986
11987 # Do we need a version for libraries?
11988 need_version=$need_version
11989
11990 # Whether dlopen is supported.
11991 dlopen_support=$enable_dlopen
11992
11993 # Whether dlopen of programs is supported.
11994 dlopen_self=$enable_dlopen_self
11995
11996 # Whether dlopen of statically linked programs is supported.
11997 dlopen_self_static=$enable_dlopen_self_static
11998
11999 # Compiler flag to prevent dynamic linking.
12000 link_static_flag=$lt_lt_prog_compiler_static
12001
12002 # Compiler flag to turn off builtin functions.
12003 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
12004
12005 # Compiler flag to allow reflexive dlopens.
12006 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
12007
12008 # Compiler flag to generate shared objects directly from archives.
12009 whole_archive_flag_spec=$lt_whole_archive_flag_spec
12010
12011 # Compiler flag to generate thread-safe objects.
12012 thread_safe_flag_spec=$lt_thread_safe_flag_spec
12013
12014 # Library versioning type.
12015 version_type=$version_type
12016
12017 # Format of library name prefix.
12018 libname_spec=$lt_libname_spec
12019
12020 # List of archive names.  First name is the real one, the rest are links.
12021 # The last name is the one that the linker finds with -lNAME.
12022 library_names_spec=$lt_library_names_spec
12023
12024 # The coded name of the library, if different from the real name.
12025 soname_spec=$lt_soname_spec
12026
12027 # Commands used to build and install an old-style archive.
12028 RANLIB=$lt_RANLIB
12029 old_archive_cmds=$lt_old_archive_cmds
12030 old_postinstall_cmds=$lt_old_postinstall_cmds
12031 old_postuninstall_cmds=$lt_old_postuninstall_cmds
12032
12033 # Create an old-style archive from a shared archive.
12034 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
12035
12036 # Create a temporary old-style archive to link instead of a shared archive.
12037 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
12038
12039 # Commands used to build and install a shared archive.
12040 archive_cmds=$lt_archive_cmds
12041 archive_expsym_cmds=$lt_archive_expsym_cmds
12042 postinstall_cmds=$lt_postinstall_cmds
12043 postuninstall_cmds=$lt_postuninstall_cmds
12044
12045 # Commands used to build a loadable module (assumed same as above if empty)
12046 module_cmds=$lt_module_cmds
12047 module_expsym_cmds=$lt_module_expsym_cmds
12048
12049 # Commands to strip libraries.
12050 old_striplib=$lt_old_striplib
12051 striplib=$lt_striplib
12052
12053 # Dependencies to place before the objects being linked to create a
12054 # shared library.
12055 predep_objects=$lt_predep_objects
12056
12057 # Dependencies to place after the objects being linked to create a
12058 # shared library.
12059 postdep_objects=$lt_postdep_objects
12060
12061 # Dependencies to place before the objects being linked to create a
12062 # shared library.
12063 predeps=$lt_predeps
12064
12065 # Dependencies to place after the objects being linked to create a
12066 # shared library.
12067 postdeps=$lt_postdeps
12068
12069 # The library search path used internally by the compiler when linking
12070 # a shared library.
12071 compiler_lib_search_path=$lt_compiler_lib_search_path
12072
12073 # Method to check whether dependent libraries are shared objects.
12074 deplibs_check_method=$lt_deplibs_check_method
12075
12076 # Command to use when deplibs_check_method == file_magic.
12077 file_magic_cmd=$lt_file_magic_cmd
12078
12079 # Flag that allows shared libraries with undefined symbols to be built.
12080 allow_undefined_flag=$lt_allow_undefined_flag
12081
12082 # Flag that forces no undefined symbols.
12083 no_undefined_flag=$lt_no_undefined_flag
12084
12085 # Commands used to finish a libtool library installation in a directory.
12086 finish_cmds=$lt_finish_cmds
12087
12088 # Same as above, but a single script fragment to be evaled but not shown.
12089 finish_eval=$lt_finish_eval
12090
12091 # Take the output of nm and produce a listing of raw symbols and C names.
12092 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12093
12094 # Transform the output of nm in a proper C declaration
12095 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12096
12097 # Transform the output of nm in a C name address pair
12098 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12099
12100 # This is the shared library runtime path variable.
12101 runpath_var=$runpath_var
12102
12103 # This is the shared library path variable.
12104 shlibpath_var=$shlibpath_var
12105
12106 # Is shlibpath searched before the hard-coded library search path?
12107 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12108
12109 # How to hardcode a shared library path into an executable.
12110 hardcode_action=$hardcode_action
12111
12112 # Whether we should hardcode library paths into libraries.
12113 hardcode_into_libs=$hardcode_into_libs
12114
12115 # Flag to hardcode \$libdir into a binary during linking.
12116 # This must work even if \$libdir does not exist.
12117 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
12118
12119 # If ld is used when linking, flag to hardcode \$libdir into
12120 # a binary during linking. This must work even if \$libdir does
12121 # not exist.
12122 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
12123
12124 # Whether we need a single -rpath flag with a separated argument.
12125 hardcode_libdir_separator=$lt_hardcode_libdir_separator
12126
12127 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
12128 # resulting binary.
12129 hardcode_direct=$hardcode_direct
12130
12131 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
12132 # resulting binary.
12133 hardcode_minus_L=$hardcode_minus_L
12134
12135 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
12136 # the resulting binary.
12137 hardcode_shlibpath_var=$hardcode_shlibpath_var
12138
12139 # Set to yes if building a shared library automatically hardcodes DIR into the library
12140 # and all subsequent libraries and executables linked against it.
12141 hardcode_automatic=$hardcode_automatic
12142
12143 # Variables whose values should be saved in libtool wrapper scripts and
12144 # restored at relink time.
12145 variables_saved_for_relink="$variables_saved_for_relink"
12146
12147 # Whether libtool must link a program against all its dependency libraries.
12148 link_all_deplibs=$link_all_deplibs
12149
12150 # Compile-time system search path for libraries
12151 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12152
12153 # Run-time system search path for libraries
12154 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12155
12156 # Fix the shell variable \$srcfile for the compiler.
12157 fix_srcfile_path=$lt_fix_srcfile_path
12158
12159 # Set to yes if exported symbols are required.
12160 always_export_symbols=$always_export_symbols
12161
12162 # The commands to list exported symbols.
12163 export_symbols_cmds=$lt_export_symbols_cmds
12164
12165 # The commands to extract the exported symbol list from a shared archive.
12166 extract_expsyms_cmds=$lt_extract_expsyms_cmds
12167
12168 # Symbols that should not be listed in the preloaded symbols.
12169 exclude_expsyms=$lt_exclude_expsyms
12170
12171 # Symbols that must always be exported.
12172 include_expsyms=$lt_include_expsyms
12173
12174 # ### END LIBTOOL CONFIG
12175
12176 __EOF__
12177
12178
12179   case $host_os in
12180   aix3*)
12181     cat <<\EOF >> "$cfgfile"
12182
12183 # AIX sometimes has problems with the GCC collect2 program.  For some
12184 # reason, if we set the COLLECT_NAMES environment variable, the problems
12185 # vanish in a puff of smoke.
12186 if test "X${COLLECT_NAMES+set}" != Xset; then
12187   COLLECT_NAMES=
12188   export COLLECT_NAMES
12189 fi
12190 EOF
12191     ;;
12192   esac
12193
12194   # We use sed instead of cat because bash on DJGPP gets confused if
12195   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
12196   # text mode, it properly converts lines to CR/LF.  This bash problem
12197   # is reportedly fixed, but why not run on old versions too?
12198   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
12199
12200   mv -f "$cfgfile" "$ofile" || \
12201     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
12202   chmod +x "$ofile"
12203
12204 else
12205   # If there is no Makefile yet, we rely on a make rule to execute
12206   # `config.status --recheck' to rerun these tests and create the
12207   # libtool script then.
12208   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
12209   if test -f "$ltmain_in"; then
12210     test -f Makefile && make "$ltmain"
12211   fi
12212 fi
12213
12214
12215 ac_ext=c
12216 ac_cpp='$CPP $CPPFLAGS'
12217 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12218 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12219 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12220
12221 CC="$lt_save_CC"
12222
12223
12224 # Check whether --with-tags was given.
12225 if test "${with_tags+set}" = set; then
12226   withval=$with_tags; tagnames="$withval"
12227 fi
12228
12229
12230 if test -f "$ltmain" && test -n "$tagnames"; then
12231   if test ! -f "${ofile}"; then
12232     { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
12233 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
12234   fi
12235
12236   if test -z "$LTCC"; then
12237     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
12238     if test -z "$LTCC"; then
12239       { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
12240 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
12241     else
12242       { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
12243 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
12244     fi
12245   fi
12246   if test -z "$LTCFLAGS"; then
12247     eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
12248   fi
12249
12250   # Extract list of available tagged configurations in $ofile.
12251   # Note that this assumes the entire list is on one line.
12252   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
12253
12254   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12255   for tagname in $tagnames; do
12256     IFS="$lt_save_ifs"
12257     # Check whether tagname contains only valid characters
12258     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
12259     "") ;;
12260     *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
12261 echo "$as_me: error: invalid tag name: $tagname" >&2;}
12262    { (exit 1); exit 1; }; }
12263         ;;
12264     esac
12265
12266     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
12267     then
12268       { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
12269 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
12270    { (exit 1); exit 1; }; }
12271     fi
12272
12273     # Update the list of available tags.
12274     if test -n "$tagname"; then
12275       echo appending configuration tag \"$tagname\" to $ofile
12276
12277       case $tagname in
12278       CXX)
12279         if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12280             ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12281             (test "X$CXX" != "Xg++"))) ; then
12282           ac_ext=cpp
12283 ac_cpp='$CXXCPP $CPPFLAGS'
12284 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12285 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12286 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12287
12288
12289
12290
12291 archive_cmds_need_lc_CXX=no
12292 allow_undefined_flag_CXX=
12293 always_export_symbols_CXX=no
12294 archive_expsym_cmds_CXX=
12295 export_dynamic_flag_spec_CXX=
12296 hardcode_direct_CXX=no
12297 hardcode_libdir_flag_spec_CXX=
12298 hardcode_libdir_flag_spec_ld_CXX=
12299 hardcode_libdir_separator_CXX=
12300 hardcode_minus_L_CXX=no
12301 hardcode_shlibpath_var_CXX=unsupported
12302 hardcode_automatic_CXX=no
12303 module_cmds_CXX=
12304 module_expsym_cmds_CXX=
12305 link_all_deplibs_CXX=unknown
12306 old_archive_cmds_CXX=$old_archive_cmds
12307 no_undefined_flag_CXX=
12308 whole_archive_flag_spec_CXX=
12309 enable_shared_with_static_runtimes_CXX=no
12310
12311 # Dependencies to place before and after the object being linked:
12312 predep_objects_CXX=
12313 postdep_objects_CXX=
12314 predeps_CXX=
12315 postdeps_CXX=
12316 compiler_lib_search_path_CXX=
12317
12318 # Source file extension for C++ test sources.
12319 ac_ext=cpp
12320
12321 # Object file extension for compiled C++ test sources.
12322 objext=o
12323 objext_CXX=$objext
12324
12325 # Code to be used in simple compile tests
12326 lt_simple_compile_test_code="int some_variable = 0;"
12327
12328 # Code to be used in simple link tests
12329 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12330
12331 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12332
12333 # If no C compiler was specified, use CC.
12334 LTCC=${LTCC-"$CC"}
12335
12336 # If no C compiler flags were specified, use CFLAGS.
12337 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12338
12339 # Allow CC to be a program name with arguments.
12340 compiler=$CC
12341
12342
12343 # save warnings/boilerplate of simple test code
12344 ac_outfile=conftest.$ac_objext
12345 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12346 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12347 _lt_compiler_boilerplate=`cat conftest.err`
12348 $rm conftest*
12349
12350 ac_outfile=conftest.$ac_objext
12351 echo "$lt_simple_link_test_code" >conftest.$ac_ext
12352 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12353 _lt_linker_boilerplate=`cat conftest.err`
12354 $rm conftest*
12355
12356
12357 # Allow CC to be a program name with arguments.
12358 lt_save_CC=$CC
12359 lt_save_LD=$LD
12360 lt_save_GCC=$GCC
12361 GCC=$GXX
12362 lt_save_with_gnu_ld=$with_gnu_ld
12363 lt_save_path_LD=$lt_cv_path_LD
12364 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12365   lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12366 else
12367   $as_unset lt_cv_prog_gnu_ld
12368 fi
12369 if test -n "${lt_cv_path_LDCXX+set}"; then
12370   lt_cv_path_LD=$lt_cv_path_LDCXX
12371 else
12372   $as_unset lt_cv_path_LD
12373 fi
12374 test -z "${LDCXX+set}" || LD=$LDCXX
12375 CC=${CXX-"c++"}
12376 compiler=$CC
12377 compiler_CXX=$CC
12378 for cc_temp in $compiler""; do
12379   case $cc_temp in
12380     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12381     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12382     \-*) ;;
12383     *) break;;
12384   esac
12385 done
12386 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
12387
12388
12389 # We don't want -fno-exception wen compiling C++ code, so set the
12390 # no_builtin_flag separately
12391 if test "$GXX" = yes; then
12392   lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12393 else
12394   lt_prog_compiler_no_builtin_flag_CXX=
12395 fi
12396
12397 if test "$GXX" = yes; then
12398   # Set up default GNU C++ configuration
12399
12400   
12401 # Check whether --with-gnu-ld was given.
12402 if test "${with_gnu_ld+set}" = set; then
12403   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12404 else
12405   with_gnu_ld=no
12406 fi
12407
12408 ac_prog=ld
12409 if test "$GCC" = yes; then
12410   # Check if gcc -print-prog-name=ld gives a path.
12411   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
12412 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
12413   case $host in
12414   *-*-mingw*)
12415     # gcc leaves a trailing carriage return which upsets mingw
12416     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12417   *)
12418     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12419   esac
12420   case $ac_prog in
12421     # Accept absolute paths.
12422     [\\/]* | ?:[\\/]*)
12423       re_direlt='/[^/][^/]*/\.\./'
12424       # Canonicalize the pathname of ld
12425       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
12426       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
12427         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
12428       done
12429       test -z "$LD" && LD="$ac_prog"
12430       ;;
12431   "")
12432     # If it fails, then pretend we aren't using GCC.
12433     ac_prog=ld
12434     ;;
12435   *)
12436     # If it is relative, then search for the first ld in PATH.
12437     with_gnu_ld=unknown
12438     ;;
12439   esac
12440 elif test "$with_gnu_ld" = yes; then
12441   { echo "$as_me:$LINENO: checking for GNU ld" >&5
12442 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
12443 else
12444   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
12445 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
12446 fi
12447 if test "${lt_cv_path_LD+set}" = set; then
12448   echo $ECHO_N "(cached) $ECHO_C" >&6
12449 else
12450   if test -z "$LD"; then
12451   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12452   for ac_dir in $PATH; do
12453     IFS="$lt_save_ifs"
12454     test -z "$ac_dir" && ac_dir=.
12455     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12456       lt_cv_path_LD="$ac_dir/$ac_prog"
12457       # Check to see if the program is GNU ld.  I'd rather use --version,
12458       # but apparently some variants of GNU ld only accept -v.
12459       # Break only if it was the GNU/non-GNU ld that we prefer.
12460       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12461       *GNU* | *'with BFD'*)
12462         test "$with_gnu_ld" != no && break
12463         ;;
12464       *)
12465         test "$with_gnu_ld" != yes && break
12466         ;;
12467       esac
12468     fi
12469   done
12470   IFS="$lt_save_ifs"
12471 else
12472   lt_cv_path_LD="$LD" # Let the user override the test with a path.
12473 fi
12474 fi
12475
12476 LD="$lt_cv_path_LD"
12477 if test -n "$LD"; then
12478   { echo "$as_me:$LINENO: result: $LD" >&5
12479 echo "${ECHO_T}$LD" >&6; }
12480 else
12481   { echo "$as_me:$LINENO: result: no" >&5
12482 echo "${ECHO_T}no" >&6; }
12483 fi
12484 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
12485 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
12486    { (exit 1); exit 1; }; }
12487 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
12488 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
12489 if test "${lt_cv_prog_gnu_ld+set}" = set; then
12490   echo $ECHO_N "(cached) $ECHO_C" >&6
12491 else
12492   # I'd rather use --version here, but apparently some GNU lds only accept -v.
12493 case `$LD -v 2>&1 </dev/null` in
12494 *GNU* | *'with BFD'*)
12495   lt_cv_prog_gnu_ld=yes
12496   ;;
12497 *)
12498   lt_cv_prog_gnu_ld=no
12499   ;;
12500 esac
12501 fi
12502 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
12503 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
12504 with_gnu_ld=$lt_cv_prog_gnu_ld
12505
12506
12507
12508   # Check if GNU C++ uses GNU ld as the underlying linker, since the
12509   # archiving commands below assume that GNU ld is being used.
12510   if test "$with_gnu_ld" = yes; then
12511     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12512     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'
12513
12514     hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12515     export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12516
12517     # If archive_cmds runs LD, not CC, wlarc should be empty
12518     # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12519     #     investigate it a little bit more. (MM)
12520     wlarc='${wl}'
12521
12522     # ancient GNU ld didn't support --whole-archive et. al.
12523     if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
12524         grep 'no-whole-archive' > /dev/null; then
12525       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12526     else
12527       whole_archive_flag_spec_CXX=
12528     fi
12529   else
12530     with_gnu_ld=no
12531     wlarc=
12532
12533     # A generic and very simple default shared library creation
12534     # command for GNU C++ for the case where it uses the native
12535     # linker, instead of GNU ld.  If possible, this setting should
12536     # overridden to take advantage of the native linker features on
12537     # the platform it is being used on.
12538     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12539   fi
12540
12541   # Commands to make compiler produce verbose output that lists
12542   # what "hidden" libraries, object files and flags are used when
12543   # linking a shared library.
12544   output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12545
12546 else
12547   GXX=no
12548   with_gnu_ld=no
12549   wlarc=
12550 fi
12551
12552 # PORTME: fill in a description of your system's C++ link characteristics
12553 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12554 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
12555 ld_shlibs_CXX=yes
12556 case $host_os in
12557   aix3*)
12558     # FIXME: insert proper C++ library support
12559     ld_shlibs_CXX=no
12560     ;;
12561   aix4* | aix5*)
12562     if test "$host_cpu" = ia64; then
12563       # On IA64, the linker does run time linking by default, so we don't
12564       # have to do anything special.
12565       aix_use_runtimelinking=no
12566       exp_sym_flag='-Bexport'
12567       no_entry_flag=""
12568     else
12569       aix_use_runtimelinking=no
12570
12571       # Test if we are trying to use run time linking or normal
12572       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12573       # need to do runtime linking.
12574       case $host_os in aix4.[23]|aix4.[23].*|aix5*)
12575         for ld_flag in $LDFLAGS; do
12576           case $ld_flag in
12577           *-brtl*)
12578             aix_use_runtimelinking=yes
12579             break
12580             ;;
12581           esac
12582         done
12583         ;;
12584       esac
12585
12586       exp_sym_flag='-bexport'
12587       no_entry_flag='-bnoentry'
12588     fi
12589
12590     # When large executables or shared objects are built, AIX ld can
12591     # have problems creating the table of contents.  If linking a library
12592     # or program results in "error TOC overflow" add -mminimal-toc to
12593     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
12594     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12595
12596     archive_cmds_CXX=''
12597     hardcode_direct_CXX=yes
12598     hardcode_libdir_separator_CXX=':'
12599     link_all_deplibs_CXX=yes
12600
12601     if test "$GXX" = yes; then
12602       case $host_os in aix4.[012]|aix4.[012].*)
12603       # We only want to do this on AIX 4.2 and lower, the check
12604       # below for broken collect2 doesn't work under 4.3+
12605         collect2name=`${CC} -print-prog-name=collect2`
12606         if test -f "$collect2name" && \
12607            strings "$collect2name" | grep resolve_lib_name >/dev/null
12608         then
12609           # We have reworked collect2
12610           :
12611         else
12612           # We have old collect2
12613           hardcode_direct_CXX=unsupported
12614           # It fails to find uninstalled libraries when the uninstalled
12615           # path is not listed in the libpath.  Setting hardcode_minus_L
12616           # to unsupported forces relinking
12617           hardcode_minus_L_CXX=yes
12618           hardcode_libdir_flag_spec_CXX='-L$libdir'
12619           hardcode_libdir_separator_CXX=
12620         fi
12621         ;;
12622       esac
12623       shared_flag='-shared'
12624       if test "$aix_use_runtimelinking" = yes; then
12625         shared_flag="$shared_flag "'${wl}-G'
12626       fi
12627     else
12628       # not using gcc
12629       if test "$host_cpu" = ia64; then
12630         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12631         # chokes on -Wl,-G. The following line is correct:
12632         shared_flag='-G'
12633       else
12634         if test "$aix_use_runtimelinking" = yes; then
12635           shared_flag='${wl}-G'
12636         else
12637           shared_flag='${wl}-bM:SRE'
12638         fi
12639       fi
12640     fi
12641
12642     # It seems that -bexpall does not export symbols beginning with
12643     # underscore (_), so it is better to generate a list of symbols to export.
12644     always_export_symbols_CXX=yes
12645     if test "$aix_use_runtimelinking" = yes; then
12646       # Warning - without using the other runtime loading flags (-brtl),
12647       # -berok will link without error, but may produce a broken library.
12648       allow_undefined_flag_CXX='-berok'
12649       # Determine the default libpath from the value encoded in an empty executable.
12650       cat >conftest.$ac_ext <<_ACEOF
12651 /* confdefs.h.  */
12652 _ACEOF
12653 cat confdefs.h >>conftest.$ac_ext
12654 cat >>conftest.$ac_ext <<_ACEOF
12655 /* end confdefs.h.  */
12656
12657 int
12658 main ()
12659 {
12660
12661   ;
12662   return 0;
12663 }
12664 _ACEOF
12665 rm -f conftest.$ac_objext conftest$ac_exeext
12666 if { (ac_try="$ac_link"
12667 case "(($ac_try" in
12668   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12669   *) ac_try_echo=$ac_try;;
12670 esac
12671 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12672   (eval "$ac_link") 2>conftest.er1
12673   ac_status=$?
12674   grep -v '^ *+' conftest.er1 >conftest.err
12675   rm -f conftest.er1
12676   cat conftest.err >&5
12677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12678   (exit $ac_status); } && {
12679          test -z "$ac_cxx_werror_flag" ||
12680          test ! -s conftest.err
12681        } && test -s conftest$ac_exeext &&
12682        $as_test_x conftest$ac_exeext; then
12683   
12684 lt_aix_libpath_sed='
12685     /Import File Strings/,/^$/ {
12686         /^0/ {
12687             s/^0  *\(.*\)$/\1/
12688             p
12689         }
12690     }'
12691 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12692 # Check for a 64-bit object if we didn't find anything.
12693 if test -z "$aix_libpath"; then
12694   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12695 fi
12696 else
12697   echo "$as_me: failed program was:" >&5
12698 sed 's/^/| /' conftest.$ac_ext >&5
12699
12700         
12701 fi
12702
12703 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12704       conftest$ac_exeext conftest.$ac_ext
12705 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12706
12707       hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12708
12709       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"
12710      else
12711       if test "$host_cpu" = ia64; then
12712         hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12713         allow_undefined_flag_CXX="-z nodefs"
12714         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"
12715       else
12716         # Determine the default libpath from the value encoded in an empty executable.
12717         cat >conftest.$ac_ext <<_ACEOF
12718 /* confdefs.h.  */
12719 _ACEOF
12720 cat confdefs.h >>conftest.$ac_ext
12721 cat >>conftest.$ac_ext <<_ACEOF
12722 /* end confdefs.h.  */
12723
12724 int
12725 main ()
12726 {
12727
12728   ;
12729   return 0;
12730 }
12731 _ACEOF
12732 rm -f conftest.$ac_objext conftest$ac_exeext
12733 if { (ac_try="$ac_link"
12734 case "(($ac_try" in
12735   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12736   *) ac_try_echo=$ac_try;;
12737 esac
12738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12739   (eval "$ac_link") 2>conftest.er1
12740   ac_status=$?
12741   grep -v '^ *+' conftest.er1 >conftest.err
12742   rm -f conftest.er1
12743   cat conftest.err >&5
12744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12745   (exit $ac_status); } && {
12746          test -z "$ac_cxx_werror_flag" ||
12747          test ! -s conftest.err
12748        } && test -s conftest$ac_exeext &&
12749        $as_test_x conftest$ac_exeext; then
12750   
12751 lt_aix_libpath_sed='
12752     /Import File Strings/,/^$/ {
12753         /^0/ {
12754             s/^0  *\(.*\)$/\1/
12755             p
12756         }
12757     }'
12758 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12759 # Check for a 64-bit object if we didn't find anything.
12760 if test -z "$aix_libpath"; then
12761   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12762 fi
12763 else
12764   echo "$as_me: failed program was:" >&5
12765 sed 's/^/| /' conftest.$ac_ext >&5
12766
12767         
12768 fi
12769
12770 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12771       conftest$ac_exeext conftest.$ac_ext
12772 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12773
12774         hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12775         # Warning - without using the other run time loading flags,
12776         # -berok will link without error, but may produce a broken library.
12777         no_undefined_flag_CXX=' ${wl}-bernotok'
12778         allow_undefined_flag_CXX=' ${wl}-berok'
12779         # Exported symbols can be pulled into shared objects from archives
12780         whole_archive_flag_spec_CXX='$convenience'
12781         archive_cmds_need_lc_CXX=yes
12782         # This is similar to how AIX traditionally builds its shared libraries.
12783         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'
12784       fi
12785     fi
12786     ;;
12787
12788   beos*)
12789     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12790       allow_undefined_flag_CXX=unsupported
12791       # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12792       # support --undefined.  This deserves some investigation.  FIXME
12793       archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12794     else
12795       ld_shlibs_CXX=no
12796     fi
12797     ;;
12798
12799   chorus*)
12800     case $cc_basename in
12801       *)
12802         # FIXME: insert proper C++ library support
12803         ld_shlibs_CXX=no
12804         ;;
12805     esac
12806     ;;
12807
12808   cygwin* | mingw* | pw32*)
12809     # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12810     # as there is no search path for DLLs.
12811     hardcode_libdir_flag_spec_CXX='-L$libdir'
12812     allow_undefined_flag_CXX=unsupported
12813     always_export_symbols_CXX=no
12814     enable_shared_with_static_runtimes_CXX=yes
12815
12816     if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
12817       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'
12818       # If the export-symbols file already is a .def file (1st line
12819       # is EXPORTS), use it as is; otherwise, prepend...
12820       archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12821         cp $export_symbols $output_objdir/$soname.def;
12822       else
12823         echo EXPORTS > $output_objdir/$soname.def;
12824         cat $export_symbols >> $output_objdir/$soname.def;
12825       fi~
12826       $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'
12827     else
12828       ld_shlibs_CXX=no
12829     fi
12830   ;;
12831       darwin* | rhapsody*)
12832         case $host_os in
12833         rhapsody* | darwin1.[012])
12834          allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
12835          ;;
12836        *) # Darwin 1.3 on
12837          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
12838            allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
12839          else
12840            case ${MACOSX_DEPLOYMENT_TARGET} in
12841              10.[012])
12842                allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
12843                ;;
12844              10.*)
12845                allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
12846                ;;
12847            esac
12848          fi
12849          ;;
12850         esac
12851       archive_cmds_need_lc_CXX=no
12852       hardcode_direct_CXX=no
12853       hardcode_automatic_CXX=yes
12854       hardcode_shlibpath_var_CXX=unsupported
12855       whole_archive_flag_spec_CXX=''
12856       link_all_deplibs_CXX=yes
12857
12858     if test "$GXX" = yes ; then
12859       lt_int_apple_cc_single_mod=no
12860       output_verbose_link_cmd='echo'
12861       if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
12862        lt_int_apple_cc_single_mod=yes
12863       fi
12864       if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
12865        archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
12866       else
12867           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'
12868         fi
12869         module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12870         # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
12871           if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
12872             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}'
12873           else
12874             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}'
12875           fi
12876             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}'
12877       else
12878       case $cc_basename in
12879         xlc*)
12880          output_verbose_link_cmd='echo'
12881           archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
12882           module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12883           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
12884           archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
12885           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}'
12886           ;;
12887        *)
12888          ld_shlibs_CXX=no
12889           ;;
12890       esac
12891       fi
12892         ;;
12893
12894   dgux*)
12895     case $cc_basename in
12896       ec++*)
12897         # FIXME: insert proper C++ library support
12898         ld_shlibs_CXX=no
12899         ;;
12900       ghcx*)
12901         # Green Hills C++ Compiler
12902         # FIXME: insert proper C++ library support
12903         ld_shlibs_CXX=no
12904         ;;
12905       *)
12906         # FIXME: insert proper C++ library support
12907         ld_shlibs_CXX=no
12908         ;;
12909     esac
12910     ;;
12911   freebsd[12]*)
12912     # C++ shared libraries reported to be fairly broken before switch to ELF
12913     ld_shlibs_CXX=no
12914     ;;
12915   freebsd-elf*)
12916     archive_cmds_need_lc_CXX=no
12917     ;;
12918   freebsd* | dragonfly*)
12919     # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12920     # conventions
12921     ld_shlibs_CXX=yes
12922     ;;
12923   gnu*)
12924     ;;
12925   hpux9*)
12926     hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12927     hardcode_libdir_separator_CXX=:
12928     export_dynamic_flag_spec_CXX='${wl}-E'
12929     hardcode_direct_CXX=yes
12930     hardcode_minus_L_CXX=yes # Not in the search PATH,
12931                                 # but as the default
12932                                 # location of the library.
12933
12934     case $cc_basename in
12935     CC*)
12936       # FIXME: insert proper C++ library support
12937       ld_shlibs_CXX=no
12938       ;;
12939     aCC*)
12940       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'
12941       # Commands to make compiler produce verbose output that lists
12942       # what "hidden" libraries, object files and flags are used when
12943       # linking a shared library.
12944       #
12945       # There doesn't appear to be a way to prevent this compiler from
12946       # explicitly linking system object files so we need to strip them
12947       # from the output so that they don't get included in the library
12948       # dependencies.
12949       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'
12950       ;;
12951     *)
12952       if test "$GXX" = yes; then
12953         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'
12954       else
12955         # FIXME: insert proper C++ library support
12956         ld_shlibs_CXX=no
12957       fi
12958       ;;
12959     esac
12960     ;;
12961   hpux10*|hpux11*)
12962     if test $with_gnu_ld = no; then
12963       hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12964       hardcode_libdir_separator_CXX=:
12965
12966       case $host_cpu in
12967       hppa*64*|ia64*) ;;
12968       *)
12969         export_dynamic_flag_spec_CXX='${wl}-E'
12970         ;;
12971       esac
12972     fi
12973     case $host_cpu in
12974     hppa*64*|ia64*)
12975       hardcode_direct_CXX=no
12976       hardcode_shlibpath_var_CXX=no
12977       ;;
12978     *)
12979       hardcode_direct_CXX=yes
12980       hardcode_minus_L_CXX=yes # Not in the search PATH,
12981                                               # but as the default
12982                                               # location of the library.
12983       ;;
12984     esac
12985
12986     case $cc_basename in
12987       CC*)
12988         # FIXME: insert proper C++ library support
12989         ld_shlibs_CXX=no
12990         ;;
12991       aCC*)
12992         case $host_cpu in
12993         hppa*64*)
12994           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12995           ;;
12996         ia64*)
12997           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12998           ;;
12999         *)
13000           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13001           ;;
13002         esac
13003         # Commands to make compiler produce verbose output that lists
13004         # what "hidden" libraries, object files and flags are used when
13005         # linking a shared library.
13006         #
13007         # There doesn't appear to be a way to prevent this compiler from
13008         # explicitly linking system object files so we need to strip them
13009         # from the output so that they don't get included in the library
13010         # dependencies.
13011         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'
13012         ;;
13013       *)
13014         if test "$GXX" = yes; then
13015           if test $with_gnu_ld = no; then
13016             case $host_cpu in
13017             hppa*64*)
13018               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13019               ;;
13020             ia64*)
13021               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13022               ;;
13023             *)
13024               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'
13025               ;;
13026             esac
13027           fi
13028         else
13029           # FIXME: insert proper C++ library support
13030           ld_shlibs_CXX=no
13031         fi
13032         ;;
13033     esac
13034     ;;
13035   interix[3-9]*)
13036     hardcode_direct_CXX=no
13037     hardcode_shlibpath_var_CXX=no
13038     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13039     export_dynamic_flag_spec_CXX='${wl}-E'
13040     # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13041     # Instead, shared libraries are loaded at an image base (0x10000000 by
13042     # default) and relocated if they conflict, which is a slow very memory
13043     # consuming and fragmenting process.  To avoid this, we pick a random,
13044     # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13045     # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
13046     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'
13047     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'
13048     ;;
13049   irix5* | irix6*)
13050     case $cc_basename in
13051       CC*)
13052         # SGI C++
13053         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'
13054
13055         # Archives containing C++ object files must be created using
13056         # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
13057         # necessary to make sure instantiated templates are included
13058         # in the archive.
13059         old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13060         ;;
13061       *)
13062         if test "$GXX" = yes; then
13063           if test "$with_gnu_ld" = no; then
13064             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'
13065           else
13066             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'
13067           fi
13068         fi
13069         link_all_deplibs_CXX=yes
13070         ;;
13071     esac
13072     hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13073     hardcode_libdir_separator_CXX=:
13074     ;;
13075   linux* | k*bsd*-gnu)
13076     case $cc_basename in
13077       KCC*)
13078         # Kuck and Associates, Inc. (KAI) C++ Compiler
13079
13080         # KCC will only create a shared library if the output file
13081         # ends with ".so" (or ".sl" for HP-UX), so rename the library
13082         # to its proper name (with version) after linking.
13083         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'
13084         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'
13085         # Commands to make compiler produce verbose output that lists
13086         # what "hidden" libraries, object files and flags are used when
13087         # linking a shared library.
13088         #
13089         # There doesn't appear to be a way to prevent this compiler from
13090         # explicitly linking system object files so we need to strip them
13091         # from the output so that they don't get included in the library
13092         # dependencies.
13093         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'
13094
13095         hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
13096         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13097
13098         # Archives containing C++ object files must be created using
13099         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13100         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13101         ;;
13102       icpc*)
13103         # Intel C++
13104         with_gnu_ld=yes
13105         # version 8.0 and above of icpc choke on multiply defined symbols
13106         # if we add $predep_objects and $postdep_objects, however 7.1 and
13107         # earlier do not add the objects themselves.
13108         case `$CC -V 2>&1` in
13109         *"Version 7."*)
13110           archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13111           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'
13112           ;;
13113         *)  # Version 8.0 or newer
13114           tmp_idyn=
13115           case $host_cpu in
13116             ia64*) tmp_idyn=' -i_dynamic';;
13117           esac
13118           archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13119           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'
13120           ;;
13121         esac
13122         archive_cmds_need_lc_CXX=no
13123         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13124         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13125         whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13126         ;;
13127       pgCC*)
13128         # Portland Group C++ compiler
13129         archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13130         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'
13131
13132         hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13133         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13134         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'
13135         ;;
13136       cxx*)
13137         # Compaq C++
13138         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13139         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'
13140
13141         runpath_var=LD_RUN_PATH
13142         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13143         hardcode_libdir_separator_CXX=:
13144
13145         # Commands to make compiler produce verbose output that lists
13146         # what "hidden" libraries, object files and flags are used when
13147         # linking a shared library.
13148         #
13149         # There doesn't appear to be a way to prevent this compiler from
13150         # explicitly linking system object files so we need to strip them
13151         # from the output so that they don't get included in the library
13152         # dependencies.
13153         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'
13154         ;;
13155       *)
13156         case `$CC -V 2>&1 | sed 5q` in
13157         *Sun\ C*)
13158           # Sun C++ 5.9
13159           no_undefined_flag_CXX=' -zdefs'
13160           archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13161           archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
13162           hardcode_libdir_flag_spec_CXX='-R$libdir'
13163           whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
13164
13165           # Not sure whether something based on
13166           # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13167           # would be better.
13168           output_verbose_link_cmd='echo'
13169
13170           # Archives containing C++ object files must be created using
13171           # "CC -xar", where "CC" is the Sun C++ compiler.  This is
13172           # necessary to make sure instantiated templates are included
13173           # in the archive.
13174           old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13175           ;;
13176         esac
13177         ;;
13178     esac
13179     ;;
13180   lynxos*)
13181     # FIXME: insert proper C++ library support
13182     ld_shlibs_CXX=no
13183     ;;
13184   m88k*)
13185     # FIXME: insert proper C++ library support
13186     ld_shlibs_CXX=no
13187     ;;
13188   mvs*)
13189     case $cc_basename in
13190       cxx*)
13191         # FIXME: insert proper C++ library support
13192         ld_shlibs_CXX=no
13193         ;;
13194       *)
13195         # FIXME: insert proper C++ library support
13196         ld_shlibs_CXX=no
13197         ;;
13198     esac
13199     ;;
13200   netbsd* | netbsdelf*-gnu)
13201     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13202       archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13203       wlarc=
13204       hardcode_libdir_flag_spec_CXX='-R$libdir'
13205       hardcode_direct_CXX=yes
13206       hardcode_shlibpath_var_CXX=no
13207     fi
13208     # Workaround some broken pre-1.5 toolchains
13209     output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13210     ;;
13211   openbsd2*)
13212     # C++ shared libraries are fairly broken
13213     ld_shlibs_CXX=no
13214     ;;
13215   openbsd*)
13216     if test -f /usr/libexec/ld.so; then
13217       hardcode_direct_CXX=yes
13218       hardcode_shlibpath_var_CXX=no
13219       archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13220       hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13221       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13222         archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13223         export_dynamic_flag_spec_CXX='${wl}-E'
13224         whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13225       fi
13226       output_verbose_link_cmd='echo'
13227     else
13228       ld_shlibs_CXX=no
13229     fi
13230     ;;
13231   osf3*)
13232     case $cc_basename in
13233       KCC*)
13234         # Kuck and Associates, Inc. (KAI) C++ Compiler
13235
13236         # KCC will only create a shared library if the output file
13237         # ends with ".so" (or ".sl" for HP-UX), so rename the library
13238         # to its proper name (with version) after linking.
13239         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'
13240
13241         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13242         hardcode_libdir_separator_CXX=:
13243
13244         # Archives containing C++ object files must be created using
13245         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13246         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13247
13248         ;;
13249       RCC*)
13250         # Rational C++ 2.4.1
13251         # FIXME: insert proper C++ library support
13252         ld_shlibs_CXX=no
13253         ;;
13254       cxx*)
13255         allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13256         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'
13257
13258         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13259         hardcode_libdir_separator_CXX=:
13260
13261         # Commands to make compiler produce verbose output that lists
13262         # what "hidden" libraries, object files and flags are used when
13263         # linking a shared library.
13264         #
13265         # There doesn't appear to be a way to prevent this compiler from
13266         # explicitly linking system object files so we need to strip them
13267         # from the output so that they don't get included in the library
13268         # dependencies.
13269         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'
13270         ;;
13271       *)
13272         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13273           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13274           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'
13275
13276           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13277           hardcode_libdir_separator_CXX=:
13278
13279           # Commands to make compiler produce verbose output that lists
13280           # what "hidden" libraries, object files and flags are used when
13281           # linking a shared library.
13282           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
13283
13284         else
13285           # FIXME: insert proper C++ library support
13286           ld_shlibs_CXX=no
13287         fi
13288         ;;
13289     esac
13290     ;;
13291   osf4* | osf5*)
13292     case $cc_basename in
13293       KCC*)
13294         # Kuck and Associates, Inc. (KAI) C++ Compiler
13295
13296         # KCC will only create a shared library if the output file
13297         # ends with ".so" (or ".sl" for HP-UX), so rename the library
13298         # to its proper name (with version) after linking.
13299         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'
13300
13301         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13302         hardcode_libdir_separator_CXX=:
13303
13304         # Archives containing C++ object files must be created using
13305         # the KAI C++ compiler.
13306         old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
13307         ;;
13308       RCC*)
13309         # Rational C++ 2.4.1
13310         # FIXME: insert proper C++ library support
13311         ld_shlibs_CXX=no
13312         ;;
13313       cxx*)
13314         allow_undefined_flag_CXX=' -expect_unresolved \*'
13315         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'
13316         archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13317           echo "-hidden">> $lib.exp~
13318           $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~
13319           $rm $lib.exp'
13320
13321         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13322         hardcode_libdir_separator_CXX=:
13323
13324         # Commands to make compiler produce verbose output that lists
13325         # what "hidden" libraries, object files and flags are used when
13326         # linking a shared library.
13327         #
13328         # There doesn't appear to be a way to prevent this compiler from
13329         # explicitly linking system object files so we need to strip them
13330         # from the output so that they don't get included in the library
13331         # dependencies.
13332         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'
13333         ;;
13334       *)
13335         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13336           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13337          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'
13338
13339           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13340           hardcode_libdir_separator_CXX=:
13341
13342           # Commands to make compiler produce verbose output that lists
13343           # what "hidden" libraries, object files and flags are used when
13344           # linking a shared library.
13345           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
13346
13347         else
13348           # FIXME: insert proper C++ library support
13349           ld_shlibs_CXX=no
13350         fi
13351         ;;
13352     esac
13353     ;;
13354   psos*)
13355     # FIXME: insert proper C++ library support
13356     ld_shlibs_CXX=no
13357     ;;
13358   sunos4*)
13359     case $cc_basename in
13360       CC*)
13361         # Sun C++ 4.x
13362         # FIXME: insert proper C++ library support
13363         ld_shlibs_CXX=no
13364         ;;
13365       lcc*)
13366         # Lucid
13367         # FIXME: insert proper C++ library support
13368         ld_shlibs_CXX=no
13369         ;;
13370       *)
13371         # FIXME: insert proper C++ library support
13372         ld_shlibs_CXX=no
13373         ;;
13374     esac
13375     ;;
13376   solaris*)
13377     case $cc_basename in
13378       CC*)
13379         # Sun C++ 4.2, 5.x and Centerline C++
13380         archive_cmds_need_lc_CXX=yes
13381         no_undefined_flag_CXX=' -zdefs'
13382         archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13383         archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13384         $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'
13385
13386         hardcode_libdir_flag_spec_CXX='-R$libdir'
13387         hardcode_shlibpath_var_CXX=no
13388         case $host_os in
13389           solaris2.[0-5] | solaris2.[0-5].*) ;;
13390           *)
13391             # The compiler driver will combine and reorder linker options,
13392             # but understands `-z linker_flag'.
13393             # Supported since Solaris 2.6 (maybe 2.5.1?)
13394             whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
13395             ;;
13396         esac
13397         link_all_deplibs_CXX=yes
13398
13399         output_verbose_link_cmd='echo'
13400
13401         # Archives containing C++ object files must be created using
13402         # "CC -xar", where "CC" is the Sun C++ compiler.  This is
13403         # necessary to make sure instantiated templates are included
13404         # in the archive.
13405         old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13406         ;;
13407       gcx*)
13408         # Green Hills C++ Compiler
13409         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13410
13411         # The C++ compiler must be used to create the archive.
13412         old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13413         ;;
13414       *)
13415         # GNU C++ compiler with Solaris linker
13416         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13417           no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13418           if $CC --version | grep -v '^2\.7' > /dev/null; then
13419             archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13420             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13421                 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
13422
13423             # Commands to make compiler produce verbose output that lists
13424             # what "hidden" libraries, object files and flags are used when
13425             # linking a shared library.
13426             output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
13427           else
13428             # g++ 2.7 appears to require `-G' NOT `-shared' on this
13429             # platform.
13430             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13431             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13432                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
13433
13434             # Commands to make compiler produce verbose output that lists
13435             # what "hidden" libraries, object files and flags are used when
13436             # linking a shared library.
13437             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
13438           fi
13439
13440           hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13441           case $host_os in
13442           solaris2.[0-5] | solaris2.[0-5].*) ;;
13443           *)
13444             whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13445             ;;
13446           esac
13447         fi
13448         ;;
13449     esac
13450     ;;
13451   sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13452     no_undefined_flag_CXX='${wl}-z,text'
13453     archive_cmds_need_lc_CXX=no
13454     hardcode_shlibpath_var_CXX=no
13455     runpath_var='LD_RUN_PATH'
13456
13457     case $cc_basename in
13458       CC*)
13459         archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13460         archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13461         ;;
13462       *)
13463         archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13464         archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13465         ;;
13466     esac
13467     ;;
13468   sysv5* | sco3.2v5* | sco5v6*)
13469     # Note: We can NOT use -z defs as we might desire, because we do not
13470     # link with -lc, and that would cause any symbols used from libc to
13471     # always be unresolved, which means just about no library would
13472     # ever link correctly.  If we're not using GNU ld we use -z text
13473     # though, which does catch some bad symbols but isn't as heavy-handed
13474     # as -z defs.
13475     # For security reasons, it is highly recommended that you always
13476     # use absolute paths for naming shared libraries, and exclude the
13477     # DT_RUNPATH tag from executables and libraries.  But doing so
13478     # requires that you compile everything twice, which is a pain.
13479     # So that behaviour is only enabled if SCOABSPATH is set to a
13480     # non-empty value in the environment.  Most likely only useful for
13481     # creating official distributions of packages.
13482     # This is a hack until libtool officially supports absolute path
13483     # names for shared libraries.
13484     no_undefined_flag_CXX='${wl}-z,text'
13485     allow_undefined_flag_CXX='${wl}-z,nodefs'
13486     archive_cmds_need_lc_CXX=no
13487     hardcode_shlibpath_var_CXX=no
13488     hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
13489     hardcode_libdir_separator_CXX=':'
13490     link_all_deplibs_CXX=yes
13491     export_dynamic_flag_spec_CXX='${wl}-Bexport'
13492     runpath_var='LD_RUN_PATH'
13493
13494     case $cc_basename in
13495       CC*)
13496         archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
13497         archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
13498         ;;
13499       *)
13500         archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
13501         archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
13502         ;;
13503     esac
13504     ;;
13505   tandem*)
13506     case $cc_basename in
13507       NCC*)
13508         # NonStop-UX NCC 3.20
13509         # FIXME: insert proper C++ library support
13510         ld_shlibs_CXX=no
13511         ;;
13512       *)
13513         # FIXME: insert proper C++ library support
13514         ld_shlibs_CXX=no
13515         ;;
13516     esac
13517     ;;
13518   vxworks*)
13519     # FIXME: insert proper C++ library support
13520     ld_shlibs_CXX=no
13521     ;;
13522   *)
13523     # FIXME: insert proper C++ library support
13524     ld_shlibs_CXX=no
13525     ;;
13526 esac
13527 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
13528 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
13529 test "$ld_shlibs_CXX" = no && can_build_shared=no
13530
13531 GCC_CXX="$GXX"
13532 LD_CXX="$LD"
13533
13534 ## CAVEAT EMPTOR:
13535 ## There is no encapsulation within the following macros, do not change
13536 ## the running order or otherwise move them around unless you know exactly
13537 ## what you are doing...
13538
13539 cat > conftest.$ac_ext <<EOF
13540 class Foo
13541 {
13542 public:
13543   Foo (void) { a = 0; }
13544 private:
13545   int a;
13546 };
13547 EOF
13548
13549 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13550   (eval $ac_compile) 2>&5
13551   ac_status=$?
13552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13553   (exit $ac_status); }; then
13554   # Parse the compiler output and extract the necessary
13555   # objects, libraries and library flags.
13556
13557   # Sentinel used to keep track of whether or not we are before
13558   # the conftest object file.
13559   pre_test_object_deps_done=no
13560
13561   # The `*' in the case matches for architectures that use `case' in
13562   # $output_verbose_cmd can trigger glob expansion during the loop
13563   # eval without this substitution.
13564   output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
13565
13566   for p in `eval $output_verbose_link_cmd`; do
13567     case $p in
13568
13569     -L* | -R* | -l*)
13570        # Some compilers place space between "-{L,R}" and the path.
13571        # Remove the space.
13572        if test $p = "-L" \
13573           || test $p = "-R"; then
13574          prev=$p
13575          continue
13576        else
13577          prev=
13578        fi
13579
13580        if test "$pre_test_object_deps_done" = no; then
13581          case $p in
13582          -L* | -R*)
13583            # Internal compiler library paths should come after those
13584            # provided the user.  The postdeps already come after the
13585            # user supplied libs so there is no need to process them.
13586            if test -z "$compiler_lib_search_path_CXX"; then
13587              compiler_lib_search_path_CXX="${prev}${p}"
13588            else
13589              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13590            fi
13591            ;;
13592          # The "-l" case would never come before the object being
13593          # linked, so don't bother handling this case.
13594          esac
13595        else
13596          if test -z "$postdeps_CXX"; then
13597            postdeps_CXX="${prev}${p}"
13598          else
13599            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13600          fi
13601        fi
13602        ;;
13603
13604     *.$objext)
13605        # This assumes that the test object file only shows up
13606        # once in the compiler output.
13607        if test "$p" = "conftest.$objext"; then
13608          pre_test_object_deps_done=yes
13609          continue
13610        fi
13611
13612        if test "$pre_test_object_deps_done" = no; then
13613          if test -z "$predep_objects_CXX"; then
13614            predep_objects_CXX="$p"
13615          else
13616            predep_objects_CXX="$predep_objects_CXX $p"
13617          fi
13618        else
13619          if test -z "$postdep_objects_CXX"; then
13620            postdep_objects_CXX="$p"
13621          else
13622            postdep_objects_CXX="$postdep_objects_CXX $p"
13623          fi
13624        fi
13625        ;;
13626
13627     *) ;; # Ignore the rest.
13628
13629     esac
13630   done
13631
13632   # Clean up.
13633   rm -f a.out a.exe
13634 else
13635   echo "libtool.m4: error: problem compiling CXX test program"
13636 fi
13637
13638 $rm -f confest.$objext
13639
13640 # PORTME: override above test on systems where it is broken
13641 case $host_os in
13642 interix[3-9]*)
13643   # Interix 3.5 installs completely hosed .la files for C++, so rather than
13644   # hack all around it, let's just trust "g++" to DTRT.
13645   predep_objects_CXX=
13646   postdep_objects_CXX=
13647   postdeps_CXX=
13648   ;;
13649
13650 linux*)
13651   case `$CC -V 2>&1 | sed 5q` in
13652   *Sun\ C*)
13653     # Sun C++ 5.9
13654     #
13655     # The more standards-conforming stlport4 library is
13656     # incompatible with the Cstd library. Avoid specifying
13657     # it if it's in CXXFLAGS. Ignore libCrun as
13658     # -library=stlport4 depends on it.
13659     case " $CXX $CXXFLAGS " in
13660     *" -library=stlport4 "*)
13661       solaris_use_stlport4=yes
13662       ;;
13663     esac
13664     if test "$solaris_use_stlport4" != yes; then
13665       postdeps_CXX='-library=Cstd -library=Crun'
13666     fi
13667     ;;
13668   esac
13669   ;;
13670
13671 solaris*)
13672   case $cc_basename in
13673   CC*)
13674     # The more standards-conforming stlport4 library is
13675     # incompatible with the Cstd library. Avoid specifying
13676     # it if it's in CXXFLAGS. Ignore libCrun as
13677     # -library=stlport4 depends on it.
13678     case " $CXX $CXXFLAGS " in
13679     *" -library=stlport4 "*)
13680       solaris_use_stlport4=yes
13681       ;;
13682     esac
13683
13684     # Adding this requires a known-good setup of shared libraries for
13685     # Sun compiler versions before 5.6, else PIC objects from an old
13686     # archive will be linked into the output, leading to subtle bugs.
13687     if test "$solaris_use_stlport4" != yes; then
13688       postdeps_CXX='-library=Cstd -library=Crun'
13689     fi
13690     ;;
13691   esac
13692   ;;
13693 esac
13694
13695
13696 case " $postdeps_CXX " in
13697 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
13698 esac
13699
13700 lt_prog_compiler_wl_CXX=
13701 lt_prog_compiler_pic_CXX=
13702 lt_prog_compiler_static_CXX=
13703
13704 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13705 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
13706  
13707   # C++ specific cases for pic, static, wl, etc.
13708   if test "$GXX" = yes; then
13709     lt_prog_compiler_wl_CXX='-Wl,'
13710     lt_prog_compiler_static_CXX='-static'
13711
13712     case $host_os in
13713     aix*)
13714       # All AIX code is PIC.
13715       if test "$host_cpu" = ia64; then
13716         # AIX 5 now supports IA64 processor
13717         lt_prog_compiler_static_CXX='-Bstatic'
13718       fi
13719       ;;
13720     amigaos*)
13721       # FIXME: we need at least 68020 code to build shared libraries, but
13722       # adding the `-m68020' flag to GCC prevents building anything better,
13723       # like `-m68040'.
13724       lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
13725       ;;
13726     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13727       # PIC is the default for these OSes.
13728       ;;
13729     mingw* | cygwin* | os2* | pw32*)
13730       # This hack is so that the source file can tell whether it is being
13731       # built for inclusion in a dll (and should export symbols for example).
13732       # Although the cygwin gcc ignores -fPIC, still need this for old-style
13733       # (--disable-auto-import) libraries
13734       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13735       ;;
13736     darwin* | rhapsody*)
13737       # PIC is the default on this platform
13738       # Common symbols not allowed in MH_DYLIB files
13739       lt_prog_compiler_pic_CXX='-fno-common'
13740       ;;
13741     *djgpp*)
13742       # DJGPP does not support shared libraries at all
13743       lt_prog_compiler_pic_CXX=
13744       ;;
13745     interix[3-9]*)
13746       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13747       # Instead, we relocate shared libraries at runtime.
13748       ;;
13749     sysv4*MP*)
13750       if test -d /usr/nec; then
13751         lt_prog_compiler_pic_CXX=-Kconform_pic
13752       fi
13753       ;;
13754     hpux*)
13755       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13756       # not for PA HP-UX.
13757       case $host_cpu in
13758       hppa*64*|ia64*)
13759         ;;
13760       *)
13761         lt_prog_compiler_pic_CXX='-fPIC'
13762         ;;
13763       esac
13764       ;;
13765     *)
13766       lt_prog_compiler_pic_CXX='-fPIC'
13767       ;;
13768     esac
13769   else
13770     case $host_os in
13771       aix4* | aix5*)
13772         # All AIX code is PIC.
13773         if test "$host_cpu" = ia64; then
13774           # AIX 5 now supports IA64 processor
13775           lt_prog_compiler_static_CXX='-Bstatic'
13776         else
13777           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
13778         fi
13779         ;;
13780       chorus*)
13781         case $cc_basename in
13782         cxch68*)
13783           # Green Hills C++ Compiler
13784           # _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"
13785           ;;
13786         esac
13787         ;;
13788        darwin*)
13789          # PIC is the default on this platform
13790          # Common symbols not allowed in MH_DYLIB files
13791          case $cc_basename in
13792            xlc*)
13793            lt_prog_compiler_pic_CXX='-qnocommon'
13794            lt_prog_compiler_wl_CXX='-Wl,'
13795            ;;
13796          esac
13797        ;;
13798       dgux*)
13799         case $cc_basename in
13800           ec++*)
13801             lt_prog_compiler_pic_CXX='-KPIC'
13802             ;;
13803           ghcx*)
13804             # Green Hills C++ Compiler
13805             lt_prog_compiler_pic_CXX='-pic'
13806             ;;
13807           *)
13808             ;;
13809         esac
13810         ;;
13811       freebsd* | dragonfly*)
13812         # FreeBSD uses GNU C++
13813         ;;
13814       hpux9* | hpux10* | hpux11*)
13815         case $cc_basename in
13816           CC*)
13817             lt_prog_compiler_wl_CXX='-Wl,'
13818             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13819             if test "$host_cpu" != ia64; then
13820               lt_prog_compiler_pic_CXX='+Z'
13821             fi
13822             ;;
13823           aCC*)
13824             lt_prog_compiler_wl_CXX='-Wl,'
13825             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13826             case $host_cpu in
13827             hppa*64*|ia64*)
13828               # +Z the default
13829               ;;
13830             *)
13831               lt_prog_compiler_pic_CXX='+Z'
13832               ;;
13833             esac
13834             ;;
13835           *)
13836             ;;
13837         esac
13838         ;;
13839       interix*)
13840         # This is c89, which is MS Visual C++ (no shared libs)
13841         # Anyone wants to do a port?
13842         ;;
13843       irix5* | irix6* | nonstopux*)
13844         case $cc_basename in
13845           CC*)
13846             lt_prog_compiler_wl_CXX='-Wl,'
13847             lt_prog_compiler_static_CXX='-non_shared'
13848             # CC pic flag -KPIC is the default.
13849             ;;
13850           *)
13851             ;;
13852         esac
13853         ;;
13854       linux* | k*bsd*-gnu)
13855         case $cc_basename in
13856           KCC*)
13857             # KAI C++ Compiler
13858             lt_prog_compiler_wl_CXX='--backend -Wl,'
13859             lt_prog_compiler_pic_CXX='-fPIC'
13860             ;;
13861           icpc* | ecpc*)
13862             # Intel C++
13863             lt_prog_compiler_wl_CXX='-Wl,'
13864             lt_prog_compiler_pic_CXX='-KPIC'
13865             lt_prog_compiler_static_CXX='-static'
13866             ;;
13867           pgCC*)
13868             # Portland Group C++ compiler.
13869             lt_prog_compiler_wl_CXX='-Wl,'
13870             lt_prog_compiler_pic_CXX='-fpic'
13871             lt_prog_compiler_static_CXX='-Bstatic'
13872             ;;
13873           cxx*)
13874             # Compaq C++
13875             # Make sure the PIC flag is empty.  It appears that all Alpha
13876             # Linux and Compaq Tru64 Unix objects are PIC.
13877             lt_prog_compiler_pic_CXX=
13878             lt_prog_compiler_static_CXX='-non_shared'
13879             ;;
13880           *)
13881             case `$CC -V 2>&1 | sed 5q` in
13882             *Sun\ C*)
13883               # Sun C++ 5.9
13884               lt_prog_compiler_pic_CXX='-KPIC'
13885               lt_prog_compiler_static_CXX='-Bstatic'
13886               lt_prog_compiler_wl_CXX='-Qoption ld '
13887               ;;
13888             esac
13889             ;;
13890         esac
13891         ;;
13892       lynxos*)
13893         ;;
13894       m88k*)
13895         ;;
13896       mvs*)
13897         case $cc_basename in
13898           cxx*)
13899             lt_prog_compiler_pic_CXX='-W c,exportall'
13900             ;;
13901           *)
13902             ;;
13903         esac
13904         ;;
13905       netbsd* | netbsdelf*-gnu)
13906         ;;
13907       osf3* | osf4* | osf5*)
13908         case $cc_basename in
13909           KCC*)
13910             lt_prog_compiler_wl_CXX='--backend -Wl,'
13911             ;;
13912           RCC*)
13913             # Rational C++ 2.4.1
13914             lt_prog_compiler_pic_CXX='-pic'
13915             ;;
13916           cxx*)
13917             # Digital/Compaq C++
13918             lt_prog_compiler_wl_CXX='-Wl,'
13919             # Make sure the PIC flag is empty.  It appears that all Alpha
13920             # Linux and Compaq Tru64 Unix objects are PIC.
13921             lt_prog_compiler_pic_CXX=
13922             lt_prog_compiler_static_CXX='-non_shared'
13923             ;;
13924           *)
13925             ;;
13926         esac
13927         ;;
13928       psos*)
13929         ;;
13930       solaris*)
13931         case $cc_basename in
13932           CC*)
13933             # Sun C++ 4.2, 5.x and Centerline C++
13934             lt_prog_compiler_pic_CXX='-KPIC'
13935             lt_prog_compiler_static_CXX='-Bstatic'
13936             lt_prog_compiler_wl_CXX='-Qoption ld '
13937             ;;
13938           gcx*)
13939             # Green Hills C++ Compiler
13940             lt_prog_compiler_pic_CXX='-PIC'
13941             ;;
13942           *)
13943             ;;
13944         esac
13945         ;;
13946       sunos4*)
13947         case $cc_basename in
13948           CC*)
13949             # Sun C++ 4.x
13950             lt_prog_compiler_pic_CXX='-pic'
13951             lt_prog_compiler_static_CXX='-Bstatic'
13952             ;;
13953           lcc*)
13954             # Lucid
13955             lt_prog_compiler_pic_CXX='-pic'
13956             ;;
13957           *)
13958             ;;
13959         esac
13960         ;;
13961       tandem*)
13962         case $cc_basename in
13963           NCC*)
13964             # NonStop-UX NCC 3.20
13965             lt_prog_compiler_pic_CXX='-KPIC'
13966             ;;
13967           *)
13968             ;;
13969         esac
13970         ;;
13971       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13972         case $cc_basename in
13973           CC*)
13974             lt_prog_compiler_wl_CXX='-Wl,'
13975             lt_prog_compiler_pic_CXX='-KPIC'
13976             lt_prog_compiler_static_CXX='-Bstatic'
13977             ;;
13978         esac
13979         ;;
13980       vxworks*)
13981         ;;
13982       *)
13983         lt_prog_compiler_can_build_shared_CXX=no
13984         ;;
13985     esac
13986   fi
13987
13988 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
13989 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
13990
13991 #
13992 # Check to make sure the PIC flag actually works.
13993 #
13994 if test -n "$lt_prog_compiler_pic_CXX"; then
13995   
13996 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
13997 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
13998 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
13999   echo $ECHO_N "(cached) $ECHO_C" >&6
14000 else
14001   lt_prog_compiler_pic_works_CXX=no
14002   ac_outfile=conftest.$ac_objext
14003    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14004    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
14005    # Insert the option either (1) after the last *FLAGS variable, or
14006    # (2) before a word containing "conftest.", or (3) at the end.
14007    # Note that $ac_compile itself does not contain backslashes and begins
14008    # with a dollar sign (not a hyphen), so the echo should work correctly.
14009    # The option is referenced via a variable to avoid confusing sed.
14010    lt_compile=`echo "$ac_compile" | $SED \
14011    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14012    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14013    -e 's:$: $lt_compiler_flag:'`
14014    (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
14015    (eval "$lt_compile" 2>conftest.err)
14016    ac_status=$?
14017    cat conftest.err >&5
14018    echo "$as_me:__oline__: \$? = $ac_status" >&5
14019    if (exit $ac_status) && test -s "$ac_outfile"; then
14020      # The compiler can only warn and ignore the option if not recognized
14021      # So say no if there are warnings other than the usual output.
14022      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14023      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14024      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14025        lt_prog_compiler_pic_works_CXX=yes
14026      fi
14027    fi
14028    $rm conftest*
14029
14030 fi
14031 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
14032 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
14033
14034 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
14035     case $lt_prog_compiler_pic_CXX in
14036      "" | " "*) ;;
14037      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14038      esac
14039 else
14040     lt_prog_compiler_pic_CXX=
14041      lt_prog_compiler_can_build_shared_CXX=no
14042 fi
14043
14044 fi
14045 case $host_os in
14046   # For platforms which do not support PIC, -DPIC is meaningless:
14047   *djgpp*)
14048     lt_prog_compiler_pic_CXX=
14049     ;;
14050   *)
14051     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14052     ;;
14053 esac
14054
14055 #
14056 # Check to make sure the static flag actually works.
14057 #
14058 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
14059 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14060 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14061 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
14062   echo $ECHO_N "(cached) $ECHO_C" >&6
14063 else
14064   lt_prog_compiler_static_works_CXX=no
14065    save_LDFLAGS="$LDFLAGS"
14066    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14067    echo "$lt_simple_link_test_code" > conftest.$ac_ext
14068    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14069      # The linker can only warn and ignore the option if not recognized
14070      # So say no if there are warnings
14071      if test -s conftest.err; then
14072        # Append any errors to the config.log.
14073        cat conftest.err 1>&5
14074        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14075        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14076        if diff conftest.exp conftest.er2 >/dev/null; then
14077          lt_prog_compiler_static_works_CXX=yes
14078        fi
14079      else
14080        lt_prog_compiler_static_works_CXX=yes
14081      fi
14082    fi
14083    $rm conftest*
14084    LDFLAGS="$save_LDFLAGS"
14085
14086 fi
14087 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
14088 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
14089
14090 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
14091     :
14092 else
14093     lt_prog_compiler_static_CXX=
14094 fi
14095
14096
14097 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14098 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14099 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
14100   echo $ECHO_N "(cached) $ECHO_C" >&6
14101 else
14102   lt_cv_prog_compiler_c_o_CXX=no
14103    $rm -r conftest 2>/dev/null
14104    mkdir conftest
14105    cd conftest
14106    mkdir out
14107    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14108
14109    lt_compiler_flag="-o out/conftest2.$ac_objext"
14110    # Insert the option either (1) after the last *FLAGS variable, or
14111    # (2) before a word containing "conftest.", or (3) at the end.
14112    # Note that $ac_compile itself does not contain backslashes and begins
14113    # with a dollar sign (not a hyphen), so the echo should work correctly.
14114    lt_compile=`echo "$ac_compile" | $SED \
14115    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14116    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14117    -e 's:$: $lt_compiler_flag:'`
14118    (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
14119    (eval "$lt_compile" 2>out/conftest.err)
14120    ac_status=$?
14121    cat out/conftest.err >&5
14122    echo "$as_me:__oline__: \$? = $ac_status" >&5
14123    if (exit $ac_status) && test -s out/conftest2.$ac_objext
14124    then
14125      # The compiler can only warn and ignore the option if not recognized
14126      # So say no if there are warnings
14127      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14128      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14129      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14130        lt_cv_prog_compiler_c_o_CXX=yes
14131      fi
14132    fi
14133    chmod u+w . 2>&5
14134    $rm conftest*
14135    # SGI C++ compiler will create directory out/ii_files/ for
14136    # template instantiation
14137    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14138    $rm out/* && rmdir out
14139    cd ..
14140    rmdir conftest
14141    $rm conftest*
14142
14143 fi
14144 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14145 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
14146
14147
14148 hard_links="nottested"
14149 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14150   # do not overwrite the value of need_locks provided by the user
14151   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14152 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14153   hard_links=yes
14154   $rm conftest*
14155   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14156   touch conftest.a
14157   ln conftest.a conftest.b 2>&5 || hard_links=no
14158   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14159   { echo "$as_me:$LINENO: result: $hard_links" >&5
14160 echo "${ECHO_T}$hard_links" >&6; }
14161   if test "$hard_links" = no; then
14162     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14163 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14164     need_locks=warn
14165   fi
14166 else
14167   need_locks=no
14168 fi
14169
14170 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14171 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14172
14173   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14174   case $host_os in
14175   aix4* | aix5*)
14176     # If we're using GNU nm, then we don't want the "-C" option.
14177     # -C means demangle to AIX nm, but means don't demangle with GNU nm
14178     if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14179       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'
14180     else
14181       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'
14182     fi
14183     ;;
14184   pw32*)
14185     export_symbols_cmds_CXX="$ltdll_cmds"
14186   ;;
14187   cygwin* | mingw*)
14188     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'
14189   ;;
14190   linux* | k*bsd*-gnu)
14191     link_all_deplibs_CXX=no
14192   ;;
14193   *)
14194     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14195   ;;
14196   esac
14197
14198 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
14199 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
14200 test "$ld_shlibs_CXX" = no && can_build_shared=no
14201
14202 #
14203 # Do we need to explicitly link libc?
14204 #
14205 case "x$archive_cmds_need_lc_CXX" in
14206 x|xyes)
14207   # Assume -lc should be added
14208   archive_cmds_need_lc_CXX=yes
14209
14210   if test "$enable_shared" = yes && test "$GCC" = yes; then
14211     case $archive_cmds_CXX in
14212     *'~'*)
14213       # FIXME: we may have to deal with multi-command sequences.
14214       ;;
14215     '$CC '*)
14216       # Test whether the compiler implicitly links with -lc since on some
14217       # systems, -lgcc has to come before -lc. If gcc already passes -lc
14218       # to ld, don't add -lc before -lgcc.
14219       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14220 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
14221       $rm conftest*
14222       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14223
14224       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14225   (eval $ac_compile) 2>&5
14226   ac_status=$?
14227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14228   (exit $ac_status); } 2>conftest.err; then
14229         soname=conftest
14230         lib=conftest
14231         libobjs=conftest.$ac_objext
14232         deplibs=
14233         wl=$lt_prog_compiler_wl_CXX
14234         pic_flag=$lt_prog_compiler_pic_CXX
14235         compiler_flags=-v
14236         linker_flags=-v
14237         verstring=
14238         output_objdir=.
14239         libname=conftest
14240         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14241         allow_undefined_flag_CXX=
14242         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14243   (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14244   ac_status=$?
14245   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14246   (exit $ac_status); }
14247         then
14248           archive_cmds_need_lc_CXX=no
14249         else
14250           archive_cmds_need_lc_CXX=yes
14251         fi
14252         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14253       else
14254         cat conftest.err 1>&5
14255       fi
14256       $rm conftest*
14257       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
14258 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
14259       ;;
14260     esac
14261   fi
14262   ;;
14263 esac
14264
14265 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14266 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
14267 library_names_spec=
14268 libname_spec='lib$name'
14269 soname_spec=
14270 shrext_cmds=".so"
14271 postinstall_cmds=
14272 postuninstall_cmds=
14273 finish_cmds=
14274 finish_eval=
14275 shlibpath_var=
14276 shlibpath_overrides_runpath=unknown
14277 version_type=none
14278 dynamic_linker="$host_os ld.so"
14279 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14280
14281 need_lib_prefix=unknown
14282 hardcode_into_libs=no
14283
14284 # when you set need_version to no, make sure it does not cause -set_version
14285 # flags to be left without arguments
14286 need_version=unknown
14287
14288 case $host_os in
14289 aix3*)
14290   version_type=linux
14291   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14292   shlibpath_var=LIBPATH
14293
14294   # AIX 3 has no versioning support, so we append a major version to the name.
14295   soname_spec='${libname}${release}${shared_ext}$major'
14296   ;;
14297
14298 aix4* | aix5*)
14299   version_type=linux
14300   need_lib_prefix=no
14301   need_version=no
14302   hardcode_into_libs=yes
14303   if test "$host_cpu" = ia64; then
14304     # AIX 5 supports IA64
14305     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14306     shlibpath_var=LD_LIBRARY_PATH
14307   else
14308     # With GCC up to 2.95.x, collect2 would create an import file
14309     # for dependence libraries.  The import file would start with
14310     # the line `#! .'.  This would cause the generated library to
14311     # depend on `.', always an invalid library.  This was fixed in
14312     # development snapshots of GCC prior to 3.0.
14313     case $host_os in
14314       aix4 | aix4.[01] | aix4.[01].*)
14315       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14316            echo ' yes '
14317            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14318         :
14319       else
14320         can_build_shared=no
14321       fi
14322       ;;
14323     esac
14324     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14325     # soname into executable. Probably we can add versioning support to
14326     # collect2, so additional links can be useful in future.
14327     if test "$aix_use_runtimelinking" = yes; then
14328       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14329       # instead of lib<name>.a to let people know that these are not
14330       # typical AIX shared libraries.
14331       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14332     else
14333       # We preserve .a as extension for shared libraries through AIX4.2
14334       # and later when we are not doing run time linking.
14335       library_names_spec='${libname}${release}.a $libname.a'
14336       soname_spec='${libname}${release}${shared_ext}$major'
14337     fi
14338     shlibpath_var=LIBPATH
14339   fi
14340   ;;
14341
14342 amigaos*)
14343   library_names_spec='$libname.ixlibrary $libname.a'
14344   # Create ${libname}_ixlibrary.a entries in /sys/libs.
14345   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'
14346   ;;
14347
14348 beos*)
14349   library_names_spec='${libname}${shared_ext}'
14350   dynamic_linker="$host_os ld.so"
14351   shlibpath_var=LIBRARY_PATH
14352   ;;
14353
14354 bsdi[45]*)
14355   version_type=linux
14356   need_version=no
14357   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14358   soname_spec='${libname}${release}${shared_ext}$major'
14359   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14360   shlibpath_var=LD_LIBRARY_PATH
14361   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14362   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14363   # the default ld.so.conf also contains /usr/contrib/lib and
14364   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14365   # libtool to hard-code these into programs
14366   ;;
14367
14368 cygwin* | mingw* | pw32*)
14369   version_type=windows
14370   shrext_cmds=".dll"
14371   need_version=no
14372   need_lib_prefix=no
14373
14374   case $GCC,$host_os in
14375   yes,cygwin* | yes,mingw* | yes,pw32*)
14376     library_names_spec='$libname.dll.a'
14377     # DLL is installed to $(libdir)/../bin by postinstall_cmds
14378     postinstall_cmds='base_file=`basename \${file}`~
14379       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14380       dldir=$destdir/`dirname \$dlpath`~
14381       test -d \$dldir || mkdir -p \$dldir~
14382       $install_prog $dir/$dlname \$dldir/$dlname~
14383       chmod a+x \$dldir/$dlname'
14384     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14385       dlpath=$dir/\$dldll~
14386        $rm \$dlpath'
14387     shlibpath_overrides_runpath=yes
14388
14389     case $host_os in
14390     cygwin*)
14391       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14392       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14393       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14394       ;;
14395     mingw*)
14396       # MinGW DLLs use traditional 'lib' prefix
14397       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14398       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14399       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14400         # It is most probably a Windows format PATH printed by
14401         # mingw gcc, but we are running on Cygwin. Gcc prints its search
14402         # path with ; separators, and with drive letters. We can handle the
14403         # drive letters (cygwin fileutils understands them), so leave them,
14404         # especially as we might pass files found there to a mingw objdump,
14405         # which wouldn't understand a cygwinified path. Ahh.
14406         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14407       else
14408         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14409       fi
14410       ;;
14411     pw32*)
14412       # pw32 DLLs use 'pw' prefix rather than 'lib'
14413       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14414       ;;
14415     esac
14416     ;;
14417
14418   *)
14419     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14420     ;;
14421   esac
14422   dynamic_linker='Win32 ld.exe'
14423   # FIXME: first we should search . and the directory the executable is in
14424   shlibpath_var=PATH
14425   ;;
14426
14427 darwin* | rhapsody*)
14428   dynamic_linker="$host_os dyld"
14429   version_type=darwin
14430   need_lib_prefix=no
14431   need_version=no
14432   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14433   soname_spec='${libname}${release}${major}$shared_ext'
14434   shlibpath_overrides_runpath=yes
14435   shlibpath_var=DYLD_LIBRARY_PATH
14436   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14437    
14438   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14439   ;;
14440
14441 dgux*)
14442   version_type=linux
14443   need_lib_prefix=no
14444   need_version=no
14445   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14446   soname_spec='${libname}${release}${shared_ext}$major'
14447   shlibpath_var=LD_LIBRARY_PATH
14448   ;;
14449
14450 freebsd1*)
14451   dynamic_linker=no
14452   ;;
14453
14454 freebsd* | dragonfly*)
14455   # DragonFly does not have aout.  When/if they implement a new
14456   # versioning mechanism, adjust this.
14457   if test -x /usr/bin/objformat; then
14458     objformat=`/usr/bin/objformat`
14459   else
14460     case $host_os in
14461     freebsd[123]*) objformat=aout ;;
14462     *) objformat=elf ;;
14463     esac
14464   fi
14465   version_type=freebsd-$objformat
14466   case $version_type in
14467     freebsd-elf*)
14468       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14469       need_version=no
14470       need_lib_prefix=no
14471       ;;
14472     freebsd-*)
14473       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14474       need_version=yes
14475       ;;
14476   esac
14477   shlibpath_var=LD_LIBRARY_PATH
14478   case $host_os in
14479   freebsd2*)
14480     shlibpath_overrides_runpath=yes
14481     ;;
14482   freebsd3.[01]* | freebsdelf3.[01]*)
14483     shlibpath_overrides_runpath=yes
14484     hardcode_into_libs=yes
14485     ;;
14486   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14487   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14488     shlibpath_overrides_runpath=no
14489     hardcode_into_libs=yes
14490     ;;
14491   *) # from 4.6 on, and DragonFly
14492     shlibpath_overrides_runpath=yes
14493     hardcode_into_libs=yes
14494     ;;
14495   esac
14496   ;;
14497
14498 gnu*)
14499   version_type=linux
14500   need_lib_prefix=no
14501   need_version=no
14502   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14503   soname_spec='${libname}${release}${shared_ext}$major'
14504   shlibpath_var=LD_LIBRARY_PATH
14505   hardcode_into_libs=yes
14506   ;;
14507
14508 hpux9* | hpux10* | hpux11*)
14509   # Give a soname corresponding to the major version so that dld.sl refuses to
14510   # link against other versions.
14511   version_type=sunos
14512   need_lib_prefix=no
14513   need_version=no
14514   case $host_cpu in
14515   ia64*)
14516     shrext_cmds='.so'
14517     hardcode_into_libs=yes
14518     dynamic_linker="$host_os dld.so"
14519     shlibpath_var=LD_LIBRARY_PATH
14520     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14521     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14522     soname_spec='${libname}${release}${shared_ext}$major'
14523     if test "X$HPUX_IA64_MODE" = X32; then
14524       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14525     else
14526       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14527     fi
14528     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14529     ;;
14530    hppa*64*)
14531      shrext_cmds='.sl'
14532      hardcode_into_libs=yes
14533      dynamic_linker="$host_os dld.sl"
14534      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14535      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14536      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14537      soname_spec='${libname}${release}${shared_ext}$major'
14538      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14539      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14540      ;;
14541    *)
14542     shrext_cmds='.sl'
14543     dynamic_linker="$host_os dld.sl"
14544     shlibpath_var=SHLIB_PATH
14545     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14546     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14547     soname_spec='${libname}${release}${shared_ext}$major'
14548     ;;
14549   esac
14550   # HP-UX runs *really* slowly unless shared libraries are mode 555.
14551   postinstall_cmds='chmod 555 $lib'
14552   ;;
14553
14554 interix[3-9]*)
14555   version_type=linux
14556   need_lib_prefix=no
14557   need_version=no
14558   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14559   soname_spec='${libname}${release}${shared_ext}$major'
14560   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14561   shlibpath_var=LD_LIBRARY_PATH
14562   shlibpath_overrides_runpath=no
14563   hardcode_into_libs=yes
14564   ;;
14565
14566 irix5* | irix6* | nonstopux*)
14567   case $host_os in
14568     nonstopux*) version_type=nonstopux ;;
14569     *)
14570         if test "$lt_cv_prog_gnu_ld" = yes; then
14571                 version_type=linux
14572         else
14573                 version_type=irix
14574         fi ;;
14575   esac
14576   need_lib_prefix=no
14577   need_version=no
14578   soname_spec='${libname}${release}${shared_ext}$major'
14579   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14580   case $host_os in
14581   irix5* | nonstopux*)
14582     libsuff= shlibsuff=
14583     ;;
14584   *)
14585     case $LD in # libtool.m4 will add one of these switches to LD
14586     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14587       libsuff= shlibsuff= libmagic=32-bit;;
14588     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14589       libsuff=32 shlibsuff=N32 libmagic=N32;;
14590     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14591       libsuff=64 shlibsuff=64 libmagic=64-bit;;
14592     *) libsuff= shlibsuff= libmagic=never-match;;
14593     esac
14594     ;;
14595   esac
14596   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14597   shlibpath_overrides_runpath=no
14598   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14599   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14600   hardcode_into_libs=yes
14601   ;;
14602
14603 # No shared lib support for Linux oldld, aout, or coff.
14604 linux*oldld* | linux*aout* | linux*coff*)
14605   dynamic_linker=no
14606   ;;
14607
14608 # This must be Linux ELF.
14609 linux* | k*bsd*-gnu)
14610   version_type=linux
14611   need_lib_prefix=no
14612   need_version=no
14613   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14614   soname_spec='${libname}${release}${shared_ext}$major'
14615   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14616   shlibpath_var=LD_LIBRARY_PATH
14617   shlibpath_overrides_runpath=no
14618   # This implies no fast_install, which is unacceptable.
14619   # Some rework will be needed to allow for fast_install
14620   # before this can be enabled.
14621   hardcode_into_libs=yes
14622
14623   # Append ld.so.conf contents to the search path
14624   if test -f /etc/ld.so.conf; then
14625     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[      ]*hwcap[        ]/d;s/[:,       ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
14626     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14627   fi
14628
14629   # We used to test for /lib/ld.so.1 and disable shared libraries on
14630   # powerpc, because MkLinux only supported shared libraries with the
14631   # GNU dynamic linker.  Since this was broken with cross compilers,
14632   # most powerpc-linux boxes support dynamic linking these days and
14633   # people can always --disable-shared, the test was removed, and we
14634   # assume the GNU/Linux dynamic linker is in use.
14635   dynamic_linker='GNU/Linux ld.so'
14636   ;;
14637
14638 netbsdelf*-gnu)
14639   version_type=linux
14640   need_lib_prefix=no
14641   need_version=no
14642   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14643   soname_spec='${libname}${release}${shared_ext}$major'
14644   shlibpath_var=LD_LIBRARY_PATH
14645   shlibpath_overrides_runpath=no
14646   hardcode_into_libs=yes
14647   dynamic_linker='NetBSD ld.elf_so'
14648   ;;
14649
14650 netbsd*)
14651   version_type=sunos
14652   need_lib_prefix=no
14653   need_version=no
14654   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14655     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14656     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14657     dynamic_linker='NetBSD (a.out) ld.so'
14658   else
14659     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14660     soname_spec='${libname}${release}${shared_ext}$major'
14661     dynamic_linker='NetBSD ld.elf_so'
14662   fi
14663   shlibpath_var=LD_LIBRARY_PATH
14664   shlibpath_overrides_runpath=yes
14665   hardcode_into_libs=yes
14666   ;;
14667
14668 newsos6)
14669   version_type=linux
14670   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14671   shlibpath_var=LD_LIBRARY_PATH
14672   shlibpath_overrides_runpath=yes
14673   ;;
14674
14675 nto-qnx*)
14676   version_type=linux
14677   need_lib_prefix=no
14678   need_version=no
14679   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14680   soname_spec='${libname}${release}${shared_ext}$major'
14681   shlibpath_var=LD_LIBRARY_PATH
14682   shlibpath_overrides_runpath=yes
14683   ;;
14684
14685 openbsd*)
14686   version_type=sunos
14687   sys_lib_dlsearch_path_spec="/usr/lib"
14688   need_lib_prefix=no
14689   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14690   case $host_os in
14691     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14692     *)                         need_version=no  ;;
14693   esac
14694   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14695   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14696   shlibpath_var=LD_LIBRARY_PATH
14697   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14698     case $host_os in
14699       openbsd2.[89] | openbsd2.[89].*)
14700         shlibpath_overrides_runpath=no
14701         ;;
14702       *)
14703         shlibpath_overrides_runpath=yes
14704         ;;
14705       esac
14706   else
14707     shlibpath_overrides_runpath=yes
14708   fi
14709   ;;
14710
14711 os2*)
14712   libname_spec='$name'
14713   shrext_cmds=".dll"
14714   need_lib_prefix=no
14715   library_names_spec='$libname${shared_ext} $libname.a'
14716   dynamic_linker='OS/2 ld.exe'
14717   shlibpath_var=LIBPATH
14718   ;;
14719
14720 osf3* | osf4* | osf5*)
14721   version_type=osf
14722   need_lib_prefix=no
14723   need_version=no
14724   soname_spec='${libname}${release}${shared_ext}$major'
14725   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14726   shlibpath_var=LD_LIBRARY_PATH
14727   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14728   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14729   ;;
14730
14731 rdos*)
14732   dynamic_linker=no
14733   ;;
14734
14735 solaris*)
14736   version_type=linux
14737   need_lib_prefix=no
14738   need_version=no
14739   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14740   soname_spec='${libname}${release}${shared_ext}$major'
14741   shlibpath_var=LD_LIBRARY_PATH
14742   shlibpath_overrides_runpath=yes
14743   hardcode_into_libs=yes
14744   # ldd complains unless libraries are executable
14745   postinstall_cmds='chmod +x $lib'
14746   ;;
14747
14748 sunos4*)
14749   version_type=sunos
14750   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14751   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14752   shlibpath_var=LD_LIBRARY_PATH
14753   shlibpath_overrides_runpath=yes
14754   if test "$with_gnu_ld" = yes; then
14755     need_lib_prefix=no
14756   fi
14757   need_version=yes
14758   ;;
14759
14760 sysv4 | sysv4.3*)
14761   version_type=linux
14762   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14763   soname_spec='${libname}${release}${shared_ext}$major'
14764   shlibpath_var=LD_LIBRARY_PATH
14765   case $host_vendor in
14766     sni)
14767       shlibpath_overrides_runpath=no
14768       need_lib_prefix=no
14769       export_dynamic_flag_spec='${wl}-Blargedynsym'
14770       runpath_var=LD_RUN_PATH
14771       ;;
14772     siemens)
14773       need_lib_prefix=no
14774       ;;
14775     motorola)
14776       need_lib_prefix=no
14777       need_version=no
14778       shlibpath_overrides_runpath=no
14779       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14780       ;;
14781   esac
14782   ;;
14783
14784 sysv4*MP*)
14785   if test -d /usr/nec ;then
14786     version_type=linux
14787     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14788     soname_spec='$libname${shared_ext}.$major'
14789     shlibpath_var=LD_LIBRARY_PATH
14790   fi
14791   ;;
14792
14793 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14794   version_type=freebsd-elf
14795   need_lib_prefix=no
14796   need_version=no
14797   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14798   soname_spec='${libname}${release}${shared_ext}$major'
14799   shlibpath_var=LD_LIBRARY_PATH
14800   hardcode_into_libs=yes
14801   if test "$with_gnu_ld" = yes; then
14802     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14803     shlibpath_overrides_runpath=no
14804   else
14805     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14806     shlibpath_overrides_runpath=yes
14807     case $host_os in
14808       sco3.2v5*)
14809         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14810         ;;
14811     esac
14812   fi
14813   sys_lib_dlsearch_path_spec='/usr/lib'
14814   ;;
14815
14816 uts4*)
14817   version_type=linux
14818   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14819   soname_spec='${libname}${release}${shared_ext}$major'
14820   shlibpath_var=LD_LIBRARY_PATH
14821   ;;
14822
14823 *)
14824   dynamic_linker=no
14825   ;;
14826 esac
14827 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14828 echo "${ECHO_T}$dynamic_linker" >&6; }
14829 test "$dynamic_linker" = no && can_build_shared=no
14830
14831 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14832 if test "$GCC" = yes; then
14833   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14834 fi
14835
14836 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
14837 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
14838 hardcode_action_CXX=
14839 if test -n "$hardcode_libdir_flag_spec_CXX" || \
14840    test -n "$runpath_var_CXX" || \
14841    test "X$hardcode_automatic_CXX" = "Xyes" ; then
14842
14843   # We can hardcode non-existant directories.
14844   if test "$hardcode_direct_CXX" != no &&
14845      # If the only mechanism to avoid hardcoding is shlibpath_var, we
14846      # have to relink, otherwise we might link with an installed library
14847      # when we should be linking with a yet-to-be-installed one
14848      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
14849      test "$hardcode_minus_L_CXX" != no; then
14850     # Linking always hardcodes the temporary library directory.
14851     hardcode_action_CXX=relink
14852   else
14853     # We can link without hardcoding, and we can hardcode nonexisting dirs.
14854     hardcode_action_CXX=immediate
14855   fi
14856 else
14857   # We cannot hardcode anything, or else we can only hardcode existing
14858   # directories.
14859   hardcode_action_CXX=unsupported
14860 fi
14861 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
14862 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
14863
14864 if test "$hardcode_action_CXX" = relink; then
14865   # Fast installation is not supported
14866   enable_fast_install=no
14867 elif test "$shlibpath_overrides_runpath" = yes ||
14868      test "$enable_shared" = no; then
14869   # Fast installation is not necessary
14870   enable_fast_install=needless
14871 fi
14872
14873
14874 # The else clause should only fire when bootstrapping the
14875 # libtool distribution, otherwise you forgot to ship ltmain.sh
14876 # with your package, and you will get complaints that there are
14877 # no rules to generate ltmain.sh.
14878 if test -f "$ltmain"; then
14879   # See if we are running on zsh, and set the options which allow our commands through
14880   # without removal of \ escapes.
14881   if test -n "${ZSH_VERSION+set}" ; then
14882     setopt NO_GLOB_SUBST
14883   fi
14884   # Now quote all the things that may contain metacharacters while being
14885   # careful not to overquote the AC_SUBSTed values.  We take copies of the
14886   # variables and quote the copies for generation of the libtool script.
14887   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
14888     SED SHELL STRIP \
14889     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14890     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14891     deplibs_check_method reload_flag reload_cmds need_locks \
14892     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14893     lt_cv_sys_global_symbol_to_c_name_address \
14894     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14895     old_postinstall_cmds old_postuninstall_cmds \
14896     compiler_CXX \
14897     CC_CXX \
14898     LD_CXX \
14899     lt_prog_compiler_wl_CXX \
14900     lt_prog_compiler_pic_CXX \
14901     lt_prog_compiler_static_CXX \
14902     lt_prog_compiler_no_builtin_flag_CXX \
14903     export_dynamic_flag_spec_CXX \
14904     thread_safe_flag_spec_CXX \
14905     whole_archive_flag_spec_CXX \
14906     enable_shared_with_static_runtimes_CXX \
14907     old_archive_cmds_CXX \
14908     old_archive_from_new_cmds_CXX \
14909     predep_objects_CXX \
14910     postdep_objects_CXX \
14911     predeps_CXX \
14912     postdeps_CXX \
14913     compiler_lib_search_path_CXX \
14914     archive_cmds_CXX \
14915     archive_expsym_cmds_CXX \
14916     postinstall_cmds_CXX \
14917     postuninstall_cmds_CXX \
14918     old_archive_from_expsyms_cmds_CXX \
14919     allow_undefined_flag_CXX \
14920     no_undefined_flag_CXX \
14921     export_symbols_cmds_CXX \
14922     hardcode_libdir_flag_spec_CXX \
14923     hardcode_libdir_flag_spec_ld_CXX \
14924     hardcode_libdir_separator_CXX \
14925     hardcode_automatic_CXX \
14926     module_cmds_CXX \
14927     module_expsym_cmds_CXX \
14928     lt_cv_prog_compiler_c_o_CXX \
14929     fix_srcfile_path_CXX \
14930     exclude_expsyms_CXX \
14931     include_expsyms_CXX; do
14932
14933     case $var in
14934     old_archive_cmds_CXX | \
14935     old_archive_from_new_cmds_CXX | \
14936     archive_cmds_CXX | \
14937     archive_expsym_cmds_CXX | \
14938     module_cmds_CXX | \
14939     module_expsym_cmds_CXX | \
14940     old_archive_from_expsyms_cmds_CXX | \
14941     export_symbols_cmds_CXX | \
14942     extract_expsyms_cmds | reload_cmds | finish_cmds | \
14943     postinstall_cmds | postuninstall_cmds | \
14944     old_postinstall_cmds | old_postuninstall_cmds | \
14945     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14946       # Double-quote double-evaled strings.
14947       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14948       ;;
14949     *)
14950       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14951       ;;
14952     esac
14953   done
14954
14955   case $lt_echo in
14956   *'\$0 --fallback-echo"')
14957     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14958     ;;
14959   esac
14960
14961 cfgfile="$ofile"
14962
14963   cat <<__EOF__ >> "$cfgfile"
14964 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
14965
14966 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14967
14968 # Shell to use when invoking shell scripts.
14969 SHELL=$lt_SHELL
14970
14971 # Whether or not to build shared libraries.
14972 build_libtool_libs=$enable_shared
14973
14974 # Whether or not to build static libraries.
14975 build_old_libs=$enable_static
14976
14977 # Whether or not to add -lc for building shared libraries.
14978 build_libtool_need_lc=$archive_cmds_need_lc_CXX
14979
14980 # Whether or not to disallow shared libs when runtime libs are static
14981 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
14982
14983 # Whether or not to optimize for fast installation.
14984 fast_install=$enable_fast_install
14985
14986 # The host system.
14987 host_alias=$host_alias
14988 host=$host
14989 host_os=$host_os
14990
14991 # The build system.
14992 build_alias=$build_alias
14993 build=$build
14994 build_os=$build_os
14995
14996 # An echo program that does not interpret backslashes.
14997 echo=$lt_echo
14998
14999 # The archiver.
15000 AR=$lt_AR
15001 AR_FLAGS=$lt_AR_FLAGS
15002
15003 # A C compiler.
15004 LTCC=$lt_LTCC
15005
15006 # LTCC compiler flags.
15007 LTCFLAGS=$lt_LTCFLAGS
15008
15009 # A language-specific compiler.
15010 CC=$lt_compiler_CXX
15011
15012 # Is the compiler the GNU C compiler?
15013 with_gcc=$GCC_CXX
15014
15015 # An ERE matcher.
15016 EGREP=$lt_EGREP
15017
15018 # The linker used to build libraries.
15019 LD=$lt_LD_CXX
15020
15021 # Whether we need hard or soft links.
15022 LN_S=$lt_LN_S
15023
15024 # A BSD-compatible nm program.
15025 NM=$lt_NM
15026
15027 # A symbol stripping program
15028 STRIP=$lt_STRIP
15029
15030 # Used to examine libraries when file_magic_cmd begins "file"
15031 MAGIC_CMD=$MAGIC_CMD
15032
15033 # Used on cygwin: DLL creation program.
15034 DLLTOOL="$DLLTOOL"
15035
15036 # Used on cygwin: object dumper.
15037 OBJDUMP="$OBJDUMP"
15038
15039 # Used on cygwin: assembler.
15040 AS="$AS"
15041
15042 # The name of the directory that contains temporary libtool files.
15043 objdir=$objdir
15044
15045 # How to create reloadable object files.
15046 reload_flag=$lt_reload_flag
15047 reload_cmds=$lt_reload_cmds
15048
15049 # How to pass a linker flag through the compiler.
15050 wl=$lt_lt_prog_compiler_wl_CXX
15051
15052 # Object file suffix (normally "o").
15053 objext="$ac_objext"
15054
15055 # Old archive suffix (normally "a").
15056 libext="$libext"
15057
15058 # Shared library suffix (normally ".so").
15059 shrext_cmds='$shrext_cmds'
15060
15061 # Executable file suffix (normally "").
15062 exeext="$exeext"
15063
15064 # Additional compiler flags for building library objects.
15065 pic_flag=$lt_lt_prog_compiler_pic_CXX
15066 pic_mode=$pic_mode
15067
15068 # What is the maximum length of a command?
15069 max_cmd_len=$lt_cv_sys_max_cmd_len
15070
15071 # Does compiler simultaneously support -c and -o options?
15072 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
15073
15074 # Must we lock files when doing compilation?
15075 need_locks=$lt_need_locks
15076
15077 # Do we need the lib prefix for modules?
15078 need_lib_prefix=$need_lib_prefix
15079
15080 # Do we need a version for libraries?
15081 need_version=$need_version
15082
15083 # Whether dlopen is supported.
15084 dlopen_support=$enable_dlopen
15085
15086 # Whether dlopen of programs is supported.
15087 dlopen_self=$enable_dlopen_self
15088
15089 # Whether dlopen of statically linked programs is supported.
15090 dlopen_self_static=$enable_dlopen_self_static
15091
15092 # Compiler flag to prevent dynamic linking.
15093 link_static_flag=$lt_lt_prog_compiler_static_CXX
15094
15095 # Compiler flag to turn off builtin functions.
15096 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
15097
15098 # Compiler flag to allow reflexive dlopens.
15099 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
15100
15101 # Compiler flag to generate shared objects directly from archives.
15102 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
15103
15104 # Compiler flag to generate thread-safe objects.
15105 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
15106
15107 # Library versioning type.
15108 version_type=$version_type
15109
15110 # Format of library name prefix.
15111 libname_spec=$lt_libname_spec
15112
15113 # List of archive names.  First name is the real one, the rest are links.
15114 # The last name is the one that the linker finds with -lNAME.
15115 library_names_spec=$lt_library_names_spec
15116
15117 # The coded name of the library, if different from the real name.
15118 soname_spec=$lt_soname_spec
15119
15120 # Commands used to build and install an old-style archive.
15121 RANLIB=$lt_RANLIB
15122 old_archive_cmds=$lt_old_archive_cmds_CXX
15123 old_postinstall_cmds=$lt_old_postinstall_cmds
15124 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15125
15126 # Create an old-style archive from a shared archive.
15127 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
15128
15129 # Create a temporary old-style archive to link instead of a shared archive.
15130 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
15131
15132 # Commands used to build and install a shared archive.
15133 archive_cmds=$lt_archive_cmds_CXX
15134 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
15135 postinstall_cmds=$lt_postinstall_cmds
15136 postuninstall_cmds=$lt_postuninstall_cmds
15137
15138 # Commands used to build a loadable module (assumed same as above if empty)
15139 module_cmds=$lt_module_cmds_CXX
15140 module_expsym_cmds=$lt_module_expsym_cmds_CXX
15141
15142 # Commands to strip libraries.
15143 old_striplib=$lt_old_striplib
15144 striplib=$lt_striplib
15145
15146 # Dependencies to place before the objects being linked to create a
15147 # shared library.
15148 predep_objects=$lt_predep_objects_CXX
15149
15150 # Dependencies to place after the objects being linked to create a
15151 # shared library.
15152 postdep_objects=$lt_postdep_objects_CXX
15153
15154 # Dependencies to place before the objects being linked to create a
15155 # shared library.
15156 predeps=$lt_predeps_CXX
15157
15158 # Dependencies to place after the objects being linked to create a
15159 # shared library.
15160 postdeps=$lt_postdeps_CXX
15161
15162 # The library search path used internally by the compiler when linking
15163 # a shared library.
15164 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
15165
15166 # Method to check whether dependent libraries are shared objects.
15167 deplibs_check_method=$lt_deplibs_check_method
15168
15169 # Command to use when deplibs_check_method == file_magic.
15170 file_magic_cmd=$lt_file_magic_cmd
15171
15172 # Flag that allows shared libraries with undefined symbols to be built.
15173 allow_undefined_flag=$lt_allow_undefined_flag_CXX
15174
15175 # Flag that forces no undefined symbols.
15176 no_undefined_flag=$lt_no_undefined_flag_CXX
15177
15178 # Commands used to finish a libtool library installation in a directory.
15179 finish_cmds=$lt_finish_cmds
15180
15181 # Same as above, but a single script fragment to be evaled but not shown.
15182 finish_eval=$lt_finish_eval
15183
15184 # Take the output of nm and produce a listing of raw symbols and C names.
15185 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15186
15187 # Transform the output of nm in a proper C declaration
15188 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15189
15190 # Transform the output of nm in a C name address pair
15191 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15192
15193 # This is the shared library runtime path variable.
15194 runpath_var=$runpath_var
15195
15196 # This is the shared library path variable.
15197 shlibpath_var=$shlibpath_var
15198
15199 # Is shlibpath searched before the hard-coded library search path?
15200 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15201
15202 # How to hardcode a shared library path into an executable.
15203 hardcode_action=$hardcode_action_CXX
15204
15205 # Whether we should hardcode library paths into libraries.
15206 hardcode_into_libs=$hardcode_into_libs
15207
15208 # Flag to hardcode \$libdir into a binary during linking.
15209 # This must work even if \$libdir does not exist.
15210 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
15211
15212 # If ld is used when linking, flag to hardcode \$libdir into
15213 # a binary during linking. This must work even if \$libdir does
15214 # not exist.
15215 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
15216
15217 # Whether we need a single -rpath flag with a separated argument.
15218 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
15219
15220 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15221 # resulting binary.
15222 hardcode_direct=$hardcode_direct_CXX
15223
15224 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15225 # resulting binary.
15226 hardcode_minus_L=$hardcode_minus_L_CXX
15227
15228 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15229 # the resulting binary.
15230 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
15231
15232 # Set to yes if building a shared library automatically hardcodes DIR into the library
15233 # and all subsequent libraries and executables linked against it.
15234 hardcode_automatic=$hardcode_automatic_CXX
15235
15236 # Variables whose values should be saved in libtool wrapper scripts and
15237 # restored at relink time.
15238 variables_saved_for_relink="$variables_saved_for_relink"
15239
15240 # Whether libtool must link a program against all its dependency libraries.
15241 link_all_deplibs=$link_all_deplibs_CXX
15242
15243 # Compile-time system search path for libraries
15244 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15245
15246 # Run-time system search path for libraries
15247 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15248
15249 # Fix the shell variable \$srcfile for the compiler.
15250 fix_srcfile_path=$lt_fix_srcfile_path
15251
15252 # Set to yes if exported symbols are required.
15253 always_export_symbols=$always_export_symbols_CXX
15254
15255 # The commands to list exported symbols.
15256 export_symbols_cmds=$lt_export_symbols_cmds_CXX
15257
15258 # The commands to extract the exported symbol list from a shared archive.
15259 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15260
15261 # Symbols that should not be listed in the preloaded symbols.
15262 exclude_expsyms=$lt_exclude_expsyms_CXX
15263
15264 # Symbols that must always be exported.
15265 include_expsyms=$lt_include_expsyms_CXX
15266
15267 # ### END LIBTOOL TAG CONFIG: $tagname
15268
15269 __EOF__
15270
15271
15272 else
15273   # If there is no Makefile yet, we rely on a make rule to execute
15274   # `config.status --recheck' to rerun these tests and create the
15275   # libtool script then.
15276   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15277   if test -f "$ltmain_in"; then
15278     test -f Makefile && make "$ltmain"
15279   fi
15280 fi
15281
15282
15283 ac_ext=c
15284 ac_cpp='$CPP $CPPFLAGS'
15285 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15286 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15287 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15288
15289 CC=$lt_save_CC
15290 LDCXX=$LD
15291 LD=$lt_save_LD
15292 GCC=$lt_save_GCC
15293 with_gnu_ldcxx=$with_gnu_ld
15294 with_gnu_ld=$lt_save_with_gnu_ld
15295 lt_cv_path_LDCXX=$lt_cv_path_LD
15296 lt_cv_path_LD=$lt_save_path_LD
15297 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15298 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15299
15300         else
15301           tagname=""
15302         fi
15303         ;;
15304
15305       F77)
15306         if test -n "$F77" && test "X$F77" != "Xno"; then
15307           
15308 ac_ext=f
15309 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
15310 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15311 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
15312
15313
15314 archive_cmds_need_lc_F77=no
15315 allow_undefined_flag_F77=
15316 always_export_symbols_F77=no
15317 archive_expsym_cmds_F77=
15318 export_dynamic_flag_spec_F77=
15319 hardcode_direct_F77=no
15320 hardcode_libdir_flag_spec_F77=
15321 hardcode_libdir_flag_spec_ld_F77=
15322 hardcode_libdir_separator_F77=
15323 hardcode_minus_L_F77=no
15324 hardcode_automatic_F77=no
15325 module_cmds_F77=
15326 module_expsym_cmds_F77=
15327 link_all_deplibs_F77=unknown
15328 old_archive_cmds_F77=$old_archive_cmds
15329 no_undefined_flag_F77=
15330 whole_archive_flag_spec_F77=
15331 enable_shared_with_static_runtimes_F77=no
15332
15333 # Source file extension for f77 test sources.
15334 ac_ext=f
15335
15336 # Object file extension for compiled f77 test sources.
15337 objext=o
15338 objext_F77=$objext
15339
15340 # Code to be used in simple compile tests
15341 lt_simple_compile_test_code="\
15342       subroutine t
15343       return
15344       end
15345 "
15346
15347 # Code to be used in simple link tests
15348 lt_simple_link_test_code="\
15349       program t
15350       end
15351 "
15352
15353 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15354
15355 # If no C compiler was specified, use CC.
15356 LTCC=${LTCC-"$CC"}
15357
15358 # If no C compiler flags were specified, use CFLAGS.
15359 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15360
15361 # Allow CC to be a program name with arguments.
15362 compiler=$CC
15363
15364
15365 # save warnings/boilerplate of simple test code
15366 ac_outfile=conftest.$ac_objext
15367 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
15368 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15369 _lt_compiler_boilerplate=`cat conftest.err`
15370 $rm conftest*
15371
15372 ac_outfile=conftest.$ac_objext
15373 echo "$lt_simple_link_test_code" >conftest.$ac_ext
15374 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15375 _lt_linker_boilerplate=`cat conftest.err`
15376 $rm conftest*
15377
15378
15379 # Allow CC to be a program name with arguments.
15380 lt_save_CC="$CC"
15381 CC=${F77-"f77"}
15382 compiler=$CC
15383 compiler_F77=$CC
15384 for cc_temp in $compiler""; do
15385   case $cc_temp in
15386     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15387     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15388     \-*) ;;
15389     *) break;;
15390   esac
15391 done
15392 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15393
15394
15395 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
15396 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
15397 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
15398 echo "${ECHO_T}$can_build_shared" >&6; }
15399
15400 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
15401 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
15402 test "$can_build_shared" = "no" && enable_shared=no
15403
15404 # On AIX, shared libraries and static libraries use the same namespace, and
15405 # are all built from PIC.
15406 case $host_os in
15407 aix3*)
15408   test "$enable_shared" = yes && enable_static=no
15409   if test -n "$RANLIB"; then
15410     archive_cmds="$archive_cmds~\$RANLIB \$lib"
15411     postinstall_cmds='$RANLIB $lib'
15412   fi
15413   ;;
15414 aix4* | aix5*)
15415   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
15416     test "$enable_shared" = yes && enable_static=no
15417   fi
15418   ;;
15419 esac
15420 { echo "$as_me:$LINENO: result: $enable_shared" >&5
15421 echo "${ECHO_T}$enable_shared" >&6; }
15422
15423 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
15424 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
15425 # Make sure either enable_shared or enable_static is yes.
15426 test "$enable_shared" = yes || enable_static=yes
15427 { echo "$as_me:$LINENO: result: $enable_static" >&5
15428 echo "${ECHO_T}$enable_static" >&6; }
15429
15430 GCC_F77="$G77"
15431 LD_F77="$LD"
15432
15433 lt_prog_compiler_wl_F77=
15434 lt_prog_compiler_pic_F77=
15435 lt_prog_compiler_static_F77=
15436
15437 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15438 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
15439  
15440   if test "$GCC" = yes; then
15441     lt_prog_compiler_wl_F77='-Wl,'
15442     lt_prog_compiler_static_F77='-static'
15443
15444     case $host_os in
15445       aix*)
15446       # All AIX code is PIC.
15447       if test "$host_cpu" = ia64; then
15448         # AIX 5 now supports IA64 processor
15449         lt_prog_compiler_static_F77='-Bstatic'
15450       fi
15451       ;;
15452
15453     amigaos*)
15454       # FIXME: we need at least 68020 code to build shared libraries, but
15455       # adding the `-m68020' flag to GCC prevents building anything better,
15456       # like `-m68040'.
15457       lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
15458       ;;
15459
15460     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15461       # PIC is the default for these OSes.
15462       ;;
15463
15464     mingw* | cygwin* | pw32* | os2*)
15465       # This hack is so that the source file can tell whether it is being
15466       # built for inclusion in a dll (and should export symbols for example).
15467       # Although the cygwin gcc ignores -fPIC, still need this for old-style
15468       # (--disable-auto-import) libraries
15469       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
15470       ;;
15471
15472     darwin* | rhapsody*)
15473       # PIC is the default on this platform
15474       # Common symbols not allowed in MH_DYLIB files
15475       lt_prog_compiler_pic_F77='-fno-common'
15476       ;;
15477
15478     interix[3-9]*)
15479       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15480       # Instead, we relocate shared libraries at runtime.
15481       ;;
15482
15483     msdosdjgpp*)
15484       # Just because we use GCC doesn't mean we suddenly get shared libraries
15485       # on systems that don't support them.
15486       lt_prog_compiler_can_build_shared_F77=no
15487       enable_shared=no
15488       ;;
15489
15490     sysv4*MP*)
15491       if test -d /usr/nec; then
15492         lt_prog_compiler_pic_F77=-Kconform_pic
15493       fi
15494       ;;
15495
15496     hpux*)
15497       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15498       # not for PA HP-UX.
15499       case $host_cpu in
15500       hppa*64*|ia64*)
15501         # +Z the default
15502         ;;
15503       *)
15504         lt_prog_compiler_pic_F77='-fPIC'
15505         ;;
15506       esac
15507       ;;
15508
15509     *)
15510       lt_prog_compiler_pic_F77='-fPIC'
15511       ;;
15512     esac
15513   else
15514     # PORTME Check for flag to pass linker flags through the system compiler.
15515     case $host_os in
15516     aix*)
15517       lt_prog_compiler_wl_F77='-Wl,'
15518       if test "$host_cpu" = ia64; then
15519         # AIX 5 now supports IA64 processor
15520         lt_prog_compiler_static_F77='-Bstatic'
15521       else
15522         lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
15523       fi
15524       ;;
15525       darwin*)
15526         # PIC is the default on this platform
15527         # Common symbols not allowed in MH_DYLIB files
15528        case $cc_basename in
15529          xlc*)
15530          lt_prog_compiler_pic_F77='-qnocommon'
15531          lt_prog_compiler_wl_F77='-Wl,'
15532          ;;
15533        esac
15534        ;;
15535
15536     mingw* | cygwin* | pw32* | os2*)
15537       # This hack is so that the source file can tell whether it is being
15538       # built for inclusion in a dll (and should export symbols for example).
15539       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
15540       ;;
15541
15542     hpux9* | hpux10* | hpux11*)
15543       lt_prog_compiler_wl_F77='-Wl,'
15544       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15545       # not for PA HP-UX.
15546       case $host_cpu in
15547       hppa*64*|ia64*)
15548         # +Z the default
15549         ;;
15550       *)
15551         lt_prog_compiler_pic_F77='+Z'
15552         ;;
15553       esac
15554       # Is there a better lt_prog_compiler_static that works with the bundled CC?
15555       lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
15556       ;;
15557
15558     irix5* | irix6* | nonstopux*)
15559       lt_prog_compiler_wl_F77='-Wl,'
15560       # PIC (with -KPIC) is the default.
15561       lt_prog_compiler_static_F77='-non_shared'
15562       ;;
15563
15564     newsos6)
15565       lt_prog_compiler_pic_F77='-KPIC'
15566       lt_prog_compiler_static_F77='-Bstatic'
15567       ;;
15568
15569     linux* | k*bsd*-gnu)
15570       case $cc_basename in
15571       icc* | ecc*)
15572         lt_prog_compiler_wl_F77='-Wl,'
15573         lt_prog_compiler_pic_F77='-KPIC'
15574         lt_prog_compiler_static_F77='-static'
15575         ;;
15576       pgcc* | pgf77* | pgf90* | pgf95*)
15577         # Portland Group compilers (*not* the Pentium gcc compiler,
15578         # which looks to be a dead project)
15579         lt_prog_compiler_wl_F77='-Wl,'
15580         lt_prog_compiler_pic_F77='-fpic'
15581         lt_prog_compiler_static_F77='-Bstatic'
15582         ;;
15583       ccc*)
15584         lt_prog_compiler_wl_F77='-Wl,'
15585         # All Alpha code is PIC.
15586         lt_prog_compiler_static_F77='-non_shared'
15587         ;;
15588       *)
15589         case `$CC -V 2>&1 | sed 5q` in
15590         *Sun\ C*)
15591           # Sun C 5.9
15592           lt_prog_compiler_pic_F77='-KPIC'
15593           lt_prog_compiler_static_F77='-Bstatic'
15594           lt_prog_compiler_wl_F77='-Wl,'
15595           ;;
15596         *Sun\ F*)
15597           # Sun Fortran 8.3 passes all unrecognized flags to the linker
15598           lt_prog_compiler_pic_F77='-KPIC'
15599           lt_prog_compiler_static_F77='-Bstatic'
15600           lt_prog_compiler_wl_F77=''
15601           ;;
15602         esac
15603         ;;
15604       esac
15605       ;;
15606
15607     osf3* | osf4* | osf5*)
15608       lt_prog_compiler_wl_F77='-Wl,'
15609       # All OSF/1 code is PIC.
15610       lt_prog_compiler_static_F77='-non_shared'
15611       ;;
15612
15613     rdos*)
15614       lt_prog_compiler_static_F77='-non_shared'
15615       ;;
15616
15617     solaris*)
15618       lt_prog_compiler_pic_F77='-KPIC'
15619       lt_prog_compiler_static_F77='-Bstatic'
15620       case $cc_basename in
15621       f77* | f90* | f95*)
15622         lt_prog_compiler_wl_F77='-Qoption ld ';;
15623       *)
15624         lt_prog_compiler_wl_F77='-Wl,';;
15625       esac
15626       ;;
15627
15628     sunos4*)
15629       lt_prog_compiler_wl_F77='-Qoption ld '
15630       lt_prog_compiler_pic_F77='-PIC'
15631       lt_prog_compiler_static_F77='-Bstatic'
15632       ;;
15633
15634     sysv4 | sysv4.2uw2* | sysv4.3*)
15635       lt_prog_compiler_wl_F77='-Wl,'
15636       lt_prog_compiler_pic_F77='-KPIC'
15637       lt_prog_compiler_static_F77='-Bstatic'
15638       ;;
15639
15640     sysv4*MP*)
15641       if test -d /usr/nec ;then
15642         lt_prog_compiler_pic_F77='-Kconform_pic'
15643         lt_prog_compiler_static_F77='-Bstatic'
15644       fi
15645       ;;
15646
15647     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15648       lt_prog_compiler_wl_F77='-Wl,'
15649       lt_prog_compiler_pic_F77='-KPIC'
15650       lt_prog_compiler_static_F77='-Bstatic'
15651       ;;
15652
15653     unicos*)
15654       lt_prog_compiler_wl_F77='-Wl,'
15655       lt_prog_compiler_can_build_shared_F77=no
15656       ;;
15657
15658     uts4*)
15659       lt_prog_compiler_pic_F77='-pic'
15660       lt_prog_compiler_static_F77='-Bstatic'
15661       ;;
15662
15663     *)
15664       lt_prog_compiler_can_build_shared_F77=no
15665       ;;
15666     esac
15667   fi
15668
15669 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
15670 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
15671
15672 #
15673 # Check to make sure the PIC flag actually works.
15674 #
15675 if test -n "$lt_prog_compiler_pic_F77"; then
15676   
15677 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
15678 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
15679 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
15680   echo $ECHO_N "(cached) $ECHO_C" >&6
15681 else
15682   lt_prog_compiler_pic_works_F77=no
15683   ac_outfile=conftest.$ac_objext
15684    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15685    lt_compiler_flag="$lt_prog_compiler_pic_F77"
15686    # Insert the option either (1) after the last *FLAGS variable, or
15687    # (2) before a word containing "conftest.", or (3) at the end.
15688    # Note that $ac_compile itself does not contain backslashes and begins
15689    # with a dollar sign (not a hyphen), so the echo should work correctly.
15690    # The option is referenced via a variable to avoid confusing sed.
15691    lt_compile=`echo "$ac_compile" | $SED \
15692    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15693    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15694    -e 's:$: $lt_compiler_flag:'`
15695    (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
15696    (eval "$lt_compile" 2>conftest.err)
15697    ac_status=$?
15698    cat conftest.err >&5
15699    echo "$as_me:__oline__: \$? = $ac_status" >&5
15700    if (exit $ac_status) && test -s "$ac_outfile"; then
15701      # The compiler can only warn and ignore the option if not recognized
15702      # So say no if there are warnings other than the usual output.
15703      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15704      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15705      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15706        lt_prog_compiler_pic_works_F77=yes
15707      fi
15708    fi
15709    $rm conftest*
15710
15711 fi
15712 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
15713 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
15714
15715 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
15716     case $lt_prog_compiler_pic_F77 in
15717      "" | " "*) ;;
15718      *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
15719      esac
15720 else
15721     lt_prog_compiler_pic_F77=
15722      lt_prog_compiler_can_build_shared_F77=no
15723 fi
15724
15725 fi
15726 case $host_os in
15727   # For platforms which do not support PIC, -DPIC is meaningless:
15728   *djgpp*)
15729     lt_prog_compiler_pic_F77=
15730     ;;
15731   *)
15732     lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
15733     ;;
15734 esac
15735
15736 #
15737 # Check to make sure the static flag actually works.
15738 #
15739 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
15740 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15741 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
15742 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
15743   echo $ECHO_N "(cached) $ECHO_C" >&6
15744 else
15745   lt_prog_compiler_static_works_F77=no
15746    save_LDFLAGS="$LDFLAGS"
15747    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15748    echo "$lt_simple_link_test_code" > conftest.$ac_ext
15749    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15750      # The linker can only warn and ignore the option if not recognized
15751      # So say no if there are warnings
15752      if test -s conftest.err; then
15753        # Append any errors to the config.log.
15754        cat conftest.err 1>&5
15755        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
15756        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15757        if diff conftest.exp conftest.er2 >/dev/null; then
15758          lt_prog_compiler_static_works_F77=yes
15759        fi
15760      else
15761        lt_prog_compiler_static_works_F77=yes
15762      fi
15763    fi
15764    $rm conftest*
15765    LDFLAGS="$save_LDFLAGS"
15766
15767 fi
15768 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
15769 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
15770
15771 if test x"$lt_prog_compiler_static_works_F77" = xyes; then
15772     :
15773 else
15774     lt_prog_compiler_static_F77=
15775 fi
15776
15777
15778 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15779 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
15780 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
15781   echo $ECHO_N "(cached) $ECHO_C" >&6
15782 else
15783   lt_cv_prog_compiler_c_o_F77=no
15784    $rm -r conftest 2>/dev/null
15785    mkdir conftest
15786    cd conftest
15787    mkdir out
15788    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15789
15790    lt_compiler_flag="-o out/conftest2.$ac_objext"
15791    # Insert the option either (1) after the last *FLAGS variable, or
15792    # (2) before a word containing "conftest.", or (3) at the end.
15793    # Note that $ac_compile itself does not contain backslashes and begins
15794    # with a dollar sign (not a hyphen), so the echo should work correctly.
15795    lt_compile=`echo "$ac_compile" | $SED \
15796    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15797    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15798    -e 's:$: $lt_compiler_flag:'`
15799    (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
15800    (eval "$lt_compile" 2>out/conftest.err)
15801    ac_status=$?
15802    cat out/conftest.err >&5
15803    echo "$as_me:__oline__: \$? = $ac_status" >&5
15804    if (exit $ac_status) && test -s out/conftest2.$ac_objext
15805    then
15806      # The compiler can only warn and ignore the option if not recognized
15807      # So say no if there are warnings
15808      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
15809      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15810      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15811        lt_cv_prog_compiler_c_o_F77=yes
15812      fi
15813    fi
15814    chmod u+w . 2>&5
15815    $rm conftest*
15816    # SGI C++ compiler will create directory out/ii_files/ for
15817    # template instantiation
15818    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15819    $rm out/* && rmdir out
15820    cd ..
15821    rmdir conftest
15822    $rm conftest*
15823
15824 fi
15825 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
15826 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
15827
15828
15829 hard_links="nottested"
15830 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
15831   # do not overwrite the value of need_locks provided by the user
15832   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15833 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
15834   hard_links=yes
15835   $rm conftest*
15836   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15837   touch conftest.a
15838   ln conftest.a conftest.b 2>&5 || hard_links=no
15839   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15840   { echo "$as_me:$LINENO: result: $hard_links" >&5
15841 echo "${ECHO_T}$hard_links" >&6; }
15842   if test "$hard_links" = no; then
15843     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15844 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15845     need_locks=warn
15846   fi
15847 else
15848   need_locks=no
15849 fi
15850
15851 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15852 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
15853
15854   runpath_var=
15855   allow_undefined_flag_F77=
15856   enable_shared_with_static_runtimes_F77=no
15857   archive_cmds_F77=
15858   archive_expsym_cmds_F77=
15859   old_archive_From_new_cmds_F77=
15860   old_archive_from_expsyms_cmds_F77=
15861   export_dynamic_flag_spec_F77=
15862   whole_archive_flag_spec_F77=
15863   thread_safe_flag_spec_F77=
15864   hardcode_libdir_flag_spec_F77=
15865   hardcode_libdir_flag_spec_ld_F77=
15866   hardcode_libdir_separator_F77=
15867   hardcode_direct_F77=no
15868   hardcode_minus_L_F77=no
15869   hardcode_shlibpath_var_F77=unsupported
15870   link_all_deplibs_F77=unknown
15871   hardcode_automatic_F77=no
15872   module_cmds_F77=
15873   module_expsym_cmds_F77=
15874   always_export_symbols_F77=no
15875   export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15876   # include_expsyms should be a list of space-separated symbols to be *always*
15877   # included in the symbol list
15878   include_expsyms_F77=
15879   # exclude_expsyms can be an extended regexp of symbols to exclude
15880   # it will be wrapped by ` (' and `)$', so one must not match beginning or
15881   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15882   # as well as any symbol that contains `d'.
15883   exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
15884   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15885   # platforms (ab)use it in PIC code, but their linkers get confused if
15886   # the symbol is explicitly referenced.  Since portable code cannot
15887   # rely on this symbol name, it's probably fine to never include it in
15888   # preloaded symbol tables.
15889   extract_expsyms_cmds=
15890   # Just being paranoid about ensuring that cc_basename is set.
15891   for cc_temp in $compiler""; do
15892   case $cc_temp in
15893     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15894     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15895     \-*) ;;
15896     *) break;;
15897   esac
15898 done
15899 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15900
15901   case $host_os in
15902   cygwin* | mingw* | pw32*)
15903     # FIXME: the MSVC++ port hasn't been tested in a loooong time
15904     # When not using gcc, we currently assume that we are using
15905     # Microsoft Visual C++.
15906     if test "$GCC" != yes; then
15907       with_gnu_ld=no
15908     fi
15909     ;;
15910   interix*)
15911     # we just hope/assume this is gcc and not c89 (= MSVC++)
15912     with_gnu_ld=yes
15913     ;;
15914   openbsd*)
15915     with_gnu_ld=no
15916     ;;
15917   esac
15918
15919   ld_shlibs_F77=yes
15920   if test "$with_gnu_ld" = yes; then
15921     # If archive_cmds runs LD, not CC, wlarc should be empty
15922     wlarc='${wl}'
15923
15924     # Set some defaults for GNU ld with shared library support. These
15925     # are reset later if shared libraries are not supported. Putting them
15926     # here allows them to be overridden if necessary.
15927     runpath_var=LD_RUN_PATH
15928     hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
15929     export_dynamic_flag_spec_F77='${wl}--export-dynamic'
15930     # ancient GNU ld didn't support --whole-archive et. al.
15931     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15932         whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15933       else
15934         whole_archive_flag_spec_F77=
15935     fi
15936     supports_anon_versioning=no
15937     case `$LD -v 2>/dev/null` in
15938       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15939       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15940       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15941       *\ 2.11.*) ;; # other 2.11 versions
15942       *) supports_anon_versioning=yes ;;
15943     esac
15944
15945     # See if GNU ld supports shared libraries.
15946     case $host_os in
15947     aix3* | aix4* | aix5*)
15948       # On AIX/PPC, the GNU linker is very broken
15949       if test "$host_cpu" != ia64; then
15950         ld_shlibs_F77=no
15951         cat <<EOF 1>&2
15952
15953 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
15954 *** to be unable to reliably create shared libraries on AIX.
15955 *** Therefore, libtool is disabling shared libraries support.  If you
15956 *** really care for shared libraries, you may want to modify your PATH
15957 *** so that a non-GNU linker is found, and then restart.
15958
15959 EOF
15960       fi
15961       ;;
15962
15963     amigaos*)
15964       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)'
15965       hardcode_libdir_flag_spec_F77='-L$libdir'
15966       hardcode_minus_L_F77=yes
15967
15968       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15969       # that the semantics of dynamic libraries on AmigaOS, at least up
15970       # to version 4, is to share data among multiple programs linked
15971       # with the same dynamic library.  Since this doesn't match the
15972       # behavior of shared libraries on other platforms, we can't use
15973       # them.
15974       ld_shlibs_F77=no
15975       ;;
15976
15977     beos*)
15978       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15979         allow_undefined_flag_F77=unsupported
15980         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15981         # support --undefined.  This deserves some investigation.  FIXME
15982         archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15983       else
15984         ld_shlibs_F77=no
15985       fi
15986       ;;
15987
15988     cygwin* | mingw* | pw32*)
15989       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
15990       # as there is no search path for DLLs.
15991       hardcode_libdir_flag_spec_F77='-L$libdir'
15992       allow_undefined_flag_F77=unsupported
15993       always_export_symbols_F77=no
15994       enable_shared_with_static_runtimes_F77=yes
15995       export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
15996
15997       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15998         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15999         # If the export-symbols file already is a .def file (1st line
16000         # is EXPORTS), use it as is; otherwise, prepend...
16001         archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16002           cp $export_symbols $output_objdir/$soname.def;
16003         else
16004           echo EXPORTS > $output_objdir/$soname.def;
16005           cat $export_symbols >> $output_objdir/$soname.def;
16006         fi~
16007         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16008       else
16009         ld_shlibs_F77=no
16010       fi
16011       ;;
16012
16013     interix[3-9]*)
16014       hardcode_direct_F77=no
16015       hardcode_shlibpath_var_F77=no
16016       hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
16017       export_dynamic_flag_spec_F77='${wl}-E'
16018       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16019       # Instead, shared libraries are loaded at an image base (0x10000000 by
16020       # default) and relocated if they conflict, which is a slow very memory
16021       # consuming and fragmenting process.  To avoid this, we pick a random,
16022       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16023       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
16024       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'
16025       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'
16026       ;;
16027
16028     gnu* | linux* | k*bsd*-gnu)
16029       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16030         tmp_addflag=
16031         case $cc_basename,$host_cpu in
16032         pgcc*)                          # Portland Group C compiler
16033           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'
16034           tmp_addflag=' $pic_flag'
16035           ;;
16036         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
16037           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'
16038           tmp_addflag=' $pic_flag -Mnomain' ;;
16039         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
16040           tmp_addflag=' -i_dynamic' ;;
16041         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
16042           tmp_addflag=' -i_dynamic -nofor_main' ;;
16043         ifc* | ifort*)                  # Intel Fortran compiler
16044           tmp_addflag=' -nofor_main' ;;
16045         esac
16046         case `$CC -V 2>&1 | sed 5q` in
16047         *Sun\ C*)                       # Sun C 5.9
16048           whole_archive_flag_spec_F77='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
16049           tmp_sharedflag='-G' ;;
16050         *Sun\ F*)                       # Sun Fortran 8.3
16051           tmp_sharedflag='-G' ;;
16052         *)
16053           tmp_sharedflag='-shared' ;;
16054         esac
16055         archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16056
16057         if test $supports_anon_versioning = yes; then
16058           archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
16059   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16060   $echo "local: *; };" >> $output_objdir/$libname.ver~
16061           $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16062         fi
16063         link_all_deplibs_F77=no
16064       else
16065         ld_shlibs_F77=no
16066       fi
16067       ;;
16068
16069     netbsd* | netbsdelf*-gnu)
16070       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16071         archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16072         wlarc=
16073       else
16074         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16075         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16076       fi
16077       ;;
16078
16079     solaris*)
16080       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16081         ld_shlibs_F77=no
16082         cat <<EOF 1>&2
16083
16084 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16085 *** create shared libraries on Solaris systems.  Therefore, libtool
16086 *** is disabling shared libraries support.  We urge you to upgrade GNU
16087 *** binutils to release 2.9.1 or newer.  Another option is to modify
16088 *** your PATH or compiler configuration so that the native linker is
16089 *** used, and then restart.
16090
16091 EOF
16092       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16093         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16094         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16095       else
16096         ld_shlibs_F77=no
16097       fi
16098       ;;
16099
16100     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
16101       case `$LD -v 2>&1` in
16102         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
16103         ld_shlibs_F77=no
16104         cat <<_LT_EOF 1>&2
16105
16106 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
16107 *** reliably create shared libraries on SCO systems.  Therefore, libtool
16108 *** is disabling shared libraries support.  We urge you to upgrade GNU
16109 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
16110 *** your PATH or compiler configuration so that the native linker is
16111 *** used, and then restart.
16112
16113 _LT_EOF
16114         ;;
16115         *)
16116           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16117             hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
16118             archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
16119             archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
16120           else
16121             ld_shlibs_F77=no
16122           fi
16123         ;;
16124       esac
16125       ;;
16126
16127     sunos4*)
16128       archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16129       wlarc=
16130       hardcode_direct_F77=yes
16131       hardcode_shlibpath_var_F77=no
16132       ;;
16133
16134     *)
16135       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16136         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16137         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16138       else
16139         ld_shlibs_F77=no
16140       fi
16141       ;;
16142     esac
16143
16144     if test "$ld_shlibs_F77" = no; then
16145       runpath_var=
16146       hardcode_libdir_flag_spec_F77=
16147       export_dynamic_flag_spec_F77=
16148       whole_archive_flag_spec_F77=
16149     fi
16150   else
16151     # PORTME fill in a description of your system's linker (not GNU ld)
16152     case $host_os in
16153     aix3*)
16154       allow_undefined_flag_F77=unsupported
16155       always_export_symbols_F77=yes
16156       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'
16157       # Note: this linker hardcodes the directories in LIBPATH if there
16158       # are no directories specified by -L.
16159       hardcode_minus_L_F77=yes
16160       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
16161         # Neither direct hardcoding nor static linking is supported with a
16162         # broken collect2.
16163         hardcode_direct_F77=unsupported
16164       fi
16165       ;;
16166
16167     aix4* | aix5*)
16168       if test "$host_cpu" = ia64; then
16169         # On IA64, the linker does run time linking by default, so we don't
16170         # have to do anything special.
16171         aix_use_runtimelinking=no
16172         exp_sym_flag='-Bexport'
16173         no_entry_flag=""
16174       else
16175         # If we're using GNU nm, then we don't want the "-C" option.
16176         # -C means demangle to AIX nm, but means don't demangle with GNU nm
16177         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16178           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'
16179         else
16180           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'
16181         fi
16182         aix_use_runtimelinking=no
16183
16184         # Test if we are trying to use run time linking or normal
16185         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16186         # need to do runtime linking.
16187         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
16188           for ld_flag in $LDFLAGS; do
16189           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16190             aix_use_runtimelinking=yes
16191             break
16192           fi
16193           done
16194           ;;
16195         esac
16196
16197         exp_sym_flag='-bexport'
16198         no_entry_flag='-bnoentry'
16199       fi
16200
16201       # When large executables or shared objects are built, AIX ld can
16202       # have problems creating the table of contents.  If linking a library
16203       # or program results in "error TOC overflow" add -mminimal-toc to
16204       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
16205       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16206
16207       archive_cmds_F77=''
16208       hardcode_direct_F77=yes
16209       hardcode_libdir_separator_F77=':'
16210       link_all_deplibs_F77=yes
16211
16212       if test "$GCC" = yes; then
16213         case $host_os in aix4.[012]|aix4.[012].*)
16214         # We only want to do this on AIX 4.2 and lower, the check
16215         # below for broken collect2 doesn't work under 4.3+
16216           collect2name=`${CC} -print-prog-name=collect2`
16217           if test -f "$collect2name" && \
16218            strings "$collect2name" | grep resolve_lib_name >/dev/null
16219           then
16220           # We have reworked collect2
16221           :
16222           else
16223           # We have old collect2
16224           hardcode_direct_F77=unsupported
16225           # It fails to find uninstalled libraries when the uninstalled
16226           # path is not listed in the libpath.  Setting hardcode_minus_L
16227           # to unsupported forces relinking
16228           hardcode_minus_L_F77=yes
16229           hardcode_libdir_flag_spec_F77='-L$libdir'
16230           hardcode_libdir_separator_F77=
16231           fi
16232           ;;
16233         esac
16234         shared_flag='-shared'
16235         if test "$aix_use_runtimelinking" = yes; then
16236           shared_flag="$shared_flag "'${wl}-G'
16237         fi
16238       else
16239         # not using gcc
16240         if test "$host_cpu" = ia64; then
16241         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16242         # chokes on -Wl,-G. The following line is correct:
16243           shared_flag='-G'
16244         else
16245           if test "$aix_use_runtimelinking" = yes; then
16246             shared_flag='${wl}-G'
16247           else
16248             shared_flag='${wl}-bM:SRE'
16249           fi
16250         fi
16251       fi
16252
16253       # It seems that -bexpall does not export symbols beginning with
16254       # underscore (_), so it is better to generate a list of symbols to export.
16255       always_export_symbols_F77=yes
16256       if test "$aix_use_runtimelinking" = yes; then
16257         # Warning - without using the other runtime loading flags (-brtl),
16258         # -berok will link without error, but may produce a broken library.
16259         allow_undefined_flag_F77='-berok'
16260        # Determine the default libpath from the value encoded in an empty executable.
16261        cat >conftest.$ac_ext <<_ACEOF
16262       program main
16263
16264       end
16265 _ACEOF
16266 rm -f conftest.$ac_objext conftest$ac_exeext
16267 if { (ac_try="$ac_link"
16268 case "(($ac_try" in
16269   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16270   *) ac_try_echo=$ac_try;;
16271 esac
16272 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16273   (eval "$ac_link") 2>conftest.er1
16274   ac_status=$?
16275   grep -v '^ *+' conftest.er1 >conftest.err
16276   rm -f conftest.er1
16277   cat conftest.err >&5
16278   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16279   (exit $ac_status); } && {
16280          test -z "$ac_f77_werror_flag" ||
16281          test ! -s conftest.err
16282        } && test -s conftest$ac_exeext &&
16283        $as_test_x conftest$ac_exeext; then
16284   
16285 lt_aix_libpath_sed='
16286     /Import File Strings/,/^$/ {
16287         /^0/ {
16288             s/^0  *\(.*\)$/\1/
16289             p
16290         }
16291     }'
16292 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16293 # Check for a 64-bit object if we didn't find anything.
16294 if test -z "$aix_libpath"; then
16295   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16296 fi
16297 else
16298   echo "$as_me: failed program was:" >&5
16299 sed 's/^/| /' conftest.$ac_ext >&5
16300
16301         
16302 fi
16303
16304 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16305       conftest$ac_exeext conftest.$ac_ext
16306 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16307
16308        hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
16309         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"
16310        else
16311         if test "$host_cpu" = ia64; then
16312           hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
16313           allow_undefined_flag_F77="-z nodefs"
16314           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"
16315         else
16316          # Determine the default libpath from the value encoded in an empty executable.
16317          cat >conftest.$ac_ext <<_ACEOF
16318       program main
16319
16320       end
16321 _ACEOF
16322 rm -f conftest.$ac_objext conftest$ac_exeext
16323 if { (ac_try="$ac_link"
16324 case "(($ac_try" in
16325   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16326   *) ac_try_echo=$ac_try;;
16327 esac
16328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16329   (eval "$ac_link") 2>conftest.er1
16330   ac_status=$?
16331   grep -v '^ *+' conftest.er1 >conftest.err
16332   rm -f conftest.er1
16333   cat conftest.err >&5
16334   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16335   (exit $ac_status); } && {
16336          test -z "$ac_f77_werror_flag" ||
16337          test ! -s conftest.err
16338        } && test -s conftest$ac_exeext &&
16339        $as_test_x conftest$ac_exeext; then
16340   
16341 lt_aix_libpath_sed='
16342     /Import File Strings/,/^$/ {
16343         /^0/ {
16344             s/^0  *\(.*\)$/\1/
16345             p
16346         }
16347     }'
16348 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16349 # Check for a 64-bit object if we didn't find anything.
16350 if test -z "$aix_libpath"; then
16351   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16352 fi
16353 else
16354   echo "$as_me: failed program was:" >&5
16355 sed 's/^/| /' conftest.$ac_ext >&5
16356
16357         
16358 fi
16359
16360 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16361       conftest$ac_exeext conftest.$ac_ext
16362 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16363
16364          hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
16365           # Warning - without using the other run time loading flags,
16366           # -berok will link without error, but may produce a broken library.
16367           no_undefined_flag_F77=' ${wl}-bernotok'
16368           allow_undefined_flag_F77=' ${wl}-berok'
16369           # Exported symbols can be pulled into shared objects from archives
16370           whole_archive_flag_spec_F77='$convenience'
16371           archive_cmds_need_lc_F77=yes
16372           # This is similar to how AIX traditionally builds its shared libraries.
16373           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'
16374         fi
16375       fi
16376       ;;
16377
16378     amigaos*)
16379       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)'
16380       hardcode_libdir_flag_spec_F77='-L$libdir'
16381       hardcode_minus_L_F77=yes
16382       # see comment about different semantics on the GNU ld section
16383       ld_shlibs_F77=no
16384       ;;
16385
16386     bsdi[45]*)
16387       export_dynamic_flag_spec_F77=-rdynamic
16388       ;;
16389
16390     cygwin* | mingw* | pw32*)
16391       # When not using gcc, we currently assume that we are using
16392       # Microsoft Visual C++.
16393       # hardcode_libdir_flag_spec is actually meaningless, as there is
16394       # no search path for DLLs.
16395       hardcode_libdir_flag_spec_F77=' '
16396       allow_undefined_flag_F77=unsupported
16397       # Tell ltmain to make .lib files, not .a files.
16398       libext=lib
16399       # Tell ltmain to make .dll files, not .so files.
16400       shrext_cmds=".dll"
16401       # FIXME: Setting linknames here is a bad hack.
16402       archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
16403       # The linker will automatically build a .lib file if we build a DLL.
16404       old_archive_From_new_cmds_F77='true'
16405       # FIXME: Should let the user specify the lib program.
16406       old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs'
16407       fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
16408       enable_shared_with_static_runtimes_F77=yes
16409       ;;
16410
16411     darwin* | rhapsody*)
16412       case $host_os in
16413         rhapsody* | darwin1.[012])
16414          allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
16415          ;;
16416        *) # Darwin 1.3 on
16417          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16418            allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16419          else
16420            case ${MACOSX_DEPLOYMENT_TARGET} in
16421              10.[012])
16422                allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16423                ;;
16424              10.*)
16425                allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
16426                ;;
16427            esac
16428          fi
16429          ;;
16430       esac
16431       archive_cmds_need_lc_F77=no
16432       hardcode_direct_F77=no
16433       hardcode_automatic_F77=yes
16434       hardcode_shlibpath_var_F77=unsupported
16435       whole_archive_flag_spec_F77=''
16436       link_all_deplibs_F77=yes
16437     if test "$GCC" = yes ; then
16438         output_verbose_link_cmd='echo'
16439         archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16440       module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16441       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16442       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}'
16443       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}'
16444     else
16445       case $cc_basename in
16446         xlc*)
16447          output_verbose_link_cmd='echo'
16448          archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
16449          module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16450           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16451          archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16452           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}'
16453           ;;
16454        *)
16455          ld_shlibs_F77=no
16456           ;;
16457       esac
16458     fi
16459       ;;
16460
16461     dgux*)
16462       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16463       hardcode_libdir_flag_spec_F77='-L$libdir'
16464       hardcode_shlibpath_var_F77=no
16465       ;;
16466
16467     freebsd1*)
16468       ld_shlibs_F77=no
16469       ;;
16470
16471     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16472     # support.  Future versions do this automatically, but an explicit c++rt0.o
16473     # does not break anything, and helps significantly (at the cost of a little
16474     # extra space).
16475     freebsd2.2*)
16476       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16477       hardcode_libdir_flag_spec_F77='-R$libdir'
16478       hardcode_direct_F77=yes
16479       hardcode_shlibpath_var_F77=no
16480       ;;
16481
16482     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16483     freebsd2*)
16484       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16485       hardcode_direct_F77=yes
16486       hardcode_minus_L_F77=yes
16487       hardcode_shlibpath_var_F77=no
16488       ;;
16489
16490     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16491     freebsd* | dragonfly*)
16492       archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16493       hardcode_libdir_flag_spec_F77='-R$libdir'
16494       hardcode_direct_F77=yes
16495       hardcode_shlibpath_var_F77=no
16496       ;;
16497
16498     hpux9*)
16499       if test "$GCC" = yes; then
16500         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'
16501       else
16502         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'
16503       fi
16504       hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
16505       hardcode_libdir_separator_F77=:
16506       hardcode_direct_F77=yes
16507
16508       # hardcode_minus_L: Not really in the search PATH,
16509       # but as the default location of the library.
16510       hardcode_minus_L_F77=yes
16511       export_dynamic_flag_spec_F77='${wl}-E'
16512       ;;
16513
16514     hpux10*)
16515       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16516         archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16517       else
16518         archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16519       fi
16520       if test "$with_gnu_ld" = no; then
16521         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
16522         hardcode_libdir_separator_F77=:
16523
16524         hardcode_direct_F77=yes
16525         export_dynamic_flag_spec_F77='${wl}-E'
16526
16527         # hardcode_minus_L: Not really in the search PATH,
16528         # but as the default location of the library.
16529         hardcode_minus_L_F77=yes
16530       fi
16531       ;;
16532
16533     hpux11*)
16534       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16535         case $host_cpu in
16536         hppa*64*)
16537           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16538           ;;
16539         ia64*)
16540           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16541           ;;
16542         *)
16543           archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16544           ;;
16545         esac
16546       else
16547         case $host_cpu in
16548         hppa*64*)
16549           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16550           ;;
16551         ia64*)
16552           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16553           ;;
16554         *)
16555           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16556           ;;
16557         esac
16558       fi
16559       if test "$with_gnu_ld" = no; then
16560         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
16561         hardcode_libdir_separator_F77=:
16562
16563         case $host_cpu in
16564         hppa*64*|ia64*)
16565           hardcode_libdir_flag_spec_ld_F77='+b $libdir'
16566           hardcode_direct_F77=no
16567           hardcode_shlibpath_var_F77=no
16568           ;;
16569         *)
16570           hardcode_direct_F77=yes
16571           export_dynamic_flag_spec_F77='${wl}-E'
16572
16573           # hardcode_minus_L: Not really in the search PATH,
16574           # but as the default location of the library.
16575           hardcode_minus_L_F77=yes
16576           ;;
16577         esac
16578       fi
16579       ;;
16580
16581     irix5* | irix6* | nonstopux*)
16582       if test "$GCC" = yes; then
16583         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'
16584       else
16585         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'
16586         hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
16587       fi
16588       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16589       hardcode_libdir_separator_F77=:
16590       link_all_deplibs_F77=yes
16591       ;;
16592
16593     netbsd* | netbsdelf*-gnu)
16594       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16595         archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
16596       else
16597         archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
16598       fi
16599       hardcode_libdir_flag_spec_F77='-R$libdir'
16600       hardcode_direct_F77=yes
16601       hardcode_shlibpath_var_F77=no
16602       ;;
16603
16604     newsos6)
16605       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16606       hardcode_direct_F77=yes
16607       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16608       hardcode_libdir_separator_F77=:
16609       hardcode_shlibpath_var_F77=no
16610       ;;
16611
16612     openbsd*)
16613       if test -f /usr/libexec/ld.so; then
16614         hardcode_direct_F77=yes
16615         hardcode_shlibpath_var_F77=no
16616         if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16617           archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16618           archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16619           hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
16620           export_dynamic_flag_spec_F77='${wl}-E'
16621         else
16622           case $host_os in
16623            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16624              archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16625              hardcode_libdir_flag_spec_F77='-R$libdir'
16626              ;;
16627            *)
16628              archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16629              hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
16630              ;;
16631           esac
16632         fi
16633       else
16634         ld_shlibs_F77=no
16635       fi
16636       ;;
16637
16638     os2*)
16639       hardcode_libdir_flag_spec_F77='-L$libdir'
16640       hardcode_minus_L_F77=yes
16641       allow_undefined_flag_F77=unsupported
16642       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'
16643       old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16644       ;;
16645
16646     osf3*)
16647       if test "$GCC" = yes; then
16648         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
16649         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'
16650       else
16651         allow_undefined_flag_F77=' -expect_unresolved \*'
16652         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'
16653       fi
16654       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16655       hardcode_libdir_separator_F77=:
16656       ;;
16657
16658     osf4* | osf5*)      # as osf3* with the addition of -msym flag
16659       if test "$GCC" = yes; then
16660         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
16661         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'
16662         hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16663       else
16664         allow_undefined_flag_F77=' -expect_unresolved \*'
16665         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'
16666         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~
16667         $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'
16668
16669         # Both c and cxx compiler support -rpath directly
16670         hardcode_libdir_flag_spec_F77='-rpath $libdir'
16671       fi
16672       hardcode_libdir_separator_F77=:
16673       ;;
16674
16675     solaris*)
16676       no_undefined_flag_F77=' -z text'
16677       if test "$GCC" = yes; then
16678         wlarc='${wl}'
16679         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16680         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16681           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16682       else
16683         wlarc=''
16684         archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16685         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16686         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16687       fi
16688       hardcode_libdir_flag_spec_F77='-R$libdir'
16689       hardcode_shlibpath_var_F77=no
16690       case $host_os in
16691       solaris2.[0-5] | solaris2.[0-5].*) ;;
16692       *)
16693         # The compiler driver will combine and reorder linker options,
16694         # but understands `-z linker_flag'.  GCC discards it without `$wl',
16695         # but is careful enough not to reorder.
16696         # Supported since Solaris 2.6 (maybe 2.5.1?)
16697         if test "$GCC" = yes; then
16698           whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
16699         else
16700           whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract'
16701         fi
16702         ;;
16703       esac
16704       link_all_deplibs_F77=yes
16705       ;;
16706
16707     sunos4*)
16708       if test "x$host_vendor" = xsequent; then
16709         # Use $CC to link under sequent, because it throws in some extra .o
16710         # files that make .init and .fini sections work.
16711         archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16712       else
16713         archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16714       fi
16715       hardcode_libdir_flag_spec_F77='-L$libdir'
16716       hardcode_direct_F77=yes
16717       hardcode_minus_L_F77=yes
16718       hardcode_shlibpath_var_F77=no
16719       ;;
16720
16721     sysv4)
16722       case $host_vendor in
16723         sni)
16724           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16725           hardcode_direct_F77=yes # is this really true???
16726         ;;
16727         siemens)
16728           ## LD is ld it makes a PLAMLIB
16729           ## CC just makes a GrossModule.
16730           archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16731           reload_cmds_F77='$CC -r -o $output$reload_objs'
16732           hardcode_direct_F77=no
16733         ;;
16734         motorola)
16735           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16736           hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
16737         ;;
16738       esac
16739       runpath_var='LD_RUN_PATH'
16740       hardcode_shlibpath_var_F77=no
16741       ;;
16742
16743     sysv4.3*)
16744       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16745       hardcode_shlibpath_var_F77=no
16746       export_dynamic_flag_spec_F77='-Bexport'
16747       ;;
16748
16749     sysv4*MP*)
16750       if test -d /usr/nec; then
16751         archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16752         hardcode_shlibpath_var_F77=no
16753         runpath_var=LD_RUN_PATH
16754         hardcode_runpath_var=yes
16755         ld_shlibs_F77=yes
16756       fi
16757       ;;
16758
16759     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
16760       no_undefined_flag_F77='${wl}-z,text'
16761       archive_cmds_need_lc_F77=no
16762       hardcode_shlibpath_var_F77=no
16763       runpath_var='LD_RUN_PATH'
16764
16765       if test "$GCC" = yes; then
16766         archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16767         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16768       else
16769         archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16770         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16771       fi
16772       ;;
16773
16774     sysv5* | sco3.2v5* | sco5v6*)
16775       # Note: We can NOT use -z defs as we might desire, because we do not
16776       # link with -lc, and that would cause any symbols used from libc to
16777       # always be unresolved, which means just about no library would
16778       # ever link correctly.  If we're not using GNU ld we use -z text
16779       # though, which does catch some bad symbols but isn't as heavy-handed
16780       # as -z defs.
16781       no_undefined_flag_F77='${wl}-z,text'
16782       allow_undefined_flag_F77='${wl}-z,nodefs'
16783       archive_cmds_need_lc_F77=no
16784       hardcode_shlibpath_var_F77=no
16785       hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
16786       hardcode_libdir_separator_F77=':'
16787       link_all_deplibs_F77=yes
16788       export_dynamic_flag_spec_F77='${wl}-Bexport'
16789       runpath_var='LD_RUN_PATH'
16790
16791       if test "$GCC" = yes; then
16792         archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16793         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16794       else
16795         archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16796         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16797       fi
16798       ;;
16799
16800     uts4*)
16801       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16802       hardcode_libdir_flag_spec_F77='-L$libdir'
16803       hardcode_shlibpath_var_F77=no
16804       ;;
16805
16806     *)
16807       ld_shlibs_F77=no
16808       ;;
16809     esac
16810   fi
16811
16812 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
16813 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
16814 test "$ld_shlibs_F77" = no && can_build_shared=no
16815
16816 #
16817 # Do we need to explicitly link libc?
16818 #
16819 case "x$archive_cmds_need_lc_F77" in
16820 x|xyes)
16821   # Assume -lc should be added
16822   archive_cmds_need_lc_F77=yes
16823
16824   if test "$enable_shared" = yes && test "$GCC" = yes; then
16825     case $archive_cmds_F77 in
16826     *'~'*)
16827       # FIXME: we may have to deal with multi-command sequences.
16828       ;;
16829     '$CC '*)
16830       # Test whether the compiler implicitly links with -lc since on some
16831       # systems, -lgcc has to come before -lc. If gcc already passes -lc
16832       # to ld, don't add -lc before -lgcc.
16833       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16834 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
16835       $rm conftest*
16836       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16837
16838       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16839   (eval $ac_compile) 2>&5
16840   ac_status=$?
16841   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16842   (exit $ac_status); } 2>conftest.err; then
16843         soname=conftest
16844         lib=conftest
16845         libobjs=conftest.$ac_objext
16846         deplibs=
16847         wl=$lt_prog_compiler_wl_F77
16848         pic_flag=$lt_prog_compiler_pic_F77
16849         compiler_flags=-v
16850         linker_flags=-v
16851         verstring=
16852         output_objdir=.
16853         libname=conftest
16854         lt_save_allow_undefined_flag=$allow_undefined_flag_F77
16855         allow_undefined_flag_F77=
16856         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16857   (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16858   ac_status=$?
16859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16860   (exit $ac_status); }
16861         then
16862           archive_cmds_need_lc_F77=no
16863         else
16864           archive_cmds_need_lc_F77=yes
16865         fi
16866         allow_undefined_flag_F77=$lt_save_allow_undefined_flag
16867       else
16868         cat conftest.err 1>&5
16869       fi
16870       $rm conftest*
16871       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
16872 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
16873       ;;
16874     esac
16875   fi
16876   ;;
16877 esac
16878
16879 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16880 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
16881 library_names_spec=
16882 libname_spec='lib$name'
16883 soname_spec=
16884 shrext_cmds=".so"
16885 postinstall_cmds=
16886 postuninstall_cmds=
16887 finish_cmds=
16888 finish_eval=
16889 shlibpath_var=
16890 shlibpath_overrides_runpath=unknown
16891 version_type=none
16892 dynamic_linker="$host_os ld.so"
16893 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16894
16895 need_lib_prefix=unknown
16896 hardcode_into_libs=no
16897
16898 # when you set need_version to no, make sure it does not cause -set_version
16899 # flags to be left without arguments
16900 need_version=unknown
16901
16902 case $host_os in
16903 aix3*)
16904   version_type=linux
16905   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16906   shlibpath_var=LIBPATH
16907
16908   # AIX 3 has no versioning support, so we append a major version to the name.
16909   soname_spec='${libname}${release}${shared_ext}$major'
16910   ;;
16911
16912 aix4* | aix5*)
16913   version_type=linux
16914   need_lib_prefix=no
16915   need_version=no
16916   hardcode_into_libs=yes
16917   if test "$host_cpu" = ia64; then
16918     # AIX 5 supports IA64
16919     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16920     shlibpath_var=LD_LIBRARY_PATH
16921   else
16922     # With GCC up to 2.95.x, collect2 would create an import file
16923     # for dependence libraries.  The import file would start with
16924     # the line `#! .'.  This would cause the generated library to
16925     # depend on `.', always an invalid library.  This was fixed in
16926     # development snapshots of GCC prior to 3.0.
16927     case $host_os in
16928       aix4 | aix4.[01] | aix4.[01].*)
16929       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16930            echo ' yes '
16931            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16932         :
16933       else
16934         can_build_shared=no
16935       fi
16936       ;;
16937     esac
16938     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16939     # soname into executable. Probably we can add versioning support to
16940     # collect2, so additional links can be useful in future.
16941     if test "$aix_use_runtimelinking" = yes; then
16942       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16943       # instead of lib<name>.a to let people know that these are not
16944       # typical AIX shared libraries.
16945       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16946     else
16947       # We preserve .a as extension for shared libraries through AIX4.2
16948       # and later when we are not doing run time linking.
16949       library_names_spec='${libname}${release}.a $libname.a'
16950       soname_spec='${libname}${release}${shared_ext}$major'
16951     fi
16952     shlibpath_var=LIBPATH
16953   fi
16954   ;;
16955
16956 amigaos*)
16957   library_names_spec='$libname.ixlibrary $libname.a'
16958   # Create ${libname}_ixlibrary.a entries in /sys/libs.
16959   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'
16960   ;;
16961
16962 beos*)
16963   library_names_spec='${libname}${shared_ext}'
16964   dynamic_linker="$host_os ld.so"
16965   shlibpath_var=LIBRARY_PATH
16966   ;;
16967
16968 bsdi[45]*)
16969   version_type=linux
16970   need_version=no
16971   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16972   soname_spec='${libname}${release}${shared_ext}$major'
16973   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16974   shlibpath_var=LD_LIBRARY_PATH
16975   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16976   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16977   # the default ld.so.conf also contains /usr/contrib/lib and
16978   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16979   # libtool to hard-code these into programs
16980   ;;
16981
16982 cygwin* | mingw* | pw32*)
16983   version_type=windows
16984   shrext_cmds=".dll"
16985   need_version=no
16986   need_lib_prefix=no
16987
16988   case $GCC,$host_os in
16989   yes,cygwin* | yes,mingw* | yes,pw32*)
16990     library_names_spec='$libname.dll.a'
16991     # DLL is installed to $(libdir)/../bin by postinstall_cmds
16992     postinstall_cmds='base_file=`basename \${file}`~
16993       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16994       dldir=$destdir/`dirname \$dlpath`~
16995       test -d \$dldir || mkdir -p \$dldir~
16996       $install_prog $dir/$dlname \$dldir/$dlname~
16997       chmod a+x \$dldir/$dlname'
16998     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16999       dlpath=$dir/\$dldll~
17000        $rm \$dlpath'
17001     shlibpath_overrides_runpath=yes
17002
17003     case $host_os in
17004     cygwin*)
17005       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17006       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17007       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17008       ;;
17009     mingw*)
17010       # MinGW DLLs use traditional 'lib' prefix
17011       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17012       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17013       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17014         # It is most probably a Windows format PATH printed by
17015         # mingw gcc, but we are running on Cygwin. Gcc prints its search
17016         # path with ; separators, and with drive letters. We can handle the
17017         # drive letters (cygwin fileutils understands them), so leave them,
17018         # especially as we might pass files found there to a mingw objdump,
17019         # which wouldn't understand a cygwinified path. Ahh.
17020         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17021       else
17022         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
17023       fi
17024       ;;
17025     pw32*)
17026       # pw32 DLLs use 'pw' prefix rather than 'lib'
17027       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17028       ;;
17029     esac
17030     ;;
17031
17032   *)
17033     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17034     ;;
17035   esac
17036   dynamic_linker='Win32 ld.exe'
17037   # FIXME: first we should search . and the directory the executable is in
17038   shlibpath_var=PATH
17039   ;;
17040
17041 darwin* | rhapsody*)
17042   dynamic_linker="$host_os dyld"
17043   version_type=darwin
17044   need_lib_prefix=no
17045   need_version=no
17046   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17047   soname_spec='${libname}${release}${major}$shared_ext'
17048   shlibpath_overrides_runpath=yes
17049   shlibpath_var=DYLD_LIBRARY_PATH
17050   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17051    
17052   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17053   ;;
17054
17055 dgux*)
17056   version_type=linux
17057   need_lib_prefix=no
17058   need_version=no
17059   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17060   soname_spec='${libname}${release}${shared_ext}$major'
17061   shlibpath_var=LD_LIBRARY_PATH
17062   ;;
17063
17064 freebsd1*)
17065   dynamic_linker=no
17066   ;;
17067
17068 freebsd* | dragonfly*)
17069   # DragonFly does not have aout.  When/if they implement a new
17070   # versioning mechanism, adjust this.
17071   if test -x /usr/bin/objformat; then
17072     objformat=`/usr/bin/objformat`
17073   else
17074     case $host_os in
17075     freebsd[123]*) objformat=aout ;;
17076     *) objformat=elf ;;
17077     esac
17078   fi
17079   version_type=freebsd-$objformat
17080   case $version_type in
17081     freebsd-elf*)
17082       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17083       need_version=no
17084       need_lib_prefix=no
17085       ;;
17086     freebsd-*)
17087       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17088       need_version=yes
17089       ;;
17090   esac
17091   shlibpath_var=LD_LIBRARY_PATH
17092   case $host_os in
17093   freebsd2*)
17094     shlibpath_overrides_runpath=yes
17095     ;;
17096   freebsd3.[01]* | freebsdelf3.[01]*)
17097     shlibpath_overrides_runpath=yes
17098     hardcode_into_libs=yes
17099     ;;
17100   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17101   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17102     shlibpath_overrides_runpath=no
17103     hardcode_into_libs=yes
17104     ;;
17105   *) # from 4.6 on, and DragonFly
17106     shlibpath_overrides_runpath=yes
17107     hardcode_into_libs=yes
17108     ;;
17109   esac
17110   ;;
17111
17112 gnu*)
17113   version_type=linux
17114   need_lib_prefix=no
17115   need_version=no
17116   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17117   soname_spec='${libname}${release}${shared_ext}$major'
17118   shlibpath_var=LD_LIBRARY_PATH
17119   hardcode_into_libs=yes
17120   ;;
17121
17122 hpux9* | hpux10* | hpux11*)
17123   # Give a soname corresponding to the major version so that dld.sl refuses to
17124   # link against other versions.
17125   version_type=sunos
17126   need_lib_prefix=no
17127   need_version=no
17128   case $host_cpu in
17129   ia64*)
17130     shrext_cmds='.so'
17131     hardcode_into_libs=yes
17132     dynamic_linker="$host_os dld.so"
17133     shlibpath_var=LD_LIBRARY_PATH
17134     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17135     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17136     soname_spec='${libname}${release}${shared_ext}$major'
17137     if test "X$HPUX_IA64_MODE" = X32; then
17138       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17139     else
17140       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17141     fi
17142     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17143     ;;
17144    hppa*64*)
17145      shrext_cmds='.sl'
17146      hardcode_into_libs=yes
17147      dynamic_linker="$host_os dld.sl"
17148      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17149      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17150      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17151      soname_spec='${libname}${release}${shared_ext}$major'
17152      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17153      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17154      ;;
17155    *)
17156     shrext_cmds='.sl'
17157     dynamic_linker="$host_os dld.sl"
17158     shlibpath_var=SHLIB_PATH
17159     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17160     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17161     soname_spec='${libname}${release}${shared_ext}$major'
17162     ;;
17163   esac
17164   # HP-UX runs *really* slowly unless shared libraries are mode 555.
17165   postinstall_cmds='chmod 555 $lib'
17166   ;;
17167
17168 interix[3-9]*)
17169   version_type=linux
17170   need_lib_prefix=no
17171   need_version=no
17172   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17173   soname_spec='${libname}${release}${shared_ext}$major'
17174   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17175   shlibpath_var=LD_LIBRARY_PATH
17176   shlibpath_overrides_runpath=no
17177   hardcode_into_libs=yes
17178   ;;
17179
17180 irix5* | irix6* | nonstopux*)
17181   case $host_os in
17182     nonstopux*) version_type=nonstopux ;;
17183     *)
17184         if test "$lt_cv_prog_gnu_ld" = yes; then
17185                 version_type=linux
17186         else
17187                 version_type=irix
17188         fi ;;
17189   esac
17190   need_lib_prefix=no
17191   need_version=no
17192   soname_spec='${libname}${release}${shared_ext}$major'
17193   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17194   case $host_os in
17195   irix5* | nonstopux*)
17196     libsuff= shlibsuff=
17197     ;;
17198   *)
17199     case $LD in # libtool.m4 will add one of these switches to LD
17200     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17201       libsuff= shlibsuff= libmagic=32-bit;;
17202     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17203       libsuff=32 shlibsuff=N32 libmagic=N32;;
17204     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17205       libsuff=64 shlibsuff=64 libmagic=64-bit;;
17206     *) libsuff= shlibsuff= libmagic=never-match;;
17207     esac
17208     ;;
17209   esac
17210   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17211   shlibpath_overrides_runpath=no
17212   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17213   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17214   hardcode_into_libs=yes
17215   ;;
17216
17217 # No shared lib support for Linux oldld, aout, or coff.
17218 linux*oldld* | linux*aout* | linux*coff*)
17219   dynamic_linker=no
17220   ;;
17221
17222 # This must be Linux ELF.
17223 linux* | k*bsd*-gnu)
17224   version_type=linux
17225   need_lib_prefix=no
17226   need_version=no
17227   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17228   soname_spec='${libname}${release}${shared_ext}$major'
17229   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17230   shlibpath_var=LD_LIBRARY_PATH
17231   shlibpath_overrides_runpath=no
17232   # This implies no fast_install, which is unacceptable.
17233   # Some rework will be needed to allow for fast_install
17234   # before this can be enabled.
17235   hardcode_into_libs=yes
17236
17237   # Append ld.so.conf contents to the search path
17238   if test -f /etc/ld.so.conf; then
17239     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[      ]*hwcap[        ]/d;s/[:,       ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
17240     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17241   fi
17242
17243   # We used to test for /lib/ld.so.1 and disable shared libraries on
17244   # powerpc, because MkLinux only supported shared libraries with the
17245   # GNU dynamic linker.  Since this was broken with cross compilers,
17246   # most powerpc-linux boxes support dynamic linking these days and
17247   # people can always --disable-shared, the test was removed, and we
17248   # assume the GNU/Linux dynamic linker is in use.
17249   dynamic_linker='GNU/Linux ld.so'
17250   ;;
17251
17252 netbsdelf*-gnu)
17253   version_type=linux
17254   need_lib_prefix=no
17255   need_version=no
17256   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17257   soname_spec='${libname}${release}${shared_ext}$major'
17258   shlibpath_var=LD_LIBRARY_PATH
17259   shlibpath_overrides_runpath=no
17260   hardcode_into_libs=yes
17261   dynamic_linker='NetBSD ld.elf_so'
17262   ;;
17263
17264 netbsd*)
17265   version_type=sunos
17266   need_lib_prefix=no
17267   need_version=no
17268   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17269     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17270     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17271     dynamic_linker='NetBSD (a.out) ld.so'
17272   else
17273     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17274     soname_spec='${libname}${release}${shared_ext}$major'
17275     dynamic_linker='NetBSD ld.elf_so'
17276   fi
17277   shlibpath_var=LD_LIBRARY_PATH
17278   shlibpath_overrides_runpath=yes
17279   hardcode_into_libs=yes
17280   ;;
17281
17282 newsos6)
17283   version_type=linux
17284   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17285   shlibpath_var=LD_LIBRARY_PATH
17286   shlibpath_overrides_runpath=yes
17287   ;;
17288
17289 nto-qnx*)
17290   version_type=linux
17291   need_lib_prefix=no
17292   need_version=no
17293   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17294   soname_spec='${libname}${release}${shared_ext}$major'
17295   shlibpath_var=LD_LIBRARY_PATH
17296   shlibpath_overrides_runpath=yes
17297   ;;
17298
17299 openbsd*)
17300   version_type=sunos
17301   sys_lib_dlsearch_path_spec="/usr/lib"
17302   need_lib_prefix=no
17303   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17304   case $host_os in
17305     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
17306     *)                         need_version=no  ;;
17307   esac
17308   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17309   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17310   shlibpath_var=LD_LIBRARY_PATH
17311   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17312     case $host_os in
17313       openbsd2.[89] | openbsd2.[89].*)
17314         shlibpath_overrides_runpath=no
17315         ;;
17316       *)
17317         shlibpath_overrides_runpath=yes
17318         ;;
17319       esac
17320   else
17321     shlibpath_overrides_runpath=yes
17322   fi
17323   ;;
17324
17325 os2*)
17326   libname_spec='$name'
17327   shrext_cmds=".dll"
17328   need_lib_prefix=no
17329   library_names_spec='$libname${shared_ext} $libname.a'
17330   dynamic_linker='OS/2 ld.exe'
17331   shlibpath_var=LIBPATH
17332   ;;
17333
17334 osf3* | osf4* | osf5*)
17335   version_type=osf
17336   need_lib_prefix=no
17337   need_version=no
17338   soname_spec='${libname}${release}${shared_ext}$major'
17339   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17340   shlibpath_var=LD_LIBRARY_PATH
17341   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17342   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17343   ;;
17344
17345 rdos*)
17346   dynamic_linker=no
17347   ;;
17348
17349 solaris*)
17350   version_type=linux
17351   need_lib_prefix=no
17352   need_version=no
17353   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17354   soname_spec='${libname}${release}${shared_ext}$major'
17355   shlibpath_var=LD_LIBRARY_PATH
17356   shlibpath_overrides_runpath=yes
17357   hardcode_into_libs=yes
17358   # ldd complains unless libraries are executable
17359   postinstall_cmds='chmod +x $lib'
17360   ;;
17361
17362 sunos4*)
17363   version_type=sunos
17364   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17365   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17366   shlibpath_var=LD_LIBRARY_PATH
17367   shlibpath_overrides_runpath=yes
17368   if test "$with_gnu_ld" = yes; then
17369     need_lib_prefix=no
17370   fi
17371   need_version=yes
17372   ;;
17373
17374 sysv4 | sysv4.3*)
17375   version_type=linux
17376   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17377   soname_spec='${libname}${release}${shared_ext}$major'
17378   shlibpath_var=LD_LIBRARY_PATH
17379   case $host_vendor in
17380     sni)
17381       shlibpath_overrides_runpath=no
17382       need_lib_prefix=no
17383       export_dynamic_flag_spec='${wl}-Blargedynsym'
17384       runpath_var=LD_RUN_PATH
17385       ;;
17386     siemens)
17387       need_lib_prefix=no
17388       ;;
17389     motorola)
17390       need_lib_prefix=no
17391       need_version=no
17392       shlibpath_overrides_runpath=no
17393       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17394       ;;
17395   esac
17396   ;;
17397
17398 sysv4*MP*)
17399   if test -d /usr/nec ;then
17400     version_type=linux
17401     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17402     soname_spec='$libname${shared_ext}.$major'
17403     shlibpath_var=LD_LIBRARY_PATH
17404   fi
17405   ;;
17406
17407 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17408   version_type=freebsd-elf
17409   need_lib_prefix=no
17410   need_version=no
17411   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17412   soname_spec='${libname}${release}${shared_ext}$major'
17413   shlibpath_var=LD_LIBRARY_PATH
17414   hardcode_into_libs=yes
17415   if test "$with_gnu_ld" = yes; then
17416     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17417     shlibpath_overrides_runpath=no
17418   else
17419     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17420     shlibpath_overrides_runpath=yes
17421     case $host_os in
17422       sco3.2v5*)
17423         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17424         ;;
17425     esac
17426   fi
17427   sys_lib_dlsearch_path_spec='/usr/lib'
17428   ;;
17429
17430 uts4*)
17431   version_type=linux
17432   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17433   soname_spec='${libname}${release}${shared_ext}$major'
17434   shlibpath_var=LD_LIBRARY_PATH
17435   ;;
17436
17437 *)
17438   dynamic_linker=no
17439   ;;
17440 esac
17441 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17442 echo "${ECHO_T}$dynamic_linker" >&6; }
17443 test "$dynamic_linker" = no && can_build_shared=no
17444
17445 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17446 if test "$GCC" = yes; then
17447   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17448 fi
17449
17450 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17451 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
17452 hardcode_action_F77=
17453 if test -n "$hardcode_libdir_flag_spec_F77" || \
17454    test -n "$runpath_var_F77" || \
17455    test "X$hardcode_automatic_F77" = "Xyes" ; then
17456
17457   # We can hardcode non-existant directories.
17458   if test "$hardcode_direct_F77" != no &&
17459      # If the only mechanism to avoid hardcoding is shlibpath_var, we
17460      # have to relink, otherwise we might link with an installed library
17461      # when we should be linking with a yet-to-be-installed one
17462      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
17463      test "$hardcode_minus_L_F77" != no; then
17464     # Linking always hardcodes the temporary library directory.
17465     hardcode_action_F77=relink
17466   else
17467     # We can link without hardcoding, and we can hardcode nonexisting dirs.
17468     hardcode_action_F77=immediate
17469   fi
17470 else
17471   # We cannot hardcode anything, or else we can only hardcode existing
17472   # directories.
17473   hardcode_action_F77=unsupported
17474 fi
17475 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
17476 echo "${ECHO_T}$hardcode_action_F77" >&6; }
17477
17478 if test "$hardcode_action_F77" = relink; then
17479   # Fast installation is not supported
17480   enable_fast_install=no
17481 elif test "$shlibpath_overrides_runpath" = yes ||
17482      test "$enable_shared" = no; then
17483   # Fast installation is not necessary
17484   enable_fast_install=needless
17485 fi
17486
17487
17488 # The else clause should only fire when bootstrapping the
17489 # libtool distribution, otherwise you forgot to ship ltmain.sh
17490 # with your package, and you will get complaints that there are
17491 # no rules to generate ltmain.sh.
17492 if test -f "$ltmain"; then
17493   # See if we are running on zsh, and set the options which allow our commands through
17494   # without removal of \ escapes.
17495   if test -n "${ZSH_VERSION+set}" ; then
17496     setopt NO_GLOB_SUBST
17497   fi
17498   # Now quote all the things that may contain metacharacters while being
17499   # careful not to overquote the AC_SUBSTed values.  We take copies of the
17500   # variables and quote the copies for generation of the libtool script.
17501   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
17502     SED SHELL STRIP \
17503     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17504     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17505     deplibs_check_method reload_flag reload_cmds need_locks \
17506     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17507     lt_cv_sys_global_symbol_to_c_name_address \
17508     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17509     old_postinstall_cmds old_postuninstall_cmds \
17510     compiler_F77 \
17511     CC_F77 \
17512     LD_F77 \
17513     lt_prog_compiler_wl_F77 \
17514     lt_prog_compiler_pic_F77 \
17515     lt_prog_compiler_static_F77 \
17516     lt_prog_compiler_no_builtin_flag_F77 \
17517     export_dynamic_flag_spec_F77 \
17518     thread_safe_flag_spec_F77 \
17519     whole_archive_flag_spec_F77 \
17520     enable_shared_with_static_runtimes_F77 \
17521     old_archive_cmds_F77 \
17522     old_archive_from_new_cmds_F77 \
17523     predep_objects_F77 \
17524     postdep_objects_F77 \
17525     predeps_F77 \
17526     postdeps_F77 \
17527     compiler_lib_search_path_F77 \
17528     archive_cmds_F77 \
17529     archive_expsym_cmds_F77 \
17530     postinstall_cmds_F77 \
17531     postuninstall_cmds_F77 \
17532     old_archive_from_expsyms_cmds_F77 \
17533     allow_undefined_flag_F77 \
17534     no_undefined_flag_F77 \
17535     export_symbols_cmds_F77 \
17536     hardcode_libdir_flag_spec_F77 \
17537     hardcode_libdir_flag_spec_ld_F77 \
17538     hardcode_libdir_separator_F77 \
17539     hardcode_automatic_F77 \
17540     module_cmds_F77 \
17541     module_expsym_cmds_F77 \
17542     lt_cv_prog_compiler_c_o_F77 \
17543     fix_srcfile_path_F77 \
17544     exclude_expsyms_F77 \
17545     include_expsyms_F77; do
17546
17547     case $var in
17548     old_archive_cmds_F77 | \
17549     old_archive_from_new_cmds_F77 | \
17550     archive_cmds_F77 | \
17551     archive_expsym_cmds_F77 | \
17552     module_cmds_F77 | \
17553     module_expsym_cmds_F77 | \
17554     old_archive_from_expsyms_cmds_F77 | \
17555     export_symbols_cmds_F77 | \
17556     extract_expsyms_cmds | reload_cmds | finish_cmds | \
17557     postinstall_cmds | postuninstall_cmds | \
17558     old_postinstall_cmds | old_postuninstall_cmds | \
17559     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17560       # Double-quote double-evaled strings.
17561       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17562       ;;
17563     *)
17564       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17565       ;;
17566     esac
17567   done
17568
17569   case $lt_echo in
17570   *'\$0 --fallback-echo"')
17571     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17572     ;;
17573   esac
17574
17575 cfgfile="$ofile"
17576
17577   cat <<__EOF__ >> "$cfgfile"
17578 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
17579
17580 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17581
17582 # Shell to use when invoking shell scripts.
17583 SHELL=$lt_SHELL
17584
17585 # Whether or not to build shared libraries.
17586 build_libtool_libs=$enable_shared
17587
17588 # Whether or not to build static libraries.
17589 build_old_libs=$enable_static
17590
17591 # Whether or not to add -lc for building shared libraries.
17592 build_libtool_need_lc=$archive_cmds_need_lc_F77
17593
17594 # Whether or not to disallow shared libs when runtime libs are static
17595 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
17596
17597 # Whether or not to optimize for fast installation.
17598 fast_install=$enable_fast_install
17599
17600 # The host system.
17601 host_alias=$host_alias
17602 host=$host
17603 host_os=$host_os
17604
17605 # The build system.
17606 build_alias=$build_alias
17607 build=$build
17608 build_os=$build_os
17609
17610 # An echo program that does not interpret backslashes.
17611 echo=$lt_echo
17612
17613 # The archiver.
17614 AR=$lt_AR
17615 AR_FLAGS=$lt_AR_FLAGS
17616
17617 # A C compiler.
17618 LTCC=$lt_LTCC
17619
17620 # LTCC compiler flags.
17621 LTCFLAGS=$lt_LTCFLAGS
17622
17623 # A language-specific compiler.
17624 CC=$lt_compiler_F77
17625
17626 # Is the compiler the GNU C compiler?
17627 with_gcc=$GCC_F77
17628
17629 # An ERE matcher.
17630 EGREP=$lt_EGREP
17631
17632 # The linker used to build libraries.
17633 LD=$lt_LD_F77
17634
17635 # Whether we need hard or soft links.
17636 LN_S=$lt_LN_S
17637
17638 # A BSD-compatible nm program.
17639 NM=$lt_NM
17640
17641 # A symbol stripping program
17642 STRIP=$lt_STRIP
17643
17644 # Used to examine libraries when file_magic_cmd begins "file"
17645 MAGIC_CMD=$MAGIC_CMD
17646
17647 # Used on cygwin: DLL creation program.
17648 DLLTOOL="$DLLTOOL"
17649
17650 # Used on cygwin: object dumper.
17651 OBJDUMP="$OBJDUMP"
17652
17653 # Used on cygwin: assembler.
17654 AS="$AS"
17655
17656 # The name of the directory that contains temporary libtool files.
17657 objdir=$objdir
17658
17659 # How to create reloadable object files.
17660 reload_flag=$lt_reload_flag
17661 reload_cmds=$lt_reload_cmds
17662
17663 # How to pass a linker flag through the compiler.
17664 wl=$lt_lt_prog_compiler_wl_F77
17665
17666 # Object file suffix (normally "o").
17667 objext="$ac_objext"
17668
17669 # Old archive suffix (normally "a").
17670 libext="$libext"
17671
17672 # Shared library suffix (normally ".so").
17673 shrext_cmds='$shrext_cmds'
17674
17675 # Executable file suffix (normally "").
17676 exeext="$exeext"
17677
17678 # Additional compiler flags for building library objects.
17679 pic_flag=$lt_lt_prog_compiler_pic_F77
17680 pic_mode=$pic_mode
17681
17682 # What is the maximum length of a command?
17683 max_cmd_len=$lt_cv_sys_max_cmd_len
17684
17685 # Does compiler simultaneously support -c and -o options?
17686 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
17687
17688 # Must we lock files when doing compilation?
17689 need_locks=$lt_need_locks
17690
17691 # Do we need the lib prefix for modules?
17692 need_lib_prefix=$need_lib_prefix
17693
17694 # Do we need a version for libraries?
17695 need_version=$need_version
17696
17697 # Whether dlopen is supported.
17698 dlopen_support=$enable_dlopen
17699
17700 # Whether dlopen of programs is supported.
17701 dlopen_self=$enable_dlopen_self
17702
17703 # Whether dlopen of statically linked programs is supported.
17704 dlopen_self_static=$enable_dlopen_self_static
17705
17706 # Compiler flag to prevent dynamic linking.
17707 link_static_flag=$lt_lt_prog_compiler_static_F77
17708
17709 # Compiler flag to turn off builtin functions.
17710 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
17711
17712 # Compiler flag to allow reflexive dlopens.
17713 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
17714
17715 # Compiler flag to generate shared objects directly from archives.
17716 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
17717
17718 # Compiler flag to generate thread-safe objects.
17719 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
17720
17721 # Library versioning type.
17722 version_type=$version_type
17723
17724 # Format of library name prefix.
17725 libname_spec=$lt_libname_spec
17726
17727 # List of archive names.  First name is the real one, the rest are links.
17728 # The last name is the one that the linker finds with -lNAME.
17729 library_names_spec=$lt_library_names_spec
17730
17731 # The coded name of the library, if different from the real name.
17732 soname_spec=$lt_soname_spec
17733
17734 # Commands used to build and install an old-style archive.
17735 RANLIB=$lt_RANLIB
17736 old_archive_cmds=$lt_old_archive_cmds_F77
17737 old_postinstall_cmds=$lt_old_postinstall_cmds
17738 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17739
17740 # Create an old-style archive from a shared archive.
17741 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
17742
17743 # Create a temporary old-style archive to link instead of a shared archive.
17744 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
17745
17746 # Commands used to build and install a shared archive.
17747 archive_cmds=$lt_archive_cmds_F77
17748 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
17749 postinstall_cmds=$lt_postinstall_cmds
17750 postuninstall_cmds=$lt_postuninstall_cmds
17751
17752 # Commands used to build a loadable module (assumed same as above if empty)
17753 module_cmds=$lt_module_cmds_F77
17754 module_expsym_cmds=$lt_module_expsym_cmds_F77
17755
17756 # Commands to strip libraries.
17757 old_striplib=$lt_old_striplib
17758 striplib=$lt_striplib
17759
17760 # Dependencies to place before the objects being linked to create a
17761 # shared library.
17762 predep_objects=$lt_predep_objects_F77
17763
17764 # Dependencies to place after the objects being linked to create a
17765 # shared library.
17766 postdep_objects=$lt_postdep_objects_F77
17767
17768 # Dependencies to place before the objects being linked to create a
17769 # shared library.
17770 predeps=$lt_predeps_F77
17771
17772 # Dependencies to place after the objects being linked to create a
17773 # shared library.
17774 postdeps=$lt_postdeps_F77
17775
17776 # The library search path used internally by the compiler when linking
17777 # a shared library.
17778 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
17779
17780 # Method to check whether dependent libraries are shared objects.
17781 deplibs_check_method=$lt_deplibs_check_method
17782
17783 # Command to use when deplibs_check_method == file_magic.
17784 file_magic_cmd=$lt_file_magic_cmd
17785
17786 # Flag that allows shared libraries with undefined symbols to be built.
17787 allow_undefined_flag=$lt_allow_undefined_flag_F77
17788
17789 # Flag that forces no undefined symbols.
17790 no_undefined_flag=$lt_no_undefined_flag_F77
17791
17792 # Commands used to finish a libtool library installation in a directory.
17793 finish_cmds=$lt_finish_cmds
17794
17795 # Same as above, but a single script fragment to be evaled but not shown.
17796 finish_eval=$lt_finish_eval
17797
17798 # Take the output of nm and produce a listing of raw symbols and C names.
17799 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17800
17801 # Transform the output of nm in a proper C declaration
17802 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17803
17804 # Transform the output of nm in a C name address pair
17805 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17806
17807 # This is the shared library runtime path variable.
17808 runpath_var=$runpath_var
17809
17810 # This is the shared library path variable.
17811 shlibpath_var=$shlibpath_var
17812
17813 # Is shlibpath searched before the hard-coded library search path?
17814 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17815
17816 # How to hardcode a shared library path into an executable.
17817 hardcode_action=$hardcode_action_F77
17818
17819 # Whether we should hardcode library paths into libraries.
17820 hardcode_into_libs=$hardcode_into_libs
17821
17822 # Flag to hardcode \$libdir into a binary during linking.
17823 # This must work even if \$libdir does not exist.
17824 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
17825
17826 # If ld is used when linking, flag to hardcode \$libdir into
17827 # a binary during linking. This must work even if \$libdir does
17828 # not exist.
17829 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
17830
17831 # Whether we need a single -rpath flag with a separated argument.
17832 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
17833
17834 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17835 # resulting binary.
17836 hardcode_direct=$hardcode_direct_F77
17837
17838 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17839 # resulting binary.
17840 hardcode_minus_L=$hardcode_minus_L_F77
17841
17842 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17843 # the resulting binary.
17844 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
17845
17846 # Set to yes if building a shared library automatically hardcodes DIR into the library
17847 # and all subsequent libraries and executables linked against it.
17848 hardcode_automatic=$hardcode_automatic_F77
17849
17850 # Variables whose values should be saved in libtool wrapper scripts and
17851 # restored at relink time.
17852 variables_saved_for_relink="$variables_saved_for_relink"
17853
17854 # Whether libtool must link a program against all its dependency libraries.
17855 link_all_deplibs=$link_all_deplibs_F77
17856
17857 # Compile-time system search path for libraries
17858 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17859
17860 # Run-time system search path for libraries
17861 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17862
17863 # Fix the shell variable \$srcfile for the compiler.
17864 fix_srcfile_path=$lt_fix_srcfile_path
17865
17866 # Set to yes if exported symbols are required.
17867 always_export_symbols=$always_export_symbols_F77
17868
17869 # The commands to list exported symbols.
17870 export_symbols_cmds=$lt_export_symbols_cmds_F77
17871
17872 # The commands to extract the exported symbol list from a shared archive.
17873 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17874
17875 # Symbols that should not be listed in the preloaded symbols.
17876 exclude_expsyms=$lt_exclude_expsyms_F77
17877
17878 # Symbols that must always be exported.
17879 include_expsyms=$lt_include_expsyms_F77
17880
17881 # ### END LIBTOOL TAG CONFIG: $tagname
17882
17883 __EOF__
17884
17885
17886 else
17887   # If there is no Makefile yet, we rely on a make rule to execute
17888   # `config.status --recheck' to rerun these tests and create the
17889   # libtool script then.
17890   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
17891   if test -f "$ltmain_in"; then
17892     test -f Makefile && make "$ltmain"
17893   fi
17894 fi
17895
17896
17897 ac_ext=c
17898 ac_cpp='$CPP $CPPFLAGS'
17899 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17900 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17901 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17902
17903 CC="$lt_save_CC"
17904
17905         else
17906           tagname=""
17907         fi
17908         ;;
17909
17910       GCJ)
17911         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
17912           
17913
17914 # Source file extension for Java test sources.
17915 ac_ext=java
17916
17917 # Object file extension for compiled Java test sources.
17918 objext=o
17919 objext_GCJ=$objext
17920
17921 # Code to be used in simple compile tests
17922 lt_simple_compile_test_code="class foo {}"
17923
17924 # Code to be used in simple link tests
17925 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }'
17926
17927 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
17928
17929 # If no C compiler was specified, use CC.
17930 LTCC=${LTCC-"$CC"}
17931
17932 # If no C compiler flags were specified, use CFLAGS.
17933 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
17934
17935 # Allow CC to be a program name with arguments.
17936 compiler=$CC
17937
17938
17939 # save warnings/boilerplate of simple test code
17940 ac_outfile=conftest.$ac_objext
17941 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
17942 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17943 _lt_compiler_boilerplate=`cat conftest.err`
17944 $rm conftest*
17945
17946 ac_outfile=conftest.$ac_objext
17947 echo "$lt_simple_link_test_code" >conftest.$ac_ext
17948 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17949 _lt_linker_boilerplate=`cat conftest.err`
17950 $rm conftest*
17951
17952
17953 # Allow CC to be a program name with arguments.
17954 lt_save_CC="$CC"
17955 CC=${GCJ-"gcj"}
17956 compiler=$CC
17957 compiler_GCJ=$CC
17958 for cc_temp in $compiler""; do
17959   case $cc_temp in
17960     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17961     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17962     \-*) ;;
17963     *) break;;
17964   esac
17965 done
17966 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17967
17968
17969 # GCJ did not exist at the time GCC didn't implicitly link libc in.
17970 archive_cmds_need_lc_GCJ=no
17971
17972 old_archive_cmds_GCJ=$old_archive_cmds
17973
17974 ## CAVEAT EMPTOR:
17975 ## There is no encapsulation within the following macros, do not change
17976 ## the running order or otherwise move them around unless you know exactly
17977 ## what you are doing...
17978
17979 lt_prog_compiler_no_builtin_flag_GCJ=
17980
17981 if test "$GCC" = yes; then
17982   lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
17983
17984   
17985 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
17986 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
17987 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
17988   echo $ECHO_N "(cached) $ECHO_C" >&6
17989 else
17990   lt_cv_prog_compiler_rtti_exceptions=no
17991   ac_outfile=conftest.$ac_objext
17992    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17993    lt_compiler_flag="-fno-rtti -fno-exceptions"
17994    # Insert the option either (1) after the last *FLAGS variable, or
17995    # (2) before a word containing "conftest.", or (3) at the end.
17996    # Note that $ac_compile itself does not contain backslashes and begins
17997    # with a dollar sign (not a hyphen), so the echo should work correctly.
17998    # The option is referenced via a variable to avoid confusing sed.
17999    lt_compile=`echo "$ac_compile" | $SED \
18000    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18001    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18002    -e 's:$: $lt_compiler_flag:'`
18003    (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
18004    (eval "$lt_compile" 2>conftest.err)
18005    ac_status=$?
18006    cat conftest.err >&5
18007    echo "$as_me:__oline__: \$? = $ac_status" >&5
18008    if (exit $ac_status) && test -s "$ac_outfile"; then
18009      # The compiler can only warn and ignore the option if not recognized
18010      # So say no if there are warnings other than the usual output.
18011      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
18012      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18013      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
18014        lt_cv_prog_compiler_rtti_exceptions=yes
18015      fi
18016    fi
18017    $rm conftest*
18018
18019 fi
18020 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
18021 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
18022
18023 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
18024     lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
18025 else
18026     :
18027 fi
18028
18029 fi
18030
18031 lt_prog_compiler_wl_GCJ=
18032 lt_prog_compiler_pic_GCJ=
18033 lt_prog_compiler_static_GCJ=
18034
18035 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
18036 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
18037  
18038   if test "$GCC" = yes; then
18039     lt_prog_compiler_wl_GCJ='-Wl,'
18040     lt_prog_compiler_static_GCJ='-static'
18041
18042     case $host_os in
18043       aix*)
18044       # All AIX code is PIC.
18045       if test "$host_cpu" = ia64; then
18046         # AIX 5 now supports IA64 processor
18047         lt_prog_compiler_static_GCJ='-Bstatic'
18048       fi
18049       ;;
18050
18051     amigaos*)
18052       # FIXME: we need at least 68020 code to build shared libraries, but
18053       # adding the `-m68020' flag to GCC prevents building anything better,
18054       # like `-m68040'.
18055       lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
18056       ;;
18057
18058     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
18059       # PIC is the default for these OSes.
18060       ;;
18061
18062     mingw* | cygwin* | pw32* | os2*)
18063       # This hack is so that the source file can tell whether it is being
18064       # built for inclusion in a dll (and should export symbols for example).
18065       # Although the cygwin gcc ignores -fPIC, still need this for old-style
18066       # (--disable-auto-import) libraries
18067       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
18068       ;;
18069
18070     darwin* | rhapsody*)
18071       # PIC is the default on this platform
18072       # Common symbols not allowed in MH_DYLIB files
18073       lt_prog_compiler_pic_GCJ='-fno-common'
18074       ;;
18075
18076     interix[3-9]*)
18077       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
18078       # Instead, we relocate shared libraries at runtime.
18079       ;;
18080
18081     msdosdjgpp*)
18082       # Just because we use GCC doesn't mean we suddenly get shared libraries
18083       # on systems that don't support them.
18084       lt_prog_compiler_can_build_shared_GCJ=no
18085       enable_shared=no
18086       ;;
18087
18088     sysv4*MP*)
18089       if test -d /usr/nec; then
18090         lt_prog_compiler_pic_GCJ=-Kconform_pic
18091       fi
18092       ;;
18093
18094     hpux*)
18095       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
18096       # not for PA HP-UX.
18097       case $host_cpu in
18098       hppa*64*|ia64*)
18099         # +Z the default
18100         ;;
18101       *)
18102         lt_prog_compiler_pic_GCJ='-fPIC'
18103         ;;
18104       esac
18105       ;;
18106
18107     *)
18108       lt_prog_compiler_pic_GCJ='-fPIC'
18109       ;;
18110     esac
18111   else
18112     # PORTME Check for flag to pass linker flags through the system compiler.
18113     case $host_os in
18114     aix*)
18115       lt_prog_compiler_wl_GCJ='-Wl,'
18116       if test "$host_cpu" = ia64; then
18117         # AIX 5 now supports IA64 processor
18118         lt_prog_compiler_static_GCJ='-Bstatic'
18119       else
18120         lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
18121       fi
18122       ;;
18123       darwin*)
18124         # PIC is the default on this platform
18125         # Common symbols not allowed in MH_DYLIB files
18126        case $cc_basename in
18127          xlc*)
18128          lt_prog_compiler_pic_GCJ='-qnocommon'
18129          lt_prog_compiler_wl_GCJ='-Wl,'
18130          ;;
18131        esac
18132        ;;
18133
18134     mingw* | cygwin* | pw32* | os2*)
18135       # This hack is so that the source file can tell whether it is being
18136       # built for inclusion in a dll (and should export symbols for example).
18137       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
18138       ;;
18139
18140     hpux9* | hpux10* | hpux11*)
18141       lt_prog_compiler_wl_GCJ='-Wl,'
18142       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
18143       # not for PA HP-UX.
18144       case $host_cpu in
18145       hppa*64*|ia64*)
18146         # +Z the default
18147         ;;
18148       *)
18149         lt_prog_compiler_pic_GCJ='+Z'
18150         ;;
18151       esac
18152       # Is there a better lt_prog_compiler_static that works with the bundled CC?
18153       lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
18154       ;;
18155
18156     irix5* | irix6* | nonstopux*)
18157       lt_prog_compiler_wl_GCJ='-Wl,'
18158       # PIC (with -KPIC) is the default.
18159       lt_prog_compiler_static_GCJ='-non_shared'
18160       ;;
18161
18162     newsos6)
18163       lt_prog_compiler_pic_GCJ='-KPIC'
18164       lt_prog_compiler_static_GCJ='-Bstatic'
18165       ;;
18166
18167     linux* | k*bsd*-gnu)
18168       case $cc_basename in
18169       icc* | ecc*)
18170         lt_prog_compiler_wl_GCJ='-Wl,'
18171         lt_prog_compiler_pic_GCJ='-KPIC'
18172         lt_prog_compiler_static_GCJ='-static'
18173         ;;
18174       pgcc* | pgf77* | pgf90* | pgf95*)
18175         # Portland Group compilers (*not* the Pentium gcc compiler,
18176         # which looks to be a dead project)
18177         lt_prog_compiler_wl_GCJ='-Wl,'
18178         lt_prog_compiler_pic_GCJ='-fpic'
18179         lt_prog_compiler_static_GCJ='-Bstatic'
18180         ;;
18181       ccc*)
18182         lt_prog_compiler_wl_GCJ='-Wl,'
18183         # All Alpha code is PIC.
18184         lt_prog_compiler_static_GCJ='-non_shared'
18185         ;;
18186       *)
18187         case `$CC -V 2>&1 | sed 5q` in
18188         *Sun\ C*)
18189           # Sun C 5.9
18190           lt_prog_compiler_pic_GCJ='-KPIC'
18191           lt_prog_compiler_static_GCJ='-Bstatic'
18192           lt_prog_compiler_wl_GCJ='-Wl,'
18193           ;;
18194         *Sun\ F*)
18195           # Sun Fortran 8.3 passes all unrecognized flags to the linker
18196           lt_prog_compiler_pic_GCJ='-KPIC'
18197           lt_prog_compiler_static_GCJ='-Bstatic'
18198           lt_prog_compiler_wl_GCJ=''
18199           ;;
18200         esac
18201         ;;
18202       esac
18203       ;;
18204
18205     osf3* | osf4* | osf5*)
18206       lt_prog_compiler_wl_GCJ='-Wl,'
18207       # All OSF/1 code is PIC.
18208       lt_prog_compiler_static_GCJ='-non_shared'
18209       ;;
18210
18211     rdos*)
18212       lt_prog_compiler_static_GCJ='-non_shared'
18213       ;;
18214
18215     solaris*)
18216       lt_prog_compiler_pic_GCJ='-KPIC'
18217       lt_prog_compiler_static_GCJ='-Bstatic'
18218       case $cc_basename in
18219       f77* | f90* | f95*)
18220         lt_prog_compiler_wl_GCJ='-Qoption ld ';;
18221       *)
18222         lt_prog_compiler_wl_GCJ='-Wl,';;
18223       esac
18224       ;;
18225
18226     sunos4*)
18227       lt_prog_compiler_wl_GCJ='-Qoption ld '
18228       lt_prog_compiler_pic_GCJ='-PIC'
18229       lt_prog_compiler_static_GCJ='-Bstatic'
18230       ;;
18231
18232     sysv4 | sysv4.2uw2* | sysv4.3*)
18233       lt_prog_compiler_wl_GCJ='-Wl,'
18234       lt_prog_compiler_pic_GCJ='-KPIC'
18235       lt_prog_compiler_static_GCJ='-Bstatic'
18236       ;;
18237
18238     sysv4*MP*)
18239       if test -d /usr/nec ;then
18240         lt_prog_compiler_pic_GCJ='-Kconform_pic'
18241         lt_prog_compiler_static_GCJ='-Bstatic'
18242       fi
18243       ;;
18244
18245     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
18246       lt_prog_compiler_wl_GCJ='-Wl,'
18247       lt_prog_compiler_pic_GCJ='-KPIC'
18248       lt_prog_compiler_static_GCJ='-Bstatic'
18249       ;;
18250
18251     unicos*)
18252       lt_prog_compiler_wl_GCJ='-Wl,'
18253       lt_prog_compiler_can_build_shared_GCJ=no
18254       ;;
18255
18256     uts4*)
18257       lt_prog_compiler_pic_GCJ='-pic'
18258       lt_prog_compiler_static_GCJ='-Bstatic'
18259       ;;
18260
18261     *)
18262       lt_prog_compiler_can_build_shared_GCJ=no
18263       ;;
18264     esac
18265   fi
18266
18267 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
18268 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
18269
18270 #
18271 # Check to make sure the PIC flag actually works.
18272 #
18273 if test -n "$lt_prog_compiler_pic_GCJ"; then
18274   
18275 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
18276 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
18277 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
18278   echo $ECHO_N "(cached) $ECHO_C" >&6
18279 else
18280   lt_prog_compiler_pic_works_GCJ=no
18281   ac_outfile=conftest.$ac_objext
18282    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18283    lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
18284    # Insert the option either (1) after the last *FLAGS variable, or
18285    # (2) before a word containing "conftest.", or (3) at the end.
18286    # Note that $ac_compile itself does not contain backslashes and begins
18287    # with a dollar sign (not a hyphen), so the echo should work correctly.
18288    # The option is referenced via a variable to avoid confusing sed.
18289    lt_compile=`echo "$ac_compile" | $SED \
18290    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18291    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18292    -e 's:$: $lt_compiler_flag:'`
18293    (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
18294    (eval "$lt_compile" 2>conftest.err)
18295    ac_status=$?
18296    cat conftest.err >&5
18297    echo "$as_me:__oline__: \$? = $ac_status" >&5
18298    if (exit $ac_status) && test -s "$ac_outfile"; then
18299      # The compiler can only warn and ignore the option if not recognized
18300      # So say no if there are warnings other than the usual output.
18301      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
18302      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18303      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
18304        lt_prog_compiler_pic_works_GCJ=yes
18305      fi
18306    fi
18307    $rm conftest*
18308
18309 fi
18310 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
18311 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
18312
18313 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
18314     case $lt_prog_compiler_pic_GCJ in
18315      "" | " "*) ;;
18316      *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
18317      esac
18318 else
18319     lt_prog_compiler_pic_GCJ=
18320      lt_prog_compiler_can_build_shared_GCJ=no
18321 fi
18322
18323 fi
18324 case $host_os in
18325   # For platforms which do not support PIC, -DPIC is meaningless:
18326   *djgpp*)
18327     lt_prog_compiler_pic_GCJ=
18328     ;;
18329   *)
18330     lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
18331     ;;
18332 esac
18333
18334 #
18335 # Check to make sure the static flag actually works.
18336 #
18337 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
18338 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
18339 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
18340 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
18341   echo $ECHO_N "(cached) $ECHO_C" >&6
18342 else
18343   lt_prog_compiler_static_works_GCJ=no
18344    save_LDFLAGS="$LDFLAGS"
18345    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
18346    echo "$lt_simple_link_test_code" > conftest.$ac_ext
18347    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
18348      # The linker can only warn and ignore the option if not recognized
18349      # So say no if there are warnings
18350      if test -s conftest.err; then
18351        # Append any errors to the config.log.
18352        cat conftest.err 1>&5
18353        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
18354        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18355        if diff conftest.exp conftest.er2 >/dev/null; then
18356          lt_prog_compiler_static_works_GCJ=yes
18357        fi
18358      else
18359        lt_prog_compiler_static_works_GCJ=yes
18360      fi
18361    fi
18362    $rm conftest*
18363    LDFLAGS="$save_LDFLAGS"
18364
18365 fi
18366 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
18367 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
18368
18369 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
18370     :
18371 else
18372     lt_prog_compiler_static_GCJ=
18373 fi
18374
18375
18376 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
18377 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
18378 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
18379   echo $ECHO_N "(cached) $ECHO_C" >&6
18380 else
18381   lt_cv_prog_compiler_c_o_GCJ=no
18382    $rm -r conftest 2>/dev/null
18383    mkdir conftest
18384    cd conftest
18385    mkdir out
18386    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18387
18388    lt_compiler_flag="-o out/conftest2.$ac_objext"
18389    # Insert the option either (1) after the last *FLAGS variable, or
18390    # (2) before a word containing "conftest.", or (3) at the end.
18391    # Note that $ac_compile itself does not contain backslashes and begins
18392    # with a dollar sign (not a hyphen), so the echo should work correctly.
18393    lt_compile=`echo "$ac_compile" | $SED \
18394    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18395    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18396    -e 's:$: $lt_compiler_flag:'`
18397    (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
18398    (eval "$lt_compile" 2>out/conftest.err)
18399    ac_status=$?
18400    cat out/conftest.err >&5
18401    echo "$as_me:__oline__: \$? = $ac_status" >&5
18402    if (exit $ac_status) && test -s out/conftest2.$ac_objext
18403    then
18404      # The compiler can only warn and ignore the option if not recognized
18405      # So say no if there are warnings
18406      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
18407      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
18408      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
18409        lt_cv_prog_compiler_c_o_GCJ=yes
18410      fi
18411    fi
18412    chmod u+w . 2>&5
18413    $rm conftest*
18414    # SGI C++ compiler will create directory out/ii_files/ for
18415    # template instantiation
18416    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
18417    $rm out/* && rmdir out
18418    cd ..
18419    rmdir conftest
18420    $rm conftest*
18421
18422 fi
18423 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
18424 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
18425
18426
18427 hard_links="nottested"
18428 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
18429   # do not overwrite the value of need_locks provided by the user
18430   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
18431 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
18432   hard_links=yes
18433   $rm conftest*
18434   ln conftest.a conftest.b 2>/dev/null && hard_links=no
18435   touch conftest.a
18436   ln conftest.a conftest.b 2>&5 || hard_links=no
18437   ln conftest.a conftest.b 2>/dev/null && hard_links=no
18438   { echo "$as_me:$LINENO: result: $hard_links" >&5
18439 echo "${ECHO_T}$hard_links" >&6; }
18440   if test "$hard_links" = no; then
18441     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
18442 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
18443     need_locks=warn
18444   fi
18445 else
18446   need_locks=no
18447 fi
18448
18449 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18450 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
18451
18452   runpath_var=
18453   allow_undefined_flag_GCJ=
18454   enable_shared_with_static_runtimes_GCJ=no
18455   archive_cmds_GCJ=
18456   archive_expsym_cmds_GCJ=
18457   old_archive_From_new_cmds_GCJ=
18458   old_archive_from_expsyms_cmds_GCJ=
18459   export_dynamic_flag_spec_GCJ=
18460   whole_archive_flag_spec_GCJ=
18461   thread_safe_flag_spec_GCJ=
18462   hardcode_libdir_flag_spec_GCJ=
18463   hardcode_libdir_flag_spec_ld_GCJ=
18464   hardcode_libdir_separator_GCJ=
18465   hardcode_direct_GCJ=no
18466   hardcode_minus_L_GCJ=no
18467   hardcode_shlibpath_var_GCJ=unsupported
18468   link_all_deplibs_GCJ=unknown
18469   hardcode_automatic_GCJ=no
18470   module_cmds_GCJ=
18471   module_expsym_cmds_GCJ=
18472   always_export_symbols_GCJ=no
18473   export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
18474   # include_expsyms should be a list of space-separated symbols to be *always*
18475   # included in the symbol list
18476   include_expsyms_GCJ=
18477   # exclude_expsyms can be an extended regexp of symbols to exclude
18478   # it will be wrapped by ` (' and `)$', so one must not match beginning or
18479   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
18480   # as well as any symbol that contains `d'.
18481   exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
18482   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
18483   # platforms (ab)use it in PIC code, but their linkers get confused if
18484   # the symbol is explicitly referenced.  Since portable code cannot
18485   # rely on this symbol name, it's probably fine to never include it in
18486   # preloaded symbol tables.
18487   extract_expsyms_cmds=
18488   # Just being paranoid about ensuring that cc_basename is set.
18489   for cc_temp in $compiler""; do
18490   case $cc_temp in
18491     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18492     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18493     \-*) ;;
18494     *) break;;
18495   esac
18496 done
18497 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18498
18499   case $host_os in
18500   cygwin* | mingw* | pw32*)
18501     # FIXME: the MSVC++ port hasn't been tested in a loooong time
18502     # When not using gcc, we currently assume that we are using
18503     # Microsoft Visual C++.
18504     if test "$GCC" != yes; then
18505       with_gnu_ld=no
18506     fi
18507     ;;
18508   interix*)
18509     # we just hope/assume this is gcc and not c89 (= MSVC++)
18510     with_gnu_ld=yes
18511     ;;
18512   openbsd*)
18513     with_gnu_ld=no
18514     ;;
18515   esac
18516
18517   ld_shlibs_GCJ=yes
18518   if test "$with_gnu_ld" = yes; then
18519     # If archive_cmds runs LD, not CC, wlarc should be empty
18520     wlarc='${wl}'
18521
18522     # Set some defaults for GNU ld with shared library support. These
18523     # are reset later if shared libraries are not supported. Putting them
18524     # here allows them to be overridden if necessary.
18525     runpath_var=LD_RUN_PATH
18526     hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
18527     export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
18528     # ancient GNU ld didn't support --whole-archive et. al.
18529     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
18530         whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18531       else
18532         whole_archive_flag_spec_GCJ=
18533     fi
18534     supports_anon_versioning=no
18535     case `$LD -v 2>/dev/null` in
18536       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
18537       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
18538       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
18539       *\ 2.11.*) ;; # other 2.11 versions
18540       *) supports_anon_versioning=yes ;;
18541     esac
18542
18543     # See if GNU ld supports shared libraries.
18544     case $host_os in
18545     aix3* | aix4* | aix5*)
18546       # On AIX/PPC, the GNU linker is very broken
18547       if test "$host_cpu" != ia64; then
18548         ld_shlibs_GCJ=no
18549         cat <<EOF 1>&2
18550
18551 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
18552 *** to be unable to reliably create shared libraries on AIX.
18553 *** Therefore, libtool is disabling shared libraries support.  If you
18554 *** really care for shared libraries, you may want to modify your PATH
18555 *** so that a non-GNU linker is found, and then restart.
18556
18557 EOF
18558       fi
18559       ;;
18560
18561     amigaos*)
18562       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)'
18563       hardcode_libdir_flag_spec_GCJ='-L$libdir'
18564       hardcode_minus_L_GCJ=yes
18565
18566       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
18567       # that the semantics of dynamic libraries on AmigaOS, at least up
18568       # to version 4, is to share data among multiple programs linked
18569       # with the same dynamic library.  Since this doesn't match the
18570       # behavior of shared libraries on other platforms, we can't use
18571       # them.
18572       ld_shlibs_GCJ=no
18573       ;;
18574
18575     beos*)
18576       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18577         allow_undefined_flag_GCJ=unsupported
18578         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18579         # support --undefined.  This deserves some investigation.  FIXME
18580         archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18581       else
18582         ld_shlibs_GCJ=no
18583       fi
18584       ;;
18585
18586     cygwin* | mingw* | pw32*)
18587       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
18588       # as there is no search path for DLLs.
18589       hardcode_libdir_flag_spec_GCJ='-L$libdir'
18590       allow_undefined_flag_GCJ=unsupported
18591       always_export_symbols_GCJ=no
18592       enable_shared_with_static_runtimes_GCJ=yes
18593       export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
18594
18595       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
18596         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
18597         # If the export-symbols file already is a .def file (1st line
18598         # is EXPORTS), use it as is; otherwise, prepend...
18599         archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18600           cp $export_symbols $output_objdir/$soname.def;
18601         else
18602           echo EXPORTS > $output_objdir/$soname.def;
18603           cat $export_symbols >> $output_objdir/$soname.def;
18604         fi~
18605         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
18606       else
18607         ld_shlibs_GCJ=no
18608       fi
18609       ;;
18610
18611     interix[3-9]*)
18612       hardcode_direct_GCJ=no
18613       hardcode_shlibpath_var_GCJ=no
18614       hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18615       export_dynamic_flag_spec_GCJ='${wl}-E'
18616       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
18617       # Instead, shared libraries are loaded at an image base (0x10000000 by
18618       # default) and relocated if they conflict, which is a slow very memory
18619       # consuming and fragmenting process.  To avoid this, we pick a random,
18620       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
18621       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
18622       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'
18623       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'
18624       ;;
18625
18626     gnu* | linux* | k*bsd*-gnu)
18627       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18628         tmp_addflag=
18629         case $cc_basename,$host_cpu in
18630         pgcc*)                          # Portland Group C compiler
18631           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'
18632           tmp_addflag=' $pic_flag'
18633           ;;
18634         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
18635           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'
18636           tmp_addflag=' $pic_flag -Mnomain' ;;
18637         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
18638           tmp_addflag=' -i_dynamic' ;;
18639         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
18640           tmp_addflag=' -i_dynamic -nofor_main' ;;
18641         ifc* | ifort*)                  # Intel Fortran compiler
18642           tmp_addflag=' -nofor_main' ;;
18643         esac
18644         case `$CC -V 2>&1 | sed 5q` in
18645         *Sun\ C*)                       # Sun C 5.9
18646           whole_archive_flag_spec_GCJ='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
18647           tmp_sharedflag='-G' ;;
18648         *Sun\ F*)                       # Sun Fortran 8.3
18649           tmp_sharedflag='-G' ;;
18650         *)
18651           tmp_sharedflag='-shared' ;;
18652         esac
18653         archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18654
18655         if test $supports_anon_versioning = yes; then
18656           archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
18657   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
18658   $echo "local: *; };" >> $output_objdir/$libname.ver~
18659           $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
18660         fi
18661         link_all_deplibs_GCJ=no
18662       else
18663         ld_shlibs_GCJ=no
18664       fi
18665       ;;
18666
18667     netbsd* | netbsdelf*-gnu)
18668       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18669         archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
18670         wlarc=
18671       else
18672         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18673         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18674       fi
18675       ;;
18676
18677     solaris*)
18678       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
18679         ld_shlibs_GCJ=no
18680         cat <<EOF 1>&2
18681
18682 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
18683 *** create shared libraries on Solaris systems.  Therefore, libtool
18684 *** is disabling shared libraries support.  We urge you to upgrade GNU
18685 *** binutils to release 2.9.1 or newer.  Another option is to modify
18686 *** your PATH or compiler configuration so that the native linker is
18687 *** used, and then restart.
18688
18689 EOF
18690       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18691         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18692         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18693       else
18694         ld_shlibs_GCJ=no
18695       fi
18696       ;;
18697
18698     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
18699       case `$LD -v 2>&1` in
18700         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
18701         ld_shlibs_GCJ=no
18702         cat <<_LT_EOF 1>&2
18703
18704 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
18705 *** reliably create shared libraries on SCO systems.  Therefore, libtool
18706 *** is disabling shared libraries support.  We urge you to upgrade GNU
18707 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
18708 *** your PATH or compiler configuration so that the native linker is
18709 *** used, and then restart.
18710
18711 _LT_EOF
18712         ;;
18713         *)
18714           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18715             hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
18716             archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
18717             archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
18718           else
18719             ld_shlibs_GCJ=no
18720           fi
18721         ;;
18722       esac
18723       ;;
18724
18725     sunos4*)
18726       archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18727       wlarc=
18728       hardcode_direct_GCJ=yes
18729       hardcode_shlibpath_var_GCJ=no
18730       ;;
18731
18732     *)
18733       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18734         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18735         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18736       else
18737         ld_shlibs_GCJ=no
18738       fi
18739       ;;
18740     esac
18741
18742     if test "$ld_shlibs_GCJ" = no; then
18743       runpath_var=
18744       hardcode_libdir_flag_spec_GCJ=
18745       export_dynamic_flag_spec_GCJ=
18746       whole_archive_flag_spec_GCJ=
18747     fi
18748   else
18749     # PORTME fill in a description of your system's linker (not GNU ld)
18750     case $host_os in
18751     aix3*)
18752       allow_undefined_flag_GCJ=unsupported
18753       always_export_symbols_GCJ=yes
18754       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'
18755       # Note: this linker hardcodes the directories in LIBPATH if there
18756       # are no directories specified by -L.
18757       hardcode_minus_L_GCJ=yes
18758       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
18759         # Neither direct hardcoding nor static linking is supported with a
18760         # broken collect2.
18761         hardcode_direct_GCJ=unsupported
18762       fi
18763       ;;
18764
18765     aix4* | aix5*)
18766       if test "$host_cpu" = ia64; then
18767         # On IA64, the linker does run time linking by default, so we don't
18768         # have to do anything special.
18769         aix_use_runtimelinking=no
18770         exp_sym_flag='-Bexport'
18771         no_entry_flag=""
18772       else
18773         # If we're using GNU nm, then we don't want the "-C" option.
18774         # -C means demangle to AIX nm, but means don't demangle with GNU nm
18775         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
18776           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'
18777         else
18778           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'
18779         fi
18780         aix_use_runtimelinking=no
18781
18782         # Test if we are trying to use run time linking or normal
18783         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18784         # need to do runtime linking.
18785         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
18786           for ld_flag in $LDFLAGS; do
18787           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
18788             aix_use_runtimelinking=yes
18789             break
18790           fi
18791           done
18792           ;;
18793         esac
18794
18795         exp_sym_flag='-bexport'
18796         no_entry_flag='-bnoentry'
18797       fi
18798
18799       # When large executables or shared objects are built, AIX ld can
18800       # have problems creating the table of contents.  If linking a library
18801       # or program results in "error TOC overflow" add -mminimal-toc to
18802       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
18803       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18804
18805       archive_cmds_GCJ=''
18806       hardcode_direct_GCJ=yes
18807       hardcode_libdir_separator_GCJ=':'
18808       link_all_deplibs_GCJ=yes
18809
18810       if test "$GCC" = yes; then
18811         case $host_os in aix4.[012]|aix4.[012].*)
18812         # We only want to do this on AIX 4.2 and lower, the check
18813         # below for broken collect2 doesn't work under 4.3+
18814           collect2name=`${CC} -print-prog-name=collect2`
18815           if test -f "$collect2name" && \
18816            strings "$collect2name" | grep resolve_lib_name >/dev/null
18817           then
18818           # We have reworked collect2
18819           :
18820           else
18821           # We have old collect2
18822           hardcode_direct_GCJ=unsupported
18823           # It fails to find uninstalled libraries when the uninstalled
18824           # path is not listed in the libpath.  Setting hardcode_minus_L
18825           # to unsupported forces relinking
18826           hardcode_minus_L_GCJ=yes
18827           hardcode_libdir_flag_spec_GCJ='-L$libdir'
18828           hardcode_libdir_separator_GCJ=
18829           fi
18830           ;;
18831         esac
18832         shared_flag='-shared'
18833         if test "$aix_use_runtimelinking" = yes; then
18834           shared_flag="$shared_flag "'${wl}-G'
18835         fi
18836       else
18837         # not using gcc
18838         if test "$host_cpu" = ia64; then
18839         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18840         # chokes on -Wl,-G. The following line is correct:
18841           shared_flag='-G'
18842         else
18843           if test "$aix_use_runtimelinking" = yes; then
18844             shared_flag='${wl}-G'
18845           else
18846             shared_flag='${wl}-bM:SRE'
18847           fi
18848         fi
18849       fi
18850
18851       # It seems that -bexpall does not export symbols beginning with
18852       # underscore (_), so it is better to generate a list of symbols to export.
18853       always_export_symbols_GCJ=yes
18854       if test "$aix_use_runtimelinking" = yes; then
18855         # Warning - without using the other runtime loading flags (-brtl),
18856         # -berok will link without error, but may produce a broken library.
18857         allow_undefined_flag_GCJ='-berok'
18858        # Determine the default libpath from the value encoded in an empty executable.
18859        cat >conftest.$ac_ext <<_ACEOF
18860 /* confdefs.h.  */
18861 _ACEOF
18862 cat confdefs.h >>conftest.$ac_ext
18863 cat >>conftest.$ac_ext <<_ACEOF
18864 /* end confdefs.h.  */
18865
18866 int
18867 main ()
18868 {
18869
18870   ;
18871   return 0;
18872 }
18873 _ACEOF
18874 rm -f conftest.$ac_objext conftest$ac_exeext
18875 if { (ac_try="$ac_link"
18876 case "(($ac_try" in
18877   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18878   *) ac_try_echo=$ac_try;;
18879 esac
18880 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18881   (eval "$ac_link") 2>conftest.er1
18882   ac_status=$?
18883   grep -v '^ *+' conftest.er1 >conftest.err
18884   rm -f conftest.er1
18885   cat conftest.err >&5
18886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18887   (exit $ac_status); } && {
18888          test -z "$ac_c_werror_flag" ||
18889          test ! -s conftest.err
18890        } && test -s conftest$ac_exeext &&
18891        $as_test_x conftest$ac_exeext; then
18892   
18893 lt_aix_libpath_sed='
18894     /Import File Strings/,/^$/ {
18895         /^0/ {
18896             s/^0  *\(.*\)$/\1/
18897             p
18898         }
18899     }'
18900 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18901 # Check for a 64-bit object if we didn't find anything.
18902 if test -z "$aix_libpath"; then
18903   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18904 fi
18905 else
18906   echo "$as_me: failed program was:" >&5
18907 sed 's/^/| /' conftest.$ac_ext >&5
18908
18909         
18910 fi
18911
18912 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18913       conftest$ac_exeext conftest.$ac_ext
18914 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18915
18916        hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
18917         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"
18918        else
18919         if test "$host_cpu" = ia64; then
18920           hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
18921           allow_undefined_flag_GCJ="-z nodefs"
18922           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"
18923         else
18924          # Determine the default libpath from the value encoded in an empty executable.
18925          cat >conftest.$ac_ext <<_ACEOF
18926 /* confdefs.h.  */
18927 _ACEOF
18928 cat confdefs.h >>conftest.$ac_ext
18929 cat >>conftest.$ac_ext <<_ACEOF
18930 /* end confdefs.h.  */
18931
18932 int
18933 main ()
18934 {
18935
18936   ;
18937   return 0;
18938 }
18939 _ACEOF
18940 rm -f conftest.$ac_objext conftest$ac_exeext
18941 if { (ac_try="$ac_link"
18942 case "(($ac_try" in
18943   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18944   *) ac_try_echo=$ac_try;;
18945 esac
18946 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18947   (eval "$ac_link") 2>conftest.er1
18948   ac_status=$?
18949   grep -v '^ *+' conftest.er1 >conftest.err
18950   rm -f conftest.er1
18951   cat conftest.err >&5
18952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18953   (exit $ac_status); } && {
18954          test -z "$ac_c_werror_flag" ||
18955          test ! -s conftest.err
18956        } && test -s conftest$ac_exeext &&
18957        $as_test_x conftest$ac_exeext; then
18958   
18959 lt_aix_libpath_sed='
18960     /Import File Strings/,/^$/ {
18961         /^0/ {
18962             s/^0  *\(.*\)$/\1/
18963             p
18964         }
18965     }'
18966 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18967 # Check for a 64-bit object if we didn't find anything.
18968 if test -z "$aix_libpath"; then
18969   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18970 fi
18971 else
18972   echo "$as_me: failed program was:" >&5
18973 sed 's/^/| /' conftest.$ac_ext >&5
18974
18975         
18976 fi
18977
18978 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18979       conftest$ac_exeext conftest.$ac_ext
18980 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18981
18982          hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
18983           # Warning - without using the other run time loading flags,
18984           # -berok will link without error, but may produce a broken library.
18985           no_undefined_flag_GCJ=' ${wl}-bernotok'
18986           allow_undefined_flag_GCJ=' ${wl}-berok'
18987           # Exported symbols can be pulled into shared objects from archives
18988           whole_archive_flag_spec_GCJ='$convenience'
18989           archive_cmds_need_lc_GCJ=yes
18990           # This is similar to how AIX traditionally builds its shared libraries.
18991           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'
18992         fi
18993       fi
18994       ;;
18995
18996     amigaos*)
18997       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)'
18998       hardcode_libdir_flag_spec_GCJ='-L$libdir'
18999       hardcode_minus_L_GCJ=yes
19000       # see comment about different semantics on the GNU ld section
19001       ld_shlibs_GCJ=no
19002       ;;
19003
19004     bsdi[45]*)
19005       export_dynamic_flag_spec_GCJ=-rdynamic
19006       ;;
19007
19008     cygwin* | mingw* | pw32*)
19009       # When not using gcc, we currently assume that we are using
19010       # Microsoft Visual C++.
19011       # hardcode_libdir_flag_spec is actually meaningless, as there is
19012       # no search path for DLLs.
19013       hardcode_libdir_flag_spec_GCJ=' '
19014       allow_undefined_flag_GCJ=unsupported
19015       # Tell ltmain to make .lib files, not .a files.
19016       libext=lib
19017       # Tell ltmain to make .dll files, not .so files.
19018       shrext_cmds=".dll"
19019       # FIXME: Setting linknames here is a bad hack.
19020       archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
19021       # The linker will automatically build a .lib file if we build a DLL.
19022       old_archive_From_new_cmds_GCJ='true'
19023       # FIXME: Should let the user specify the lib program.
19024       old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
19025       fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
19026       enable_shared_with_static_runtimes_GCJ=yes
19027       ;;
19028
19029     darwin* | rhapsody*)
19030       case $host_os in
19031         rhapsody* | darwin1.[012])
19032          allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
19033          ;;
19034        *) # Darwin 1.3 on
19035          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
19036            allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
19037          else
19038            case ${MACOSX_DEPLOYMENT_TARGET} in
19039              10.[012])
19040                allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
19041                ;;
19042              10.*)
19043                allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
19044                ;;
19045            esac
19046          fi
19047          ;;
19048       esac
19049       archive_cmds_need_lc_GCJ=no
19050       hardcode_direct_GCJ=no
19051       hardcode_automatic_GCJ=yes
19052       hardcode_shlibpath_var_GCJ=unsupported
19053       whole_archive_flag_spec_GCJ=''
19054       link_all_deplibs_GCJ=yes
19055     if test "$GCC" = yes ; then
19056         output_verbose_link_cmd='echo'
19057         archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
19058       module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
19059       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
19060       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}'
19061       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}'
19062     else
19063       case $cc_basename in
19064         xlc*)
19065          output_verbose_link_cmd='echo'
19066          archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
19067          module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
19068           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
19069          archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
19070           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}'
19071           ;;
19072        *)
19073          ld_shlibs_GCJ=no
19074           ;;
19075       esac
19076     fi
19077       ;;
19078
19079     dgux*)
19080       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19081       hardcode_libdir_flag_spec_GCJ='-L$libdir'
19082       hardcode_shlibpath_var_GCJ=no
19083       ;;
19084
19085     freebsd1*)
19086       ld_shlibs_GCJ=no
19087       ;;
19088
19089     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
19090     # support.  Future versions do this automatically, but an explicit c++rt0.o
19091     # does not break anything, and helps significantly (at the cost of a little
19092     # extra space).
19093     freebsd2.2*)
19094       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
19095       hardcode_libdir_flag_spec_GCJ='-R$libdir'
19096       hardcode_direct_GCJ=yes
19097       hardcode_shlibpath_var_GCJ=no
19098       ;;
19099
19100     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
19101     freebsd2*)
19102       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19103       hardcode_direct_GCJ=yes
19104       hardcode_minus_L_GCJ=yes
19105       hardcode_shlibpath_var_GCJ=no
19106       ;;
19107
19108     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
19109     freebsd* | dragonfly*)
19110       archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
19111       hardcode_libdir_flag_spec_GCJ='-R$libdir'
19112       hardcode_direct_GCJ=yes
19113       hardcode_shlibpath_var_GCJ=no
19114       ;;
19115
19116     hpux9*)
19117       if test "$GCC" = yes; then
19118         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'
19119       else
19120         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'
19121       fi
19122       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
19123       hardcode_libdir_separator_GCJ=:
19124       hardcode_direct_GCJ=yes
19125
19126       # hardcode_minus_L: Not really in the search PATH,
19127       # but as the default location of the library.
19128       hardcode_minus_L_GCJ=yes
19129       export_dynamic_flag_spec_GCJ='${wl}-E'
19130       ;;
19131
19132     hpux10*)
19133       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
19134         archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
19135       else
19136         archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
19137       fi
19138       if test "$with_gnu_ld" = no; then
19139         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
19140         hardcode_libdir_separator_GCJ=:
19141
19142         hardcode_direct_GCJ=yes
19143         export_dynamic_flag_spec_GCJ='${wl}-E'
19144
19145         # hardcode_minus_L: Not really in the search PATH,
19146         # but as the default location of the library.
19147         hardcode_minus_L_GCJ=yes
19148       fi
19149       ;;
19150
19151     hpux11*)
19152       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
19153         case $host_cpu in
19154         hppa*64*)
19155           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19156           ;;
19157         ia64*)
19158           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
19159           ;;
19160         *)
19161           archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
19162           ;;
19163         esac
19164       else
19165         case $host_cpu in
19166         hppa*64*)
19167           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19168           ;;
19169         ia64*)
19170           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
19171           ;;
19172         *)
19173           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
19174           ;;
19175         esac
19176       fi
19177       if test "$with_gnu_ld" = no; then
19178         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
19179         hardcode_libdir_separator_GCJ=:
19180
19181         case $host_cpu in
19182         hppa*64*|ia64*)
19183           hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
19184           hardcode_direct_GCJ=no
19185           hardcode_shlibpath_var_GCJ=no
19186           ;;
19187         *)
19188           hardcode_direct_GCJ=yes
19189           export_dynamic_flag_spec_GCJ='${wl}-E'
19190
19191           # hardcode_minus_L: Not really in the search PATH,
19192           # but as the default location of the library.
19193           hardcode_minus_L_GCJ=yes
19194           ;;
19195         esac
19196       fi
19197       ;;
19198
19199     irix5* | irix6* | nonstopux*)
19200       if test "$GCC" = yes; then
19201         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'
19202       else
19203         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'
19204         hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
19205       fi
19206       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
19207       hardcode_libdir_separator_GCJ=:
19208       link_all_deplibs_GCJ=yes
19209       ;;
19210
19211     netbsd* | netbsdelf*-gnu)
19212       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19213         archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
19214       else
19215         archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
19216       fi
19217       hardcode_libdir_flag_spec_GCJ='-R$libdir'
19218       hardcode_direct_GCJ=yes
19219       hardcode_shlibpath_var_GCJ=no
19220       ;;
19221
19222     newsos6)
19223       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19224       hardcode_direct_GCJ=yes
19225       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
19226       hardcode_libdir_separator_GCJ=:
19227       hardcode_shlibpath_var_GCJ=no
19228       ;;
19229
19230     openbsd*)
19231       if test -f /usr/libexec/ld.so; then
19232         hardcode_direct_GCJ=yes
19233         hardcode_shlibpath_var_GCJ=no
19234         if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19235           archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
19236           archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
19237           hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
19238           export_dynamic_flag_spec_GCJ='${wl}-E'
19239         else
19240           case $host_os in
19241            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
19242              archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19243              hardcode_libdir_flag_spec_GCJ='-R$libdir'
19244              ;;
19245            *)
19246              archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
19247              hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
19248              ;;
19249           esac
19250         fi
19251       else
19252         ld_shlibs_GCJ=no
19253       fi
19254       ;;
19255
19256     os2*)
19257       hardcode_libdir_flag_spec_GCJ='-L$libdir'
19258       hardcode_minus_L_GCJ=yes
19259       allow_undefined_flag_GCJ=unsupported
19260       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'
19261       old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
19262       ;;
19263
19264     osf3*)
19265       if test "$GCC" = yes; then
19266         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
19267         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'
19268       else
19269         allow_undefined_flag_GCJ=' -expect_unresolved \*'
19270         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'
19271       fi
19272       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
19273       hardcode_libdir_separator_GCJ=:
19274       ;;
19275
19276     osf4* | osf5*)      # as osf3* with the addition of -msym flag
19277       if test "$GCC" = yes; then
19278         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
19279         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'
19280         hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
19281       else
19282         allow_undefined_flag_GCJ=' -expect_unresolved \*'
19283         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'
19284         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~
19285         $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'
19286
19287         # Both c and cxx compiler support -rpath directly
19288         hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
19289       fi
19290       hardcode_libdir_separator_GCJ=:
19291       ;;
19292
19293     solaris*)
19294       no_undefined_flag_GCJ=' -z text'
19295       if test "$GCC" = yes; then
19296         wlarc='${wl}'
19297         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19298         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19299           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
19300       else
19301         wlarc=''
19302         archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
19303         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19304         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
19305       fi
19306       hardcode_libdir_flag_spec_GCJ='-R$libdir'
19307       hardcode_shlibpath_var_GCJ=no
19308       case $host_os in
19309       solaris2.[0-5] | solaris2.[0-5].*) ;;
19310       *)
19311         # The compiler driver will combine and reorder linker options,
19312         # but understands `-z linker_flag'.  GCC discards it without `$wl',
19313         # but is careful enough not to reorder.
19314         # Supported since Solaris 2.6 (maybe 2.5.1?)
19315         if test "$GCC" = yes; then
19316           whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
19317         else
19318           whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
19319         fi
19320         ;;
19321       esac
19322       link_all_deplibs_GCJ=yes
19323       ;;
19324
19325     sunos4*)
19326       if test "x$host_vendor" = xsequent; then
19327         # Use $CC to link under sequent, because it throws in some extra .o
19328         # files that make .init and .fini sections work.
19329         archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
19330       else
19331         archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
19332       fi
19333       hardcode_libdir_flag_spec_GCJ='-L$libdir'
19334       hardcode_direct_GCJ=yes
19335       hardcode_minus_L_GCJ=yes
19336       hardcode_shlibpath_var_GCJ=no
19337       ;;
19338
19339     sysv4)
19340       case $host_vendor in
19341         sni)
19342           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19343           hardcode_direct_GCJ=yes # is this really true???
19344         ;;
19345         siemens)
19346           ## LD is ld it makes a PLAMLIB
19347           ## CC just makes a GrossModule.
19348           archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
19349           reload_cmds_GCJ='$CC -r -o $output$reload_objs'
19350           hardcode_direct_GCJ=no
19351         ;;
19352         motorola)
19353           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19354           hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
19355         ;;
19356       esac
19357       runpath_var='LD_RUN_PATH'
19358       hardcode_shlibpath_var_GCJ=no
19359       ;;
19360
19361     sysv4.3*)
19362       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19363       hardcode_shlibpath_var_GCJ=no
19364       export_dynamic_flag_spec_GCJ='-Bexport'
19365       ;;
19366
19367     sysv4*MP*)
19368       if test -d /usr/nec; then
19369         archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19370         hardcode_shlibpath_var_GCJ=no
19371         runpath_var=LD_RUN_PATH
19372         hardcode_runpath_var=yes
19373         ld_shlibs_GCJ=yes
19374       fi
19375       ;;
19376
19377     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
19378       no_undefined_flag_GCJ='${wl}-z,text'
19379       archive_cmds_need_lc_GCJ=no
19380       hardcode_shlibpath_var_GCJ=no
19381       runpath_var='LD_RUN_PATH'
19382
19383       if test "$GCC" = yes; then
19384         archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19385         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19386       else
19387         archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19388         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19389       fi
19390       ;;
19391
19392     sysv5* | sco3.2v5* | sco5v6*)
19393       # Note: We can NOT use -z defs as we might desire, because we do not
19394       # link with -lc, and that would cause any symbols used from libc to
19395       # always be unresolved, which means just about no library would
19396       # ever link correctly.  If we're not using GNU ld we use -z text
19397       # though, which does catch some bad symbols but isn't as heavy-handed
19398       # as -z defs.
19399       no_undefined_flag_GCJ='${wl}-z,text'
19400       allow_undefined_flag_GCJ='${wl}-z,nodefs'
19401       archive_cmds_need_lc_GCJ=no
19402       hardcode_shlibpath_var_GCJ=no
19403       hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
19404       hardcode_libdir_separator_GCJ=':'
19405       link_all_deplibs_GCJ=yes
19406       export_dynamic_flag_spec_GCJ='${wl}-Bexport'
19407       runpath_var='LD_RUN_PATH'
19408
19409       if test "$GCC" = yes; then
19410         archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19411         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19412       else
19413         archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19414         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19415       fi
19416       ;;
19417
19418     uts4*)
19419       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19420       hardcode_libdir_flag_spec_GCJ='-L$libdir'
19421       hardcode_shlibpath_var_GCJ=no
19422       ;;
19423
19424     *)
19425       ld_shlibs_GCJ=no
19426       ;;
19427     esac
19428   fi
19429
19430 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
19431 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
19432 test "$ld_shlibs_GCJ" = no && can_build_shared=no
19433
19434 #
19435 # Do we need to explicitly link libc?
19436 #
19437 case "x$archive_cmds_need_lc_GCJ" in
19438 x|xyes)
19439   # Assume -lc should be added
19440   archive_cmds_need_lc_GCJ=yes
19441
19442   if test "$enable_shared" = yes && test "$GCC" = yes; then
19443     case $archive_cmds_GCJ in
19444     *'~'*)
19445       # FIXME: we may have to deal with multi-command sequences.
19446       ;;
19447     '$CC '*)
19448       # Test whether the compiler implicitly links with -lc since on some
19449       # systems, -lgcc has to come before -lc. If gcc already passes -lc
19450       # to ld, don't add -lc before -lgcc.
19451       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
19452 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
19453       $rm conftest*
19454       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19455
19456       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19457   (eval $ac_compile) 2>&5
19458   ac_status=$?
19459   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19460   (exit $ac_status); } 2>conftest.err; then
19461         soname=conftest
19462         lib=conftest
19463         libobjs=conftest.$ac_objext
19464         deplibs=
19465         wl=$lt_prog_compiler_wl_GCJ
19466         pic_flag=$lt_prog_compiler_pic_GCJ
19467         compiler_flags=-v
19468         linker_flags=-v
19469         verstring=
19470         output_objdir=.
19471         libname=conftest
19472         lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
19473         allow_undefined_flag_GCJ=
19474         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
19475   (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
19476   ac_status=$?
19477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19478   (exit $ac_status); }
19479         then
19480           archive_cmds_need_lc_GCJ=no
19481         else
19482           archive_cmds_need_lc_GCJ=yes
19483         fi
19484         allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
19485       else
19486         cat conftest.err 1>&5
19487       fi
19488       $rm conftest*
19489       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
19490 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
19491       ;;
19492     esac
19493   fi
19494   ;;
19495 esac
19496
19497 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
19498 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
19499 library_names_spec=
19500 libname_spec='lib$name'
19501 soname_spec=
19502 shrext_cmds=".so"
19503 postinstall_cmds=
19504 postuninstall_cmds=
19505 finish_cmds=
19506 finish_eval=
19507 shlibpath_var=
19508 shlibpath_overrides_runpath=unknown
19509 version_type=none
19510 dynamic_linker="$host_os ld.so"
19511 sys_lib_dlsearch_path_spec="/lib /usr/lib"
19512
19513 need_lib_prefix=unknown
19514 hardcode_into_libs=no
19515
19516 # when you set need_version to no, make sure it does not cause -set_version
19517 # flags to be left without arguments
19518 need_version=unknown
19519
19520 case $host_os in
19521 aix3*)
19522   version_type=linux
19523   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
19524   shlibpath_var=LIBPATH
19525
19526   # AIX 3 has no versioning support, so we append a major version to the name.
19527   soname_spec='${libname}${release}${shared_ext}$major'
19528   ;;
19529
19530 aix4* | aix5*)
19531   version_type=linux
19532   need_lib_prefix=no
19533   need_version=no
19534   hardcode_into_libs=yes
19535   if test "$host_cpu" = ia64; then
19536     # AIX 5 supports IA64
19537     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
19538     shlibpath_var=LD_LIBRARY_PATH
19539   else
19540     # With GCC up to 2.95.x, collect2 would create an import file
19541     # for dependence libraries.  The import file would start with
19542     # the line `#! .'.  This would cause the generated library to
19543     # depend on `.', always an invalid library.  This was fixed in
19544     # development snapshots of GCC prior to 3.0.
19545     case $host_os in
19546       aix4 | aix4.[01] | aix4.[01].*)
19547       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
19548            echo ' yes '
19549            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
19550         :
19551       else
19552         can_build_shared=no
19553       fi
19554       ;;
19555     esac
19556     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
19557     # soname into executable. Probably we can add versioning support to
19558     # collect2, so additional links can be useful in future.
19559     if test "$aix_use_runtimelinking" = yes; then
19560       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
19561       # instead of lib<name>.a to let people know that these are not
19562       # typical AIX shared libraries.
19563       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19564     else
19565       # We preserve .a as extension for shared libraries through AIX4.2
19566       # and later when we are not doing run time linking.
19567       library_names_spec='${libname}${release}.a $libname.a'
19568       soname_spec='${libname}${release}${shared_ext}$major'
19569     fi
19570     shlibpath_var=LIBPATH
19571   fi
19572   ;;
19573
19574 amigaos*)
19575   library_names_spec='$libname.ixlibrary $libname.a'
19576   # Create ${libname}_ixlibrary.a entries in /sys/libs.
19577   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'
19578   ;;
19579
19580 beos*)
19581   library_names_spec='${libname}${shared_ext}'
19582   dynamic_linker="$host_os ld.so"
19583   shlibpath_var=LIBRARY_PATH
19584   ;;
19585
19586 bsdi[45]*)
19587   version_type=linux
19588   need_version=no
19589   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19590   soname_spec='${libname}${release}${shared_ext}$major'
19591   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
19592   shlibpath_var=LD_LIBRARY_PATH
19593   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
19594   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
19595   # the default ld.so.conf also contains /usr/contrib/lib and
19596   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
19597   # libtool to hard-code these into programs
19598   ;;
19599
19600 cygwin* | mingw* | pw32*)
19601   version_type=windows
19602   shrext_cmds=".dll"
19603   need_version=no
19604   need_lib_prefix=no
19605
19606   case $GCC,$host_os in
19607   yes,cygwin* | yes,mingw* | yes,pw32*)
19608     library_names_spec='$libname.dll.a'
19609     # DLL is installed to $(libdir)/../bin by postinstall_cmds
19610     postinstall_cmds='base_file=`basename \${file}`~
19611       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
19612       dldir=$destdir/`dirname \$dlpath`~
19613       test -d \$dldir || mkdir -p \$dldir~
19614       $install_prog $dir/$dlname \$dldir/$dlname~
19615       chmod a+x \$dldir/$dlname'
19616     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
19617       dlpath=$dir/\$dldll~
19618        $rm \$dlpath'
19619     shlibpath_overrides_runpath=yes
19620
19621     case $host_os in
19622     cygwin*)
19623       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
19624       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19625       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
19626       ;;
19627     mingw*)
19628       # MinGW DLLs use traditional 'lib' prefix
19629       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19630       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
19631       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
19632         # It is most probably a Windows format PATH printed by
19633         # mingw gcc, but we are running on Cygwin. Gcc prints its search
19634         # path with ; separators, and with drive letters. We can handle the
19635         # drive letters (cygwin fileutils understands them), so leave them,
19636         # especially as we might pass files found there to a mingw objdump,
19637         # which wouldn't understand a cygwinified path. Ahh.
19638         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19639       else
19640         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
19641       fi
19642       ;;
19643     pw32*)
19644       # pw32 DLLs use 'pw' prefix rather than 'lib'
19645       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19646       ;;
19647     esac
19648     ;;
19649
19650   *)
19651     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
19652     ;;
19653   esac
19654   dynamic_linker='Win32 ld.exe'
19655   # FIXME: first we should search . and the directory the executable is in
19656   shlibpath_var=PATH
19657   ;;
19658
19659 darwin* | rhapsody*)
19660   dynamic_linker="$host_os dyld"
19661   version_type=darwin
19662   need_lib_prefix=no
19663   need_version=no
19664   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
19665   soname_spec='${libname}${release}${major}$shared_ext'
19666   shlibpath_overrides_runpath=yes
19667   shlibpath_var=DYLD_LIBRARY_PATH
19668   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
19669    
19670   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
19671   ;;
19672
19673 dgux*)
19674   version_type=linux
19675   need_lib_prefix=no
19676   need_version=no
19677   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
19678   soname_spec='${libname}${release}${shared_ext}$major'
19679   shlibpath_var=LD_LIBRARY_PATH
19680   ;;
19681
19682 freebsd1*)
19683   dynamic_linker=no
19684   ;;
19685
19686 freebsd* | dragonfly*)
19687   # DragonFly does not have aout.  When/if they implement a new
19688   # versioning mechanism, adjust this.
19689   if test -x /usr/bin/objformat; then
19690     objformat=`/usr/bin/objformat`
19691   else
19692     case $host_os in
19693     freebsd[123]*) objformat=aout ;;
19694     *) objformat=elf ;;
19695     esac
19696   fi
19697   version_type=freebsd-$objformat
19698   case $version_type in
19699     freebsd-elf*)
19700       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19701       need_version=no
19702       need_lib_prefix=no
19703       ;;
19704     freebsd-*)
19705       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
19706       need_version=yes
19707       ;;
19708   esac
19709   shlibpath_var=LD_LIBRARY_PATH
19710   case $host_os in
19711   freebsd2*)
19712     shlibpath_overrides_runpath=yes
19713     ;;
19714   freebsd3.[01]* | freebsdelf3.[01]*)
19715     shlibpath_overrides_runpath=yes
19716     hardcode_into_libs=yes
19717     ;;
19718   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
19719   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
19720     shlibpath_overrides_runpath=no
19721     hardcode_into_libs=yes
19722     ;;
19723   *) # from 4.6 on, and DragonFly
19724     shlibpath_overrides_runpath=yes
19725     hardcode_into_libs=yes
19726     ;;
19727   esac
19728   ;;
19729
19730 gnu*)
19731   version_type=linux
19732   need_lib_prefix=no
19733   need_version=no
19734   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
19735   soname_spec='${libname}${release}${shared_ext}$major'
19736   shlibpath_var=LD_LIBRARY_PATH
19737   hardcode_into_libs=yes
19738   ;;
19739
19740 hpux9* | hpux10* | hpux11*)
19741   # Give a soname corresponding to the major version so that dld.sl refuses to
19742   # link against other versions.
19743   version_type=sunos
19744   need_lib_prefix=no
19745   need_version=no
19746   case $host_cpu in
19747   ia64*)
19748     shrext_cmds='.so'
19749     hardcode_into_libs=yes
19750     dynamic_linker="$host_os dld.so"
19751     shlibpath_var=LD_LIBRARY_PATH
19752     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19753     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19754     soname_spec='${libname}${release}${shared_ext}$major'
19755     if test "X$HPUX_IA64_MODE" = X32; then
19756       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
19757     else
19758       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
19759     fi
19760     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19761     ;;
19762    hppa*64*)
19763      shrext_cmds='.sl'
19764      hardcode_into_libs=yes
19765      dynamic_linker="$host_os dld.sl"
19766      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
19767      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19768      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19769      soname_spec='${libname}${release}${shared_ext}$major'
19770      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
19771      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19772      ;;
19773    *)
19774     shrext_cmds='.sl'
19775     dynamic_linker="$host_os dld.sl"
19776     shlibpath_var=SHLIB_PATH
19777     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
19778     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19779     soname_spec='${libname}${release}${shared_ext}$major'
19780     ;;
19781   esac
19782   # HP-UX runs *really* slowly unless shared libraries are mode 555.
19783   postinstall_cmds='chmod 555 $lib'
19784   ;;
19785
19786 interix[3-9]*)
19787   version_type=linux
19788   need_lib_prefix=no
19789   need_version=no
19790   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19791   soname_spec='${libname}${release}${shared_ext}$major'
19792   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
19793   shlibpath_var=LD_LIBRARY_PATH
19794   shlibpath_overrides_runpath=no
19795   hardcode_into_libs=yes
19796   ;;
19797
19798 irix5* | irix6* | nonstopux*)
19799   case $host_os in
19800     nonstopux*) version_type=nonstopux ;;
19801     *)
19802         if test "$lt_cv_prog_gnu_ld" = yes; then
19803                 version_type=linux
19804         else
19805                 version_type=irix
19806         fi ;;
19807   esac
19808   need_lib_prefix=no
19809   need_version=no
19810   soname_spec='${libname}${release}${shared_ext}$major'
19811   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
19812   case $host_os in
19813   irix5* | nonstopux*)
19814     libsuff= shlibsuff=
19815     ;;
19816   *)
19817     case $LD in # libtool.m4 will add one of these switches to LD
19818     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
19819       libsuff= shlibsuff= libmagic=32-bit;;
19820     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
19821       libsuff=32 shlibsuff=N32 libmagic=N32;;
19822     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
19823       libsuff=64 shlibsuff=64 libmagic=64-bit;;
19824     *) libsuff= shlibsuff= libmagic=never-match;;
19825     esac
19826     ;;
19827   esac
19828   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
19829   shlibpath_overrides_runpath=no
19830   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
19831   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
19832   hardcode_into_libs=yes
19833   ;;
19834
19835 # No shared lib support for Linux oldld, aout, or coff.
19836 linux*oldld* | linux*aout* | linux*coff*)
19837   dynamic_linker=no
19838   ;;
19839
19840 # This must be Linux ELF.
19841 linux* | k*bsd*-gnu)
19842   version_type=linux
19843   need_lib_prefix=no
19844   need_version=no
19845   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19846   soname_spec='${libname}${release}${shared_ext}$major'
19847   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
19848   shlibpath_var=LD_LIBRARY_PATH
19849   shlibpath_overrides_runpath=no
19850   # This implies no fast_install, which is unacceptable.
19851   # Some rework will be needed to allow for fast_install
19852   # before this can be enabled.
19853   hardcode_into_libs=yes
19854
19855   # Append ld.so.conf contents to the search path
19856   if test -f /etc/ld.so.conf; then
19857     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[      ]*hwcap[        ]/d;s/[:,       ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
19858     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
19859   fi
19860
19861   # We used to test for /lib/ld.so.1 and disable shared libraries on
19862   # powerpc, because MkLinux only supported shared libraries with the
19863   # GNU dynamic linker.  Since this was broken with cross compilers,
19864   # most powerpc-linux boxes support dynamic linking these days and
19865   # people can always --disable-shared, the test was removed, and we
19866   # assume the GNU/Linux dynamic linker is in use.
19867   dynamic_linker='GNU/Linux ld.so'
19868   ;;
19869
19870 netbsdelf*-gnu)
19871   version_type=linux
19872   need_lib_prefix=no
19873   need_version=no
19874   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19875   soname_spec='${libname}${release}${shared_ext}$major'
19876   shlibpath_var=LD_LIBRARY_PATH
19877   shlibpath_overrides_runpath=no
19878   hardcode_into_libs=yes
19879   dynamic_linker='NetBSD ld.elf_so'
19880   ;;
19881
19882 netbsd*)
19883   version_type=sunos
19884   need_lib_prefix=no
19885   need_version=no
19886   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19887     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19888     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19889     dynamic_linker='NetBSD (a.out) ld.so'
19890   else
19891     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19892     soname_spec='${libname}${release}${shared_ext}$major'
19893     dynamic_linker='NetBSD ld.elf_so'
19894   fi
19895   shlibpath_var=LD_LIBRARY_PATH
19896   shlibpath_overrides_runpath=yes
19897   hardcode_into_libs=yes
19898   ;;
19899
19900 newsos6)
19901   version_type=linux
19902   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19903   shlibpath_var=LD_LIBRARY_PATH
19904   shlibpath_overrides_runpath=yes
19905   ;;
19906
19907 nto-qnx*)
19908   version_type=linux
19909   need_lib_prefix=no
19910   need_version=no
19911   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19912   soname_spec='${libname}${release}${shared_ext}$major'
19913   shlibpath_var=LD_LIBRARY_PATH
19914   shlibpath_overrides_runpath=yes
19915   ;;
19916
19917 openbsd*)
19918   version_type=sunos
19919   sys_lib_dlsearch_path_spec="/usr/lib"
19920   need_lib_prefix=no
19921   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
19922   case $host_os in
19923     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
19924     *)                         need_version=no  ;;
19925   esac
19926   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19927   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19928   shlibpath_var=LD_LIBRARY_PATH
19929   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19930     case $host_os in
19931       openbsd2.[89] | openbsd2.[89].*)
19932         shlibpath_overrides_runpath=no
19933         ;;
19934       *)
19935         shlibpath_overrides_runpath=yes
19936         ;;
19937       esac
19938   else
19939     shlibpath_overrides_runpath=yes
19940   fi
19941   ;;
19942
19943 os2*)
19944   libname_spec='$name'
19945   shrext_cmds=".dll"
19946   need_lib_prefix=no
19947   library_names_spec='$libname${shared_ext} $libname.a'
19948   dynamic_linker='OS/2 ld.exe'
19949   shlibpath_var=LIBPATH
19950   ;;
19951
19952 osf3* | osf4* | osf5*)
19953   version_type=osf
19954   need_lib_prefix=no
19955   need_version=no
19956   soname_spec='${libname}${release}${shared_ext}$major'
19957   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19958   shlibpath_var=LD_LIBRARY_PATH
19959   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
19960   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
19961   ;;
19962
19963 rdos*)
19964   dynamic_linker=no
19965   ;;
19966
19967 solaris*)
19968   version_type=linux
19969   need_lib_prefix=no
19970   need_version=no
19971   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19972   soname_spec='${libname}${release}${shared_ext}$major'
19973   shlibpath_var=LD_LIBRARY_PATH
19974   shlibpath_overrides_runpath=yes
19975   hardcode_into_libs=yes
19976   # ldd complains unless libraries are executable
19977   postinstall_cmds='chmod +x $lib'
19978   ;;
19979
19980 sunos4*)
19981   version_type=sunos
19982   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19983   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
19984   shlibpath_var=LD_LIBRARY_PATH
19985   shlibpath_overrides_runpath=yes
19986   if test "$with_gnu_ld" = yes; then
19987     need_lib_prefix=no
19988   fi
19989   need_version=yes
19990   ;;
19991
19992 sysv4 | sysv4.3*)
19993   version_type=linux
19994   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19995   soname_spec='${libname}${release}${shared_ext}$major'
19996   shlibpath_var=LD_LIBRARY_PATH
19997   case $host_vendor in
19998     sni)
19999       shlibpath_overrides_runpath=no
20000       need_lib_prefix=no
20001       export_dynamic_flag_spec='${wl}-Blargedynsym'
20002       runpath_var=LD_RUN_PATH
20003       ;;
20004     siemens)
20005       need_lib_prefix=no
20006       ;;
20007     motorola)
20008       need_lib_prefix=no
20009       need_version=no
20010       shlibpath_overrides_runpath=no
20011       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20012       ;;
20013   esac
20014   ;;
20015
20016 sysv4*MP*)
20017   if test -d /usr/nec ;then
20018     version_type=linux
20019     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20020     soname_spec='$libname${shared_ext}.$major'
20021     shlibpath_var=LD_LIBRARY_PATH
20022   fi
20023   ;;
20024
20025 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
20026   version_type=freebsd-elf
20027   need_lib_prefix=no
20028   need_version=no
20029   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20030   soname_spec='${libname}${release}${shared_ext}$major'
20031   shlibpath_var=LD_LIBRARY_PATH
20032   hardcode_into_libs=yes
20033   if test "$with_gnu_ld" = yes; then
20034     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
20035     shlibpath_overrides_runpath=no
20036   else
20037     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
20038     shlibpath_overrides_runpath=yes
20039     case $host_os in
20040       sco3.2v5*)
20041         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
20042         ;;
20043     esac
20044   fi
20045   sys_lib_dlsearch_path_spec='/usr/lib'
20046   ;;
20047
20048 uts4*)
20049   version_type=linux
20050   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20051   soname_spec='${libname}${release}${shared_ext}$major'
20052   shlibpath_var=LD_LIBRARY_PATH
20053   ;;
20054
20055 *)
20056   dynamic_linker=no
20057   ;;
20058 esac
20059 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
20060 echo "${ECHO_T}$dynamic_linker" >&6; }
20061 test "$dynamic_linker" = no && can_build_shared=no
20062
20063 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
20064 if test "$GCC" = yes; then
20065   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
20066 fi
20067
20068 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
20069 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
20070 hardcode_action_GCJ=
20071 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
20072    test -n "$runpath_var_GCJ" || \
20073    test "X$hardcode_automatic_GCJ" = "Xyes" ; then
20074
20075   # We can hardcode non-existant directories.
20076   if test "$hardcode_direct_GCJ" != no &&
20077      # If the only mechanism to avoid hardcoding is shlibpath_var, we
20078      # have to relink, otherwise we might link with an installed library
20079      # when we should be linking with a yet-to-be-installed one
20080      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
20081      test "$hardcode_minus_L_GCJ" != no; then
20082     # Linking always hardcodes the temporary library directory.
20083     hardcode_action_GCJ=relink
20084   else
20085     # We can link without hardcoding, and we can hardcode nonexisting dirs.
20086     hardcode_action_GCJ=immediate
20087   fi
20088 else
20089   # We cannot hardcode anything, or else we can only hardcode existing
20090   # directories.
20091   hardcode_action_GCJ=unsupported
20092 fi
20093 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
20094 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
20095
20096 if test "$hardcode_action_GCJ" = relink; then
20097   # Fast installation is not supported
20098   enable_fast_install=no
20099 elif test "$shlibpath_overrides_runpath" = yes ||
20100      test "$enable_shared" = no; then
20101   # Fast installation is not necessary
20102   enable_fast_install=needless
20103 fi
20104
20105
20106 # The else clause should only fire when bootstrapping the
20107 # libtool distribution, otherwise you forgot to ship ltmain.sh
20108 # with your package, and you will get complaints that there are
20109 # no rules to generate ltmain.sh.
20110 if test -f "$ltmain"; then
20111   # See if we are running on zsh, and set the options which allow our commands through
20112   # without removal of \ escapes.
20113   if test -n "${ZSH_VERSION+set}" ; then
20114     setopt NO_GLOB_SUBST
20115   fi
20116   # Now quote all the things that may contain metacharacters while being
20117   # careful not to overquote the AC_SUBSTed values.  We take copies of the
20118   # variables and quote the copies for generation of the libtool script.
20119   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
20120     SED SHELL STRIP \
20121     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20122     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20123     deplibs_check_method reload_flag reload_cmds need_locks \
20124     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20125     lt_cv_sys_global_symbol_to_c_name_address \
20126     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20127     old_postinstall_cmds old_postuninstall_cmds \
20128     compiler_GCJ \
20129     CC_GCJ \
20130     LD_GCJ \
20131     lt_prog_compiler_wl_GCJ \
20132     lt_prog_compiler_pic_GCJ \
20133     lt_prog_compiler_static_GCJ \
20134     lt_prog_compiler_no_builtin_flag_GCJ \
20135     export_dynamic_flag_spec_GCJ \
20136     thread_safe_flag_spec_GCJ \
20137     whole_archive_flag_spec_GCJ \
20138     enable_shared_with_static_runtimes_GCJ \
20139     old_archive_cmds_GCJ \
20140     old_archive_from_new_cmds_GCJ \
20141     predep_objects_GCJ \
20142     postdep_objects_GCJ \
20143     predeps_GCJ \
20144     postdeps_GCJ \
20145     compiler_lib_search_path_GCJ \
20146     archive_cmds_GCJ \
20147     archive_expsym_cmds_GCJ \
20148     postinstall_cmds_GCJ \
20149     postuninstall_cmds_GCJ \
20150     old_archive_from_expsyms_cmds_GCJ \
20151     allow_undefined_flag_GCJ \
20152     no_undefined_flag_GCJ \
20153     export_symbols_cmds_GCJ \
20154     hardcode_libdir_flag_spec_GCJ \
20155     hardcode_libdir_flag_spec_ld_GCJ \
20156     hardcode_libdir_separator_GCJ \
20157     hardcode_automatic_GCJ \
20158     module_cmds_GCJ \
20159     module_expsym_cmds_GCJ \
20160     lt_cv_prog_compiler_c_o_GCJ \
20161     fix_srcfile_path_GCJ \
20162     exclude_expsyms_GCJ \
20163     include_expsyms_GCJ; do
20164
20165     case $var in
20166     old_archive_cmds_GCJ | \
20167     old_archive_from_new_cmds_GCJ | \
20168     archive_cmds_GCJ | \
20169     archive_expsym_cmds_GCJ | \
20170     module_cmds_GCJ | \
20171     module_expsym_cmds_GCJ | \
20172     old_archive_from_expsyms_cmds_GCJ | \
20173     export_symbols_cmds_GCJ | \
20174     extract_expsyms_cmds | reload_cmds | finish_cmds | \
20175     postinstall_cmds | postuninstall_cmds | \
20176     old_postinstall_cmds | old_postuninstall_cmds | \
20177     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20178       # Double-quote double-evaled strings.
20179       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
20180       ;;
20181     *)
20182       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20183       ;;
20184     esac
20185   done
20186
20187   case $lt_echo in
20188   *'\$0 --fallback-echo"')
20189     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20190     ;;
20191   esac
20192
20193 cfgfile="$ofile"
20194
20195   cat <<__EOF__ >> "$cfgfile"
20196 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
20197
20198 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20199
20200 # Shell to use when invoking shell scripts.
20201 SHELL=$lt_SHELL
20202
20203 # Whether or not to build shared libraries.
20204 build_libtool_libs=$enable_shared
20205
20206 # Whether or not to build static libraries.
20207 build_old_libs=$enable_static
20208
20209 # Whether or not to add -lc for building shared libraries.
20210 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
20211
20212 # Whether or not to disallow shared libs when runtime libs are static
20213 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
20214
20215 # Whether or not to optimize for fast installation.
20216 fast_install=$enable_fast_install
20217
20218 # The host system.
20219 host_alias=$host_alias
20220 host=$host
20221 host_os=$host_os
20222
20223 # The build system.
20224 build_alias=$build_alias
20225 build=$build
20226 build_os=$build_os
20227
20228 # An echo program that does not interpret backslashes.
20229 echo=$lt_echo
20230
20231 # The archiver.
20232 AR=$lt_AR
20233 AR_FLAGS=$lt_AR_FLAGS
20234
20235 # A C compiler.
20236 LTCC=$lt_LTCC
20237
20238 # LTCC compiler flags.
20239 LTCFLAGS=$lt_LTCFLAGS
20240
20241 # A language-specific compiler.
20242 CC=$lt_compiler_GCJ
20243
20244 # Is the compiler the GNU C compiler?
20245 with_gcc=$GCC_GCJ
20246
20247 # An ERE matcher.
20248 EGREP=$lt_EGREP
20249
20250 # The linker used to build libraries.
20251 LD=$lt_LD_GCJ
20252
20253 # Whether we need hard or soft links.
20254 LN_S=$lt_LN_S
20255
20256 # A BSD-compatible nm program.
20257 NM=$lt_NM
20258
20259 # A symbol stripping program
20260 STRIP=$lt_STRIP
20261
20262 # Used to examine libraries when file_magic_cmd begins "file"
20263 MAGIC_CMD=$MAGIC_CMD
20264
20265 # Used on cygwin: DLL creation program.
20266 DLLTOOL="$DLLTOOL"
20267
20268 # Used on cygwin: object dumper.
20269 OBJDUMP="$OBJDUMP"
20270
20271 # Used on cygwin: assembler.
20272 AS="$AS"
20273
20274 # The name of the directory that contains temporary libtool files.
20275 objdir=$objdir
20276
20277 # How to create reloadable object files.
20278 reload_flag=$lt_reload_flag
20279 reload_cmds=$lt_reload_cmds
20280
20281 # How to pass a linker flag through the compiler.
20282 wl=$lt_lt_prog_compiler_wl_GCJ
20283
20284 # Object file suffix (normally "o").
20285 objext="$ac_objext"
20286
20287 # Old archive suffix (normally "a").
20288 libext="$libext"
20289
20290 # Shared library suffix (normally ".so").
20291 shrext_cmds='$shrext_cmds'
20292
20293 # Executable file suffix (normally "").
20294 exeext="$exeext"
20295
20296 # Additional compiler flags for building library objects.
20297 pic_flag=$lt_lt_prog_compiler_pic_GCJ
20298 pic_mode=$pic_mode
20299
20300 # What is the maximum length of a command?
20301 max_cmd_len=$lt_cv_sys_max_cmd_len
20302
20303 # Does compiler simultaneously support -c and -o options?
20304 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
20305
20306 # Must we lock files when doing compilation?
20307 need_locks=$lt_need_locks
20308
20309 # Do we need the lib prefix for modules?
20310 need_lib_prefix=$need_lib_prefix
20311
20312 # Do we need a version for libraries?
20313 need_version=$need_version
20314
20315 # Whether dlopen is supported.
20316 dlopen_support=$enable_dlopen
20317
20318 # Whether dlopen of programs is supported.
20319 dlopen_self=$enable_dlopen_self
20320
20321 # Whether dlopen of statically linked programs is supported.
20322 dlopen_self_static=$enable_dlopen_self_static
20323
20324 # Compiler flag to prevent dynamic linking.
20325 link_static_flag=$lt_lt_prog_compiler_static_GCJ
20326
20327 # Compiler flag to turn off builtin functions.
20328 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
20329
20330 # Compiler flag to allow reflexive dlopens.
20331 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
20332
20333 # Compiler flag to generate shared objects directly from archives.
20334 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
20335
20336 # Compiler flag to generate thread-safe objects.
20337 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
20338
20339 # Library versioning type.
20340 version_type=$version_type
20341
20342 # Format of library name prefix.
20343 libname_spec=$lt_libname_spec
20344
20345 # List of archive names.  First name is the real one, the rest are links.
20346 # The last name is the one that the linker finds with -lNAME.
20347 library_names_spec=$lt_library_names_spec
20348
20349 # The coded name of the library, if different from the real name.
20350 soname_spec=$lt_soname_spec
20351
20352 # Commands used to build and install an old-style archive.
20353 RANLIB=$lt_RANLIB
20354 old_archive_cmds=$lt_old_archive_cmds_GCJ
20355 old_postinstall_cmds=$lt_old_postinstall_cmds
20356 old_postuninstall_cmds=$lt_old_postuninstall_cmds
20357
20358 # Create an old-style archive from a shared archive.
20359 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
20360
20361 # Create a temporary old-style archive to link instead of a shared archive.
20362 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
20363
20364 # Commands used to build and install a shared archive.
20365 archive_cmds=$lt_archive_cmds_GCJ
20366 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
20367 postinstall_cmds=$lt_postinstall_cmds
20368 postuninstall_cmds=$lt_postuninstall_cmds
20369
20370 # Commands used to build a loadable module (assumed same as above if empty)
20371 module_cmds=$lt_module_cmds_GCJ
20372 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
20373
20374 # Commands to strip libraries.
20375 old_striplib=$lt_old_striplib
20376 striplib=$lt_striplib
20377
20378 # Dependencies to place before the objects being linked to create a
20379 # shared library.
20380 predep_objects=$lt_predep_objects_GCJ
20381
20382 # Dependencies to place after the objects being linked to create a
20383 # shared library.
20384 postdep_objects=$lt_postdep_objects_GCJ
20385
20386 # Dependencies to place before the objects being linked to create a
20387 # shared library.
20388 predeps=$lt_predeps_GCJ
20389
20390 # Dependencies to place after the objects being linked to create a
20391 # shared library.
20392 postdeps=$lt_postdeps_GCJ
20393
20394 # The library search path used internally by the compiler when linking
20395 # a shared library.
20396 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
20397
20398 # Method to check whether dependent libraries are shared objects.
20399 deplibs_check_method=$lt_deplibs_check_method
20400
20401 # Command to use when deplibs_check_method == file_magic.
20402 file_magic_cmd=$lt_file_magic_cmd
20403
20404 # Flag that allows shared libraries with undefined symbols to be built.
20405 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
20406
20407 # Flag that forces no undefined symbols.
20408 no_undefined_flag=$lt_no_undefined_flag_GCJ
20409
20410 # Commands used to finish a libtool library installation in a directory.
20411 finish_cmds=$lt_finish_cmds
20412
20413 # Same as above, but a single script fragment to be evaled but not shown.
20414 finish_eval=$lt_finish_eval
20415
20416 # Take the output of nm and produce a listing of raw symbols and C names.
20417 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20418
20419 # Transform the output of nm in a proper C declaration
20420 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20421
20422 # Transform the output of nm in a C name address pair
20423 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20424
20425 # This is the shared library runtime path variable.
20426 runpath_var=$runpath_var
20427
20428 # This is the shared library path variable.
20429 shlibpath_var=$shlibpath_var
20430
20431 # Is shlibpath searched before the hard-coded library search path?
20432 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20433
20434 # How to hardcode a shared library path into an executable.
20435 hardcode_action=$hardcode_action_GCJ
20436
20437 # Whether we should hardcode library paths into libraries.
20438 hardcode_into_libs=$hardcode_into_libs
20439
20440 # Flag to hardcode \$libdir into a binary during linking.
20441 # This must work even if \$libdir does not exist.
20442 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
20443
20444 # If ld is used when linking, flag to hardcode \$libdir into
20445 # a binary during linking. This must work even if \$libdir does
20446 # not exist.
20447 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
20448
20449 # Whether we need a single -rpath flag with a separated argument.
20450 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
20451
20452 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20453 # resulting binary.
20454 hardcode_direct=$hardcode_direct_GCJ
20455
20456 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20457 # resulting binary.
20458 hardcode_minus_L=$hardcode_minus_L_GCJ
20459
20460 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20461 # the resulting binary.
20462 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
20463
20464 # Set to yes if building a shared library automatically hardcodes DIR into the library
20465 # and all subsequent libraries and executables linked against it.
20466 hardcode_automatic=$hardcode_automatic_GCJ
20467
20468 # Variables whose values should be saved in libtool wrapper scripts and
20469 # restored at relink time.
20470 variables_saved_for_relink="$variables_saved_for_relink"
20471
20472 # Whether libtool must link a program against all its dependency libraries.
20473 link_all_deplibs=$link_all_deplibs_GCJ
20474
20475 # Compile-time system search path for libraries
20476 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20477
20478 # Run-time system search path for libraries
20479 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20480
20481 # Fix the shell variable \$srcfile for the compiler.
20482 fix_srcfile_path=$lt_fix_srcfile_path
20483
20484 # Set to yes if exported symbols are required.
20485 always_export_symbols=$always_export_symbols_GCJ
20486
20487 # The commands to list exported symbols.
20488 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
20489
20490 # The commands to extract the exported symbol list from a shared archive.
20491 extract_expsyms_cmds=$lt_extract_expsyms_cmds
20492
20493 # Symbols that should not be listed in the preloaded symbols.
20494 exclude_expsyms=$lt_exclude_expsyms_GCJ
20495
20496 # Symbols that must always be exported.
20497 include_expsyms=$lt_include_expsyms_GCJ
20498
20499 # ### END LIBTOOL TAG CONFIG: $tagname
20500
20501 __EOF__
20502
20503
20504 else
20505   # If there is no Makefile yet, we rely on a make rule to execute
20506   # `config.status --recheck' to rerun these tests and create the
20507   # libtool script then.
20508   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20509   if test -f "$ltmain_in"; then
20510     test -f Makefile && make "$ltmain"
20511   fi
20512 fi
20513
20514
20515 ac_ext=c
20516 ac_cpp='$CPP $CPPFLAGS'
20517 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20518 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20519 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20520
20521 CC="$lt_save_CC"
20522
20523         else
20524           tagname=""
20525         fi
20526         ;;
20527
20528       RC)
20529         
20530
20531 # Source file extension for RC test sources.
20532 ac_ext=rc
20533
20534 # Object file extension for compiled RC test sources.
20535 objext=o
20536 objext_RC=$objext
20537
20538 # Code to be used in simple compile tests
20539 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
20540
20541 # Code to be used in simple link tests
20542 lt_simple_link_test_code="$lt_simple_compile_test_code"
20543
20544 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
20545
20546 # If no C compiler was specified, use CC.
20547 LTCC=${LTCC-"$CC"}
20548
20549 # If no C compiler flags were specified, use CFLAGS.
20550 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
20551
20552 # Allow CC to be a program name with arguments.
20553 compiler=$CC
20554
20555
20556 # save warnings/boilerplate of simple test code
20557 ac_outfile=conftest.$ac_objext
20558 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
20559 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
20560 _lt_compiler_boilerplate=`cat conftest.err`
20561 $rm conftest*
20562
20563 ac_outfile=conftest.$ac_objext
20564 echo "$lt_simple_link_test_code" >conftest.$ac_ext
20565 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
20566 _lt_linker_boilerplate=`cat conftest.err`
20567 $rm conftest*
20568
20569
20570 # Allow CC to be a program name with arguments.
20571 lt_save_CC="$CC"
20572 CC=${RC-"windres"}
20573 compiler=$CC
20574 compiler_RC=$CC
20575 for cc_temp in $compiler""; do
20576   case $cc_temp in
20577     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
20578     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
20579     \-*) ;;
20580     *) break;;
20581   esac
20582 done
20583 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
20584
20585 lt_cv_prog_compiler_c_o_RC=yes
20586
20587 # The else clause should only fire when bootstrapping the
20588 # libtool distribution, otherwise you forgot to ship ltmain.sh
20589 # with your package, and you will get complaints that there are
20590 # no rules to generate ltmain.sh.
20591 if test -f "$ltmain"; then
20592   # See if we are running on zsh, and set the options which allow our commands through
20593   # without removal of \ escapes.
20594   if test -n "${ZSH_VERSION+set}" ; then
20595     setopt NO_GLOB_SUBST
20596   fi
20597   # Now quote all the things that may contain metacharacters while being
20598   # careful not to overquote the AC_SUBSTed values.  We take copies of the
20599   # variables and quote the copies for generation of the libtool script.
20600   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
20601     SED SHELL STRIP \
20602     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20603     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20604     deplibs_check_method reload_flag reload_cmds need_locks \
20605     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20606     lt_cv_sys_global_symbol_to_c_name_address \
20607     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20608     old_postinstall_cmds old_postuninstall_cmds \
20609     compiler_RC \
20610     CC_RC \
20611     LD_RC \
20612     lt_prog_compiler_wl_RC \
20613     lt_prog_compiler_pic_RC \
20614     lt_prog_compiler_static_RC \
20615     lt_prog_compiler_no_builtin_flag_RC \
20616     export_dynamic_flag_spec_RC \
20617     thread_safe_flag_spec_RC \
20618     whole_archive_flag_spec_RC \
20619     enable_shared_with_static_runtimes_RC \
20620     old_archive_cmds_RC \
20621     old_archive_from_new_cmds_RC \
20622     predep_objects_RC \
20623     postdep_objects_RC \
20624     predeps_RC \
20625     postdeps_RC \
20626     compiler_lib_search_path_RC \
20627     archive_cmds_RC \
20628     archive_expsym_cmds_RC \
20629     postinstall_cmds_RC \
20630     postuninstall_cmds_RC \
20631     old_archive_from_expsyms_cmds_RC \
20632     allow_undefined_flag_RC \
20633     no_undefined_flag_RC \
20634     export_symbols_cmds_RC \
20635     hardcode_libdir_flag_spec_RC \
20636     hardcode_libdir_flag_spec_ld_RC \
20637     hardcode_libdir_separator_RC \
20638     hardcode_automatic_RC \
20639     module_cmds_RC \
20640     module_expsym_cmds_RC \
20641     lt_cv_prog_compiler_c_o_RC \
20642     fix_srcfile_path_RC \
20643     exclude_expsyms_RC \
20644     include_expsyms_RC; do
20645
20646     case $var in
20647     old_archive_cmds_RC | \
20648     old_archive_from_new_cmds_RC | \
20649     archive_cmds_RC | \
20650     archive_expsym_cmds_RC | \
20651     module_cmds_RC | \
20652     module_expsym_cmds_RC | \
20653     old_archive_from_expsyms_cmds_RC | \
20654     export_symbols_cmds_RC | \
20655     extract_expsyms_cmds | reload_cmds | finish_cmds | \
20656     postinstall_cmds | postuninstall_cmds | \
20657     old_postinstall_cmds | old_postuninstall_cmds | \
20658     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20659       # Double-quote double-evaled strings.
20660       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
20661       ;;
20662     *)
20663       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20664       ;;
20665     esac
20666   done
20667
20668   case $lt_echo in
20669   *'\$0 --fallback-echo"')
20670     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20671     ;;
20672   esac
20673
20674 cfgfile="$ofile"
20675
20676   cat <<__EOF__ >> "$cfgfile"
20677 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
20678
20679 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20680
20681 # Shell to use when invoking shell scripts.
20682 SHELL=$lt_SHELL
20683
20684 # Whether or not to build shared libraries.
20685 build_libtool_libs=$enable_shared
20686
20687 # Whether or not to build static libraries.
20688 build_old_libs=$enable_static
20689
20690 # Whether or not to add -lc for building shared libraries.
20691 build_libtool_need_lc=$archive_cmds_need_lc_RC
20692
20693 # Whether or not to disallow shared libs when runtime libs are static
20694 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
20695
20696 # Whether or not to optimize for fast installation.
20697 fast_install=$enable_fast_install
20698
20699 # The host system.
20700 host_alias=$host_alias
20701 host=$host
20702 host_os=$host_os
20703
20704 # The build system.
20705 build_alias=$build_alias
20706 build=$build
20707 build_os=$build_os
20708
20709 # An echo program that does not interpret backslashes.
20710 echo=$lt_echo
20711
20712 # The archiver.
20713 AR=$lt_AR
20714 AR_FLAGS=$lt_AR_FLAGS
20715
20716 # A C compiler.
20717 LTCC=$lt_LTCC
20718
20719 # LTCC compiler flags.
20720 LTCFLAGS=$lt_LTCFLAGS
20721
20722 # A language-specific compiler.
20723 CC=$lt_compiler_RC
20724
20725 # Is the compiler the GNU C compiler?
20726 with_gcc=$GCC_RC
20727
20728 # An ERE matcher.
20729 EGREP=$lt_EGREP
20730
20731 # The linker used to build libraries.
20732 LD=$lt_LD_RC
20733
20734 # Whether we need hard or soft links.
20735 LN_S=$lt_LN_S
20736
20737 # A BSD-compatible nm program.
20738 NM=$lt_NM
20739
20740 # A symbol stripping program
20741 STRIP=$lt_STRIP
20742
20743 # Used to examine libraries when file_magic_cmd begins "file"
20744 MAGIC_CMD=$MAGIC_CMD
20745
20746 # Used on cygwin: DLL creation program.
20747 DLLTOOL="$DLLTOOL"
20748
20749 # Used on cygwin: object dumper.
20750 OBJDUMP="$OBJDUMP"
20751
20752 # Used on cygwin: assembler.
20753 AS="$AS"
20754
20755 # The name of the directory that contains temporary libtool files.
20756 objdir=$objdir
20757
20758 # How to create reloadable object files.
20759 reload_flag=$lt_reload_flag
20760 reload_cmds=$lt_reload_cmds
20761
20762 # How to pass a linker flag through the compiler.
20763 wl=$lt_lt_prog_compiler_wl_RC
20764
20765 # Object file suffix (normally "o").
20766 objext="$ac_objext"
20767
20768 # Old archive suffix (normally "a").
20769 libext="$libext"
20770
20771 # Shared library suffix (normally ".so").
20772 shrext_cmds='$shrext_cmds'
20773
20774 # Executable file suffix (normally "").
20775 exeext="$exeext"
20776
20777 # Additional compiler flags for building library objects.
20778 pic_flag=$lt_lt_prog_compiler_pic_RC
20779 pic_mode=$pic_mode
20780
20781 # What is the maximum length of a command?
20782 max_cmd_len=$lt_cv_sys_max_cmd_len
20783
20784 # Does compiler simultaneously support -c and -o options?
20785 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
20786
20787 # Must we lock files when doing compilation?
20788 need_locks=$lt_need_locks
20789
20790 # Do we need the lib prefix for modules?
20791 need_lib_prefix=$need_lib_prefix
20792
20793 # Do we need a version for libraries?
20794 need_version=$need_version
20795
20796 # Whether dlopen is supported.
20797 dlopen_support=$enable_dlopen
20798
20799 # Whether dlopen of programs is supported.
20800 dlopen_self=$enable_dlopen_self
20801
20802 # Whether dlopen of statically linked programs is supported.
20803 dlopen_self_static=$enable_dlopen_self_static
20804
20805 # Compiler flag to prevent dynamic linking.
20806 link_static_flag=$lt_lt_prog_compiler_static_RC
20807
20808 # Compiler flag to turn off builtin functions.
20809 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
20810
20811 # Compiler flag to allow reflexive dlopens.
20812 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
20813
20814 # Compiler flag to generate shared objects directly from archives.
20815 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
20816
20817 # Compiler flag to generate thread-safe objects.
20818 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
20819
20820 # Library versioning type.
20821 version_type=$version_type
20822
20823 # Format of library name prefix.
20824 libname_spec=$lt_libname_spec
20825
20826 # List of archive names.  First name is the real one, the rest are links.
20827 # The last name is the one that the linker finds with -lNAME.
20828 library_names_spec=$lt_library_names_spec
20829
20830 # The coded name of the library, if different from the real name.
20831 soname_spec=$lt_soname_spec
20832
20833 # Commands used to build and install an old-style archive.
20834 RANLIB=$lt_RANLIB
20835 old_archive_cmds=$lt_old_archive_cmds_RC
20836 old_postinstall_cmds=$lt_old_postinstall_cmds
20837 old_postuninstall_cmds=$lt_old_postuninstall_cmds
20838
20839 # Create an old-style archive from a shared archive.
20840 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
20841
20842 # Create a temporary old-style archive to link instead of a shared archive.
20843 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
20844
20845 # Commands used to build and install a shared archive.
20846 archive_cmds=$lt_archive_cmds_RC
20847 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
20848 postinstall_cmds=$lt_postinstall_cmds
20849 postuninstall_cmds=$lt_postuninstall_cmds
20850
20851 # Commands used to build a loadable module (assumed same as above if empty)
20852 module_cmds=$lt_module_cmds_RC
20853 module_expsym_cmds=$lt_module_expsym_cmds_RC
20854
20855 # Commands to strip libraries.
20856 old_striplib=$lt_old_striplib
20857 striplib=$lt_striplib
20858
20859 # Dependencies to place before the objects being linked to create a
20860 # shared library.
20861 predep_objects=$lt_predep_objects_RC
20862
20863 # Dependencies to place after the objects being linked to create a
20864 # shared library.
20865 postdep_objects=$lt_postdep_objects_RC
20866
20867 # Dependencies to place before the objects being linked to create a
20868 # shared library.
20869 predeps=$lt_predeps_RC
20870
20871 # Dependencies to place after the objects being linked to create a
20872 # shared library.
20873 postdeps=$lt_postdeps_RC
20874
20875 # The library search path used internally by the compiler when linking
20876 # a shared library.
20877 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
20878
20879 # Method to check whether dependent libraries are shared objects.
20880 deplibs_check_method=$lt_deplibs_check_method
20881
20882 # Command to use when deplibs_check_method == file_magic.
20883 file_magic_cmd=$lt_file_magic_cmd
20884
20885 # Flag that allows shared libraries with undefined symbols to be built.
20886 allow_undefined_flag=$lt_allow_undefined_flag_RC
20887
20888 # Flag that forces no undefined symbols.
20889 no_undefined_flag=$lt_no_undefined_flag_RC
20890
20891 # Commands used to finish a libtool library installation in a directory.
20892 finish_cmds=$lt_finish_cmds
20893
20894 # Same as above, but a single script fragment to be evaled but not shown.
20895 finish_eval=$lt_finish_eval
20896
20897 # Take the output of nm and produce a listing of raw symbols and C names.
20898 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20899
20900 # Transform the output of nm in a proper C declaration
20901 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20902
20903 # Transform the output of nm in a C name address pair
20904 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20905
20906 # This is the shared library runtime path variable.
20907 runpath_var=$runpath_var
20908
20909 # This is the shared library path variable.
20910 shlibpath_var=$shlibpath_var
20911
20912 # Is shlibpath searched before the hard-coded library search path?
20913 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20914
20915 # How to hardcode a shared library path into an executable.
20916 hardcode_action=$hardcode_action_RC
20917
20918 # Whether we should hardcode library paths into libraries.
20919 hardcode_into_libs=$hardcode_into_libs
20920
20921 # Flag to hardcode \$libdir into a binary during linking.
20922 # This must work even if \$libdir does not exist.
20923 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
20924
20925 # If ld is used when linking, flag to hardcode \$libdir into
20926 # a binary during linking. This must work even if \$libdir does
20927 # not exist.
20928 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
20929
20930 # Whether we need a single -rpath flag with a separated argument.
20931 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
20932
20933 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20934 # resulting binary.
20935 hardcode_direct=$hardcode_direct_RC
20936
20937 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20938 # resulting binary.
20939 hardcode_minus_L=$hardcode_minus_L_RC
20940
20941 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20942 # the resulting binary.
20943 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
20944
20945 # Set to yes if building a shared library automatically hardcodes DIR into the library
20946 # and all subsequent libraries and executables linked against it.
20947 hardcode_automatic=$hardcode_automatic_RC
20948
20949 # Variables whose values should be saved in libtool wrapper scripts and
20950 # restored at relink time.
20951 variables_saved_for_relink="$variables_saved_for_relink"
20952
20953 # Whether libtool must link a program against all its dependency libraries.
20954 link_all_deplibs=$link_all_deplibs_RC
20955
20956 # Compile-time system search path for libraries
20957 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20958
20959 # Run-time system search path for libraries
20960 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20961
20962 # Fix the shell variable \$srcfile for the compiler.
20963 fix_srcfile_path=$lt_fix_srcfile_path
20964
20965 # Set to yes if exported symbols are required.
20966 always_export_symbols=$always_export_symbols_RC
20967
20968 # The commands to list exported symbols.
20969 export_symbols_cmds=$lt_export_symbols_cmds_RC
20970
20971 # The commands to extract the exported symbol list from a shared archive.
20972 extract_expsyms_cmds=$lt_extract_expsyms_cmds
20973
20974 # Symbols that should not be listed in the preloaded symbols.
20975 exclude_expsyms=$lt_exclude_expsyms_RC
20976
20977 # Symbols that must always be exported.
20978 include_expsyms=$lt_include_expsyms_RC
20979
20980 # ### END LIBTOOL TAG CONFIG: $tagname
20981
20982 __EOF__
20983
20984
20985 else
20986   # If there is no Makefile yet, we rely on a make rule to execute
20987   # `config.status --recheck' to rerun these tests and create the
20988   # libtool script then.
20989   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20990   if test -f "$ltmain_in"; then
20991     test -f Makefile && make "$ltmain"
20992   fi
20993 fi
20994
20995
20996 ac_ext=c
20997 ac_cpp='$CPP $CPPFLAGS'
20998 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20999 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21000 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21001
21002 CC="$lt_save_CC"
21003
21004         ;;
21005
21006       *)
21007         { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
21008 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
21009    { (exit 1); exit 1; }; }
21010         ;;
21011       esac
21012
21013       # Append the new tag name to the list of available tags.
21014       if test -n "$tagname" ; then
21015       available_tags="$available_tags $tagname"
21016     fi
21017     fi
21018   done
21019   IFS="$lt_save_ifs"
21020
21021   # Now substitute the updated list of available tags.
21022   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
21023     mv "${ofile}T" "$ofile"
21024     chmod +x "$ofile"
21025   else
21026     rm -f "${ofile}T"
21027     { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
21028 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
21029    { (exit 1); exit 1; }; }
21030   fi
21031 fi
21032
21033
21034
21035 # This can be used to rebuild libtool when needed
21036 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
21037
21038 # Always use our own libtool.
21039 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
21040
21041 # Prevent multiple expansion
21042
21043
21044
21045
21046
21047
21048
21049
21050
21051
21052
21053   
21054
21055   
21056
21057
21058   
21059        
21060        
21061
21062 if test "x$CC" != xcc; then
21063   { echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
21064 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6; }
21065 else
21066   { echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
21067 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6; }
21068 fi
21069 set dummy $CC; ac_cc=`echo $2 |
21070                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
21071 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then
21072   echo $ECHO_N "(cached) $ECHO_C" >&6
21073 else
21074   cat >conftest.$ac_ext <<_ACEOF
21075 /* confdefs.h.  */
21076 _ACEOF
21077 cat confdefs.h >>conftest.$ac_ext
21078 cat >>conftest.$ac_ext <<_ACEOF
21079 /* end confdefs.h.  */
21080
21081 int
21082 main ()
21083 {
21084
21085   ;
21086   return 0;
21087 }
21088 _ACEOF
21089 # Make sure it works both with $CC and with simple cc.
21090 # We do the test twice because some compilers refuse to overwrite an
21091 # existing .o file with -o, though they will create one.
21092 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
21093 rm -f conftest2.*
21094 if { (case "(($ac_try" in
21095   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21096   *) ac_try_echo=$ac_try;;
21097 esac
21098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21099   (eval "$ac_try") 2>&5
21100   ac_status=$?
21101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21102   (exit $ac_status); } &&
21103    test -f conftest2.$ac_objext && { (case "(($ac_try" in
21104   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21105   *) ac_try_echo=$ac_try;;
21106 esac
21107 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21108   (eval "$ac_try") 2>&5
21109   ac_status=$?
21110   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21111   (exit $ac_status); };
21112 then
21113   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
21114   if test "x$CC" != xcc; then
21115     # Test first that cc exists at all.
21116     if { ac_try='cc -c conftest.$ac_ext >&5'
21117   { (case "(($ac_try" in
21118   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21119   *) ac_try_echo=$ac_try;;
21120 esac
21121 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21122   (eval "$ac_try") 2>&5
21123   ac_status=$?
21124   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21125   (exit $ac_status); }; }; then
21126       ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
21127       rm -f conftest2.*
21128       if { (case "(($ac_try" in
21129   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21130   *) ac_try_echo=$ac_try;;
21131 esac
21132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21133   (eval "$ac_try") 2>&5
21134   ac_status=$?
21135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21136   (exit $ac_status); } &&
21137          test -f conftest2.$ac_objext && { (case "(($ac_try" in
21138   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21139   *) ac_try_echo=$ac_try;;
21140 esac
21141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21142   (eval "$ac_try") 2>&5
21143   ac_status=$?
21144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21145   (exit $ac_status); };
21146       then
21147         # cc works too.
21148         :
21149       else
21150         # cc exists but doesn't like -o.
21151         eval ac_cv_prog_cc_${ac_cc}_c_o=no
21152       fi
21153     fi
21154   fi
21155 else
21156   eval ac_cv_prog_cc_${ac_cc}_c_o=no
21157 fi
21158 rm -f core conftest*
21159
21160 fi
21161 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
21162   { echo "$as_me:$LINENO: result: yes" >&5
21163 echo "${ECHO_T}yes" >&6; }
21164 else
21165   { echo "$as_me:$LINENO: result: no" >&5
21166 echo "${ECHO_T}no" >&6; }
21167   
21168 cat >>confdefs.h <<\_ACEOF
21169 @%:@define NO_MINUS_C_MINUS_O 1
21170 _ACEOF
21171
21172 fi
21173
21174 # FIXME: we rely on the cache variable name because
21175 # there is no other way.
21176 set dummy $CC
21177 ac_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
21178 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
21179    # Losing compiler, so override with the script.
21180    # FIXME: It is wrong to rewrite CC.
21181    # But if we don't then we get into trouble of one sort or another.
21182    # A longer-term fix would be to have automake use am__CC in this case,
21183    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
21184    CC="$am_aux_dir/compile $CC"
21185 fi
21186
21187
21188 if test "x$cross_compiling" = "xno"; then
21189         CC_FOR_BUILD=${CC_FOR_BUILD-${CC-gcc}}
21190 else
21191         CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
21192 fi
21193
21194
21195
21196 if test -n "$ac_tool_prefix"; then
21197   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
21198 set dummy ${ac_tool_prefix}ar; ac_word=$2
21199 { echo "$as_me:$LINENO: checking for $ac_word" >&5
21200 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
21201 if test "${ac_cv_prog_AR+set}" = set; then
21202   echo $ECHO_N "(cached) $ECHO_C" >&6
21203 else
21204   if test -n "$AR"; then
21205   ac_cv_prog_AR="$AR" # Let the user override the test.
21206 else
21207 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21208 for as_dir in $PATH
21209 do
21210   IFS=$as_save_IFS
21211   test -z "$as_dir" && as_dir=.
21212   for ac_exec_ext in '' $ac_executable_extensions; do
21213   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21214     ac_cv_prog_AR="${ac_tool_prefix}ar"
21215     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21216     break 2
21217   fi
21218 done
21219 done
21220 IFS=$as_save_IFS
21221
21222 fi
21223 fi
21224 AR=$ac_cv_prog_AR
21225 if test -n "$AR"; then
21226   { echo "$as_me:$LINENO: result: $AR" >&5
21227 echo "${ECHO_T}$AR" >&6; }
21228 else
21229   { echo "$as_me:$LINENO: result: no" >&5
21230 echo "${ECHO_T}no" >&6; }
21231 fi
21232
21233
21234 fi
21235 if test -z "$ac_cv_prog_AR"; then
21236   ac_ct_AR=$AR
21237   # Extract the first word of "ar", so it can be a program name with args.
21238 set dummy ar; ac_word=$2
21239 { echo "$as_me:$LINENO: checking for $ac_word" >&5
21240 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
21241 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
21242   echo $ECHO_N "(cached) $ECHO_C" >&6
21243 else
21244   if test -n "$ac_ct_AR"; then
21245   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
21246 else
21247 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21248 for as_dir in $PATH
21249 do
21250   IFS=$as_save_IFS
21251   test -z "$as_dir" && as_dir=.
21252   for ac_exec_ext in '' $ac_executable_extensions; do
21253   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21254     ac_cv_prog_ac_ct_AR="ar"
21255     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21256     break 2
21257   fi
21258 done
21259 done
21260 IFS=$as_save_IFS
21261
21262 fi
21263 fi
21264 ac_ct_AR=$ac_cv_prog_ac_ct_AR
21265 if test -n "$ac_ct_AR"; then
21266   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
21267 echo "${ECHO_T}$ac_ct_AR" >&6; }
21268 else
21269   { echo "$as_me:$LINENO: result: no" >&5
21270 echo "${ECHO_T}no" >&6; }
21271 fi
21272
21273   if test "x$ac_ct_AR" = x; then
21274     AR=""
21275   else
21276     case $cross_compiling:$ac_tool_warned in
21277 yes:)
21278 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
21279 whose name does not start with the host triplet.  If you think this
21280 configuration is useful to you, please write to autoconf@gnu.org." >&5
21281 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
21282 whose name does not start with the host triplet.  If you think this
21283 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
21284 ac_tool_warned=yes ;;
21285 esac
21286     AR=$ac_ct_AR
21287   fi
21288 else
21289   AR="$ac_cv_prog_AR"
21290 fi
21291
21292 if test -n "$ac_tool_prefix"; then
21293   # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
21294 set dummy ${ac_tool_prefix}ld; ac_word=$2
21295 { echo "$as_me:$LINENO: checking for $ac_word" >&5
21296 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
21297 if test "${ac_cv_prog_LD+set}" = set; then
21298   echo $ECHO_N "(cached) $ECHO_C" >&6
21299 else
21300   if test -n "$LD"; then
21301   ac_cv_prog_LD="$LD" # Let the user override the test.
21302 else
21303 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21304 for as_dir in $PATH
21305 do
21306   IFS=$as_save_IFS
21307   test -z "$as_dir" && as_dir=.
21308   for ac_exec_ext in '' $ac_executable_extensions; do
21309   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21310     ac_cv_prog_LD="${ac_tool_prefix}ld"
21311     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21312     break 2
21313   fi
21314 done
21315 done
21316 IFS=$as_save_IFS
21317
21318 fi
21319 fi
21320 LD=$ac_cv_prog_LD
21321 if test -n "$LD"; then
21322   { echo "$as_me:$LINENO: result: $LD" >&5
21323 echo "${ECHO_T}$LD" >&6; }
21324 else
21325   { echo "$as_me:$LINENO: result: no" >&5
21326 echo "${ECHO_T}no" >&6; }
21327 fi
21328
21329
21330 fi
21331 if test -z "$ac_cv_prog_LD"; then
21332   ac_ct_LD=$LD
21333   # Extract the first word of "ld", so it can be a program name with args.
21334 set dummy ld; ac_word=$2
21335 { echo "$as_me:$LINENO: checking for $ac_word" >&5
21336 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
21337 if test "${ac_cv_prog_ac_ct_LD+set}" = set; then
21338   echo $ECHO_N "(cached) $ECHO_C" >&6
21339 else
21340   if test -n "$ac_ct_LD"; then
21341   ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
21342 else
21343 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21344 for as_dir in $PATH
21345 do
21346   IFS=$as_save_IFS
21347   test -z "$as_dir" && as_dir=.
21348   for ac_exec_ext in '' $ac_executable_extensions; do
21349   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21350     ac_cv_prog_ac_ct_LD="ld"
21351     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21352     break 2
21353   fi
21354 done
21355 done
21356 IFS=$as_save_IFS
21357
21358 fi
21359 fi
21360 ac_ct_LD=$ac_cv_prog_ac_ct_LD
21361 if test -n "$ac_ct_LD"; then
21362   { echo "$as_me:$LINENO: result: $ac_ct_LD" >&5
21363 echo "${ECHO_T}$ac_ct_LD" >&6; }
21364 else
21365   { echo "$as_me:$LINENO: result: no" >&5
21366 echo "${ECHO_T}no" >&6; }
21367 fi
21368
21369   if test "x$ac_ct_LD" = x; then
21370     LD=""
21371   else
21372     case $cross_compiling:$ac_tool_warned in
21373 yes:)
21374 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
21375 whose name does not start with the host triplet.  If you think this
21376 configuration is useful to you, please write to autoconf@gnu.org." >&5
21377 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
21378 whose name does not start with the host triplet.  If you think this
21379 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
21380 ac_tool_warned=yes ;;
21381 esac
21382     LD=$ac_ct_LD
21383   fi
21384 else
21385   LD="$ac_cv_prog_LD"
21386 fi
21387
21388
21389 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
21390 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
21391 if test "${ac_cv_header_stdc+set}" = set; then
21392   echo $ECHO_N "(cached) $ECHO_C" >&6
21393 else
21394   cat >conftest.$ac_ext <<_ACEOF
21395 /* confdefs.h.  */
21396 _ACEOF
21397 cat confdefs.h >>conftest.$ac_ext
21398 cat >>conftest.$ac_ext <<_ACEOF
21399 /* end confdefs.h.  */
21400 #include <stdlib.h>
21401 #include <stdarg.h>
21402 #include <string.h>
21403 #include <float.h>
21404
21405 int
21406 main ()
21407 {
21408
21409   ;
21410   return 0;
21411 }
21412 _ACEOF
21413 rm -f conftest.$ac_objext
21414 if { (ac_try="$ac_compile"
21415 case "(($ac_try" in
21416   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21417   *) ac_try_echo=$ac_try;;
21418 esac
21419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21420   (eval "$ac_compile") 2>conftest.er1
21421   ac_status=$?
21422   grep -v '^ *+' conftest.er1 >conftest.err
21423   rm -f conftest.er1
21424   cat conftest.err >&5
21425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21426   (exit $ac_status); } && {
21427          test -z "$ac_c_werror_flag" ||
21428          test ! -s conftest.err
21429        } && test -s conftest.$ac_objext; then
21430   ac_cv_header_stdc=yes
21431 else
21432   echo "$as_me: failed program was:" >&5
21433 sed 's/^/| /' conftest.$ac_ext >&5
21434
21435         ac_cv_header_stdc=no
21436 fi
21437
21438 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21439
21440 if test $ac_cv_header_stdc = yes; then
21441   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
21442   cat >conftest.$ac_ext <<_ACEOF
21443 /* confdefs.h.  */
21444 _ACEOF
21445 cat confdefs.h >>conftest.$ac_ext
21446 cat >>conftest.$ac_ext <<_ACEOF
21447 /* end confdefs.h.  */
21448 #include <string.h>
21449
21450 _ACEOF
21451 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21452   $EGREP "memchr" >/dev/null 2>&1; then
21453   :
21454 else
21455   ac_cv_header_stdc=no
21456 fi
21457 rm -f conftest*
21458
21459 fi
21460
21461 if test $ac_cv_header_stdc = yes; then
21462   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
21463   cat >conftest.$ac_ext <<_ACEOF
21464 /* confdefs.h.  */
21465 _ACEOF
21466 cat confdefs.h >>conftest.$ac_ext
21467 cat >>conftest.$ac_ext <<_ACEOF
21468 /* end confdefs.h.  */
21469 #include <stdlib.h>
21470
21471 _ACEOF
21472 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21473   $EGREP "free" >/dev/null 2>&1; then
21474   :
21475 else
21476   ac_cv_header_stdc=no
21477 fi
21478 rm -f conftest*
21479
21480 fi
21481
21482 if test $ac_cv_header_stdc = yes; then
21483   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
21484   if test "$cross_compiling" = yes; then
21485   :
21486 else
21487   cat >conftest.$ac_ext <<_ACEOF
21488 /* confdefs.h.  */
21489 _ACEOF
21490 cat confdefs.h >>conftest.$ac_ext
21491 cat >>conftest.$ac_ext <<_ACEOF
21492 /* end confdefs.h.  */
21493 #include <ctype.h>
21494 #include <stdlib.h>
21495 #if ((' ' & 0x0FF) == 0x020)
21496 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
21497 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
21498 #else
21499 # define ISLOWER(c) \
21500                    (('a' <= (c) && (c) <= 'i') \
21501                      || ('j' <= (c) && (c) <= 'r') \
21502                      || ('s' <= (c) && (c) <= 'z'))
21503 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
21504 #endif
21505
21506 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
21507 int
21508 main ()
21509 {
21510   int i;
21511   for (i = 0; i < 256; i++)
21512     if (XOR (islower (i), ISLOWER (i))
21513         || toupper (i) != TOUPPER (i))
21514       return 2;
21515   return 0;
21516 }
21517 _ACEOF
21518 rm -f conftest$ac_exeext
21519 if { (ac_try="$ac_link"
21520 case "(($ac_try" in
21521   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21522   *) ac_try_echo=$ac_try;;
21523 esac
21524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21525   (eval "$ac_link") 2>&5
21526   ac_status=$?
21527   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21528   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21529   { (case "(($ac_try" in
21530   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21531   *) ac_try_echo=$ac_try;;
21532 esac
21533 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21534   (eval "$ac_try") 2>&5
21535   ac_status=$?
21536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21537   (exit $ac_status); }; }; then
21538   :
21539 else
21540   echo "$as_me: program exited with status $ac_status" >&5
21541 echo "$as_me: failed program was:" >&5
21542 sed 's/^/| /' conftest.$ac_ext >&5
21543
21544 ( exit $ac_status )
21545 ac_cv_header_stdc=no
21546 fi
21547 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21548 fi
21549
21550
21551 fi
21552 fi
21553 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
21554 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
21555 if test $ac_cv_header_stdc = yes; then
21556   
21557 cat >>confdefs.h <<\_ACEOF
21558 @%:@define STDC_HEADERS 1
21559 _ACEOF
21560
21561 fi
21562
21563
21564   { echo "$as_me:$LINENO: checking for GNU libc2" >&5
21565 echo $ECHO_N "checking for GNU libc2... $ECHO_C" >&6; }
21566   if test "${knfsd_cv_glibc2+set}" = set; then
21567   echo $ECHO_N "(cached) $ECHO_C" >&6
21568 else
21569   cat >conftest.$ac_ext <<_ACEOF
21570 /* confdefs.h.  */
21571 _ACEOF
21572 cat confdefs.h >>conftest.$ac_ext
21573 cat >>conftest.$ac_ext <<_ACEOF
21574 /* end confdefs.h.  */
21575
21576       #include <features.h>
21577       #if !defined(__GLIBC__)
21578       # error Nope
21579       #endif
21580       
21581 _ACEOF
21582 if { (ac_try="$ac_cpp conftest.$ac_ext"
21583 case "(($ac_try" in
21584   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21585   *) ac_try_echo=$ac_try;;
21586 esac
21587 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21588   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21589   ac_status=$?
21590   grep -v '^ *+' conftest.er1 >conftest.err
21591   rm -f conftest.er1
21592   cat conftest.err >&5
21593   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21594   (exit $ac_status); } >/dev/null && {
21595          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21596          test ! -s conftest.err
21597        }; then
21598   knfsd_cv_glibc2=yes
21599 else
21600   echo "$as_me: failed program was:" >&5
21601 sed 's/^/| /' conftest.$ac_ext >&5
21602
21603   knfsd_cv_glibc2=no
21604 fi
21605
21606 rm -f conftest.err conftest.$ac_ext
21607 fi
21608
21609   { echo "$as_me:$LINENO: result: $knfsd_cv_glibc2" >&5
21610 echo "${ECHO_T}$knfsd_cv_glibc2" >&6; }
21611   if test $knfsd_cv_glibc2 = yes; then
21612     CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE"
21613     CPPFLAGS_FOR_BUILD="$CPPFLAGS_FOR_BUILD -D_GNU_SOURCE"
21614   fi
21615
21616
21617   { echo "$as_me:$LINENO: checking for BSD signal semantics" >&5
21618 echo $ECHO_N "checking for BSD signal semantics... $ECHO_C" >&6; }
21619   if test "${knfsd_cv_bsd_signals+set}" = set; then
21620   echo $ECHO_N "(cached) $ECHO_C" >&6
21621 else
21622   if test "$cross_compiling" = yes; then
21623   
21624       case "$host_os" in
21625         *linux*) knfsd_cv_bsd_signals=no;;
21626         *bsd*)   knfsd_cv_bsd_signals=yes;;
21627         *)       { { echo "$as_me:$LINENO: error: unable to guess signal semantics for $host_os; please set knfsd_cv_bsd_signals" >&5
21628 echo "$as_me: error: unable to guess signal semantics for $host_os; please set knfsd_cv_bsd_signals" >&2;}
21629    { (exit 1); exit 1; }; };;
21630       esac
21631     
21632 else
21633   cat >conftest.$ac_ext <<_ACEOF
21634 /* confdefs.h.  */
21635 _ACEOF
21636 cat confdefs.h >>conftest.$ac_ext
21637 cat >>conftest.$ac_ext <<_ACEOF
21638 /* end confdefs.h.  */
21639
21640         #include <signal.h>
21641         #include <unistd.h>
21642         #include <sys/wait.h>
21643
21644         static int counter = 0;
21645         static RETSIGTYPE handler(int num) { counter++; }
21646
21647         int main()
21648         {
21649                 int     s;
21650                 if ((s = fork()) < 0) return 1;
21651                 if (s != 0) {
21652                         if (wait(&s) < 0) return 1;
21653                         return WIFSIGNALED(s)? 1 : 0;
21654                 }
21655
21656                 signal(SIGHUP, handler);
21657                 kill(getpid(), SIGHUP); kill(getpid(), SIGHUP);
21658                 return (counter == 2)? 0 : 1;
21659         }
21660     
21661 _ACEOF
21662 rm -f conftest$ac_exeext
21663 if { (ac_try="$ac_link"
21664 case "(($ac_try" in
21665   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21666   *) ac_try_echo=$ac_try;;
21667 esac
21668 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21669   (eval "$ac_link") 2>&5
21670   ac_status=$?
21671   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21672   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21673   { (case "(($ac_try" in
21674   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21675   *) ac_try_echo=$ac_try;;
21676 esac
21677 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21678   (eval "$ac_try") 2>&5
21679   ac_status=$?
21680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21681   (exit $ac_status); }; }; then
21682   knfsd_cv_bsd_signals=yes
21683 else
21684   echo "$as_me: program exited with status $ac_status" >&5
21685 echo "$as_me: failed program was:" >&5
21686 sed 's/^/| /' conftest.$ac_ext >&5
21687
21688 ( exit $ac_status )
21689 knfsd_cv_bsd_signals=no
21690 fi
21691 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21692 fi
21693
21694
21695 fi
21696      { echo "$as_me:$LINENO: result: $knfsd_cv_bsd_signals" >&5
21697 echo "${ECHO_T}$knfsd_cv_bsd_signals" >&6; }
21698     test $knfsd_cv_bsd_signals = yes && 
21699 cat >>confdefs.h <<\_ACEOF
21700 @%:@define HAVE_BSD_SIGNALS 1
21701 _ACEOF
21702
21703
21704
21705 { echo "$as_me:$LINENO: checking for gethostbyname" >&5
21706 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; }
21707 if test "${ac_cv_func_gethostbyname+set}" = set; then
21708   echo $ECHO_N "(cached) $ECHO_C" >&6
21709 else
21710   cat >conftest.$ac_ext <<_ACEOF
21711 /* confdefs.h.  */
21712 _ACEOF
21713 cat confdefs.h >>conftest.$ac_ext
21714 cat >>conftest.$ac_ext <<_ACEOF
21715 /* end confdefs.h.  */
21716 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
21717    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21718 #define gethostbyname innocuous_gethostbyname
21719
21720 /* System header to define __stub macros and hopefully few prototypes,
21721     which can conflict with char gethostbyname (); below.
21722     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21723     <limits.h> exists even on freestanding compilers.  */
21724
21725 #ifdef __STDC__
21726 # include <limits.h>
21727 #else
21728 # include <assert.h>
21729 #endif
21730
21731 #undef gethostbyname
21732
21733 /* Override any GCC internal prototype to avoid an error.
21734    Use char because int might match the return type of a GCC
21735    builtin and then its argument prototype would still apply.  */
21736 #ifdef __cplusplus
21737 extern "C"
21738 #endif
21739 char gethostbyname ();
21740 /* The GNU C library defines this for functions which it implements
21741     to always fail with ENOSYS.  Some functions are actually named
21742     something starting with __ and the normal name is an alias.  */
21743 #if defined __stub_gethostbyname || defined __stub___gethostbyname
21744 choke me
21745 #endif
21746
21747 int
21748 main ()
21749 {
21750 return gethostbyname ();
21751   ;
21752   return 0;
21753 }
21754 _ACEOF
21755 rm -f conftest.$ac_objext conftest$ac_exeext
21756 if { (ac_try="$ac_link"
21757 case "(($ac_try" in
21758   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21759   *) ac_try_echo=$ac_try;;
21760 esac
21761 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21762   (eval "$ac_link") 2>conftest.er1
21763   ac_status=$?
21764   grep -v '^ *+' conftest.er1 >conftest.err
21765   rm -f conftest.er1
21766   cat conftest.err >&5
21767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21768   (exit $ac_status); } && {
21769          test -z "$ac_c_werror_flag" ||
21770          test ! -s conftest.err
21771        } && test -s conftest$ac_exeext &&
21772        $as_test_x conftest$ac_exeext; then
21773   ac_cv_func_gethostbyname=yes
21774 else
21775   echo "$as_me: failed program was:" >&5
21776 sed 's/^/| /' conftest.$ac_ext >&5
21777
21778         ac_cv_func_gethostbyname=no
21779 fi
21780
21781 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21782       conftest$ac_exeext conftest.$ac_ext
21783 fi
21784 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
21785 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; }
21786 if test $ac_cv_func_gethostbyname = yes; then
21787   :
21788 else
21789   { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
21790 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; }
21791 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
21792   echo $ECHO_N "(cached) $ECHO_C" >&6
21793 else
21794   ac_check_lib_save_LIBS=$LIBS
21795 LIBS="-lnsl  $LIBS"
21796 cat >conftest.$ac_ext <<_ACEOF
21797 /* confdefs.h.  */
21798 _ACEOF
21799 cat confdefs.h >>conftest.$ac_ext
21800 cat >>conftest.$ac_ext <<_ACEOF
21801 /* end confdefs.h.  */
21802
21803 /* Override any GCC internal prototype to avoid an error.
21804    Use char because int might match the return type of a GCC
21805    builtin and then its argument prototype would still apply.  */
21806 #ifdef __cplusplus
21807 extern "C"
21808 #endif
21809 char gethostbyname ();
21810 int
21811 main ()
21812 {
21813 return gethostbyname ();
21814   ;
21815   return 0;
21816 }
21817 _ACEOF
21818 rm -f conftest.$ac_objext conftest$ac_exeext
21819 if { (ac_try="$ac_link"
21820 case "(($ac_try" in
21821   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21822   *) ac_try_echo=$ac_try;;
21823 esac
21824 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21825   (eval "$ac_link") 2>conftest.er1
21826   ac_status=$?
21827   grep -v '^ *+' conftest.er1 >conftest.err
21828   rm -f conftest.er1
21829   cat conftest.err >&5
21830   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21831   (exit $ac_status); } && {
21832          test -z "$ac_c_werror_flag" ||
21833          test ! -s conftest.err
21834        } && test -s conftest$ac_exeext &&
21835        $as_test_x conftest$ac_exeext; then
21836   ac_cv_lib_nsl_gethostbyname=yes
21837 else
21838   echo "$as_me: failed program was:" >&5
21839 sed 's/^/| /' conftest.$ac_ext >&5
21840
21841         ac_cv_lib_nsl_gethostbyname=no
21842 fi
21843
21844 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21845       conftest$ac_exeext conftest.$ac_ext
21846 LIBS=$ac_check_lib_save_LIBS
21847 fi
21848 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
21849 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; }
21850 if test $ac_cv_lib_nsl_gethostbyname = yes; then
21851   LIBNSL="-lnsl"
21852 fi
21853
21854 fi
21855
21856
21857
21858 { echo "$as_me:$LINENO: checking for connect" >&5
21859 echo $ECHO_N "checking for connect... $ECHO_C" >&6; }
21860 if test "${ac_cv_func_connect+set}" = set; then
21861   echo $ECHO_N "(cached) $ECHO_C" >&6
21862 else
21863   cat >conftest.$ac_ext <<_ACEOF
21864 /* confdefs.h.  */
21865 _ACEOF
21866 cat confdefs.h >>conftest.$ac_ext
21867 cat >>conftest.$ac_ext <<_ACEOF
21868 /* end confdefs.h.  */
21869 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
21870    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21871 #define connect innocuous_connect
21872
21873 /* System header to define __stub macros and hopefully few prototypes,
21874     which can conflict with char connect (); below.
21875     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21876     <limits.h> exists even on freestanding compilers.  */
21877
21878 #ifdef __STDC__
21879 # include <limits.h>
21880 #else
21881 # include <assert.h>
21882 #endif
21883
21884 #undef connect
21885
21886 /* Override any GCC internal prototype to avoid an error.
21887    Use char because int might match the return type of a GCC
21888    builtin and then its argument prototype would still apply.  */
21889 #ifdef __cplusplus
21890 extern "C"
21891 #endif
21892 char connect ();
21893 /* The GNU C library defines this for functions which it implements
21894     to always fail with ENOSYS.  Some functions are actually named
21895     something starting with __ and the normal name is an alias.  */
21896 #if defined __stub_connect || defined __stub___connect
21897 choke me
21898 #endif
21899
21900 int
21901 main ()
21902 {
21903 return connect ();
21904   ;
21905   return 0;
21906 }
21907 _ACEOF
21908 rm -f conftest.$ac_objext conftest$ac_exeext
21909 if { (ac_try="$ac_link"
21910 case "(($ac_try" in
21911   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21912   *) ac_try_echo=$ac_try;;
21913 esac
21914 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21915   (eval "$ac_link") 2>conftest.er1
21916   ac_status=$?
21917   grep -v '^ *+' conftest.er1 >conftest.err
21918   rm -f conftest.er1
21919   cat conftest.err >&5
21920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21921   (exit $ac_status); } && {
21922          test -z "$ac_c_werror_flag" ||
21923          test ! -s conftest.err
21924        } && test -s conftest$ac_exeext &&
21925        $as_test_x conftest$ac_exeext; then
21926   ac_cv_func_connect=yes
21927 else
21928   echo "$as_me: failed program was:" >&5
21929 sed 's/^/| /' conftest.$ac_ext >&5
21930
21931         ac_cv_func_connect=no
21932 fi
21933
21934 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21935       conftest$ac_exeext conftest.$ac_ext
21936 fi
21937 { echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
21938 echo "${ECHO_T}$ac_cv_func_connect" >&6; }
21939 if test $ac_cv_func_connect = yes; then
21940   :
21941 else
21942   { echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
21943 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6; }
21944 if test "${ac_cv_lib_socket_connect+set}" = set; then
21945   echo $ECHO_N "(cached) $ECHO_C" >&6
21946 else
21947   ac_check_lib_save_LIBS=$LIBS
21948 LIBS="-lsocket $LIBNSL $LIBS"
21949 cat >conftest.$ac_ext <<_ACEOF
21950 /* confdefs.h.  */
21951 _ACEOF
21952 cat confdefs.h >>conftest.$ac_ext
21953 cat >>conftest.$ac_ext <<_ACEOF
21954 /* end confdefs.h.  */
21955
21956 /* Override any GCC internal prototype to avoid an error.
21957    Use char because int might match the return type of a GCC
21958    builtin and then its argument prototype would still apply.  */
21959 #ifdef __cplusplus
21960 extern "C"
21961 #endif
21962 char connect ();
21963 int
21964 main ()
21965 {
21966 return connect ();
21967   ;
21968   return 0;
21969 }
21970 _ACEOF
21971 rm -f conftest.$ac_objext conftest$ac_exeext
21972 if { (ac_try="$ac_link"
21973 case "(($ac_try" in
21974   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21975   *) ac_try_echo=$ac_try;;
21976 esac
21977 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21978   (eval "$ac_link") 2>conftest.er1
21979   ac_status=$?
21980   grep -v '^ *+' conftest.er1 >conftest.err
21981   rm -f conftest.er1
21982   cat conftest.err >&5
21983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21984   (exit $ac_status); } && {
21985          test -z "$ac_c_werror_flag" ||
21986          test ! -s conftest.err
21987        } && test -s conftest$ac_exeext &&
21988        $as_test_x conftest$ac_exeext; then
21989   ac_cv_lib_socket_connect=yes
21990 else
21991   echo "$as_me: failed program was:" >&5
21992 sed 's/^/| /' conftest.$ac_ext >&5
21993
21994         ac_cv_lib_socket_connect=no
21995 fi
21996
21997 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21998       conftest$ac_exeext conftest.$ac_ext
21999 LIBS=$ac_check_lib_save_LIBS
22000 fi
22001 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
22002 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6; }
22003 if test $ac_cv_lib_socket_connect = yes; then
22004   LIBSOCKET="-lsocket"
22005 else
22006   { { echo "$as_me:$LINENO: error: Function 'socket' not found." >&5
22007 echo "$as_me: error: Function 'socket' not found." >&2;}
22008    { (exit 1); exit 1; }; }
22009 fi
22010
22011 fi
22012
22013
22014 { echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
22015 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6; }
22016 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
22017   echo $ECHO_N "(cached) $ECHO_C" >&6
22018 else
22019   ac_check_lib_save_LIBS=$LIBS
22020 LIBS="-lcrypt  $LIBS"
22021 cat >conftest.$ac_ext <<_ACEOF
22022 /* confdefs.h.  */
22023 _ACEOF
22024 cat confdefs.h >>conftest.$ac_ext
22025 cat >>conftest.$ac_ext <<_ACEOF
22026 /* end confdefs.h.  */
22027
22028 /* Override any GCC internal prototype to avoid an error.
22029    Use char because int might match the return type of a GCC
22030    builtin and then its argument prototype would still apply.  */
22031 #ifdef __cplusplus
22032 extern "C"
22033 #endif
22034 char crypt ();
22035 int
22036 main ()
22037 {
22038 return crypt ();
22039   ;
22040   return 0;
22041 }
22042 _ACEOF
22043 rm -f conftest.$ac_objext conftest$ac_exeext
22044 if { (ac_try="$ac_link"
22045 case "(($ac_try" in
22046   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22047   *) ac_try_echo=$ac_try;;
22048 esac
22049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22050   (eval "$ac_link") 2>conftest.er1
22051   ac_status=$?
22052   grep -v '^ *+' conftest.er1 >conftest.err
22053   rm -f conftest.er1
22054   cat conftest.err >&5
22055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22056   (exit $ac_status); } && {
22057          test -z "$ac_c_werror_flag" ||
22058          test ! -s conftest.err
22059        } && test -s conftest$ac_exeext &&
22060        $as_test_x conftest$ac_exeext; then
22061   ac_cv_lib_crypt_crypt=yes
22062 else
22063   echo "$as_me: failed program was:" >&5
22064 sed 's/^/| /' conftest.$ac_ext >&5
22065
22066         ac_cv_lib_crypt_crypt=no
22067 fi
22068
22069 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22070       conftest$ac_exeext conftest.$ac_ext
22071 LIBS=$ac_check_lib_save_LIBS
22072 fi
22073 { echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
22074 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6; }
22075 if test $ac_cv_lib_crypt_crypt = yes; then
22076   LIBCRYPT="-lcrypt"
22077 fi
22078
22079 if test "$enable_nfsv4" = yes; then
22080     { echo "$as_me:$LINENO: checking for event_dispatch in -levent" >&5
22081 echo $ECHO_N "checking for event_dispatch in -levent... $ECHO_C" >&6; }
22082 if test "${ac_cv_lib_event_event_dispatch+set}" = set; then
22083   echo $ECHO_N "(cached) $ECHO_C" >&6
22084 else
22085   ac_check_lib_save_LIBS=$LIBS
22086 LIBS="-levent  $LIBS"
22087 cat >conftest.$ac_ext <<_ACEOF
22088 /* confdefs.h.  */
22089 _ACEOF
22090 cat confdefs.h >>conftest.$ac_ext
22091 cat >>conftest.$ac_ext <<_ACEOF
22092 /* end confdefs.h.  */
22093
22094 /* Override any GCC internal prototype to avoid an error.
22095    Use char because int might match the return type of a GCC
22096    builtin and then its argument prototype would still apply.  */
22097 #ifdef __cplusplus
22098 extern "C"
22099 #endif
22100 char event_dispatch ();
22101 int
22102 main ()
22103 {
22104 return event_dispatch ();
22105   ;
22106   return 0;
22107 }
22108 _ACEOF
22109 rm -f conftest.$ac_objext conftest$ac_exeext
22110 if { (ac_try="$ac_link"
22111 case "(($ac_try" in
22112   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22113   *) ac_try_echo=$ac_try;;
22114 esac
22115 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22116   (eval "$ac_link") 2>conftest.er1
22117   ac_status=$?
22118   grep -v '^ *+' conftest.er1 >conftest.err
22119   rm -f conftest.er1
22120   cat conftest.err >&5
22121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22122   (exit $ac_status); } && {
22123          test -z "$ac_c_werror_flag" ||
22124          test ! -s conftest.err
22125        } && test -s conftest$ac_exeext &&
22126        $as_test_x conftest$ac_exeext; then
22127   ac_cv_lib_event_event_dispatch=yes
22128 else
22129   echo "$as_me: failed program was:" >&5
22130 sed 's/^/| /' conftest.$ac_ext >&5
22131
22132         ac_cv_lib_event_event_dispatch=no
22133 fi
22134
22135 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22136       conftest$ac_exeext conftest.$ac_ext
22137 LIBS=$ac_check_lib_save_LIBS
22138 fi
22139 { echo "$as_me:$LINENO: result: $ac_cv_lib_event_event_dispatch" >&5
22140 echo "${ECHO_T}$ac_cv_lib_event_event_dispatch" >&6; }
22141 if test $ac_cv_lib_event_event_dispatch = yes; then
22142   libevent=1
22143 else
22144   { { echo "$as_me:$LINENO: error: libevent needed for nfsv4 support" >&5
22145 echo "$as_me: error: libevent needed for nfsv4 support" >&2;}
22146    { (exit 1); exit 1; }; }
22147 fi
22148
22149     { echo "$as_me:$LINENO: checking for nfs4_init_name_mapping in -lnfsidmap" >&5
22150 echo $ECHO_N "checking for nfs4_init_name_mapping in -lnfsidmap... $ECHO_C" >&6; }
22151 if test "${ac_cv_lib_nfsidmap_nfs4_init_name_mapping+set}" = set; then
22152   echo $ECHO_N "(cached) $ECHO_C" >&6
22153 else
22154   ac_check_lib_save_LIBS=$LIBS
22155 LIBS="-lnfsidmap  $LIBS"
22156 cat >conftest.$ac_ext <<_ACEOF
22157 /* confdefs.h.  */
22158 _ACEOF
22159 cat confdefs.h >>conftest.$ac_ext
22160 cat >>conftest.$ac_ext <<_ACEOF
22161 /* end confdefs.h.  */
22162
22163 /* Override any GCC internal prototype to avoid an error.
22164    Use char because int might match the return type of a GCC
22165    builtin and then its argument prototype would still apply.  */
22166 #ifdef __cplusplus
22167 extern "C"
22168 #endif
22169 char nfs4_init_name_mapping ();
22170 int
22171 main ()
22172 {
22173 return nfs4_init_name_mapping ();
22174   ;
22175   return 0;
22176 }
22177 _ACEOF
22178 rm -f conftest.$ac_objext conftest$ac_exeext
22179 if { (ac_try="$ac_link"
22180 case "(($ac_try" in
22181   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22182   *) ac_try_echo=$ac_try;;
22183 esac
22184 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22185   (eval "$ac_link") 2>conftest.er1
22186   ac_status=$?
22187   grep -v '^ *+' conftest.er1 >conftest.err
22188   rm -f conftest.er1
22189   cat conftest.err >&5
22190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22191   (exit $ac_status); } && {
22192          test -z "$ac_c_werror_flag" ||
22193          test ! -s conftest.err
22194        } && test -s conftest$ac_exeext &&
22195        $as_test_x conftest$ac_exeext; then
22196   ac_cv_lib_nfsidmap_nfs4_init_name_mapping=yes
22197 else
22198   echo "$as_me: failed program was:" >&5
22199 sed 's/^/| /' conftest.$ac_ext >&5
22200
22201         ac_cv_lib_nfsidmap_nfs4_init_name_mapping=no
22202 fi
22203
22204 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22205       conftest$ac_exeext conftest.$ac_ext
22206 LIBS=$ac_check_lib_save_LIBS
22207 fi
22208 { echo "$as_me:$LINENO: result: $ac_cv_lib_nfsidmap_nfs4_init_name_mapping" >&5
22209 echo "${ECHO_T}$ac_cv_lib_nfsidmap_nfs4_init_name_mapping" >&6; }
22210 if test $ac_cv_lib_nfsidmap_nfs4_init_name_mapping = yes; then
22211   libnfsidmap=1
22212 else
22213   { { echo "$as_me:$LINENO: error: libnfsidmap needed for nfsv4 support" >&5
22214 echo "$as_me: error: libnfsidmap needed for nfsv4 support" >&2;}
22215    { (exit 1); exit 1; }; }
22216 fi
22217
22218     
22219 for ac_header in event.h
22220 do
22221 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22222 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
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 fi
22228 ac_res=`eval echo '${'$as_ac_Header'}'`
22229                { echo "$as_me:$LINENO: result: $ac_res" >&5
22230 echo "${ECHO_T}$ac_res" >&6; }
22231 else
22232   # Is the header compilable?
22233 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
22234 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22235 cat >conftest.$ac_ext <<_ACEOF
22236 /* confdefs.h.  */
22237 _ACEOF
22238 cat confdefs.h >>conftest.$ac_ext
22239 cat >>conftest.$ac_ext <<_ACEOF
22240 /* end confdefs.h.  */
22241 $ac_includes_default
22242 @%:@include <$ac_header>
22243 _ACEOF
22244 rm -f conftest.$ac_objext
22245 if { (ac_try="$ac_compile"
22246 case "(($ac_try" in
22247   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22248   *) ac_try_echo=$ac_try;;
22249 esac
22250 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22251   (eval "$ac_compile") 2>conftest.er1
22252   ac_status=$?
22253   grep -v '^ *+' conftest.er1 >conftest.err
22254   rm -f conftest.er1
22255   cat conftest.err >&5
22256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22257   (exit $ac_status); } && {
22258          test -z "$ac_c_werror_flag" ||
22259          test ! -s conftest.err
22260        } && test -s conftest.$ac_objext; then
22261   ac_header_compiler=yes
22262 else
22263   echo "$as_me: failed program was:" >&5
22264 sed 's/^/| /' conftest.$ac_ext >&5
22265
22266         ac_header_compiler=no
22267 fi
22268
22269 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22270 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22271 echo "${ECHO_T}$ac_header_compiler" >&6; }
22272
22273 # Is the header present?
22274 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
22275 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22276 cat >conftest.$ac_ext <<_ACEOF
22277 /* confdefs.h.  */
22278 _ACEOF
22279 cat confdefs.h >>conftest.$ac_ext
22280 cat >>conftest.$ac_ext <<_ACEOF
22281 /* end confdefs.h.  */
22282 @%:@include <$ac_header>
22283 _ACEOF
22284 if { (ac_try="$ac_cpp conftest.$ac_ext"
22285 case "(($ac_try" in
22286   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22287   *) ac_try_echo=$ac_try;;
22288 esac
22289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22290   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22291   ac_status=$?
22292   grep -v '^ *+' conftest.er1 >conftest.err
22293   rm -f conftest.er1
22294   cat conftest.err >&5
22295   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22296   (exit $ac_status); } >/dev/null && {
22297          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22298          test ! -s conftest.err
22299        }; then
22300   ac_header_preproc=yes
22301 else
22302   echo "$as_me: failed program was:" >&5
22303 sed 's/^/| /' conftest.$ac_ext >&5
22304
22305   ac_header_preproc=no
22306 fi
22307
22308 rm -f conftest.err conftest.$ac_ext
22309 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22310 echo "${ECHO_T}$ac_header_preproc" >&6; }
22311
22312 # So?  What about this header?
22313 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22314   yes:no: )
22315     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22316 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22317     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22318 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22319     ac_header_preproc=yes
22320     ;;
22321   no:yes:* )
22322     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22323 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22324     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
22325 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
22326     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22327 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22328     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
22329 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
22330     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22331 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22332     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22333 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22334     ( cat <<\_ASBOX
22335 @%:@@%:@ ------------------------------- @%:@@%:@
22336 @%:@@%:@ Report this to nfs@lists.sf.net @%:@@%:@
22337 @%:@@%:@ ------------------------------- @%:@@%:@
22338 _ASBOX
22339      ) | sed "s/^/$as_me: WARNING:     /" >&2
22340     ;;
22341 esac
22342 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22343 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22344 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22345   echo $ECHO_N "(cached) $ECHO_C" >&6
22346 else
22347   eval "$as_ac_Header=\$ac_header_preproc"
22348 fi
22349 ac_res=`eval echo '${'$as_ac_Header'}'`
22350                { echo "$as_me:$LINENO: result: $ac_res" >&5
22351 echo "${ECHO_T}$ac_res" >&6; }
22352
22353 fi
22354 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22355   cat >>confdefs.h <<_ACEOF
22356 @%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22357 _ACEOF
22358  
22359 else
22360   { { echo "$as_me:$LINENO: error: libevent needed for nfsv4 support" >&5
22361 echo "$as_me: error: libevent needed for nfsv4 support" >&2;}
22362    { (exit 1); exit 1; }; }
22363 fi
22364
22365 done
22366
22367     
22368 for ac_header in nfsidmap.h
22369 do
22370 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22371 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
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 fi
22377 ac_res=`eval echo '${'$as_ac_Header'}'`
22378                { echo "$as_me:$LINENO: result: $ac_res" >&5
22379 echo "${ECHO_T}$ac_res" >&6; }
22380 else
22381   # Is the header compilable?
22382 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
22383 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22384 cat >conftest.$ac_ext <<_ACEOF
22385 /* confdefs.h.  */
22386 _ACEOF
22387 cat confdefs.h >>conftest.$ac_ext
22388 cat >>conftest.$ac_ext <<_ACEOF
22389 /* end confdefs.h.  */
22390 $ac_includes_default
22391 @%:@include <$ac_header>
22392 _ACEOF
22393 rm -f conftest.$ac_objext
22394 if { (ac_try="$ac_compile"
22395 case "(($ac_try" in
22396   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22397   *) ac_try_echo=$ac_try;;
22398 esac
22399 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22400   (eval "$ac_compile") 2>conftest.er1
22401   ac_status=$?
22402   grep -v '^ *+' conftest.er1 >conftest.err
22403   rm -f conftest.er1
22404   cat conftest.err >&5
22405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22406   (exit $ac_status); } && {
22407          test -z "$ac_c_werror_flag" ||
22408          test ! -s conftest.err
22409        } && test -s conftest.$ac_objext; then
22410   ac_header_compiler=yes
22411 else
22412   echo "$as_me: failed program was:" >&5
22413 sed 's/^/| /' conftest.$ac_ext >&5
22414
22415         ac_header_compiler=no
22416 fi
22417
22418 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22419 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22420 echo "${ECHO_T}$ac_header_compiler" >&6; }
22421
22422 # Is the header present?
22423 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
22424 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22425 cat >conftest.$ac_ext <<_ACEOF
22426 /* confdefs.h.  */
22427 _ACEOF
22428 cat confdefs.h >>conftest.$ac_ext
22429 cat >>conftest.$ac_ext <<_ACEOF
22430 /* end confdefs.h.  */
22431 @%:@include <$ac_header>
22432 _ACEOF
22433 if { (ac_try="$ac_cpp conftest.$ac_ext"
22434 case "(($ac_try" in
22435   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22436   *) ac_try_echo=$ac_try;;
22437 esac
22438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22439   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22440   ac_status=$?
22441   grep -v '^ *+' conftest.er1 >conftest.err
22442   rm -f conftest.er1
22443   cat conftest.err >&5
22444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22445   (exit $ac_status); } >/dev/null && {
22446          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22447          test ! -s conftest.err
22448        }; then
22449   ac_header_preproc=yes
22450 else
22451   echo "$as_me: failed program was:" >&5
22452 sed 's/^/| /' conftest.$ac_ext >&5
22453
22454   ac_header_preproc=no
22455 fi
22456
22457 rm -f conftest.err conftest.$ac_ext
22458 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22459 echo "${ECHO_T}$ac_header_preproc" >&6; }
22460
22461 # So?  What about this header?
22462 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22463   yes:no: )
22464     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22465 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22466     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22467 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22468     ac_header_preproc=yes
22469     ;;
22470   no:yes:* )
22471     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22472 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22473     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
22474 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
22475     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22476 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22477     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
22478 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
22479     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22480 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22481     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22482 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22483     ( cat <<\_ASBOX
22484 @%:@@%:@ ------------------------------- @%:@@%:@
22485 @%:@@%:@ Report this to nfs@lists.sf.net @%:@@%:@
22486 @%:@@%:@ ------------------------------- @%:@@%:@
22487 _ASBOX
22488      ) | sed "s/^/$as_me: WARNING:     /" >&2
22489     ;;
22490 esac
22491 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22492 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22493 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22494   echo $ECHO_N "(cached) $ECHO_C" >&6
22495 else
22496   eval "$as_ac_Header=\$ac_header_preproc"
22497 fi
22498 ac_res=`eval echo '${'$as_ac_Header'}'`
22499                { echo "$as_me:$LINENO: result: $ac_res" >&5
22500 echo "${ECHO_T}$ac_res" >&6; }
22501
22502 fi
22503 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22504   cat >>confdefs.h <<_ACEOF
22505 @%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22506 _ACEOF
22507  
22508 else
22509   { { echo "$as_me:$LINENO: error: libnfsidmap needed for nfsv4 support" >&5
22510 echo "$as_me: error: libnfsidmap needed for nfsv4 support" >&2;}
22511    { (exit 1); exit 1; }; }
22512 fi
22513
22514 done
22515
22516             if test "$enable_gss" = yes; then
22517      
22518
22519 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
22520         if test -n "$ac_tool_prefix"; then
22521   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
22522 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
22523 { echo "$as_me:$LINENO: checking for $ac_word" >&5
22524 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
22525 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
22526   echo $ECHO_N "(cached) $ECHO_C" >&6
22527 else
22528   case $PKG_CONFIG in
22529   [\\/]* | ?:[\\/]*)
22530   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
22531   ;;
22532   *)
22533   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22534 for as_dir in $PATH
22535 do
22536   IFS=$as_save_IFS
22537   test -z "$as_dir" && as_dir=.
22538   for ac_exec_ext in '' $ac_executable_extensions; do
22539   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22540     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22541     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22542     break 2
22543   fi
22544 done
22545 done
22546 IFS=$as_save_IFS
22547
22548   ;;
22549 esac
22550 fi
22551 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
22552 if test -n "$PKG_CONFIG"; then
22553   { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
22554 echo "${ECHO_T}$PKG_CONFIG" >&6; }
22555 else
22556   { echo "$as_me:$LINENO: result: no" >&5
22557 echo "${ECHO_T}no" >&6; }
22558 fi
22559
22560
22561 fi
22562 if test -z "$ac_cv_path_PKG_CONFIG"; then
22563   ac_pt_PKG_CONFIG=$PKG_CONFIG
22564   # Extract the first word of "pkg-config", so it can be a program name with args.
22565 set dummy pkg-config; ac_word=$2
22566 { echo "$as_me:$LINENO: checking for $ac_word" >&5
22567 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
22568 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
22569   echo $ECHO_N "(cached) $ECHO_C" >&6
22570 else
22571   case $ac_pt_PKG_CONFIG in
22572   [\\/]* | ?:[\\/]*)
22573   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
22574   ;;
22575   *)
22576   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22577 for as_dir in $PATH
22578 do
22579   IFS=$as_save_IFS
22580   test -z "$as_dir" && as_dir=.
22581   for ac_exec_ext in '' $ac_executable_extensions; do
22582   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22583     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22584     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22585     break 2
22586   fi
22587 done
22588 done
22589 IFS=$as_save_IFS
22590
22591   ;;
22592 esac
22593 fi
22594 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
22595 if test -n "$ac_pt_PKG_CONFIG"; then
22596   { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
22597 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
22598 else
22599   { echo "$as_me:$LINENO: result: no" >&5
22600 echo "${ECHO_T}no" >&6; }
22601 fi
22602
22603   if test "x$ac_pt_PKG_CONFIG" = x; then
22604     PKG_CONFIG=""
22605   else
22606     case $cross_compiling:$ac_tool_warned in
22607 yes:)
22608 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
22609 whose name does not start with the host triplet.  If you think this
22610 configuration is useful to you, please write to autoconf@gnu.org." >&5
22611 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
22612 whose name does not start with the host triplet.  If you think this
22613 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
22614 ac_tool_warned=yes ;;
22615 esac
22616     PKG_CONFIG=$ac_pt_PKG_CONFIG
22617   fi
22618 else
22619   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
22620 fi
22621
22622 fi
22623 if test -n "$PKG_CONFIG"; then
22624         _pkg_min_version=0.9.0
22625         { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
22626 echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
22627         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
22628                 { echo "$as_me:$LINENO: result: yes" >&5
22629 echo "${ECHO_T}yes" >&6; }
22630         else
22631                 { echo "$as_me:$LINENO: result: no" >&5
22632 echo "${ECHO_T}no" >&6; }
22633                 PKG_CONFIG=""
22634         fi
22635                 
22636 fi
22637
22638 pkg_failed=no
22639 { echo "$as_me:$LINENO: checking for RPCSECGSS" >&5
22640 echo $ECHO_N "checking for RPCSECGSS... $ECHO_C" >&6; }
22641
22642 if test -n "$PKG_CONFIG"; then
22643     if test -n "$RPCSECGSS_CFLAGS"; then
22644         pkg_cv_RPCSECGSS_CFLAGS="$RPCSECGSS_CFLAGS"
22645     else
22646         if test -n "$PKG_CONFIG" && \
22647     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"librpcsecgss >= 0.16\"") >&5
22648   ($PKG_CONFIG --exists --print-errors "librpcsecgss >= 0.16") 2>&5
22649   ac_status=$?
22650   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22651   (exit $ac_status); }; then
22652   pkg_cv_RPCSECGSS_CFLAGS=`$PKG_CONFIG --cflags "librpcsecgss >= 0.16" 2>/dev/null`
22653 else
22654   pkg_failed=yes
22655 fi
22656     fi
22657 else
22658         pkg_failed=untried
22659 fi
22660 if test -n "$PKG_CONFIG"; then
22661     if test -n "$RPCSECGSS_LIBS"; then
22662         pkg_cv_RPCSECGSS_LIBS="$RPCSECGSS_LIBS"
22663     else
22664         if test -n "$PKG_CONFIG" && \
22665     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"librpcsecgss >= 0.16\"") >&5
22666   ($PKG_CONFIG --exists --print-errors "librpcsecgss >= 0.16") 2>&5
22667   ac_status=$?
22668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22669   (exit $ac_status); }; then
22670   pkg_cv_RPCSECGSS_LIBS=`$PKG_CONFIG --libs "librpcsecgss >= 0.16" 2>/dev/null`
22671 else
22672   pkg_failed=yes
22673 fi
22674     fi
22675 else
22676         pkg_failed=untried
22677 fi
22678
22679
22680
22681 if test $pkg_failed = yes; then
22682         
22683 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
22684         _pkg_short_errors_supported=yes
22685 else
22686         _pkg_short_errors_supported=no
22687 fi
22688         if test $_pkg_short_errors_supported = yes; then
22689                 RPCSECGSS_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "librpcsecgss >= 0.16"`
22690         else 
22691                 RPCSECGSS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "librpcsecgss >= 0.16"`
22692         fi
22693         # Put the nasty error message in config.log where it belongs
22694         echo "$RPCSECGSS_PKG_ERRORS" >&5
22695
22696         { echo "$as_me:$LINENO: result: no" >&5
22697 echo "${ECHO_T}no" >&6; }
22698                 { { 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
22699 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;}
22700    { (exit 1); exit 1; }; }
22701       
22702      
22703 elif test $pkg_failed = untried; then
22704         { { 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
22705 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;}
22706    { (exit 1); exit 1; }; }
22707       
22708      
22709 else
22710         RPCSECGSS_CFLAGS=$pkg_cv_RPCSECGSS_CFLAGS
22711         RPCSECGSS_LIBS=$pkg_cv_RPCSECGSS_LIBS
22712         { echo "$as_me:$LINENO: result: yes" >&5
22713 echo "${ECHO_T}yes" >&6; }
22714         :
22715 fi
22716     
22717 pkg_failed=no
22718 { echo "$as_me:$LINENO: checking for GSSGLUE" >&5
22719 echo $ECHO_N "checking for GSSGLUE... $ECHO_C" >&6; }
22720
22721 if test -n "$PKG_CONFIG"; then
22722     if test -n "$GSSGLUE_CFLAGS"; then
22723         pkg_cv_GSSGLUE_CFLAGS="$GSSGLUE_CFLAGS"
22724     else
22725         if test -n "$PKG_CONFIG" && \
22726     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libgssglue >= 0.1\"") >&5
22727   ($PKG_CONFIG --exists --print-errors "libgssglue >= 0.1") 2>&5
22728   ac_status=$?
22729   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22730   (exit $ac_status); }; then
22731   pkg_cv_GSSGLUE_CFLAGS=`$PKG_CONFIG --cflags "libgssglue >= 0.1" 2>/dev/null`
22732 else
22733   pkg_failed=yes
22734 fi
22735     fi
22736 else
22737         pkg_failed=untried
22738 fi
22739 if test -n "$PKG_CONFIG"; then
22740     if test -n "$GSSGLUE_LIBS"; then
22741         pkg_cv_GSSGLUE_LIBS="$GSSGLUE_LIBS"
22742     else
22743         if test -n "$PKG_CONFIG" && \
22744     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libgssglue >= 0.1\"") >&5
22745   ($PKG_CONFIG --exists --print-errors "libgssglue >= 0.1") 2>&5
22746   ac_status=$?
22747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22748   (exit $ac_status); }; then
22749   pkg_cv_GSSGLUE_LIBS=`$PKG_CONFIG --libs "libgssglue >= 0.1" 2>/dev/null`
22750 else
22751   pkg_failed=yes
22752 fi
22753     fi
22754 else
22755         pkg_failed=untried
22756 fi
22757
22758
22759
22760 if test $pkg_failed = yes; then
22761         
22762 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
22763         _pkg_short_errors_supported=yes
22764 else
22765         _pkg_short_errors_supported=no
22766 fi
22767         if test $_pkg_short_errors_supported = yes; then
22768                 GSSGLUE_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libgssglue >= 0.1"`
22769         else 
22770                 GSSGLUE_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libgssglue >= 0.1"`
22771         fi
22772         # Put the nasty error message in config.log where it belongs
22773         echo "$GSSGLUE_PKG_ERRORS" >&5
22774
22775         { { echo "$as_me:$LINENO: error: Package requirements (libgssglue >= 0.1) were not met:
22776
22777 $GSSGLUE_PKG_ERRORS
22778
22779 Consider adjusting the PKG_CONFIG_PATH environment variable if you
22780 installed software in a non-standard prefix.
22781
22782 Alternatively, you may set the environment variables GSSGLUE_CFLAGS
22783 and GSSGLUE_LIBS to avoid the need to call pkg-config.
22784 See the pkg-config man page for more details.
22785 " >&5
22786 echo "$as_me: error: Package requirements (libgssglue >= 0.1) were not met:
22787
22788 $GSSGLUE_PKG_ERRORS
22789
22790 Consider adjusting the PKG_CONFIG_PATH environment variable if you
22791 installed software in a non-standard prefix.
22792
22793 Alternatively, you may set the environment variables GSSGLUE_CFLAGS
22794 and GSSGLUE_LIBS to avoid the need to call pkg-config.
22795 See the pkg-config man page for more details.
22796 " >&2;}
22797    { (exit 1); exit 1; }; }
22798 elif test $pkg_failed = untried; then
22799         { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
22800 is in your PATH or set the PKG_CONFIG environment variable to the full
22801 path to pkg-config.
22802
22803 Alternatively, you may set the environment variables GSSGLUE_CFLAGS
22804 and GSSGLUE_LIBS to avoid the need to call pkg-config.
22805 See the pkg-config man page for more details.
22806
22807 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
22808 See \`config.log' for more details." >&5
22809 echo "$as_me: error: The pkg-config script could not be found or is too old.  Make sure it
22810 is in your PATH or set the PKG_CONFIG environment variable to the full
22811 path to pkg-config.
22812
22813 Alternatively, you may set the environment variables GSSGLUE_CFLAGS
22814 and GSSGLUE_LIBS to avoid the need to call pkg-config.
22815 See the pkg-config man page for more details.
22816
22817 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
22818 See \`config.log' for more details." >&2;}
22819    { (exit 1); exit 1; }; }
22820 else
22821         GSSGLUE_CFLAGS=$pkg_cv_GSSGLUE_CFLAGS
22822         GSSGLUE_LIBS=$pkg_cv_GSSGLUE_LIBS
22823         { echo "$as_me:$LINENO: result: yes" >&5
22824 echo "${ECHO_T}yes" >&6; }
22825         :
22826 fi
22827     fi
22828
22829 fi
22830 if test "$knfsd_cv_glibc2" = no; then
22831     { echo "$as_me:$LINENO: checking for daemon in -lbsd" >&5
22832 echo $ECHO_N "checking for daemon in -lbsd... $ECHO_C" >&6; }
22833 if test "${ac_cv_lib_bsd_daemon+set}" = set; then
22834   echo $ECHO_N "(cached) $ECHO_C" >&6
22835 else
22836   ac_check_lib_save_LIBS=$LIBS
22837 LIBS="-lbsd  $LIBS"
22838 cat >conftest.$ac_ext <<_ACEOF
22839 /* confdefs.h.  */
22840 _ACEOF
22841 cat confdefs.h >>conftest.$ac_ext
22842 cat >>conftest.$ac_ext <<_ACEOF
22843 /* end confdefs.h.  */
22844
22845 /* Override any GCC internal prototype to avoid an error.
22846    Use char because int might match the return type of a GCC
22847    builtin and then its argument prototype would still apply.  */
22848 #ifdef __cplusplus
22849 extern "C"
22850 #endif
22851 char daemon ();
22852 int
22853 main ()
22854 {
22855 return daemon ();
22856   ;
22857   return 0;
22858 }
22859 _ACEOF
22860 rm -f conftest.$ac_objext conftest$ac_exeext
22861 if { (ac_try="$ac_link"
22862 case "(($ac_try" in
22863   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22864   *) ac_try_echo=$ac_try;;
22865 esac
22866 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22867   (eval "$ac_link") 2>conftest.er1
22868   ac_status=$?
22869   grep -v '^ *+' conftest.er1 >conftest.err
22870   rm -f conftest.er1
22871   cat conftest.err >&5
22872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22873   (exit $ac_status); } && {
22874          test -z "$ac_c_werror_flag" ||
22875          test ! -s conftest.err
22876        } && test -s conftest$ac_exeext &&
22877        $as_test_x conftest$ac_exeext; then
22878   ac_cv_lib_bsd_daemon=yes
22879 else
22880   echo "$as_me: failed program was:" >&5
22881 sed 's/^/| /' conftest.$ac_ext >&5
22882
22883         ac_cv_lib_bsd_daemon=no
22884 fi
22885
22886 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22887       conftest$ac_exeext conftest.$ac_ext
22888 LIBS=$ac_check_lib_save_LIBS
22889 fi
22890 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_daemon" >&5
22891 echo "${ECHO_T}$ac_cv_lib_bsd_daemon" >&6; }
22892 if test $ac_cv_lib_bsd_daemon = yes; then
22893   LIBBSD="-lbsd"
22894 fi
22895
22896 fi
22897
22898 if test "$choose_blkid" != no; then 
22899    { echo "$as_me:$LINENO: checking for blkid_get_library_version in -lblkid" >&5
22900 echo $ECHO_N "checking for blkid_get_library_version in -lblkid... $ECHO_C" >&6; }
22901 if test "${ac_cv_lib_blkid_blkid_get_library_version+set}" = set; then
22902   echo $ECHO_N "(cached) $ECHO_C" >&6
22903 else
22904   ac_check_lib_save_LIBS=$LIBS
22905 LIBS="-lblkid  $LIBS"
22906 cat >conftest.$ac_ext <<_ACEOF
22907 /* confdefs.h.  */
22908 _ACEOF
22909 cat confdefs.h >>conftest.$ac_ext
22910 cat >>conftest.$ac_ext <<_ACEOF
22911 /* end confdefs.h.  */
22912
22913 /* Override any GCC internal prototype to avoid an error.
22914    Use char because int might match the return type of a GCC
22915    builtin and then its argument prototype would still apply.  */
22916 #ifdef __cplusplus
22917 extern "C"
22918 #endif
22919 char blkid_get_library_version ();
22920 int
22921 main ()
22922 {
22923 return blkid_get_library_version ();
22924   ;
22925   return 0;
22926 }
22927 _ACEOF
22928 rm -f conftest.$ac_objext conftest$ac_exeext
22929 if { (ac_try="$ac_link"
22930 case "(($ac_try" in
22931   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22932   *) ac_try_echo=$ac_try;;
22933 esac
22934 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22935   (eval "$ac_link") 2>conftest.er1
22936   ac_status=$?
22937   grep -v '^ *+' conftest.er1 >conftest.err
22938   rm -f conftest.er1
22939   cat conftest.err >&5
22940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22941   (exit $ac_status); } && {
22942          test -z "$ac_c_werror_flag" ||
22943          test ! -s conftest.err
22944        } && test -s conftest$ac_exeext &&
22945        $as_test_x conftest$ac_exeext; then
22946   ac_cv_lib_blkid_blkid_get_library_version=yes
22947 else
22948   echo "$as_me: failed program was:" >&5
22949 sed 's/^/| /' conftest.$ac_ext >&5
22950
22951         ac_cv_lib_blkid_blkid_get_library_version=no
22952 fi
22953
22954 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22955       conftest$ac_exeext conftest.$ac_ext
22956 LIBS=$ac_check_lib_save_LIBS
22957 fi
22958 { echo "$as_me:$LINENO: result: $ac_cv_lib_blkid_blkid_get_library_version" >&5
22959 echo "${ECHO_T}$ac_cv_lib_blkid_blkid_get_library_version" >&6; }
22960 if test $ac_cv_lib_blkid_blkid_get_library_version = yes; then
22961   LIBBLKID="-lblkid"
22962 else
22963   { { echo "$as_me:$LINENO: error: libblkid needed" >&5
22964 echo "$as_me: error: libblkid needed" >&2;}
22965    { (exit 1); exit 1; }; }
22966 fi
22967
22968    if test "${ac_cv_header_blkid_blkid_h+set}" = set; then
22969   { echo "$as_me:$LINENO: checking for blkid/blkid.h" >&5
22970 echo $ECHO_N "checking for blkid/blkid.h... $ECHO_C" >&6; }
22971 if test "${ac_cv_header_blkid_blkid_h+set}" = set; then
22972   echo $ECHO_N "(cached) $ECHO_C" >&6
22973 fi
22974 { echo "$as_me:$LINENO: result: $ac_cv_header_blkid_blkid_h" >&5
22975 echo "${ECHO_T}$ac_cv_header_blkid_blkid_h" >&6; }
22976 else
22977   # Is the header compilable?
22978 { echo "$as_me:$LINENO: checking blkid/blkid.h usability" >&5
22979 echo $ECHO_N "checking blkid/blkid.h usability... $ECHO_C" >&6; }
22980 cat >conftest.$ac_ext <<_ACEOF
22981 /* confdefs.h.  */
22982 _ACEOF
22983 cat confdefs.h >>conftest.$ac_ext
22984 cat >>conftest.$ac_ext <<_ACEOF
22985 /* end confdefs.h.  */
22986 $ac_includes_default
22987 @%:@include <blkid/blkid.h>
22988 _ACEOF
22989 rm -f conftest.$ac_objext
22990 if { (ac_try="$ac_compile"
22991 case "(($ac_try" in
22992   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22993   *) ac_try_echo=$ac_try;;
22994 esac
22995 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22996   (eval "$ac_compile") 2>conftest.er1
22997   ac_status=$?
22998   grep -v '^ *+' conftest.er1 >conftest.err
22999   rm -f conftest.er1
23000   cat conftest.err >&5
23001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23002   (exit $ac_status); } && {
23003          test -z "$ac_c_werror_flag" ||
23004          test ! -s conftest.err
23005        } && test -s conftest.$ac_objext; then
23006   ac_header_compiler=yes
23007 else
23008   echo "$as_me: failed program was:" >&5
23009 sed 's/^/| /' conftest.$ac_ext >&5
23010
23011         ac_header_compiler=no
23012 fi
23013
23014 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23015 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23016 echo "${ECHO_T}$ac_header_compiler" >&6; }
23017
23018 # Is the header present?
23019 { echo "$as_me:$LINENO: checking blkid/blkid.h presence" >&5
23020 echo $ECHO_N "checking blkid/blkid.h presence... $ECHO_C" >&6; }
23021 cat >conftest.$ac_ext <<_ACEOF
23022 /* confdefs.h.  */
23023 _ACEOF
23024 cat confdefs.h >>conftest.$ac_ext
23025 cat >>conftest.$ac_ext <<_ACEOF
23026 /* end confdefs.h.  */
23027 @%:@include <blkid/blkid.h>
23028 _ACEOF
23029 if { (ac_try="$ac_cpp conftest.$ac_ext"
23030 case "(($ac_try" in
23031   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23032   *) ac_try_echo=$ac_try;;
23033 esac
23034 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23035   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23036   ac_status=$?
23037   grep -v '^ *+' conftest.er1 >conftest.err
23038   rm -f conftest.er1
23039   cat conftest.err >&5
23040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23041   (exit $ac_status); } >/dev/null && {
23042          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23043          test ! -s conftest.err
23044        }; then
23045   ac_header_preproc=yes
23046 else
23047   echo "$as_me: failed program was:" >&5
23048 sed 's/^/| /' conftest.$ac_ext >&5
23049
23050   ac_header_preproc=no
23051 fi
23052
23053 rm -f conftest.err conftest.$ac_ext
23054 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23055 echo "${ECHO_T}$ac_header_preproc" >&6; }
23056
23057 # So?  What about this header?
23058 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23059   yes:no: )
23060     { echo "$as_me:$LINENO: WARNING: blkid/blkid.h: accepted by the compiler, rejected by the preprocessor!" >&5
23061 echo "$as_me: WARNING: blkid/blkid.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
23062     { echo "$as_me:$LINENO: WARNING: blkid/blkid.h: proceeding with the compiler's result" >&5
23063 echo "$as_me: WARNING: blkid/blkid.h: proceeding with the compiler's result" >&2;}
23064     ac_header_preproc=yes
23065     ;;
23066   no:yes:* )
23067     { echo "$as_me:$LINENO: WARNING: blkid/blkid.h: present but cannot be compiled" >&5
23068 echo "$as_me: WARNING: blkid/blkid.h: present but cannot be compiled" >&2;}
23069     { echo "$as_me:$LINENO: WARNING: blkid/blkid.h:     check for missing prerequisite headers?" >&5
23070 echo "$as_me: WARNING: blkid/blkid.h:     check for missing prerequisite headers?" >&2;}
23071     { echo "$as_me:$LINENO: WARNING: blkid/blkid.h: see the Autoconf documentation" >&5
23072 echo "$as_me: WARNING: blkid/blkid.h: see the Autoconf documentation" >&2;}
23073     { echo "$as_me:$LINENO: WARNING: blkid/blkid.h:     section \"Present But Cannot Be Compiled\"" >&5
23074 echo "$as_me: WARNING: blkid/blkid.h:     section \"Present But Cannot Be Compiled\"" >&2;}
23075     { echo "$as_me:$LINENO: WARNING: blkid/blkid.h: proceeding with the preprocessor's result" >&5
23076 echo "$as_me: WARNING: blkid/blkid.h: proceeding with the preprocessor's result" >&2;}
23077     { echo "$as_me:$LINENO: WARNING: blkid/blkid.h: in the future, the compiler will take precedence" >&5
23078 echo "$as_me: WARNING: blkid/blkid.h: in the future, the compiler will take precedence" >&2;}
23079     ( cat <<\_ASBOX
23080 @%:@@%:@ ------------------------------- @%:@@%:@
23081 @%:@@%:@ Report this to nfs@lists.sf.net @%:@@%:@
23082 @%:@@%:@ ------------------------------- @%:@@%:@
23083 _ASBOX
23084      ) | sed "s/^/$as_me: WARNING:     /" >&2
23085     ;;
23086 esac
23087 { echo "$as_me:$LINENO: checking for blkid/blkid.h" >&5
23088 echo $ECHO_N "checking for blkid/blkid.h... $ECHO_C" >&6; }
23089 if test "${ac_cv_header_blkid_blkid_h+set}" = set; then
23090   echo $ECHO_N "(cached) $ECHO_C" >&6
23091 else
23092   ac_cv_header_blkid_blkid_h=$ac_header_preproc
23093 fi
23094 { echo "$as_me:$LINENO: result: $ac_cv_header_blkid_blkid_h" >&5
23095 echo "${ECHO_T}$ac_cv_header_blkid_blkid_h" >&6; }
23096
23097 fi
23098 if test $ac_cv_header_blkid_blkid_h = yes; then
23099   :
23100 else
23101   { { echo "$as_me:$LINENO: error: Cannot find libblkid header file blkid/blkid.h" >&5
23102 echo "$as_me: error: Cannot find libblkid header file blkid/blkid.h" >&2;}
23103    { (exit 1); exit 1; }; }
23104 fi
23105
23106
23107    
23108   { echo "$as_me:$LINENO: checking for suitable libblkid version" >&5
23109 echo $ECHO_N "checking for suitable libblkid version... $ECHO_C" >&6; }
23110   if test "${libblkid_is_recent+set}" = set; then
23111   echo $ECHO_N "(cached) $ECHO_C" >&6
23112 else
23113   
23114     saved_LIBS="$LIBS"
23115     LIBS=-lblkid
23116     if test "$cross_compiling" = yes; then
23117   libblkid_is_recent=unknown
23118 else
23119   cat >conftest.$ac_ext <<_ACEOF
23120 /* confdefs.h.  */
23121 _ACEOF
23122 cat confdefs.h >>conftest.$ac_ext
23123 cat >>conftest.$ac_ext <<_ACEOF
23124 /* end confdefs.h.  */
23125
23126         #include <blkid/blkid.h>
23127         int main()
23128         {
23129                 int vers = blkid_get_library_version(0, 0);
23130                 return vers >= 140 ? 0 : 1;
23131         }
23132        
23133 _ACEOF
23134 rm -f conftest$ac_exeext
23135 if { (ac_try="$ac_link"
23136 case "(($ac_try" in
23137   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23138   *) ac_try_echo=$ac_try;;
23139 esac
23140 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23141   (eval "$ac_link") 2>&5
23142   ac_status=$?
23143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23144   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23145   { (case "(($ac_try" in
23146   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23147   *) ac_try_echo=$ac_try;;
23148 esac
23149 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23150   (eval "$ac_try") 2>&5
23151   ac_status=$?
23152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23153   (exit $ac_status); }; }; then
23154   libblkid_is_recent=yes
23155 else
23156   echo "$as_me: program exited with status $ac_status" >&5
23157 echo "$as_me: failed program was:" >&5
23158 sed 's/^/| /' conftest.$ac_ext >&5
23159
23160 ( exit $ac_status )
23161 libblkid_is_recent=no
23162 fi
23163 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23164 fi
23165
23166
23167     LIBS="$saved_LIBS"
23168     
23169 fi
23170   { echo "$as_me:$LINENO: result: $libblkid_is_recent" >&5
23171 echo "${ECHO_T}$libblkid_is_recent" >&6; }
23172
23173    if test $choose_blkid = yes; then
23174       use_blkid=1
23175       test $libblkid_is_recent = no && { echo "$as_me:$LINENO: WARNING: libblkid is old and may cause mountd to leak memory" >&5
23176 echo "$as_me: WARNING: libblkid is old and may cause mountd to leak memory" >&2;}
23177    else
23178       if test $libblkid_is_recent = yes
23179       then use_blkid=1
23180       else use_blkid=0
23181            { echo "$as_me:$LINENO: WARNING: uuid support disabled as libblkid is too old" >&5
23182 echo "$as_me: WARNING: uuid support disabled as libblkid is too old" >&2;}
23183       fi
23184     fi
23185     
23186 cat >>confdefs.h <<_ACEOF
23187 @%:@define USE_BLKID $use_blkid
23188 _ACEOF
23189
23190 fi
23191
23192
23193
23194
23195
23196 if test "$enable_gss" = yes; then
23197     
23198 for ac_header in nfsidmap.h
23199 do
23200 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23201 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23202   { echo "$as_me:$LINENO: checking for $ac_header" >&5
23203 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23204 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23205   echo $ECHO_N "(cached) $ECHO_C" >&6
23206 fi
23207 ac_res=`eval echo '${'$as_ac_Header'}'`
23208                { echo "$as_me:$LINENO: result: $ac_res" >&5
23209 echo "${ECHO_T}$ac_res" >&6; }
23210 else
23211   # Is the header compilable?
23212 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
23213 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
23214 cat >conftest.$ac_ext <<_ACEOF
23215 /* confdefs.h.  */
23216 _ACEOF
23217 cat confdefs.h >>conftest.$ac_ext
23218 cat >>conftest.$ac_ext <<_ACEOF
23219 /* end confdefs.h.  */
23220 $ac_includes_default
23221 @%:@include <$ac_header>
23222 _ACEOF
23223 rm -f conftest.$ac_objext
23224 if { (ac_try="$ac_compile"
23225 case "(($ac_try" in
23226   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23227   *) ac_try_echo=$ac_try;;
23228 esac
23229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23230   (eval "$ac_compile") 2>conftest.er1
23231   ac_status=$?
23232   grep -v '^ *+' conftest.er1 >conftest.err
23233   rm -f conftest.er1
23234   cat conftest.err >&5
23235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23236   (exit $ac_status); } && {
23237          test -z "$ac_c_werror_flag" ||
23238          test ! -s conftest.err
23239        } && test -s conftest.$ac_objext; then
23240   ac_header_compiler=yes
23241 else
23242   echo "$as_me: failed program was:" >&5
23243 sed 's/^/| /' conftest.$ac_ext >&5
23244
23245         ac_header_compiler=no
23246 fi
23247
23248 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23249 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23250 echo "${ECHO_T}$ac_header_compiler" >&6; }
23251
23252 # Is the header present?
23253 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
23254 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
23255 cat >conftest.$ac_ext <<_ACEOF
23256 /* confdefs.h.  */
23257 _ACEOF
23258 cat confdefs.h >>conftest.$ac_ext
23259 cat >>conftest.$ac_ext <<_ACEOF
23260 /* end confdefs.h.  */
23261 @%:@include <$ac_header>
23262 _ACEOF
23263 if { (ac_try="$ac_cpp conftest.$ac_ext"
23264 case "(($ac_try" in
23265   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23266   *) ac_try_echo=$ac_try;;
23267 esac
23268 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23269   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23270   ac_status=$?
23271   grep -v '^ *+' conftest.er1 >conftest.err
23272   rm -f conftest.er1
23273   cat conftest.err >&5
23274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23275   (exit $ac_status); } >/dev/null && {
23276          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23277          test ! -s conftest.err
23278        }; then
23279   ac_header_preproc=yes
23280 else
23281   echo "$as_me: failed program was:" >&5
23282 sed 's/^/| /' conftest.$ac_ext >&5
23283
23284   ac_header_preproc=no
23285 fi
23286
23287 rm -f conftest.err conftest.$ac_ext
23288 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23289 echo "${ECHO_T}$ac_header_preproc" >&6; }
23290
23291 # So?  What about this header?
23292 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23293   yes:no: )
23294     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23295 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23296     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23297 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23298     ac_header_preproc=yes
23299     ;;
23300   no:yes:* )
23301     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23302 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23303     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
23304 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
23305     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23306 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23307     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
23308 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
23309     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23310 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23311     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23312 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23313     ( cat <<\_ASBOX
23314 @%:@@%:@ ------------------------------- @%:@@%:@
23315 @%:@@%:@ Report this to nfs@lists.sf.net @%:@@%:@
23316 @%:@@%:@ ------------------------------- @%:@@%:@
23317 _ASBOX
23318      ) | sed "s/^/$as_me: WARNING:     /" >&2
23319     ;;
23320 esac
23321 { echo "$as_me:$LINENO: checking for $ac_header" >&5
23322 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23323 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23324   echo $ECHO_N "(cached) $ECHO_C" >&6
23325 else
23326   eval "$as_ac_Header=\$ac_header_preproc"
23327 fi
23328 ac_res=`eval echo '${'$as_ac_Header'}'`
23329                { echo "$as_me:$LINENO: result: $ac_res" >&5
23330 echo "${ECHO_T}$ac_res" >&6; }
23331
23332 fi
23333 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23334   cat >>confdefs.h <<_ACEOF
23335 @%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23336 _ACEOF
23337  
23338 else
23339   { { echo "$as_me:$LINENO: error: libnfsidmap needed for gss support" >&5
23340 echo "$as_me: error: libnfsidmap needed for gss support" >&2;}
23341    { (exit 1); exit 1; }; }
23342 fi
23343
23344 done
23345
23346   
23347 for ac_header in spkm3.h
23348 do
23349 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23350 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23351   { echo "$as_me:$LINENO: checking for $ac_header" >&5
23352 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23353 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23354   echo $ECHO_N "(cached) $ECHO_C" >&6
23355 fi
23356 ac_res=`eval echo '${'$as_ac_Header'}'`
23357                { echo "$as_me:$LINENO: result: $ac_res" >&5
23358 echo "${ECHO_T}$ac_res" >&6; }
23359 else
23360   # Is the header compilable?
23361 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
23362 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
23363 cat >conftest.$ac_ext <<_ACEOF
23364 /* confdefs.h.  */
23365 _ACEOF
23366 cat confdefs.h >>conftest.$ac_ext
23367 cat >>conftest.$ac_ext <<_ACEOF
23368 /* end confdefs.h.  */
23369 $ac_includes_default
23370 @%:@include <$ac_header>
23371 _ACEOF
23372 rm -f conftest.$ac_objext
23373 if { (ac_try="$ac_compile"
23374 case "(($ac_try" in
23375   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23376   *) ac_try_echo=$ac_try;;
23377 esac
23378 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23379   (eval "$ac_compile") 2>conftest.er1
23380   ac_status=$?
23381   grep -v '^ *+' conftest.er1 >conftest.err
23382   rm -f conftest.er1
23383   cat conftest.err >&5
23384   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23385   (exit $ac_status); } && {
23386          test -z "$ac_c_werror_flag" ||
23387          test ! -s conftest.err
23388        } && test -s conftest.$ac_objext; then
23389   ac_header_compiler=yes
23390 else
23391   echo "$as_me: failed program was:" >&5
23392 sed 's/^/| /' conftest.$ac_ext >&5
23393
23394         ac_header_compiler=no
23395 fi
23396
23397 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23398 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23399 echo "${ECHO_T}$ac_header_compiler" >&6; }
23400
23401 # Is the header present?
23402 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
23403 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
23404 cat >conftest.$ac_ext <<_ACEOF
23405 /* confdefs.h.  */
23406 _ACEOF
23407 cat confdefs.h >>conftest.$ac_ext
23408 cat >>conftest.$ac_ext <<_ACEOF
23409 /* end confdefs.h.  */
23410 @%:@include <$ac_header>
23411 _ACEOF
23412 if { (ac_try="$ac_cpp conftest.$ac_ext"
23413 case "(($ac_try" in
23414   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23415   *) ac_try_echo=$ac_try;;
23416 esac
23417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23418   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23419   ac_status=$?
23420   grep -v '^ *+' conftest.er1 >conftest.err
23421   rm -f conftest.er1
23422   cat conftest.err >&5
23423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23424   (exit $ac_status); } >/dev/null && {
23425          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23426          test ! -s conftest.err
23427        }; then
23428   ac_header_preproc=yes
23429 else
23430   echo "$as_me: failed program was:" >&5
23431 sed 's/^/| /' conftest.$ac_ext >&5
23432
23433   ac_header_preproc=no
23434 fi
23435
23436 rm -f conftest.err conftest.$ac_ext
23437 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23438 echo "${ECHO_T}$ac_header_preproc" >&6; }
23439
23440 # So?  What about this header?
23441 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23442   yes:no: )
23443     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23444 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23445     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23446 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23447     ac_header_preproc=yes
23448     ;;
23449   no:yes:* )
23450     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23451 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23452     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
23453 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
23454     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23455 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23456     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
23457 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
23458     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23459 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23460     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23461 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23462     ( cat <<\_ASBOX
23463 @%:@@%:@ ------------------------------- @%:@@%:@
23464 @%:@@%:@ Report this to nfs@lists.sf.net @%:@@%:@
23465 @%:@@%:@ ------------------------------- @%:@@%:@
23466 _ASBOX
23467      ) | sed "s/^/$as_me: WARNING:     /" >&2
23468     ;;
23469 esac
23470 { echo "$as_me:$LINENO: checking for $ac_header" >&5
23471 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23472 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23473   echo $ECHO_N "(cached) $ECHO_C" >&6
23474 else
23475   eval "$as_ac_Header=\$ac_header_preproc"
23476 fi
23477 ac_res=`eval echo '${'$as_ac_Header'}'`
23478                { echo "$as_me:$LINENO: result: $ac_res" >&5
23479 echo "${ECHO_T}$ac_res" >&6; }
23480
23481 fi
23482 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23483   cat >>confdefs.h <<_ACEOF
23484 @%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23485 _ACEOF
23486  
23487 else
23488   { echo "$as_me:$LINENO: WARNING: could not locate SPKM3 header; will not have SPKM3 support" >&5
23489 echo "$as_me: WARNING: could not locate SPKM3 header; will not have SPKM3 support" >&2;}
23490 fi
23491
23492 done
23493
23494     { echo "$as_me:$LINENO: checking for nfs4_set_debug in -lnfsidmap" >&5
23495 echo $ECHO_N "checking for nfs4_set_debug in -lnfsidmap... $ECHO_C" >&6; }
23496 if test "${ac_cv_lib_nfsidmap_nfs4_set_debug+set}" = set; then
23497   echo $ECHO_N "(cached) $ECHO_C" >&6
23498 else
23499   ac_check_lib_save_LIBS=$LIBS
23500 LIBS="-lnfsidmap  $LIBS"
23501 cat >conftest.$ac_ext <<_ACEOF
23502 /* confdefs.h.  */
23503 _ACEOF
23504 cat confdefs.h >>conftest.$ac_ext
23505 cat >>conftest.$ac_ext <<_ACEOF
23506 /* end confdefs.h.  */
23507
23508 /* Override any GCC internal prototype to avoid an error.
23509    Use char because int might match the return type of a GCC
23510    builtin and then its argument prototype would still apply.  */
23511 #ifdef __cplusplus
23512 extern "C"
23513 #endif
23514 char nfs4_set_debug ();
23515 int
23516 main ()
23517 {
23518 return nfs4_set_debug ();
23519   ;
23520   return 0;
23521 }
23522 _ACEOF
23523 rm -f conftest.$ac_objext conftest$ac_exeext
23524 if { (ac_try="$ac_link"
23525 case "(($ac_try" in
23526   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23527   *) ac_try_echo=$ac_try;;
23528 esac
23529 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23530   (eval "$ac_link") 2>conftest.er1
23531   ac_status=$?
23532   grep -v '^ *+' conftest.er1 >conftest.err
23533   rm -f conftest.er1
23534   cat conftest.err >&5
23535   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23536   (exit $ac_status); } && {
23537          test -z "$ac_c_werror_flag" ||
23538          test ! -s conftest.err
23539        } && test -s conftest$ac_exeext &&
23540        $as_test_x conftest$ac_exeext; then
23541   ac_cv_lib_nfsidmap_nfs4_set_debug=yes
23542 else
23543   echo "$as_me: failed program was:" >&5
23544 sed 's/^/| /' conftest.$ac_ext >&5
23545
23546         ac_cv_lib_nfsidmap_nfs4_set_debug=no
23547 fi
23548
23549 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23550       conftest$ac_exeext conftest.$ac_ext
23551 LIBS=$ac_check_lib_save_LIBS
23552 fi
23553 { echo "$as_me:$LINENO: result: $ac_cv_lib_nfsidmap_nfs4_set_debug" >&5
23554 echo "${ECHO_T}$ac_cv_lib_nfsidmap_nfs4_set_debug" >&6; }
23555 if test $ac_cv_lib_nfsidmap_nfs4_set_debug = yes; then
23556   
23557 cat >>confdefs.h <<\_ACEOF
23558 @%:@define HAVE_NFS4_SET_DEBUG 1
23559 _ACEOF
23560
23561 fi
23562
23563
23564     
23565   { echo "$as_me:$LINENO: checking for Kerberos v5" >&5
23566 echo $ECHO_N "checking for Kerberos v5... $ECHO_C" >&6; }
23567   
23568 # Check whether --with-krb5 was given.
23569 if test "${with_krb5+set}" = set; then
23570   withval=$with_krb5;  case "$withval" in
23571     yes|no)
23572        krb5_with=""
23573        ;;
23574     *)
23575        krb5_with="$withval"
23576        ;;
23577     esac 
23578   
23579 fi
23580
23581
23582   for dir in $krb5_with /usr /usr/kerberos /usr/local /usr/local/krb5 \
23583              /usr/krb5 /usr/heimdal /usr/local/heimdal /usr/athena ; do
23584             K5CONFIG=""
23585     if test -f $dir/bin/krb5-config; then
23586       K5CONFIG=$dir/bin/krb5-config
23587     elif test -f "/usr/kerberos/bin/krb5-config"; then
23588       K5CONFIG="/usr/kerberos/bin/krb5-config"
23589     elif test -f "/usr/lib/mit/bin/krb5-config"; then
23590       K5CONFIG="/usr/lib/mit/bin/krb5-config"
23591     fi
23592     if test "$K5CONFIG" != ""; then
23593       KRBCFLAGS=`$K5CONFIG --cflags`
23594       KRBLIBS=`$K5CONFIG --libs gssapi`
23595       K5VERS=`$K5CONFIG --version | head -n 1 | awk '{split($(4),v,"."); if (v@<:@"3"@:>@ == "") v@<:@"3"@:>@ = "0"; print v@<:@"1"@:>@v@<:@"2"@:>@v@<:@"3"@:>@ }'`
23596       
23597 cat >>confdefs.h <<_ACEOF
23598 @%:@define KRB5_VERSION $K5VERS
23599 _ACEOF
23600
23601       if test -f $dir/include/gssapi/gssapi_krb5.h -a \
23602                 \( -f $dir/lib/libgssapi_krb5.a -o \
23603                    -f $dir/lib64/libgssapi_krb5.a -o \
23604                    -f $dir/lib64/libgssapi_krb5.so -o \
23605                    -f $dir/lib/libgssapi_krb5.so \) ; then
23606          
23607 cat >>confdefs.h <<\_ACEOF
23608 @%:@define HAVE_KRB5 1
23609 _ACEOF
23610
23611          KRBDIR="$dir"
23612                      if test $K5VERS -le 131; then
23613            
23614 cat >>confdefs.h <<\_ACEOF
23615 @%:@define USE_GSS_KRB5_CCACHE_NAME 1
23616 _ACEOF
23617
23618          fi
23619          gssapi_lib=gssapi_krb5
23620          break
23621                   elif test \( -f $dir/include/heim_err.h -o\
23622                  -f $dir/include/heimdal/heim_err.h \) -a \
23623                 -f $dir/lib/libroken.a; then
23624          
23625 cat >>confdefs.h <<\_ACEOF
23626 @%:@define HAVE_HEIMDAL 1
23627 _ACEOF
23628
23629          KRBDIR="$dir"
23630          gssapi_lib=gssapi
23631         break
23632       fi
23633     fi
23634   done
23635     if test "x$KRBDIR" = "x"; then
23636     if test "x$krb5_with" = "x"; then
23637       { { echo "$as_me:$LINENO: error: Kerberos v5 with GSS support not found: consider --disable-gss or --with-krb5=" >&5
23638 echo "$as_me: error: Kerberos v5 with GSS support not found: consider --disable-gss or --with-krb5=" >&2;}
23639    { (exit 1); exit 1; }; }
23640     else
23641       { { echo "$as_me:$LINENO: error: Kerberos v5 with GSS support not found at $krb5_with" >&5
23642 echo "$as_me: error: Kerberos v5 with GSS support not found at $krb5_with" >&2;}
23643    { (exit 1); exit 1; }; }
23644     fi
23645   fi
23646   { echo "$as_me:$LINENO: result: $KRBDIR" >&5
23647 echo "${ECHO_T}$KRBDIR" >&6; }
23648
23649     echo "The current KRBDIR is $KRBDIR"
23650   if test "$KRBDIR/lib" = "/lib" -o "$KRBDIR/lib" = "/usr/lib" \
23651        -o "$KRBDIR/lib" = "//lib" -o "$KRBDIR/lib" = "/usr//lib" ; then
23652     KRBLDFLAGS="";
23653   elif /sbin/ldconfig -p | grep > /dev/null "=> $KRBDIR/lib/"; then
23654     KRBLDFLAGS="";
23655   else
23656     KRBLDFLAGS="-Wl,-rpath=$KRBDIR/lib"
23657   fi
23658
23659     as_ac_Lib=`echo "ac_cv_lib_$gssapi_lib''_gss_krb5_export_lucid_sec_context" | $as_tr_sh`
23660 { echo "$as_me:$LINENO: checking for gss_krb5_export_lucid_sec_context in -l$gssapi_lib" >&5
23661 echo $ECHO_N "checking for gss_krb5_export_lucid_sec_context in -l$gssapi_lib... $ECHO_C" >&6; }
23662 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
23663   echo $ECHO_N "(cached) $ECHO_C" >&6
23664 else
23665   ac_check_lib_save_LIBS=$LIBS
23666 LIBS="-l$gssapi_lib $KRBLIBS $LIBS"
23667 cat >conftest.$ac_ext <<_ACEOF
23668 /* confdefs.h.  */
23669 _ACEOF
23670 cat confdefs.h >>conftest.$ac_ext
23671 cat >>conftest.$ac_ext <<_ACEOF
23672 /* end confdefs.h.  */
23673
23674 /* Override any GCC internal prototype to avoid an error.
23675    Use char because int might match the return type of a GCC
23676    builtin and then its argument prototype would still apply.  */
23677 #ifdef __cplusplus
23678 extern "C"
23679 #endif
23680 char gss_krb5_export_lucid_sec_context ();
23681 int
23682 main ()
23683 {
23684 return gss_krb5_export_lucid_sec_context ();
23685   ;
23686   return 0;
23687 }
23688 _ACEOF
23689 rm -f conftest.$ac_objext conftest$ac_exeext
23690 if { (ac_try="$ac_link"
23691 case "(($ac_try" in
23692   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23693   *) ac_try_echo=$ac_try;;
23694 esac
23695 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23696   (eval "$ac_link") 2>conftest.er1
23697   ac_status=$?
23698   grep -v '^ *+' conftest.er1 >conftest.err
23699   rm -f conftest.er1
23700   cat conftest.err >&5
23701   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23702   (exit $ac_status); } && {
23703          test -z "$ac_c_werror_flag" ||
23704          test ! -s conftest.err
23705        } && test -s conftest$ac_exeext &&
23706        $as_test_x conftest$ac_exeext; then
23707   eval "$as_ac_Lib=yes"
23708 else
23709   echo "$as_me: failed program was:" >&5
23710 sed 's/^/| /' conftest.$ac_ext >&5
23711
23712         eval "$as_ac_Lib=no"
23713 fi
23714
23715 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23716       conftest$ac_exeext conftest.$ac_ext
23717 LIBS=$ac_check_lib_save_LIBS
23718 fi
23719 ac_res=`eval echo '${'$as_ac_Lib'}'`
23720                { echo "$as_me:$LINENO: result: $ac_res" >&5
23721 echo "${ECHO_T}$ac_res" >&6; }
23722 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
23723   
23724 cat >>confdefs.h <<\_ACEOF
23725 @%:@define HAVE_LUCID_CONTEXT_SUPPORT 1
23726 _ACEOF
23727
23728 fi
23729
23730   as_ac_Lib=`echo "ac_cv_lib_$gssapi_lib''_gss_krb5_set_allowable_enctypes" | $as_tr_sh`
23731 { echo "$as_me:$LINENO: checking for gss_krb5_set_allowable_enctypes in -l$gssapi_lib" >&5
23732 echo $ECHO_N "checking for gss_krb5_set_allowable_enctypes in -l$gssapi_lib... $ECHO_C" >&6; }
23733 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
23734   echo $ECHO_N "(cached) $ECHO_C" >&6
23735 else
23736   ac_check_lib_save_LIBS=$LIBS
23737 LIBS="-l$gssapi_lib $KRBLIBS $LIBS"
23738 cat >conftest.$ac_ext <<_ACEOF
23739 /* confdefs.h.  */
23740 _ACEOF
23741 cat confdefs.h >>conftest.$ac_ext
23742 cat >>conftest.$ac_ext <<_ACEOF
23743 /* end confdefs.h.  */
23744
23745 /* Override any GCC internal prototype to avoid an error.
23746    Use char because int might match the return type of a GCC
23747    builtin and then its argument prototype would still apply.  */
23748 #ifdef __cplusplus
23749 extern "C"
23750 #endif
23751 char gss_krb5_set_allowable_enctypes ();
23752 int
23753 main ()
23754 {
23755 return gss_krb5_set_allowable_enctypes ();
23756   ;
23757   return 0;
23758 }
23759 _ACEOF
23760 rm -f conftest.$ac_objext conftest$ac_exeext
23761 if { (ac_try="$ac_link"
23762 case "(($ac_try" in
23763   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23764   *) ac_try_echo=$ac_try;;
23765 esac
23766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23767   (eval "$ac_link") 2>conftest.er1
23768   ac_status=$?
23769   grep -v '^ *+' conftest.er1 >conftest.err
23770   rm -f conftest.er1
23771   cat conftest.err >&5
23772   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23773   (exit $ac_status); } && {
23774          test -z "$ac_c_werror_flag" ||
23775          test ! -s conftest.err
23776        } && test -s conftest$ac_exeext &&
23777        $as_test_x conftest$ac_exeext; then
23778   eval "$as_ac_Lib=yes"
23779 else
23780   echo "$as_me: failed program was:" >&5
23781 sed 's/^/| /' conftest.$ac_ext >&5
23782
23783         eval "$as_ac_Lib=no"
23784 fi
23785
23786 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23787       conftest$ac_exeext conftest.$ac_ext
23788 LIBS=$ac_check_lib_save_LIBS
23789 fi
23790 ac_res=`eval echo '${'$as_ac_Lib'}'`
23791                { echo "$as_me:$LINENO: result: $ac_res" >&5
23792 echo "${ECHO_T}$ac_res" >&6; }
23793 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
23794   
23795 cat >>confdefs.h <<\_ACEOF
23796 @%:@define HAVE_SET_ALLOWABLE_ENCTYPES 1
23797 _ACEOF
23798
23799 fi
23800
23801   as_ac_Lib=`echo "ac_cv_lib_$gssapi_lib''_gss_krb5_ccache_name" | $as_tr_sh`
23802 { echo "$as_me:$LINENO: checking for gss_krb5_ccache_name in -l$gssapi_lib" >&5
23803 echo $ECHO_N "checking for gss_krb5_ccache_name in -l$gssapi_lib... $ECHO_C" >&6; }
23804 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
23805   echo $ECHO_N "(cached) $ECHO_C" >&6
23806 else
23807   ac_check_lib_save_LIBS=$LIBS
23808 LIBS="-l$gssapi_lib $KRBLIBS $LIBS"
23809 cat >conftest.$ac_ext <<_ACEOF
23810 /* confdefs.h.  */
23811 _ACEOF
23812 cat confdefs.h >>conftest.$ac_ext
23813 cat >>conftest.$ac_ext <<_ACEOF
23814 /* end confdefs.h.  */
23815
23816 /* Override any GCC internal prototype to avoid an error.
23817    Use char because int might match the return type of a GCC
23818    builtin and then its argument prototype would still apply.  */
23819 #ifdef __cplusplus
23820 extern "C"
23821 #endif
23822 char gss_krb5_ccache_name ();
23823 int
23824 main ()
23825 {
23826 return gss_krb5_ccache_name ();
23827   ;
23828   return 0;
23829 }
23830 _ACEOF
23831 rm -f conftest.$ac_objext conftest$ac_exeext
23832 if { (ac_try="$ac_link"
23833 case "(($ac_try" in
23834   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23835   *) ac_try_echo=$ac_try;;
23836 esac
23837 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23838   (eval "$ac_link") 2>conftest.er1
23839   ac_status=$?
23840   grep -v '^ *+' conftest.er1 >conftest.err
23841   rm -f conftest.er1
23842   cat conftest.err >&5
23843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23844   (exit $ac_status); } && {
23845          test -z "$ac_c_werror_flag" ||
23846          test ! -s conftest.err
23847        } && test -s conftest$ac_exeext &&
23848        $as_test_x conftest$ac_exeext; then
23849   eval "$as_ac_Lib=yes"
23850 else
23851   echo "$as_me: failed program was:" >&5
23852 sed 's/^/| /' conftest.$ac_ext >&5
23853
23854         eval "$as_ac_Lib=no"
23855 fi
23856
23857 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23858       conftest$ac_exeext conftest.$ac_ext
23859 LIBS=$ac_check_lib_save_LIBS
23860 fi
23861 ac_res=`eval echo '${'$as_ac_Lib'}'`
23862                { echo "$as_me:$LINENO: result: $ac_res" >&5
23863 echo "${ECHO_T}$ac_res" >&6; }
23864 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
23865   
23866 cat >>confdefs.h <<\_ACEOF
23867 @%:@define HAVE_GSS_KRB5_CCACHE_NAME 1
23868 _ACEOF
23869
23870 fi
23871
23872
23873     as_ac_Lib=`echo "ac_cv_lib_$gssapi_lib''_krb5_get_error_message" | $as_tr_sh`
23874 { echo "$as_me:$LINENO: checking for krb5_get_error_message in -l$gssapi_lib" >&5
23875 echo $ECHO_N "checking for krb5_get_error_message in -l$gssapi_lib... $ECHO_C" >&6; }
23876 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
23877   echo $ECHO_N "(cached) $ECHO_C" >&6
23878 else
23879   ac_check_lib_save_LIBS=$LIBS
23880 LIBS="-l$gssapi_lib $KRBLIBS $LIBS"
23881 cat >conftest.$ac_ext <<_ACEOF
23882 /* confdefs.h.  */
23883 _ACEOF
23884 cat confdefs.h >>conftest.$ac_ext
23885 cat >>conftest.$ac_ext <<_ACEOF
23886 /* end confdefs.h.  */
23887
23888 /* Override any GCC internal prototype to avoid an error.
23889    Use char because int might match the return type of a GCC
23890    builtin and then its argument prototype would still apply.  */
23891 #ifdef __cplusplus
23892 extern "C"
23893 #endif
23894 char krb5_get_error_message ();
23895 int
23896 main ()
23897 {
23898 return krb5_get_error_message ();
23899   ;
23900   return 0;
23901 }
23902 _ACEOF
23903 rm -f conftest.$ac_objext conftest$ac_exeext
23904 if { (ac_try="$ac_link"
23905 case "(($ac_try" in
23906   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23907   *) ac_try_echo=$ac_try;;
23908 esac
23909 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23910   (eval "$ac_link") 2>conftest.er1
23911   ac_status=$?
23912   grep -v '^ *+' conftest.er1 >conftest.err
23913   rm -f conftest.er1
23914   cat conftest.err >&5
23915   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23916   (exit $ac_status); } && {
23917          test -z "$ac_c_werror_flag" ||
23918          test ! -s conftest.err
23919        } && test -s conftest$ac_exeext &&
23920        $as_test_x conftest$ac_exeext; then
23921   eval "$as_ac_Lib=yes"
23922 else
23923   echo "$as_me: failed program was:" >&5
23924 sed 's/^/| /' conftest.$ac_ext >&5
23925
23926         eval "$as_ac_Lib=no"
23927 fi
23928
23929 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23930       conftest$ac_exeext conftest.$ac_ext
23931 LIBS=$ac_check_lib_save_LIBS
23932 fi
23933 ac_res=`eval echo '${'$as_ac_Lib'}'`
23934                { echo "$as_me:$LINENO: result: $ac_res" >&5
23935 echo "${ECHO_T}$ac_res" >&6; }
23936 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
23937   
23938 cat >>confdefs.h <<\_ACEOF
23939 @%:@define HAVE_KRB5_GET_ERROR_MESSAGE 1
23940 _ACEOF
23941
23942 fi
23943
23944
23945     as_ac_Lib=`echo "ac_cv_lib_$gssapi_lib''_krb5_get_init_creds_opt_set_addressless" | $as_tr_sh`
23946 { echo "$as_me:$LINENO: checking for krb5_get_init_creds_opt_set_addressless in -l$gssapi_lib" >&5
23947 echo $ECHO_N "checking for krb5_get_init_creds_opt_set_addressless in -l$gssapi_lib... $ECHO_C" >&6; }
23948 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
23949   echo $ECHO_N "(cached) $ECHO_C" >&6
23950 else
23951   ac_check_lib_save_LIBS=$LIBS
23952 LIBS="-l$gssapi_lib $KRBLIBS $LIBS"
23953 cat >conftest.$ac_ext <<_ACEOF
23954 /* confdefs.h.  */
23955 _ACEOF
23956 cat confdefs.h >>conftest.$ac_ext
23957 cat >>conftest.$ac_ext <<_ACEOF
23958 /* end confdefs.h.  */
23959
23960 /* Override any GCC internal prototype to avoid an error.
23961    Use char because int might match the return type of a GCC
23962    builtin and then its argument prototype would still apply.  */
23963 #ifdef __cplusplus
23964 extern "C"
23965 #endif
23966 char krb5_get_init_creds_opt_set_addressless ();
23967 int
23968 main ()
23969 {
23970 return krb5_get_init_creds_opt_set_addressless ();
23971   ;
23972   return 0;
23973 }
23974 _ACEOF
23975 rm -f conftest.$ac_objext conftest$ac_exeext
23976 if { (ac_try="$ac_link"
23977 case "(($ac_try" in
23978   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23979   *) ac_try_echo=$ac_try;;
23980 esac
23981 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23982   (eval "$ac_link") 2>conftest.er1
23983   ac_status=$?
23984   grep -v '^ *+' conftest.er1 >conftest.err
23985   rm -f conftest.er1
23986   cat conftest.err >&5
23987   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23988   (exit $ac_status); } && {
23989          test -z "$ac_c_werror_flag" ||
23990          test ! -s conftest.err
23991        } && test -s conftest$ac_exeext &&
23992        $as_test_x conftest$ac_exeext; then
23993   eval "$as_ac_Lib=yes"
23994 else
23995   echo "$as_me: failed program was:" >&5
23996 sed 's/^/| /' conftest.$ac_ext >&5
23997
23998         eval "$as_ac_Lib=no"
23999 fi
24000
24001 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24002       conftest$ac_exeext conftest.$ac_ext
24003 LIBS=$ac_check_lib_save_LIBS
24004 fi
24005 ac_res=`eval echo '${'$as_ac_Lib'}'`
24006                { echo "$as_me:$LINENO: result: $ac_res" >&5
24007 echo "${ECHO_T}$ac_res" >&6; }
24008 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
24009   
24010 cat >>confdefs.h <<\_ACEOF
24011 @%:@define HAVE_KRB5_GET_INIT_CREDS_OPT_SET_ADDRESSLESS 1
24012 _ACEOF
24013
24014 fi
24015
24016
24017     if test "x$krb5_with" != "x" -a "$krb5_with" != "$KRBDIR"; then
24018     { echo "$as_me:$LINENO: WARNING: Using $KRBDIR instead of requested value of $krb5_with for Kerberos!" >&5
24019 echo "$as_me: WARNING: Using $KRBDIR instead of requested value of $krb5_with for Kerberos!" >&2;}
24020   fi
24021
24022   
24023   
24024   
24025   
24026   
24027
24028
24029
24030       { echo "$as_me:$LINENO: checking for authgss_create_default in -lrpcsecgss" >&5
24031 echo $ECHO_N "checking for authgss_create_default in -lrpcsecgss... $ECHO_C" >&6; }
24032 if test "${ac_cv_lib_rpcsecgss_authgss_create_default+set}" = set; then
24033   echo $ECHO_N "(cached) $ECHO_C" >&6
24034 else
24035   ac_check_lib_save_LIBS=$LIBS
24036 LIBS="-lrpcsecgss -lgssglue -ldl $LIBS"
24037 cat >conftest.$ac_ext <<_ACEOF
24038 /* confdefs.h.  */
24039 _ACEOF
24040 cat confdefs.h >>conftest.$ac_ext
24041 cat >>conftest.$ac_ext <<_ACEOF
24042 /* end confdefs.h.  */
24043
24044 /* Override any GCC internal prototype to avoid an error.
24045    Use char because int might match the return type of a GCC
24046    builtin and then its argument prototype would still apply.  */
24047 #ifdef __cplusplus
24048 extern "C"
24049 #endif
24050 char authgss_create_default ();
24051 int
24052 main ()
24053 {
24054 return authgss_create_default ();
24055   ;
24056   return 0;
24057 }
24058 _ACEOF
24059 rm -f conftest.$ac_objext conftest$ac_exeext
24060 if { (ac_try="$ac_link"
24061 case "(($ac_try" in
24062   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24063   *) ac_try_echo=$ac_try;;
24064 esac
24065 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24066   (eval "$ac_link") 2>conftest.er1
24067   ac_status=$?
24068   grep -v '^ *+' conftest.er1 >conftest.err
24069   rm -f conftest.er1
24070   cat conftest.err >&5
24071   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24072   (exit $ac_status); } && {
24073          test -z "$ac_c_werror_flag" ||
24074          test ! -s conftest.err
24075        } && test -s conftest$ac_exeext &&
24076        $as_test_x conftest$ac_exeext; then
24077   ac_cv_lib_rpcsecgss_authgss_create_default=yes
24078 else
24079   echo "$as_me: failed program was:" >&5
24080 sed 's/^/| /' conftest.$ac_ext >&5
24081
24082         ac_cv_lib_rpcsecgss_authgss_create_default=no
24083 fi
24084
24085 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24086       conftest$ac_exeext conftest.$ac_ext
24087 LIBS=$ac_check_lib_save_LIBS
24088 fi
24089 { echo "$as_me:$LINENO: result: $ac_cv_lib_rpcsecgss_authgss_create_default" >&5
24090 echo "${ECHO_T}$ac_cv_lib_rpcsecgss_authgss_create_default" >&6; }
24091 if test $ac_cv_lib_rpcsecgss_authgss_create_default = yes; then
24092   librpcsecgss=1
24093 else
24094   { { echo "$as_me:$LINENO: error: librpcsecgss needed for nfsv4 support" >&5
24095 echo "$as_me: error: librpcsecgss needed for nfsv4 support" >&2;}
24096    { (exit 1); exit 1; }; }
24097 fi
24098
24099   { echo "$as_me:$LINENO: checking for authgss_set_debug_level in -lrpcsecgss" >&5
24100 echo $ECHO_N "checking for authgss_set_debug_level in -lrpcsecgss... $ECHO_C" >&6; }
24101 if test "${ac_cv_lib_rpcsecgss_authgss_set_debug_level+set}" = set; then
24102   echo $ECHO_N "(cached) $ECHO_C" >&6
24103 else
24104   ac_check_lib_save_LIBS=$LIBS
24105 LIBS="-lrpcsecgss -lgssglue -ldl $LIBS"
24106 cat >conftest.$ac_ext <<_ACEOF
24107 /* confdefs.h.  */
24108 _ACEOF
24109 cat confdefs.h >>conftest.$ac_ext
24110 cat >>conftest.$ac_ext <<_ACEOF
24111 /* end confdefs.h.  */
24112
24113 /* Override any GCC internal prototype to avoid an error.
24114    Use char because int might match the return type of a GCC
24115    builtin and then its argument prototype would still apply.  */
24116 #ifdef __cplusplus
24117 extern "C"
24118 #endif
24119 char authgss_set_debug_level ();
24120 int
24121 main ()
24122 {
24123 return authgss_set_debug_level ();
24124   ;
24125   return 0;
24126 }
24127 _ACEOF
24128 rm -f conftest.$ac_objext conftest$ac_exeext
24129 if { (ac_try="$ac_link"
24130 case "(($ac_try" in
24131   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24132   *) ac_try_echo=$ac_try;;
24133 esac
24134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24135   (eval "$ac_link") 2>conftest.er1
24136   ac_status=$?
24137   grep -v '^ *+' conftest.er1 >conftest.err
24138   rm -f conftest.er1
24139   cat conftest.err >&5
24140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24141   (exit $ac_status); } && {
24142          test -z "$ac_c_werror_flag" ||
24143          test ! -s conftest.err
24144        } && test -s conftest$ac_exeext &&
24145        $as_test_x conftest$ac_exeext; then
24146   ac_cv_lib_rpcsecgss_authgss_set_debug_level=yes
24147 else
24148   echo "$as_me: failed program was:" >&5
24149 sed 's/^/| /' conftest.$ac_ext >&5
24150
24151         ac_cv_lib_rpcsecgss_authgss_set_debug_level=no
24152 fi
24153
24154 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24155       conftest$ac_exeext conftest.$ac_ext
24156 LIBS=$ac_check_lib_save_LIBS
24157 fi
24158 { echo "$as_me:$LINENO: result: $ac_cv_lib_rpcsecgss_authgss_set_debug_level" >&5
24159 echo "${ECHO_T}$ac_cv_lib_rpcsecgss_authgss_set_debug_level" >&6; }
24160 if test $ac_cv_lib_rpcsecgss_authgss_set_debug_level = yes; then
24161   
24162 cat >>confdefs.h <<\_ACEOF
24163 @%:@define HAVE_AUTHGSS_SET_DEBUG_LEVEL 1
24164 _ACEOF
24165
24166 fi
24167
24168
24169 fi
24170
24171
24172
24173
24174
24175
24176
24177
24178
24179
24180
24181
24182
24183
24184
24185
24186
24187
24188
24189
24190
24191
24192
24193
24194 for ac_header in arpa/inet.h fcntl.h libintl.h limits.h \
24195                  malloc.h memory.h netdb.h netinet/in.h paths.h \
24196                  stdlib.h string.h sys/file.h sys/ioctl.h sys/mount.h \
24197                  sys/param.h sys/socket.h sys/time.h sys/vfs.h \
24198                  syslog.h unistd.h com_err.h et/com_err.h \
24199                  ifaddrs.h
24200 do
24201 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24202 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24203   { echo "$as_me:$LINENO: checking for $ac_header" >&5
24204 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24205 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24206   echo $ECHO_N "(cached) $ECHO_C" >&6
24207 fi
24208 ac_res=`eval echo '${'$as_ac_Header'}'`
24209                { echo "$as_me:$LINENO: result: $ac_res" >&5
24210 echo "${ECHO_T}$ac_res" >&6; }
24211 else
24212   # Is the header compilable?
24213 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
24214 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
24215 cat >conftest.$ac_ext <<_ACEOF
24216 /* confdefs.h.  */
24217 _ACEOF
24218 cat confdefs.h >>conftest.$ac_ext
24219 cat >>conftest.$ac_ext <<_ACEOF
24220 /* end confdefs.h.  */
24221 $ac_includes_default
24222 @%:@include <$ac_header>
24223 _ACEOF
24224 rm -f conftest.$ac_objext
24225 if { (ac_try="$ac_compile"
24226 case "(($ac_try" in
24227   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24228   *) ac_try_echo=$ac_try;;
24229 esac
24230 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24231   (eval "$ac_compile") 2>conftest.er1
24232   ac_status=$?
24233   grep -v '^ *+' conftest.er1 >conftest.err
24234   rm -f conftest.er1
24235   cat conftest.err >&5
24236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24237   (exit $ac_status); } && {
24238          test -z "$ac_c_werror_flag" ||
24239          test ! -s conftest.err
24240        } && test -s conftest.$ac_objext; then
24241   ac_header_compiler=yes
24242 else
24243   echo "$as_me: failed program was:" >&5
24244 sed 's/^/| /' conftest.$ac_ext >&5
24245
24246         ac_header_compiler=no
24247 fi
24248
24249 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24250 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24251 echo "${ECHO_T}$ac_header_compiler" >&6; }
24252
24253 # Is the header present?
24254 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
24255 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
24256 cat >conftest.$ac_ext <<_ACEOF
24257 /* confdefs.h.  */
24258 _ACEOF
24259 cat confdefs.h >>conftest.$ac_ext
24260 cat >>conftest.$ac_ext <<_ACEOF
24261 /* end confdefs.h.  */
24262 @%:@include <$ac_header>
24263 _ACEOF
24264 if { (ac_try="$ac_cpp conftest.$ac_ext"
24265 case "(($ac_try" in
24266   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24267   *) ac_try_echo=$ac_try;;
24268 esac
24269 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24270   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24271   ac_status=$?
24272   grep -v '^ *+' conftest.er1 >conftest.err
24273   rm -f conftest.er1
24274   cat conftest.err >&5
24275   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24276   (exit $ac_status); } >/dev/null && {
24277          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24278          test ! -s conftest.err
24279        }; then
24280   ac_header_preproc=yes
24281 else
24282   echo "$as_me: failed program was:" >&5
24283 sed 's/^/| /' conftest.$ac_ext >&5
24284
24285   ac_header_preproc=no
24286 fi
24287
24288 rm -f conftest.err conftest.$ac_ext
24289 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24290 echo "${ECHO_T}$ac_header_preproc" >&6; }
24291
24292 # So?  What about this header?
24293 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24294   yes:no: )
24295     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24296 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24297     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24298 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24299     ac_header_preproc=yes
24300     ;;
24301   no:yes:* )
24302     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24303 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24304     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
24305 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
24306     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24307 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24308     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
24309 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
24310     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24311 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24312     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24313 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24314     ( cat <<\_ASBOX
24315 @%:@@%:@ ------------------------------- @%:@@%:@
24316 @%:@@%:@ Report this to nfs@lists.sf.net @%:@@%:@
24317 @%:@@%:@ ------------------------------- @%:@@%:@
24318 _ASBOX
24319      ) | sed "s/^/$as_me: WARNING:     /" >&2
24320     ;;
24321 esac
24322 { echo "$as_me:$LINENO: checking for $ac_header" >&5
24323 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24324 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24325   echo $ECHO_N "(cached) $ECHO_C" >&6
24326 else
24327   eval "$as_ac_Header=\$ac_header_preproc"
24328 fi
24329 ac_res=`eval echo '${'$as_ac_Header'}'`
24330                { echo "$as_me:$LINENO: result: $ac_res" >&5
24331 echo "${ECHO_T}$ac_res" >&6; }
24332
24333 fi
24334 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24335   cat >>confdefs.h <<_ACEOF
24336 @%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24337 _ACEOF
24338  
24339 fi
24340
24341 done
24342
24343
24344 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
24345 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
24346 if test "${ac_cv_c_const+set}" = set; then
24347   echo $ECHO_N "(cached) $ECHO_C" >&6
24348 else
24349   cat >conftest.$ac_ext <<_ACEOF
24350 /* confdefs.h.  */
24351 _ACEOF
24352 cat confdefs.h >>conftest.$ac_ext
24353 cat >>conftest.$ac_ext <<_ACEOF
24354 /* end confdefs.h.  */
24355
24356 int
24357 main ()
24358 {
24359 /* FIXME: Include the comments suggested by Paul. */
24360 #ifndef __cplusplus
24361   /* Ultrix mips cc rejects this.  */
24362   typedef int charset[2];
24363   const charset cs;
24364   /* SunOS 4.1.1 cc rejects this.  */
24365   char const *const *pcpcc;
24366   char **ppc;
24367   /* NEC SVR4.0.2 mips cc rejects this.  */
24368   struct point {int x, y;};
24369   static struct point const zero = {0,0};
24370   /* AIX XL C 1.02.0.0 rejects this.
24371      It does not let you subtract one const X* pointer from another in
24372      an arm of an if-expression whose if-part is not a constant
24373      expression */
24374   const char *g = "string";
24375   pcpcc = &g + (g ? g-g : 0);
24376   /* HPUX 7.0 cc rejects these. */
24377   ++pcpcc;
24378   ppc = (char**) pcpcc;
24379   pcpcc = (char const *const *) ppc;
24380   { /* SCO 3.2v4 cc rejects this.  */
24381     char *t;
24382     char const *s = 0 ? (char *) 0 : (char const *) 0;
24383
24384     *t++ = 0;
24385     if (s) return 0;
24386   }
24387   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
24388     int x[] = {25, 17};
24389     const int *foo = &x[0];
24390     ++foo;
24391   }
24392   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
24393     typedef const int *iptr;
24394     iptr p = 0;
24395     ++p;
24396   }
24397   { /* AIX XL C 1.02.0.0 rejects this saying
24398        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
24399     struct s { int j; const int *ap[3]; };
24400     struct s *b; b->j = 5;
24401   }
24402   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
24403     const int foo = 10;
24404     if (!foo) return 0;
24405   }
24406   return !cs[0] && !zero.x;
24407 #endif
24408
24409   ;
24410   return 0;
24411 }
24412 _ACEOF
24413 rm -f conftest.$ac_objext
24414 if { (ac_try="$ac_compile"
24415 case "(($ac_try" in
24416   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24417   *) ac_try_echo=$ac_try;;
24418 esac
24419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24420   (eval "$ac_compile") 2>conftest.er1
24421   ac_status=$?
24422   grep -v '^ *+' conftest.er1 >conftest.err
24423   rm -f conftest.er1
24424   cat conftest.err >&5
24425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24426   (exit $ac_status); } && {
24427          test -z "$ac_c_werror_flag" ||
24428          test ! -s conftest.err
24429        } && test -s conftest.$ac_objext; then
24430   ac_cv_c_const=yes
24431 else
24432   echo "$as_me: failed program was:" >&5
24433 sed 's/^/| /' conftest.$ac_ext >&5
24434
24435         ac_cv_c_const=no
24436 fi
24437
24438 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24439 fi
24440 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
24441 echo "${ECHO_T}$ac_cv_c_const" >&6; }
24442 if test $ac_cv_c_const = no; then
24443   
24444 cat >>confdefs.h <<\_ACEOF
24445 @%:@define const 
24446 _ACEOF
24447
24448 fi
24449
24450 { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
24451 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
24452 if test "${ac_cv_type_uid_t+set}" = set; then
24453   echo $ECHO_N "(cached) $ECHO_C" >&6
24454 else
24455   cat >conftest.$ac_ext <<_ACEOF
24456 /* confdefs.h.  */
24457 _ACEOF
24458 cat confdefs.h >>conftest.$ac_ext
24459 cat >>conftest.$ac_ext <<_ACEOF
24460 /* end confdefs.h.  */
24461 #include <sys/types.h>
24462
24463 _ACEOF
24464 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24465   $EGREP "uid_t" >/dev/null 2>&1; then
24466   ac_cv_type_uid_t=yes
24467 else
24468   ac_cv_type_uid_t=no
24469 fi
24470 rm -f conftest*
24471
24472 fi
24473 { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
24474 echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
24475 if test $ac_cv_type_uid_t = no; then
24476   
24477 cat >>confdefs.h <<\_ACEOF
24478 @%:@define uid_t int
24479 _ACEOF
24480
24481   
24482 cat >>confdefs.h <<\_ACEOF
24483 @%:@define gid_t int
24484 _ACEOF
24485
24486 fi
24487
24488 { echo "$as_me:$LINENO: checking for inline" >&5
24489 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
24490 if test "${ac_cv_c_inline+set}" = set; then
24491   echo $ECHO_N "(cached) $ECHO_C" >&6
24492 else
24493   ac_cv_c_inline=no
24494 for ac_kw in inline __inline__ __inline; do
24495   cat >conftest.$ac_ext <<_ACEOF
24496 /* confdefs.h.  */
24497 _ACEOF
24498 cat confdefs.h >>conftest.$ac_ext
24499 cat >>conftest.$ac_ext <<_ACEOF
24500 /* end confdefs.h.  */
24501 #ifndef __cplusplus
24502 typedef int foo_t;
24503 static $ac_kw foo_t static_foo () {return 0; }
24504 $ac_kw foo_t foo () {return 0; }
24505 #endif
24506
24507 _ACEOF
24508 rm -f conftest.$ac_objext
24509 if { (ac_try="$ac_compile"
24510 case "(($ac_try" in
24511   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24512   *) ac_try_echo=$ac_try;;
24513 esac
24514 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24515   (eval "$ac_compile") 2>conftest.er1
24516   ac_status=$?
24517   grep -v '^ *+' conftest.er1 >conftest.err
24518   rm -f conftest.er1
24519   cat conftest.err >&5
24520   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24521   (exit $ac_status); } && {
24522          test -z "$ac_c_werror_flag" ||
24523          test ! -s conftest.err
24524        } && test -s conftest.$ac_objext; then
24525   ac_cv_c_inline=$ac_kw
24526 else
24527   echo "$as_me: failed program was:" >&5
24528 sed 's/^/| /' conftest.$ac_ext >&5
24529
24530         
24531 fi
24532
24533 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24534   test "$ac_cv_c_inline" != no && break
24535 done
24536
24537 fi
24538 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
24539 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
24540
24541
24542 case $ac_cv_c_inline in
24543   inline | yes) ;;
24544   *)
24545     case $ac_cv_c_inline in
24546       no) ac_val=;;
24547       *) ac_val=$ac_cv_c_inline;;
24548     esac
24549     cat >>confdefs.h <<_ACEOF
24550 #ifndef __cplusplus
24551 #define inline $ac_val
24552 #endif
24553 _ACEOF
24554     ;;
24555 esac
24556
24557 { echo "$as_me:$LINENO: checking for off_t" >&5
24558 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
24559 if test "${ac_cv_type_off_t+set}" = set; then
24560   echo $ECHO_N "(cached) $ECHO_C" >&6
24561 else
24562   cat >conftest.$ac_ext <<_ACEOF
24563 /* confdefs.h.  */
24564 _ACEOF
24565 cat confdefs.h >>conftest.$ac_ext
24566 cat >>conftest.$ac_ext <<_ACEOF
24567 /* end confdefs.h.  */
24568 $ac_includes_default
24569 typedef off_t ac__type_new_;
24570 int
24571 main ()
24572 {
24573 if ((ac__type_new_ *) 0)
24574   return 0;
24575 if (sizeof (ac__type_new_))
24576   return 0;
24577   ;
24578   return 0;
24579 }
24580 _ACEOF
24581 rm -f conftest.$ac_objext
24582 if { (ac_try="$ac_compile"
24583 case "(($ac_try" in
24584   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24585   *) ac_try_echo=$ac_try;;
24586 esac
24587 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24588   (eval "$ac_compile") 2>conftest.er1
24589   ac_status=$?
24590   grep -v '^ *+' conftest.er1 >conftest.err
24591   rm -f conftest.er1
24592   cat conftest.err >&5
24593   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24594   (exit $ac_status); } && {
24595          test -z "$ac_c_werror_flag" ||
24596          test ! -s conftest.err
24597        } && test -s conftest.$ac_objext; then
24598   ac_cv_type_off_t=yes
24599 else
24600   echo "$as_me: failed program was:" >&5
24601 sed 's/^/| /' conftest.$ac_ext >&5
24602
24603         ac_cv_type_off_t=no
24604 fi
24605
24606 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24607 fi
24608 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
24609 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
24610 if test $ac_cv_type_off_t = yes; then
24611   :
24612 else
24613   
24614 cat >>confdefs.h <<_ACEOF
24615 @%:@define off_t long int
24616 _ACEOF
24617
24618 fi
24619
24620 { echo "$as_me:$LINENO: checking for pid_t" >&5
24621 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
24622 if test "${ac_cv_type_pid_t+set}" = set; then
24623   echo $ECHO_N "(cached) $ECHO_C" >&6
24624 else
24625   cat >conftest.$ac_ext <<_ACEOF
24626 /* confdefs.h.  */
24627 _ACEOF
24628 cat confdefs.h >>conftest.$ac_ext
24629 cat >>conftest.$ac_ext <<_ACEOF
24630 /* end confdefs.h.  */
24631 $ac_includes_default
24632 typedef pid_t ac__type_new_;
24633 int
24634 main ()
24635 {
24636 if ((ac__type_new_ *) 0)
24637   return 0;
24638 if (sizeof (ac__type_new_))
24639   return 0;
24640   ;
24641   return 0;
24642 }
24643 _ACEOF
24644 rm -f conftest.$ac_objext
24645 if { (ac_try="$ac_compile"
24646 case "(($ac_try" in
24647   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24648   *) ac_try_echo=$ac_try;;
24649 esac
24650 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24651   (eval "$ac_compile") 2>conftest.er1
24652   ac_status=$?
24653   grep -v '^ *+' conftest.er1 >conftest.err
24654   rm -f conftest.er1
24655   cat conftest.err >&5
24656   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24657   (exit $ac_status); } && {
24658          test -z "$ac_c_werror_flag" ||
24659          test ! -s conftest.err
24660        } && test -s conftest.$ac_objext; then
24661   ac_cv_type_pid_t=yes
24662 else
24663   echo "$as_me: failed program was:" >&5
24664 sed 's/^/| /' conftest.$ac_ext >&5
24665
24666         ac_cv_type_pid_t=no
24667 fi
24668
24669 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24670 fi
24671 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
24672 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
24673 if test $ac_cv_type_pid_t = yes; then
24674   :
24675 else
24676   
24677 cat >>confdefs.h <<_ACEOF
24678 @%:@define pid_t int
24679 _ACEOF
24680
24681 fi
24682
24683 { echo "$as_me:$LINENO: checking for size_t" >&5
24684 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
24685 if test "${ac_cv_type_size_t+set}" = set; then
24686   echo $ECHO_N "(cached) $ECHO_C" >&6
24687 else
24688   cat >conftest.$ac_ext <<_ACEOF
24689 /* confdefs.h.  */
24690 _ACEOF
24691 cat confdefs.h >>conftest.$ac_ext
24692 cat >>conftest.$ac_ext <<_ACEOF
24693 /* end confdefs.h.  */
24694 $ac_includes_default
24695 typedef size_t ac__type_new_;
24696 int
24697 main ()
24698 {
24699 if ((ac__type_new_ *) 0)
24700   return 0;
24701 if (sizeof (ac__type_new_))
24702   return 0;
24703   ;
24704   return 0;
24705 }
24706 _ACEOF
24707 rm -f conftest.$ac_objext
24708 if { (ac_try="$ac_compile"
24709 case "(($ac_try" in
24710   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24711   *) ac_try_echo=$ac_try;;
24712 esac
24713 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24714   (eval "$ac_compile") 2>conftest.er1
24715   ac_status=$?
24716   grep -v '^ *+' conftest.er1 >conftest.err
24717   rm -f conftest.er1
24718   cat conftest.err >&5
24719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24720   (exit $ac_status); } && {
24721          test -z "$ac_c_werror_flag" ||
24722          test ! -s conftest.err
24723        } && test -s conftest.$ac_objext; then
24724   ac_cv_type_size_t=yes
24725 else
24726   echo "$as_me: failed program was:" >&5
24727 sed 's/^/| /' conftest.$ac_ext >&5
24728
24729         ac_cv_type_size_t=no
24730 fi
24731
24732 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24733 fi
24734 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
24735 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
24736 if test $ac_cv_type_size_t = yes; then
24737   :
24738 else
24739   
24740 cat >>confdefs.h <<_ACEOF
24741 @%:@define size_t unsigned int
24742 _ACEOF
24743
24744 fi
24745
24746 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
24747 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
24748 if test "${ac_cv_header_time+set}" = set; then
24749   echo $ECHO_N "(cached) $ECHO_C" >&6
24750 else
24751   cat >conftest.$ac_ext <<_ACEOF
24752 /* confdefs.h.  */
24753 _ACEOF
24754 cat confdefs.h >>conftest.$ac_ext
24755 cat >>conftest.$ac_ext <<_ACEOF
24756 /* end confdefs.h.  */
24757 #include <sys/types.h>
24758 #include <sys/time.h>
24759 #include <time.h>
24760
24761 int
24762 main ()
24763 {
24764 if ((struct tm *) 0)
24765 return 0;
24766   ;
24767   return 0;
24768 }
24769 _ACEOF
24770 rm -f conftest.$ac_objext
24771 if { (ac_try="$ac_compile"
24772 case "(($ac_try" in
24773   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24774   *) ac_try_echo=$ac_try;;
24775 esac
24776 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24777   (eval "$ac_compile") 2>conftest.er1
24778   ac_status=$?
24779   grep -v '^ *+' conftest.er1 >conftest.err
24780   rm -f conftest.er1
24781   cat conftest.err >&5
24782   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24783   (exit $ac_status); } && {
24784          test -z "$ac_c_werror_flag" ||
24785          test ! -s conftest.err
24786        } && test -s conftest.$ac_objext; then
24787   ac_cv_header_time=yes
24788 else
24789   echo "$as_me: failed program was:" >&5
24790 sed 's/^/| /' conftest.$ac_ext >&5
24791
24792         ac_cv_header_time=no
24793 fi
24794
24795 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24796 fi
24797 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
24798 echo "${ECHO_T}$ac_cv_header_time" >&6; }
24799 if test $ac_cv_header_time = yes; then
24800   
24801 cat >>confdefs.h <<\_ACEOF
24802 @%:@define TIME_WITH_SYS_TIME 1
24803 _ACEOF
24804
24805 fi
24806
24807 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
24808 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
24809 if test "${ac_cv_struct_tm+set}" = set; then
24810   echo $ECHO_N "(cached) $ECHO_C" >&6
24811 else
24812   cat >conftest.$ac_ext <<_ACEOF
24813 /* confdefs.h.  */
24814 _ACEOF
24815 cat confdefs.h >>conftest.$ac_ext
24816 cat >>conftest.$ac_ext <<_ACEOF
24817 /* end confdefs.h.  */
24818 #include <sys/types.h>
24819 #include <time.h>
24820
24821 int
24822 main ()
24823 {
24824 struct tm tm;
24825                                      int *p = &tm.tm_sec;
24826                                      return !p;
24827   ;
24828   return 0;
24829 }
24830 _ACEOF
24831 rm -f conftest.$ac_objext
24832 if { (ac_try="$ac_compile"
24833 case "(($ac_try" in
24834   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24835   *) ac_try_echo=$ac_try;;
24836 esac
24837 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24838   (eval "$ac_compile") 2>conftest.er1
24839   ac_status=$?
24840   grep -v '^ *+' conftest.er1 >conftest.err
24841   rm -f conftest.er1
24842   cat conftest.err >&5
24843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24844   (exit $ac_status); } && {
24845          test -z "$ac_c_werror_flag" ||
24846          test ! -s conftest.err
24847        } && test -s conftest.$ac_objext; then
24848   ac_cv_struct_tm=time.h
24849 else
24850   echo "$as_me: failed program was:" >&5
24851 sed 's/^/| /' conftest.$ac_ext >&5
24852
24853         ac_cv_struct_tm=sys/time.h
24854 fi
24855
24856 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24857 fi
24858 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
24859 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
24860 if test $ac_cv_struct_tm = sys/time.h; then
24861   
24862 cat >>confdefs.h <<\_ACEOF
24863 @%:@define TM_IN_SYS_TIME 1
24864 _ACEOF
24865
24866 fi
24867
24868
24869 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
24870 # for constant arguments.  Useless!
24871 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
24872 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
24873 if test "${ac_cv_working_alloca_h+set}" = set; then
24874   echo $ECHO_N "(cached) $ECHO_C" >&6
24875 else
24876   cat >conftest.$ac_ext <<_ACEOF
24877 /* confdefs.h.  */
24878 _ACEOF
24879 cat confdefs.h >>conftest.$ac_ext
24880 cat >>conftest.$ac_ext <<_ACEOF
24881 /* end confdefs.h.  */
24882 @%:@include <alloca.h>
24883 int
24884 main ()
24885 {
24886 char *p = (char *) alloca (2 * sizeof (int));
24887                           if (p) return 0;
24888   ;
24889   return 0;
24890 }
24891 _ACEOF
24892 rm -f conftest.$ac_objext conftest$ac_exeext
24893 if { (ac_try="$ac_link"
24894 case "(($ac_try" in
24895   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24896   *) ac_try_echo=$ac_try;;
24897 esac
24898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24899   (eval "$ac_link") 2>conftest.er1
24900   ac_status=$?
24901   grep -v '^ *+' conftest.er1 >conftest.err
24902   rm -f conftest.er1
24903   cat conftest.err >&5
24904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24905   (exit $ac_status); } && {
24906          test -z "$ac_c_werror_flag" ||
24907          test ! -s conftest.err
24908        } && test -s conftest$ac_exeext &&
24909        $as_test_x conftest$ac_exeext; then
24910   ac_cv_working_alloca_h=yes
24911 else
24912   echo "$as_me: failed program was:" >&5
24913 sed 's/^/| /' conftest.$ac_ext >&5
24914
24915         ac_cv_working_alloca_h=no
24916 fi
24917
24918 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24919       conftest$ac_exeext conftest.$ac_ext
24920 fi
24921 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
24922 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
24923 if test $ac_cv_working_alloca_h = yes; then
24924   
24925 cat >>confdefs.h <<\_ACEOF
24926 @%:@define HAVE_ALLOCA_H 1
24927 _ACEOF
24928
24929 fi
24930
24931 { echo "$as_me:$LINENO: checking for alloca" >&5
24932 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
24933 if test "${ac_cv_func_alloca_works+set}" = set; then
24934   echo $ECHO_N "(cached) $ECHO_C" >&6
24935 else
24936   cat >conftest.$ac_ext <<_ACEOF
24937 /* confdefs.h.  */
24938 _ACEOF
24939 cat confdefs.h >>conftest.$ac_ext
24940 cat >>conftest.$ac_ext <<_ACEOF
24941 /* end confdefs.h.  */
24942 #ifdef __GNUC__
24943 # define alloca __builtin_alloca
24944 #else
24945 # ifdef _MSC_VER
24946 #  include <malloc.h>
24947 #  define alloca _alloca
24948 # else
24949 #  ifdef HAVE_ALLOCA_H
24950 #   include <alloca.h>
24951 #  else
24952 #   ifdef _AIX
24953  #pragma alloca
24954 #   else
24955 #    ifndef alloca /* predefined by HP cc +Olibcalls */
24956 char *alloca ();
24957 #    endif
24958 #   endif
24959 #  endif
24960 # endif
24961 #endif
24962
24963 int
24964 main ()
24965 {
24966 char *p = (char *) alloca (1);
24967                                     if (p) return 0;
24968   ;
24969   return 0;
24970 }
24971 _ACEOF
24972 rm -f conftest.$ac_objext conftest$ac_exeext
24973 if { (ac_try="$ac_link"
24974 case "(($ac_try" in
24975   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24976   *) ac_try_echo=$ac_try;;
24977 esac
24978 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24979   (eval "$ac_link") 2>conftest.er1
24980   ac_status=$?
24981   grep -v '^ *+' conftest.er1 >conftest.err
24982   rm -f conftest.er1
24983   cat conftest.err >&5
24984   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24985   (exit $ac_status); } && {
24986          test -z "$ac_c_werror_flag" ||
24987          test ! -s conftest.err
24988        } && test -s conftest$ac_exeext &&
24989        $as_test_x conftest$ac_exeext; then
24990   ac_cv_func_alloca_works=yes
24991 else
24992   echo "$as_me: failed program was:" >&5
24993 sed 's/^/| /' conftest.$ac_ext >&5
24994
24995         ac_cv_func_alloca_works=no
24996 fi
24997
24998 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24999       conftest$ac_exeext conftest.$ac_ext
25000 fi
25001 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
25002 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
25003
25004 if test $ac_cv_func_alloca_works = yes; then
25005   
25006 cat >>confdefs.h <<\_ACEOF
25007 @%:@define HAVE_ALLOCA 1
25008 _ACEOF
25009
25010 else
25011   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
25012 # that cause trouble.  Some versions do not even contain alloca or
25013 # contain a buggy version.  If you still want to use their alloca,
25014 # use ar to extract alloca.o from them instead of compiling alloca.c.
25015
25016 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
25017
25018 cat >>confdefs.h <<\_ACEOF
25019 @%:@define C_ALLOCA 1
25020 _ACEOF
25021
25022
25023 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
25024 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
25025 if test "${ac_cv_os_cray+set}" = set; then
25026   echo $ECHO_N "(cached) $ECHO_C" >&6
25027 else
25028   cat >conftest.$ac_ext <<_ACEOF
25029 /* confdefs.h.  */
25030 _ACEOF
25031 cat confdefs.h >>conftest.$ac_ext
25032 cat >>conftest.$ac_ext <<_ACEOF
25033 /* end confdefs.h.  */
25034 #if defined CRAY && ! defined CRAY2
25035 webecray
25036 #else
25037 wenotbecray
25038 #endif
25039
25040 _ACEOF
25041 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25042   $EGREP "webecray" >/dev/null 2>&1; then
25043   ac_cv_os_cray=yes
25044 else
25045   ac_cv_os_cray=no
25046 fi
25047 rm -f conftest*
25048
25049 fi
25050 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
25051 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
25052 if test $ac_cv_os_cray = yes; then
25053   for ac_func in _getb67 GETB67 getb67; do
25054     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25055 { echo "$as_me:$LINENO: checking for $ac_func" >&5
25056 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
25057 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
25058   echo $ECHO_N "(cached) $ECHO_C" >&6
25059 else
25060   cat >conftest.$ac_ext <<_ACEOF
25061 /* confdefs.h.  */
25062 _ACEOF
25063 cat confdefs.h >>conftest.$ac_ext
25064 cat >>conftest.$ac_ext <<_ACEOF
25065 /* end confdefs.h.  */
25066 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25067    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25068 #define $ac_func innocuous_$ac_func
25069
25070 /* System header to define __stub macros and hopefully few prototypes,
25071     which can conflict with char $ac_func (); below.
25072     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25073     <limits.h> exists even on freestanding compilers.  */
25074
25075 #ifdef __STDC__
25076 # include <limits.h>
25077 #else
25078 # include <assert.h>
25079 #endif
25080
25081 #undef $ac_func
25082
25083 /* Override any GCC internal prototype to avoid an error.
25084    Use char because int might match the return type of a GCC
25085    builtin and then its argument prototype would still apply.  */
25086 #ifdef __cplusplus
25087 extern "C"
25088 #endif
25089 char $ac_func ();
25090 /* The GNU C library defines this for functions which it implements
25091     to always fail with ENOSYS.  Some functions are actually named
25092     something starting with __ and the normal name is an alias.  */
25093 #if defined __stub_$ac_func || defined __stub___$ac_func
25094 choke me
25095 #endif
25096
25097 int
25098 main ()
25099 {
25100 return $ac_func ();
25101   ;
25102   return 0;
25103 }
25104 _ACEOF
25105 rm -f conftest.$ac_objext conftest$ac_exeext
25106 if { (ac_try="$ac_link"
25107 case "(($ac_try" in
25108   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25109   *) ac_try_echo=$ac_try;;
25110 esac
25111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25112   (eval "$ac_link") 2>conftest.er1
25113   ac_status=$?
25114   grep -v '^ *+' conftest.er1 >conftest.err
25115   rm -f conftest.er1
25116   cat conftest.err >&5
25117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25118   (exit $ac_status); } && {
25119          test -z "$ac_c_werror_flag" ||
25120          test ! -s conftest.err
25121        } && test -s conftest$ac_exeext &&
25122        $as_test_x conftest$ac_exeext; then
25123   eval "$as_ac_var=yes"
25124 else
25125   echo "$as_me: failed program was:" >&5
25126 sed 's/^/| /' conftest.$ac_ext >&5
25127
25128         eval "$as_ac_var=no"
25129 fi
25130
25131 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25132       conftest$ac_exeext conftest.$ac_ext
25133 fi
25134 ac_res=`eval echo '${'$as_ac_var'}'`
25135                { echo "$as_me:$LINENO: result: $ac_res" >&5
25136 echo "${ECHO_T}$ac_res" >&6; }
25137 if test `eval echo '${'$as_ac_var'}'` = yes; then
25138   
25139 cat >>confdefs.h <<_ACEOF
25140 @%:@define CRAY_STACKSEG_END $ac_func
25141 _ACEOF
25142
25143     break
25144 fi
25145
25146   done
25147 fi
25148
25149 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
25150 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
25151 if test "${ac_cv_c_stack_direction+set}" = set; then
25152   echo $ECHO_N "(cached) $ECHO_C" >&6
25153 else
25154   if test "$cross_compiling" = yes; then
25155   ac_cv_c_stack_direction=0
25156 else
25157   cat >conftest.$ac_ext <<_ACEOF
25158 /* confdefs.h.  */
25159 _ACEOF
25160 cat confdefs.h >>conftest.$ac_ext
25161 cat >>conftest.$ac_ext <<_ACEOF
25162 /* end confdefs.h.  */
25163 $ac_includes_default
25164 int
25165 find_stack_direction ()
25166 {
25167   static char *addr = 0;
25168   auto char dummy;
25169   if (addr == 0)
25170     {
25171       addr = &dummy;
25172       return find_stack_direction ();
25173     }
25174   else
25175     return (&dummy > addr) ? 1 : -1;
25176 }
25177
25178 int
25179 main ()
25180 {
25181   return find_stack_direction () < 0;
25182 }
25183 _ACEOF
25184 rm -f conftest$ac_exeext
25185 if { (ac_try="$ac_link"
25186 case "(($ac_try" in
25187   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25188   *) ac_try_echo=$ac_try;;
25189 esac
25190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25191   (eval "$ac_link") 2>&5
25192   ac_status=$?
25193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25194   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25195   { (case "(($ac_try" in
25196   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25197   *) ac_try_echo=$ac_try;;
25198 esac
25199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25200   (eval "$ac_try") 2>&5
25201   ac_status=$?
25202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25203   (exit $ac_status); }; }; then
25204   ac_cv_c_stack_direction=1
25205 else
25206   echo "$as_me: program exited with status $ac_status" >&5
25207 echo "$as_me: failed program was:" >&5
25208 sed 's/^/| /' conftest.$ac_ext >&5
25209
25210 ( exit $ac_status )
25211 ac_cv_c_stack_direction=-1
25212 fi
25213 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25214 fi
25215
25216
25217 fi
25218 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
25219 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
25220
25221 cat >>confdefs.h <<_ACEOF
25222 @%:@define STACK_DIRECTION $ac_cv_c_stack_direction
25223 _ACEOF
25224
25225
25226 fi
25227
25228
25229
25230
25231
25232
25233 ac_header_dirent=no
25234 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
25235   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
25236 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
25237 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
25238 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25239   echo $ECHO_N "(cached) $ECHO_C" >&6
25240 else
25241   cat >conftest.$ac_ext <<_ACEOF
25242 /* confdefs.h.  */
25243 _ACEOF
25244 cat confdefs.h >>conftest.$ac_ext
25245 cat >>conftest.$ac_ext <<_ACEOF
25246 /* end confdefs.h.  */
25247 #include <sys/types.h>
25248 #include <$ac_hdr>
25249
25250 int
25251 main ()
25252 {
25253 if ((DIR *) 0)
25254 return 0;
25255   ;
25256   return 0;
25257 }
25258 _ACEOF
25259 rm -f conftest.$ac_objext
25260 if { (ac_try="$ac_compile"
25261 case "(($ac_try" in
25262   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25263   *) ac_try_echo=$ac_try;;
25264 esac
25265 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25266   (eval "$ac_compile") 2>conftest.er1
25267   ac_status=$?
25268   grep -v '^ *+' conftest.er1 >conftest.err
25269   rm -f conftest.er1
25270   cat conftest.err >&5
25271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25272   (exit $ac_status); } && {
25273          test -z "$ac_c_werror_flag" ||
25274          test ! -s conftest.err
25275        } && test -s conftest.$ac_objext; then
25276   eval "$as_ac_Header=yes"
25277 else
25278   echo "$as_me: failed program was:" >&5
25279 sed 's/^/| /' conftest.$ac_ext >&5
25280
25281         eval "$as_ac_Header=no"
25282 fi
25283
25284 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25285 fi
25286 ac_res=`eval echo '${'$as_ac_Header'}'`
25287                { echo "$as_me:$LINENO: result: $ac_res" >&5
25288 echo "${ECHO_T}$ac_res" >&6; }
25289 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25290   cat >>confdefs.h <<_ACEOF
25291 @%:@define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
25292 _ACEOF
25293
25294 ac_header_dirent=$ac_hdr; break
25295 fi
25296
25297 done
25298 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
25299 if test $ac_header_dirent = dirent.h; then
25300   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
25301 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
25302 if test "${ac_cv_search_opendir+set}" = set; then
25303   echo $ECHO_N "(cached) $ECHO_C" >&6
25304 else
25305   ac_func_search_save_LIBS=$LIBS
25306 cat >conftest.$ac_ext <<_ACEOF
25307 /* confdefs.h.  */
25308 _ACEOF
25309 cat confdefs.h >>conftest.$ac_ext
25310 cat >>conftest.$ac_ext <<_ACEOF
25311 /* end confdefs.h.  */
25312
25313 /* Override any GCC internal prototype to avoid an error.
25314    Use char because int might match the return type of a GCC
25315    builtin and then its argument prototype would still apply.  */
25316 #ifdef __cplusplus
25317 extern "C"
25318 #endif
25319 char opendir ();
25320 int
25321 main ()
25322 {
25323 return opendir ();
25324   ;
25325   return 0;
25326 }
25327 _ACEOF
25328 for ac_lib in '' dir; do
25329   if test -z "$ac_lib"; then
25330     ac_res="none required"
25331   else
25332     ac_res=-l$ac_lib
25333     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
25334   fi
25335   rm -f conftest.$ac_objext conftest$ac_exeext
25336 if { (ac_try="$ac_link"
25337 case "(($ac_try" in
25338   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25339   *) ac_try_echo=$ac_try;;
25340 esac
25341 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25342   (eval "$ac_link") 2>conftest.er1
25343   ac_status=$?
25344   grep -v '^ *+' conftest.er1 >conftest.err
25345   rm -f conftest.er1
25346   cat conftest.err >&5
25347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25348   (exit $ac_status); } && {
25349          test -z "$ac_c_werror_flag" ||
25350          test ! -s conftest.err
25351        } && test -s conftest$ac_exeext &&
25352        $as_test_x conftest$ac_exeext; then
25353   ac_cv_search_opendir=$ac_res
25354 else
25355   echo "$as_me: failed program was:" >&5
25356 sed 's/^/| /' conftest.$ac_ext >&5
25357
25358         
25359 fi
25360
25361 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25362       conftest$ac_exeext 
25363   if test "${ac_cv_search_opendir+set}" = set; then
25364   break
25365 fi
25366 done
25367 if test "${ac_cv_search_opendir+set}" = set; then
25368   :
25369 else
25370   ac_cv_search_opendir=no
25371 fi
25372 rm conftest.$ac_ext
25373 LIBS=$ac_func_search_save_LIBS
25374 fi
25375 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
25376 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
25377 ac_res=$ac_cv_search_opendir
25378 if test "$ac_res" != no; then
25379   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25380   
25381 fi
25382
25383 else
25384   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
25385 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
25386 if test "${ac_cv_search_opendir+set}" = set; then
25387   echo $ECHO_N "(cached) $ECHO_C" >&6
25388 else
25389   ac_func_search_save_LIBS=$LIBS
25390 cat >conftest.$ac_ext <<_ACEOF
25391 /* confdefs.h.  */
25392 _ACEOF
25393 cat confdefs.h >>conftest.$ac_ext
25394 cat >>conftest.$ac_ext <<_ACEOF
25395 /* end confdefs.h.  */
25396
25397 /* Override any GCC internal prototype to avoid an error.
25398    Use char because int might match the return type of a GCC
25399    builtin and then its argument prototype would still apply.  */
25400 #ifdef __cplusplus
25401 extern "C"
25402 #endif
25403 char opendir ();
25404 int
25405 main ()
25406 {
25407 return opendir ();
25408   ;
25409   return 0;
25410 }
25411 _ACEOF
25412 for ac_lib in '' x; do
25413   if test -z "$ac_lib"; then
25414     ac_res="none required"
25415   else
25416     ac_res=-l$ac_lib
25417     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
25418   fi
25419   rm -f conftest.$ac_objext conftest$ac_exeext
25420 if { (ac_try="$ac_link"
25421 case "(($ac_try" in
25422   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25423   *) ac_try_echo=$ac_try;;
25424 esac
25425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25426   (eval "$ac_link") 2>conftest.er1
25427   ac_status=$?
25428   grep -v '^ *+' conftest.er1 >conftest.err
25429   rm -f conftest.er1
25430   cat conftest.err >&5
25431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25432   (exit $ac_status); } && {
25433          test -z "$ac_c_werror_flag" ||
25434          test ! -s conftest.err
25435        } && test -s conftest$ac_exeext &&
25436        $as_test_x conftest$ac_exeext; then
25437   ac_cv_search_opendir=$ac_res
25438 else
25439   echo "$as_me: failed program was:" >&5
25440 sed 's/^/| /' conftest.$ac_ext >&5
25441
25442         
25443 fi
25444
25445 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25446       conftest$ac_exeext 
25447   if test "${ac_cv_search_opendir+set}" = set; then
25448   break
25449 fi
25450 done
25451 if test "${ac_cv_search_opendir+set}" = set; then
25452   :
25453 else
25454   ac_cv_search_opendir=no
25455 fi
25456 rm conftest.$ac_ext
25457 LIBS=$ac_func_search_save_LIBS
25458 fi
25459 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
25460 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
25461 ac_res=$ac_cv_search_opendir
25462 if test "$ac_res" != no; then
25463   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25464   
25465 fi
25466
25467 fi
25468
25469 { echo "$as_me:$LINENO: checking whether closedir returns void" >&5
25470 echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6; }
25471 if test "${ac_cv_func_closedir_void+set}" = set; then
25472   echo $ECHO_N "(cached) $ECHO_C" >&6
25473 else
25474   if test "$cross_compiling" = yes; then
25475   ac_cv_func_closedir_void=yes
25476 else
25477   cat >conftest.$ac_ext <<_ACEOF
25478 /* confdefs.h.  */
25479 _ACEOF
25480 cat confdefs.h >>conftest.$ac_ext
25481 cat >>conftest.$ac_ext <<_ACEOF
25482 /* end confdefs.h.  */
25483 $ac_includes_default
25484 #include <$ac_header_dirent>
25485 #ifndef __cplusplus
25486 int closedir ();
25487 #endif
25488
25489 int
25490 main ()
25491 {
25492 return closedir (opendir (".")) != 0;
25493   ;
25494   return 0;
25495 }
25496 _ACEOF
25497 rm -f conftest$ac_exeext
25498 if { (ac_try="$ac_link"
25499 case "(($ac_try" in
25500   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25501   *) ac_try_echo=$ac_try;;
25502 esac
25503 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25504   (eval "$ac_link") 2>&5
25505   ac_status=$?
25506   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25507   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25508   { (case "(($ac_try" in
25509   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25510   *) ac_try_echo=$ac_try;;
25511 esac
25512 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25513   (eval "$ac_try") 2>&5
25514   ac_status=$?
25515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25516   (exit $ac_status); }; }; then
25517   ac_cv_func_closedir_void=no
25518 else
25519   echo "$as_me: program exited with status $ac_status" >&5
25520 echo "$as_me: failed program was:" >&5
25521 sed 's/^/| /' conftest.$ac_ext >&5
25522
25523 ( exit $ac_status )
25524 ac_cv_func_closedir_void=yes
25525 fi
25526 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25527 fi
25528
25529
25530 fi
25531 { echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
25532 echo "${ECHO_T}$ac_cv_func_closedir_void" >&6; }
25533 if test $ac_cv_func_closedir_void = yes; then
25534   
25535 cat >>confdefs.h <<\_ACEOF
25536 @%:@define CLOSEDIR_VOID 1
25537 _ACEOF
25538
25539 fi
25540
25541 { echo "$as_me:$LINENO: checking for error_at_line" >&5
25542 echo $ECHO_N "checking for error_at_line... $ECHO_C" >&6; }
25543 if test "${ac_cv_lib_error_at_line+set}" = set; then
25544   echo $ECHO_N "(cached) $ECHO_C" >&6
25545 else
25546   cat >conftest.$ac_ext <<_ACEOF
25547 /* confdefs.h.  */
25548 _ACEOF
25549 cat confdefs.h >>conftest.$ac_ext
25550 cat >>conftest.$ac_ext <<_ACEOF
25551 /* end confdefs.h.  */
25552 #include <error.h>
25553 int
25554 main ()
25555 {
25556 error_at_line (0, 0, "", 0, "an error occurred");
25557   ;
25558   return 0;
25559 }
25560 _ACEOF
25561 rm -f conftest.$ac_objext conftest$ac_exeext
25562 if { (ac_try="$ac_link"
25563 case "(($ac_try" in
25564   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25565   *) ac_try_echo=$ac_try;;
25566 esac
25567 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25568   (eval "$ac_link") 2>conftest.er1
25569   ac_status=$?
25570   grep -v '^ *+' conftest.er1 >conftest.err
25571   rm -f conftest.er1
25572   cat conftest.err >&5
25573   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25574   (exit $ac_status); } && {
25575          test -z "$ac_c_werror_flag" ||
25576          test ! -s conftest.err
25577        } && test -s conftest$ac_exeext &&
25578        $as_test_x conftest$ac_exeext; then
25579   ac_cv_lib_error_at_line=yes
25580 else
25581   echo "$as_me: failed program was:" >&5
25582 sed 's/^/| /' conftest.$ac_ext >&5
25583
25584         ac_cv_lib_error_at_line=no
25585 fi
25586
25587 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25588       conftest$ac_exeext conftest.$ac_ext
25589 fi
25590 { echo "$as_me:$LINENO: result: $ac_cv_lib_error_at_line" >&5
25591 echo "${ECHO_T}$ac_cv_lib_error_at_line" >&6; }
25592 if test $ac_cv_lib_error_at_line = no; then
25593   case " $LIB@&t@OBJS " in
25594   *" error.$ac_objext "* ) ;;
25595   *) LIB@&t@OBJS="$LIB@&t@OBJS error.$ac_objext"
25596  ;;
25597 esac
25598
25599 fi
25600
25601
25602 for ac_header in vfork.h
25603 do
25604 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25605 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25606   { echo "$as_me:$LINENO: checking for $ac_header" >&5
25607 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
25608 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25609   echo $ECHO_N "(cached) $ECHO_C" >&6
25610 fi
25611 ac_res=`eval echo '${'$as_ac_Header'}'`
25612                { echo "$as_me:$LINENO: result: $ac_res" >&5
25613 echo "${ECHO_T}$ac_res" >&6; }
25614 else
25615   # Is the header compilable?
25616 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
25617 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
25618 cat >conftest.$ac_ext <<_ACEOF
25619 /* confdefs.h.  */
25620 _ACEOF
25621 cat confdefs.h >>conftest.$ac_ext
25622 cat >>conftest.$ac_ext <<_ACEOF
25623 /* end confdefs.h.  */
25624 $ac_includes_default
25625 @%:@include <$ac_header>
25626 _ACEOF
25627 rm -f conftest.$ac_objext
25628 if { (ac_try="$ac_compile"
25629 case "(($ac_try" in
25630   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25631   *) ac_try_echo=$ac_try;;
25632 esac
25633 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25634   (eval "$ac_compile") 2>conftest.er1
25635   ac_status=$?
25636   grep -v '^ *+' conftest.er1 >conftest.err
25637   rm -f conftest.er1
25638   cat conftest.err >&5
25639   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25640   (exit $ac_status); } && {
25641          test -z "$ac_c_werror_flag" ||
25642          test ! -s conftest.err
25643        } && test -s conftest.$ac_objext; then
25644   ac_header_compiler=yes
25645 else
25646   echo "$as_me: failed program was:" >&5
25647 sed 's/^/| /' conftest.$ac_ext >&5
25648
25649         ac_header_compiler=no
25650 fi
25651
25652 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25653 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25654 echo "${ECHO_T}$ac_header_compiler" >&6; }
25655
25656 # Is the header present?
25657 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
25658 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
25659 cat >conftest.$ac_ext <<_ACEOF
25660 /* confdefs.h.  */
25661 _ACEOF
25662 cat confdefs.h >>conftest.$ac_ext
25663 cat >>conftest.$ac_ext <<_ACEOF
25664 /* end confdefs.h.  */
25665 @%:@include <$ac_header>
25666 _ACEOF
25667 if { (ac_try="$ac_cpp conftest.$ac_ext"
25668 case "(($ac_try" in
25669   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25670   *) ac_try_echo=$ac_try;;
25671 esac
25672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25673   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25674   ac_status=$?
25675   grep -v '^ *+' conftest.er1 >conftest.err
25676   rm -f conftest.er1
25677   cat conftest.err >&5
25678   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25679   (exit $ac_status); } >/dev/null && {
25680          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25681          test ! -s conftest.err
25682        }; then
25683   ac_header_preproc=yes
25684 else
25685   echo "$as_me: failed program was:" >&5
25686 sed 's/^/| /' conftest.$ac_ext >&5
25687
25688   ac_header_preproc=no
25689 fi
25690
25691 rm -f conftest.err conftest.$ac_ext
25692 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25693 echo "${ECHO_T}$ac_header_preproc" >&6; }
25694
25695 # So?  What about this header?
25696 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25697   yes:no: )
25698     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25699 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25700     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25701 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25702     ac_header_preproc=yes
25703     ;;
25704   no:yes:* )
25705     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25706 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25707     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
25708 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
25709     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25710 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25711     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
25712 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
25713     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25714 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25715     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25716 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25717     ( cat <<\_ASBOX
25718 @%:@@%:@ ------------------------------- @%:@@%:@
25719 @%:@@%:@ Report this to nfs@lists.sf.net @%:@@%:@
25720 @%:@@%:@ ------------------------------- @%:@@%:@
25721 _ASBOX
25722      ) | sed "s/^/$as_me: WARNING:     /" >&2
25723     ;;
25724 esac
25725 { echo "$as_me:$LINENO: checking for $ac_header" >&5
25726 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
25727 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25728   echo $ECHO_N "(cached) $ECHO_C" >&6
25729 else
25730   eval "$as_ac_Header=\$ac_header_preproc"
25731 fi
25732 ac_res=`eval echo '${'$as_ac_Header'}'`
25733                { echo "$as_me:$LINENO: result: $ac_res" >&5
25734 echo "${ECHO_T}$ac_res" >&6; }
25735
25736 fi
25737 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25738   cat >>confdefs.h <<_ACEOF
25739 @%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25740 _ACEOF
25741  
25742 fi
25743
25744 done
25745
25746
25747
25748 for ac_func in fork vfork
25749 do
25750 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25751 { echo "$as_me:$LINENO: checking for $ac_func" >&5
25752 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
25753 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
25754   echo $ECHO_N "(cached) $ECHO_C" >&6
25755 else
25756   cat >conftest.$ac_ext <<_ACEOF
25757 /* confdefs.h.  */
25758 _ACEOF
25759 cat confdefs.h >>conftest.$ac_ext
25760 cat >>conftest.$ac_ext <<_ACEOF
25761 /* end confdefs.h.  */
25762 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25763    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25764 #define $ac_func innocuous_$ac_func
25765
25766 /* System header to define __stub macros and hopefully few prototypes,
25767     which can conflict with char $ac_func (); below.
25768     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25769     <limits.h> exists even on freestanding compilers.  */
25770
25771 #ifdef __STDC__
25772 # include <limits.h>
25773 #else
25774 # include <assert.h>
25775 #endif
25776
25777 #undef $ac_func
25778
25779 /* Override any GCC internal prototype to avoid an error.
25780    Use char because int might match the return type of a GCC
25781    builtin and then its argument prototype would still apply.  */
25782 #ifdef __cplusplus
25783 extern "C"
25784 #endif
25785 char $ac_func ();
25786 /* The GNU C library defines this for functions which it implements
25787     to always fail with ENOSYS.  Some functions are actually named
25788     something starting with __ and the normal name is an alias.  */
25789 #if defined __stub_$ac_func || defined __stub___$ac_func
25790 choke me
25791 #endif
25792
25793 int
25794 main ()
25795 {
25796 return $ac_func ();
25797   ;
25798   return 0;
25799 }
25800 _ACEOF
25801 rm -f conftest.$ac_objext conftest$ac_exeext
25802 if { (ac_try="$ac_link"
25803 case "(($ac_try" in
25804   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25805   *) ac_try_echo=$ac_try;;
25806 esac
25807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25808   (eval "$ac_link") 2>conftest.er1
25809   ac_status=$?
25810   grep -v '^ *+' conftest.er1 >conftest.err
25811   rm -f conftest.er1
25812   cat conftest.err >&5
25813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25814   (exit $ac_status); } && {
25815          test -z "$ac_c_werror_flag" ||
25816          test ! -s conftest.err
25817        } && test -s conftest$ac_exeext &&
25818        $as_test_x conftest$ac_exeext; then
25819   eval "$as_ac_var=yes"
25820 else
25821   echo "$as_me: failed program was:" >&5
25822 sed 's/^/| /' conftest.$ac_ext >&5
25823
25824         eval "$as_ac_var=no"
25825 fi
25826
25827 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25828       conftest$ac_exeext conftest.$ac_ext
25829 fi
25830 ac_res=`eval echo '${'$as_ac_var'}'`
25831                { echo "$as_me:$LINENO: result: $ac_res" >&5
25832 echo "${ECHO_T}$ac_res" >&6; }
25833 if test `eval echo '${'$as_ac_var'}'` = yes; then
25834   cat >>confdefs.h <<_ACEOF
25835 @%:@define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25836 _ACEOF
25837  
25838 fi
25839 done
25840
25841 if test "x$ac_cv_func_fork" = xyes; then
25842   { echo "$as_me:$LINENO: checking for working fork" >&5
25843 echo $ECHO_N "checking for working fork... $ECHO_C" >&6; }
25844 if test "${ac_cv_func_fork_works+set}" = set; then
25845   echo $ECHO_N "(cached) $ECHO_C" >&6
25846 else
25847   if test "$cross_compiling" = yes; then
25848   ac_cv_func_fork_works=cross
25849 else
25850   cat >conftest.$ac_ext <<_ACEOF
25851 /* confdefs.h.  */
25852 _ACEOF
25853 cat confdefs.h >>conftest.$ac_ext
25854 cat >>conftest.$ac_ext <<_ACEOF
25855 /* end confdefs.h.  */
25856 $ac_includes_default
25857 int
25858 main ()
25859 {
25860
25861           /* By Ruediger Kuhlmann. */
25862           return fork () < 0;
25863         
25864   ;
25865   return 0;
25866 }
25867 _ACEOF
25868 rm -f conftest$ac_exeext
25869 if { (ac_try="$ac_link"
25870 case "(($ac_try" in
25871   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25872   *) ac_try_echo=$ac_try;;
25873 esac
25874 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25875   (eval "$ac_link") 2>&5
25876   ac_status=$?
25877   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25878   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25879   { (case "(($ac_try" in
25880   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25881   *) ac_try_echo=$ac_try;;
25882 esac
25883 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25884   (eval "$ac_try") 2>&5
25885   ac_status=$?
25886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25887   (exit $ac_status); }; }; then
25888   ac_cv_func_fork_works=yes
25889 else
25890   echo "$as_me: program exited with status $ac_status" >&5
25891 echo "$as_me: failed program was:" >&5
25892 sed 's/^/| /' conftest.$ac_ext >&5
25893
25894 ( exit $ac_status )
25895 ac_cv_func_fork_works=no
25896 fi
25897 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25898 fi
25899
25900
25901 fi
25902 { echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
25903 echo "${ECHO_T}$ac_cv_func_fork_works" >&6; }
25904
25905 else
25906   ac_cv_func_fork_works=$ac_cv_func_fork
25907 fi
25908 if test "x$ac_cv_func_fork_works" = xcross; then
25909   case $host in
25910     *-*-amigaos* | *-*-msdosdjgpp*)
25911       # Override, as these systems have only a dummy fork() stub
25912       ac_cv_func_fork_works=no
25913       ;;
25914     *)
25915       ac_cv_func_fork_works=yes
25916       ;;
25917   esac
25918   { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
25919 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
25920 fi
25921 ac_cv_func_vfork_works=$ac_cv_func_vfork
25922 if test "x$ac_cv_func_vfork" = xyes; then
25923   { echo "$as_me:$LINENO: checking for working vfork" >&5
25924 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6; }
25925 if test "${ac_cv_func_vfork_works+set}" = set; then
25926   echo $ECHO_N "(cached) $ECHO_C" >&6
25927 else
25928   if test "$cross_compiling" = yes; then
25929   ac_cv_func_vfork_works=cross
25930 else
25931   cat >conftest.$ac_ext <<_ACEOF
25932 /* confdefs.h.  */
25933 _ACEOF
25934 cat confdefs.h >>conftest.$ac_ext
25935 cat >>conftest.$ac_ext <<_ACEOF
25936 /* end confdefs.h.  */
25937 /* Thanks to Paul Eggert for this test.  */
25938 $ac_includes_default
25939 #include <sys/wait.h>
25940 #ifdef HAVE_VFORK_H
25941 # include <vfork.h>
25942 #endif
25943 /* On some sparc systems, changes by the child to local and incoming
25944    argument registers are propagated back to the parent.  The compiler
25945    is told about this with #include <vfork.h>, but some compilers
25946    (e.g. gcc -O) don't grok <vfork.h>.  Test for this by using a
25947    static variable whose address is put into a register that is
25948    clobbered by the vfork.  */
25949 static void
25950 #ifdef __cplusplus
25951 sparc_address_test (int arg)
25952 # else
25953 sparc_address_test (arg) int arg;
25954 #endif
25955 {
25956   static pid_t child;
25957   if (!child) {
25958     child = vfork ();
25959     if (child < 0) {
25960       perror ("vfork");
25961       _exit(2);
25962     }
25963     if (!child) {
25964       arg = getpid();
25965       write(-1, "", 0);
25966       _exit (arg);
25967     }
25968   }
25969 }
25970
25971 int
25972 main ()
25973 {
25974   pid_t parent = getpid ();
25975   pid_t child;
25976
25977   sparc_address_test (0);
25978
25979   child = vfork ();
25980
25981   if (child == 0) {
25982     /* Here is another test for sparc vfork register problems.  This
25983        test uses lots of local variables, at least as many local
25984        variables as main has allocated so far including compiler
25985        temporaries.  4 locals are enough for gcc 1.40.3 on a Solaris
25986        4.1.3 sparc, but we use 8 to be safe.  A buggy compiler should
25987        reuse the register of parent for one of the local variables,
25988        since it will think that parent can't possibly be used any more
25989        in this routine.  Assigning to the local variable will thus
25990        munge parent in the parent process.  */
25991     pid_t
25992       p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
25993       p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
25994     /* Convince the compiler that p..p7 are live; otherwise, it might
25995        use the same hardware register for all 8 local variables.  */
25996     if (p != p1 || p != p2 || p != p3 || p != p4
25997         || p != p5 || p != p6 || p != p7)
25998       _exit(1);
25999
26000     /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
26001        from child file descriptors.  If the child closes a descriptor
26002        before it execs or exits, this munges the parent's descriptor
26003        as well.  Test for this by closing stdout in the child.  */
26004     _exit(close(fileno(stdout)) != 0);
26005   } else {
26006     int status;
26007     struct stat st;
26008
26009     while (wait(&status) != child)
26010       ;
26011     return (
26012          /* Was there some problem with vforking?  */
26013          child < 0
26014
26015          /* Did the child fail?  (This shouldn't happen.)  */
26016          || status
26017
26018          /* Did the vfork/compiler bug occur?  */
26019          || parent != getpid()
26020
26021          /* Did the file descriptor bug occur?  */
26022          || fstat(fileno(stdout), &st) != 0
26023          );
26024   }
26025 }
26026 _ACEOF
26027 rm -f conftest$ac_exeext
26028 if { (ac_try="$ac_link"
26029 case "(($ac_try" in
26030   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26031   *) ac_try_echo=$ac_try;;
26032 esac
26033 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26034   (eval "$ac_link") 2>&5
26035   ac_status=$?
26036   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26037   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26038   { (case "(($ac_try" in
26039   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26040   *) ac_try_echo=$ac_try;;
26041 esac
26042 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26043   (eval "$ac_try") 2>&5
26044   ac_status=$?
26045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26046   (exit $ac_status); }; }; then
26047   ac_cv_func_vfork_works=yes
26048 else
26049   echo "$as_me: program exited with status $ac_status" >&5
26050 echo "$as_me: failed program was:" >&5
26051 sed 's/^/| /' conftest.$ac_ext >&5
26052
26053 ( exit $ac_status )
26054 ac_cv_func_vfork_works=no
26055 fi
26056 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26057 fi
26058
26059
26060 fi
26061 { echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
26062 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6; }
26063
26064 fi;
26065 if test "x$ac_cv_func_fork_works" = xcross; then
26066   ac_cv_func_vfork_works=$ac_cv_func_vfork
26067   { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
26068 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
26069 fi
26070
26071 if test "x$ac_cv_func_vfork_works" = xyes; then
26072   
26073 cat >>confdefs.h <<\_ACEOF
26074 @%:@define HAVE_WORKING_VFORK 1
26075 _ACEOF
26076
26077 else
26078   
26079 cat >>confdefs.h <<\_ACEOF
26080 @%:@define vfork fork
26081 _ACEOF
26082
26083 fi
26084 if test "x$ac_cv_func_fork_works" = xyes; then
26085   
26086 cat >>confdefs.h <<\_ACEOF
26087 @%:@define HAVE_WORKING_FORK 1
26088 _ACEOF
26089
26090 fi
26091
26092 { echo "$as_me:$LINENO: checking type of array argument to getgroups" >&5
26093 echo $ECHO_N "checking type of array argument to getgroups... $ECHO_C" >&6; }
26094 if test "${ac_cv_type_getgroups+set}" = set; then
26095   echo $ECHO_N "(cached) $ECHO_C" >&6
26096 else
26097   if test "$cross_compiling" = yes; then
26098   ac_cv_type_getgroups=cross
26099 else
26100   cat >conftest.$ac_ext <<_ACEOF
26101 /* confdefs.h.  */
26102 _ACEOF
26103 cat confdefs.h >>conftest.$ac_ext
26104 cat >>conftest.$ac_ext <<_ACEOF
26105 /* end confdefs.h.  */
26106 /* Thanks to Mike Rendell for this test.  */
26107 $ac_includes_default
26108 #define NGID 256
26109 #undef MAX
26110 #define MAX(x, y) ((x) > (y) ? (x) : (y))
26111
26112 int
26113 main ()
26114 {
26115   gid_t gidset[NGID];
26116   int i, n;
26117   union { gid_t gval; long int lval; }  val;
26118
26119   val.lval = -1;
26120   for (i = 0; i < NGID; i++)
26121     gidset[i] = val.gval;
26122   n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
26123                  gidset);
26124   /* Exit non-zero if getgroups seems to require an array of ints.  This
26125      happens when gid_t is short int but getgroups modifies an array
26126      of ints.  */
26127   return n > 0 && gidset[n] != val.gval;
26128 }
26129 _ACEOF
26130 rm -f conftest$ac_exeext
26131 if { (ac_try="$ac_link"
26132 case "(($ac_try" in
26133   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26134   *) ac_try_echo=$ac_try;;
26135 esac
26136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26137   (eval "$ac_link") 2>&5
26138   ac_status=$?
26139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26140   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26141   { (case "(($ac_try" in
26142   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26143   *) ac_try_echo=$ac_try;;
26144 esac
26145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26146   (eval "$ac_try") 2>&5
26147   ac_status=$?
26148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26149   (exit $ac_status); }; }; then
26150   ac_cv_type_getgroups=gid_t
26151 else
26152   echo "$as_me: program exited with status $ac_status" >&5
26153 echo "$as_me: failed program was:" >&5
26154 sed 's/^/| /' conftest.$ac_ext >&5
26155
26156 ( exit $ac_status )
26157 ac_cv_type_getgroups=int
26158 fi
26159 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26160 fi
26161
26162
26163 if test $ac_cv_type_getgroups = cross; then
26164         cat >conftest.$ac_ext <<_ACEOF
26165 /* confdefs.h.  */
26166 _ACEOF
26167 cat confdefs.h >>conftest.$ac_ext
26168 cat >>conftest.$ac_ext <<_ACEOF
26169 /* end confdefs.h.  */
26170 #include <unistd.h>
26171
26172 _ACEOF
26173 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26174   $EGREP "getgroups.*int.*gid_t" >/dev/null 2>&1; then
26175   ac_cv_type_getgroups=gid_t
26176 else
26177   ac_cv_type_getgroups=int
26178 fi
26179 rm -f conftest*
26180
26181 fi
26182 fi
26183 { echo "$as_me:$LINENO: result: $ac_cv_type_getgroups" >&5
26184 echo "${ECHO_T}$ac_cv_type_getgroups" >&6; }
26185
26186 cat >>confdefs.h <<_ACEOF
26187 @%:@define GETGROUPS_T $ac_cv_type_getgroups
26188 _ACEOF
26189
26190
26191 { echo "$as_me:$LINENO: checking for getgroups" >&5
26192 echo $ECHO_N "checking for getgroups... $ECHO_C" >&6; }
26193 if test "${ac_cv_func_getgroups+set}" = set; then
26194   echo $ECHO_N "(cached) $ECHO_C" >&6
26195 else
26196   cat >conftest.$ac_ext <<_ACEOF
26197 /* confdefs.h.  */
26198 _ACEOF
26199 cat confdefs.h >>conftest.$ac_ext
26200 cat >>conftest.$ac_ext <<_ACEOF
26201 /* end confdefs.h.  */
26202 /* Define getgroups to an innocuous variant, in case <limits.h> declares getgroups.
26203    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26204 #define getgroups innocuous_getgroups
26205
26206 /* System header to define __stub macros and hopefully few prototypes,
26207     which can conflict with char getgroups (); below.
26208     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26209     <limits.h> exists even on freestanding compilers.  */
26210
26211 #ifdef __STDC__
26212 # include <limits.h>
26213 #else
26214 # include <assert.h>
26215 #endif
26216
26217 #undef getgroups
26218
26219 /* Override any GCC internal prototype to avoid an error.
26220    Use char because int might match the return type of a GCC
26221    builtin and then its argument prototype would still apply.  */
26222 #ifdef __cplusplus
26223 extern "C"
26224 #endif
26225 char getgroups ();
26226 /* The GNU C library defines this for functions which it implements
26227     to always fail with ENOSYS.  Some functions are actually named
26228     something starting with __ and the normal name is an alias.  */
26229 #if defined __stub_getgroups || defined __stub___getgroups
26230 choke me
26231 #endif
26232
26233 int
26234 main ()
26235 {
26236 return getgroups ();
26237   ;
26238   return 0;
26239 }
26240 _ACEOF
26241 rm -f conftest.$ac_objext conftest$ac_exeext
26242 if { (ac_try="$ac_link"
26243 case "(($ac_try" in
26244   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26245   *) ac_try_echo=$ac_try;;
26246 esac
26247 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26248   (eval "$ac_link") 2>conftest.er1
26249   ac_status=$?
26250   grep -v '^ *+' conftest.er1 >conftest.err
26251   rm -f conftest.er1
26252   cat conftest.err >&5
26253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26254   (exit $ac_status); } && {
26255          test -z "$ac_c_werror_flag" ||
26256          test ! -s conftest.err
26257        } && test -s conftest$ac_exeext &&
26258        $as_test_x conftest$ac_exeext; then
26259   ac_cv_func_getgroups=yes
26260 else
26261   echo "$as_me: failed program was:" >&5
26262 sed 's/^/| /' conftest.$ac_ext >&5
26263
26264         ac_cv_func_getgroups=no
26265 fi
26266
26267 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26268       conftest$ac_exeext conftest.$ac_ext
26269 fi
26270 { echo "$as_me:$LINENO: result: $ac_cv_func_getgroups" >&5
26271 echo "${ECHO_T}$ac_cv_func_getgroups" >&6; }
26272
26273
26274 # If we don't yet have getgroups, see if it's in -lbsd.
26275 # This is reported to be necessary on an ITOS 3000WS running SEIUX 3.1.
26276 ac_save_LIBS=$LIBS
26277 if test $ac_cv_func_getgroups = no; then
26278   { echo "$as_me:$LINENO: checking for getgroups in -lbsd" >&5
26279 echo $ECHO_N "checking for getgroups in -lbsd... $ECHO_C" >&6; }
26280 if test "${ac_cv_lib_bsd_getgroups+set}" = set; then
26281   echo $ECHO_N "(cached) $ECHO_C" >&6
26282 else
26283   ac_check_lib_save_LIBS=$LIBS
26284 LIBS="-lbsd  $LIBS"
26285 cat >conftest.$ac_ext <<_ACEOF
26286 /* confdefs.h.  */
26287 _ACEOF
26288 cat confdefs.h >>conftest.$ac_ext
26289 cat >>conftest.$ac_ext <<_ACEOF
26290 /* end confdefs.h.  */
26291
26292 /* Override any GCC internal prototype to avoid an error.
26293    Use char because int might match the return type of a GCC
26294    builtin and then its argument prototype would still apply.  */
26295 #ifdef __cplusplus
26296 extern "C"
26297 #endif
26298 char getgroups ();
26299 int
26300 main ()
26301 {
26302 return getgroups ();
26303   ;
26304   return 0;
26305 }
26306 _ACEOF
26307 rm -f conftest.$ac_objext conftest$ac_exeext
26308 if { (ac_try="$ac_link"
26309 case "(($ac_try" in
26310   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26311   *) ac_try_echo=$ac_try;;
26312 esac
26313 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26314   (eval "$ac_link") 2>conftest.er1
26315   ac_status=$?
26316   grep -v '^ *+' conftest.er1 >conftest.err
26317   rm -f conftest.er1
26318   cat conftest.err >&5
26319   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26320   (exit $ac_status); } && {
26321          test -z "$ac_c_werror_flag" ||
26322          test ! -s conftest.err
26323        } && test -s conftest$ac_exeext &&
26324        $as_test_x conftest$ac_exeext; then
26325   ac_cv_lib_bsd_getgroups=yes
26326 else
26327   echo "$as_me: failed program was:" >&5
26328 sed 's/^/| /' conftest.$ac_ext >&5
26329
26330         ac_cv_lib_bsd_getgroups=no
26331 fi
26332
26333 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26334       conftest$ac_exeext conftest.$ac_ext
26335 LIBS=$ac_check_lib_save_LIBS
26336 fi
26337 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_getgroups" >&5
26338 echo "${ECHO_T}$ac_cv_lib_bsd_getgroups" >&6; }
26339 if test $ac_cv_lib_bsd_getgroups = yes; then
26340   GETGROUPS_LIB=-lbsd
26341 fi
26342
26343 fi
26344
26345 # Run the program to test the functionality of the system-supplied
26346 # getgroups function only if there is such a function.
26347 if test $ac_cv_func_getgroups = yes; then
26348   { echo "$as_me:$LINENO: checking for working getgroups" >&5
26349 echo $ECHO_N "checking for working getgroups... $ECHO_C" >&6; }
26350 if test "${ac_cv_func_getgroups_works+set}" = set; then
26351   echo $ECHO_N "(cached) $ECHO_C" >&6
26352 else
26353   if test "$cross_compiling" = yes; then
26354   ac_cv_func_getgroups_works=no
26355 else
26356   cat >conftest.$ac_ext <<_ACEOF
26357 /* confdefs.h.  */
26358 _ACEOF
26359 cat confdefs.h >>conftest.$ac_ext
26360 cat >>conftest.$ac_ext <<_ACEOF
26361 /* end confdefs.h.  */
26362 $ac_includes_default
26363 int
26364 main ()
26365 {
26366 /* On Ultrix 4.3, getgroups (0, 0) always fails.  */
26367        return getgroups (0, 0) == -1;
26368   ;
26369   return 0;
26370 }
26371 _ACEOF
26372 rm -f conftest$ac_exeext
26373 if { (ac_try="$ac_link"
26374 case "(($ac_try" in
26375   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26376   *) ac_try_echo=$ac_try;;
26377 esac
26378 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26379   (eval "$ac_link") 2>&5
26380   ac_status=$?
26381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26382   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26383   { (case "(($ac_try" in
26384   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26385   *) ac_try_echo=$ac_try;;
26386 esac
26387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26388   (eval "$ac_try") 2>&5
26389   ac_status=$?
26390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26391   (exit $ac_status); }; }; then
26392   ac_cv_func_getgroups_works=yes
26393 else
26394   echo "$as_me: program exited with status $ac_status" >&5
26395 echo "$as_me: failed program was:" >&5
26396 sed 's/^/| /' conftest.$ac_ext >&5
26397
26398 ( exit $ac_status )
26399 ac_cv_func_getgroups_works=no
26400 fi
26401 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26402 fi
26403
26404
26405    
26406 fi
26407 { echo "$as_me:$LINENO: result: $ac_cv_func_getgroups_works" >&5
26408 echo "${ECHO_T}$ac_cv_func_getgroups_works" >&6; }
26409   if test $ac_cv_func_getgroups_works = yes; then
26410     
26411 cat >>confdefs.h <<\_ACEOF
26412 @%:@define HAVE_GETGROUPS 1
26413 _ACEOF
26414
26415   fi
26416 fi
26417 LIBS=$ac_save_LIBS
26418
26419 # getmntent is in the standard C library on UNICOS, in -lsun on Irix 4,
26420 # -lseq on Dynix/PTX, -lgen on Unixware.
26421 { echo "$as_me:$LINENO: checking for library containing getmntent" >&5
26422 echo $ECHO_N "checking for library containing getmntent... $ECHO_C" >&6; }
26423 if test "${ac_cv_search_getmntent+set}" = set; then
26424   echo $ECHO_N "(cached) $ECHO_C" >&6
26425 else
26426   ac_func_search_save_LIBS=$LIBS
26427 cat >conftest.$ac_ext <<_ACEOF
26428 /* confdefs.h.  */
26429 _ACEOF
26430 cat confdefs.h >>conftest.$ac_ext
26431 cat >>conftest.$ac_ext <<_ACEOF
26432 /* end confdefs.h.  */
26433
26434 /* Override any GCC internal prototype to avoid an error.
26435    Use char because int might match the return type of a GCC
26436    builtin and then its argument prototype would still apply.  */
26437 #ifdef __cplusplus
26438 extern "C"
26439 #endif
26440 char getmntent ();
26441 int
26442 main ()
26443 {
26444 return getmntent ();
26445   ;
26446   return 0;
26447 }
26448 _ACEOF
26449 for ac_lib in '' sun seq gen; do
26450   if test -z "$ac_lib"; then
26451     ac_res="none required"
26452   else
26453     ac_res=-l$ac_lib
26454     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
26455   fi
26456   rm -f conftest.$ac_objext conftest$ac_exeext
26457 if { (ac_try="$ac_link"
26458 case "(($ac_try" in
26459   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26460   *) ac_try_echo=$ac_try;;
26461 esac
26462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26463   (eval "$ac_link") 2>conftest.er1
26464   ac_status=$?
26465   grep -v '^ *+' conftest.er1 >conftest.err
26466   rm -f conftest.er1
26467   cat conftest.err >&5
26468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26469   (exit $ac_status); } && {
26470          test -z "$ac_c_werror_flag" ||
26471          test ! -s conftest.err
26472        } && test -s conftest$ac_exeext &&
26473        $as_test_x conftest$ac_exeext; then
26474   ac_cv_search_getmntent=$ac_res
26475 else
26476   echo "$as_me: failed program was:" >&5
26477 sed 's/^/| /' conftest.$ac_ext >&5
26478
26479         
26480 fi
26481
26482 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26483       conftest$ac_exeext 
26484   if test "${ac_cv_search_getmntent+set}" = set; then
26485   break
26486 fi
26487 done
26488 if test "${ac_cv_search_getmntent+set}" = set; then
26489   :
26490 else
26491   ac_cv_search_getmntent=no
26492 fi
26493 rm conftest.$ac_ext
26494 LIBS=$ac_func_search_save_LIBS
26495 fi
26496 { echo "$as_me:$LINENO: result: $ac_cv_search_getmntent" >&5
26497 echo "${ECHO_T}$ac_cv_search_getmntent" >&6; }
26498 ac_res=$ac_cv_search_getmntent
26499 if test "$ac_res" != no; then
26500   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
26501   ac_cv_func_getmntent=yes
26502                 
26503 cat >>confdefs.h <<\_ACEOF
26504 @%:@define HAVE_GETMNTENT 1
26505 _ACEOF
26506
26507 else
26508   ac_cv_func_getmntent=no
26509 fi
26510
26511
26512 if test $ac_cv_c_compiler_gnu = yes; then
26513     { echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
26514 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6; }
26515 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
26516   echo $ECHO_N "(cached) $ECHO_C" >&6
26517 else
26518     ac_pattern="Autoconf.*'x'"
26519   cat >conftest.$ac_ext <<_ACEOF
26520 /* confdefs.h.  */
26521 _ACEOF
26522 cat confdefs.h >>conftest.$ac_ext
26523 cat >>conftest.$ac_ext <<_ACEOF
26524 /* end confdefs.h.  */
26525 #include <sgtty.h>
26526 Autoconf TIOCGETP
26527 _ACEOF
26528 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26529   $EGREP "$ac_pattern" >/dev/null 2>&1; then
26530   ac_cv_prog_gcc_traditional=yes
26531 else
26532   ac_cv_prog_gcc_traditional=no
26533 fi
26534 rm -f conftest*
26535
26536
26537   if test $ac_cv_prog_gcc_traditional = no; then
26538     cat >conftest.$ac_ext <<_ACEOF
26539 /* confdefs.h.  */
26540 _ACEOF
26541 cat confdefs.h >>conftest.$ac_ext
26542 cat >>conftest.$ac_ext <<_ACEOF
26543 /* end confdefs.h.  */
26544 #include <termio.h>
26545 Autoconf TCGETA
26546 _ACEOF
26547 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26548   $EGREP "$ac_pattern" >/dev/null 2>&1; then
26549   ac_cv_prog_gcc_traditional=yes
26550 fi
26551 rm -f conftest*
26552
26553   fi
26554 fi
26555 { echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
26556 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6; }
26557   if test $ac_cv_prog_gcc_traditional = yes; then
26558     CC="$CC -traditional"
26559   fi
26560 fi
26561
26562 { echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
26563 echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6; }
26564 if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
26565   echo $ECHO_N "(cached) $ECHO_C" >&6
26566 else
26567   rm -f conftest.sym conftest.file
26568 echo >conftest.file
26569 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
26570   if test "$cross_compiling" = yes; then
26571   ac_cv_func_lstat_dereferences_slashed_symlink=no
26572 else
26573   cat >conftest.$ac_ext <<_ACEOF
26574 /* confdefs.h.  */
26575 _ACEOF
26576 cat confdefs.h >>conftest.$ac_ext
26577 cat >>conftest.$ac_ext <<_ACEOF
26578 /* end confdefs.h.  */
26579 $ac_includes_default
26580 int
26581 main ()
26582 {
26583 struct stat sbuf;
26584      /* Linux will dereference the symlink and fail.
26585         That is better in the sense that it means we will not
26586         have to compile and use the lstat wrapper.  */
26587      return lstat ("conftest.sym/", &sbuf) == 0;
26588   ;
26589   return 0;
26590 }
26591 _ACEOF
26592 rm -f conftest$ac_exeext
26593 if { (ac_try="$ac_link"
26594 case "(($ac_try" in
26595   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26596   *) ac_try_echo=$ac_try;;
26597 esac
26598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26599   (eval "$ac_link") 2>&5
26600   ac_status=$?
26601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26602   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26603   { (case "(($ac_try" in
26604   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26605   *) ac_try_echo=$ac_try;;
26606 esac
26607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26608   (eval "$ac_try") 2>&5
26609   ac_status=$?
26610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26611   (exit $ac_status); }; }; then
26612   ac_cv_func_lstat_dereferences_slashed_symlink=yes
26613 else
26614   echo "$as_me: program exited with status $ac_status" >&5
26615 echo "$as_me: failed program was:" >&5
26616 sed 's/^/| /' conftest.$ac_ext >&5
26617
26618 ( exit $ac_status )
26619 ac_cv_func_lstat_dereferences_slashed_symlink=no
26620 fi
26621 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26622 fi
26623
26624
26625 else
26626   # If the `ln -s' command failed, then we probably don't even
26627   # have an lstat function.
26628   ac_cv_func_lstat_dereferences_slashed_symlink=no
26629 fi
26630 rm -f conftest.sym conftest.file
26631
26632 fi
26633 { echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
26634 echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
26635
26636 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
26637   
26638 cat >>confdefs.h <<_ACEOF
26639 @%:@define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
26640 _ACEOF
26641
26642
26643 if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
26644   case " $LIB@&t@OBJS " in
26645   *" lstat.$ac_objext "* ) ;;
26646   *) LIB@&t@OBJS="$LIB@&t@OBJS lstat.$ac_objext"
26647  ;;
26648 esac
26649
26650 fi
26651
26652 { echo "$as_me:$LINENO: checking whether lstat accepts an empty string" >&5
26653 echo $ECHO_N "checking whether lstat accepts an empty string... $ECHO_C" >&6; }
26654 if test "${ac_cv_func_lstat_empty_string_bug+set}" = set; then
26655   echo $ECHO_N "(cached) $ECHO_C" >&6
26656 else
26657   if test "$cross_compiling" = yes; then
26658   ac_cv_func_lstat_empty_string_bug=yes
26659 else
26660   cat >conftest.$ac_ext <<_ACEOF
26661 /* confdefs.h.  */
26662 _ACEOF
26663 cat confdefs.h >>conftest.$ac_ext
26664 cat >>conftest.$ac_ext <<_ACEOF
26665 /* end confdefs.h.  */
26666 $ac_includes_default
26667 int
26668 main ()
26669 {
26670 struct stat sbuf;
26671   return lstat ("", &sbuf) == 0;
26672   ;
26673   return 0;
26674 }
26675 _ACEOF
26676 rm -f conftest$ac_exeext
26677 if { (ac_try="$ac_link"
26678 case "(($ac_try" in
26679   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26680   *) ac_try_echo=$ac_try;;
26681 esac
26682 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26683   (eval "$ac_link") 2>&5
26684   ac_status=$?
26685   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26686   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26687   { (case "(($ac_try" in
26688   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26689   *) ac_try_echo=$ac_try;;
26690 esac
26691 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26692   (eval "$ac_try") 2>&5
26693   ac_status=$?
26694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26695   (exit $ac_status); }; }; then
26696   ac_cv_func_lstat_empty_string_bug=no
26697 else
26698   echo "$as_me: program exited with status $ac_status" >&5
26699 echo "$as_me: failed program was:" >&5
26700 sed 's/^/| /' conftest.$ac_ext >&5
26701
26702 ( exit $ac_status )
26703 ac_cv_func_lstat_empty_string_bug=yes
26704 fi
26705 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26706 fi
26707
26708
26709 fi
26710 { echo "$as_me:$LINENO: result: $ac_cv_func_lstat_empty_string_bug" >&5
26711 echo "${ECHO_T}$ac_cv_func_lstat_empty_string_bug" >&6; }
26712 if test $ac_cv_func_lstat_empty_string_bug = yes; then
26713   case " $LIB@&t@OBJS " in
26714   *" lstat.$ac_objext "* ) ;;
26715   *) LIB@&t@OBJS="$LIB@&t@OBJS lstat.$ac_objext"
26716  ;;
26717 esac
26718
26719   
26720 cat >>confdefs.h <<_ACEOF
26721 @%:@define HAVE_LSTAT_EMPTY_STRING_BUG 1
26722 _ACEOF
26723
26724 fi
26725
26726 { echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
26727 echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6; }
26728 if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
26729   echo $ECHO_N "(cached) $ECHO_C" >&6
26730 else
26731   rm -f conftest.sym conftest.file
26732 echo >conftest.file
26733 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
26734   if test "$cross_compiling" = yes; then
26735   ac_cv_func_lstat_dereferences_slashed_symlink=no
26736 else
26737   cat >conftest.$ac_ext <<_ACEOF
26738 /* confdefs.h.  */
26739 _ACEOF
26740 cat confdefs.h >>conftest.$ac_ext
26741 cat >>conftest.$ac_ext <<_ACEOF
26742 /* end confdefs.h.  */
26743 $ac_includes_default
26744 int
26745 main ()
26746 {
26747 struct stat sbuf;
26748      /* Linux will dereference the symlink and fail.
26749         That is better in the sense that it means we will not
26750         have to compile and use the lstat wrapper.  */
26751      return lstat ("conftest.sym/", &sbuf) == 0;
26752   ;
26753   return 0;
26754 }
26755 _ACEOF
26756 rm -f conftest$ac_exeext
26757 if { (ac_try="$ac_link"
26758 case "(($ac_try" in
26759   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26760   *) ac_try_echo=$ac_try;;
26761 esac
26762 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26763   (eval "$ac_link") 2>&5
26764   ac_status=$?
26765   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26766   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26767   { (case "(($ac_try" in
26768   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26769   *) ac_try_echo=$ac_try;;
26770 esac
26771 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26772   (eval "$ac_try") 2>&5
26773   ac_status=$?
26774   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26775   (exit $ac_status); }; }; then
26776   ac_cv_func_lstat_dereferences_slashed_symlink=yes
26777 else
26778   echo "$as_me: program exited with status $ac_status" >&5
26779 echo "$as_me: failed program was:" >&5
26780 sed 's/^/| /' conftest.$ac_ext >&5
26781
26782 ( exit $ac_status )
26783 ac_cv_func_lstat_dereferences_slashed_symlink=no
26784 fi
26785 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26786 fi
26787
26788
26789 else
26790   # If the `ln -s' command failed, then we probably don't even
26791   # have an lstat function.
26792   ac_cv_func_lstat_dereferences_slashed_symlink=no
26793 fi
26794 rm -f conftest.sym conftest.file
26795
26796 fi
26797 { echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
26798 echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
26799
26800 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
26801   
26802 cat >>confdefs.h <<_ACEOF
26803 @%:@define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
26804 _ACEOF
26805
26806
26807 if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
26808   case " $LIB@&t@OBJS " in
26809   *" lstat.$ac_objext "* ) ;;
26810   *) LIB@&t@OBJS="$LIB@&t@OBJS lstat.$ac_objext"
26811  ;;
26812 esac
26813
26814 fi
26815
26816 { echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
26817 echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6; }
26818 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
26819   echo $ECHO_N "(cached) $ECHO_C" >&6
26820 else
26821   cat >conftest.$ac_ext <<_ACEOF
26822 /* confdefs.h.  */
26823 _ACEOF
26824 cat confdefs.h >>conftest.$ac_ext
26825 cat >>conftest.$ac_ext <<_ACEOF
26826 /* end confdefs.h.  */
26827 @%:@include <sys/types.h>
26828 int
26829 main ()
26830 {
26831 return makedev(0, 0);
26832   ;
26833   return 0;
26834 }
26835 _ACEOF
26836 rm -f conftest.$ac_objext conftest$ac_exeext
26837 if { (ac_try="$ac_link"
26838 case "(($ac_try" in
26839   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26840   *) ac_try_echo=$ac_try;;
26841 esac
26842 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26843   (eval "$ac_link") 2>conftest.er1
26844   ac_status=$?
26845   grep -v '^ *+' conftest.er1 >conftest.err
26846   rm -f conftest.er1
26847   cat conftest.err >&5
26848   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26849   (exit $ac_status); } && {
26850          test -z "$ac_c_werror_flag" ||
26851          test ! -s conftest.err
26852        } && test -s conftest$ac_exeext &&
26853        $as_test_x conftest$ac_exeext; then
26854   ac_cv_header_sys_types_h_makedev=yes
26855 else
26856   echo "$as_me: failed program was:" >&5
26857 sed 's/^/| /' conftest.$ac_ext >&5
26858
26859         ac_cv_header_sys_types_h_makedev=no
26860 fi
26861
26862 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26863       conftest$ac_exeext conftest.$ac_ext
26864
26865 fi
26866 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
26867 echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6; }
26868
26869 if test $ac_cv_header_sys_types_h_makedev = no; then
26870 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
26871   { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
26872 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
26873 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
26874   echo $ECHO_N "(cached) $ECHO_C" >&6
26875 fi
26876 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
26877 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
26878 else
26879   # Is the header compilable?
26880 { echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
26881 echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6; }
26882 cat >conftest.$ac_ext <<_ACEOF
26883 /* confdefs.h.  */
26884 _ACEOF
26885 cat confdefs.h >>conftest.$ac_ext
26886 cat >>conftest.$ac_ext <<_ACEOF
26887 /* end confdefs.h.  */
26888 $ac_includes_default
26889 @%:@include <sys/mkdev.h>
26890 _ACEOF
26891 rm -f conftest.$ac_objext
26892 if { (ac_try="$ac_compile"
26893 case "(($ac_try" in
26894   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26895   *) ac_try_echo=$ac_try;;
26896 esac
26897 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26898   (eval "$ac_compile") 2>conftest.er1
26899   ac_status=$?
26900   grep -v '^ *+' conftest.er1 >conftest.err
26901   rm -f conftest.er1
26902   cat conftest.err >&5
26903   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26904   (exit $ac_status); } && {
26905          test -z "$ac_c_werror_flag" ||
26906          test ! -s conftest.err
26907        } && test -s conftest.$ac_objext; then
26908   ac_header_compiler=yes
26909 else
26910   echo "$as_me: failed program was:" >&5
26911 sed 's/^/| /' conftest.$ac_ext >&5
26912
26913         ac_header_compiler=no
26914 fi
26915
26916 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26917 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26918 echo "${ECHO_T}$ac_header_compiler" >&6; }
26919
26920 # Is the header present?
26921 { echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
26922 echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6; }
26923 cat >conftest.$ac_ext <<_ACEOF
26924 /* confdefs.h.  */
26925 _ACEOF
26926 cat confdefs.h >>conftest.$ac_ext
26927 cat >>conftest.$ac_ext <<_ACEOF
26928 /* end confdefs.h.  */
26929 @%:@include <sys/mkdev.h>
26930 _ACEOF
26931 if { (ac_try="$ac_cpp conftest.$ac_ext"
26932 case "(($ac_try" in
26933   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26934   *) ac_try_echo=$ac_try;;
26935 esac
26936 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26937   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26938   ac_status=$?
26939   grep -v '^ *+' conftest.er1 >conftest.err
26940   rm -f conftest.er1
26941   cat conftest.err >&5
26942   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26943   (exit $ac_status); } >/dev/null && {
26944          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26945          test ! -s conftest.err
26946        }; then
26947   ac_header_preproc=yes
26948 else
26949   echo "$as_me: failed program was:" >&5
26950 sed 's/^/| /' conftest.$ac_ext >&5
26951
26952   ac_header_preproc=no
26953 fi
26954
26955 rm -f conftest.err conftest.$ac_ext
26956 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26957 echo "${ECHO_T}$ac_header_preproc" >&6; }
26958
26959 # So?  What about this header?
26960 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26961   yes:no: )
26962     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
26963 echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
26964     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5
26965 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&2;}
26966     ac_header_preproc=yes
26967     ;;
26968   no:yes:* )
26969     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
26970 echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
26971     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h:     check for missing prerequisite headers?" >&5
26972 echo "$as_me: WARNING: sys/mkdev.h:     check for missing prerequisite headers?" >&2;}
26973     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5
26974 echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;}
26975     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h:     section \"Present But Cannot Be Compiled\"" >&5
26976 echo "$as_me: WARNING: sys/mkdev.h:     section \"Present But Cannot Be Compiled\"" >&2;}
26977     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
26978 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
26979     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5
26980 echo "$as_me: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&2;}
26981     ( cat <<\_ASBOX
26982 @%:@@%:@ ------------------------------- @%:@@%:@
26983 @%:@@%:@ Report this to nfs@lists.sf.net @%:@@%:@
26984 @%:@@%:@ ------------------------------- @%:@@%:@
26985 _ASBOX
26986      ) | sed "s/^/$as_me: WARNING:     /" >&2
26987     ;;
26988 esac
26989 { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
26990 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
26991 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
26992   echo $ECHO_N "(cached) $ECHO_C" >&6
26993 else
26994   ac_cv_header_sys_mkdev_h=$ac_header_preproc
26995 fi
26996 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
26997 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
26998
26999 fi
27000 if test $ac_cv_header_sys_mkdev_h = yes; then
27001   
27002 cat >>confdefs.h <<\_ACEOF
27003 @%:@define MAJOR_IN_MKDEV 1
27004 _ACEOF
27005
27006 fi
27007
27008
27009
27010   if test $ac_cv_header_sys_mkdev_h = no; then
27011     if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
27012   { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
27013 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
27014 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
27015   echo $ECHO_N "(cached) $ECHO_C" >&6
27016 fi
27017 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
27018 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
27019 else
27020   # Is the header compilable?
27021 { echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
27022 echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6; }
27023 cat >conftest.$ac_ext <<_ACEOF
27024 /* confdefs.h.  */
27025 _ACEOF
27026 cat confdefs.h >>conftest.$ac_ext
27027 cat >>conftest.$ac_ext <<_ACEOF
27028 /* end confdefs.h.  */
27029 $ac_includes_default
27030 @%:@include <sys/sysmacros.h>
27031 _ACEOF
27032 rm -f conftest.$ac_objext
27033 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
27040   ac_status=$?
27041   grep -v '^ *+' conftest.er1 >conftest.err
27042   rm -f conftest.er1
27043   cat conftest.err >&5
27044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27045   (exit $ac_status); } && {
27046          test -z "$ac_c_werror_flag" ||
27047          test ! -s conftest.err
27048        } && test -s conftest.$ac_objext; then
27049   ac_header_compiler=yes
27050 else
27051   echo "$as_me: failed program was:" >&5
27052 sed 's/^/| /' conftest.$ac_ext >&5
27053
27054         ac_header_compiler=no
27055 fi
27056
27057 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27058 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27059 echo "${ECHO_T}$ac_header_compiler" >&6; }
27060
27061 # Is the header present?
27062 { echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
27063 echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6; }
27064 cat >conftest.$ac_ext <<_ACEOF
27065 /* confdefs.h.  */
27066 _ACEOF
27067 cat confdefs.h >>conftest.$ac_ext
27068 cat >>conftest.$ac_ext <<_ACEOF
27069 /* end confdefs.h.  */
27070 @%:@include <sys/sysmacros.h>
27071 _ACEOF
27072 if { (ac_try="$ac_cpp conftest.$ac_ext"
27073 case "(($ac_try" in
27074   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27075   *) ac_try_echo=$ac_try;;
27076 esac
27077 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27078   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27079   ac_status=$?
27080   grep -v '^ *+' conftest.er1 >conftest.err
27081   rm -f conftest.er1
27082   cat conftest.err >&5
27083   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27084   (exit $ac_status); } >/dev/null && {
27085          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
27086          test ! -s conftest.err
27087        }; then
27088   ac_header_preproc=yes
27089 else
27090   echo "$as_me: failed program was:" >&5
27091 sed 's/^/| /' conftest.$ac_ext >&5
27092
27093   ac_header_preproc=no
27094 fi
27095
27096 rm -f conftest.err conftest.$ac_ext
27097 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27098 echo "${ECHO_T}$ac_header_preproc" >&6; }
27099
27100 # So?  What about this header?
27101 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27102   yes:no: )
27103     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
27104 echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
27105     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5
27106 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&2;}
27107     ac_header_preproc=yes
27108     ;;
27109   no:yes:* )
27110     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
27111 echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
27112     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h:     check for missing prerequisite headers?" >&5
27113 echo "$as_me: WARNING: sys/sysmacros.h:     check for missing prerequisite headers?" >&2;}
27114     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5
27115 echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;}
27116     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h:     section \"Present But Cannot Be Compiled\"" >&5
27117 echo "$as_me: WARNING: sys/sysmacros.h:     section \"Present But Cannot Be Compiled\"" >&2;}
27118     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
27119 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
27120     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5
27121 echo "$as_me: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&2;}
27122     ( cat <<\_ASBOX
27123 @%:@@%:@ ------------------------------- @%:@@%:@
27124 @%:@@%:@ Report this to nfs@lists.sf.net @%:@@%:@
27125 @%:@@%:@ ------------------------------- @%:@@%:@
27126 _ASBOX
27127      ) | sed "s/^/$as_me: WARNING:     /" >&2
27128     ;;
27129 esac
27130 { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
27131 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
27132 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
27133   echo $ECHO_N "(cached) $ECHO_C" >&6
27134 else
27135   ac_cv_header_sys_sysmacros_h=$ac_header_preproc
27136 fi
27137 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
27138 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
27139
27140 fi
27141 if test $ac_cv_header_sys_sysmacros_h = yes; then
27142   
27143 cat >>confdefs.h <<\_ACEOF
27144 @%:@define MAJOR_IN_SYSMACROS 1
27145 _ACEOF
27146
27147 fi
27148
27149
27150   fi
27151 fi
27152
27153 #AC_FUNC_MALLOC
27154 { echo "$as_me:$LINENO: checking for working memcmp" >&5
27155 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6; }
27156 if test "${ac_cv_func_memcmp_working+set}" = set; then
27157   echo $ECHO_N "(cached) $ECHO_C" >&6
27158 else
27159   if test "$cross_compiling" = yes; then
27160   ac_cv_func_memcmp_working=no
27161 else
27162   cat >conftest.$ac_ext <<_ACEOF
27163 /* confdefs.h.  */
27164 _ACEOF
27165 cat confdefs.h >>conftest.$ac_ext
27166 cat >>conftest.$ac_ext <<_ACEOF
27167 /* end confdefs.h.  */
27168 $ac_includes_default
27169 int
27170 main ()
27171 {
27172
27173   /* Some versions of memcmp are not 8-bit clean.  */
27174   char c0 = '\100', c1 = '\200', c2 = '\201';
27175   if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
27176     return 1;
27177
27178   /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
27179      or more and with at least one buffer not starting on a 4-byte boundary.
27180      William Lewis provided this test program.   */
27181   {
27182     char foo[21];
27183     char bar[21];
27184     int i;
27185     for (i = 0; i < 4; i++)
27186       {
27187         char *a = foo + i;
27188         char *b = bar + i;
27189         strcpy (a, "--------01111111");
27190         strcpy (b, "--------10000000");
27191         if (memcmp (a, b, 16) >= 0)
27192           return 1;
27193       }
27194     return 0;
27195   }
27196
27197   ;
27198   return 0;
27199 }
27200 _ACEOF
27201 rm -f conftest$ac_exeext
27202 if { (ac_try="$ac_link"
27203 case "(($ac_try" in
27204   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27205   *) ac_try_echo=$ac_try;;
27206 esac
27207 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27208   (eval "$ac_link") 2>&5
27209   ac_status=$?
27210   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27211   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27212   { (case "(($ac_try" in
27213   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27214   *) ac_try_echo=$ac_try;;
27215 esac
27216 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27217   (eval "$ac_try") 2>&5
27218   ac_status=$?
27219   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27220   (exit $ac_status); }; }; then
27221   ac_cv_func_memcmp_working=yes
27222 else
27223   echo "$as_me: program exited with status $ac_status" >&5
27224 echo "$as_me: failed program was:" >&5
27225 sed 's/^/| /' conftest.$ac_ext >&5
27226
27227 ( exit $ac_status )
27228 ac_cv_func_memcmp_working=no
27229 fi
27230 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27231 fi
27232
27233
27234 fi
27235 { echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
27236 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6; }
27237 test $ac_cv_func_memcmp_working = no && case " $LIB@&t@OBJS " in
27238   *" memcmp.$ac_objext "* ) ;;
27239   *) LIB@&t@OBJS="$LIB@&t@OBJS memcmp.$ac_objext"
27240  ;;
27241 esac
27242
27243
27244 #AC_FUNC_REALLOC
27245
27246
27247 for ac_header in sys/select.h sys/socket.h
27248 do
27249 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27250 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27251   { echo "$as_me:$LINENO: checking for $ac_header" >&5
27252 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27253 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27254   echo $ECHO_N "(cached) $ECHO_C" >&6
27255 fi
27256 ac_res=`eval echo '${'$as_ac_Header'}'`
27257                { echo "$as_me:$LINENO: result: $ac_res" >&5
27258 echo "${ECHO_T}$ac_res" >&6; }
27259 else
27260   # Is the header compilable?
27261 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
27262 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
27263 cat >conftest.$ac_ext <<_ACEOF
27264 /* confdefs.h.  */
27265 _ACEOF
27266 cat confdefs.h >>conftest.$ac_ext
27267 cat >>conftest.$ac_ext <<_ACEOF
27268 /* end confdefs.h.  */
27269 $ac_includes_default
27270 @%:@include <$ac_header>
27271 _ACEOF
27272 rm -f conftest.$ac_objext
27273 if { (ac_try="$ac_compile"
27274 case "(($ac_try" in
27275   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27276   *) ac_try_echo=$ac_try;;
27277 esac
27278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27279   (eval "$ac_compile") 2>conftest.er1
27280   ac_status=$?
27281   grep -v '^ *+' conftest.er1 >conftest.err
27282   rm -f conftest.er1
27283   cat conftest.err >&5
27284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27285   (exit $ac_status); } && {
27286          test -z "$ac_c_werror_flag" ||
27287          test ! -s conftest.err
27288        } && test -s conftest.$ac_objext; then
27289   ac_header_compiler=yes
27290 else
27291   echo "$as_me: failed program was:" >&5
27292 sed 's/^/| /' conftest.$ac_ext >&5
27293
27294         ac_header_compiler=no
27295 fi
27296
27297 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27298 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27299 echo "${ECHO_T}$ac_header_compiler" >&6; }
27300
27301 # Is the header present?
27302 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
27303 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
27304 cat >conftest.$ac_ext <<_ACEOF
27305 /* confdefs.h.  */
27306 _ACEOF
27307 cat confdefs.h >>conftest.$ac_ext
27308 cat >>conftest.$ac_ext <<_ACEOF
27309 /* end confdefs.h.  */
27310 @%:@include <$ac_header>
27311 _ACEOF
27312 if { (ac_try="$ac_cpp conftest.$ac_ext"
27313 case "(($ac_try" in
27314   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27315   *) ac_try_echo=$ac_try;;
27316 esac
27317 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27318   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27319   ac_status=$?
27320   grep -v '^ *+' conftest.er1 >conftest.err
27321   rm -f conftest.er1
27322   cat conftest.err >&5
27323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27324   (exit $ac_status); } >/dev/null && {
27325          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
27326          test ! -s conftest.err
27327        }; then
27328   ac_header_preproc=yes
27329 else
27330   echo "$as_me: failed program was:" >&5
27331 sed 's/^/| /' conftest.$ac_ext >&5
27332
27333   ac_header_preproc=no
27334 fi
27335
27336 rm -f conftest.err conftest.$ac_ext
27337 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27338 echo "${ECHO_T}$ac_header_preproc" >&6; }
27339
27340 # So?  What about this header?
27341 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27342   yes:no: )
27343     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27344 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27345     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27346 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27347     ac_header_preproc=yes
27348     ;;
27349   no:yes:* )
27350     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27351 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27352     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
27353 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
27354     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27355 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27356     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
27357 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
27358     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27359 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27360     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27361 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27362     ( cat <<\_ASBOX
27363 @%:@@%:@ ------------------------------- @%:@@%:@
27364 @%:@@%:@ Report this to nfs@lists.sf.net @%:@@%:@
27365 @%:@@%:@ ------------------------------- @%:@@%:@
27366 _ASBOX
27367      ) | sed "s/^/$as_me: WARNING:     /" >&2
27368     ;;
27369 esac
27370 { echo "$as_me:$LINENO: checking for $ac_header" >&5
27371 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27372 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27373   echo $ECHO_N "(cached) $ECHO_C" >&6
27374 else
27375   eval "$as_ac_Header=\$ac_header_preproc"
27376 fi
27377 ac_res=`eval echo '${'$as_ac_Header'}'`
27378                { echo "$as_me:$LINENO: result: $ac_res" >&5
27379 echo "${ECHO_T}$ac_res" >&6; }
27380
27381 fi
27382 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27383   cat >>confdefs.h <<_ACEOF
27384 @%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27385 _ACEOF
27386  
27387 fi
27388
27389 done
27390
27391 { echo "$as_me:$LINENO: checking types of arguments for select" >&5
27392 echo $ECHO_N "checking types of arguments for select... $ECHO_C" >&6; }
27393 if test "${ac_cv_func_select_args+set}" = set; then
27394   echo $ECHO_N "(cached) $ECHO_C" >&6
27395 else
27396   for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
27397  for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
27398   for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
27399    cat >conftest.$ac_ext <<_ACEOF
27400 /* confdefs.h.  */
27401 _ACEOF
27402 cat confdefs.h >>conftest.$ac_ext
27403 cat >>conftest.$ac_ext <<_ACEOF
27404 /* end confdefs.h.  */
27405 $ac_includes_default
27406 #ifdef HAVE_SYS_SELECT_H
27407 # include <sys/select.h>
27408 #endif
27409 #ifdef HAVE_SYS_SOCKET_H
27410 # include <sys/socket.h>
27411 #endif
27412
27413 int
27414 main ()
27415 {
27416 extern int select ($ac_arg1,
27417                                             $ac_arg234, $ac_arg234, $ac_arg234,
27418                                             $ac_arg5);
27419   ;
27420   return 0;
27421 }
27422 _ACEOF
27423 rm -f conftest.$ac_objext
27424 if { (ac_try="$ac_compile"
27425 case "(($ac_try" in
27426   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27427   *) ac_try_echo=$ac_try;;
27428 esac
27429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27430   (eval "$ac_compile") 2>conftest.er1
27431   ac_status=$?
27432   grep -v '^ *+' conftest.er1 >conftest.err
27433   rm -f conftest.er1
27434   cat conftest.err >&5
27435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27436   (exit $ac_status); } && {
27437          test -z "$ac_c_werror_flag" ||
27438          test ! -s conftest.err
27439        } && test -s conftest.$ac_objext; then
27440   ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
27441 else
27442   echo "$as_me: failed program was:" >&5
27443 sed 's/^/| /' conftest.$ac_ext >&5
27444
27445         
27446 fi
27447
27448 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27449   done
27450  done
27451 done
27452 # Provide a safe default value.
27453 : ${ac_cv_func_select_args='int,int *,struct timeval *'}
27454
27455 fi
27456 { echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5
27457 echo "${ECHO_T}$ac_cv_func_select_args" >&6; }
27458 ac_save_IFS=$IFS; IFS=','
27459 set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
27460 IFS=$ac_save_IFS
27461 shift
27462
27463 cat >>confdefs.h <<_ACEOF
27464 @%:@define SELECT_TYPE_ARG1 $1
27465 _ACEOF
27466
27467
27468 cat >>confdefs.h <<_ACEOF
27469 @%:@define SELECT_TYPE_ARG234 ($2)
27470 _ACEOF
27471
27472
27473 cat >>confdefs.h <<_ACEOF
27474 @%:@define SELECT_TYPE_ARG5 ($3)
27475 _ACEOF
27476
27477 rm -f conftest*
27478
27479 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
27480 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
27481 if test "${ac_cv_type_signal+set}" = set; then
27482   echo $ECHO_N "(cached) $ECHO_C" >&6
27483 else
27484   cat >conftest.$ac_ext <<_ACEOF
27485 /* confdefs.h.  */
27486 _ACEOF
27487 cat confdefs.h >>conftest.$ac_ext
27488 cat >>conftest.$ac_ext <<_ACEOF
27489 /* end confdefs.h.  */
27490 #include <sys/types.h>
27491 #include <signal.h>
27492
27493 int
27494 main ()
27495 {
27496 return *(signal (0, 0)) (0) == 1;
27497   ;
27498   return 0;
27499 }
27500 _ACEOF
27501 rm -f conftest.$ac_objext
27502 if { (ac_try="$ac_compile"
27503 case "(($ac_try" in
27504   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27505   *) ac_try_echo=$ac_try;;
27506 esac
27507 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27508   (eval "$ac_compile") 2>conftest.er1
27509   ac_status=$?
27510   grep -v '^ *+' conftest.er1 >conftest.err
27511   rm -f conftest.er1
27512   cat conftest.err >&5
27513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27514   (exit $ac_status); } && {
27515          test -z "$ac_c_werror_flag" ||
27516          test ! -s conftest.err
27517        } && test -s conftest.$ac_objext; then
27518   ac_cv_type_signal=int
27519 else
27520   echo "$as_me: failed program was:" >&5
27521 sed 's/^/| /' conftest.$ac_ext >&5
27522
27523         ac_cv_type_signal=void
27524 fi
27525
27526 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27527 fi
27528 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
27529 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
27530
27531 cat >>confdefs.h <<_ACEOF
27532 @%:@define RETSIGTYPE $ac_cv_type_signal
27533 _ACEOF
27534
27535
27536 { echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5
27537 echo $ECHO_N "checking whether stat accepts an empty string... $ECHO_C" >&6; }
27538 if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then
27539   echo $ECHO_N "(cached) $ECHO_C" >&6
27540 else
27541   if test "$cross_compiling" = yes; then
27542   ac_cv_func_stat_empty_string_bug=yes
27543 else
27544   cat >conftest.$ac_ext <<_ACEOF
27545 /* confdefs.h.  */
27546 _ACEOF
27547 cat confdefs.h >>conftest.$ac_ext
27548 cat >>conftest.$ac_ext <<_ACEOF
27549 /* end confdefs.h.  */
27550 $ac_includes_default
27551 int
27552 main ()
27553 {
27554 struct stat sbuf;
27555   return stat ("", &sbuf) == 0;
27556   ;
27557   return 0;
27558 }
27559 _ACEOF
27560 rm -f conftest$ac_exeext
27561 if { (ac_try="$ac_link"
27562 case "(($ac_try" in
27563   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27564   *) ac_try_echo=$ac_try;;
27565 esac
27566 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27567   (eval "$ac_link") 2>&5
27568   ac_status=$?
27569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27570   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27571   { (case "(($ac_try" in
27572   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27573   *) ac_try_echo=$ac_try;;
27574 esac
27575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27576   (eval "$ac_try") 2>&5
27577   ac_status=$?
27578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27579   (exit $ac_status); }; }; then
27580   ac_cv_func_stat_empty_string_bug=no
27581 else
27582   echo "$as_me: program exited with status $ac_status" >&5
27583 echo "$as_me: failed program was:" >&5
27584 sed 's/^/| /' conftest.$ac_ext >&5
27585
27586 ( exit $ac_status )
27587 ac_cv_func_stat_empty_string_bug=yes
27588 fi
27589 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27590 fi
27591
27592
27593 fi
27594 { echo "$as_me:$LINENO: result: $ac_cv_func_stat_empty_string_bug" >&5
27595 echo "${ECHO_T}$ac_cv_func_stat_empty_string_bug" >&6; }
27596 if test $ac_cv_func_stat_empty_string_bug = yes; then
27597   case " $LIB@&t@OBJS " in
27598   *" stat.$ac_objext "* ) ;;
27599   *) LIB@&t@OBJS="$LIB@&t@OBJS stat.$ac_objext"
27600  ;;
27601 esac
27602
27603   
27604 cat >>confdefs.h <<_ACEOF
27605 @%:@define HAVE_STAT_EMPTY_STRING_BUG 1
27606 _ACEOF
27607
27608 fi
27609
27610
27611 for ac_func in vprintf
27612 do
27613 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27614 { echo "$as_me:$LINENO: checking for $ac_func" >&5
27615 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
27616 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
27617   echo $ECHO_N "(cached) $ECHO_C" >&6
27618 else
27619   cat >conftest.$ac_ext <<_ACEOF
27620 /* confdefs.h.  */
27621 _ACEOF
27622 cat confdefs.h >>conftest.$ac_ext
27623 cat >>conftest.$ac_ext <<_ACEOF
27624 /* end confdefs.h.  */
27625 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27626    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27627 #define $ac_func innocuous_$ac_func
27628
27629 /* System header to define __stub macros and hopefully few prototypes,
27630     which can conflict with char $ac_func (); below.
27631     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27632     <limits.h> exists even on freestanding compilers.  */
27633
27634 #ifdef __STDC__
27635 # include <limits.h>
27636 #else
27637 # include <assert.h>
27638 #endif
27639
27640 #undef $ac_func
27641
27642 /* Override any GCC internal prototype to avoid an error.
27643    Use char because int might match the return type of a GCC
27644    builtin and then its argument prototype would still apply.  */
27645 #ifdef __cplusplus
27646 extern "C"
27647 #endif
27648 char $ac_func ();
27649 /* The GNU C library defines this for functions which it implements
27650     to always fail with ENOSYS.  Some functions are actually named
27651     something starting with __ and the normal name is an alias.  */
27652 #if defined __stub_$ac_func || defined __stub___$ac_func
27653 choke me
27654 #endif
27655
27656 int
27657 main ()
27658 {
27659 return $ac_func ();
27660   ;
27661   return 0;
27662 }
27663 _ACEOF
27664 rm -f conftest.$ac_objext conftest$ac_exeext
27665 if { (ac_try="$ac_link"
27666 case "(($ac_try" in
27667   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27668   *) ac_try_echo=$ac_try;;
27669 esac
27670 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27671   (eval "$ac_link") 2>conftest.er1
27672   ac_status=$?
27673   grep -v '^ *+' conftest.er1 >conftest.err
27674   rm -f conftest.er1
27675   cat conftest.err >&5
27676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27677   (exit $ac_status); } && {
27678          test -z "$ac_c_werror_flag" ||
27679          test ! -s conftest.err
27680        } && test -s conftest$ac_exeext &&
27681        $as_test_x conftest$ac_exeext; then
27682   eval "$as_ac_var=yes"
27683 else
27684   echo "$as_me: failed program was:" >&5
27685 sed 's/^/| /' conftest.$ac_ext >&5
27686
27687         eval "$as_ac_var=no"
27688 fi
27689
27690 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27691       conftest$ac_exeext conftest.$ac_ext
27692 fi
27693 ac_res=`eval echo '${'$as_ac_var'}'`
27694                { echo "$as_me:$LINENO: result: $ac_res" >&5
27695 echo "${ECHO_T}$ac_res" >&6; }
27696 if test `eval echo '${'$as_ac_var'}'` = yes; then
27697   cat >>confdefs.h <<_ACEOF
27698 @%:@define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27699 _ACEOF
27700  
27701 { echo "$as_me:$LINENO: checking for _doprnt" >&5
27702 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6; }
27703 if test "${ac_cv_func__doprnt+set}" = set; then
27704   echo $ECHO_N "(cached) $ECHO_C" >&6
27705 else
27706   cat >conftest.$ac_ext <<_ACEOF
27707 /* confdefs.h.  */
27708 _ACEOF
27709 cat confdefs.h >>conftest.$ac_ext
27710 cat >>conftest.$ac_ext <<_ACEOF
27711 /* end confdefs.h.  */
27712 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
27713    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27714 #define _doprnt innocuous__doprnt
27715
27716 /* System header to define __stub macros and hopefully few prototypes,
27717     which can conflict with char _doprnt (); below.
27718     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27719     <limits.h> exists even on freestanding compilers.  */
27720
27721 #ifdef __STDC__
27722 # include <limits.h>
27723 #else
27724 # include <assert.h>
27725 #endif
27726
27727 #undef _doprnt
27728
27729 /* Override any GCC internal prototype to avoid an error.
27730    Use char because int might match the return type of a GCC
27731    builtin and then its argument prototype would still apply.  */
27732 #ifdef __cplusplus
27733 extern "C"
27734 #endif
27735 char _doprnt ();
27736 /* The GNU C library defines this for functions which it implements
27737     to always fail with ENOSYS.  Some functions are actually named
27738     something starting with __ and the normal name is an alias.  */
27739 #if defined __stub__doprnt || defined __stub____doprnt
27740 choke me
27741 #endif
27742
27743 int
27744 main ()
27745 {
27746 return _doprnt ();
27747   ;
27748   return 0;
27749 }
27750 _ACEOF
27751 rm -f conftest.$ac_objext conftest$ac_exeext
27752 if { (ac_try="$ac_link"
27753 case "(($ac_try" in
27754   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27755   *) ac_try_echo=$ac_try;;
27756 esac
27757 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27758   (eval "$ac_link") 2>conftest.er1
27759   ac_status=$?
27760   grep -v '^ *+' conftest.er1 >conftest.err
27761   rm -f conftest.er1
27762   cat conftest.err >&5
27763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27764   (exit $ac_status); } && {
27765          test -z "$ac_c_werror_flag" ||
27766          test ! -s conftest.err
27767        } && test -s conftest$ac_exeext &&
27768        $as_test_x conftest$ac_exeext; then
27769   ac_cv_func__doprnt=yes
27770 else
27771   echo "$as_me: failed program was:" >&5
27772 sed 's/^/| /' conftest.$ac_ext >&5
27773
27774         ac_cv_func__doprnt=no
27775 fi
27776
27777 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27778       conftest$ac_exeext conftest.$ac_ext
27779 fi
27780 { echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
27781 echo "${ECHO_T}$ac_cv_func__doprnt" >&6; }
27782 if test $ac_cv_func__doprnt = yes; then
27783   
27784 cat >>confdefs.h <<\_ACEOF
27785 @%:@define HAVE_DOPRNT 1
27786 _ACEOF
27787
27788 fi
27789
27790 fi
27791 done
27792
27793
27794
27795
27796
27797
27798
27799
27800
27801
27802
27803
27804
27805
27806
27807
27808
27809
27810
27811
27812
27813
27814
27815
27816
27817
27818
27819
27820
27821
27822
27823 for ac_func in alarm atexit dup2 fdatasync ftruncate getcwd \
27824                gethostbyaddr gethostbyname gethostname getmntent \
27825                gettimeofday hasmntopt inet_ntoa innetgr memset mkdir pathconf \
27826                realpath rmdir select socket strcasecmp strchr strdup \
27827                strerror strrchr strtol strtoul sigprocmask
27828 do
27829 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27830 { echo "$as_me:$LINENO: checking for $ac_func" >&5
27831 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
27832 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
27833   echo $ECHO_N "(cached) $ECHO_C" >&6
27834 else
27835   cat >conftest.$ac_ext <<_ACEOF
27836 /* confdefs.h.  */
27837 _ACEOF
27838 cat confdefs.h >>conftest.$ac_ext
27839 cat >>conftest.$ac_ext <<_ACEOF
27840 /* end confdefs.h.  */
27841 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27842    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27843 #define $ac_func innocuous_$ac_func
27844
27845 /* System header to define __stub macros and hopefully few prototypes,
27846     which can conflict with char $ac_func (); below.
27847     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27848     <limits.h> exists even on freestanding compilers.  */
27849
27850 #ifdef __STDC__
27851 # include <limits.h>
27852 #else
27853 # include <assert.h>
27854 #endif
27855
27856 #undef $ac_func
27857
27858 /* Override any GCC internal prototype to avoid an error.
27859    Use char because int might match the return type of a GCC
27860    builtin and then its argument prototype would still apply.  */
27861 #ifdef __cplusplus
27862 extern "C"
27863 #endif
27864 char $ac_func ();
27865 /* The GNU C library defines this for functions which it implements
27866     to always fail with ENOSYS.  Some functions are actually named
27867     something starting with __ and the normal name is an alias.  */
27868 #if defined __stub_$ac_func || defined __stub___$ac_func
27869 choke me
27870 #endif
27871
27872 int
27873 main ()
27874 {
27875 return $ac_func ();
27876   ;
27877   return 0;
27878 }
27879 _ACEOF
27880 rm -f conftest.$ac_objext conftest$ac_exeext
27881 if { (ac_try="$ac_link"
27882 case "(($ac_try" in
27883   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27884   *) ac_try_echo=$ac_try;;
27885 esac
27886 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27887   (eval "$ac_link") 2>conftest.er1
27888   ac_status=$?
27889   grep -v '^ *+' conftest.er1 >conftest.err
27890   rm -f conftest.er1
27891   cat conftest.err >&5
27892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27893   (exit $ac_status); } && {
27894          test -z "$ac_c_werror_flag" ||
27895          test ! -s conftest.err
27896        } && test -s conftest$ac_exeext &&
27897        $as_test_x conftest$ac_exeext; then
27898   eval "$as_ac_var=yes"
27899 else
27900   echo "$as_me: failed program was:" >&5
27901 sed 's/^/| /' conftest.$ac_ext >&5
27902
27903         eval "$as_ac_var=no"
27904 fi
27905
27906 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27907       conftest$ac_exeext conftest.$ac_ext
27908 fi
27909 ac_res=`eval echo '${'$as_ac_var'}'`
27910                { echo "$as_me:$LINENO: result: $ac_res" >&5
27911 echo "${ECHO_T}$ac_res" >&6; }
27912 if test `eval echo '${'$as_ac_var'}'` = yes; then
27913   cat >>confdefs.h <<_ACEOF
27914 @%:@define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27915 _ACEOF
27916  
27917 fi
27918 done
27919
27920
27921
27922 { echo "$as_me:$LINENO: checking for short" >&5
27923 echo $ECHO_N "checking for short... $ECHO_C" >&6; }
27924 if test "${ac_cv_type_short+set}" = set; then
27925   echo $ECHO_N "(cached) $ECHO_C" >&6
27926 else
27927   cat >conftest.$ac_ext <<_ACEOF
27928 /* confdefs.h.  */
27929 _ACEOF
27930 cat confdefs.h >>conftest.$ac_ext
27931 cat >>conftest.$ac_ext <<_ACEOF
27932 /* end confdefs.h.  */
27933 $ac_includes_default
27934 typedef short ac__type_new_;
27935 int
27936 main ()
27937 {
27938 if ((ac__type_new_ *) 0)
27939   return 0;
27940 if (sizeof (ac__type_new_))
27941   return 0;
27942   ;
27943   return 0;
27944 }
27945 _ACEOF
27946 rm -f conftest.$ac_objext
27947 if { (ac_try="$ac_compile"
27948 case "(($ac_try" in
27949   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27950   *) ac_try_echo=$ac_try;;
27951 esac
27952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27953   (eval "$ac_compile") 2>conftest.er1
27954   ac_status=$?
27955   grep -v '^ *+' conftest.er1 >conftest.err
27956   rm -f conftest.er1
27957   cat conftest.err >&5
27958   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27959   (exit $ac_status); } && {
27960          test -z "$ac_c_werror_flag" ||
27961          test ! -s conftest.err
27962        } && test -s conftest.$ac_objext; then
27963   ac_cv_type_short=yes
27964 else
27965   echo "$as_me: failed program was:" >&5
27966 sed 's/^/| /' conftest.$ac_ext >&5
27967
27968         ac_cv_type_short=no
27969 fi
27970
27971 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27972 fi
27973 { echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
27974 echo "${ECHO_T}$ac_cv_type_short" >&6; }
27975
27976 # The cast to long int works around a bug in the HP C Compiler
27977 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27978 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27979 # This bug is HP SR number 8606223364.
27980 { echo "$as_me:$LINENO: checking size of short" >&5
27981 echo $ECHO_N "checking size of short... $ECHO_C" >&6; }
27982 if test "${ac_cv_sizeof_short+set}" = set; then
27983   echo $ECHO_N "(cached) $ECHO_C" >&6
27984 else
27985   if test "$cross_compiling" = yes; then
27986   # Depending upon the size, compute the lo and hi bounds.
27987 cat >conftest.$ac_ext <<_ACEOF
27988 /* confdefs.h.  */
27989 _ACEOF
27990 cat confdefs.h >>conftest.$ac_ext
27991 cat >>conftest.$ac_ext <<_ACEOF
27992 /* end confdefs.h.  */
27993 $ac_includes_default
27994    typedef short ac__type_sizeof_;
27995 int
27996 main ()
27997 {
27998 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)@:>@;
27999 test_array @<:@0@:>@ = 0
28000
28001   ;
28002   return 0;
28003 }
28004 _ACEOF
28005 rm -f conftest.$ac_objext
28006 if { (ac_try="$ac_compile"
28007 case "(($ac_try" in
28008   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28009   *) ac_try_echo=$ac_try;;
28010 esac
28011 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28012   (eval "$ac_compile") 2>conftest.er1
28013   ac_status=$?
28014   grep -v '^ *+' conftest.er1 >conftest.err
28015   rm -f conftest.er1
28016   cat conftest.err >&5
28017   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28018   (exit $ac_status); } && {
28019          test -z "$ac_c_werror_flag" ||
28020          test ! -s conftest.err
28021        } && test -s conftest.$ac_objext; then
28022   ac_lo=0 ac_mid=0
28023   while :; do
28024     cat >conftest.$ac_ext <<_ACEOF
28025 /* confdefs.h.  */
28026 _ACEOF
28027 cat confdefs.h >>conftest.$ac_ext
28028 cat >>conftest.$ac_ext <<_ACEOF
28029 /* end confdefs.h.  */
28030 $ac_includes_default
28031    typedef short ac__type_sizeof_;
28032 int
28033 main ()
28034 {
28035 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)@:>@;
28036 test_array @<:@0@:>@ = 0
28037
28038   ;
28039   return 0;
28040 }
28041 _ACEOF
28042 rm -f conftest.$ac_objext
28043 if { (ac_try="$ac_compile"
28044 case "(($ac_try" in
28045   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28046   *) ac_try_echo=$ac_try;;
28047 esac
28048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28049   (eval "$ac_compile") 2>conftest.er1
28050   ac_status=$?
28051   grep -v '^ *+' conftest.er1 >conftest.err
28052   rm -f conftest.er1
28053   cat conftest.err >&5
28054   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28055   (exit $ac_status); } && {
28056          test -z "$ac_c_werror_flag" ||
28057          test ! -s conftest.err
28058        } && test -s conftest.$ac_objext; then
28059   ac_hi=$ac_mid; break
28060 else
28061   echo "$as_me: failed program was:" >&5
28062 sed 's/^/| /' conftest.$ac_ext >&5
28063
28064         ac_lo=`expr $ac_mid + 1`
28065                         if test $ac_lo -le $ac_mid; then
28066                           ac_lo= ac_hi=
28067                           break
28068                         fi
28069                         ac_mid=`expr 2 '*' $ac_mid + 1`
28070 fi
28071
28072 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28073   done
28074 else
28075   echo "$as_me: failed program was:" >&5
28076 sed 's/^/| /' conftest.$ac_ext >&5
28077
28078         cat >conftest.$ac_ext <<_ACEOF
28079 /* confdefs.h.  */
28080 _ACEOF
28081 cat confdefs.h >>conftest.$ac_ext
28082 cat >>conftest.$ac_ext <<_ACEOF
28083 /* end confdefs.h.  */
28084 $ac_includes_default
28085    typedef short ac__type_sizeof_;
28086 int
28087 main ()
28088 {
28089 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)@:>@;
28090 test_array @<:@0@:>@ = 0
28091
28092   ;
28093   return 0;
28094 }
28095 _ACEOF
28096 rm -f conftest.$ac_objext
28097 if { (ac_try="$ac_compile"
28098 case "(($ac_try" in
28099   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28100   *) ac_try_echo=$ac_try;;
28101 esac
28102 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28103   (eval "$ac_compile") 2>conftest.er1
28104   ac_status=$?
28105   grep -v '^ *+' conftest.er1 >conftest.err
28106   rm -f conftest.er1
28107   cat conftest.err >&5
28108   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28109   (exit $ac_status); } && {
28110          test -z "$ac_c_werror_flag" ||
28111          test ! -s conftest.err
28112        } && test -s conftest.$ac_objext; then
28113   ac_hi=-1 ac_mid=-1
28114   while :; do
28115     cat >conftest.$ac_ext <<_ACEOF
28116 /* confdefs.h.  */
28117 _ACEOF
28118 cat confdefs.h >>conftest.$ac_ext
28119 cat >>conftest.$ac_ext <<_ACEOF
28120 /* end confdefs.h.  */
28121 $ac_includes_default
28122    typedef short ac__type_sizeof_;
28123 int
28124 main ()
28125 {
28126 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)@:>@;
28127 test_array @<:@0@:>@ = 0
28128
28129   ;
28130   return 0;
28131 }
28132 _ACEOF
28133 rm -f conftest.$ac_objext
28134 if { (ac_try="$ac_compile"
28135 case "(($ac_try" in
28136   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28137   *) ac_try_echo=$ac_try;;
28138 esac
28139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28140   (eval "$ac_compile") 2>conftest.er1
28141   ac_status=$?
28142   grep -v '^ *+' conftest.er1 >conftest.err
28143   rm -f conftest.er1
28144   cat conftest.err >&5
28145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28146   (exit $ac_status); } && {
28147          test -z "$ac_c_werror_flag" ||
28148          test ! -s conftest.err
28149        } && test -s conftest.$ac_objext; then
28150   ac_lo=$ac_mid; break
28151 else
28152   echo "$as_me: failed program was:" >&5
28153 sed 's/^/| /' conftest.$ac_ext >&5
28154
28155         ac_hi=`expr '(' $ac_mid ')' - 1`
28156                         if test $ac_mid -le $ac_hi; then
28157                           ac_lo= ac_hi=
28158                           break
28159                         fi
28160                         ac_mid=`expr 2 '*' $ac_mid`
28161 fi
28162
28163 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28164   done
28165 else
28166   echo "$as_me: failed program was:" >&5
28167 sed 's/^/| /' conftest.$ac_ext >&5
28168
28169         ac_lo= ac_hi=
28170 fi
28171
28172 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28173 fi
28174
28175 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28176 # Binary search between lo and hi bounds.
28177 while test "x$ac_lo" != "x$ac_hi"; do
28178   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
28179   cat >conftest.$ac_ext <<_ACEOF
28180 /* confdefs.h.  */
28181 _ACEOF
28182 cat confdefs.h >>conftest.$ac_ext
28183 cat >>conftest.$ac_ext <<_ACEOF
28184 /* end confdefs.h.  */
28185 $ac_includes_default
28186    typedef short ac__type_sizeof_;
28187 int
28188 main ()
28189 {
28190 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)@:>@;
28191 test_array @<:@0@:>@ = 0
28192
28193   ;
28194   return 0;
28195 }
28196 _ACEOF
28197 rm -f conftest.$ac_objext
28198 if { (ac_try="$ac_compile"
28199 case "(($ac_try" in
28200   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28201   *) ac_try_echo=$ac_try;;
28202 esac
28203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28204   (eval "$ac_compile") 2>conftest.er1
28205   ac_status=$?
28206   grep -v '^ *+' conftest.er1 >conftest.err
28207   rm -f conftest.er1
28208   cat conftest.err >&5
28209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28210   (exit $ac_status); } && {
28211          test -z "$ac_c_werror_flag" ||
28212          test ! -s conftest.err
28213        } && test -s conftest.$ac_objext; then
28214   ac_hi=$ac_mid
28215 else
28216   echo "$as_me: failed program was:" >&5
28217 sed 's/^/| /' conftest.$ac_ext >&5
28218
28219         ac_lo=`expr '(' $ac_mid ')' + 1`
28220 fi
28221
28222 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28223 done
28224 case $ac_lo in
28225 ?*) ac_cv_sizeof_short=$ac_lo;;
28226 '') if test "$ac_cv_type_short" = yes; then
28227      { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
28228 See \`config.log' for more details." >&5
28229 echo "$as_me: error: cannot compute sizeof (short)
28230 See \`config.log' for more details." >&2;}
28231    { (exit 77); exit 77; }; }
28232    else
28233      ac_cv_sizeof_short=0
28234    fi ;;
28235 esac
28236 else
28237   cat >conftest.$ac_ext <<_ACEOF
28238 /* confdefs.h.  */
28239 _ACEOF
28240 cat confdefs.h >>conftest.$ac_ext
28241 cat >>conftest.$ac_ext <<_ACEOF
28242 /* end confdefs.h.  */
28243 $ac_includes_default
28244    typedef short ac__type_sizeof_;
28245 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
28246 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
28247 @%:@include <stdio.h>
28248 @%:@include <stdlib.h>
28249 int
28250 main ()
28251 {
28252
28253   FILE *f = fopen ("conftest.val", "w");
28254   if (! f)
28255     return 1;
28256   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
28257     {
28258       long int i = longval ();
28259       if (i != ((long int) (sizeof (ac__type_sizeof_))))
28260         return 1;
28261       fprintf (f, "%ld\n", i);
28262     }
28263   else
28264     {
28265       unsigned long int i = ulongval ();
28266       if (i != ((long int) (sizeof (ac__type_sizeof_))))
28267         return 1;
28268       fprintf (f, "%lu\n", i);
28269     }
28270   return ferror (f) || fclose (f) != 0;
28271
28272   ;
28273   return 0;
28274 }
28275 _ACEOF
28276 rm -f conftest$ac_exeext
28277 if { (ac_try="$ac_link"
28278 case "(($ac_try" in
28279   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28280   *) ac_try_echo=$ac_try;;
28281 esac
28282 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28283   (eval "$ac_link") 2>&5
28284   ac_status=$?
28285   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28286   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28287   { (case "(($ac_try" in
28288   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28289   *) ac_try_echo=$ac_try;;
28290 esac
28291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28292   (eval "$ac_try") 2>&5
28293   ac_status=$?
28294   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28295   (exit $ac_status); }; }; then
28296   ac_cv_sizeof_short=`cat conftest.val`
28297 else
28298   echo "$as_me: program exited with status $ac_status" >&5
28299 echo "$as_me: failed program was:" >&5
28300 sed 's/^/| /' conftest.$ac_ext >&5
28301
28302 ( exit $ac_status )
28303 if test "$ac_cv_type_short" = yes; then
28304      { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
28305 See \`config.log' for more details." >&5
28306 echo "$as_me: error: cannot compute sizeof (short)
28307 See \`config.log' for more details." >&2;}
28308    { (exit 77); exit 77; }; }
28309    else
28310      ac_cv_sizeof_short=0
28311    fi
28312 fi
28313 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28314 fi
28315 rm -f conftest.val
28316 fi
28317 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
28318 echo "${ECHO_T}$ac_cv_sizeof_short" >&6; }
28319
28320
28321
28322 cat >>confdefs.h <<_ACEOF
28323 @%:@define SIZEOF_SHORT $ac_cv_sizeof_short
28324 _ACEOF
28325
28326
28327 { echo "$as_me:$LINENO: checking for int" >&5
28328 echo $ECHO_N "checking for int... $ECHO_C" >&6; }
28329 if test "${ac_cv_type_int+set}" = set; then
28330   echo $ECHO_N "(cached) $ECHO_C" >&6
28331 else
28332   cat >conftest.$ac_ext <<_ACEOF
28333 /* confdefs.h.  */
28334 _ACEOF
28335 cat confdefs.h >>conftest.$ac_ext
28336 cat >>conftest.$ac_ext <<_ACEOF
28337 /* end confdefs.h.  */
28338 $ac_includes_default
28339 typedef int ac__type_new_;
28340 int
28341 main ()
28342 {
28343 if ((ac__type_new_ *) 0)
28344   return 0;
28345 if (sizeof (ac__type_new_))
28346   return 0;
28347   ;
28348   return 0;
28349 }
28350 _ACEOF
28351 rm -f conftest.$ac_objext
28352 if { (ac_try="$ac_compile"
28353 case "(($ac_try" in
28354   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28355   *) ac_try_echo=$ac_try;;
28356 esac
28357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28358   (eval "$ac_compile") 2>conftest.er1
28359   ac_status=$?
28360   grep -v '^ *+' conftest.er1 >conftest.err
28361   rm -f conftest.er1
28362   cat conftest.err >&5
28363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28364   (exit $ac_status); } && {
28365          test -z "$ac_c_werror_flag" ||
28366          test ! -s conftest.err
28367        } && test -s conftest.$ac_objext; then
28368   ac_cv_type_int=yes
28369 else
28370   echo "$as_me: failed program was:" >&5
28371 sed 's/^/| /' conftest.$ac_ext >&5
28372
28373         ac_cv_type_int=no
28374 fi
28375
28376 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28377 fi
28378 { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
28379 echo "${ECHO_T}$ac_cv_type_int" >&6; }
28380
28381 # The cast to long int works around a bug in the HP C Compiler
28382 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
28383 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
28384 # This bug is HP SR number 8606223364.
28385 { echo "$as_me:$LINENO: checking size of int" >&5
28386 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
28387 if test "${ac_cv_sizeof_int+set}" = set; then
28388   echo $ECHO_N "(cached) $ECHO_C" >&6
28389 else
28390   if test "$cross_compiling" = yes; then
28391   # Depending upon the size, compute the lo and hi bounds.
28392 cat >conftest.$ac_ext <<_ACEOF
28393 /* confdefs.h.  */
28394 _ACEOF
28395 cat confdefs.h >>conftest.$ac_ext
28396 cat >>conftest.$ac_ext <<_ACEOF
28397 /* end confdefs.h.  */
28398 $ac_includes_default
28399    typedef int ac__type_sizeof_;
28400 int
28401 main ()
28402 {
28403 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)@:>@;
28404 test_array @<:@0@:>@ = 0
28405
28406   ;
28407   return 0;
28408 }
28409 _ACEOF
28410 rm -f conftest.$ac_objext
28411 if { (ac_try="$ac_compile"
28412 case "(($ac_try" in
28413   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28414   *) ac_try_echo=$ac_try;;
28415 esac
28416 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28417   (eval "$ac_compile") 2>conftest.er1
28418   ac_status=$?
28419   grep -v '^ *+' conftest.er1 >conftest.err
28420   rm -f conftest.er1
28421   cat conftest.err >&5
28422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28423   (exit $ac_status); } && {
28424          test -z "$ac_c_werror_flag" ||
28425          test ! -s conftest.err
28426        } && test -s conftest.$ac_objext; then
28427   ac_lo=0 ac_mid=0
28428   while :; do
28429     cat >conftest.$ac_ext <<_ACEOF
28430 /* confdefs.h.  */
28431 _ACEOF
28432 cat confdefs.h >>conftest.$ac_ext
28433 cat >>conftest.$ac_ext <<_ACEOF
28434 /* end confdefs.h.  */
28435 $ac_includes_default
28436    typedef int ac__type_sizeof_;
28437 int
28438 main ()
28439 {
28440 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)@:>@;
28441 test_array @<:@0@:>@ = 0
28442
28443   ;
28444   return 0;
28445 }
28446 _ACEOF
28447 rm -f conftest.$ac_objext
28448 if { (ac_try="$ac_compile"
28449 case "(($ac_try" in
28450   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28451   *) ac_try_echo=$ac_try;;
28452 esac
28453 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28454   (eval "$ac_compile") 2>conftest.er1
28455   ac_status=$?
28456   grep -v '^ *+' conftest.er1 >conftest.err
28457   rm -f conftest.er1
28458   cat conftest.err >&5
28459   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28460   (exit $ac_status); } && {
28461          test -z "$ac_c_werror_flag" ||
28462          test ! -s conftest.err
28463        } && test -s conftest.$ac_objext; then
28464   ac_hi=$ac_mid; break
28465 else
28466   echo "$as_me: failed program was:" >&5
28467 sed 's/^/| /' conftest.$ac_ext >&5
28468
28469         ac_lo=`expr $ac_mid + 1`
28470                         if test $ac_lo -le $ac_mid; then
28471                           ac_lo= ac_hi=
28472                           break
28473                         fi
28474                         ac_mid=`expr 2 '*' $ac_mid + 1`
28475 fi
28476
28477 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28478   done
28479 else
28480   echo "$as_me: failed program was:" >&5
28481 sed 's/^/| /' conftest.$ac_ext >&5
28482
28483         cat >conftest.$ac_ext <<_ACEOF
28484 /* confdefs.h.  */
28485 _ACEOF
28486 cat confdefs.h >>conftest.$ac_ext
28487 cat >>conftest.$ac_ext <<_ACEOF
28488 /* end confdefs.h.  */
28489 $ac_includes_default
28490    typedef int ac__type_sizeof_;
28491 int
28492 main ()
28493 {
28494 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)@:>@;
28495 test_array @<:@0@:>@ = 0
28496
28497   ;
28498   return 0;
28499 }
28500 _ACEOF
28501 rm -f conftest.$ac_objext
28502 if { (ac_try="$ac_compile"
28503 case "(($ac_try" in
28504   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28505   *) ac_try_echo=$ac_try;;
28506 esac
28507 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28508   (eval "$ac_compile") 2>conftest.er1
28509   ac_status=$?
28510   grep -v '^ *+' conftest.er1 >conftest.err
28511   rm -f conftest.er1
28512   cat conftest.err >&5
28513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28514   (exit $ac_status); } && {
28515          test -z "$ac_c_werror_flag" ||
28516          test ! -s conftest.err
28517        } && test -s conftest.$ac_objext; then
28518   ac_hi=-1 ac_mid=-1
28519   while :; do
28520     cat >conftest.$ac_ext <<_ACEOF
28521 /* confdefs.h.  */
28522 _ACEOF
28523 cat confdefs.h >>conftest.$ac_ext
28524 cat >>conftest.$ac_ext <<_ACEOF
28525 /* end confdefs.h.  */
28526 $ac_includes_default
28527    typedef int ac__type_sizeof_;
28528 int
28529 main ()
28530 {
28531 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)@:>@;
28532 test_array @<:@0@:>@ = 0
28533
28534   ;
28535   return 0;
28536 }
28537 _ACEOF
28538 rm -f conftest.$ac_objext
28539 if { (ac_try="$ac_compile"
28540 case "(($ac_try" in
28541   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28542   *) ac_try_echo=$ac_try;;
28543 esac
28544 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28545   (eval "$ac_compile") 2>conftest.er1
28546   ac_status=$?
28547   grep -v '^ *+' conftest.er1 >conftest.err
28548   rm -f conftest.er1
28549   cat conftest.err >&5
28550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28551   (exit $ac_status); } && {
28552          test -z "$ac_c_werror_flag" ||
28553          test ! -s conftest.err
28554        } && test -s conftest.$ac_objext; then
28555   ac_lo=$ac_mid; break
28556 else
28557   echo "$as_me: failed program was:" >&5
28558 sed 's/^/| /' conftest.$ac_ext >&5
28559
28560         ac_hi=`expr '(' $ac_mid ')' - 1`
28561                         if test $ac_mid -le $ac_hi; then
28562                           ac_lo= ac_hi=
28563                           break
28564                         fi
28565                         ac_mid=`expr 2 '*' $ac_mid`
28566 fi
28567
28568 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28569   done
28570 else
28571   echo "$as_me: failed program was:" >&5
28572 sed 's/^/| /' conftest.$ac_ext >&5
28573
28574         ac_lo= ac_hi=
28575 fi
28576
28577 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28578 fi
28579
28580 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28581 # Binary search between lo and hi bounds.
28582 while test "x$ac_lo" != "x$ac_hi"; do
28583   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
28584   cat >conftest.$ac_ext <<_ACEOF
28585 /* confdefs.h.  */
28586 _ACEOF
28587 cat confdefs.h >>conftest.$ac_ext
28588 cat >>conftest.$ac_ext <<_ACEOF
28589 /* end confdefs.h.  */
28590 $ac_includes_default
28591    typedef int ac__type_sizeof_;
28592 int
28593 main ()
28594 {
28595 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)@:>@;
28596 test_array @<:@0@:>@ = 0
28597
28598   ;
28599   return 0;
28600 }
28601 _ACEOF
28602 rm -f conftest.$ac_objext
28603 if { (ac_try="$ac_compile"
28604 case "(($ac_try" in
28605   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28606   *) ac_try_echo=$ac_try;;
28607 esac
28608 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28609   (eval "$ac_compile") 2>conftest.er1
28610   ac_status=$?
28611   grep -v '^ *+' conftest.er1 >conftest.err
28612   rm -f conftest.er1
28613   cat conftest.err >&5
28614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28615   (exit $ac_status); } && {
28616          test -z "$ac_c_werror_flag" ||
28617          test ! -s conftest.err
28618        } && test -s conftest.$ac_objext; then
28619   ac_hi=$ac_mid
28620 else
28621   echo "$as_me: failed program was:" >&5
28622 sed 's/^/| /' conftest.$ac_ext >&5
28623
28624         ac_lo=`expr '(' $ac_mid ')' + 1`
28625 fi
28626
28627 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28628 done
28629 case $ac_lo in
28630 ?*) ac_cv_sizeof_int=$ac_lo;;
28631 '') if test "$ac_cv_type_int" = yes; then
28632      { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
28633 See \`config.log' for more details." >&5
28634 echo "$as_me: error: cannot compute sizeof (int)
28635 See \`config.log' for more details." >&2;}
28636    { (exit 77); exit 77; }; }
28637    else
28638      ac_cv_sizeof_int=0
28639    fi ;;
28640 esac
28641 else
28642   cat >conftest.$ac_ext <<_ACEOF
28643 /* confdefs.h.  */
28644 _ACEOF
28645 cat confdefs.h >>conftest.$ac_ext
28646 cat >>conftest.$ac_ext <<_ACEOF
28647 /* end confdefs.h.  */
28648 $ac_includes_default
28649    typedef int ac__type_sizeof_;
28650 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
28651 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
28652 @%:@include <stdio.h>
28653 @%:@include <stdlib.h>
28654 int
28655 main ()
28656 {
28657
28658   FILE *f = fopen ("conftest.val", "w");
28659   if (! f)
28660     return 1;
28661   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
28662     {
28663       long int i = longval ();
28664       if (i != ((long int) (sizeof (ac__type_sizeof_))))
28665         return 1;
28666       fprintf (f, "%ld\n", i);
28667     }
28668   else
28669     {
28670       unsigned long int i = ulongval ();
28671       if (i != ((long int) (sizeof (ac__type_sizeof_))))
28672         return 1;
28673       fprintf (f, "%lu\n", i);
28674     }
28675   return ferror (f) || fclose (f) != 0;
28676
28677   ;
28678   return 0;
28679 }
28680 _ACEOF
28681 rm -f conftest$ac_exeext
28682 if { (ac_try="$ac_link"
28683 case "(($ac_try" in
28684   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28685   *) ac_try_echo=$ac_try;;
28686 esac
28687 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28688   (eval "$ac_link") 2>&5
28689   ac_status=$?
28690   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28691   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28692   { (case "(($ac_try" in
28693   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28694   *) ac_try_echo=$ac_try;;
28695 esac
28696 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28697   (eval "$ac_try") 2>&5
28698   ac_status=$?
28699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28700   (exit $ac_status); }; }; then
28701   ac_cv_sizeof_int=`cat conftest.val`
28702 else
28703   echo "$as_me: program exited with status $ac_status" >&5
28704 echo "$as_me: failed program was:" >&5
28705 sed 's/^/| /' conftest.$ac_ext >&5
28706
28707 ( exit $ac_status )
28708 if test "$ac_cv_type_int" = yes; then
28709      { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
28710 See \`config.log' for more details." >&5
28711 echo "$as_me: error: cannot compute sizeof (int)
28712 See \`config.log' for more details." >&2;}
28713    { (exit 77); exit 77; }; }
28714    else
28715      ac_cv_sizeof_int=0
28716    fi
28717 fi
28718 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28719 fi
28720 rm -f conftest.val
28721 fi
28722 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
28723 echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
28724
28725
28726
28727 cat >>confdefs.h <<_ACEOF
28728 @%:@define SIZEOF_INT $ac_cv_sizeof_int
28729 _ACEOF
28730
28731
28732 { echo "$as_me:$LINENO: checking for long" >&5
28733 echo $ECHO_N "checking for long... $ECHO_C" >&6; }
28734 if test "${ac_cv_type_long+set}" = set; then
28735   echo $ECHO_N "(cached) $ECHO_C" >&6
28736 else
28737   cat >conftest.$ac_ext <<_ACEOF
28738 /* confdefs.h.  */
28739 _ACEOF
28740 cat confdefs.h >>conftest.$ac_ext
28741 cat >>conftest.$ac_ext <<_ACEOF
28742 /* end confdefs.h.  */
28743 $ac_includes_default
28744 typedef long ac__type_new_;
28745 int
28746 main ()
28747 {
28748 if ((ac__type_new_ *) 0)
28749   return 0;
28750 if (sizeof (ac__type_new_))
28751   return 0;
28752   ;
28753   return 0;
28754 }
28755 _ACEOF
28756 rm -f conftest.$ac_objext
28757 if { (ac_try="$ac_compile"
28758 case "(($ac_try" in
28759   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28760   *) ac_try_echo=$ac_try;;
28761 esac
28762 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28763   (eval "$ac_compile") 2>conftest.er1
28764   ac_status=$?
28765   grep -v '^ *+' conftest.er1 >conftest.err
28766   rm -f conftest.er1
28767   cat conftest.err >&5
28768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28769   (exit $ac_status); } && {
28770          test -z "$ac_c_werror_flag" ||
28771          test ! -s conftest.err
28772        } && test -s conftest.$ac_objext; then
28773   ac_cv_type_long=yes
28774 else
28775   echo "$as_me: failed program was:" >&5
28776 sed 's/^/| /' conftest.$ac_ext >&5
28777
28778         ac_cv_type_long=no
28779 fi
28780
28781 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28782 fi
28783 { echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
28784 echo "${ECHO_T}$ac_cv_type_long" >&6; }
28785
28786 # The cast to long int works around a bug in the HP C Compiler
28787 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
28788 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
28789 # This bug is HP SR number 8606223364.
28790 { echo "$as_me:$LINENO: checking size of long" >&5
28791 echo $ECHO_N "checking size of long... $ECHO_C" >&6; }
28792 if test "${ac_cv_sizeof_long+set}" = set; then
28793   echo $ECHO_N "(cached) $ECHO_C" >&6
28794 else
28795   if test "$cross_compiling" = yes; then
28796   # Depending upon the size, compute the lo and hi bounds.
28797 cat >conftest.$ac_ext <<_ACEOF
28798 /* confdefs.h.  */
28799 _ACEOF
28800 cat confdefs.h >>conftest.$ac_ext
28801 cat >>conftest.$ac_ext <<_ACEOF
28802 /* end confdefs.h.  */
28803 $ac_includes_default
28804    typedef long ac__type_sizeof_;
28805 int
28806 main ()
28807 {
28808 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)@:>@;
28809 test_array @<:@0@:>@ = 0
28810
28811   ;
28812   return 0;
28813 }
28814 _ACEOF
28815 rm -f conftest.$ac_objext
28816 if { (ac_try="$ac_compile"
28817 case "(($ac_try" in
28818   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28819   *) ac_try_echo=$ac_try;;
28820 esac
28821 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28822   (eval "$ac_compile") 2>conftest.er1
28823   ac_status=$?
28824   grep -v '^ *+' conftest.er1 >conftest.err
28825   rm -f conftest.er1
28826   cat conftest.err >&5
28827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28828   (exit $ac_status); } && {
28829          test -z "$ac_c_werror_flag" ||
28830          test ! -s conftest.err
28831        } && test -s conftest.$ac_objext; then
28832   ac_lo=0 ac_mid=0
28833   while :; do
28834     cat >conftest.$ac_ext <<_ACEOF
28835 /* confdefs.h.  */
28836 _ACEOF
28837 cat confdefs.h >>conftest.$ac_ext
28838 cat >>conftest.$ac_ext <<_ACEOF
28839 /* end confdefs.h.  */
28840 $ac_includes_default
28841    typedef long ac__type_sizeof_;
28842 int
28843 main ()
28844 {
28845 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)@:>@;
28846 test_array @<:@0@:>@ = 0
28847
28848   ;
28849   return 0;
28850 }
28851 _ACEOF
28852 rm -f conftest.$ac_objext
28853 if { (ac_try="$ac_compile"
28854 case "(($ac_try" in
28855   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28856   *) ac_try_echo=$ac_try;;
28857 esac
28858 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28859   (eval "$ac_compile") 2>conftest.er1
28860   ac_status=$?
28861   grep -v '^ *+' conftest.er1 >conftest.err
28862   rm -f conftest.er1
28863   cat conftest.err >&5
28864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28865   (exit $ac_status); } && {
28866          test -z "$ac_c_werror_flag" ||
28867          test ! -s conftest.err
28868        } && test -s conftest.$ac_objext; then
28869   ac_hi=$ac_mid; break
28870 else
28871   echo "$as_me: failed program was:" >&5
28872 sed 's/^/| /' conftest.$ac_ext >&5
28873
28874         ac_lo=`expr $ac_mid + 1`
28875                         if test $ac_lo -le $ac_mid; then
28876                           ac_lo= ac_hi=
28877                           break
28878                         fi
28879                         ac_mid=`expr 2 '*' $ac_mid + 1`
28880 fi
28881
28882 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28883   done
28884 else
28885   echo "$as_me: failed program was:" >&5
28886 sed 's/^/| /' conftest.$ac_ext >&5
28887
28888         cat >conftest.$ac_ext <<_ACEOF
28889 /* confdefs.h.  */
28890 _ACEOF
28891 cat confdefs.h >>conftest.$ac_ext
28892 cat >>conftest.$ac_ext <<_ACEOF
28893 /* end confdefs.h.  */
28894 $ac_includes_default
28895    typedef long ac__type_sizeof_;
28896 int
28897 main ()
28898 {
28899 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)@:>@;
28900 test_array @<:@0@:>@ = 0
28901
28902   ;
28903   return 0;
28904 }
28905 _ACEOF
28906 rm -f conftest.$ac_objext
28907 if { (ac_try="$ac_compile"
28908 case "(($ac_try" in
28909   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28910   *) ac_try_echo=$ac_try;;
28911 esac
28912 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28913   (eval "$ac_compile") 2>conftest.er1
28914   ac_status=$?
28915   grep -v '^ *+' conftest.er1 >conftest.err
28916   rm -f conftest.er1
28917   cat conftest.err >&5
28918   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28919   (exit $ac_status); } && {
28920          test -z "$ac_c_werror_flag" ||
28921          test ! -s conftest.err
28922        } && test -s conftest.$ac_objext; then
28923   ac_hi=-1 ac_mid=-1
28924   while :; do
28925     cat >conftest.$ac_ext <<_ACEOF
28926 /* confdefs.h.  */
28927 _ACEOF
28928 cat confdefs.h >>conftest.$ac_ext
28929 cat >>conftest.$ac_ext <<_ACEOF
28930 /* end confdefs.h.  */
28931 $ac_includes_default
28932    typedef long ac__type_sizeof_;
28933 int
28934 main ()
28935 {
28936 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)@:>@;
28937 test_array @<:@0@:>@ = 0
28938
28939   ;
28940   return 0;
28941 }
28942 _ACEOF
28943 rm -f conftest.$ac_objext
28944 if { (ac_try="$ac_compile"
28945 case "(($ac_try" in
28946   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28947   *) ac_try_echo=$ac_try;;
28948 esac
28949 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28950   (eval "$ac_compile") 2>conftest.er1
28951   ac_status=$?
28952   grep -v '^ *+' conftest.er1 >conftest.err
28953   rm -f conftest.er1
28954   cat conftest.err >&5
28955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28956   (exit $ac_status); } && {
28957          test -z "$ac_c_werror_flag" ||
28958          test ! -s conftest.err
28959        } && test -s conftest.$ac_objext; then
28960   ac_lo=$ac_mid; break
28961 else
28962   echo "$as_me: failed program was:" >&5
28963 sed 's/^/| /' conftest.$ac_ext >&5
28964
28965         ac_hi=`expr '(' $ac_mid ')' - 1`
28966                         if test $ac_mid -le $ac_hi; then
28967                           ac_lo= ac_hi=
28968                           break
28969                         fi
28970                         ac_mid=`expr 2 '*' $ac_mid`
28971 fi
28972
28973 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28974   done
28975 else
28976   echo "$as_me: failed program was:" >&5
28977 sed 's/^/| /' conftest.$ac_ext >&5
28978
28979         ac_lo= ac_hi=
28980 fi
28981
28982 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28983 fi
28984
28985 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28986 # Binary search between lo and hi bounds.
28987 while test "x$ac_lo" != "x$ac_hi"; do
28988   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
28989   cat >conftest.$ac_ext <<_ACEOF
28990 /* confdefs.h.  */
28991 _ACEOF
28992 cat confdefs.h >>conftest.$ac_ext
28993 cat >>conftest.$ac_ext <<_ACEOF
28994 /* end confdefs.h.  */
28995 $ac_includes_default
28996    typedef long ac__type_sizeof_;
28997 int
28998 main ()
28999 {
29000 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)@:>@;
29001 test_array @<:@0@:>@ = 0
29002
29003   ;
29004   return 0;
29005 }
29006 _ACEOF
29007 rm -f conftest.$ac_objext
29008 if { (ac_try="$ac_compile"
29009 case "(($ac_try" in
29010   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29011   *) ac_try_echo=$ac_try;;
29012 esac
29013 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29014   (eval "$ac_compile") 2>conftest.er1
29015   ac_status=$?
29016   grep -v '^ *+' conftest.er1 >conftest.err
29017   rm -f conftest.er1
29018   cat conftest.err >&5
29019   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29020   (exit $ac_status); } && {
29021          test -z "$ac_c_werror_flag" ||
29022          test ! -s conftest.err
29023        } && test -s conftest.$ac_objext; then
29024   ac_hi=$ac_mid
29025 else
29026   echo "$as_me: failed program was:" >&5
29027 sed 's/^/| /' conftest.$ac_ext >&5
29028
29029         ac_lo=`expr '(' $ac_mid ')' + 1`
29030 fi
29031
29032 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29033 done
29034 case $ac_lo in
29035 ?*) ac_cv_sizeof_long=$ac_lo;;
29036 '') if test "$ac_cv_type_long" = yes; then
29037      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
29038 See \`config.log' for more details." >&5
29039 echo "$as_me: error: cannot compute sizeof (long)
29040 See \`config.log' for more details." >&2;}
29041    { (exit 77); exit 77; }; }
29042    else
29043      ac_cv_sizeof_long=0
29044    fi ;;
29045 esac
29046 else
29047   cat >conftest.$ac_ext <<_ACEOF
29048 /* confdefs.h.  */
29049 _ACEOF
29050 cat confdefs.h >>conftest.$ac_ext
29051 cat >>conftest.$ac_ext <<_ACEOF
29052 /* end confdefs.h.  */
29053 $ac_includes_default
29054    typedef long ac__type_sizeof_;
29055 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
29056 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
29057 @%:@include <stdio.h>
29058 @%:@include <stdlib.h>
29059 int
29060 main ()
29061 {
29062
29063   FILE *f = fopen ("conftest.val", "w");
29064   if (! f)
29065     return 1;
29066   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
29067     {
29068       long int i = longval ();
29069       if (i != ((long int) (sizeof (ac__type_sizeof_))))
29070         return 1;
29071       fprintf (f, "%ld\n", i);
29072     }
29073   else
29074     {
29075       unsigned long int i = ulongval ();
29076       if (i != ((long int) (sizeof (ac__type_sizeof_))))
29077         return 1;
29078       fprintf (f, "%lu\n", i);
29079     }
29080   return ferror (f) || fclose (f) != 0;
29081
29082   ;
29083   return 0;
29084 }
29085 _ACEOF
29086 rm -f conftest$ac_exeext
29087 if { (ac_try="$ac_link"
29088 case "(($ac_try" in
29089   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29090   *) ac_try_echo=$ac_try;;
29091 esac
29092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29093   (eval "$ac_link") 2>&5
29094   ac_status=$?
29095   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29096   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29097   { (case "(($ac_try" in
29098   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29099   *) ac_try_echo=$ac_try;;
29100 esac
29101 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29102   (eval "$ac_try") 2>&5
29103   ac_status=$?
29104   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29105   (exit $ac_status); }; }; then
29106   ac_cv_sizeof_long=`cat conftest.val`
29107 else
29108   echo "$as_me: program exited with status $ac_status" >&5
29109 echo "$as_me: failed program was:" >&5
29110 sed 's/^/| /' conftest.$ac_ext >&5
29111
29112 ( exit $ac_status )
29113 if test "$ac_cv_type_long" = yes; then
29114      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
29115 See \`config.log' for more details." >&5
29116 echo "$as_me: error: cannot compute sizeof (long)
29117 See \`config.log' for more details." >&2;}
29118    { (exit 77); exit 77; }; }
29119    else
29120      ac_cv_sizeof_long=0
29121    fi
29122 fi
29123 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29124 fi
29125 rm -f conftest.val
29126 fi
29127 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
29128 echo "${ECHO_T}$ac_cv_sizeof_long" >&6; }
29129
29130
29131
29132 cat >>confdefs.h <<_ACEOF
29133 @%:@define SIZEOF_LONG $ac_cv_sizeof_long
29134 _ACEOF
29135
29136
29137 { echo "$as_me:$LINENO: checking for size_t" >&5
29138 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
29139 if test "${ac_cv_type_size_t+set}" = set; then
29140   echo $ECHO_N "(cached) $ECHO_C" >&6
29141 else
29142   cat >conftest.$ac_ext <<_ACEOF
29143 /* confdefs.h.  */
29144 _ACEOF
29145 cat confdefs.h >>conftest.$ac_ext
29146 cat >>conftest.$ac_ext <<_ACEOF
29147 /* end confdefs.h.  */
29148 $ac_includes_default
29149 typedef size_t ac__type_new_;
29150 int
29151 main ()
29152 {
29153 if ((ac__type_new_ *) 0)
29154   return 0;
29155 if (sizeof (ac__type_new_))
29156   return 0;
29157   ;
29158   return 0;
29159 }
29160 _ACEOF
29161 rm -f conftest.$ac_objext
29162 if { (ac_try="$ac_compile"
29163 case "(($ac_try" in
29164   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29165   *) ac_try_echo=$ac_try;;
29166 esac
29167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29168   (eval "$ac_compile") 2>conftest.er1
29169   ac_status=$?
29170   grep -v '^ *+' conftest.er1 >conftest.err
29171   rm -f conftest.er1
29172   cat conftest.err >&5
29173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29174   (exit $ac_status); } && {
29175          test -z "$ac_c_werror_flag" ||
29176          test ! -s conftest.err
29177        } && test -s conftest.$ac_objext; then
29178   ac_cv_type_size_t=yes
29179 else
29180   echo "$as_me: failed program was:" >&5
29181 sed 's/^/| /' conftest.$ac_ext >&5
29182
29183         ac_cv_type_size_t=no
29184 fi
29185
29186 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29187 fi
29188 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
29189 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
29190
29191 # The cast to long int works around a bug in the HP C Compiler
29192 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
29193 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
29194 # This bug is HP SR number 8606223364.
29195 { echo "$as_me:$LINENO: checking size of size_t" >&5
29196 echo $ECHO_N "checking size of size_t... $ECHO_C" >&6; }
29197 if test "${ac_cv_sizeof_size_t+set}" = set; then
29198   echo $ECHO_N "(cached) $ECHO_C" >&6
29199 else
29200   if test "$cross_compiling" = yes; then
29201   # Depending upon the size, compute the lo and hi bounds.
29202 cat >conftest.$ac_ext <<_ACEOF
29203 /* confdefs.h.  */
29204 _ACEOF
29205 cat confdefs.h >>conftest.$ac_ext
29206 cat >>conftest.$ac_ext <<_ACEOF
29207 /* end confdefs.h.  */
29208 $ac_includes_default
29209    typedef size_t ac__type_sizeof_;
29210 int
29211 main ()
29212 {
29213 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)@:>@;
29214 test_array @<:@0@:>@ = 0
29215
29216   ;
29217   return 0;
29218 }
29219 _ACEOF
29220 rm -f conftest.$ac_objext
29221 if { (ac_try="$ac_compile"
29222 case "(($ac_try" in
29223   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29224   *) ac_try_echo=$ac_try;;
29225 esac
29226 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29227   (eval "$ac_compile") 2>conftest.er1
29228   ac_status=$?
29229   grep -v '^ *+' conftest.er1 >conftest.err
29230   rm -f conftest.er1
29231   cat conftest.err >&5
29232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29233   (exit $ac_status); } && {
29234          test -z "$ac_c_werror_flag" ||
29235          test ! -s conftest.err
29236        } && test -s conftest.$ac_objext; then
29237   ac_lo=0 ac_mid=0
29238   while :; do
29239     cat >conftest.$ac_ext <<_ACEOF
29240 /* confdefs.h.  */
29241 _ACEOF
29242 cat confdefs.h >>conftest.$ac_ext
29243 cat >>conftest.$ac_ext <<_ACEOF
29244 /* end confdefs.h.  */
29245 $ac_includes_default
29246    typedef size_t ac__type_sizeof_;
29247 int
29248 main ()
29249 {
29250 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)@:>@;
29251 test_array @<:@0@:>@ = 0
29252
29253   ;
29254   return 0;
29255 }
29256 _ACEOF
29257 rm -f conftest.$ac_objext
29258 if { (ac_try="$ac_compile"
29259 case "(($ac_try" in
29260   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29261   *) ac_try_echo=$ac_try;;
29262 esac
29263 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29264   (eval "$ac_compile") 2>conftest.er1
29265   ac_status=$?
29266   grep -v '^ *+' conftest.er1 >conftest.err
29267   rm -f conftest.er1
29268   cat conftest.err >&5
29269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29270   (exit $ac_status); } && {
29271          test -z "$ac_c_werror_flag" ||
29272          test ! -s conftest.err
29273        } && test -s conftest.$ac_objext; then
29274   ac_hi=$ac_mid; break
29275 else
29276   echo "$as_me: failed program was:" >&5
29277 sed 's/^/| /' conftest.$ac_ext >&5
29278
29279         ac_lo=`expr $ac_mid + 1`
29280                         if test $ac_lo -le $ac_mid; then
29281                           ac_lo= ac_hi=
29282                           break
29283                         fi
29284                         ac_mid=`expr 2 '*' $ac_mid + 1`
29285 fi
29286
29287 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29288   done
29289 else
29290   echo "$as_me: failed program was:" >&5
29291 sed 's/^/| /' conftest.$ac_ext >&5
29292
29293         cat >conftest.$ac_ext <<_ACEOF
29294 /* confdefs.h.  */
29295 _ACEOF
29296 cat confdefs.h >>conftest.$ac_ext
29297 cat >>conftest.$ac_ext <<_ACEOF
29298 /* end confdefs.h.  */
29299 $ac_includes_default
29300    typedef size_t ac__type_sizeof_;
29301 int
29302 main ()
29303 {
29304 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)@:>@;
29305 test_array @<:@0@:>@ = 0
29306
29307   ;
29308   return 0;
29309 }
29310 _ACEOF
29311 rm -f conftest.$ac_objext
29312 if { (ac_try="$ac_compile"
29313 case "(($ac_try" in
29314   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29315   *) ac_try_echo=$ac_try;;
29316 esac
29317 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29318   (eval "$ac_compile") 2>conftest.er1
29319   ac_status=$?
29320   grep -v '^ *+' conftest.er1 >conftest.err
29321   rm -f conftest.er1
29322   cat conftest.err >&5
29323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29324   (exit $ac_status); } && {
29325          test -z "$ac_c_werror_flag" ||
29326          test ! -s conftest.err
29327        } && test -s conftest.$ac_objext; then
29328   ac_hi=-1 ac_mid=-1
29329   while :; do
29330     cat >conftest.$ac_ext <<_ACEOF
29331 /* confdefs.h.  */
29332 _ACEOF
29333 cat confdefs.h >>conftest.$ac_ext
29334 cat >>conftest.$ac_ext <<_ACEOF
29335 /* end confdefs.h.  */
29336 $ac_includes_default
29337    typedef size_t ac__type_sizeof_;
29338 int
29339 main ()
29340 {
29341 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)@:>@;
29342 test_array @<:@0@:>@ = 0
29343
29344   ;
29345   return 0;
29346 }
29347 _ACEOF
29348 rm -f conftest.$ac_objext
29349 if { (ac_try="$ac_compile"
29350 case "(($ac_try" in
29351   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29352   *) ac_try_echo=$ac_try;;
29353 esac
29354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29355   (eval "$ac_compile") 2>conftest.er1
29356   ac_status=$?
29357   grep -v '^ *+' conftest.er1 >conftest.err
29358   rm -f conftest.er1
29359   cat conftest.err >&5
29360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29361   (exit $ac_status); } && {
29362          test -z "$ac_c_werror_flag" ||
29363          test ! -s conftest.err
29364        } && test -s conftest.$ac_objext; then
29365   ac_lo=$ac_mid; break
29366 else
29367   echo "$as_me: failed program was:" >&5
29368 sed 's/^/| /' conftest.$ac_ext >&5
29369
29370         ac_hi=`expr '(' $ac_mid ')' - 1`
29371                         if test $ac_mid -le $ac_hi; then
29372                           ac_lo= ac_hi=
29373                           break
29374                         fi
29375                         ac_mid=`expr 2 '*' $ac_mid`
29376 fi
29377
29378 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29379   done
29380 else
29381   echo "$as_me: failed program was:" >&5
29382 sed 's/^/| /' conftest.$ac_ext >&5
29383
29384         ac_lo= ac_hi=
29385 fi
29386
29387 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29388 fi
29389
29390 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29391 # Binary search between lo and hi bounds.
29392 while test "x$ac_lo" != "x$ac_hi"; do
29393   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
29394   cat >conftest.$ac_ext <<_ACEOF
29395 /* confdefs.h.  */
29396 _ACEOF
29397 cat confdefs.h >>conftest.$ac_ext
29398 cat >>conftest.$ac_ext <<_ACEOF
29399 /* end confdefs.h.  */
29400 $ac_includes_default
29401    typedef size_t ac__type_sizeof_;
29402 int
29403 main ()
29404 {
29405 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)@:>@;
29406 test_array @<:@0@:>@ = 0
29407
29408   ;
29409   return 0;
29410 }
29411 _ACEOF
29412 rm -f conftest.$ac_objext
29413 if { (ac_try="$ac_compile"
29414 case "(($ac_try" in
29415   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29416   *) ac_try_echo=$ac_try;;
29417 esac
29418 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29419   (eval "$ac_compile") 2>conftest.er1
29420   ac_status=$?
29421   grep -v '^ *+' conftest.er1 >conftest.err
29422   rm -f conftest.er1
29423   cat conftest.err >&5
29424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29425   (exit $ac_status); } && {
29426          test -z "$ac_c_werror_flag" ||
29427          test ! -s conftest.err
29428        } && test -s conftest.$ac_objext; then
29429   ac_hi=$ac_mid
29430 else
29431   echo "$as_me: failed program was:" >&5
29432 sed 's/^/| /' conftest.$ac_ext >&5
29433
29434         ac_lo=`expr '(' $ac_mid ')' + 1`
29435 fi
29436
29437 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29438 done
29439 case $ac_lo in
29440 ?*) ac_cv_sizeof_size_t=$ac_lo;;
29441 '') if test "$ac_cv_type_size_t" = yes; then
29442      { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
29443 See \`config.log' for more details." >&5
29444 echo "$as_me: error: cannot compute sizeof (size_t)
29445 See \`config.log' for more details." >&2;}
29446    { (exit 77); exit 77; }; }
29447    else
29448      ac_cv_sizeof_size_t=0
29449    fi ;;
29450 esac
29451 else
29452   cat >conftest.$ac_ext <<_ACEOF
29453 /* confdefs.h.  */
29454 _ACEOF
29455 cat confdefs.h >>conftest.$ac_ext
29456 cat >>conftest.$ac_ext <<_ACEOF
29457 /* end confdefs.h.  */
29458 $ac_includes_default
29459    typedef size_t ac__type_sizeof_;
29460 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
29461 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
29462 @%:@include <stdio.h>
29463 @%:@include <stdlib.h>
29464 int
29465 main ()
29466 {
29467
29468   FILE *f = fopen ("conftest.val", "w");
29469   if (! f)
29470     return 1;
29471   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
29472     {
29473       long int i = longval ();
29474       if (i != ((long int) (sizeof (ac__type_sizeof_))))
29475         return 1;
29476       fprintf (f, "%ld\n", i);
29477     }
29478   else
29479     {
29480       unsigned long int i = ulongval ();
29481       if (i != ((long int) (sizeof (ac__type_sizeof_))))
29482         return 1;
29483       fprintf (f, "%lu\n", i);
29484     }
29485   return ferror (f) || fclose (f) != 0;
29486
29487   ;
29488   return 0;
29489 }
29490 _ACEOF
29491 rm -f conftest$ac_exeext
29492 if { (ac_try="$ac_link"
29493 case "(($ac_try" in
29494   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29495   *) ac_try_echo=$ac_try;;
29496 esac
29497 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29498   (eval "$ac_link") 2>&5
29499   ac_status=$?
29500   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29501   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29502   { (case "(($ac_try" in
29503   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29504   *) ac_try_echo=$ac_try;;
29505 esac
29506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29507   (eval "$ac_try") 2>&5
29508   ac_status=$?
29509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29510   (exit $ac_status); }; }; then
29511   ac_cv_sizeof_size_t=`cat conftest.val`
29512 else
29513   echo "$as_me: program exited with status $ac_status" >&5
29514 echo "$as_me: failed program was:" >&5
29515 sed 's/^/| /' conftest.$ac_ext >&5
29516
29517 ( exit $ac_status )
29518 if test "$ac_cv_type_size_t" = yes; then
29519      { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
29520 See \`config.log' for more details." >&5
29521 echo "$as_me: error: cannot compute sizeof (size_t)
29522 See \`config.log' for more details." >&2;}
29523    { (exit 77); exit 77; }; }
29524    else
29525      ac_cv_sizeof_size_t=0
29526    fi
29527 fi
29528 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29529 fi
29530 rm -f conftest.val
29531 fi
29532 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
29533 echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6; }
29534
29535
29536
29537 cat >>confdefs.h <<_ACEOF
29538 @%:@define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
29539 _ACEOF
29540
29541
29542 { echo "$as_me:$LINENO: checking for socklen_t" >&5
29543 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; }
29544 if test "${ac_cv_type_socklen_t+set}" = set; then
29545   echo $ECHO_N "(cached) $ECHO_C" >&6
29546 else
29547   cat >conftest.$ac_ext <<_ACEOF
29548 /* confdefs.h.  */
29549 _ACEOF
29550 cat confdefs.h >>conftest.$ac_ext
29551 cat >>conftest.$ac_ext <<_ACEOF
29552 /* end confdefs.h.  */
29553 $ac_includes_default
29554 typedef socklen_t ac__type_new_;
29555 int
29556 main ()
29557 {
29558 if ((ac__type_new_ *) 0)
29559   return 0;
29560 if (sizeof (ac__type_new_))
29561   return 0;
29562   ;
29563   return 0;
29564 }
29565 _ACEOF
29566 rm -f conftest.$ac_objext
29567 if { (ac_try="$ac_compile"
29568 case "(($ac_try" in
29569   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29570   *) ac_try_echo=$ac_try;;
29571 esac
29572 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29573   (eval "$ac_compile") 2>conftest.er1
29574   ac_status=$?
29575   grep -v '^ *+' conftest.er1 >conftest.err
29576   rm -f conftest.er1
29577   cat conftest.err >&5
29578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29579   (exit $ac_status); } && {
29580          test -z "$ac_c_werror_flag" ||
29581          test ! -s conftest.err
29582        } && test -s conftest.$ac_objext; then
29583   ac_cv_type_socklen_t=yes
29584 else
29585   echo "$as_me: failed program was:" >&5
29586 sed 's/^/| /' conftest.$ac_ext >&5
29587
29588         ac_cv_type_socklen_t=no
29589 fi
29590
29591 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29592 fi
29593 { echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
29594 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6; }
29595
29596 # The cast to long int works around a bug in the HP C Compiler
29597 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
29598 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
29599 # This bug is HP SR number 8606223364.
29600 { echo "$as_me:$LINENO: checking size of socklen_t" >&5
29601 echo $ECHO_N "checking size of socklen_t... $ECHO_C" >&6; }
29602 if test "${ac_cv_sizeof_socklen_t+set}" = set; then
29603   echo $ECHO_N "(cached) $ECHO_C" >&6
29604 else
29605   if test "$cross_compiling" = yes; then
29606   # Depending upon the size, compute the lo and hi bounds.
29607 cat >conftest.$ac_ext <<_ACEOF
29608 /* confdefs.h.  */
29609 _ACEOF
29610 cat confdefs.h >>conftest.$ac_ext
29611 cat >>conftest.$ac_ext <<_ACEOF
29612 /* end confdefs.h.  */
29613 $ac_includes_default
29614    typedef socklen_t ac__type_sizeof_;
29615 int
29616 main ()
29617 {
29618 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)@:>@;
29619 test_array @<:@0@:>@ = 0
29620
29621   ;
29622   return 0;
29623 }
29624 _ACEOF
29625 rm -f conftest.$ac_objext
29626 if { (ac_try="$ac_compile"
29627 case "(($ac_try" in
29628   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29629   *) ac_try_echo=$ac_try;;
29630 esac
29631 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29632   (eval "$ac_compile") 2>conftest.er1
29633   ac_status=$?
29634   grep -v '^ *+' conftest.er1 >conftest.err
29635   rm -f conftest.er1
29636   cat conftest.err >&5
29637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29638   (exit $ac_status); } && {
29639          test -z "$ac_c_werror_flag" ||
29640          test ! -s conftest.err
29641        } && test -s conftest.$ac_objext; then
29642   ac_lo=0 ac_mid=0
29643   while :; do
29644     cat >conftest.$ac_ext <<_ACEOF
29645 /* confdefs.h.  */
29646 _ACEOF
29647 cat confdefs.h >>conftest.$ac_ext
29648 cat >>conftest.$ac_ext <<_ACEOF
29649 /* end confdefs.h.  */
29650 $ac_includes_default
29651    typedef socklen_t ac__type_sizeof_;
29652 int
29653 main ()
29654 {
29655 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)@:>@;
29656 test_array @<:@0@:>@ = 0
29657
29658   ;
29659   return 0;
29660 }
29661 _ACEOF
29662 rm -f conftest.$ac_objext
29663 if { (ac_try="$ac_compile"
29664 case "(($ac_try" in
29665   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29666   *) ac_try_echo=$ac_try;;
29667 esac
29668 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29669   (eval "$ac_compile") 2>conftest.er1
29670   ac_status=$?
29671   grep -v '^ *+' conftest.er1 >conftest.err
29672   rm -f conftest.er1
29673   cat conftest.err >&5
29674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29675   (exit $ac_status); } && {
29676          test -z "$ac_c_werror_flag" ||
29677          test ! -s conftest.err
29678        } && test -s conftest.$ac_objext; then
29679   ac_hi=$ac_mid; break
29680 else
29681   echo "$as_me: failed program was:" >&5
29682 sed 's/^/| /' conftest.$ac_ext >&5
29683
29684         ac_lo=`expr $ac_mid + 1`
29685                         if test $ac_lo -le $ac_mid; then
29686                           ac_lo= ac_hi=
29687                           break
29688                         fi
29689                         ac_mid=`expr 2 '*' $ac_mid + 1`
29690 fi
29691
29692 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29693   done
29694 else
29695   echo "$as_me: failed program was:" >&5
29696 sed 's/^/| /' conftest.$ac_ext >&5
29697
29698         cat >conftest.$ac_ext <<_ACEOF
29699 /* confdefs.h.  */
29700 _ACEOF
29701 cat confdefs.h >>conftest.$ac_ext
29702 cat >>conftest.$ac_ext <<_ACEOF
29703 /* end confdefs.h.  */
29704 $ac_includes_default
29705    typedef socklen_t ac__type_sizeof_;
29706 int
29707 main ()
29708 {
29709 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)@:>@;
29710 test_array @<:@0@:>@ = 0
29711
29712   ;
29713   return 0;
29714 }
29715 _ACEOF
29716 rm -f conftest.$ac_objext
29717 if { (ac_try="$ac_compile"
29718 case "(($ac_try" in
29719   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29720   *) ac_try_echo=$ac_try;;
29721 esac
29722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29723   (eval "$ac_compile") 2>conftest.er1
29724   ac_status=$?
29725   grep -v '^ *+' conftest.er1 >conftest.err
29726   rm -f conftest.er1
29727   cat conftest.err >&5
29728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29729   (exit $ac_status); } && {
29730          test -z "$ac_c_werror_flag" ||
29731          test ! -s conftest.err
29732        } && test -s conftest.$ac_objext; then
29733   ac_hi=-1 ac_mid=-1
29734   while :; do
29735     cat >conftest.$ac_ext <<_ACEOF
29736 /* confdefs.h.  */
29737 _ACEOF
29738 cat confdefs.h >>conftest.$ac_ext
29739 cat >>conftest.$ac_ext <<_ACEOF
29740 /* end confdefs.h.  */
29741 $ac_includes_default
29742    typedef socklen_t ac__type_sizeof_;
29743 int
29744 main ()
29745 {
29746 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)@:>@;
29747 test_array @<:@0@:>@ = 0
29748
29749   ;
29750   return 0;
29751 }
29752 _ACEOF
29753 rm -f conftest.$ac_objext
29754 if { (ac_try="$ac_compile"
29755 case "(($ac_try" in
29756   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29757   *) ac_try_echo=$ac_try;;
29758 esac
29759 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29760   (eval "$ac_compile") 2>conftest.er1
29761   ac_status=$?
29762   grep -v '^ *+' conftest.er1 >conftest.err
29763   rm -f conftest.er1
29764   cat conftest.err >&5
29765   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29766   (exit $ac_status); } && {
29767          test -z "$ac_c_werror_flag" ||
29768          test ! -s conftest.err
29769        } && test -s conftest.$ac_objext; then
29770   ac_lo=$ac_mid; break
29771 else
29772   echo "$as_me: failed program was:" >&5
29773 sed 's/^/| /' conftest.$ac_ext >&5
29774
29775         ac_hi=`expr '(' $ac_mid ')' - 1`
29776                         if test $ac_mid -le $ac_hi; then
29777                           ac_lo= ac_hi=
29778                           break
29779                         fi
29780                         ac_mid=`expr 2 '*' $ac_mid`
29781 fi
29782
29783 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29784   done
29785 else
29786   echo "$as_me: failed program was:" >&5
29787 sed 's/^/| /' conftest.$ac_ext >&5
29788
29789         ac_lo= ac_hi=
29790 fi
29791
29792 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29793 fi
29794
29795 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29796 # Binary search between lo and hi bounds.
29797 while test "x$ac_lo" != "x$ac_hi"; do
29798   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
29799   cat >conftest.$ac_ext <<_ACEOF
29800 /* confdefs.h.  */
29801 _ACEOF
29802 cat confdefs.h >>conftest.$ac_ext
29803 cat >>conftest.$ac_ext <<_ACEOF
29804 /* end confdefs.h.  */
29805 $ac_includes_default
29806    typedef socklen_t ac__type_sizeof_;
29807 int
29808 main ()
29809 {
29810 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)@:>@;
29811 test_array @<:@0@:>@ = 0
29812
29813   ;
29814   return 0;
29815 }
29816 _ACEOF
29817 rm -f conftest.$ac_objext
29818 if { (ac_try="$ac_compile"
29819 case "(($ac_try" in
29820   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29821   *) ac_try_echo=$ac_try;;
29822 esac
29823 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29824   (eval "$ac_compile") 2>conftest.er1
29825   ac_status=$?
29826   grep -v '^ *+' conftest.er1 >conftest.err
29827   rm -f conftest.er1
29828   cat conftest.err >&5
29829   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29830   (exit $ac_status); } && {
29831          test -z "$ac_c_werror_flag" ||
29832          test ! -s conftest.err
29833        } && test -s conftest.$ac_objext; then
29834   ac_hi=$ac_mid
29835 else
29836   echo "$as_me: failed program was:" >&5
29837 sed 's/^/| /' conftest.$ac_ext >&5
29838
29839         ac_lo=`expr '(' $ac_mid ')' + 1`
29840 fi
29841
29842 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29843 done
29844 case $ac_lo in
29845 ?*) ac_cv_sizeof_socklen_t=$ac_lo;;
29846 '') if test "$ac_cv_type_socklen_t" = yes; then
29847      { { echo "$as_me:$LINENO: error: cannot compute sizeof (socklen_t)
29848 See \`config.log' for more details." >&5
29849 echo "$as_me: error: cannot compute sizeof (socklen_t)
29850 See \`config.log' for more details." >&2;}
29851    { (exit 77); exit 77; }; }
29852    else
29853      ac_cv_sizeof_socklen_t=0
29854    fi ;;
29855 esac
29856 else
29857   cat >conftest.$ac_ext <<_ACEOF
29858 /* confdefs.h.  */
29859 _ACEOF
29860 cat confdefs.h >>conftest.$ac_ext
29861 cat >>conftest.$ac_ext <<_ACEOF
29862 /* end confdefs.h.  */
29863 $ac_includes_default
29864    typedef socklen_t ac__type_sizeof_;
29865 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
29866 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
29867 @%:@include <stdio.h>
29868 @%:@include <stdlib.h>
29869 int
29870 main ()
29871 {
29872
29873   FILE *f = fopen ("conftest.val", "w");
29874   if (! f)
29875     return 1;
29876   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
29877     {
29878       long int i = longval ();
29879       if (i != ((long int) (sizeof (ac__type_sizeof_))))
29880         return 1;
29881       fprintf (f, "%ld\n", i);
29882     }
29883   else
29884     {
29885       unsigned long int i = ulongval ();
29886       if (i != ((long int) (sizeof (ac__type_sizeof_))))
29887         return 1;
29888       fprintf (f, "%lu\n", i);
29889     }
29890   return ferror (f) || fclose (f) != 0;
29891
29892   ;
29893   return 0;
29894 }
29895 _ACEOF
29896 rm -f conftest$ac_exeext
29897 if { (ac_try="$ac_link"
29898 case "(($ac_try" in
29899   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29900   *) ac_try_echo=$ac_try;;
29901 esac
29902 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29903   (eval "$ac_link") 2>&5
29904   ac_status=$?
29905   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29906   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29907   { (case "(($ac_try" in
29908   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29909   *) ac_try_echo=$ac_try;;
29910 esac
29911 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29912   (eval "$ac_try") 2>&5
29913   ac_status=$?
29914   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29915   (exit $ac_status); }; }; then
29916   ac_cv_sizeof_socklen_t=`cat conftest.val`
29917 else
29918   echo "$as_me: program exited with status $ac_status" >&5
29919 echo "$as_me: failed program was:" >&5
29920 sed 's/^/| /' conftest.$ac_ext >&5
29921
29922 ( exit $ac_status )
29923 if test "$ac_cv_type_socklen_t" = yes; then
29924      { { echo "$as_me:$LINENO: error: cannot compute sizeof (socklen_t)
29925 See \`config.log' for more details." >&5
29926 echo "$as_me: error: cannot compute sizeof (socklen_t)
29927 See \`config.log' for more details." >&2;}
29928    { (exit 77); exit 77; }; }
29929    else
29930      ac_cv_sizeof_socklen_t=0
29931    fi
29932 fi
29933 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29934 fi
29935 rm -f conftest.val
29936 fi
29937 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_socklen_t" >&5
29938 echo "${ECHO_T}$ac_cv_sizeof_socklen_t" >&6; }
29939
29940
29941
29942 cat >>confdefs.h <<_ACEOF
29943 @%:@define SIZEOF_SOCKLEN_T $ac_cv_sizeof_socklen_t
29944 _ACEOF
29945
29946
29947
29948
29949
29950 cat >>confdefs.h <<_ACEOF
29951 @%:@define NFS_STATEDIR "$statedir"
29952 _ACEOF
29953
29954
29955 if test "x$cross_compiling" = "xno"; then
29956         CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-"$CFLAGS"}
29957         CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-"$CXXFLAGS"}
29958         CPPFLAGS_FOR_BUILD=${CPPFLAGS_FOR_BUILD-"$CPPFLAGS"}
29959         LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-"$LDFLAGS"}
29960 else
29961         CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-""}
29962         CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-""}
29963         CPPFLAGS_FOR_BUILD=${CPPFLAGS_FOR_BUILD-""}
29964         LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-""}
29965 fi
29966
29967
29968
29969
29970
29971
29972
29973
29974
29975
29976
29977 case $host in
29978   *)
29979     ARCHFLAGS="" ;;
29980 esac
29981
29982 my_am_cflags="-Wall -Wstrict-prototypes $ARCHFLAGS -pipe"
29983
29984 AM_CPPFLAGS="-I\${top_srcdir}/support/include"
29985
29986 AM_CFLAGS="$my_am_cflags"
29987
29988
29989 # Make sure that $ACLOCAL_FLAGS are used during a rebuild
29990 ACLOCAL_AMFLAGS="-I $ac_macro_dir \$(ACLOCAL_FLAGS)"
29991
29992
29993 ac_config_files="$ac_config_files Makefile linux-nfs/Makefile support/Makefile support/export/Makefile support/include/nfs/Makefile support/include/rpcsvc/Makefile support/include/sys/fs/Makefile support/include/sys/Makefile support/include/Makefile support/misc/Makefile support/nfs/Makefile tools/Makefile tools/locktest/Makefile tools/nlmtest/Makefile tools/rpcdebug/Makefile tools/rpcgen/Makefile utils/Makefile utils/exportfs/Makefile utils/gssd/Makefile utils/idmapd/Makefile utils/mount/Makefile utils/mountd/Makefile utils/nfsd/Makefile utils/nfsstat/Makefile utils/showmount/Makefile utils/statd/Makefile"
29994
29995 cat >confcache <<\_ACEOF
29996 # This file is a shell script that caches the results of configure
29997 # tests run on this system so they can be shared between configure
29998 # scripts and configure runs, see configure's option --config-cache.
29999 # It is not useful on other systems.  If it contains results you don't
30000 # want to keep, you may remove or edit it.
30001 #
30002 # config.status only pays attention to the cache file if you give it
30003 # the --recheck option to rerun configure.
30004 #
30005 # `ac_cv_env_foo' variables (set or unset) will be overridden when
30006 # loading this file, other *unset* `ac_cv_foo' will be assigned the
30007 # following values.
30008
30009 _ACEOF
30010
30011 # The following way of writing the cache mishandles newlines in values,
30012 # but we know of no workaround that is simple, portable, and efficient.
30013 # So, we kill variables containing newlines.
30014 # Ultrix sh set writes to stderr and can't be redirected directly,
30015 # and sets the high bit in the cache file unless we assign to the vars.
30016 (
30017   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
30018     eval ac_val=\$$ac_var
30019     case $ac_val in #(
30020     *${as_nl}*)
30021       case $ac_var in #(
30022       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
30023 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
30024       esac
30025       case $ac_var in #(
30026       _ | IFS | as_nl) ;; #(
30027       *) $as_unset $ac_var ;;
30028       esac ;;
30029     esac
30030   done
30031
30032   (set) 2>&1 |
30033     case $as_nl`(ac_space=' '; set) 2>&1` in #(
30034     *${as_nl}ac_space=\ *)
30035       # `set' does not quote correctly, so add quotes (double-quote
30036       # substitution turns \\\\ into \\, and sed turns \\ into \).
30037       sed -n \
30038         "s/'/'\\\\''/g;
30039           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
30040       ;; #(
30041     *)
30042       # `set' quotes correctly as required by POSIX, so do not add quotes.
30043       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
30044       ;;
30045     esac |
30046     sort
30047 ) |
30048   sed '
30049      /^ac_cv_env_/b end
30050      t clear
30051      :clear
30052      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
30053      t end
30054      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
30055      :end' >>confcache
30056 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
30057   if test -w "$cache_file"; then
30058     test "x$cache_file" != "x/dev/null" &&
30059       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
30060 echo "$as_me: updating cache $cache_file" >&6;}
30061     cat confcache >$cache_file
30062   else
30063     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
30064 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
30065   fi
30066 fi
30067 rm -f confcache
30068
30069 test "x$prefix" = xNONE && prefix=$ac_default_prefix
30070 # Let make expand exec_prefix.
30071 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
30072
30073 DEFS=-DHAVE_CONFIG_H
30074
30075 ac_libobjs=
30076 ac_ltlibobjs=
30077 for ac_i in : $LIB@&t@OBJS; do test "x$ac_i" = x: && continue
30078   # 1. Remove the extension, and $U if already installed.
30079   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
30080   ac_i=`echo "$ac_i" | sed "$ac_script"`
30081   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
30082   #    will be set to the directory where LIBOBJS objects are built.
30083   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
30084   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
30085 done
30086 LIB@&t@OBJS=$ac_libobjs
30087
30088 LTLIBOBJS=$ac_ltlibobjs
30089
30090
30091 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
30092   { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
30093 Usually this means the macro was only invoked conditionally." >&5
30094 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
30095 Usually this means the macro was only invoked conditionally." >&2;}
30096    { (exit 1); exit 1; }; }
30097 fi
30098 if test -z "${CONFIG_NFSV4_TRUE}" && test -z "${CONFIG_NFSV4_FALSE}"; then
30099   { { echo "$as_me:$LINENO: error: conditional \"CONFIG_NFSV4\" was never defined.
30100 Usually this means the macro was only invoked conditionally." >&5
30101 echo "$as_me: error: conditional \"CONFIG_NFSV4\" was never defined.
30102 Usually this means the macro was only invoked conditionally." >&2;}
30103    { (exit 1); exit 1; }; }
30104 fi
30105 if test -z "${CONFIG_GSS_TRUE}" && test -z "${CONFIG_GSS_FALSE}"; then
30106   { { echo "$as_me:$LINENO: error: conditional \"CONFIG_GSS\" was never defined.
30107 Usually this means the macro was only invoked conditionally." >&5
30108 echo "$as_me: error: conditional \"CONFIG_GSS\" was never defined.
30109 Usually this means the macro was only invoked conditionally." >&2;}
30110    { (exit 1); exit 1; }; }
30111 fi
30112 if test -z "${CONFIG_RPCGEN_TRUE}" && test -z "${CONFIG_RPCGEN_FALSE}"; then
30113   { { echo "$as_me:$LINENO: error: conditional \"CONFIG_RPCGEN\" was never defined.
30114 Usually this means the macro was only invoked conditionally." >&5
30115 echo "$as_me: error: conditional \"CONFIG_RPCGEN\" was never defined.
30116 Usually this means the macro was only invoked conditionally." >&2;}
30117    { (exit 1); exit 1; }; }
30118 fi
30119 if test -z "${CONFIG_MOUNT_TRUE}" && test -z "${CONFIG_MOUNT_FALSE}"; then
30120   { { echo "$as_me:$LINENO: error: conditional \"CONFIG_MOUNT\" was never defined.
30121 Usually this means the macro was only invoked conditionally." >&5
30122 echo "$as_me: error: conditional \"CONFIG_MOUNT\" was never defined.
30123 Usually this means the macro was only invoked conditionally." >&2;}
30124    { (exit 1); exit 1; }; }
30125 fi
30126 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
30127   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
30128 Usually this means the macro was only invoked conditionally." >&5
30129 echo "$as_me: error: conditional \"AMDEP\" was never defined.
30130 Usually this means the macro was only invoked conditionally." >&2;}
30131    { (exit 1); exit 1; }; }
30132 fi
30133 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
30134   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
30135 Usually this means the macro was only invoked conditionally." >&5
30136 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
30137 Usually this means the macro was only invoked conditionally." >&2;}
30138    { (exit 1); exit 1; }; }
30139 fi
30140 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
30141   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
30142 Usually this means the macro was only invoked conditionally." >&5
30143 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
30144 Usually this means the macro was only invoked conditionally." >&2;}
30145    { (exit 1); exit 1; }; }
30146 fi
30147 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
30148   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
30149 Usually this means the macro was only invoked conditionally." >&5
30150 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
30151 Usually this means the macro was only invoked conditionally." >&2;}
30152    { (exit 1); exit 1; }; }
30153 fi
30154
30155 : ${CONFIG_STATUS=./config.status}
30156 ac_clean_files_save=$ac_clean_files
30157 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
30158 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
30159 echo "$as_me: creating $CONFIG_STATUS" >&6;}
30160 cat >$CONFIG_STATUS <<_ACEOF
30161 #! $SHELL
30162 # Generated by $as_me.
30163 # Run this file to recreate the current configuration.
30164 # Compiler output produced by configure, useful for debugging
30165 # configure, is in config.log if it exists.
30166
30167 debug=false
30168 ac_cs_recheck=false
30169 ac_cs_silent=false
30170 SHELL=\${CONFIG_SHELL-$SHELL}
30171 _ACEOF
30172
30173 cat >>$CONFIG_STATUS <<\_ACEOF
30174 ## --------------------- ##
30175 ## M4sh Initialization.  ##
30176 ## --------------------- ##
30177
30178 # Be more Bourne compatible
30179 DUALCASE=1; export DUALCASE # for MKS sh
30180 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
30181   emulate sh
30182   NULLCMD=:
30183   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
30184   # is contrary to our usage.  Disable this feature.
30185   alias -g '${1+"$@"}'='"$@"'
30186   setopt NO_GLOB_SUBST
30187 else
30188   case `(set -o) 2>/dev/null` in
30189   *posix*) set -o posix ;;
30190 esac
30191
30192 fi
30193
30194
30195
30196
30197 # PATH needs CR
30198 # Avoid depending upon Character Ranges.
30199 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
30200 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
30201 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
30202 as_cr_digits='0123456789'
30203 as_cr_alnum=$as_cr_Letters$as_cr_digits
30204
30205 # The user is always right.
30206 if test "${PATH_SEPARATOR+set}" != set; then
30207   echo "#! /bin/sh" >conf$$.sh
30208   echo  "exit 0"   >>conf$$.sh
30209   chmod +x conf$$.sh
30210   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
30211     PATH_SEPARATOR=';'
30212   else
30213     PATH_SEPARATOR=:
30214   fi
30215   rm -f conf$$.sh
30216 fi
30217
30218 # Support unset when possible.
30219 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
30220   as_unset=unset
30221 else
30222   as_unset=false
30223 fi
30224
30225
30226 # IFS
30227 # We need space, tab and new line, in precisely that order.  Quoting is
30228 # there to prevent editors from complaining about space-tab.
30229 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
30230 # splitting by setting IFS to empty value.)
30231 as_nl='
30232 '
30233 IFS=" ""        $as_nl"
30234
30235 # Find who we are.  Look in the path if we contain no directory separator.
30236 case $0 in
30237   *[\\/]* ) as_myself=$0 ;;
30238   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30239 for as_dir in $PATH
30240 do
30241   IFS=$as_save_IFS
30242   test -z "$as_dir" && as_dir=.
30243   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
30244 done
30245 IFS=$as_save_IFS
30246
30247      ;;
30248 esac
30249 # We did not find ourselves, most probably we were run as `sh COMMAND'
30250 # in which case we are not to be found in the path.
30251 if test "x$as_myself" = x; then
30252   as_myself=$0
30253 fi
30254 if test ! -f "$as_myself"; then
30255   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
30256   { (exit 1); exit 1; }
30257 fi
30258
30259 # Work around bugs in pre-3.0 UWIN ksh.
30260 for as_var in ENV MAIL MAILPATH
30261 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
30262 done
30263 PS1='$ '
30264 PS2='> '
30265 PS4='+ '
30266
30267 # NLS nuisances.
30268 for as_var in \
30269   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
30270   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
30271   LC_TELEPHONE LC_TIME
30272 do
30273   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
30274     eval $as_var=C; export $as_var
30275   else
30276     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
30277   fi
30278 done
30279
30280 # Required to use basename.
30281 if expr a : '\(a\)' >/dev/null 2>&1 &&
30282    test "X`expr 00001 : '.*\(...\)'`" = X001; then
30283   as_expr=expr
30284 else
30285   as_expr=false
30286 fi
30287
30288 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
30289   as_basename=basename
30290 else
30291   as_basename=false
30292 fi
30293
30294
30295 # Name of the executable.
30296 as_me=`$as_basename -- "$0" ||
30297 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
30298          X"$0" : 'X\(//\)$' \| \
30299          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
30300 echo X/"$0" |
30301     sed '/^.*\/\([^/][^/]*\)\/*$/{
30302             s//\1/
30303             q
30304           }
30305           /^X\/\(\/\/\)$/{
30306             s//\1/
30307             q
30308           }
30309           /^X\/\(\/\).*/{
30310             s//\1/
30311             q
30312           }
30313           s/.*/./; q'`
30314
30315 # CDPATH.
30316 $as_unset CDPATH
30317
30318
30319
30320   as_lineno_1=$LINENO
30321   as_lineno_2=$LINENO
30322   test "x$as_lineno_1" != "x$as_lineno_2" &&
30323   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
30324
30325   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
30326   # uniformly replaced by the line number.  The first 'sed' inserts a
30327   # line-number line after each line using $LINENO; the second 'sed'
30328   # does the real work.  The second script uses 'N' to pair each
30329   # line-number line with the line containing $LINENO, and appends
30330   # trailing '-' during substitution so that $LINENO is not a special
30331   # case at line end.
30332   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
30333   # scripts with optimization help from Paolo Bonzini.  Blame Lee
30334   # E. McMahon (1931-1989) for sed's syntax.  :-)
30335   sed -n '
30336     p
30337     /[$]LINENO/=
30338   ' <$as_myself |
30339     sed '
30340       s/[$]LINENO.*/&-/
30341       t lineno
30342       b
30343       :lineno
30344       N
30345       :loop
30346       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
30347       t loop
30348       s/-\n.*//
30349     ' >$as_me.lineno &&
30350   chmod +x "$as_me.lineno" ||
30351     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
30352    { (exit 1); exit 1; }; }
30353
30354   # Don't try to exec as it changes $[0], causing all sort of problems
30355   # (the dirname of $[0] is not the place where we might find the
30356   # original and so on.  Autoconf is especially sensitive to this).
30357   . "./$as_me.lineno"
30358   # Exit status is that of the last command.
30359   exit
30360 }
30361
30362
30363 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
30364   as_dirname=dirname
30365 else
30366   as_dirname=false
30367 fi
30368
30369 ECHO_C= ECHO_N= ECHO_T=
30370 case `echo -n x` in
30371 -n*)
30372   case `echo 'x\c'` in
30373   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
30374   *)   ECHO_C='\c';;
30375   esac;;
30376 *)
30377   ECHO_N='-n';;
30378 esac
30379
30380 if expr a : '\(a\)' >/dev/null 2>&1 &&
30381    test "X`expr 00001 : '.*\(...\)'`" = X001; then
30382   as_expr=expr
30383 else
30384   as_expr=false
30385 fi
30386
30387 rm -f conf$$ conf$$.exe conf$$.file
30388 if test -d conf$$.dir; then
30389   rm -f conf$$.dir/conf$$.file
30390 else
30391   rm -f conf$$.dir
30392   mkdir conf$$.dir
30393 fi
30394 echo >conf$$.file
30395 if ln -s conf$$.file conf$$ 2>/dev/null; then
30396   as_ln_s='ln -s'
30397   # ... but there are two gotchas:
30398   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
30399   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
30400   # In both cases, we have to default to `cp -p'.
30401   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
30402     as_ln_s='cp -p'
30403 elif ln conf$$.file conf$$ 2>/dev/null; then
30404   as_ln_s=ln
30405 else
30406   as_ln_s='cp -p'
30407 fi
30408 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
30409 rmdir conf$$.dir 2>/dev/null
30410
30411 if mkdir -p . 2>/dev/null; then
30412   as_mkdir_p=:
30413 else
30414   test -d ./-p && rmdir ./-p
30415   as_mkdir_p=false
30416 fi
30417
30418 if test -x / >/dev/null 2>&1; then
30419   as_test_x='test -x'
30420 else
30421   if ls -dL / >/dev/null 2>&1; then
30422     as_ls_L_option=L
30423   else
30424     as_ls_L_option=
30425   fi
30426   as_test_x='
30427     eval sh -c '\''
30428       if test -d "$1"; then
30429         test -d "$1/.";
30430       else
30431         case $1 in
30432         -*)set "./$1";;
30433         esac;
30434         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
30435         ???[sx]*):;;*)false;;esac;fi
30436     '\'' sh
30437   '
30438 fi
30439 as_executable_p=$as_test_x
30440
30441 # Sed expression to map a string onto a valid CPP name.
30442 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
30443
30444 # Sed expression to map a string onto a valid variable name.
30445 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
30446
30447
30448 exec 6>&1
30449
30450 # Save the log message, to keep $[0] and so on meaningful, and to
30451 # report actual input values of CONFIG_FILES etc. instead of their
30452 # values after options handling.
30453 ac_log="
30454 This file was extended by linux nfs-utils $as_me 1.1.0, which was
30455 generated by GNU Autoconf 2.61.  Invocation command line was
30456
30457   CONFIG_FILES    = $CONFIG_FILES
30458   CONFIG_HEADERS  = $CONFIG_HEADERS
30459   CONFIG_LINKS    = $CONFIG_LINKS
30460   CONFIG_COMMANDS = $CONFIG_COMMANDS
30461   $ $0 $@
30462
30463 on `(hostname || uname -n) 2>/dev/null | sed 1q`
30464 "
30465
30466 _ACEOF
30467
30468 cat >>$CONFIG_STATUS <<_ACEOF
30469 # Files that config.status was made for.
30470 config_files="$ac_config_files"
30471 config_headers="$ac_config_headers"
30472 config_commands="$ac_config_commands"
30473
30474 _ACEOF
30475
30476 cat >>$CONFIG_STATUS <<\_ACEOF
30477 ac_cs_usage="\
30478 \`$as_me' instantiates files from templates according to the
30479 current configuration.
30480
30481 Usage: $0 [OPTIONS] [FILE]...
30482
30483   -h, --help       print this help, then exit
30484   -V, --version    print version number and configuration settings, then exit
30485   -q, --quiet      do not print progress messages
30486   -d, --debug      don't remove temporary files
30487       --recheck    update $as_me by reconfiguring in the same conditions
30488   --file=FILE[:TEMPLATE]
30489                    instantiate the configuration file FILE
30490   --header=FILE[:TEMPLATE]
30491                    instantiate the configuration header FILE
30492
30493 Configuration files:
30494 $config_files
30495
30496 Configuration headers:
30497 $config_headers
30498
30499 Configuration commands:
30500 $config_commands
30501
30502 Report bugs to <bug-autoconf@gnu.org>."
30503
30504 _ACEOF
30505 cat >>$CONFIG_STATUS <<_ACEOF
30506 ac_cs_version="\\
30507 linux nfs-utils config.status 1.1.0
30508 configured by $0, generated by GNU Autoconf 2.61,
30509   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
30510
30511 Copyright (C) 2006 Free Software Foundation, Inc.
30512 This config.status script is free software; the Free Software Foundation
30513 gives unlimited permission to copy, distribute and modify it."
30514
30515 ac_pwd='$ac_pwd'
30516 srcdir='$srcdir'
30517 INSTALL='$INSTALL'
30518 _ACEOF
30519
30520 cat >>$CONFIG_STATUS <<\_ACEOF
30521 # If no file are specified by the user, then we need to provide default
30522 # value.  By we need to know if files were specified by the user.
30523 ac_need_defaults=:
30524 while test $# != 0
30525 do
30526   case $1 in
30527   --*=*)
30528     ac_option=`expr "X$1" : 'X\([^=]*\)='`
30529     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
30530     ac_shift=:
30531     ;;
30532   *)
30533     ac_option=$1
30534     ac_optarg=$2
30535     ac_shift=shift
30536     ;;
30537   esac
30538
30539   case $ac_option in
30540   # Handling of the options.
30541   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
30542     ac_cs_recheck=: ;;
30543   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
30544     echo "$ac_cs_version"; exit ;;
30545   --debug | --debu | --deb | --de | --d | -d )
30546     debug=: ;;
30547   --file | --fil | --fi | --f )
30548     $ac_shift
30549     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
30550     ac_need_defaults=false;;
30551   --header | --heade | --head | --hea )
30552     $ac_shift
30553     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
30554     ac_need_defaults=false;;
30555   --he | --h)
30556     # Conflict between --help and --header
30557     { echo "$as_me: error: ambiguous option: $1
30558 Try \`$0 --help' for more information." >&2
30559    { (exit 1); exit 1; }; };;
30560   --help | --hel | -h )
30561     echo "$ac_cs_usage"; exit ;;
30562   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
30563   | -silent | --silent | --silen | --sile | --sil | --si | --s)
30564     ac_cs_silent=: ;;
30565
30566   # This is an error.
30567   -*) { echo "$as_me: error: unrecognized option: $1
30568 Try \`$0 --help' for more information." >&2
30569    { (exit 1); exit 1; }; } ;;
30570
30571   *) ac_config_targets="$ac_config_targets $1"
30572      ac_need_defaults=false ;;
30573
30574   esac
30575   shift
30576 done
30577
30578 ac_configure_extra_args=
30579
30580 if $ac_cs_silent; then
30581   exec 6>/dev/null
30582   ac_configure_extra_args="$ac_configure_extra_args --silent"
30583 fi
30584
30585 _ACEOF
30586 cat >>$CONFIG_STATUS <<_ACEOF
30587 if \$ac_cs_recheck; then
30588   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
30589   CONFIG_SHELL=$SHELL
30590   export CONFIG_SHELL
30591   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
30592 fi
30593
30594 _ACEOF
30595 cat >>$CONFIG_STATUS <<\_ACEOF
30596 exec 5>>config.log
30597 {
30598   echo
30599   sed 'h;s/./-/g;s/^.../@%:@@%:@ /;s/...$/ @%:@@%:@/;p;x;p;x' <<_ASBOX
30600 @%:@@%:@ Running $as_me. @%:@@%:@
30601 _ASBOX
30602   echo "$ac_log"
30603 } >&5
30604
30605 _ACEOF
30606 cat >>$CONFIG_STATUS <<_ACEOF
30607 #
30608 # INIT-COMMANDS
30609 #
30610 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
30611
30612 _ACEOF
30613
30614 cat >>$CONFIG_STATUS <<\_ACEOF
30615
30616 # Handling of arguments.
30617 for ac_config_target in $ac_config_targets
30618 do
30619   case $ac_config_target in
30620     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
30621     "support/include/config.h") CONFIG_HEADERS="$CONFIG_HEADERS support/include/config.h" ;;
30622     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
30623     "linux-nfs/Makefile") CONFIG_FILES="$CONFIG_FILES linux-nfs/Makefile" ;;
30624     "support/Makefile") CONFIG_FILES="$CONFIG_FILES support/Makefile" ;;
30625     "support/export/Makefile") CONFIG_FILES="$CONFIG_FILES support/export/Makefile" ;;
30626     "support/include/nfs/Makefile") CONFIG_FILES="$CONFIG_FILES support/include/nfs/Makefile" ;;
30627     "support/include/rpcsvc/Makefile") CONFIG_FILES="$CONFIG_FILES support/include/rpcsvc/Makefile" ;;
30628     "support/include/sys/fs/Makefile") CONFIG_FILES="$CONFIG_FILES support/include/sys/fs/Makefile" ;;
30629     "support/include/sys/Makefile") CONFIG_FILES="$CONFIG_FILES support/include/sys/Makefile" ;;
30630     "support/include/Makefile") CONFIG_FILES="$CONFIG_FILES support/include/Makefile" ;;
30631     "support/misc/Makefile") CONFIG_FILES="$CONFIG_FILES support/misc/Makefile" ;;
30632     "support/nfs/Makefile") CONFIG_FILES="$CONFIG_FILES support/nfs/Makefile" ;;
30633     "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
30634     "tools/locktest/Makefile") CONFIG_FILES="$CONFIG_FILES tools/locktest/Makefile" ;;
30635     "tools/nlmtest/Makefile") CONFIG_FILES="$CONFIG_FILES tools/nlmtest/Makefile" ;;
30636     "tools/rpcdebug/Makefile") CONFIG_FILES="$CONFIG_FILES tools/rpcdebug/Makefile" ;;
30637     "tools/rpcgen/Makefile") CONFIG_FILES="$CONFIG_FILES tools/rpcgen/Makefile" ;;
30638     "utils/Makefile") CONFIG_FILES="$CONFIG_FILES utils/Makefile" ;;
30639     "utils/exportfs/Makefile") CONFIG_FILES="$CONFIG_FILES utils/exportfs/Makefile" ;;
30640     "utils/gssd/Makefile") CONFIG_FILES="$CONFIG_FILES utils/gssd/Makefile" ;;
30641     "utils/idmapd/Makefile") CONFIG_FILES="$CONFIG_FILES utils/idmapd/Makefile" ;;
30642     "utils/mount/Makefile") CONFIG_FILES="$CONFIG_FILES utils/mount/Makefile" ;;
30643     "utils/mountd/Makefile") CONFIG_FILES="$CONFIG_FILES utils/mountd/Makefile" ;;
30644     "utils/nfsd/Makefile") CONFIG_FILES="$CONFIG_FILES utils/nfsd/Makefile" ;;
30645     "utils/nfsstat/Makefile") CONFIG_FILES="$CONFIG_FILES utils/nfsstat/Makefile" ;;
30646     "utils/showmount/Makefile") CONFIG_FILES="$CONFIG_FILES utils/showmount/Makefile" ;;
30647     "utils/statd/Makefile") CONFIG_FILES="$CONFIG_FILES utils/statd/Makefile" ;;
30648
30649   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
30650 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
30651    { (exit 1); exit 1; }; };;
30652   esac
30653 done
30654
30655
30656 # If the user did not use the arguments to specify the items to instantiate,
30657 # then the envvar interface is used.  Set only those that are not.
30658 # We use the long form for the default assignment because of an extremely
30659 # bizarre bug on SunOS 4.1.3.
30660 if $ac_need_defaults; then
30661   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
30662   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
30663   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
30664 fi
30665
30666 # Have a temporary directory for convenience.  Make it in the build tree
30667 # simply because there is no reason against having it here, and in addition,
30668 # creating and moving files from /tmp can sometimes cause problems.
30669 # Hook for its removal unless debugging.
30670 # Note that there is a small window in which the directory will not be cleaned:
30671 # after its creation but before its name has been assigned to `$tmp'.
30672 $debug ||
30673 {
30674   tmp=
30675   trap 'exit_status=$?
30676   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
30677 ' 0
30678   trap '{ (exit 1); exit 1; }' 1 2 13 15
30679 }
30680 # Create a (secure) tmp directory for tmp files.
30681
30682 {
30683   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
30684   test -n "$tmp" && test -d "$tmp"
30685 }  ||
30686 {
30687   tmp=./conf$$-$RANDOM
30688   (umask 077 && mkdir "$tmp")
30689 } ||
30690 {
30691    echo "$me: cannot create a temporary directory in ." >&2
30692    { (exit 1); exit 1; }
30693 }
30694
30695 #
30696 # Set up the sed scripts for CONFIG_FILES section.
30697 #
30698
30699 # No need to generate the scripts if there are no CONFIG_FILES.
30700 # This happens for instance when ./config.status config.h
30701 if test -n "$CONFIG_FILES"; then
30702
30703 _ACEOF
30704
30705
30706
30707 ac_delim='%!_!# '
30708 for ac_last_try in false false false false false :; do
30709   cat >conf$$subs.sed <<_ACEOF
30710 SHELL!$SHELL$ac_delim
30711 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
30712 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
30713 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
30714 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
30715 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
30716 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
30717 exec_prefix!$exec_prefix$ac_delim
30718 prefix!$prefix$ac_delim
30719 program_transform_name!$program_transform_name$ac_delim
30720 bindir!$bindir$ac_delim
30721 sbindir!$sbindir$ac_delim
30722 libexecdir!$libexecdir$ac_delim
30723 datarootdir!$datarootdir$ac_delim
30724 datadir!$datadir$ac_delim
30725 sysconfdir!$sysconfdir$ac_delim
30726 sharedstatedir!$sharedstatedir$ac_delim
30727 localstatedir!$localstatedir$ac_delim
30728 includedir!$includedir$ac_delim
30729 oldincludedir!$oldincludedir$ac_delim
30730 docdir!$docdir$ac_delim
30731 infodir!$infodir$ac_delim
30732 htmldir!$htmldir$ac_delim
30733 dvidir!$dvidir$ac_delim
30734 pdfdir!$pdfdir$ac_delim
30735 psdir!$psdir$ac_delim
30736 libdir!$libdir$ac_delim
30737 localedir!$localedir$ac_delim
30738 mandir!$mandir$ac_delim
30739 DEFS!$DEFS$ac_delim
30740 ECHO_C!$ECHO_C$ac_delim
30741 ECHO_N!$ECHO_N$ac_delim
30742 ECHO_T!$ECHO_T$ac_delim
30743 LIBS!$LIBS$ac_delim
30744 build_alias!$build_alias$ac_delim
30745 host_alias!$host_alias$ac_delim
30746 target_alias!$target_alias$ac_delim
30747 build!$build$ac_delim
30748 build_cpu!$build_cpu$ac_delim
30749 build_vendor!$build_vendor$ac_delim
30750 build_os!$build_os$ac_delim
30751 host!$host$ac_delim
30752 host_cpu!$host_cpu$ac_delim
30753 host_vendor!$host_vendor$ac_delim
30754 host_os!$host_os$ac_delim
30755 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
30756 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
30757 INSTALL_DATA!$INSTALL_DATA$ac_delim
30758 CYGPATH_W!$CYGPATH_W$ac_delim
30759 PACKAGE!$PACKAGE$ac_delim
30760 VERSION!$VERSION$ac_delim
30761 ACLOCAL!$ACLOCAL$ac_delim
30762 AUTOCONF!$AUTOCONF$ac_delim
30763 AUTOMAKE!$AUTOMAKE$ac_delim
30764 AUTOHEADER!$AUTOHEADER$ac_delim
30765 MAKEINFO!$MAKEINFO$ac_delim
30766 install_sh!$install_sh$ac_delim
30767 STRIP!$STRIP$ac_delim
30768 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
30769 mkdir_p!$mkdir_p$ac_delim
30770 AWK!$AWK$ac_delim
30771 SET_MAKE!$SET_MAKE$ac_delim
30772 am__leading_dot!$am__leading_dot$ac_delim
30773 AMTAR!$AMTAR$ac_delim
30774 am__tar!$am__tar$ac_delim
30775 am__untar!$am__untar$ac_delim
30776 MAINTAINER_MODE_TRUE!$MAINTAINER_MODE_TRUE$ac_delim
30777 MAINTAINER_MODE_FALSE!$MAINTAINER_MODE_FALSE$ac_delim
30778 MAINT!$MAINT$ac_delim
30779 RELEASE!$RELEASE$ac_delim
30780 statedir!$statedir$ac_delim
30781 statduser!$statduser$ac_delim
30782 startstatd!$startstatd$ac_delim
30783 enable_nfsv3!$enable_nfsv3$ac_delim
30784 IDMAPD!$IDMAPD$ac_delim
30785 enable_nfsv4!$enable_nfsv4$ac_delim
30786 CONFIG_NFSV4_TRUE!$CONFIG_NFSV4_TRUE$ac_delim
30787 CONFIG_NFSV4_FALSE!$CONFIG_NFSV4_FALSE$ac_delim
30788 GSSD!$GSSD$ac_delim
30789 SVCGSSD!$SVCGSSD$ac_delim
30790 enable_gss!$enable_gss$ac_delim
30791 CONFIG_GSS_TRUE!$CONFIG_GSS_TRUE$ac_delim
30792 CONFIG_GSS_FALSE!$CONFIG_GSS_FALSE$ac_delim
30793 kprefix!$kprefix$ac_delim
30794 secure_statd!$secure_statd$ac_delim
30795 RPCGEN_PATH!$RPCGEN_PATH$ac_delim
30796 CONFIG_RPCGEN_TRUE!$CONFIG_RPCGEN_TRUE$ac_delim
30797 CONFIG_RPCGEN_FALSE!$CONFIG_RPCGEN_FALSE$ac_delim
30798 CONFIG_MOUNT_TRUE!$CONFIG_MOUNT_TRUE$ac_delim
30799 CONFIG_MOUNT_FALSE!$CONFIG_MOUNT_FALSE$ac_delim
30800 CC!$CC$ac_delim
30801 CFLAGS!$CFLAGS$ac_delim
30802 LDFLAGS!$LDFLAGS$ac_delim
30803 CPPFLAGS!$CPPFLAGS$ac_delim
30804 ac_ct_CC!$ac_ct_CC$ac_delim
30805 EXEEXT!$EXEEXT$ac_delim
30806 OBJEXT!$OBJEXT$ac_delim
30807 _ACEOF
30808
30809   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
30810     break
30811   elif $ac_last_try; then
30812     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
30813 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
30814    { (exit 1); exit 1; }; }
30815   else
30816     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
30817   fi
30818 done
30819
30820 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
30821 if test -n "$ac_eof"; then
30822   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
30823   ac_eof=`expr $ac_eof + 1`
30824 fi
30825
30826 cat >>$CONFIG_STATUS <<_ACEOF
30827 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
30828 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
30829 _ACEOF
30830 sed '
30831 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
30832 s/^/s,@/; s/!/@,|#_!!_#|/
30833 :n
30834 t n
30835 s/'"$ac_delim"'$/,g/; t
30836 s/$/\\/; p
30837 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
30838 ' >>$CONFIG_STATUS <conf$$subs.sed
30839 rm -f conf$$subs.sed
30840 cat >>$CONFIG_STATUS <<_ACEOF
30841 CEOF$ac_eof
30842 _ACEOF
30843
30844
30845 ac_delim='%!_!# '
30846 for ac_last_try in false false false false false :; do
30847   cat >conf$$subs.sed <<_ACEOF
30848 DEPDIR!$DEPDIR$ac_delim
30849 am__include!$am__include$ac_delim
30850 am__quote!$am__quote$ac_delim
30851 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
30852 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
30853 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
30854 CCDEPMODE!$CCDEPMODE$ac_delim
30855 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
30856 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
30857 LIBWRAP!$LIBWRAP$ac_delim
30858 HAVE_LIBWRAP!$HAVE_LIBWRAP$ac_delim
30859 HAVE_TCP_WRAPPER!$HAVE_TCP_WRAPPER$ac_delim
30860 CXX!$CXX$ac_delim
30861 CXXFLAGS!$CXXFLAGS$ac_delim
30862 ac_ct_CXX!$ac_ct_CXX$ac_delim
30863 CXXDEPMODE!$CXXDEPMODE$ac_delim
30864 am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
30865 am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
30866 CPP!$CPP$ac_delim
30867 LN_S!$LN_S$ac_delim
30868 SED!$SED$ac_delim
30869 GREP!$GREP$ac_delim
30870 EGREP!$EGREP$ac_delim
30871 ECHO!$ECHO$ac_delim
30872 AR!$AR$ac_delim
30873 RANLIB!$RANLIB$ac_delim
30874 CXXCPP!$CXXCPP$ac_delim
30875 F77!$F77$ac_delim
30876 FFLAGS!$FFLAGS$ac_delim
30877 ac_ct_F77!$ac_ct_F77$ac_delim
30878 LIBTOOL!$LIBTOOL$ac_delim
30879 CC_FOR_BUILD!$CC_FOR_BUILD$ac_delim
30880 LD!$LD$ac_delim
30881 LIBNSL!$LIBNSL$ac_delim
30882 PKG_CONFIG!$PKG_CONFIG$ac_delim
30883 RPCSECGSS_CFLAGS!$RPCSECGSS_CFLAGS$ac_delim
30884 RPCSECGSS_LIBS!$RPCSECGSS_LIBS$ac_delim
30885 GSSGLUE_CFLAGS!$GSSGLUE_CFLAGS$ac_delim
30886 GSSGLUE_LIBS!$GSSGLUE_LIBS$ac_delim
30887 LIBSOCKET!$LIBSOCKET$ac_delim
30888 LIBCRYPT!$LIBCRYPT$ac_delim
30889 LIBBSD!$LIBBSD$ac_delim
30890 LIBBLKID!$LIBBLKID$ac_delim
30891 KRBDIR!$KRBDIR$ac_delim
30892 KRBLIBS!$KRBLIBS$ac_delim
30893 KRBCFLAGS!$KRBCFLAGS$ac_delim
30894 KRBLDFLAGS!$KRBLDFLAGS$ac_delim
30895 K5VERS!$K5VERS$ac_delim
30896 ALLOCA!$ALLOCA$ac_delim
30897 LIB@&t@OBJS!$LIB@&t@OBJS$ac_delim
30898 CFLAGS_FOR_BUILD!$CFLAGS_FOR_BUILD$ac_delim
30899 CXXFLAGS_FOR_BUILD!$CXXFLAGS_FOR_BUILD$ac_delim
30900 CPPFLAGS_FOR_BUILD!$CPPFLAGS_FOR_BUILD$ac_delim
30901 LDFLAGS_FOR_BUILD!$LDFLAGS_FOR_BUILD$ac_delim
30902 AM_CPPFLAGS!$AM_CPPFLAGS$ac_delim
30903 AM_CFLAGS!$AM_CFLAGS$ac_delim
30904 ACLOCAL_AMFLAGS!$ACLOCAL_AMFLAGS$ac_delim
30905 LTLIBOBJS!$LTLIBOBJS$ac_delim
30906 _ACEOF
30907
30908   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 58; then
30909     break
30910   elif $ac_last_try; then
30911     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
30912 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
30913    { (exit 1); exit 1; }; }
30914   else
30915     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
30916   fi
30917 done
30918
30919 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
30920 if test -n "$ac_eof"; then
30921   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
30922   ac_eof=`expr $ac_eof + 1`
30923 fi
30924
30925 cat >>$CONFIG_STATUS <<_ACEOF
30926 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
30927 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
30928 _ACEOF
30929 sed '
30930 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
30931 s/^/s,@/; s/!/@,|#_!!_#|/
30932 :n
30933 t n
30934 s/'"$ac_delim"'$/,g/; t
30935 s/$/\\/; p
30936 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
30937 ' >>$CONFIG_STATUS <conf$$subs.sed
30938 rm -f conf$$subs.sed
30939 cat >>$CONFIG_STATUS <<_ACEOF
30940 :end
30941 s/|#_!!_#|//g
30942 CEOF$ac_eof
30943 _ACEOF
30944
30945
30946 # VPATH may cause trouble with some makes, so we remove $(srcdir),
30947 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
30948 # trailing colons and then remove the whole line if VPATH becomes empty
30949 # (actually we leave an empty line to preserve line numbers).
30950 if test "x$srcdir" = x.; then
30951   ac_vpsub='/^[  ]*VPATH[        ]*=/{
30952 s/:*\$(srcdir):*/:/
30953 s/:*\${srcdir}:*/:/
30954 s/:*@srcdir@:*/:/
30955 s/^\([^=]*=[     ]*\):*/\1/
30956 s/:*$//
30957 s/^[^=]*=[       ]*$//
30958 }'
30959 fi
30960
30961 cat >>$CONFIG_STATUS <<\_ACEOF
30962 fi # test -n "$CONFIG_FILES"
30963
30964
30965 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
30966 do
30967   case $ac_tag in
30968   :[FHLC]) ac_mode=$ac_tag; continue;;
30969   esac
30970   case $ac_mode$ac_tag in
30971   :[FHL]*:*);;
30972   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
30973 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
30974    { (exit 1); exit 1; }; };;
30975   :[FH]-) ac_tag=-:-;;
30976   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
30977   esac
30978   ac_save_IFS=$IFS
30979   IFS=:
30980   set x $ac_tag
30981   IFS=$ac_save_IFS
30982   shift
30983   ac_file=$1
30984   shift
30985
30986   case $ac_mode in
30987   :L) ac_source=$1;;
30988   :[FH])
30989     ac_file_inputs=
30990     for ac_f
30991     do
30992       case $ac_f in
30993       -) ac_f="$tmp/stdin";;
30994       *) # Look for the file first in the build tree, then in the source tree
30995          # (if the path is not absolute).  The absolute path cannot be DOS-style,
30996          # because $ac_f cannot contain `:'.
30997          test -f "$ac_f" ||
30998            case $ac_f in
30999            [\\/$]*) false;;
31000            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
31001            esac ||
31002            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
31003 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
31004    { (exit 1); exit 1; }; };;
31005       esac
31006       ac_file_inputs="$ac_file_inputs $ac_f"
31007     done
31008
31009     # Let's still pretend it is `configure' which instantiates (i.e., don't
31010     # use $as_me), people would be surprised to read:
31011     #    /* config.h.  Generated by config.status.  */
31012     configure_input="Generated from "`IFS=:
31013           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
31014     if test x"$ac_file" != x-; then
31015       configure_input="$ac_file.  $configure_input"
31016       { echo "$as_me:$LINENO: creating $ac_file" >&5
31017 echo "$as_me: creating $ac_file" >&6;}
31018     fi
31019
31020     case $ac_tag in
31021     *:-:* | *:-) cat >"$tmp/stdin";;
31022     esac
31023     ;;
31024   esac
31025
31026   ac_dir=`$as_dirname -- "$ac_file" ||
31027 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31028          X"$ac_file" : 'X\(//\)[^/]' \| \
31029          X"$ac_file" : 'X\(//\)$' \| \
31030          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
31031 echo X"$ac_file" |
31032     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31033             s//\1/
31034             q
31035           }
31036           /^X\(\/\/\)[^/].*/{
31037             s//\1/
31038             q
31039           }
31040           /^X\(\/\/\)$/{
31041             s//\1/
31042             q
31043           }
31044           /^X\(\/\).*/{
31045             s//\1/
31046             q
31047           }
31048           s/.*/./; q'`
31049   { as_dir="$ac_dir"
31050   case $as_dir in #(
31051   -*) as_dir=./$as_dir;;
31052   esac
31053   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
31054     as_dirs=
31055     while :; do
31056       case $as_dir in #(
31057       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
31058       *) as_qdir=$as_dir;;
31059       esac
31060       as_dirs="'$as_qdir' $as_dirs"
31061       as_dir=`$as_dirname -- "$as_dir" ||
31062 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31063          X"$as_dir" : 'X\(//\)[^/]' \| \
31064          X"$as_dir" : 'X\(//\)$' \| \
31065          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
31066 echo X"$as_dir" |
31067     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31068             s//\1/
31069             q
31070           }
31071           /^X\(\/\/\)[^/].*/{
31072             s//\1/
31073             q
31074           }
31075           /^X\(\/\/\)$/{
31076             s//\1/
31077             q
31078           }
31079           /^X\(\/\).*/{
31080             s//\1/
31081             q
31082           }
31083           s/.*/./; q'`
31084       test -d "$as_dir" && break
31085     done
31086     test -z "$as_dirs" || eval "mkdir $as_dirs"
31087   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
31088 echo "$as_me: error: cannot create directory $as_dir" >&2;}
31089    { (exit 1); exit 1; }; }; }
31090   ac_builddir=.
31091
31092 case "$ac_dir" in
31093 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
31094 *)
31095   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
31096   # A ".." for each directory in $ac_dir_suffix.
31097   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
31098   case $ac_top_builddir_sub in
31099   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
31100   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
31101   esac ;;
31102 esac
31103 ac_abs_top_builddir=$ac_pwd
31104 ac_abs_builddir=$ac_pwd$ac_dir_suffix
31105 # for backward compatibility:
31106 ac_top_builddir=$ac_top_build_prefix
31107
31108 case $srcdir in
31109   .)  # We are building in place.
31110     ac_srcdir=.
31111     ac_top_srcdir=$ac_top_builddir_sub
31112     ac_abs_top_srcdir=$ac_pwd ;;
31113   [\\/]* | ?:[\\/]* )  # Absolute name.
31114     ac_srcdir=$srcdir$ac_dir_suffix;
31115     ac_top_srcdir=$srcdir
31116     ac_abs_top_srcdir=$srcdir ;;
31117   *) # Relative name.
31118     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
31119     ac_top_srcdir=$ac_top_build_prefix$srcdir
31120     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
31121 esac
31122 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
31123
31124
31125   case $ac_mode in
31126   :F)
31127   #
31128   # CONFIG_FILE
31129   #
31130
31131   case $INSTALL in
31132   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
31133   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
31134   esac
31135 _ACEOF
31136
31137 cat >>$CONFIG_STATUS <<\_ACEOF
31138 # If the template does not know about datarootdir, expand it.
31139 # FIXME: This hack should be removed a few years after 2.60.
31140 ac_datarootdir_hack=; ac_datarootdir_seen=
31141
31142 case `sed -n '/datarootdir/ {
31143   p
31144   q
31145 }
31146 /@datadir@/p
31147 /@docdir@/p
31148 /@infodir@/p
31149 /@localedir@/p
31150 /@mandir@/p
31151 ' $ac_file_inputs` in
31152 *datarootdir*) ac_datarootdir_seen=yes;;
31153 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
31154   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
31155 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
31156 _ACEOF
31157 cat >>$CONFIG_STATUS <<_ACEOF
31158   ac_datarootdir_hack='
31159   s&@datadir@&$datadir&g
31160   s&@docdir@&$docdir&g
31161   s&@infodir@&$infodir&g
31162   s&@localedir@&$localedir&g
31163   s&@mandir@&$mandir&g
31164     s&\\\${datarootdir}&$datarootdir&g' ;;
31165 esac
31166 _ACEOF
31167
31168 # Neutralize VPATH when `$srcdir' = `.'.
31169 # Shell code in configure.ac might set extrasub.
31170 # FIXME: do we really want to maintain this feature?
31171 cat >>$CONFIG_STATUS <<_ACEOF
31172   sed "$ac_vpsub
31173 $extrasub
31174 _ACEOF
31175 cat >>$CONFIG_STATUS <<\_ACEOF
31176 :t
31177 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
31178 s&@configure_input@&$configure_input&;t t
31179 s&@top_builddir@&$ac_top_builddir_sub&;t t
31180 s&@srcdir@&$ac_srcdir&;t t
31181 s&@abs_srcdir@&$ac_abs_srcdir&;t t
31182 s&@top_srcdir@&$ac_top_srcdir&;t t
31183 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
31184 s&@builddir@&$ac_builddir&;t t
31185 s&@abs_builddir@&$ac_abs_builddir&;t t
31186 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
31187 s&@INSTALL@&$ac_INSTALL&;t t
31188 $ac_datarootdir_hack
31189 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
31190
31191 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
31192   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
31193   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
31194   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
31195 which seems to be undefined.  Please make sure it is defined." >&5
31196 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
31197 which seems to be undefined.  Please make sure it is defined." >&2;}
31198
31199   rm -f "$tmp/stdin"
31200   case $ac_file in
31201   -) cat "$tmp/out"; rm -f "$tmp/out";;
31202   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
31203   esac
31204  ;;
31205   :H)
31206   #
31207   # CONFIG_HEADER
31208   #
31209 _ACEOF
31210
31211 # Transform confdefs.h into a sed script `conftest.defines', that
31212 # substitutes the proper values into config.h.in to produce config.h.
31213 rm -f conftest.defines conftest.tail
31214 # First, append a space to every undef/define line, to ease matching.
31215 echo 's/$/ /' >conftest.defines
31216 # Then, protect against being on the right side of a sed subst, or in
31217 # an unquoted here document, in config.status.  If some macros were
31218 # called several times there might be several #defines for the same
31219 # symbol, which is useless.  But do not sort them, since the last
31220 # AC_DEFINE must be honored.
31221 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
31222 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
31223 # NAME is the cpp macro being defined, VALUE is the value it is being given.
31224 # PARAMS is the parameter list in the macro definition--in most cases, it's
31225 # just an empty string.
31226 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
31227 ac_dB='\\)[      (].*,\\1define\\2'
31228 ac_dC=' '
31229 ac_dD=' ,'
31230
31231 uniq confdefs.h |
31232   sed -n '
31233         t rset
31234         :rset
31235         s/^[     ]*#[    ]*define[       ][      ]*//
31236         t ok
31237         d
31238         :ok
31239         s/[\\&,]/\\&/g
31240         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
31241         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
31242   ' >>conftest.defines
31243
31244 # Remove the space that was appended to ease matching.
31245 # Then replace #undef with comments.  This is necessary, for
31246 # example, in the case of _POSIX_SOURCE, which is predefined and required
31247 # on some systems where configure will not decide to define it.
31248 # (The regexp can be short, since the line contains either #define or #undef.)
31249 echo 's/ $//
31250 s,^[     #]*u.*,/* & */,' >>conftest.defines
31251
31252 # Break up conftest.defines:
31253 ac_max_sed_lines=50
31254
31255 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
31256 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
31257 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
31258 # et cetera.
31259 ac_in='$ac_file_inputs'
31260 ac_out='"$tmp/out1"'
31261 ac_nxt='"$tmp/out2"'
31262
31263 while :
31264 do
31265   # Write a here document:
31266     cat >>$CONFIG_STATUS <<_ACEOF
31267     # First, check the format of the line:
31268     cat >"\$tmp/defines.sed" <<\\CEOF
31269 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
31270 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
31271 b
31272 :def
31273 _ACEOF
31274   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
31275   echo 'CEOF
31276     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
31277   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
31278   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
31279   grep . conftest.tail >/dev/null || break
31280   rm -f conftest.defines
31281   mv conftest.tail conftest.defines
31282 done
31283 rm -f conftest.defines conftest.tail
31284
31285 echo "ac_result=$ac_in" >>$CONFIG_STATUS
31286 cat >>$CONFIG_STATUS <<\_ACEOF
31287   if test x"$ac_file" != x-; then
31288     echo "/* $configure_input  */" >"$tmp/config.h"
31289     cat "$ac_result" >>"$tmp/config.h"
31290     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
31291       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
31292 echo "$as_me: $ac_file is unchanged" >&6;}
31293     else
31294       rm -f $ac_file
31295       mv "$tmp/config.h" $ac_file
31296     fi
31297   else
31298     echo "/* $configure_input  */"
31299     cat "$ac_result"
31300   fi
31301   rm -f "$tmp/out12"
31302 # Compute $ac_file's index in $config_headers.
31303 _am_stamp_count=1
31304 for _am_header in $config_headers :; do
31305   case $_am_header in
31306     $ac_file | $ac_file:* )
31307       break ;;
31308     * )
31309       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
31310   esac
31311 done
31312 echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
31313 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31314          X$ac_file : 'X\(//\)[^/]' \| \
31315          X$ac_file : 'X\(//\)$' \| \
31316          X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
31317 echo X$ac_file |
31318     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31319             s//\1/
31320             q
31321           }
31322           /^X\(\/\/\)[^/].*/{
31323             s//\1/
31324             q
31325           }
31326           /^X\(\/\/\)$/{
31327             s//\1/
31328             q
31329           }
31330           /^X\(\/\).*/{
31331             s//\1/
31332             q
31333           }
31334           s/.*/./; q'`/stamp-h$_am_stamp_count
31335  ;;
31336   
31337   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
31338 echo "$as_me: executing $ac_file commands" >&6;}
31339  ;;
31340   esac
31341
31342
31343   case $ac_file$ac_mode in
31344     "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
31345   # Strip MF so we end up with the name of the file.
31346   mf=`echo "$mf" | sed -e 's/:.*$//'`
31347   # Check whether this is an Automake generated Makefile or not.
31348   # We used to match only the files named `Makefile.in', but
31349   # some people rename them; so instead we look at the file content.
31350   # Grep'ing the first line is not enough: some people post-process
31351   # each Makefile.in and add a new line on top of each file to say so.
31352   # So let's grep whole file.
31353   if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
31354     dirpart=`$as_dirname -- "$mf" ||
31355 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31356          X"$mf" : 'X\(//\)[^/]' \| \
31357          X"$mf" : 'X\(//\)$' \| \
31358          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
31359 echo X"$mf" |
31360     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31361             s//\1/
31362             q
31363           }
31364           /^X\(\/\/\)[^/].*/{
31365             s//\1/
31366             q
31367           }
31368           /^X\(\/\/\)$/{
31369             s//\1/
31370             q
31371           }
31372           /^X\(\/\).*/{
31373             s//\1/
31374             q
31375           }
31376           s/.*/./; q'`
31377   else
31378     continue
31379   fi
31380   # Extract the definition of DEPDIR, am__include, and am__quote
31381   # from the Makefile without running `make'.
31382   DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
31383   test -z "$DEPDIR" && continue
31384   am__include=`sed -n 's/^am__include = //p' < "$mf"`
31385   test -z "am__include" && continue
31386   am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
31387   # When using ansi2knr, U may be empty or an underscore; expand it
31388   U=`sed -n 's/^U = //p' < "$mf"`
31389   # Find all dependency output files, they are included files with
31390   # $(DEPDIR) in their names.  We invoke sed twice because it is the
31391   # simplest approach to changing $(DEPDIR) to its actual value in the
31392   # expansion.
31393   for file in `sed -n "
31394     s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
31395        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
31396     # Make sure the directory exists.
31397     test -f "$dirpart/$file" && continue
31398     fdir=`$as_dirname -- "$file" ||
31399 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31400          X"$file" : 'X\(//\)[^/]' \| \
31401          X"$file" : 'X\(//\)$' \| \
31402          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
31403 echo X"$file" |
31404     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31405             s//\1/
31406             q
31407           }
31408           /^X\(\/\/\)[^/].*/{
31409             s//\1/
31410             q
31411           }
31412           /^X\(\/\/\)$/{
31413             s//\1/
31414             q
31415           }
31416           /^X\(\/\).*/{
31417             s//\1/
31418             q
31419           }
31420           s/.*/./; q'`
31421     { as_dir=$dirpart/$fdir
31422   case $as_dir in #(
31423   -*) as_dir=./$as_dir;;
31424   esac
31425   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
31426     as_dirs=
31427     while :; do
31428       case $as_dir in #(
31429       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
31430       *) as_qdir=$as_dir;;
31431       esac
31432       as_dirs="'$as_qdir' $as_dirs"
31433       as_dir=`$as_dirname -- "$as_dir" ||
31434 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31435          X"$as_dir" : 'X\(//\)[^/]' \| \
31436          X"$as_dir" : 'X\(//\)$' \| \
31437          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
31438 echo X"$as_dir" |
31439     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31440             s//\1/
31441             q
31442           }
31443           /^X\(\/\/\)[^/].*/{
31444             s//\1/
31445             q
31446           }
31447           /^X\(\/\/\)$/{
31448             s//\1/
31449             q
31450           }
31451           /^X\(\/\).*/{
31452             s//\1/
31453             q
31454           }
31455           s/.*/./; q'`
31456       test -d "$as_dir" && break
31457     done
31458     test -z "$as_dirs" || eval "mkdir $as_dirs"
31459   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
31460 echo "$as_me: error: cannot create directory $as_dir" >&2;}
31461    { (exit 1); exit 1; }; }; }
31462     # echo "creating $dirpart/$file"
31463     echo '# dummy' > "$dirpart/$file"
31464   done
31465 done
31466  ;;
31467
31468   esac
31469 done # for ac_tag
31470
31471
31472 { (exit 0); exit 0; }
31473 _ACEOF
31474 chmod +x $CONFIG_STATUS
31475 ac_clean_files=$ac_clean_files_save
31476
31477
31478 # configure is writing to config.log, and then calls config.status.
31479 # config.status does its own redirection, appending to config.log.
31480 # Unfortunately, on DOS this fails, as config.log is still kept open
31481 # by configure, so config.status won't be able to write to it; its
31482 # output is simply discarded.  So we exec the FD to /dev/null,
31483 # effectively closing config.log, so it can be properly (re)opened and
31484 # appended to by config.status.  When coming back to configure, we
31485 # need to make the FD available again.
31486 if test "$no_create" != yes; then
31487   ac_cs_success=:
31488   ac_config_status_args=
31489   test "$silent" = yes &&
31490     ac_config_status_args="$ac_config_status_args --quiet"
31491   exec 5>/dev/null
31492   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
31493   exec 5>>config.log
31494   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
31495   # would make configure fail if this is the last instruction.
31496   $ac_cs_success || { (exit 1); exit 1; }
31497 fi
31498
31499