]> git.decadent.org.uk Git - nfs-utils.git/blob - autom4te.cache/output.0
Imported Upstream version 1.0.11~git-20060117
[nfs-utils.git] / autom4te.cache / output.0
1 @%:@! /bin/sh
2 @%:@ Guess values for system-dependent variables and create Makefiles.
3 @%:@ Generated by GNU Autoconf 2.61 for linux nfs-utils 1.0.10.
4 @%:@
5 @%:@ Report bugs to <nfs@lists.sf.net>.
6 @%:@ 
7 @%:@ Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 @%:@ 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
9 @%:@ This configure script is free software; the Free Software Foundation
10 @%:@ gives unlimited permission to copy, distribute and modify it.
11 ## --------------------- ##
12 ## M4sh Initialization.  ##
13 ## --------------------- ##
14
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18   emulate sh
19   NULLCMD=:
20   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21   # is contrary to our usage.  Disable this feature.
22   alias -g '${1+"$@"}'='"$@"'
23   setopt NO_GLOB_SUBST
24 else
25   case `(set -o) 2>/dev/null` in
26   *posix*) set -o posix ;;
27 esac
28
29 fi
30
31
32
33
34 # PATH needs CR
35 # Avoid depending upon Character Ranges.
36 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
37 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
38 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
39 as_cr_digits='0123456789'
40 as_cr_alnum=$as_cr_Letters$as_cr_digits
41
42 # The user is always right.
43 if test "${PATH_SEPARATOR+set}" != set; then
44   echo "#! /bin/sh" >conf$$.sh
45   echo  "exit 0"   >>conf$$.sh
46   chmod +x conf$$.sh
47   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
48     PATH_SEPARATOR=';'
49   else
50     PATH_SEPARATOR=:
51   fi
52   rm -f conf$$.sh
53 fi
54
55 # Support unset when possible.
56 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
57   as_unset=unset
58 else
59   as_unset=false
60 fi
61
62
63 # IFS
64 # We need space, tab and new line, in precisely that order.  Quoting is
65 # there to prevent editors from complaining about space-tab.
66 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
67 # splitting by setting IFS to empty value.)
68 as_nl='
69 '
70 IFS=" ""        $as_nl"
71
72 # Find who we are.  Look in the path if we contain no directory separator.
73 case $0 in
74   *[\\/]* ) as_myself=$0 ;;
75   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
76 for as_dir in $PATH
77 do
78   IFS=$as_save_IFS
79   test -z "$as_dir" && as_dir=.
80   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
81 done
82 IFS=$as_save_IFS
83
84      ;;
85 esac
86 # We did not find ourselves, most probably we were run as `sh COMMAND'
87 # in which case we are not to be found in the path.
88 if test "x$as_myself" = x; then
89   as_myself=$0
90 fi
91 if test ! -f "$as_myself"; then
92   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
93   { (exit 1); exit 1; }
94 fi
95
96 # Work around bugs in pre-3.0 UWIN ksh.
97 for as_var in ENV MAIL MAILPATH
98 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
99 done
100 PS1='$ '
101 PS2='> '
102 PS4='+ '
103
104 # NLS nuisances.
105 for as_var in \
106   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
107   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
108   LC_TELEPHONE LC_TIME
109 do
110   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
111     eval $as_var=C; export $as_var
112   else
113     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
114   fi
115 done
116
117 # Required to use basename.
118 if expr a : '\(a\)' >/dev/null 2>&1 &&
119    test "X`expr 00001 : '.*\(...\)'`" = X001; then
120   as_expr=expr
121 else
122   as_expr=false
123 fi
124
125 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
126   as_basename=basename
127 else
128   as_basename=false
129 fi
130
131
132 # Name of the executable.
133 as_me=`$as_basename -- "$0" ||
134 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
135          X"$0" : 'X\(//\)$' \| \
136          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
137 echo X/"$0" |
138     sed '/^.*\/\([^/][^/]*\)\/*$/{
139             s//\1/
140             q
141           }
142           /^X\/\(\/\/\)$/{
143             s//\1/
144             q
145           }
146           /^X\/\(\/\).*/{
147             s//\1/
148             q
149           }
150           s/.*/./; q'`
151
152 # CDPATH.
153 $as_unset CDPATH
154
155
156 if test "x$CONFIG_SHELL" = x; then
157   if (eval ":") 2>/dev/null; then
158   as_have_required=yes
159 else
160   as_have_required=no
161 fi
162
163   if test $as_have_required = yes &&     (eval ":
164 (as_func_return () {
165   (exit \$1)
166 }
167 as_func_success () {
168   as_func_return 0
169 }
170 as_func_failure () {
171   as_func_return 1
172 }
173 as_func_ret_success () {
174   return 0
175 }
176 as_func_ret_failure () {
177   return 1
178 }
179
180 exitcode=0
181 if as_func_success; then
182   :
183 else
184   exitcode=1
185   echo as_func_success failed.
186 fi
187
188 if as_func_failure; then
189   exitcode=1
190   echo as_func_failure succeeded.
191 fi
192
193 if as_func_ret_success; then
194   :
195 else
196   exitcode=1
197   echo as_func_ret_success failed.
198 fi
199
200 if as_func_ret_failure; then
201   exitcode=1
202   echo as_func_ret_failure succeeded.
203 fi
204
205 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
206   :
207 else
208   exitcode=1
209   echo positional parameters were not saved.
210 fi
211
212 test \$exitcode = 0) || { (exit 1); exit 1; }
213
214 (
215   as_lineno_1=\$LINENO
216   as_lineno_2=\$LINENO
217   test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
218   test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
219 ") 2> /dev/null; then
220   :
221 else
222   as_candidate_shells=
223     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
224 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
225 do
226   IFS=$as_save_IFS
227   test -z "$as_dir" && as_dir=.
228   case $as_dir in
229          /*)
230            for as_base in sh bash ksh sh5; do
231              as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
232            done;;
233        esac
234 done
235 IFS=$as_save_IFS
236
237
238       for as_shell in $as_candidate_shells $SHELL; do
239          # Try only shells that exist, to save several forks.
240          if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
241                 { ("$as_shell") 2> /dev/null <<\_ASEOF
242 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
243   emulate sh
244   NULLCMD=:
245   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
246   # is contrary to our usage.  Disable this feature.
247   alias -g '${1+"$@"}'='"$@"'
248   setopt NO_GLOB_SUBST
249 else
250   case `(set -o) 2>/dev/null` in
251   *posix*) set -o posix ;;
252 esac
253
254 fi
255
256
257 :
258 _ASEOF
259 }; then
260   CONFIG_SHELL=$as_shell
261                as_have_required=yes
262                if { "$as_shell" 2> /dev/null <<\_ASEOF
263 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
264   emulate sh
265   NULLCMD=:
266   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
267   # is contrary to our usage.  Disable this feature.
268   alias -g '${1+"$@"}'='"$@"'
269   setopt NO_GLOB_SUBST
270 else
271   case `(set -o) 2>/dev/null` in
272   *posix*) set -o posix ;;
273 esac
274
275 fi
276
277
278 :
279 (as_func_return () {
280   (exit $1)
281 }
282 as_func_success () {
283   as_func_return 0
284 }
285 as_func_failure () {
286   as_func_return 1
287 }
288 as_func_ret_success () {
289   return 0
290 }
291 as_func_ret_failure () {
292   return 1
293 }
294
295 exitcode=0
296 if as_func_success; then
297   :
298 else
299   exitcode=1
300   echo as_func_success failed.
301 fi
302
303 if as_func_failure; then
304   exitcode=1
305   echo as_func_failure succeeded.
306 fi
307
308 if as_func_ret_success; then
309   :
310 else
311   exitcode=1
312   echo as_func_ret_success failed.
313 fi
314
315 if as_func_ret_failure; then
316   exitcode=1
317   echo as_func_ret_failure succeeded.
318 fi
319
320 if ( set x; as_func_ret_success y && test x = "$1" ); then
321   :
322 else
323   exitcode=1
324   echo positional parameters were not saved.
325 fi
326
327 test $exitcode = 0) || { (exit 1); exit 1; }
328
329 (
330   as_lineno_1=$LINENO
331   as_lineno_2=$LINENO
332   test "x$as_lineno_1" != "x$as_lineno_2" &&
333   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
334
335 _ASEOF
336 }; then
337   break
338 fi
339
340 fi
341
342       done
343
344       if test "x$CONFIG_SHELL" != x; then
345   for as_var in BASH_ENV ENV
346         do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
347         done
348         export CONFIG_SHELL
349         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
350 fi
351
352
353     if test $as_have_required = no; then
354   echo This script requires a shell more modern than all the
355       echo shells that I found on your system.  Please install a
356       echo modern shell, or manually run the script under such a
357       echo shell if you do have one.
358       { (exit 1); exit 1; }
359 fi
360
361     
362 fi
363
364 fi
365
366
367
368 (eval "as_func_return () {
369   (exit \$1)
370 }
371 as_func_success () {
372   as_func_return 0
373 }
374 as_func_failure () {
375   as_func_return 1
376 }
377 as_func_ret_success () {
378   return 0
379 }
380 as_func_ret_failure () {
381   return 1
382 }
383
384 exitcode=0
385 if as_func_success; then
386   :
387 else
388   exitcode=1
389   echo as_func_success failed.
390 fi
391
392 if as_func_failure; then
393   exitcode=1
394   echo as_func_failure succeeded.
395 fi
396
397 if as_func_ret_success; then
398   :
399 else
400   exitcode=1
401   echo as_func_ret_success failed.
402 fi
403
404 if as_func_ret_failure; then
405   exitcode=1
406   echo as_func_ret_failure succeeded.
407 fi
408
409 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
410   :
411 else
412   exitcode=1
413   echo positional parameters were not saved.
414 fi
415
416 test \$exitcode = 0") || {
417   echo No shell found that supports shell functions.
418   echo Please tell autoconf@gnu.org about your system,
419   echo including any error possibly output before this
420   echo message
421 }
422
423
424
425   as_lineno_1=$LINENO
426   as_lineno_2=$LINENO
427   test "x$as_lineno_1" != "x$as_lineno_2" &&
428   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
429
430   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
431   # uniformly replaced by the line number.  The first 'sed' inserts a
432   # line-number line after each line using $LINENO; the second 'sed'
433   # does the real work.  The second script uses 'N' to pair each
434   # line-number line with the line containing $LINENO, and appends
435   # trailing '-' during substitution so that $LINENO is not a special
436   # case at line end.
437   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
438   # scripts with optimization help from Paolo Bonzini.  Blame Lee
439   # E. McMahon (1931-1989) for sed's syntax.  :-)
440   sed -n '
441     p
442     /[$]LINENO/=
443   ' <$as_myself |
444     sed '
445       s/[$]LINENO.*/&-/
446       t lineno
447       b
448       :lineno
449       N
450       :loop
451       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
452       t loop
453       s/-\n.*//
454     ' >$as_me.lineno &&
455   chmod +x "$as_me.lineno" ||
456     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
457    { (exit 1); exit 1; }; }
458
459   # Don't try to exec as it changes $[0], causing all sort of problems
460   # (the dirname of $[0] is not the place where we might find the
461   # original and so on.  Autoconf is especially sensitive to this).
462   . "./$as_me.lineno"
463   # Exit status is that of the last command.
464   exit
465 }
466
467
468 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
469   as_dirname=dirname
470 else
471   as_dirname=false
472 fi
473
474 ECHO_C= ECHO_N= ECHO_T=
475 case `echo -n x` in
476 -n*)
477   case `echo 'x\c'` in
478   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
479   *)   ECHO_C='\c';;
480   esac;;
481 *)
482   ECHO_N='-n';;
483 esac
484
485 if expr a : '\(a\)' >/dev/null 2>&1 &&
486    test "X`expr 00001 : '.*\(...\)'`" = X001; then
487   as_expr=expr
488 else
489   as_expr=false
490 fi
491
492 rm -f conf$$ conf$$.exe conf$$.file
493 if test -d conf$$.dir; then
494   rm -f conf$$.dir/conf$$.file
495 else
496   rm -f conf$$.dir
497   mkdir conf$$.dir
498 fi
499 echo >conf$$.file
500 if ln -s conf$$.file conf$$ 2>/dev/null; then
501   as_ln_s='ln -s'
502   # ... but there are two gotchas:
503   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
504   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
505   # In both cases, we have to default to `cp -p'.
506   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
507     as_ln_s='cp -p'
508 elif ln conf$$.file conf$$ 2>/dev/null; then
509   as_ln_s=ln
510 else
511   as_ln_s='cp -p'
512 fi
513 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
514 rmdir conf$$.dir 2>/dev/null
515
516 if mkdir -p . 2>/dev/null; then
517   as_mkdir_p=:
518 else
519   test -d ./-p && rmdir ./-p
520   as_mkdir_p=false
521 fi
522
523 if test -x / >/dev/null 2>&1; then
524   as_test_x='test -x'
525 else
526   if ls -dL / >/dev/null 2>&1; then
527     as_ls_L_option=L
528   else
529     as_ls_L_option=
530   fi
531   as_test_x='
532     eval sh -c '\''
533       if test -d "$1"; then
534         test -d "$1/.";
535       else
536         case $1 in
537         -*)set "./$1";;
538         esac;
539         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
540         ???[sx]*):;;*)false;;esac;fi
541     '\'' sh
542   '
543 fi
544 as_executable_p=$as_test_x
545
546 # Sed expression to map a string onto a valid CPP name.
547 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
548
549 # Sed expression to map a string onto a valid variable name.
550 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
551
552
553
554
555 # Check that we are running under the correct shell.
556 SHELL=${CONFIG_SHELL-/bin/sh}
557
558 case X$ECHO in
559 X*--fallback-echo)
560   # Remove one level of quotation (which was required for Make).
561   ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
562   ;;
563 esac
564
565 echo=${ECHO-echo}
566 if test "X$1" = X--no-reexec; then
567   # Discard the --no-reexec flag, and continue.
568   shift
569 elif test "X$1" = X--fallback-echo; then
570   # Avoid inline document here, it may be left over
571   :
572 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
573   # Yippee, $echo works!
574   :
575 else
576   # Restart under the correct shell.
577   exec $SHELL "$0" --no-reexec ${1+"$@"}
578 fi
579
580 if test "X$1" = X--fallback-echo; then
581   # used as fallback echo
582   shift
583   cat <<EOF
584 $*
585 EOF
586   exit 0
587 fi
588
589 # The HP-UX ksh and POSIX shell print the target directory to stdout
590 # if CDPATH is set.
591 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
592
593 if test -z "$ECHO"; then
594 if test "X${echo_test_string+set}" != Xset; then
595 # find a string as large as possible, as long as the shell can cope with it
596   for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
597     # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
598     if (echo_test_string=`eval $cmd`) 2>/dev/null &&
599        echo_test_string=`eval $cmd` &&
600        (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
601     then
602       break
603     fi
604   done
605 fi
606
607 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
608    echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
609    test "X$echo_testing_string" = "X$echo_test_string"; then
610   :
611 else
612   # The Solaris, AIX, and Digital Unix default echo programs unquote
613   # backslashes.  This makes it impossible to quote backslashes using
614   #   echo "$something" | sed 's/\\/\\\\/g'
615   #
616   # So, first we look for a working echo in the user's PATH.
617
618   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
619   for dir in $PATH /usr/ucb; do
620     IFS="$lt_save_ifs"
621     if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
622        test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
623        echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
624        test "X$echo_testing_string" = "X$echo_test_string"; then
625       echo="$dir/echo"
626       break
627     fi
628   done
629   IFS="$lt_save_ifs"
630
631   if test "X$echo" = Xecho; then
632     # We didn't find a better echo, so look for alternatives.
633     if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
634        echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
635        test "X$echo_testing_string" = "X$echo_test_string"; then
636       # This shell has a builtin print -r that does the trick.
637       echo='print -r'
638     elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
639          test "X$CONFIG_SHELL" != X/bin/ksh; then
640       # If we have ksh, try running configure again with it.
641       ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
642       export ORIGINAL_CONFIG_SHELL
643       CONFIG_SHELL=/bin/ksh
644       export CONFIG_SHELL
645       exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
646     else
647       # Try using printf.
648       echo='printf %s\n'
649       if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
650          echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
651          test "X$echo_testing_string" = "X$echo_test_string"; then
652         # Cool, printf works
653         :
654       elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
655            test "X$echo_testing_string" = 'X\t' &&
656            echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
657            test "X$echo_testing_string" = "X$echo_test_string"; then
658         CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
659         export CONFIG_SHELL
660         SHELL="$CONFIG_SHELL"
661         export SHELL
662         echo="$CONFIG_SHELL $0 --fallback-echo"
663       elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
664            test "X$echo_testing_string" = 'X\t' &&
665            echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
666            test "X$echo_testing_string" = "X$echo_test_string"; then
667         echo="$CONFIG_SHELL $0 --fallback-echo"
668       else
669         # maybe with a smaller string...
670         prev=:
671
672         for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
673           if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
674           then
675             break
676           fi
677           prev="$cmd"
678         done
679
680         if test "$prev" != 'sed 50q "$0"'; then
681           echo_test_string=`eval $prev`
682           export echo_test_string
683           exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
684         else
685           # Oops.  We lost completely, so just stick with echo.
686           echo=echo
687         fi
688       fi
689     fi
690   fi
691 fi
692 fi
693
694 # Copy echo and quote the copy suitably for passing to libtool from
695 # the Makefile, instead of quoting the original, which is used later.
696 ECHO=$echo
697 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
698    ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
699 fi
700
701
702
703
704 tagnames=${tagnames+${tagnames},}CXX
705
706 tagnames=${tagnames+${tagnames},}F77
707
708 exec 7<&0 </dev/null 6>&1
709
710 # Name of the host.
711 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
712 # so uname gets run too.
713 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
714
715 #
716 # Initializations.
717 #
718 ac_default_prefix=/usr/local
719 ac_clean_files=
720 ac_config_libobj_dir=.
721 LIB@&t@OBJS=
722 cross_compiling=no
723 subdirs=
724 MFLAGS=
725 MAKEFLAGS=
726 SHELL=${CONFIG_SHELL-/bin/sh}
727
728 # Identity of this package.
729 PACKAGE_NAME='linux nfs-utils'
730 PACKAGE_TARNAME='nfs-utils'
731 PACKAGE_VERSION='1.0.10'
732 PACKAGE_STRING='linux nfs-utils 1.0.10'
733 PACKAGE_BUGREPORT='nfs@lists.sf.net'
734
735 ac_unique_file="tools/getiversion/getiversion.c"
736 ac_default_prefix=/usr
737 ac_unique_file="support/include/config.h.in"
738 # Factoring default headers for most tests.
739 ac_includes_default="\
740 #include <stdio.h>
741 #ifdef HAVE_SYS_TYPES_H
742 # include <sys/types.h>
743 #endif
744 #ifdef HAVE_SYS_STAT_H
745 # include <sys/stat.h>
746 #endif
747 #ifdef STDC_HEADERS
748 # include <stdlib.h>
749 # include <stddef.h>
750 #else
751 # ifdef HAVE_STDLIB_H
752 #  include <stdlib.h>
753 # endif
754 #endif
755 #ifdef HAVE_STRING_H
756 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
757 #  include <memory.h>
758 # endif
759 # include <string.h>
760 #endif
761 #ifdef HAVE_STRINGS_H
762 # include <strings.h>
763 #endif
764 #ifdef HAVE_INTTYPES_H
765 # include <inttypes.h>
766 #endif
767 #ifdef HAVE_STDINT_H
768 # include <stdint.h>
769 #endif
770 #ifdef HAVE_UNISTD_H
771 # include <unistd.h>
772 #endif"
773
774 ac_subst_vars='SHELL
775 PATH_SEPARATOR
776 PACKAGE_NAME
777 PACKAGE_TARNAME
778 PACKAGE_VERSION
779 PACKAGE_STRING
780 PACKAGE_BUGREPORT
781 exec_prefix
782 prefix
783 program_transform_name
784 bindir
785 sbindir
786 libexecdir
787 datarootdir
788 datadir
789 sysconfdir
790 sharedstatedir
791 localstatedir
792 includedir
793 oldincludedir
794 docdir
795 infodir
796 htmldir
797 dvidir
798 pdfdir
799 psdir
800 libdir
801 localedir
802 mandir
803 DEFS
804 ECHO_C
805 ECHO_N
806 ECHO_T
807 LIBS
808 build_alias
809 host_alias
810 target_alias
811 build
812 build_cpu
813 build_vendor
814 build_os
815 host
816 host_cpu
817 host_vendor
818 host_os
819 INSTALL_PROGRAM
820 INSTALL_SCRIPT
821 INSTALL_DATA
822 CYGPATH_W
823 PACKAGE
824 VERSION
825 ACLOCAL
826 AUTOCONF
827 AUTOMAKE
828 AUTOHEADER
829 MAKEINFO
830 AMTAR
831 install_sh
832 STRIP
833 INSTALL_STRIP_PROGRAM
834 mkdir_p
835 AWK
836 SET_MAKE
837 am__leading_dot
838 RELEASE
839 statedir
840 statduser
841 enable_nfsv3
842 IDMAPD
843 enable_nfsv4
844 CONFIG_NFSV4_TRUE
845 CONFIG_NFSV4_FALSE
846 GSSD
847 SVCGSSD
848 enable_gss
849 CONFIG_GSS_TRUE
850 CONFIG_GSS_FALSE
851 kprefix
852 secure_statd
853 CONFIG_RQUOTAD_TRUE
854 CONFIG_RQUOTAD_FALSE
855 CONFIG_MOUNT_TRUE
856 CONFIG_MOUNT_FALSE
857 CC
858 CFLAGS
859 LDFLAGS
860 CPPFLAGS
861 ac_ct_CC
862 EXEEXT
863 OBJEXT
864 DEPDIR
865 am__include
866 am__quote
867 AMDEP_TRUE
868 AMDEP_FALSE
869 AMDEPBACKSLASH
870 CCDEPMODE
871 am__fastdepCC_TRUE
872 am__fastdepCC_FALSE
873 LIBWRAP
874 HAVE_LIBWRAP
875 HAVE_TCP_WRAPPER
876 CXX
877 CXXFLAGS
878 ac_ct_CXX
879 CXXDEPMODE
880 am__fastdepCXX_TRUE
881 am__fastdepCXX_FALSE
882 CPP
883 LN_S
884 GREP
885 EGREP
886 ECHO
887 AR
888 RANLIB
889 CXXCPP
890 F77
891 FFLAGS
892 ac_ct_F77
893 LIBTOOL
894 CC_FOR_BUILD
895 LD
896 LIBNSL
897 PKG_CONFIG
898 RPCSECGSS_CFLAGS
899 RPCSECGSS_LIBS
900 GSSAPI_CFLAGS
901 GSSAPI_LIBS
902 LIBSOCKET
903 LIBCRYPT
904 LIBBSD
905 KRBDIR
906 KRBLIBS
907 KRBCFLAGS
908 KRBLDFLAGS
909 K5VERS
910 ALLOCA
911 LIB@&t@OBJS
912 CFLAGS_FOR_BUILD
913 CXXFLAGS_FOR_BUILD
914 CPPFLAGS_FOR_BUILD
915 LDFLAGS_FOR_BUILD
916 AM_CPPFLAGS
917 AM_CFLAGS
918 ACLOCAL_AMFLAGS
919 LTLIBOBJS'
920 ac_subst_files=''
921       ac_precious_vars='build_alias
922 host_alias
923 target_alias
924 CC
925 CFLAGS
926 LDFLAGS
927 LIBS
928 CPPFLAGS
929 CXX
930 CXXFLAGS
931 CCC
932 CPP
933 CXXCPP
934 F77
935 FFLAGS
936 PKG_CONFIG
937 RPCSECGSS_CFLAGS
938 RPCSECGSS_LIBS
939 GSSAPI_CFLAGS
940 GSSAPI_LIBS'
941
942
943 # Initialize some variables set by options.
944 ac_init_help=
945 ac_init_version=false
946 # The variables have the same names as the options, with
947 # dashes changed to underlines.
948 cache_file=/dev/null
949 exec_prefix=NONE
950 no_create=
951 no_recursion=
952 prefix=NONE
953 program_prefix=NONE
954 program_suffix=NONE
955 program_transform_name=s,x,x,
956 silent=
957 site=
958 srcdir=
959 verbose=
960 x_includes=NONE
961 x_libraries=NONE
962
963 # Installation directory options.
964 # These are left unexpanded so users can "make install exec_prefix=/foo"
965 # and all the variables that are supposed to be based on exec_prefix
966 # by default will actually change.
967 # Use braces instead of parens because sh, perl, etc. also accept them.
968 # (The list follows the same order as the GNU Coding Standards.)
969 bindir='${exec_prefix}/bin'
970 sbindir='${exec_prefix}/sbin'
971 libexecdir='${exec_prefix}/libexec'
972 datarootdir='${prefix}/share'
973 datadir='${datarootdir}'
974 sysconfdir='${prefix}/etc'
975 sharedstatedir='${prefix}/com'
976 localstatedir='${prefix}/var'
977 includedir='${prefix}/include'
978 oldincludedir='/usr/include'
979 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
980 infodir='${datarootdir}/info'
981 htmldir='${docdir}'
982 dvidir='${docdir}'
983 pdfdir='${docdir}'
984 psdir='${docdir}'
985 libdir='${exec_prefix}/lib'
986 localedir='${datarootdir}/locale'
987 mandir='${datarootdir}/man'
988
989 ac_prev=
990 ac_dashdash=
991 for ac_option
992 do
993   # If the previous option needs an argument, assign it.
994   if test -n "$ac_prev"; then
995     eval $ac_prev=\$ac_option
996     ac_prev=
997     continue
998   fi
999
1000   case $ac_option in
1001   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1002   *)    ac_optarg=yes ;;
1003   esac
1004
1005   # Accept the important Cygnus configure options, so we can diagnose typos.
1006
1007   case $ac_dashdash$ac_option in
1008   --)
1009     ac_dashdash=yes ;;
1010
1011   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1012     ac_prev=bindir ;;
1013   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1014     bindir=$ac_optarg ;;
1015
1016   -build | --build | --buil | --bui | --bu)
1017     ac_prev=build_alias ;;
1018   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1019     build_alias=$ac_optarg ;;
1020
1021   -cache-file | --cache-file | --cache-fil | --cache-fi \
1022   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1023     ac_prev=cache_file ;;
1024   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1025   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1026     cache_file=$ac_optarg ;;
1027
1028   --config-cache | -C)
1029     cache_file=config.cache ;;
1030
1031   -datadir | --datadir | --datadi | --datad)
1032     ac_prev=datadir ;;
1033   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1034     datadir=$ac_optarg ;;
1035
1036   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1037   | --dataroo | --dataro | --datar)
1038     ac_prev=datarootdir ;;
1039   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1040   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1041     datarootdir=$ac_optarg ;;
1042
1043   -disable-* | --disable-*)
1044     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1045     # Reject names that are not valid shell variable names.
1046     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1047       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1048    { (exit 1); exit 1; }; }
1049     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1050     eval enable_$ac_feature=no ;;
1051
1052   -docdir | --docdir | --docdi | --doc | --do)
1053     ac_prev=docdir ;;
1054   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1055     docdir=$ac_optarg ;;
1056
1057   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1058     ac_prev=dvidir ;;
1059   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1060     dvidir=$ac_optarg ;;
1061
1062   -enable-* | --enable-*)
1063     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1064     # Reject names that are not valid shell variable names.
1065     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1066       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1067    { (exit 1); exit 1; }; }
1068     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1069     eval enable_$ac_feature=\$ac_optarg ;;
1070
1071   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1072   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1073   | --exec | --exe | --ex)
1074     ac_prev=exec_prefix ;;
1075   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1076   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1077   | --exec=* | --exe=* | --ex=*)
1078     exec_prefix=$ac_optarg ;;
1079
1080   -gas | --gas | --ga | --g)
1081     # Obsolete; use --with-gas.
1082     with_gas=yes ;;
1083
1084   -help | --help | --hel | --he | -h)
1085     ac_init_help=long ;;
1086   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1087     ac_init_help=recursive ;;
1088   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1089     ac_init_help=short ;;
1090
1091   -host | --host | --hos | --ho)
1092     ac_prev=host_alias ;;
1093   -host=* | --host=* | --hos=* | --ho=*)
1094     host_alias=$ac_optarg ;;
1095
1096   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1097     ac_prev=htmldir ;;
1098   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1099   | --ht=*)
1100     htmldir=$ac_optarg ;;
1101
1102   -includedir | --includedir | --includedi | --included | --include \
1103   | --includ | --inclu | --incl | --inc)
1104     ac_prev=includedir ;;
1105   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1106   | --includ=* | --inclu=* | --incl=* | --inc=*)
1107     includedir=$ac_optarg ;;
1108
1109   -infodir | --infodir | --infodi | --infod | --info | --inf)
1110     ac_prev=infodir ;;
1111   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1112     infodir=$ac_optarg ;;
1113
1114   -libdir | --libdir | --libdi | --libd)
1115     ac_prev=libdir ;;
1116   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1117     libdir=$ac_optarg ;;
1118
1119   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1120   | --libexe | --libex | --libe)
1121     ac_prev=libexecdir ;;
1122   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1123   | --libexe=* | --libex=* | --libe=*)
1124     libexecdir=$ac_optarg ;;
1125
1126   -localedir | --localedir | --localedi | --localed | --locale)
1127     ac_prev=localedir ;;
1128   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1129     localedir=$ac_optarg ;;
1130
1131   -localstatedir | --localstatedir | --localstatedi | --localstated \
1132   | --localstate | --localstat | --localsta | --localst | --locals)
1133     ac_prev=localstatedir ;;
1134   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1135   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1136     localstatedir=$ac_optarg ;;
1137
1138   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1139     ac_prev=mandir ;;
1140   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1141     mandir=$ac_optarg ;;
1142
1143   -nfp | --nfp | --nf)
1144     # Obsolete; use --without-fp.
1145     with_fp=no ;;
1146
1147   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1148   | --no-cr | --no-c | -n)
1149     no_create=yes ;;
1150
1151   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1152   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1153     no_recursion=yes ;;
1154
1155   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1156   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1157   | --oldin | --oldi | --old | --ol | --o)
1158     ac_prev=oldincludedir ;;
1159   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1160   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1161   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1162     oldincludedir=$ac_optarg ;;
1163
1164   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1165     ac_prev=prefix ;;
1166   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1167     prefix=$ac_optarg ;;
1168
1169   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1170   | --program-pre | --program-pr | --program-p)
1171     ac_prev=program_prefix ;;
1172   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1173   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1174     program_prefix=$ac_optarg ;;
1175
1176   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1177   | --program-suf | --program-su | --program-s)
1178     ac_prev=program_suffix ;;
1179   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1180   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1181     program_suffix=$ac_optarg ;;
1182
1183   -program-transform-name | --program-transform-name \
1184   | --program-transform-nam | --program-transform-na \
1185   | --program-transform-n | --program-transform- \
1186   | --program-transform | --program-transfor \
1187   | --program-transfo | --program-transf \
1188   | --program-trans | --program-tran \
1189   | --progr-tra | --program-tr | --program-t)
1190     ac_prev=program_transform_name ;;
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     program_transform_name=$ac_optarg ;;
1199
1200   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1201     ac_prev=pdfdir ;;
1202   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1203     pdfdir=$ac_optarg ;;
1204
1205   -psdir | --psdir | --psdi | --psd | --ps)
1206     ac_prev=psdir ;;
1207   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1208     psdir=$ac_optarg ;;
1209
1210   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1211   | -silent | --silent | --silen | --sile | --sil)
1212     silent=yes ;;
1213
1214   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1215     ac_prev=sbindir ;;
1216   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1217   | --sbi=* | --sb=*)
1218     sbindir=$ac_optarg ;;
1219
1220   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1221   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1222   | --sharedst | --shareds | --shared | --share | --shar \
1223   | --sha | --sh)
1224     ac_prev=sharedstatedir ;;
1225   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1226   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1227   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1228   | --sha=* | --sh=*)
1229     sharedstatedir=$ac_optarg ;;
1230
1231   -site | --site | --sit)
1232     ac_prev=site ;;
1233   -site=* | --site=* | --sit=*)
1234     site=$ac_optarg ;;
1235
1236   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1237     ac_prev=srcdir ;;
1238   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1239     srcdir=$ac_optarg ;;
1240
1241   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1242   | --syscon | --sysco | --sysc | --sys | --sy)
1243     ac_prev=sysconfdir ;;
1244   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1245   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1246     sysconfdir=$ac_optarg ;;
1247
1248   -target | --target | --targe | --targ | --tar | --ta | --t)
1249     ac_prev=target_alias ;;
1250   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1251     target_alias=$ac_optarg ;;
1252
1253   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1254     verbose=yes ;;
1255
1256   -version | --version | --versio | --versi | --vers | -V)
1257     ac_init_version=: ;;
1258
1259   -with-* | --with-*)
1260     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1261     # Reject names that are not valid shell variable names.
1262     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1263       { echo "$as_me: error: invalid package name: $ac_package" >&2
1264    { (exit 1); exit 1; }; }
1265     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1266     eval with_$ac_package=\$ac_optarg ;;
1267
1268   -without-* | --without-*)
1269     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1270     # Reject names that are not valid shell variable names.
1271     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1272       { echo "$as_me: error: invalid package name: $ac_package" >&2
1273    { (exit 1); exit 1; }; }
1274     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1275     eval with_$ac_package=no ;;
1276
1277   --x)
1278     # Obsolete; use --with-x.
1279     with_x=yes ;;
1280
1281   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1282   | --x-incl | --x-inc | --x-in | --x-i)
1283     ac_prev=x_includes ;;
1284   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1285   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1286     x_includes=$ac_optarg ;;
1287
1288   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1289   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1290     ac_prev=x_libraries ;;
1291   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1292   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1293     x_libraries=$ac_optarg ;;
1294
1295   -*) { echo "$as_me: error: unrecognized option: $ac_option
1296 Try \`$0 --help' for more information." >&2
1297    { (exit 1); exit 1; }; }
1298     ;;
1299
1300   *=*)
1301     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1302     # Reject names that are not valid shell variable names.
1303     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1304       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1305    { (exit 1); exit 1; }; }
1306     eval $ac_envvar=\$ac_optarg
1307     export $ac_envvar ;;
1308
1309   *)
1310     # FIXME: should be removed in autoconf 3.0.
1311     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1312     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1313       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1314     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1315     ;;
1316
1317   esac
1318 done
1319
1320 if test -n "$ac_prev"; then
1321   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1322   { echo "$as_me: error: missing argument to $ac_option" >&2
1323    { (exit 1); exit 1; }; }
1324 fi
1325
1326 # Be sure to have absolute directory names.
1327 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1328                 datadir sysconfdir sharedstatedir localstatedir includedir \
1329                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1330                 libdir localedir mandir
1331 do
1332   eval ac_val=\$$ac_var
1333   case $ac_val in
1334     [\\/$]* | ?:[\\/]* )  continue;;
1335     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1336   esac
1337   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1338    { (exit 1); exit 1; }; }
1339 done
1340
1341 # There might be people who depend on the old broken behavior: `$host'
1342 # used to hold the argument of --host etc.
1343 # FIXME: To remove some day.
1344 build=$build_alias
1345 host=$host_alias
1346 target=$target_alias
1347
1348 # FIXME: To remove some day.
1349 if test "x$host_alias" != x; then
1350   if test "x$build_alias" = x; then
1351     cross_compiling=maybe
1352     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1353     If a cross compiler is detected then cross compile mode will be used." >&2
1354   elif test "x$build_alias" != "x$host_alias"; then
1355     cross_compiling=yes
1356   fi
1357 fi
1358
1359 ac_tool_prefix=
1360 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1361
1362 test "$silent" = yes && exec 6>/dev/null
1363
1364
1365 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1366 ac_ls_di=`ls -di .` &&
1367 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1368   { echo "$as_me: error: Working directory cannot be determined" >&2
1369    { (exit 1); exit 1; }; }
1370 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1371   { echo "$as_me: error: pwd does not report name of working directory" >&2
1372    { (exit 1); exit 1; }; }
1373
1374
1375 # Find the source files, if location was not specified.
1376 if test -z "$srcdir"; then
1377   ac_srcdir_defaulted=yes
1378   # Try the directory containing this script, then the parent directory.
1379   ac_confdir=`$as_dirname -- "$0" ||
1380 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1381          X"$0" : 'X\(//\)[^/]' \| \
1382          X"$0" : 'X\(//\)$' \| \
1383          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1384 echo X"$0" |
1385     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1386             s//\1/
1387             q
1388           }
1389           /^X\(\/\/\)[^/].*/{
1390             s//\1/
1391             q
1392           }
1393           /^X\(\/\/\)$/{
1394             s//\1/
1395             q
1396           }
1397           /^X\(\/\).*/{
1398             s//\1/
1399             q
1400           }
1401           s/.*/./; q'`
1402   srcdir=$ac_confdir
1403   if test ! -r "$srcdir/$ac_unique_file"; then
1404     srcdir=..
1405   fi
1406 else
1407   ac_srcdir_defaulted=no
1408 fi
1409 if test ! -r "$srcdir/$ac_unique_file"; then
1410   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1411   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1412    { (exit 1); exit 1; }; }
1413 fi
1414 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1415 ac_abs_confdir=`(
1416         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1417    { (exit 1); exit 1; }; }
1418         pwd)`
1419 # When building in place, set srcdir=.
1420 if test "$ac_abs_confdir" = "$ac_pwd"; then
1421   srcdir=.
1422 fi
1423 # Remove unnecessary trailing slashes from srcdir.
1424 # Double slashes in file names in object file debugging info
1425 # mess up M-x gdb in Emacs.
1426 case $srcdir in
1427 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1428 esac
1429 for ac_var in $ac_precious_vars; do
1430   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1431   eval ac_env_${ac_var}_value=\$${ac_var}
1432   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1433   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1434 done
1435
1436 #
1437 # Report the --help message.
1438 #
1439 if test "$ac_init_help" = "long"; then
1440   # Omit some internal or obsolete options to make the list less imposing.
1441   # This message is too long to be a string in the A/UX 3.1 sh.
1442   cat <<_ACEOF
1443 \`configure' configures linux nfs-utils 1.0.10 to adapt to many kinds of systems.
1444
1445 Usage: $0 [OPTION]... [VAR=VALUE]...
1446
1447 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1448 VAR=VALUE.  See below for descriptions of some of the useful variables.
1449
1450 Defaults for the options are specified in brackets.
1451
1452 Configuration:
1453   -h, --help              display this help and exit
1454       --help=short        display options specific to this package
1455       --help=recursive    display the short help of all the included packages
1456   -V, --version           display version information and exit
1457   -q, --quiet, --silent   do not print \`checking...' messages
1458       --cache-file=FILE   cache test results in FILE [disabled]
1459   -C, --config-cache      alias for \`--cache-file=config.cache'
1460   -n, --no-create         do not create output files
1461       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1462
1463 Installation directories:
1464   --prefix=PREFIX         install architecture-independent files in PREFIX
1465                           [$ac_default_prefix]
1466   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1467                           [PREFIX]
1468
1469 By default, \`make install' will install all the files in
1470 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1471 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1472 for instance \`--prefix=\$HOME'.
1473
1474 For better control, use the options below.
1475
1476 Fine tuning of the installation directories:
1477   --bindir=DIR           user executables [EPREFIX/bin]
1478   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1479   --libexecdir=DIR       program executables [EPREFIX/libexec]
1480   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1481   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1482   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1483   --libdir=DIR           object code libraries [EPREFIX/lib]
1484   --includedir=DIR       C header files [PREFIX/include]
1485   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1486   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1487   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1488   --infodir=DIR          info documentation [DATAROOTDIR/info]
1489   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1490   --mandir=DIR           man documentation [DATAROOTDIR/man]
1491   --docdir=DIR           documentation root @<:@DATAROOTDIR/doc/nfs-utils@:>@
1492   --htmldir=DIR          html documentation [DOCDIR]
1493   --dvidir=DIR           dvi documentation [DOCDIR]
1494   --pdfdir=DIR           pdf documentation [DOCDIR]
1495   --psdir=DIR            ps documentation [DOCDIR]
1496 _ACEOF
1497
1498   cat <<\_ACEOF
1499
1500 Program names:
1501   --program-prefix=PREFIX            prepend PREFIX to installed program names
1502   --program-suffix=SUFFIX            append SUFFIX to installed program names
1503   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1504
1505 System types:
1506   --build=BUILD     configure for building on BUILD [guessed]
1507   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1508 _ACEOF
1509 fi
1510
1511 if test -n "$ac_init_help"; then
1512   case $ac_init_help in
1513      short | recursive ) echo "Configuration of linux nfs-utils 1.0.10:";;
1514    esac
1515   cat <<\_ACEOF
1516
1517 Optional Features:
1518   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1519   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1520   --enable-nfsv3          enable support for NFSv3 @<:@default=yes@:>@
1521   --enable-nfsv4          enable support for NFSv4 @<:@default=yes@:>@
1522   --enable-gss            enable support for rpcsec_gss @<:@default=yes@:>@
1523   --enable-kprefix        install progs as rpc.knfsd etc
1524   --enable-secure-statd   Only lockd can use statd (security)
1525   --enable-rquotad        enable rquotad @<:@default=yes@:>@
1526   --enable-mount          Create mount.nfs and don't use the util-linux
1527                           mount(8) functionality. @<:@default=no@:>@
1528   --disable-dependency-tracking  speeds up one-time build
1529   --enable-dependency-tracking   do not reject slow dependency extractors
1530   --enable-shared@<:@=PKGS@:>@  build shared libraries @<:@default=yes@:>@
1531   --enable-static@<:@=PKGS@:>@  build static libraries @<:@default=yes@:>@
1532   --enable-fast-install@<:@=PKGS@:>@ 
1533                           optimize for fast installation @<:@default=yes@:>@
1534   --disable-libtool-lock  avoid locking (might break parallel builds)
1535
1536 Optional Packages:
1537   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1538   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1539   --with-release=XXX      set release to XXX [1]
1540   --with-statedir=/foo    use state dir /foo /var/lib/nfs
1541   --with-statduser=rpcuser 
1542                           statd to run under @<:@rpcuser or nobody@:>@
1543   --with-tcp-wrappers[=PATH]      Enable tcpwrappers support
1544                  (optionally in PATH)
1545   --with-gnu-ld           assume the C compiler uses GNU ld @<:@default=no@:>@
1546   --with-pic              try to use only PIC/non-PIC objects @<:@default=use
1547                           both@:>@
1548   --with-tags@<:@=TAGS@:>@      include additional configurations @<:@automatic@:>@
1549   --with-krb5=DIR         use Kerberos v5 installation in DIR
1550
1551 Some influential environment variables:
1552   CC          C compiler command
1553   CFLAGS      C compiler flags
1554   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1555               nonstandard directory <lib dir>
1556   LIBS        libraries to pass to the linker, e.g. -l<library>
1557   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1558               you have headers in a nonstandard directory <include dir>
1559   CXX         C++ compiler command
1560   CXXFLAGS    C++ compiler flags
1561   CPP         C preprocessor
1562   CXXCPP      C++ preprocessor
1563   F77         Fortran 77 compiler command
1564   FFLAGS      Fortran 77 compiler flags
1565   PKG_CONFIG  path to pkg-config utility
1566   RPCSECGSS_CFLAGS 
1567               C compiler flags for RPCSECGSS, overriding pkg-config
1568   RPCSECGSS_LIBS 
1569               linker flags for RPCSECGSS, overriding pkg-config
1570   GSSAPI_CFLAGS 
1571               C compiler flags for GSSAPI, overriding pkg-config
1572   GSSAPI_LIBS linker flags for GSSAPI, overriding pkg-config
1573
1574 Use these variables to override the choices made by `configure' or to help
1575 it to find libraries and programs with nonstandard names/locations.
1576
1577 Report bugs to <nfs@lists.sf.net>.
1578 _ACEOF
1579 ac_status=$?
1580 fi
1581
1582 if test "$ac_init_help" = "recursive"; then
1583   # If there are subdirs, report their specific --help.
1584   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1585     test -d "$ac_dir" || continue
1586     ac_builddir=.
1587
1588 case "$ac_dir" in
1589 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1590 *)
1591   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1592   # A ".." for each directory in $ac_dir_suffix.
1593   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1594   case $ac_top_builddir_sub in
1595   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1596   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1597   esac ;;
1598 esac
1599 ac_abs_top_builddir=$ac_pwd
1600 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1601 # for backward compatibility:
1602 ac_top_builddir=$ac_top_build_prefix
1603
1604 case $srcdir in
1605   .)  # We are building in place.
1606     ac_srcdir=.
1607     ac_top_srcdir=$ac_top_builddir_sub
1608     ac_abs_top_srcdir=$ac_pwd ;;
1609   [\\/]* | ?:[\\/]* )  # Absolute name.
1610     ac_srcdir=$srcdir$ac_dir_suffix;
1611     ac_top_srcdir=$srcdir
1612     ac_abs_top_srcdir=$srcdir ;;
1613   *) # Relative name.
1614     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1615     ac_top_srcdir=$ac_top_build_prefix$srcdir
1616     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1617 esac
1618 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1619
1620     cd "$ac_dir" || { ac_status=$?; continue; }
1621     # Check for guested configure.
1622     if test -f "$ac_srcdir/configure.gnu"; then
1623       echo &&
1624       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1625     elif test -f "$ac_srcdir/configure"; then
1626       echo &&
1627       $SHELL "$ac_srcdir/configure" --help=recursive
1628     else
1629       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1630     fi || ac_status=$?
1631     cd "$ac_pwd" || { ac_status=$?; break; }
1632   done
1633 fi
1634
1635 test -n "$ac_init_help" && exit $ac_status
1636 if $ac_init_version; then
1637   cat <<\_ACEOF
1638 linux nfs-utils configure 1.0.10
1639 generated by GNU Autoconf 2.61
1640
1641 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1642 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1643 This configure script is free software; the Free Software Foundation
1644 gives unlimited permission to copy, distribute and modify it.
1645 _ACEOF
1646   exit
1647 fi
1648 cat >config.log <<_ACEOF
1649 This file contains any messages produced by compilers while
1650 running configure, to aid debugging if configure makes a mistake.
1651
1652 It was created by linux nfs-utils $as_me 1.0.10, which was
1653 generated by GNU Autoconf 2.61.  Invocation command line was
1654
1655   $ $0 $@
1656
1657 _ACEOF
1658 exec 5>>config.log
1659 {
1660 cat <<_ASUNAME
1661 @%:@@%:@ --------- @%:@@%:@
1662 @%:@@%:@ Platform. @%:@@%:@
1663 @%:@@%:@ --------- @%:@@%:@
1664
1665 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1666 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1667 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1668 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1669 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1670
1671 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1672 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1673
1674 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1675 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1676 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1677 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1678 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1679 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1680 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1681
1682 _ASUNAME
1683
1684 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1685 for as_dir in $PATH
1686 do
1687   IFS=$as_save_IFS
1688   test -z "$as_dir" && as_dir=.
1689   echo "PATH: $as_dir"
1690 done
1691 IFS=$as_save_IFS
1692
1693 } >&5
1694
1695 cat >&5 <<_ACEOF
1696
1697
1698 @%:@@%:@ ----------- @%:@@%:@
1699 @%:@@%:@ Core tests. @%:@@%:@
1700 @%:@@%:@ ----------- @%:@@%:@
1701
1702 _ACEOF
1703
1704
1705 # Keep a trace of the command line.
1706 # Strip out --no-create and --no-recursion so they do not pile up.
1707 # Strip out --silent because we don't want to record it for future runs.
1708 # Also quote any args containing shell meta-characters.
1709 # Make two passes to allow for proper duplicate-argument suppression.
1710 ac_configure_args=
1711 ac_configure_args0=
1712 ac_configure_args1=
1713 ac_must_keep_next=false
1714 for ac_pass in 1 2
1715 do
1716   for ac_arg
1717   do
1718     case $ac_arg in
1719     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1720     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1721     | -silent | --silent | --silen | --sile | --sil)
1722       continue ;;
1723     *\'*)
1724       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1725     esac
1726     case $ac_pass in
1727     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1728     2)
1729       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1730       if test $ac_must_keep_next = true; then
1731         ac_must_keep_next=false # Got value, back to normal.
1732       else
1733         case $ac_arg in
1734           *=* | --config-cache | -C | -disable-* | --disable-* \
1735           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1736           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1737           | -with-* | --with-* | -without-* | --without-* | --x)
1738             case "$ac_configure_args0 " in
1739               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1740             esac
1741             ;;
1742           -* ) ac_must_keep_next=true ;;
1743         esac
1744       fi
1745       ac_configure_args="$ac_configure_args '$ac_arg'"
1746       ;;
1747     esac
1748   done
1749 done
1750 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1751 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1752
1753 # When interrupted or exit'd, cleanup temporary files, and complete
1754 # config.log.  We remove comments because anyway the quotes in there
1755 # would cause problems or look ugly.
1756 # WARNING: Use '\'' to represent an apostrophe within the trap.
1757 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1758 trap 'exit_status=$?
1759   # Save into config.log some information that might help in debugging.
1760   {
1761     echo
1762
1763     cat <<\_ASBOX
1764 @%:@@%:@ ---------------- @%:@@%:@
1765 @%:@@%:@ Cache variables. @%:@@%:@
1766 @%:@@%:@ ---------------- @%:@@%:@
1767 _ASBOX
1768     echo
1769     # The following way of writing the cache mishandles newlines in values,
1770 (
1771   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1772     eval ac_val=\$$ac_var
1773     case $ac_val in #(
1774     *${as_nl}*)
1775       case $ac_var in #(
1776       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1777 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1778       esac
1779       case $ac_var in #(
1780       _ | IFS | as_nl) ;; #(
1781       *) $as_unset $ac_var ;;
1782       esac ;;
1783     esac
1784   done
1785   (set) 2>&1 |
1786     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1787     *${as_nl}ac_space=\ *)
1788       sed -n \
1789         "s/'\''/'\''\\\\'\'''\''/g;
1790           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1791       ;; #(
1792     *)
1793       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1794       ;;
1795     esac |
1796     sort
1797 )
1798     echo
1799
1800     cat <<\_ASBOX
1801 @%:@@%:@ ----------------- @%:@@%:@
1802 @%:@@%:@ Output variables. @%:@@%:@
1803 @%:@@%:@ ----------------- @%:@@%:@
1804 _ASBOX
1805     echo
1806     for ac_var in $ac_subst_vars
1807     do
1808       eval ac_val=\$$ac_var
1809       case $ac_val in
1810       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1811       esac
1812       echo "$ac_var='\''$ac_val'\''"
1813     done | sort
1814     echo
1815
1816     if test -n "$ac_subst_files"; then
1817       cat <<\_ASBOX
1818 @%:@@%:@ ------------------- @%:@@%:@
1819 @%:@@%:@ File substitutions. @%:@@%:@
1820 @%:@@%:@ ------------------- @%:@@%:@
1821 _ASBOX
1822       echo
1823       for ac_var in $ac_subst_files
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     fi
1833
1834     if test -s confdefs.h; then
1835       cat <<\_ASBOX
1836 @%:@@%:@ ----------- @%:@@%:@
1837 @%:@@%:@ confdefs.h. @%:@@%:@
1838 @%:@@%:@ ----------- @%:@@%:@
1839 _ASBOX
1840       echo
1841       cat confdefs.h
1842       echo
1843     fi
1844     test "$ac_signal" != 0 &&
1845       echo "$as_me: caught signal $ac_signal"
1846     echo "$as_me: exit $exit_status"
1847   } >&5
1848   rm -f core *.core core.conftest.* &&
1849     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1850     exit $exit_status
1851 ' 0
1852 for ac_signal in 1 2 13 15; do
1853   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1854 done
1855 ac_signal=0
1856
1857 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1858 rm -f -r conftest* confdefs.h
1859
1860 # Predefined preprocessor variables.
1861
1862 cat >>confdefs.h <<_ACEOF
1863 @%:@define PACKAGE_NAME "$PACKAGE_NAME"
1864 _ACEOF
1865
1866
1867 cat >>confdefs.h <<_ACEOF
1868 @%:@define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1869 _ACEOF
1870
1871
1872 cat >>confdefs.h <<_ACEOF
1873 @%:@define PACKAGE_VERSION "$PACKAGE_VERSION"
1874 _ACEOF
1875
1876
1877 cat >>confdefs.h <<_ACEOF
1878 @%:@define PACKAGE_STRING "$PACKAGE_STRING"
1879 _ACEOF
1880
1881
1882 cat >>confdefs.h <<_ACEOF
1883 @%:@define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1884 _ACEOF
1885
1886
1887 # Let the site file select an alternate cache file if it wants to.
1888 # Prefer explicitly selected file to automatically selected ones.
1889 if test -n "$CONFIG_SITE"; then
1890   set x "$CONFIG_SITE"
1891 elif test "x$prefix" != xNONE; then
1892   set x "$prefix/share/config.site" "$prefix/etc/config.site"
1893 else
1894   set x "$ac_default_prefix/share/config.site" \
1895         "$ac_default_prefix/etc/config.site"
1896 fi
1897 shift
1898 for ac_site_file
1899 do
1900   if test -r "$ac_site_file"; then
1901     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1902 echo "$as_me: loading site script $ac_site_file" >&6;}
1903     sed 's/^/| /' "$ac_site_file" >&5
1904     . "$ac_site_file"
1905   fi
1906 done
1907
1908 if test -r "$cache_file"; then
1909   # Some versions of bash will fail to source /dev/null (special
1910   # files actually), so we avoid doing that.
1911   if test -f "$cache_file"; then
1912     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1913 echo "$as_me: loading cache $cache_file" >&6;}
1914     case $cache_file in
1915       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1916       *)                      . "./$cache_file";;
1917     esac
1918   fi
1919 else
1920   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1921 echo "$as_me: creating cache $cache_file" >&6;}
1922   >$cache_file
1923 fi
1924
1925 # Check that the precious variables saved in the cache have kept the same
1926 # value.
1927 ac_cache_corrupted=false
1928 for ac_var in $ac_precious_vars; do
1929   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1930   eval ac_new_set=\$ac_env_${ac_var}_set
1931   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1932   eval ac_new_val=\$ac_env_${ac_var}_value
1933   case $ac_old_set,$ac_new_set in
1934     set,)
1935       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1936 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1937       ac_cache_corrupted=: ;;
1938     ,set)
1939       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1940 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1941       ac_cache_corrupted=: ;;
1942     ,);;
1943     *)
1944       if test "x$ac_old_val" != "x$ac_new_val"; then
1945         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1946 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1947         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1948 echo "$as_me:   former value:  $ac_old_val" >&2;}
1949         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1950 echo "$as_me:   current value: $ac_new_val" >&2;}
1951         ac_cache_corrupted=:
1952       fi;;
1953   esac
1954   # Pass precious variables to config.status.
1955   if test "$ac_new_set" = set; then
1956     case $ac_new_val in
1957     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1958     *) ac_arg=$ac_var=$ac_new_val ;;
1959     esac
1960     case " $ac_configure_args " in
1961       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1962       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1963     esac
1964   fi
1965 done
1966 if $ac_cache_corrupted; then
1967   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1968 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1969   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1970 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1971    { (exit 1); exit 1; }; }
1972 fi
1973
1974
1975
1976
1977
1978
1979
1980
1981
1982
1983
1984
1985
1986
1987
1988
1989
1990
1991
1992
1993
1994
1995
1996
1997
1998 ac_ext=c
1999 ac_cpp='$CPP $CPPFLAGS'
2000 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2001 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2002 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2003
2004
2005 ac_aux_dir=
2006 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2007   if test -f "$ac_dir/install-sh"; then
2008     ac_aux_dir=$ac_dir
2009     ac_install_sh="$ac_aux_dir/install-sh -c"
2010     break
2011   elif test -f "$ac_dir/install.sh"; then
2012     ac_aux_dir=$ac_dir
2013     ac_install_sh="$ac_aux_dir/install.sh -c"
2014     break
2015   elif test -f "$ac_dir/shtool"; then
2016     ac_aux_dir=$ac_dir
2017     ac_install_sh="$ac_aux_dir/shtool install -c"
2018     break
2019   fi
2020 done
2021 if test -z "$ac_aux_dir"; then
2022   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2023 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2024    { (exit 1); exit 1; }; }
2025 fi
2026
2027 # These three variables are undocumented and unsupported,
2028 # and are intended to be withdrawn in a future Autoconf release.
2029 # They can cause serious problems if a builder's source tree is in a directory
2030 # whose full name contains unusual characters.
2031 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2032 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2033 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2034
2035
2036 # Make sure we can run config.sub.
2037 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2038   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2039 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2040    { (exit 1); exit 1; }; }
2041
2042 { echo "$as_me:$LINENO: checking build system type" >&5
2043 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2044 if test "${ac_cv_build+set}" = set; then
2045   echo $ECHO_N "(cached) $ECHO_C" >&6
2046 else
2047   ac_build_alias=$build_alias
2048 test "x$ac_build_alias" = x &&
2049   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2050 test "x$ac_build_alias" = x &&
2051   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2052 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2053    { (exit 1); exit 1; }; }
2054 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2055   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2056 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2057    { (exit 1); exit 1; }; }
2058
2059 fi
2060 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2061 echo "${ECHO_T}$ac_cv_build" >&6; }
2062 case $ac_cv_build in
2063 *-*-*) ;;
2064 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2065 echo "$as_me: error: invalid value of canonical build" >&2;}
2066    { (exit 1); exit 1; }; };;
2067 esac
2068 build=$ac_cv_build
2069 ac_save_IFS=$IFS; IFS='-'
2070 set x $ac_cv_build
2071 shift
2072 build_cpu=$1
2073 build_vendor=$2
2074 shift; shift
2075 # Remember, the first character of IFS is used to create $*,
2076 # except with old shells:
2077 build_os=$*
2078 IFS=$ac_save_IFS
2079 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2080
2081
2082 { echo "$as_me:$LINENO: checking host system type" >&5
2083 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2084 if test "${ac_cv_host+set}" = set; then
2085   echo $ECHO_N "(cached) $ECHO_C" >&6
2086 else
2087   if test "x$host_alias" = x; then
2088   ac_cv_host=$ac_cv_build
2089 else
2090   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2091     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2092 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2093    { (exit 1); exit 1; }; }
2094 fi
2095
2096 fi
2097 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2098 echo "${ECHO_T}$ac_cv_host" >&6; }
2099 case $ac_cv_host in
2100 *-*-*) ;;
2101 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2102 echo "$as_me: error: invalid value of canonical host" >&2;}
2103    { (exit 1); exit 1; }; };;
2104 esac
2105 host=$ac_cv_host
2106 ac_save_IFS=$IFS; IFS='-'
2107 set x $ac_cv_host
2108 shift
2109 host_cpu=$1
2110 host_vendor=$2
2111 shift; shift
2112 # Remember, the first character of IFS is used to create $*,
2113 # except with old shells:
2114 host_os=$*
2115 IFS=$ac_save_IFS
2116 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2117
2118
2119
2120
2121 am__api_version="1.8"
2122 # Find a good install program.  We prefer a C program (faster),
2123 # so one script is as good as another.  But avoid the broken or
2124 # incompatible versions:
2125 # SysV /etc/install, /usr/sbin/install
2126 # SunOS /usr/etc/install
2127 # IRIX /sbin/install
2128 # AIX /bin/install
2129 # AmigaOS /C/install, which installs bootblocks on floppy discs
2130 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2131 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2132 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2133 # OS/2's system install, which has a completely different semantic
2134 # ./install, which can be erroneously created by make from ./install.sh.
2135 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2136 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
2137 if test -z "$INSTALL"; then
2138 if test "${ac_cv_path_install+set}" = set; then
2139   echo $ECHO_N "(cached) $ECHO_C" >&6
2140 else
2141   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2142 for as_dir in $PATH
2143 do
2144   IFS=$as_save_IFS
2145   test -z "$as_dir" && as_dir=.
2146   # Account for people who put trailing slashes in PATH elements.
2147 case $as_dir/ in
2148   ./ | .// | /cC/* | \
2149   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2150   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2151   /usr/ucb/* ) ;;
2152   *)
2153     # OSF1 and SCO ODT 3.0 have their own names for install.
2154     # Don't use installbsd from OSF since it installs stuff as root
2155     # by default.
2156     for ac_prog in ginstall scoinst install; do
2157       for ac_exec_ext in '' $ac_executable_extensions; do
2158         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2159           if test $ac_prog = install &&
2160             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2161             # AIX install.  It has an incompatible calling convention.
2162             :
2163           elif test $ac_prog = install &&
2164             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2165             # program-specific install script used by HP pwplus--don't use.
2166             :
2167           else
2168             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2169             break 3
2170           fi
2171         fi
2172       done
2173     done
2174     ;;
2175 esac
2176 done
2177 IFS=$as_save_IFS
2178
2179
2180 fi
2181   if test "${ac_cv_path_install+set}" = set; then
2182     INSTALL=$ac_cv_path_install
2183   else
2184     # As a last resort, use the slow shell script.  Don't cache a
2185     # value for INSTALL within a source directory, because that will
2186     # break other packages using the cache if that directory is
2187     # removed, or if the value is a relative name.
2188     INSTALL=$ac_install_sh
2189   fi
2190 fi
2191 { echo "$as_me:$LINENO: result: $INSTALL" >&5
2192 echo "${ECHO_T}$INSTALL" >&6; }
2193
2194 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2195 # It thinks the first close brace ends the variable substitution.
2196 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2197
2198 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2199
2200 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2201
2202 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2203 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2204 # Just in case
2205 sleep 1
2206 echo timestamp > conftest.file
2207 # Do `set' in a subshell so we don't clobber the current shell's
2208 # arguments.  Must try -L first in case configure is actually a
2209 # symlink; some systems play weird games with the mod time of symlinks
2210 # (eg FreeBSD returns the mod time of the symlink's containing
2211 # directory).
2212 if (
2213    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2214    if test "$*" = "X"; then
2215       # -L didn't work.
2216       set X `ls -t $srcdir/configure conftest.file`
2217    fi
2218    rm -f conftest.file
2219    if test "$*" != "X $srcdir/configure conftest.file" \
2220       && test "$*" != "X conftest.file $srcdir/configure"; then
2221
2222       # If neither matched, then we have a broken ls.  This can happen
2223       # if, for instance, CONFIG_SHELL is bash and it inherits a
2224       # broken ls alias from the environment.  This has actually
2225       # happened.  Such a system could not be considered "sane".
2226       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
2227 alias in your environment" >&5
2228 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
2229 alias in your environment" >&2;}
2230    { (exit 1); exit 1; }; }
2231    fi
2232
2233    test "$2" = conftest.file
2234    )
2235 then
2236    # Ok.
2237    :
2238 else
2239    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2240 Check your system clock" >&5
2241 echo "$as_me: error: newly created file is older than distributed files!
2242 Check your system clock" >&2;}
2243    { (exit 1); exit 1; }; }
2244 fi
2245 { echo "$as_me:$LINENO: result: yes" >&5
2246 echo "${ECHO_T}yes" >&6; }
2247 test "$program_prefix" != NONE &&
2248   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2249 # Use a double $ so make ignores it.
2250 test "$program_suffix" != NONE &&
2251   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2252 # Double any \ or $.  echo might interpret backslashes.
2253 # By default was `s,x,x', remove it if useless.
2254 cat <<\_ACEOF >conftest.sed
2255 s/[\\$]/&&/g;s/;s,x,x,$//
2256 _ACEOF
2257 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2258 rm -f conftest.sed
2259
2260 # expand $ac_aux_dir to an absolute path
2261 am_aux_dir=`cd $ac_aux_dir && pwd`
2262
2263 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2264 # Use eval to expand $SHELL
2265 if eval "$MISSING --run true"; then
2266   am_missing_run="$MISSING --run "
2267 else
2268   am_missing_run=
2269   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2270 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2271 fi
2272
2273 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
2274   # Keeping the `.' argument allows $(mkdir_p) to be used without
2275   # argument.  Indeed, we sometimes output rules like
2276   #   $(mkdir_p) $(somedir)
2277   # where $(somedir) is conditionally defined.
2278   # (`test -n '$(somedir)' && $(mkdir_p) $(somedir)' is a more
2279   # expensive solution, as it forces Make to start a sub-shell.)
2280   mkdir_p='mkdir -p -- .'
2281 else
2282   # On NextStep and OpenStep, the `mkdir' command does not
2283   # recognize any option.  It will interpret all options as
2284   # directories to create, and then abort because `.' already
2285   # exists.
2286   for d in ./-p ./--version;
2287   do
2288     test -d $d && rmdir $d
2289   done
2290   # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2291   if test -f "$ac_aux_dir/mkinstalldirs"; then
2292     mkdir_p='$(mkinstalldirs)'
2293   else
2294     mkdir_p='$(install_sh) -d'
2295   fi
2296 fi
2297
2298 for ac_prog in gawk mawk nawk awk
2299 do
2300   # Extract the first word of "$ac_prog", so it can be a program name with args.
2301 set dummy $ac_prog; ac_word=$2
2302 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2303 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2304 if test "${ac_cv_prog_AWK+set}" = set; then
2305   echo $ECHO_N "(cached) $ECHO_C" >&6
2306 else
2307   if test -n "$AWK"; then
2308   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2309 else
2310 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2311 for as_dir in $PATH
2312 do
2313   IFS=$as_save_IFS
2314   test -z "$as_dir" && as_dir=.
2315   for ac_exec_ext in '' $ac_executable_extensions; do
2316   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2317     ac_cv_prog_AWK="$ac_prog"
2318     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2319     break 2
2320   fi
2321 done
2322 done
2323 IFS=$as_save_IFS
2324
2325 fi
2326 fi
2327 AWK=$ac_cv_prog_AWK
2328 if test -n "$AWK"; then
2329   { echo "$as_me:$LINENO: result: $AWK" >&5
2330 echo "${ECHO_T}$AWK" >&6; }
2331 else
2332   { echo "$as_me:$LINENO: result: no" >&5
2333 echo "${ECHO_T}no" >&6; }
2334 fi
2335
2336
2337   test -n "$AWK" && break
2338 done
2339
2340 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2341 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2342 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2343 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2344   echo $ECHO_N "(cached) $ECHO_C" >&6
2345 else
2346   cat >conftest.make <<\_ACEOF
2347 SHELL = /bin/sh
2348 all:
2349         @echo '@@@%%%=$(MAKE)=@@@%%%'
2350 _ACEOF
2351 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2352 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2353   *@@@%%%=?*=@@@%%%*)
2354     eval ac_cv_prog_make_${ac_make}_set=yes;;
2355   *)
2356     eval ac_cv_prog_make_${ac_make}_set=no;;
2357 esac
2358 rm -f conftest.make
2359 fi
2360 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2361   { echo "$as_me:$LINENO: result: yes" >&5
2362 echo "${ECHO_T}yes" >&6; }
2363   SET_MAKE=
2364 else
2365   { echo "$as_me:$LINENO: result: no" >&5
2366 echo "${ECHO_T}no" >&6; }
2367   SET_MAKE="MAKE=${MAKE-make}"
2368 fi
2369
2370 rm -rf .tst 2>/dev/null
2371 mkdir .tst 2>/dev/null
2372 if test -d .tst; then
2373   am__leading_dot=.
2374 else
2375   am__leading_dot=_
2376 fi
2377 rmdir .tst 2>/dev/null
2378
2379 # test to see if srcdir already configured
2380 if test "`cd $srcdir && pwd`" != "`pwd`" &&
2381    test -f $srcdir/config.status; then
2382   { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2383 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2384    { (exit 1); exit 1; }; }
2385 fi
2386
2387 # test whether we have cygpath
2388 if test -z "$CYGPATH_W"; then
2389   if (cygpath --version) >/dev/null 2>/dev/null; then
2390     CYGPATH_W='cygpath -w'
2391   else
2392     CYGPATH_W=echo
2393   fi
2394 fi
2395
2396
2397 # Define the identity of the package.
2398  PACKAGE='nfs-utils'
2399  VERSION='1.0.10'
2400
2401
2402 cat >>confdefs.h <<_ACEOF
2403 @%:@define PACKAGE "$PACKAGE"
2404 _ACEOF
2405
2406  
2407 cat >>confdefs.h <<_ACEOF
2408 @%:@define VERSION "$VERSION"
2409 _ACEOF
2410
2411 # Some tools Automake needs.
2412
2413 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2414
2415
2416 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2417
2418
2419 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2420
2421
2422 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2423
2424
2425 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2426
2427
2428 AMTAR=${AMTAR-"${am_missing_run}tar"}
2429
2430 install_sh=${install_sh-"$am_aux_dir/install-sh"}
2431
2432 # Installed binaries are usually stripped using `strip' when the user
2433 # run `make install-strip'.  However `strip' might not be the right
2434 # tool to use in cross-compilation environments, therefore Automake
2435 # will honor the `STRIP' environment variable to overrule this program.
2436 if test "$cross_compiling" != no; then
2437   if test -n "$ac_tool_prefix"; then
2438   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2439 set dummy ${ac_tool_prefix}strip; ac_word=$2
2440 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2441 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2442 if test "${ac_cv_prog_STRIP+set}" = set; then
2443   echo $ECHO_N "(cached) $ECHO_C" >&6
2444 else
2445   if test -n "$STRIP"; then
2446   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2447 else
2448 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2449 for as_dir in $PATH
2450 do
2451   IFS=$as_save_IFS
2452   test -z "$as_dir" && as_dir=.
2453   for ac_exec_ext in '' $ac_executable_extensions; do
2454   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2455     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2456     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2457     break 2
2458   fi
2459 done
2460 done
2461 IFS=$as_save_IFS
2462
2463 fi
2464 fi
2465 STRIP=$ac_cv_prog_STRIP
2466 if test -n "$STRIP"; then
2467   { echo "$as_me:$LINENO: result: $STRIP" >&5
2468 echo "${ECHO_T}$STRIP" >&6; }
2469 else
2470   { echo "$as_me:$LINENO: result: no" >&5
2471 echo "${ECHO_T}no" >&6; }
2472 fi
2473
2474
2475 fi
2476 if test -z "$ac_cv_prog_STRIP"; then
2477   ac_ct_STRIP=$STRIP
2478   # Extract the first word of "strip", so it can be a program name with args.
2479 set dummy strip; ac_word=$2
2480 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2481 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2482 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2483   echo $ECHO_N "(cached) $ECHO_C" >&6
2484 else
2485   if test -n "$ac_ct_STRIP"; then
2486   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2487 else
2488 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2489 for as_dir in $PATH
2490 do
2491   IFS=$as_save_IFS
2492   test -z "$as_dir" && as_dir=.
2493   for ac_exec_ext in '' $ac_executable_extensions; do
2494   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2495     ac_cv_prog_ac_ct_STRIP="strip"
2496     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2497     break 2
2498   fi
2499 done
2500 done
2501 IFS=$as_save_IFS
2502
2503 fi
2504 fi
2505 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2506 if test -n "$ac_ct_STRIP"; then
2507   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2508 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2509 else
2510   { echo "$as_me:$LINENO: result: no" >&5
2511 echo "${ECHO_T}no" >&6; }
2512 fi
2513
2514   if test "x$ac_ct_STRIP" = x; then
2515     STRIP=":"
2516   else
2517     case $cross_compiling:$ac_tool_warned in
2518 yes:)
2519 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2520 whose name does not start with the host triplet.  If you think this
2521 configuration is useful to you, please write to autoconf@gnu.org." >&5
2522 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2523 whose name does not start with the host triplet.  If you think this
2524 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2525 ac_tool_warned=yes ;;
2526 esac
2527     STRIP=$ac_ct_STRIP
2528   fi
2529 else
2530   STRIP="$ac_cv_prog_STRIP"
2531 fi
2532
2533 fi
2534 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2535
2536 # We need awk for the "check" target.  The system "awk" is bad on
2537 # some platforms.
2538
2539
2540
2541
2542
2543
2544
2545 # Check whether --with-release was given.
2546 if test "${with_release+set}" = set; then
2547   withval=$with_release; RELEASE=$withval
2548 else
2549   RELEASE=1
2550 fi
2551
2552         
2553
2554 # Check whether --with-statedir was given.
2555 if test "${with_statedir+set}" = set; then
2556   withval=$with_statedir; statedir=$withval
2557 else
2558   statedir=/var/lib/nfs
2559 fi
2560
2561         
2562
2563 # Check whether --with-statduser was given.
2564 if test "${with_statduser+set}" = set; then
2565   withval=$with_statduser; statduser=$withval
2566 else
2567   if test "x$cross_compiling" = "xno"; then
2568                 if grep -s '^rpcuser:' /etc/passwd > /dev/null; then
2569                         statduser=rpcuser
2570                 else
2571                         statduser=nobody
2572                 fi
2573         else
2574                 statduser=nobody
2575         fi
2576 fi
2577
2578         
2579 # Check whether --enable-nfsv3 was given.
2580 if test "${enable_nfsv3+set}" = set; then
2581   enableval=$enable_nfsv3; enable_nfsv3=$enableval
2582 else
2583   enable_nfsv3=yes
2584 fi
2585
2586         if test "$enable_nfsv3" = yes; then
2587                 
2588 cat >>confdefs.h <<\_ACEOF
2589 @%:@define NFS3_SUPPORTED 1
2590 _ACEOF
2591
2592         else
2593                 enable_nfsv3=
2594         fi
2595         
2596 # Check whether --enable-nfsv4 was given.
2597 if test "${enable_nfsv4+set}" = set; then
2598   enableval=$enable_nfsv4; enable_nfsv4=$enableval
2599 else
2600   enable_nfsv4=yes
2601 fi
2602
2603         if test "$enable_nfsv4" = yes; then
2604                 
2605 cat >>confdefs.h <<\_ACEOF
2606 @%:@define NFS4_SUPPORTED 1
2607 _ACEOF
2608
2609                 IDMAPD=idmapd
2610         else
2611                 enable_nfsv4=
2612                 IDMAPD=
2613         fi
2614         
2615         
2616          
2617
2618 if test "$enable_nfsv4" = "yes"; then
2619   CONFIG_NFSV4_TRUE=
2620   CONFIG_NFSV4_FALSE='#'
2621 else
2622   CONFIG_NFSV4_TRUE='#'
2623   CONFIG_NFSV4_FALSE=
2624 fi
2625
2626 # Check whether --enable-gss was given.
2627 if test "${enable_gss+set}" = set; then
2628   enableval=$enable_gss; enable_gss=$enableval
2629 else
2630   enable_gss=yes
2631 fi
2632
2633         if test "$enable_gss" = yes; then
2634                 
2635 cat >>confdefs.h <<\_ACEOF
2636 @%:@define GSS_SUPPORTED 1
2637 _ACEOF
2638
2639                 GSSD=gssd
2640                 SVCGSSD=svcgssd
2641         else
2642                 enable_gss=
2643                 GSSD=
2644                 SVCGSSD=
2645         fi
2646         
2647         
2648         
2649          
2650
2651 if test "$enable_gss" = "yes"; then
2652   CONFIG_GSS_TRUE=
2653   CONFIG_GSS_FALSE='#'
2654 else
2655   CONFIG_GSS_TRUE='#'
2656   CONFIG_GSS_FALSE=
2657 fi
2658
2659 # Check whether --enable-kprefix was given.
2660 if test "${enable_kprefix+set}" = set; then
2661   enableval=$enable_kprefix; test "$enableval" = "yes" && kprefix=k
2662 else
2663   kprefix=
2664 fi
2665
2666         
2667 # Check whether --enable-secure-statd was given.
2668 if test "${enable_secure_statd+set}" = set; then
2669   enableval=$enable_secure_statd; test "$enableval" = "yes" && secure_statd=yes
2670 else
2671   secure_statd=no
2672 fi
2673
2674         if test "$secure_statd" = yes; then
2675                 
2676 cat >>confdefs.h <<\_ACEOF
2677 @%:@define RESTRICTED_STATD 1
2678 _ACEOF
2679
2680         fi
2681         
2682 # Check whether --enable-rquotad was given.
2683 if test "${enable_rquotad+set}" = set; then
2684   enableval=$enable_rquotad; enable_rquotad=$enableval
2685 else
2686   enable_rquotad=yes
2687 fi
2688
2689         if test "$enable_rquotad" = yes; then
2690                 RQUOTAD=rquotad
2691         else
2692                 RQUOTAD=
2693         fi
2694          
2695
2696 if test "$enable_rquotad" = "yes"; then
2697   CONFIG_RQUOTAD_TRUE=
2698   CONFIG_RQUOTAD_FALSE='#'
2699 else
2700   CONFIG_RQUOTAD_TRUE='#'
2701   CONFIG_RQUOTAD_FALSE=
2702 fi
2703
2704
2705 # Check whether --enable-mount was given.
2706 if test "${enable_mount+set}" = set; then
2707   enableval=$enable_mount; enable_mount=$enableval
2708 else
2709   enable_mount=no
2710 fi
2711
2712          
2713
2714 if test "$enable_mount" = "yes"; then
2715   CONFIG_MOUNT_TRUE=
2716   CONFIG_MOUNT_FALSE='#'
2717 else
2718   CONFIG_MOUNT_TRUE='#'
2719   CONFIG_MOUNT_FALSE=
2720 fi
2721
2722
2723 # Check whether user wants TCP wrappers support
2724 DEPDIR="${am__leading_dot}deps"
2725
2726 ac_config_commands="$ac_config_commands depfiles"
2727
2728
2729 am_make=${MAKE-make}
2730 cat > confinc << 'END'
2731 am__doit:
2732         @echo done
2733 .PHONY: am__doit
2734 END
2735 # If we don't find an include directive, just comment out the code.
2736 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2737 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
2738 am__include="#"
2739 am__quote=
2740 _am_result=none
2741 # First try GNU make style include.
2742 echo "include confinc" > confmf
2743 # We grep out `Entering directory' and `Leaving directory'
2744 # messages which can occur if `w' ends up in MAKEFLAGS.
2745 # In particular we don't look at `^make:' because GNU make might
2746 # be invoked under some other name (usually "gmake"), in which
2747 # case it prints its new name instead of `make'.
2748 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2749    am__include=include
2750    am__quote=
2751    _am_result=GNU
2752 fi
2753 # Now try BSD make style include.
2754 if test "$am__include" = "#"; then
2755    echo '.include "confinc"' > confmf
2756    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2757       am__include=.include
2758       am__quote="\""
2759       _am_result=BSD
2760    fi
2761 fi
2762
2763
2764 { echo "$as_me:$LINENO: result: $_am_result" >&5
2765 echo "${ECHO_T}$_am_result" >&6; }
2766 rm -f confinc confmf
2767
2768 # Check whether --enable-dependency-tracking was given.
2769 if test "${enable_dependency_tracking+set}" = set; then
2770   enableval=$enable_dependency_tracking; 
2771 fi
2772
2773 if test "x$enable_dependency_tracking" != xno; then
2774   am_depcomp="$ac_aux_dir/depcomp"
2775   AMDEPBACKSLASH='\'
2776 fi
2777  
2778
2779 if test "x$enable_dependency_tracking" != xno; then
2780   AMDEP_TRUE=
2781   AMDEP_FALSE='#'
2782 else
2783   AMDEP_TRUE='#'
2784   AMDEP_FALSE=
2785 fi
2786
2787
2788
2789 ac_ext=c
2790 ac_cpp='$CPP $CPPFLAGS'
2791 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2792 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2793 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2794 if test -n "$ac_tool_prefix"; then
2795   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2796 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2797 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2798 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2799 if test "${ac_cv_prog_CC+set}" = set; then
2800   echo $ECHO_N "(cached) $ECHO_C" >&6
2801 else
2802   if test -n "$CC"; then
2803   ac_cv_prog_CC="$CC" # Let the user override the test.
2804 else
2805 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2806 for as_dir in $PATH
2807 do
2808   IFS=$as_save_IFS
2809   test -z "$as_dir" && as_dir=.
2810   for ac_exec_ext in '' $ac_executable_extensions; do
2811   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2812     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2813     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2814     break 2
2815   fi
2816 done
2817 done
2818 IFS=$as_save_IFS
2819
2820 fi
2821 fi
2822 CC=$ac_cv_prog_CC
2823 if test -n "$CC"; then
2824   { echo "$as_me:$LINENO: result: $CC" >&5
2825 echo "${ECHO_T}$CC" >&6; }
2826 else
2827   { echo "$as_me:$LINENO: result: no" >&5
2828 echo "${ECHO_T}no" >&6; }
2829 fi
2830
2831
2832 fi
2833 if test -z "$ac_cv_prog_CC"; then
2834   ac_ct_CC=$CC
2835   # Extract the first word of "gcc", so it can be a program name with args.
2836 set dummy gcc; ac_word=$2
2837 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2838 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2839 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2840   echo $ECHO_N "(cached) $ECHO_C" >&6
2841 else
2842   if test -n "$ac_ct_CC"; then
2843   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2844 else
2845 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2846 for as_dir in $PATH
2847 do
2848   IFS=$as_save_IFS
2849   test -z "$as_dir" && as_dir=.
2850   for ac_exec_ext in '' $ac_executable_extensions; do
2851   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2852     ac_cv_prog_ac_ct_CC="gcc"
2853     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2854     break 2
2855   fi
2856 done
2857 done
2858 IFS=$as_save_IFS
2859
2860 fi
2861 fi
2862 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2863 if test -n "$ac_ct_CC"; then
2864   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2865 echo "${ECHO_T}$ac_ct_CC" >&6; }
2866 else
2867   { echo "$as_me:$LINENO: result: no" >&5
2868 echo "${ECHO_T}no" >&6; }
2869 fi
2870
2871   if test "x$ac_ct_CC" = x; then
2872     CC=""
2873   else
2874     case $cross_compiling:$ac_tool_warned in
2875 yes:)
2876 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2877 whose name does not start with the host triplet.  If you think this
2878 configuration is useful to you, please write to autoconf@gnu.org." >&5
2879 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2880 whose name does not start with the host triplet.  If you think this
2881 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2882 ac_tool_warned=yes ;;
2883 esac
2884     CC=$ac_ct_CC
2885   fi
2886 else
2887   CC="$ac_cv_prog_CC"
2888 fi
2889
2890 if test -z "$CC"; then
2891           if test -n "$ac_tool_prefix"; then
2892     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2893 set dummy ${ac_tool_prefix}cc; ac_word=$2
2894 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2895 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2896 if test "${ac_cv_prog_CC+set}" = set; then
2897   echo $ECHO_N "(cached) $ECHO_C" >&6
2898 else
2899   if test -n "$CC"; then
2900   ac_cv_prog_CC="$CC" # Let the user override the test.
2901 else
2902 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2903 for as_dir in $PATH
2904 do
2905   IFS=$as_save_IFS
2906   test -z "$as_dir" && as_dir=.
2907   for ac_exec_ext in '' $ac_executable_extensions; do
2908   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2909     ac_cv_prog_CC="${ac_tool_prefix}cc"
2910     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2911     break 2
2912   fi
2913 done
2914 done
2915 IFS=$as_save_IFS
2916
2917 fi
2918 fi
2919 CC=$ac_cv_prog_CC
2920 if test -n "$CC"; then
2921   { echo "$as_me:$LINENO: result: $CC" >&5
2922 echo "${ECHO_T}$CC" >&6; }
2923 else
2924   { echo "$as_me:$LINENO: result: no" >&5
2925 echo "${ECHO_T}no" >&6; }
2926 fi
2927
2928
2929   fi
2930 fi
2931 if test -z "$CC"; then
2932   # Extract the first word of "cc", so it can be a program name with args.
2933 set dummy cc; ac_word=$2
2934 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2935 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2936 if test "${ac_cv_prog_CC+set}" = set; then
2937   echo $ECHO_N "(cached) $ECHO_C" >&6
2938 else
2939   if test -n "$CC"; then
2940   ac_cv_prog_CC="$CC" # Let the user override the test.
2941 else
2942   ac_prog_rejected=no
2943 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2944 for as_dir in $PATH
2945 do
2946   IFS=$as_save_IFS
2947   test -z "$as_dir" && as_dir=.
2948   for ac_exec_ext in '' $ac_executable_extensions; do
2949   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2950     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2951        ac_prog_rejected=yes
2952        continue
2953      fi
2954     ac_cv_prog_CC="cc"
2955     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2956     break 2
2957   fi
2958 done
2959 done
2960 IFS=$as_save_IFS
2961
2962 if test $ac_prog_rejected = yes; then
2963   # We found a bogon in the path, so make sure we never use it.
2964   set dummy $ac_cv_prog_CC
2965   shift
2966   if test $@%:@ != 0; then
2967     # We chose a different compiler from the bogus one.
2968     # However, it has the same basename, so the bogon will be chosen
2969     # first if we set CC to just the basename; use the full file name.
2970     shift
2971     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2972   fi
2973 fi
2974 fi
2975 fi
2976 CC=$ac_cv_prog_CC
2977 if test -n "$CC"; then
2978   { echo "$as_me:$LINENO: result: $CC" >&5
2979 echo "${ECHO_T}$CC" >&6; }
2980 else
2981   { echo "$as_me:$LINENO: result: no" >&5
2982 echo "${ECHO_T}no" >&6; }
2983 fi
2984
2985
2986 fi
2987 if test -z "$CC"; then
2988   if test -n "$ac_tool_prefix"; then
2989   for ac_prog in cl.exe
2990   do
2991     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2992 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2993 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2994 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2995 if test "${ac_cv_prog_CC+set}" = set; then
2996   echo $ECHO_N "(cached) $ECHO_C" >&6
2997 else
2998   if test -n "$CC"; then
2999   ac_cv_prog_CC="$CC" # Let the user override the test.
3000 else
3001 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3002 for as_dir in $PATH
3003 do
3004   IFS=$as_save_IFS
3005   test -z "$as_dir" && as_dir=.
3006   for ac_exec_ext in '' $ac_executable_extensions; do
3007   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3008     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3009     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3010     break 2
3011   fi
3012 done
3013 done
3014 IFS=$as_save_IFS
3015
3016 fi
3017 fi
3018 CC=$ac_cv_prog_CC
3019 if test -n "$CC"; then
3020   { echo "$as_me:$LINENO: result: $CC" >&5
3021 echo "${ECHO_T}$CC" >&6; }
3022 else
3023   { echo "$as_me:$LINENO: result: no" >&5
3024 echo "${ECHO_T}no" >&6; }
3025 fi
3026
3027
3028     test -n "$CC" && break
3029   done
3030 fi
3031 if test -z "$CC"; then
3032   ac_ct_CC=$CC
3033   for ac_prog in cl.exe
3034 do
3035   # Extract the first word of "$ac_prog", so it can be a program name with args.
3036 set dummy $ac_prog; ac_word=$2
3037 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3038 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3039 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3040   echo $ECHO_N "(cached) $ECHO_C" >&6
3041 else
3042   if test -n "$ac_ct_CC"; then
3043   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3044 else
3045 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3046 for as_dir in $PATH
3047 do
3048   IFS=$as_save_IFS
3049   test -z "$as_dir" && as_dir=.
3050   for ac_exec_ext in '' $ac_executable_extensions; do
3051   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3052     ac_cv_prog_ac_ct_CC="$ac_prog"
3053     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3054     break 2
3055   fi
3056 done
3057 done
3058 IFS=$as_save_IFS
3059
3060 fi
3061 fi
3062 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3063 if test -n "$ac_ct_CC"; then
3064   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3065 echo "${ECHO_T}$ac_ct_CC" >&6; }
3066 else
3067   { echo "$as_me:$LINENO: result: no" >&5
3068 echo "${ECHO_T}no" >&6; }
3069 fi
3070
3071
3072   test -n "$ac_ct_CC" && break
3073 done
3074
3075   if test "x$ac_ct_CC" = x; then
3076     CC=""
3077   else
3078     case $cross_compiling:$ac_tool_warned in
3079 yes:)
3080 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3081 whose name does not start with the host triplet.  If you think this
3082 configuration is useful to you, please write to autoconf@gnu.org." >&5
3083 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3084 whose name does not start with the host triplet.  If you think this
3085 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3086 ac_tool_warned=yes ;;
3087 esac
3088     CC=$ac_ct_CC
3089   fi
3090 fi
3091
3092 fi
3093
3094
3095 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3096 See \`config.log' for more details." >&5
3097 echo "$as_me: error: no acceptable C compiler found in \$PATH
3098 See \`config.log' for more details." >&2;}
3099    { (exit 1); exit 1; }; }
3100
3101 # Provide some information about the compiler.
3102 echo "$as_me:$LINENO: checking for C compiler version" >&5
3103 ac_compiler=`set X $ac_compile; echo $2`
3104 { (ac_try="$ac_compiler --version >&5"
3105 case "(($ac_try" in
3106   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3107   *) ac_try_echo=$ac_try;;
3108 esac
3109 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3110   (eval "$ac_compiler --version >&5") 2>&5
3111   ac_status=$?
3112   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3113   (exit $ac_status); }
3114 { (ac_try="$ac_compiler -v >&5"
3115 case "(($ac_try" in
3116   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3117   *) ac_try_echo=$ac_try;;
3118 esac
3119 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3120   (eval "$ac_compiler -v >&5") 2>&5
3121   ac_status=$?
3122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3123   (exit $ac_status); }
3124 { (ac_try="$ac_compiler -V >&5"
3125 case "(($ac_try" in
3126   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3127   *) ac_try_echo=$ac_try;;
3128 esac
3129 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3130   (eval "$ac_compiler -V >&5") 2>&5
3131   ac_status=$?
3132   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3133   (exit $ac_status); }
3134
3135 cat >conftest.$ac_ext <<_ACEOF
3136 /* confdefs.h.  */
3137 _ACEOF
3138 cat confdefs.h >>conftest.$ac_ext
3139 cat >>conftest.$ac_ext <<_ACEOF
3140 /* end confdefs.h.  */
3141
3142 int
3143 main ()
3144 {
3145
3146   ;
3147   return 0;
3148 }
3149 _ACEOF
3150 ac_clean_files_save=$ac_clean_files
3151 ac_clean_files="$ac_clean_files a.out a.exe b.out"
3152 # Try to create an executable without -o first, disregard a.out.
3153 # It will help us diagnose broken compilers, and finding out an intuition
3154 # of exeext.
3155 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3156 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
3157 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3158 #
3159 # List of possible output files, starting from the most likely.
3160 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
3161 # only as a last resort.  b.out is created by i960 compilers.
3162 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
3163 #
3164 # The IRIX 6 linker writes into existing files which may not be
3165 # executable, retaining their permissions.  Remove them first so a
3166 # subsequent execution test works.
3167 ac_rmfiles=
3168 for ac_file in $ac_files
3169 do
3170   case $ac_file in
3171     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3172     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3173   esac
3174 done
3175 rm -f $ac_rmfiles
3176
3177 if { (ac_try="$ac_link_default"
3178 case "(($ac_try" in
3179   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3180   *) ac_try_echo=$ac_try;;
3181 esac
3182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3183   (eval "$ac_link_default") 2>&5
3184   ac_status=$?
3185   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3186   (exit $ac_status); }; then
3187   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3188 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3189 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3190 # so that the user can short-circuit this test for compilers unknown to
3191 # Autoconf.
3192 for ac_file in $ac_files ''
3193 do
3194   test -f "$ac_file" || continue
3195   case $ac_file in
3196     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
3197         ;;
3198     [ab].out )
3199         # We found the default executable, but exeext='' is most
3200         # certainly right.
3201         break;;
3202     *.* )
3203         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3204         then :; else
3205            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3206         fi
3207         # We set ac_cv_exeext here because the later test for it is not
3208         # safe: cross compilers may not add the suffix if given an `-o'
3209         # argument, so we may need to know it at that point already.
3210         # Even if this section looks crufty: it has the advantage of
3211         # actually working.
3212         break;;
3213     * )
3214         break;;
3215   esac
3216 done
3217 test "$ac_cv_exeext" = no && ac_cv_exeext=
3218
3219 else
3220   ac_file=''
3221 fi
3222
3223 { echo "$as_me:$LINENO: result: $ac_file" >&5
3224 echo "${ECHO_T}$ac_file" >&6; }
3225 if test -z "$ac_file"; then
3226   echo "$as_me: failed program was:" >&5
3227 sed 's/^/| /' conftest.$ac_ext >&5
3228
3229 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3230 See \`config.log' for more details." >&5
3231 echo "$as_me: error: C compiler cannot create executables
3232 See \`config.log' for more details." >&2;}
3233    { (exit 77); exit 77; }; }
3234 fi
3235
3236 ac_exeext=$ac_cv_exeext
3237
3238 # Check that the compiler produces executables we can run.  If not, either
3239 # the compiler is broken, or we cross compile.
3240 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3241 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3242 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3243 # If not cross compiling, check that we can run a simple program.
3244 if test "$cross_compiling" != yes; then
3245   if { ac_try='./$ac_file'
3246   { (case "(($ac_try" in
3247   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3248   *) ac_try_echo=$ac_try;;
3249 esac
3250 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3251   (eval "$ac_try") 2>&5
3252   ac_status=$?
3253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3254   (exit $ac_status); }; }; then
3255     cross_compiling=no
3256   else
3257     if test "$cross_compiling" = maybe; then
3258         cross_compiling=yes
3259     else
3260         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3261 If you meant to cross compile, use \`--host'.
3262 See \`config.log' for more details." >&5
3263 echo "$as_me: error: cannot run C compiled programs.
3264 If you meant to cross compile, use \`--host'.
3265 See \`config.log' for more details." >&2;}
3266    { (exit 1); exit 1; }; }
3267     fi
3268   fi
3269 fi
3270 { echo "$as_me:$LINENO: result: yes" >&5
3271 echo "${ECHO_T}yes" >&6; }
3272
3273 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3274 ac_clean_files=$ac_clean_files_save
3275 # Check that the compiler produces executables we can run.  If not, either
3276 # the compiler is broken, or we cross compile.
3277 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3278 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3279 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
3280 echo "${ECHO_T}$cross_compiling" >&6; }
3281
3282 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
3283 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3284 if { (ac_try="$ac_link"
3285 case "(($ac_try" in
3286   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3287   *) ac_try_echo=$ac_try;;
3288 esac
3289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3290   (eval "$ac_link") 2>&5
3291   ac_status=$?
3292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3293   (exit $ac_status); }; then
3294   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3295 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3296 # work properly (i.e., refer to `conftest.exe'), while it won't with
3297 # `rm'.
3298 for ac_file in conftest.exe conftest conftest.*; do
3299   test -f "$ac_file" || continue
3300   case $ac_file in
3301     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3302     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3303           break;;
3304     * ) break;;
3305   esac
3306 done
3307 else
3308   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3309 See \`config.log' for more details." >&5
3310 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3311 See \`config.log' for more details." >&2;}
3312    { (exit 1); exit 1; }; }
3313 fi
3314
3315 rm -f conftest$ac_cv_exeext
3316 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3317 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3318
3319 rm -f conftest.$ac_ext
3320 EXEEXT=$ac_cv_exeext
3321 ac_exeext=$EXEEXT
3322 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3323 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3324 if test "${ac_cv_objext+set}" = set; then
3325   echo $ECHO_N "(cached) $ECHO_C" >&6
3326 else
3327   cat >conftest.$ac_ext <<_ACEOF
3328 /* confdefs.h.  */
3329 _ACEOF
3330 cat confdefs.h >>conftest.$ac_ext
3331 cat >>conftest.$ac_ext <<_ACEOF
3332 /* end confdefs.h.  */
3333
3334 int
3335 main ()
3336 {
3337
3338   ;
3339   return 0;
3340 }
3341 _ACEOF
3342 rm -f conftest.o conftest.obj
3343 if { (ac_try="$ac_compile"
3344 case "(($ac_try" in
3345   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3346   *) ac_try_echo=$ac_try;;
3347 esac
3348 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3349   (eval "$ac_compile") 2>&5
3350   ac_status=$?
3351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3352   (exit $ac_status); }; then
3353   for ac_file in conftest.o conftest.obj conftest.*; do
3354   test -f "$ac_file" || continue;
3355   case $ac_file in
3356     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3357     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3358        break;;
3359   esac
3360 done
3361 else
3362   echo "$as_me: failed program was:" >&5
3363 sed 's/^/| /' conftest.$ac_ext >&5
3364
3365 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3366 See \`config.log' for more details." >&5
3367 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3368 See \`config.log' for more details." >&2;}
3369    { (exit 1); exit 1; }; }
3370 fi
3371
3372 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3373 fi
3374 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3375 echo "${ECHO_T}$ac_cv_objext" >&6; }
3376 OBJEXT=$ac_cv_objext
3377 ac_objext=$OBJEXT
3378 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3379 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3380 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3381   echo $ECHO_N "(cached) $ECHO_C" >&6
3382 else
3383   cat >conftest.$ac_ext <<_ACEOF
3384 /* confdefs.h.  */
3385 _ACEOF
3386 cat confdefs.h >>conftest.$ac_ext
3387 cat >>conftest.$ac_ext <<_ACEOF
3388 /* end confdefs.h.  */
3389
3390 int
3391 main ()
3392 {
3393 #ifndef __GNUC__
3394        choke me
3395 #endif
3396
3397   ;
3398   return 0;
3399 }
3400 _ACEOF
3401 rm -f conftest.$ac_objext
3402 if { (ac_try="$ac_compile"
3403 case "(($ac_try" in
3404   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3405   *) ac_try_echo=$ac_try;;
3406 esac
3407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3408   (eval "$ac_compile") 2>conftest.er1
3409   ac_status=$?
3410   grep -v '^ *+' conftest.er1 >conftest.err
3411   rm -f conftest.er1
3412   cat conftest.err >&5
3413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3414   (exit $ac_status); } && {
3415          test -z "$ac_c_werror_flag" ||
3416          test ! -s conftest.err
3417        } && test -s conftest.$ac_objext; then
3418   ac_compiler_gnu=yes
3419 else
3420   echo "$as_me: failed program was:" >&5
3421 sed 's/^/| /' conftest.$ac_ext >&5
3422
3423         ac_compiler_gnu=no
3424 fi
3425
3426 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3427 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3428
3429 fi
3430 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3431 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3432 GCC=`test $ac_compiler_gnu = yes && echo yes`
3433 ac_test_CFLAGS=${CFLAGS+set}
3434 ac_save_CFLAGS=$CFLAGS
3435 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3436 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3437 if test "${ac_cv_prog_cc_g+set}" = set; then
3438   echo $ECHO_N "(cached) $ECHO_C" >&6
3439 else
3440   ac_save_c_werror_flag=$ac_c_werror_flag
3441    ac_c_werror_flag=yes
3442    ac_cv_prog_cc_g=no
3443    CFLAGS="-g"
3444    cat >conftest.$ac_ext <<_ACEOF
3445 /* confdefs.h.  */
3446 _ACEOF
3447 cat confdefs.h >>conftest.$ac_ext
3448 cat >>conftest.$ac_ext <<_ACEOF
3449 /* end confdefs.h.  */
3450
3451 int
3452 main ()
3453 {
3454
3455   ;
3456   return 0;
3457 }
3458 _ACEOF
3459 rm -f conftest.$ac_objext
3460 if { (ac_try="$ac_compile"
3461 case "(($ac_try" in
3462   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3463   *) ac_try_echo=$ac_try;;
3464 esac
3465 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3466   (eval "$ac_compile") 2>conftest.er1
3467   ac_status=$?
3468   grep -v '^ *+' conftest.er1 >conftest.err
3469   rm -f conftest.er1
3470   cat conftest.err >&5
3471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3472   (exit $ac_status); } && {
3473          test -z "$ac_c_werror_flag" ||
3474          test ! -s conftest.err
3475        } && test -s conftest.$ac_objext; then
3476   ac_cv_prog_cc_g=yes
3477 else
3478   echo "$as_me: failed program was:" >&5
3479 sed 's/^/| /' conftest.$ac_ext >&5
3480
3481         CFLAGS=""
3482       cat >conftest.$ac_ext <<_ACEOF
3483 /* confdefs.h.  */
3484 _ACEOF
3485 cat confdefs.h >>conftest.$ac_ext
3486 cat >>conftest.$ac_ext <<_ACEOF
3487 /* end confdefs.h.  */
3488
3489 int
3490 main ()
3491 {
3492
3493   ;
3494   return 0;
3495 }
3496 _ACEOF
3497 rm -f conftest.$ac_objext
3498 if { (ac_try="$ac_compile"
3499 case "(($ac_try" in
3500   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3501   *) ac_try_echo=$ac_try;;
3502 esac
3503 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3504   (eval "$ac_compile") 2>conftest.er1
3505   ac_status=$?
3506   grep -v '^ *+' conftest.er1 >conftest.err
3507   rm -f conftest.er1
3508   cat conftest.err >&5
3509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3510   (exit $ac_status); } && {
3511          test -z "$ac_c_werror_flag" ||
3512          test ! -s conftest.err
3513        } && test -s conftest.$ac_objext; then
3514   :
3515 else
3516   echo "$as_me: failed program was:" >&5
3517 sed 's/^/| /' conftest.$ac_ext >&5
3518
3519         ac_c_werror_flag=$ac_save_c_werror_flag
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         
3559 fi
3560
3561 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3562 fi
3563
3564 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3565 fi
3566
3567 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3568    ac_c_werror_flag=$ac_save_c_werror_flag
3569 fi
3570 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3571 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3572 if test "$ac_test_CFLAGS" = set; then
3573   CFLAGS=$ac_save_CFLAGS
3574 elif test $ac_cv_prog_cc_g = yes; then
3575   if test "$GCC" = yes; then
3576     CFLAGS="-g -O2"
3577   else
3578     CFLAGS="-g"
3579   fi
3580 else
3581   if test "$GCC" = yes; then
3582     CFLAGS="-O2"
3583   else
3584     CFLAGS=
3585   fi
3586 fi
3587 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3588 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3589 if test "${ac_cv_prog_cc_c89+set}" = set; then
3590   echo $ECHO_N "(cached) $ECHO_C" >&6
3591 else
3592   ac_cv_prog_cc_c89=no
3593 ac_save_CC=$CC
3594 cat >conftest.$ac_ext <<_ACEOF
3595 /* confdefs.h.  */
3596 _ACEOF
3597 cat confdefs.h >>conftest.$ac_ext
3598 cat >>conftest.$ac_ext <<_ACEOF
3599 /* end confdefs.h.  */
3600 #include <stdarg.h>
3601 #include <stdio.h>
3602 #include <sys/types.h>
3603 #include <sys/stat.h>
3604 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3605 struct buf { int x; };
3606 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3607 static char *e (p, i)
3608      char **p;
3609      int i;
3610 {
3611   return p[i];
3612 }
3613 static char *f (char * (*g) (char **, int), char **p, ...)
3614 {
3615   char *s;
3616   va_list v;
3617   va_start (v,p);
3618   s = g (p, va_arg (v,int));
3619   va_end (v);
3620   return s;
3621 }
3622
3623 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3624    function prototypes and stuff, but not '\xHH' hex character constants.
3625    These don't provoke an error unfortunately, instead are silently treated
3626    as 'x'.  The following induces an error, until -std is added to get
3627    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3628    array size at least.  It's necessary to write '\x00'==0 to get something
3629    that's true only with -std.  */
3630 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3631
3632 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3633    inside strings and character constants.  */
3634 #define FOO(x) 'x'
3635 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3636
3637 int test (int i, double x);
3638 struct s1 {int (*f) (int a);};
3639 struct s2 {int (*f) (double a);};
3640 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3641 int argc;
3642 char **argv;
3643 int
3644 main ()
3645 {
3646 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3647   ;
3648   return 0;
3649 }
3650 _ACEOF
3651 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3652         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3653 do
3654   CC="$ac_save_CC $ac_arg"
3655   rm -f conftest.$ac_objext
3656 if { (ac_try="$ac_compile"
3657 case "(($ac_try" in
3658   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3659   *) ac_try_echo=$ac_try;;
3660 esac
3661 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3662   (eval "$ac_compile") 2>conftest.er1
3663   ac_status=$?
3664   grep -v '^ *+' conftest.er1 >conftest.err
3665   rm -f conftest.er1
3666   cat conftest.err >&5
3667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3668   (exit $ac_status); } && {
3669          test -z "$ac_c_werror_flag" ||
3670          test ! -s conftest.err
3671        } && test -s conftest.$ac_objext; then
3672   ac_cv_prog_cc_c89=$ac_arg
3673 else
3674   echo "$as_me: failed program was:" >&5
3675 sed 's/^/| /' conftest.$ac_ext >&5
3676
3677         
3678 fi
3679
3680 rm -f core conftest.err conftest.$ac_objext 
3681   test "x$ac_cv_prog_cc_c89" != "xno" && break
3682 done
3683 rm -f conftest.$ac_ext
3684 CC=$ac_save_CC
3685
3686 fi
3687 # AC_CACHE_VAL
3688 case "x$ac_cv_prog_cc_c89" in
3689   x)
3690     { echo "$as_me:$LINENO: result: none needed" >&5
3691 echo "${ECHO_T}none needed" >&6; } ;;
3692   xno)
3693     { echo "$as_me:$LINENO: result: unsupported" >&5
3694 echo "${ECHO_T}unsupported" >&6; } ;;
3695   *)
3696     CC="$CC $ac_cv_prog_cc_c89"
3697     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3698 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3699 esac
3700
3701
3702 ac_ext=c
3703 ac_cpp='$CPP $CPPFLAGS'
3704 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3705 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3706 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3707
3708 depcc="$CC"   am_compiler_list=
3709
3710 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3711 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3712 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3713   echo $ECHO_N "(cached) $ECHO_C" >&6
3714 else
3715   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3716   # We make a subdir and do the tests there.  Otherwise we can end up
3717   # making bogus files that we don't know about and never remove.  For
3718   # instance it was reported that on HP-UX the gcc test will end up
3719   # making a dummy file named `D' -- because `-MD' means `put the output
3720   # in D'.
3721   mkdir conftest.dir
3722   # Copy depcomp to subdir because otherwise we won't find it if we're
3723   # using a relative directory.
3724   cp "$am_depcomp" conftest.dir
3725   cd conftest.dir
3726   # We will build objects and dependencies in a subdirectory because
3727   # it helps to detect inapplicable dependency modes.  For instance
3728   # both Tru64's cc and ICC support -MD to output dependencies as a
3729   # side effect of compilation, but ICC will put the dependencies in
3730   # the current directory while Tru64 will put them in the object
3731   # directory.
3732   mkdir sub
3733
3734   am_cv_CC_dependencies_compiler_type=none
3735   if test "$am_compiler_list" = ""; then
3736      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3737   fi
3738   for depmode in $am_compiler_list; do
3739     # Setup a source with many dependencies, because some compilers
3740     # like to wrap large dependency lists on column 80 (with \), and
3741     # we should not choose a depcomp mode which is confused by this.
3742     #
3743     # We need to recreate these files for each test, as the compiler may
3744     # overwrite some of them when testing with obscure command lines.
3745     # This happens at least with the AIX C compiler.
3746     : > sub/conftest.c
3747     for i in 1 2 3 4 5 6; do
3748       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3749       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3750       # Solaris 8's {/usr,}/bin/sh.
3751       touch sub/conftst$i.h
3752     done
3753     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3754
3755     case $depmode in
3756     nosideeffect)
3757       # after this tag, mechanisms are not by side-effect, so they'll
3758       # only be used when explicitly requested
3759       if test "x$enable_dependency_tracking" = xyes; then
3760         continue
3761       else
3762         break
3763       fi
3764       ;;
3765     none) break ;;
3766     esac
3767     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3768     # mode.  It turns out that the SunPro C++ compiler does not properly
3769     # handle `-M -o', and we need to detect this.
3770     if depmode=$depmode \
3771        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3772        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3773        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3774          >/dev/null 2>conftest.err &&
3775        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3776        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3777        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3778       # icc doesn't choke on unknown options, it will just issue warnings
3779       # or remarks (even with -Werror).  So we grep stderr for any message
3780       # that says an option was ignored or not supported.
3781       # When given -MP, icc 7.0 and 7.1 complain thusly:
3782       #   icc: Command line warning: ignoring option '-M'; no argument required
3783       # The diagnosis changed in icc 8.0:
3784       #   icc: Command line remark: option '-MP' not supported
3785       if (grep 'ignoring option' conftest.err ||
3786           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3787         am_cv_CC_dependencies_compiler_type=$depmode
3788         break
3789       fi
3790     fi
3791   done
3792
3793   cd ..
3794   rm -rf conftest.dir
3795 else
3796   am_cv_CC_dependencies_compiler_type=none
3797 fi
3798
3799 fi
3800 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3801 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3802 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3803
3804  
3805
3806 if 
3807   test "x$enable_dependency_tracking" != xno \
3808   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3809   am__fastdepCC_TRUE=
3810   am__fastdepCC_FALSE='#'
3811 else
3812   am__fastdepCC_TRUE='#'
3813   am__fastdepCC_FALSE=
3814 fi
3815
3816
3817
3818
3819   TCPW_MSG="no"
3820   
3821 # Check whether --with-tcp-wrappers was given.
3822 if test "${with_tcp_wrappers+set}" = set; then
3823   withval=$with_tcp_wrappers; 
3824         if test "x$withval" != "xno" ; then
3825             saved_LIBS="$LIBS"
3826             saved_LDFLAGS="$LDFLAGS"
3827             saved_CPPFLAGS="$CPPFLAGS"
3828             if test -n "${withval}" -a "${withval}" != "yes"; then
3829                 if test -d "${withval}/lib"; then
3830                     if test -n "${need_dash_r}"; then
3831                         LDFLAGS="-L${withval}/lib -R${withval}/lib ${LDFLAGS}"
3832                     else
3833                         LDFLAGS="-L${withval}/lib ${LDFLAGS}"
3834                     fi
3835                 else
3836                     if test -n "${need_dash_r}"; then
3837                         LDFLAGS="-L${withval} -R${withval} ${LDFLAGS}"
3838                     else
3839                         LDFLAGS="-L${withval} ${LDFLAGS}"
3840                     fi
3841                 fi
3842                 if test -d "${withval}/include"; then
3843                     CPPFLAGS="-I${withval}/include ${CPPFLAGS}"
3844                 else
3845                     CPPFLAGS="-I${withval} ${CPPFLAGS}"
3846                 fi
3847             fi
3848             LIBWRAP="-lwrap"
3849             LIBS="$LIBWRAP $LIBS"
3850             { echo "$as_me:$LINENO: checking for libwrap" >&5
3851 echo $ECHO_N "checking for libwrap... $ECHO_C" >&6; }
3852             cat >conftest.$ac_ext <<_ACEOF
3853 /* confdefs.h.  */
3854 _ACEOF
3855 cat confdefs.h >>conftest.$ac_ext
3856 cat >>conftest.$ac_ext <<_ACEOF
3857 /* end confdefs.h.  */
3858
3859                 #include <tcpd.h>
3860                 int deny_severity = 0, allow_severity = 0;
3861                 
3862 int
3863 main ()
3864 {
3865 hosts_access(0);
3866   ;
3867   return 0;
3868 }
3869 _ACEOF
3870 rm -f conftest.$ac_objext conftest$ac_exeext
3871 if { (ac_try="$ac_link"
3872 case "(($ac_try" in
3873   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3874   *) ac_try_echo=$ac_try;;
3875 esac
3876 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3877   (eval "$ac_link") 2>conftest.er1
3878   ac_status=$?
3879   grep -v '^ *+' conftest.er1 >conftest.err
3880   rm -f conftest.er1
3881   cat conftest.err >&5
3882   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3883   (exit $ac_status); } && {
3884          test -z "$ac_c_werror_flag" ||
3885          test ! -s conftest.err
3886        } && test -s conftest$ac_exeext &&
3887        $as_test_x conftest$ac_exeext; then
3888   
3889                 { echo "$as_me:$LINENO: result: yes" >&5
3890 echo "${ECHO_T}yes" >&6; }
3891                 
3892                 
3893 cat >>confdefs.h <<\_ACEOF
3894 @%:@define LIBWRAP 1
3895 _ACEOF
3896
3897                 
3898 cat >>confdefs.h <<\_ACEOF
3899 @%:@define HAVE_LIBWRAP 1
3900 _ACEOF
3901
3902                 
3903 cat >>confdefs.h <<\_ACEOF
3904 @%:@define HAVE_TCP_WRAPPER 1
3905 _ACEOF
3906
3907                 TCPW_MSG="yes"
3908                 
3909 else
3910   echo "$as_me: failed program was:" >&5
3911 sed 's/^/| /' conftest.$ac_ext >&5
3912
3913         
3914                 { { echo "$as_me:$LINENO: error: *** libwrap missing" >&5
3915 echo "$as_me: error: *** libwrap missing" >&2;}
3916    { (exit 1); exit 1; }; }
3917                 
3918             
3919 fi
3920
3921 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3922       conftest$ac_exeext conftest.$ac_ext
3923             LIBS="$saved_LIBS"
3924         fi
3925     
3926   
3927 fi
3928
3929   
3930   
3931   
3932
3933
3934
3935 ac_config_headers="$ac_config_headers support/include/config.h"
3936
3937
3938 # Checks for programs.
3939 ac_ext=cpp
3940 ac_cpp='$CXXCPP $CPPFLAGS'
3941 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3942 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3943 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3944 if test -z "$CXX"; then
3945   if test -n "$CCC"; then
3946     CXX=$CCC
3947   else
3948     if test -n "$ac_tool_prefix"; then
3949   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3950   do
3951     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3952 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3953 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3954 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3955 if test "${ac_cv_prog_CXX+set}" = set; then
3956   echo $ECHO_N "(cached) $ECHO_C" >&6
3957 else
3958   if test -n "$CXX"; then
3959   ac_cv_prog_CXX="$CXX" # Let the user override the test.
3960 else
3961 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3962 for as_dir in $PATH
3963 do
3964   IFS=$as_save_IFS
3965   test -z "$as_dir" && as_dir=.
3966   for ac_exec_ext in '' $ac_executable_extensions; do
3967   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3968     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3969     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3970     break 2
3971   fi
3972 done
3973 done
3974 IFS=$as_save_IFS
3975
3976 fi
3977 fi
3978 CXX=$ac_cv_prog_CXX
3979 if test -n "$CXX"; then
3980   { echo "$as_me:$LINENO: result: $CXX" >&5
3981 echo "${ECHO_T}$CXX" >&6; }
3982 else
3983   { echo "$as_me:$LINENO: result: no" >&5
3984 echo "${ECHO_T}no" >&6; }
3985 fi
3986
3987
3988     test -n "$CXX" && break
3989   done
3990 fi
3991 if test -z "$CXX"; then
3992   ac_ct_CXX=$CXX
3993   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3994 do
3995   # Extract the first word of "$ac_prog", so it can be a program name with args.
3996 set dummy $ac_prog; ac_word=$2
3997 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3998 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3999 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
4000   echo $ECHO_N "(cached) $ECHO_C" >&6
4001 else
4002   if test -n "$ac_ct_CXX"; then
4003   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4004 else
4005 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4006 for as_dir in $PATH
4007 do
4008   IFS=$as_save_IFS
4009   test -z "$as_dir" && as_dir=.
4010   for ac_exec_ext in '' $ac_executable_extensions; do
4011   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4012     ac_cv_prog_ac_ct_CXX="$ac_prog"
4013     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4014     break 2
4015   fi
4016 done
4017 done
4018 IFS=$as_save_IFS
4019
4020 fi
4021 fi
4022 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4023 if test -n "$ac_ct_CXX"; then
4024   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
4025 echo "${ECHO_T}$ac_ct_CXX" >&6; }
4026 else
4027   { echo "$as_me:$LINENO: result: no" >&5
4028 echo "${ECHO_T}no" >&6; }
4029 fi
4030
4031
4032   test -n "$ac_ct_CXX" && break
4033 done
4034
4035   if test "x$ac_ct_CXX" = x; then
4036     CXX="g++"
4037   else
4038     case $cross_compiling:$ac_tool_warned in
4039 yes:)
4040 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4041 whose name does not start with the host triplet.  If you think this
4042 configuration is useful to you, please write to autoconf@gnu.org." >&5
4043 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4044 whose name does not start with the host triplet.  If you think this
4045 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4046 ac_tool_warned=yes ;;
4047 esac
4048     CXX=$ac_ct_CXX
4049   fi
4050 fi
4051
4052   fi
4053 fi
4054 # Provide some information about the compiler.
4055 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
4056 ac_compiler=`set X $ac_compile; echo $2`
4057 { (ac_try="$ac_compiler --version >&5"
4058 case "(($ac_try" in
4059   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4060   *) ac_try_echo=$ac_try;;
4061 esac
4062 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4063   (eval "$ac_compiler --version >&5") 2>&5
4064   ac_status=$?
4065   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4066   (exit $ac_status); }
4067 { (ac_try="$ac_compiler -v >&5"
4068 case "(($ac_try" in
4069   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4070   *) ac_try_echo=$ac_try;;
4071 esac
4072 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4073   (eval "$ac_compiler -v >&5") 2>&5
4074   ac_status=$?
4075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4076   (exit $ac_status); }
4077 { (ac_try="$ac_compiler -V >&5"
4078 case "(($ac_try" in
4079   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4080   *) ac_try_echo=$ac_try;;
4081 esac
4082 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4083   (eval "$ac_compiler -V >&5") 2>&5
4084   ac_status=$?
4085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4086   (exit $ac_status); }
4087
4088 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
4089 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
4090 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
4091   echo $ECHO_N "(cached) $ECHO_C" >&6
4092 else
4093   cat >conftest.$ac_ext <<_ACEOF
4094 /* confdefs.h.  */
4095 _ACEOF
4096 cat confdefs.h >>conftest.$ac_ext
4097 cat >>conftest.$ac_ext <<_ACEOF
4098 /* end confdefs.h.  */
4099
4100 int
4101 main ()
4102 {
4103 #ifndef __GNUC__
4104        choke me
4105 #endif
4106
4107   ;
4108   return 0;
4109 }
4110 _ACEOF
4111 rm -f conftest.$ac_objext
4112 if { (ac_try="$ac_compile"
4113 case "(($ac_try" in
4114   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4115   *) ac_try_echo=$ac_try;;
4116 esac
4117 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4118   (eval "$ac_compile") 2>conftest.er1
4119   ac_status=$?
4120   grep -v '^ *+' conftest.er1 >conftest.err
4121   rm -f conftest.er1
4122   cat conftest.err >&5
4123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4124   (exit $ac_status); } && {
4125          test -z "$ac_cxx_werror_flag" ||
4126          test ! -s conftest.err
4127        } && test -s conftest.$ac_objext; then
4128   ac_compiler_gnu=yes
4129 else
4130   echo "$as_me: failed program was:" >&5
4131 sed 's/^/| /' conftest.$ac_ext >&5
4132
4133         ac_compiler_gnu=no
4134 fi
4135
4136 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4137 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4138
4139 fi
4140 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4141 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
4142 GXX=`test $ac_compiler_gnu = yes && echo yes`
4143 ac_test_CXXFLAGS=${CXXFLAGS+set}
4144 ac_save_CXXFLAGS=$CXXFLAGS
4145 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4146 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
4147 if test "${ac_cv_prog_cxx_g+set}" = set; then
4148   echo $ECHO_N "(cached) $ECHO_C" >&6
4149 else
4150   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4151    ac_cxx_werror_flag=yes
4152    ac_cv_prog_cxx_g=no
4153    CXXFLAGS="-g"
4154    cat >conftest.$ac_ext <<_ACEOF
4155 /* confdefs.h.  */
4156 _ACEOF
4157 cat confdefs.h >>conftest.$ac_ext
4158 cat >>conftest.$ac_ext <<_ACEOF
4159 /* end confdefs.h.  */
4160
4161 int
4162 main ()
4163 {
4164
4165   ;
4166   return 0;
4167 }
4168 _ACEOF
4169 rm -f conftest.$ac_objext
4170 if { (ac_try="$ac_compile"
4171 case "(($ac_try" in
4172   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4173   *) ac_try_echo=$ac_try;;
4174 esac
4175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4176   (eval "$ac_compile") 2>conftest.er1
4177   ac_status=$?
4178   grep -v '^ *+' conftest.er1 >conftest.err
4179   rm -f conftest.er1
4180   cat conftest.err >&5
4181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4182   (exit $ac_status); } && {
4183          test -z "$ac_cxx_werror_flag" ||
4184          test ! -s conftest.err
4185        } && test -s conftest.$ac_objext; then
4186   ac_cv_prog_cxx_g=yes
4187 else
4188   echo "$as_me: failed program was:" >&5
4189 sed 's/^/| /' conftest.$ac_ext >&5
4190
4191         CXXFLAGS=""
4192       cat >conftest.$ac_ext <<_ACEOF
4193 /* confdefs.h.  */
4194 _ACEOF
4195 cat confdefs.h >>conftest.$ac_ext
4196 cat >>conftest.$ac_ext <<_ACEOF
4197 /* end confdefs.h.  */
4198
4199 int
4200 main ()
4201 {
4202
4203   ;
4204   return 0;
4205 }
4206 _ACEOF
4207 rm -f conftest.$ac_objext
4208 if { (ac_try="$ac_compile"
4209 case "(($ac_try" in
4210   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4211   *) ac_try_echo=$ac_try;;
4212 esac
4213 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4214   (eval "$ac_compile") 2>conftest.er1
4215   ac_status=$?
4216   grep -v '^ *+' conftest.er1 >conftest.err
4217   rm -f conftest.er1
4218   cat conftest.err >&5
4219   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4220   (exit $ac_status); } && {
4221          test -z "$ac_cxx_werror_flag" ||
4222          test ! -s conftest.err
4223        } && test -s conftest.$ac_objext; then
4224   :
4225 else
4226   echo "$as_me: failed program was:" >&5
4227 sed 's/^/| /' conftest.$ac_ext >&5
4228
4229         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4230          CXXFLAGS="-g"
4231          cat >conftest.$ac_ext <<_ACEOF
4232 /* confdefs.h.  */
4233 _ACEOF
4234 cat confdefs.h >>conftest.$ac_ext
4235 cat >>conftest.$ac_ext <<_ACEOF
4236 /* end confdefs.h.  */
4237
4238 int
4239 main ()
4240 {
4241
4242   ;
4243   return 0;
4244 }
4245 _ACEOF
4246 rm -f conftest.$ac_objext
4247 if { (ac_try="$ac_compile"
4248 case "(($ac_try" in
4249   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4250   *) ac_try_echo=$ac_try;;
4251 esac
4252 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4253   (eval "$ac_compile") 2>conftest.er1
4254   ac_status=$?
4255   grep -v '^ *+' conftest.er1 >conftest.err
4256   rm -f conftest.er1
4257   cat conftest.err >&5
4258   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4259   (exit $ac_status); } && {
4260          test -z "$ac_cxx_werror_flag" ||
4261          test ! -s conftest.err
4262        } && test -s conftest.$ac_objext; then
4263   ac_cv_prog_cxx_g=yes
4264 else
4265   echo "$as_me: failed program was:" >&5
4266 sed 's/^/| /' conftest.$ac_ext >&5
4267
4268         
4269 fi
4270
4271 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4272 fi
4273
4274 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4275 fi
4276
4277 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4278    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4279 fi
4280 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4281 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
4282 if test "$ac_test_CXXFLAGS" = set; then
4283   CXXFLAGS=$ac_save_CXXFLAGS
4284 elif test $ac_cv_prog_cxx_g = yes; then
4285   if test "$GXX" = yes; then
4286     CXXFLAGS="-g -O2"
4287   else
4288     CXXFLAGS="-g"
4289   fi
4290 else
4291   if test "$GXX" = yes; then
4292     CXXFLAGS="-O2"
4293   else
4294     CXXFLAGS=
4295   fi
4296 fi
4297 ac_ext=c
4298 ac_cpp='$CPP $CPPFLAGS'
4299 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4300 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4301 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4302
4303 depcc="$CXX"  am_compiler_list=
4304
4305 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4306 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
4307 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
4308   echo $ECHO_N "(cached) $ECHO_C" >&6
4309 else
4310   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4311   # We make a subdir and do the tests there.  Otherwise we can end up
4312   # making bogus files that we don't know about and never remove.  For
4313   # instance it was reported that on HP-UX the gcc test will end up
4314   # making a dummy file named `D' -- because `-MD' means `put the output
4315   # in D'.
4316   mkdir conftest.dir
4317   # Copy depcomp to subdir because otherwise we won't find it if we're
4318   # using a relative directory.
4319   cp "$am_depcomp" conftest.dir
4320   cd conftest.dir
4321   # We will build objects and dependencies in a subdirectory because
4322   # it helps to detect inapplicable dependency modes.  For instance
4323   # both Tru64's cc and ICC support -MD to output dependencies as a
4324   # side effect of compilation, but ICC will put the dependencies in
4325   # the current directory while Tru64 will put them in the object
4326   # directory.
4327   mkdir sub
4328
4329   am_cv_CXX_dependencies_compiler_type=none
4330   if test "$am_compiler_list" = ""; then
4331      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4332   fi
4333   for depmode in $am_compiler_list; do
4334     # Setup a source with many dependencies, because some compilers
4335     # like to wrap large dependency lists on column 80 (with \), and
4336     # we should not choose a depcomp mode which is confused by this.
4337     #
4338     # We need to recreate these files for each test, as the compiler may
4339     # overwrite some of them when testing with obscure command lines.
4340     # This happens at least with the AIX C compiler.
4341     : > sub/conftest.c
4342     for i in 1 2 3 4 5 6; do
4343       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4344       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4345       # Solaris 8's {/usr,}/bin/sh.
4346       touch sub/conftst$i.h
4347     done
4348     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4349
4350     case $depmode in
4351     nosideeffect)
4352       # after this tag, mechanisms are not by side-effect, so they'll
4353       # only be used when explicitly requested
4354       if test "x$enable_dependency_tracking" = xyes; then
4355         continue
4356       else
4357         break
4358       fi
4359       ;;
4360     none) break ;;
4361     esac
4362     # We check with `-c' and `-o' for the sake of the "dashmstdout"
4363     # mode.  It turns out that the SunPro C++ compiler does not properly
4364     # handle `-M -o', and we need to detect this.
4365     if depmode=$depmode \
4366        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4367        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4368        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4369          >/dev/null 2>conftest.err &&
4370        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4371        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4372        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4373       # icc doesn't choke on unknown options, it will just issue warnings
4374       # or remarks (even with -Werror).  So we grep stderr for any message
4375       # that says an option was ignored or not supported.
4376       # When given -MP, icc 7.0 and 7.1 complain thusly:
4377       #   icc: Command line warning: ignoring option '-M'; no argument required
4378       # The diagnosis changed in icc 8.0:
4379       #   icc: Command line remark: option '-MP' not supported
4380       if (grep 'ignoring option' conftest.err ||
4381           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4382         am_cv_CXX_dependencies_compiler_type=$depmode
4383         break
4384       fi
4385     fi
4386   done
4387
4388   cd ..
4389   rm -rf conftest.dir
4390 else
4391   am_cv_CXX_dependencies_compiler_type=none
4392 fi
4393
4394 fi
4395 { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
4396 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
4397 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4398
4399  
4400
4401 if 
4402   test "x$enable_dependency_tracking" != xno \
4403   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4404   am__fastdepCXX_TRUE=
4405   am__fastdepCXX_FALSE='#'
4406 else
4407   am__fastdepCXX_TRUE='#'
4408   am__fastdepCXX_FALSE=
4409 fi
4410
4411
4412 ac_ext=c
4413 ac_cpp='$CPP $CPPFLAGS'
4414 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4415 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4416 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4417 if test -n "$ac_tool_prefix"; then
4418   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4419 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4420 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4421 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4422 if test "${ac_cv_prog_CC+set}" = set; then
4423   echo $ECHO_N "(cached) $ECHO_C" >&6
4424 else
4425   if test -n "$CC"; then
4426   ac_cv_prog_CC="$CC" # Let the user override the test.
4427 else
4428 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4429 for as_dir in $PATH
4430 do
4431   IFS=$as_save_IFS
4432   test -z "$as_dir" && as_dir=.
4433   for ac_exec_ext in '' $ac_executable_extensions; do
4434   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4435     ac_cv_prog_CC="${ac_tool_prefix}gcc"
4436     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4437     break 2
4438   fi
4439 done
4440 done
4441 IFS=$as_save_IFS
4442
4443 fi
4444 fi
4445 CC=$ac_cv_prog_CC
4446 if test -n "$CC"; then
4447   { echo "$as_me:$LINENO: result: $CC" >&5
4448 echo "${ECHO_T}$CC" >&6; }
4449 else
4450   { echo "$as_me:$LINENO: result: no" >&5
4451 echo "${ECHO_T}no" >&6; }
4452 fi
4453
4454
4455 fi
4456 if test -z "$ac_cv_prog_CC"; then
4457   ac_ct_CC=$CC
4458   # Extract the first word of "gcc", so it can be a program name with args.
4459 set dummy gcc; ac_word=$2
4460 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4461 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4462 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4463   echo $ECHO_N "(cached) $ECHO_C" >&6
4464 else
4465   if test -n "$ac_ct_CC"; then
4466   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4467 else
4468 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4469 for as_dir in $PATH
4470 do
4471   IFS=$as_save_IFS
4472   test -z "$as_dir" && as_dir=.
4473   for ac_exec_ext in '' $ac_executable_extensions; do
4474   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4475     ac_cv_prog_ac_ct_CC="gcc"
4476     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4477     break 2
4478   fi
4479 done
4480 done
4481 IFS=$as_save_IFS
4482
4483 fi
4484 fi
4485 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4486 if test -n "$ac_ct_CC"; then
4487   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4488 echo "${ECHO_T}$ac_ct_CC" >&6; }
4489 else
4490   { echo "$as_me:$LINENO: result: no" >&5
4491 echo "${ECHO_T}no" >&6; }
4492 fi
4493
4494   if test "x$ac_ct_CC" = x; then
4495     CC=""
4496   else
4497     case $cross_compiling:$ac_tool_warned in
4498 yes:)
4499 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4500 whose name does not start with the host triplet.  If you think this
4501 configuration is useful to you, please write to autoconf@gnu.org." >&5
4502 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4503 whose name does not start with the host triplet.  If you think this
4504 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4505 ac_tool_warned=yes ;;
4506 esac
4507     CC=$ac_ct_CC
4508   fi
4509 else
4510   CC="$ac_cv_prog_CC"
4511 fi
4512
4513 if test -z "$CC"; then
4514           if test -n "$ac_tool_prefix"; then
4515     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4516 set dummy ${ac_tool_prefix}cc; ac_word=$2
4517 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4518 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4519 if test "${ac_cv_prog_CC+set}" = set; then
4520   echo $ECHO_N "(cached) $ECHO_C" >&6
4521 else
4522   if test -n "$CC"; then
4523   ac_cv_prog_CC="$CC" # Let the user override the test.
4524 else
4525 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4526 for as_dir in $PATH
4527 do
4528   IFS=$as_save_IFS
4529   test -z "$as_dir" && as_dir=.
4530   for ac_exec_ext in '' $ac_executable_extensions; do
4531   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4532     ac_cv_prog_CC="${ac_tool_prefix}cc"
4533     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4534     break 2
4535   fi
4536 done
4537 done
4538 IFS=$as_save_IFS
4539
4540 fi
4541 fi
4542 CC=$ac_cv_prog_CC
4543 if test -n "$CC"; then
4544   { echo "$as_me:$LINENO: result: $CC" >&5
4545 echo "${ECHO_T}$CC" >&6; }
4546 else
4547   { echo "$as_me:$LINENO: result: no" >&5
4548 echo "${ECHO_T}no" >&6; }
4549 fi
4550
4551
4552   fi
4553 fi
4554 if test -z "$CC"; then
4555   # Extract the first word of "cc", so it can be a program name with args.
4556 set dummy cc; ac_word=$2
4557 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4558 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4559 if test "${ac_cv_prog_CC+set}" = set; then
4560   echo $ECHO_N "(cached) $ECHO_C" >&6
4561 else
4562   if test -n "$CC"; then
4563   ac_cv_prog_CC="$CC" # Let the user override the test.
4564 else
4565   ac_prog_rejected=no
4566 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4567 for as_dir in $PATH
4568 do
4569   IFS=$as_save_IFS
4570   test -z "$as_dir" && as_dir=.
4571   for ac_exec_ext in '' $ac_executable_extensions; do
4572   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4573     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4574        ac_prog_rejected=yes
4575        continue
4576      fi
4577     ac_cv_prog_CC="cc"
4578     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4579     break 2
4580   fi
4581 done
4582 done
4583 IFS=$as_save_IFS
4584
4585 if test $ac_prog_rejected = yes; then
4586   # We found a bogon in the path, so make sure we never use it.
4587   set dummy $ac_cv_prog_CC
4588   shift
4589   if test $@%:@ != 0; then
4590     # We chose a different compiler from the bogus one.
4591     # However, it has the same basename, so the bogon will be chosen
4592     # first if we set CC to just the basename; use the full file name.
4593     shift
4594     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4595   fi
4596 fi
4597 fi
4598 fi
4599 CC=$ac_cv_prog_CC
4600 if test -n "$CC"; then
4601   { echo "$as_me:$LINENO: result: $CC" >&5
4602 echo "${ECHO_T}$CC" >&6; }
4603 else
4604   { echo "$as_me:$LINENO: result: no" >&5
4605 echo "${ECHO_T}no" >&6; }
4606 fi
4607
4608
4609 fi
4610 if test -z "$CC"; then
4611   if test -n "$ac_tool_prefix"; then
4612   for ac_prog in cl.exe
4613   do
4614     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4615 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4616 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4617 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4618 if test "${ac_cv_prog_CC+set}" = set; then
4619   echo $ECHO_N "(cached) $ECHO_C" >&6
4620 else
4621   if test -n "$CC"; then
4622   ac_cv_prog_CC="$CC" # Let the user override the test.
4623 else
4624 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4625 for as_dir in $PATH
4626 do
4627   IFS=$as_save_IFS
4628   test -z "$as_dir" && as_dir=.
4629   for ac_exec_ext in '' $ac_executable_extensions; do
4630   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4631     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4632     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4633     break 2
4634   fi
4635 done
4636 done
4637 IFS=$as_save_IFS
4638
4639 fi
4640 fi
4641 CC=$ac_cv_prog_CC
4642 if test -n "$CC"; then
4643   { echo "$as_me:$LINENO: result: $CC" >&5
4644 echo "${ECHO_T}$CC" >&6; }
4645 else
4646   { echo "$as_me:$LINENO: result: no" >&5
4647 echo "${ECHO_T}no" >&6; }
4648 fi
4649
4650
4651     test -n "$CC" && break
4652   done
4653 fi
4654 if test -z "$CC"; then
4655   ac_ct_CC=$CC
4656   for ac_prog in cl.exe
4657 do
4658   # Extract the first word of "$ac_prog", so it can be a program name with args.
4659 set dummy $ac_prog; ac_word=$2
4660 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4661 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4662 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4663   echo $ECHO_N "(cached) $ECHO_C" >&6
4664 else
4665   if test -n "$ac_ct_CC"; then
4666   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4667 else
4668 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4669 for as_dir in $PATH
4670 do
4671   IFS=$as_save_IFS
4672   test -z "$as_dir" && as_dir=.
4673   for ac_exec_ext in '' $ac_executable_extensions; do
4674   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4675     ac_cv_prog_ac_ct_CC="$ac_prog"
4676     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4677     break 2
4678   fi
4679 done
4680 done
4681 IFS=$as_save_IFS
4682
4683 fi
4684 fi
4685 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4686 if test -n "$ac_ct_CC"; then
4687   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4688 echo "${ECHO_T}$ac_ct_CC" >&6; }
4689 else
4690   { echo "$as_me:$LINENO: result: no" >&5
4691 echo "${ECHO_T}no" >&6; }
4692 fi
4693
4694
4695   test -n "$ac_ct_CC" && break
4696 done
4697
4698   if test "x$ac_ct_CC" = x; then
4699     CC=""
4700   else
4701     case $cross_compiling:$ac_tool_warned in
4702 yes:)
4703 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4704 whose name does not start with the host triplet.  If you think this
4705 configuration is useful to you, please write to autoconf@gnu.org." >&5
4706 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4707 whose name does not start with the host triplet.  If you think this
4708 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4709 ac_tool_warned=yes ;;
4710 esac
4711     CC=$ac_ct_CC
4712   fi
4713 fi
4714
4715 fi
4716
4717
4718 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
4719 See \`config.log' for more details." >&5
4720 echo "$as_me: error: no acceptable C compiler found in \$PATH
4721 See \`config.log' for more details." >&2;}
4722    { (exit 1); exit 1; }; }
4723
4724 # Provide some information about the compiler.
4725 echo "$as_me:$LINENO: checking for C compiler version" >&5
4726 ac_compiler=`set X $ac_compile; echo $2`
4727 { (ac_try="$ac_compiler --version >&5"
4728 case "(($ac_try" in
4729   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4730   *) ac_try_echo=$ac_try;;
4731 esac
4732 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4733   (eval "$ac_compiler --version >&5") 2>&5
4734   ac_status=$?
4735   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4736   (exit $ac_status); }
4737 { (ac_try="$ac_compiler -v >&5"
4738 case "(($ac_try" in
4739   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4740   *) ac_try_echo=$ac_try;;
4741 esac
4742 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4743   (eval "$ac_compiler -v >&5") 2>&5
4744   ac_status=$?
4745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4746   (exit $ac_status); }
4747 { (ac_try="$ac_compiler -V >&5"
4748 case "(($ac_try" in
4749   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4750   *) ac_try_echo=$ac_try;;
4751 esac
4752 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4753   (eval "$ac_compiler -V >&5") 2>&5
4754   ac_status=$?
4755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4756   (exit $ac_status); }
4757
4758 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
4759 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
4760 if test "${ac_cv_c_compiler_gnu+set}" = set; then
4761   echo $ECHO_N "(cached) $ECHO_C" >&6
4762 else
4763   cat >conftest.$ac_ext <<_ACEOF
4764 /* confdefs.h.  */
4765 _ACEOF
4766 cat confdefs.h >>conftest.$ac_ext
4767 cat >>conftest.$ac_ext <<_ACEOF
4768 /* end confdefs.h.  */
4769
4770 int
4771 main ()
4772 {
4773 #ifndef __GNUC__
4774        choke me
4775 #endif
4776
4777   ;
4778   return 0;
4779 }
4780 _ACEOF
4781 rm -f conftest.$ac_objext
4782 if { (ac_try="$ac_compile"
4783 case "(($ac_try" in
4784   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4785   *) ac_try_echo=$ac_try;;
4786 esac
4787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4788   (eval "$ac_compile") 2>conftest.er1
4789   ac_status=$?
4790   grep -v '^ *+' conftest.er1 >conftest.err
4791   rm -f conftest.er1
4792   cat conftest.err >&5
4793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4794   (exit $ac_status); } && {
4795          test -z "$ac_c_werror_flag" ||
4796          test ! -s conftest.err
4797        } && test -s conftest.$ac_objext; then
4798   ac_compiler_gnu=yes
4799 else
4800   echo "$as_me: failed program was:" >&5
4801 sed 's/^/| /' conftest.$ac_ext >&5
4802
4803         ac_compiler_gnu=no
4804 fi
4805
4806 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4807 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4808
4809 fi
4810 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4811 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
4812 GCC=`test $ac_compiler_gnu = yes && echo yes`
4813 ac_test_CFLAGS=${CFLAGS+set}
4814 ac_save_CFLAGS=$CFLAGS
4815 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4816 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
4817 if test "${ac_cv_prog_cc_g+set}" = set; then
4818   echo $ECHO_N "(cached) $ECHO_C" >&6
4819 else
4820   ac_save_c_werror_flag=$ac_c_werror_flag
4821    ac_c_werror_flag=yes
4822    ac_cv_prog_cc_g=no
4823    CFLAGS="-g"
4824    cat >conftest.$ac_ext <<_ACEOF
4825 /* confdefs.h.  */
4826 _ACEOF
4827 cat confdefs.h >>conftest.$ac_ext
4828 cat >>conftest.$ac_ext <<_ACEOF
4829 /* end confdefs.h.  */
4830
4831 int
4832 main ()
4833 {
4834
4835   ;
4836   return 0;
4837 }
4838 _ACEOF
4839 rm -f conftest.$ac_objext
4840 if { (ac_try="$ac_compile"
4841 case "(($ac_try" in
4842   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4843   *) ac_try_echo=$ac_try;;
4844 esac
4845 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4846   (eval "$ac_compile") 2>conftest.er1
4847   ac_status=$?
4848   grep -v '^ *+' conftest.er1 >conftest.err
4849   rm -f conftest.er1
4850   cat conftest.err >&5
4851   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4852   (exit $ac_status); } && {
4853          test -z "$ac_c_werror_flag" ||
4854          test ! -s conftest.err
4855        } && test -s conftest.$ac_objext; then
4856   ac_cv_prog_cc_g=yes
4857 else
4858   echo "$as_me: failed program was:" >&5
4859 sed 's/^/| /' conftest.$ac_ext >&5
4860
4861         CFLAGS=""
4862       cat >conftest.$ac_ext <<_ACEOF
4863 /* confdefs.h.  */
4864 _ACEOF
4865 cat confdefs.h >>conftest.$ac_ext
4866 cat >>conftest.$ac_ext <<_ACEOF
4867 /* end confdefs.h.  */
4868
4869 int
4870 main ()
4871 {
4872
4873   ;
4874   return 0;
4875 }
4876 _ACEOF
4877 rm -f conftest.$ac_objext
4878 if { (ac_try="$ac_compile"
4879 case "(($ac_try" in
4880   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4881   *) ac_try_echo=$ac_try;;
4882 esac
4883 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4884   (eval "$ac_compile") 2>conftest.er1
4885   ac_status=$?
4886   grep -v '^ *+' conftest.er1 >conftest.err
4887   rm -f conftest.er1
4888   cat conftest.err >&5
4889   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4890   (exit $ac_status); } && {
4891          test -z "$ac_c_werror_flag" ||
4892          test ! -s conftest.err
4893        } && test -s conftest.$ac_objext; then
4894   :
4895 else
4896   echo "$as_me: failed program was:" >&5
4897 sed 's/^/| /' conftest.$ac_ext >&5
4898
4899         ac_c_werror_flag=$ac_save_c_werror_flag
4900          CFLAGS="-g"
4901          cat >conftest.$ac_ext <<_ACEOF
4902 /* confdefs.h.  */
4903 _ACEOF
4904 cat confdefs.h >>conftest.$ac_ext
4905 cat >>conftest.$ac_ext <<_ACEOF
4906 /* end confdefs.h.  */
4907
4908 int
4909 main ()
4910 {
4911
4912   ;
4913   return 0;
4914 }
4915 _ACEOF
4916 rm -f conftest.$ac_objext
4917 if { (ac_try="$ac_compile"
4918 case "(($ac_try" in
4919   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4920   *) ac_try_echo=$ac_try;;
4921 esac
4922 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4923   (eval "$ac_compile") 2>conftest.er1
4924   ac_status=$?
4925   grep -v '^ *+' conftest.er1 >conftest.err
4926   rm -f conftest.er1
4927   cat conftest.err >&5
4928   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4929   (exit $ac_status); } && {
4930          test -z "$ac_c_werror_flag" ||
4931          test ! -s conftest.err
4932        } && test -s conftest.$ac_objext; then
4933   ac_cv_prog_cc_g=yes
4934 else
4935   echo "$as_me: failed program was:" >&5
4936 sed 's/^/| /' conftest.$ac_ext >&5
4937
4938         
4939 fi
4940
4941 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4942 fi
4943
4944 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4945 fi
4946
4947 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4948    ac_c_werror_flag=$ac_save_c_werror_flag
4949 fi
4950 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4951 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
4952 if test "$ac_test_CFLAGS" = set; then
4953   CFLAGS=$ac_save_CFLAGS
4954 elif test $ac_cv_prog_cc_g = yes; then
4955   if test "$GCC" = yes; then
4956     CFLAGS="-g -O2"
4957   else
4958     CFLAGS="-g"
4959   fi
4960 else
4961   if test "$GCC" = yes; then
4962     CFLAGS="-O2"
4963   else
4964     CFLAGS=
4965   fi
4966 fi
4967 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
4968 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
4969 if test "${ac_cv_prog_cc_c89+set}" = set; then
4970   echo $ECHO_N "(cached) $ECHO_C" >&6
4971 else
4972   ac_cv_prog_cc_c89=no
4973 ac_save_CC=$CC
4974 cat >conftest.$ac_ext <<_ACEOF
4975 /* confdefs.h.  */
4976 _ACEOF
4977 cat confdefs.h >>conftest.$ac_ext
4978 cat >>conftest.$ac_ext <<_ACEOF
4979 /* end confdefs.h.  */
4980 #include <stdarg.h>
4981 #include <stdio.h>
4982 #include <sys/types.h>
4983 #include <sys/stat.h>
4984 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4985 struct buf { int x; };
4986 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4987 static char *e (p, i)
4988      char **p;
4989      int i;
4990 {
4991   return p[i];
4992 }
4993 static char *f (char * (*g) (char **, int), char **p, ...)
4994 {
4995   char *s;
4996   va_list v;
4997   va_start (v,p);
4998   s = g (p, va_arg (v,int));
4999   va_end (v);
5000   return s;
5001 }
5002
5003 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
5004    function prototypes and stuff, but not '\xHH' hex character constants.
5005    These don't provoke an error unfortunately, instead are silently treated
5006    as 'x'.  The following induces an error, until -std is added to get
5007    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
5008    array size at least.  It's necessary to write '\x00'==0 to get something
5009    that's true only with -std.  */
5010 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5011
5012 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5013    inside strings and character constants.  */
5014 #define FOO(x) 'x'
5015 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5016
5017 int test (int i, double x);
5018 struct s1 {int (*f) (int a);};
5019 struct s2 {int (*f) (double a);};
5020 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5021 int argc;
5022 char **argv;
5023 int
5024 main ()
5025 {
5026 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
5027   ;
5028   return 0;
5029 }
5030 _ACEOF
5031 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5032         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5033 do
5034   CC="$ac_save_CC $ac_arg"
5035   rm -f conftest.$ac_objext
5036 if { (ac_try="$ac_compile"
5037 case "(($ac_try" in
5038   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5039   *) ac_try_echo=$ac_try;;
5040 esac
5041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5042   (eval "$ac_compile") 2>conftest.er1
5043   ac_status=$?
5044   grep -v '^ *+' conftest.er1 >conftest.err
5045   rm -f conftest.er1
5046   cat conftest.err >&5
5047   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5048   (exit $ac_status); } && {
5049          test -z "$ac_c_werror_flag" ||
5050          test ! -s conftest.err
5051        } && test -s conftest.$ac_objext; then
5052   ac_cv_prog_cc_c89=$ac_arg
5053 else
5054   echo "$as_me: failed program was:" >&5
5055 sed 's/^/| /' conftest.$ac_ext >&5
5056
5057         
5058 fi
5059
5060 rm -f core conftest.err conftest.$ac_objext 
5061   test "x$ac_cv_prog_cc_c89" != "xno" && break
5062 done
5063 rm -f conftest.$ac_ext
5064 CC=$ac_save_CC
5065
5066 fi
5067 # AC_CACHE_VAL
5068 case "x$ac_cv_prog_cc_c89" in
5069   x)
5070     { echo "$as_me:$LINENO: result: none needed" >&5
5071 echo "${ECHO_T}none needed" >&6; } ;;
5072   xno)
5073     { echo "$as_me:$LINENO: result: unsupported" >&5
5074 echo "${ECHO_T}unsupported" >&6; } ;;
5075   *)
5076     CC="$CC $ac_cv_prog_cc_c89"
5077     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
5078 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
5079 esac
5080
5081
5082 ac_ext=c
5083 ac_cpp='$CPP $CPPFLAGS'
5084 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5085 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5086 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5087
5088 depcc="$CC"   am_compiler_list=
5089
5090 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5091 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
5092 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
5093   echo $ECHO_N "(cached) $ECHO_C" >&6
5094 else
5095   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5096   # We make a subdir and do the tests there.  Otherwise we can end up
5097   # making bogus files that we don't know about and never remove.  For
5098   # instance it was reported that on HP-UX the gcc test will end up
5099   # making a dummy file named `D' -- because `-MD' means `put the output
5100   # in D'.
5101   mkdir conftest.dir
5102   # Copy depcomp to subdir because otherwise we won't find it if we're
5103   # using a relative directory.
5104   cp "$am_depcomp" conftest.dir
5105   cd conftest.dir
5106   # We will build objects and dependencies in a subdirectory because
5107   # it helps to detect inapplicable dependency modes.  For instance
5108   # both Tru64's cc and ICC support -MD to output dependencies as a
5109   # side effect of compilation, but ICC will put the dependencies in
5110   # the current directory while Tru64 will put them in the object
5111   # directory.
5112   mkdir sub
5113
5114   am_cv_CC_dependencies_compiler_type=none
5115   if test "$am_compiler_list" = ""; then
5116      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5117   fi
5118   for depmode in $am_compiler_list; do
5119     # Setup a source with many dependencies, because some compilers
5120     # like to wrap large dependency lists on column 80 (with \), and
5121     # we should not choose a depcomp mode which is confused by this.
5122     #
5123     # We need to recreate these files for each test, as the compiler may
5124     # overwrite some of them when testing with obscure command lines.
5125     # This happens at least with the AIX C compiler.
5126     : > sub/conftest.c
5127     for i in 1 2 3 4 5 6; do
5128       echo '#include "conftst'$i'.h"' >> sub/conftest.c
5129       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5130       # Solaris 8's {/usr,}/bin/sh.
5131       touch sub/conftst$i.h
5132     done
5133     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5134
5135     case $depmode in
5136     nosideeffect)
5137       # after this tag, mechanisms are not by side-effect, so they'll
5138       # only be used when explicitly requested
5139       if test "x$enable_dependency_tracking" = xyes; then
5140         continue
5141       else
5142         break
5143       fi
5144       ;;
5145     none) break ;;
5146     esac
5147     # We check with `-c' and `-o' for the sake of the "dashmstdout"
5148     # mode.  It turns out that the SunPro C++ compiler does not properly
5149     # handle `-M -o', and we need to detect this.
5150     if depmode=$depmode \
5151        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5152        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5153        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5154          >/dev/null 2>conftest.err &&
5155        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5156        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5157        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5158       # icc doesn't choke on unknown options, it will just issue warnings
5159       # or remarks (even with -Werror).  So we grep stderr for any message
5160       # that says an option was ignored or not supported.
5161       # When given -MP, icc 7.0 and 7.1 complain thusly:
5162       #   icc: Command line warning: ignoring option '-M'; no argument required
5163       # The diagnosis changed in icc 8.0:
5164       #   icc: Command line remark: option '-MP' not supported
5165       if (grep 'ignoring option' conftest.err ||
5166           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5167         am_cv_CC_dependencies_compiler_type=$depmode
5168         break
5169       fi
5170     fi
5171   done
5172
5173   cd ..
5174   rm -rf conftest.dir
5175 else
5176   am_cv_CC_dependencies_compiler_type=none
5177 fi
5178
5179 fi
5180 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
5181 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
5182 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5183
5184  
5185
5186 if 
5187   test "x$enable_dependency_tracking" != xno \
5188   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5189   am__fastdepCC_TRUE=
5190   am__fastdepCC_FALSE='#'
5191 else
5192   am__fastdepCC_TRUE='#'
5193   am__fastdepCC_FALSE=
5194 fi
5195
5196
5197 ac_ext=c
5198 ac_cpp='$CPP $CPPFLAGS'
5199 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5200 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5201 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5202 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5203 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
5204 # On Suns, sometimes $CPP names a directory.
5205 if test -n "$CPP" && test -d "$CPP"; then
5206   CPP=
5207 fi
5208 if test -z "$CPP"; then
5209   if test "${ac_cv_prog_CPP+set}" = set; then
5210   echo $ECHO_N "(cached) $ECHO_C" >&6
5211 else
5212       # Double quotes because CPP needs to be expanded
5213     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5214     do
5215       ac_preproc_ok=false
5216 for ac_c_preproc_warn_flag in '' yes
5217 do
5218   # Use a header file that comes with gcc, so configuring glibc
5219   # with a fresh cross-compiler works.
5220   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5221   # <limits.h> exists even on freestanding compilers.
5222   # On the NeXT, cc -E runs the code through the compiler's parser,
5223   # not just through cpp. "Syntax error" is here to catch this case.
5224   cat >conftest.$ac_ext <<_ACEOF
5225 /* confdefs.h.  */
5226 _ACEOF
5227 cat confdefs.h >>conftest.$ac_ext
5228 cat >>conftest.$ac_ext <<_ACEOF
5229 /* end confdefs.h.  */
5230 @%:@ifdef __STDC__
5231 @%:@ include <limits.h>
5232 @%:@else
5233 @%:@ include <assert.h>
5234 @%:@endif
5235                      Syntax error
5236 _ACEOF
5237 if { (ac_try="$ac_cpp conftest.$ac_ext"
5238 case "(($ac_try" in
5239   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5240   *) ac_try_echo=$ac_try;;
5241 esac
5242 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5243   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5244   ac_status=$?
5245   grep -v '^ *+' conftest.er1 >conftest.err
5246   rm -f conftest.er1
5247   cat conftest.err >&5
5248   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5249   (exit $ac_status); } >/dev/null && {
5250          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5251          test ! -s conftest.err
5252        }; then
5253   :
5254 else
5255   echo "$as_me: failed program was:" >&5
5256 sed 's/^/| /' conftest.$ac_ext >&5
5257
5258   # Broken: fails on valid input.
5259 continue
5260 fi
5261
5262 rm -f conftest.err conftest.$ac_ext
5263
5264   # OK, works on sane cases.  Now check whether nonexistent headers
5265   # can be detected and how.
5266   cat >conftest.$ac_ext <<_ACEOF
5267 /* confdefs.h.  */
5268 _ACEOF
5269 cat confdefs.h >>conftest.$ac_ext
5270 cat >>conftest.$ac_ext <<_ACEOF
5271 /* end confdefs.h.  */
5272 @%:@include <ac_nonexistent.h>
5273 _ACEOF
5274 if { (ac_try="$ac_cpp conftest.$ac_ext"
5275 case "(($ac_try" in
5276   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5277   *) ac_try_echo=$ac_try;;
5278 esac
5279 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5280   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5281   ac_status=$?
5282   grep -v '^ *+' conftest.er1 >conftest.err
5283   rm -f conftest.er1
5284   cat conftest.err >&5
5285   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5286   (exit $ac_status); } >/dev/null && {
5287          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5288          test ! -s conftest.err
5289        }; then
5290   # Broken: success on invalid input.
5291 continue
5292 else
5293   echo "$as_me: failed program was:" >&5
5294 sed 's/^/| /' conftest.$ac_ext >&5
5295
5296   # Passes both tests.
5297 ac_preproc_ok=:
5298 break
5299 fi
5300
5301 rm -f conftest.err conftest.$ac_ext
5302
5303 done
5304 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5305 rm -f conftest.err conftest.$ac_ext
5306 if $ac_preproc_ok; then
5307   break
5308 fi
5309
5310     done
5311     ac_cv_prog_CPP=$CPP
5312   
5313 fi
5314   CPP=$ac_cv_prog_CPP
5315 else
5316   ac_cv_prog_CPP=$CPP
5317 fi
5318 { echo "$as_me:$LINENO: result: $CPP" >&5
5319 echo "${ECHO_T}$CPP" >&6; }
5320 ac_preproc_ok=false
5321 for ac_c_preproc_warn_flag in '' yes
5322 do
5323   # Use a header file that comes with gcc, so configuring glibc
5324   # with a fresh cross-compiler works.
5325   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5326   # <limits.h> exists even on freestanding compilers.
5327   # On the NeXT, cc -E runs the code through the compiler's parser,
5328   # not just through cpp. "Syntax error" is here to catch this case.
5329   cat >conftest.$ac_ext <<_ACEOF
5330 /* confdefs.h.  */
5331 _ACEOF
5332 cat confdefs.h >>conftest.$ac_ext
5333 cat >>conftest.$ac_ext <<_ACEOF
5334 /* end confdefs.h.  */
5335 @%:@ifdef __STDC__
5336 @%:@ include <limits.h>
5337 @%:@else
5338 @%:@ include <assert.h>
5339 @%:@endif
5340                      Syntax error
5341 _ACEOF
5342 if { (ac_try="$ac_cpp conftest.$ac_ext"
5343 case "(($ac_try" in
5344   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5345   *) ac_try_echo=$ac_try;;
5346 esac
5347 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5348   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5349   ac_status=$?
5350   grep -v '^ *+' conftest.er1 >conftest.err
5351   rm -f conftest.er1
5352   cat conftest.err >&5
5353   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5354   (exit $ac_status); } >/dev/null && {
5355          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5356          test ! -s conftest.err
5357        }; then
5358   :
5359 else
5360   echo "$as_me: failed program was:" >&5
5361 sed 's/^/| /' conftest.$ac_ext >&5
5362
5363   # Broken: fails on valid input.
5364 continue
5365 fi
5366
5367 rm -f conftest.err conftest.$ac_ext
5368
5369   # OK, works on sane cases.  Now check whether nonexistent headers
5370   # can be detected and how.
5371   cat >conftest.$ac_ext <<_ACEOF
5372 /* confdefs.h.  */
5373 _ACEOF
5374 cat confdefs.h >>conftest.$ac_ext
5375 cat >>conftest.$ac_ext <<_ACEOF
5376 /* end confdefs.h.  */
5377 @%:@include <ac_nonexistent.h>
5378 _ACEOF
5379 if { (ac_try="$ac_cpp conftest.$ac_ext"
5380 case "(($ac_try" in
5381   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5382   *) ac_try_echo=$ac_try;;
5383 esac
5384 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5385   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5386   ac_status=$?
5387   grep -v '^ *+' conftest.er1 >conftest.err
5388   rm -f conftest.er1
5389   cat conftest.err >&5
5390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5391   (exit $ac_status); } >/dev/null && {
5392          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5393          test ! -s conftest.err
5394        }; then
5395   # Broken: success on invalid input.
5396 continue
5397 else
5398   echo "$as_me: failed program was:" >&5
5399 sed 's/^/| /' conftest.$ac_ext >&5
5400
5401   # Passes both tests.
5402 ac_preproc_ok=:
5403 break
5404 fi
5405
5406 rm -f conftest.err conftest.$ac_ext
5407
5408 done
5409 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5410 rm -f conftest.err conftest.$ac_ext
5411 if $ac_preproc_ok; then
5412   :
5413 else
5414   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5415 See \`config.log' for more details." >&5
5416 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5417 See \`config.log' for more details." >&2;}
5418    { (exit 1); exit 1; }; }
5419 fi
5420
5421 ac_ext=c
5422 ac_cpp='$CPP $CPPFLAGS'
5423 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5424 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5425 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5426
5427 # Find a good install program.  We prefer a C program (faster),
5428 # so one script is as good as another.  But avoid the broken or
5429 # incompatible versions:
5430 # SysV /etc/install, /usr/sbin/install
5431 # SunOS /usr/etc/install
5432 # IRIX /sbin/install
5433 # AIX /bin/install
5434 # AmigaOS /C/install, which installs bootblocks on floppy discs
5435 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5436 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5437 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5438 # OS/2's system install, which has a completely different semantic
5439 # ./install, which can be erroneously created by make from ./install.sh.
5440 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
5441 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
5442 if test -z "$INSTALL"; then
5443 if test "${ac_cv_path_install+set}" = set; then
5444   echo $ECHO_N "(cached) $ECHO_C" >&6
5445 else
5446   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5447 for as_dir in $PATH
5448 do
5449   IFS=$as_save_IFS
5450   test -z "$as_dir" && as_dir=.
5451   # Account for people who put trailing slashes in PATH elements.
5452 case $as_dir/ in
5453   ./ | .// | /cC/* | \
5454   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5455   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
5456   /usr/ucb/* ) ;;
5457   *)
5458     # OSF1 and SCO ODT 3.0 have their own names for install.
5459     # Don't use installbsd from OSF since it installs stuff as root
5460     # by default.
5461     for ac_prog in ginstall scoinst install; do
5462       for ac_exec_ext in '' $ac_executable_extensions; do
5463         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
5464           if test $ac_prog = install &&
5465             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5466             # AIX install.  It has an incompatible calling convention.
5467             :
5468           elif test $ac_prog = install &&
5469             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5470             # program-specific install script used by HP pwplus--don't use.
5471             :
5472           else
5473             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5474             break 3
5475           fi
5476         fi
5477       done
5478     done
5479     ;;
5480 esac
5481 done
5482 IFS=$as_save_IFS
5483
5484
5485 fi
5486   if test "${ac_cv_path_install+set}" = set; then
5487     INSTALL=$ac_cv_path_install
5488   else
5489     # As a last resort, use the slow shell script.  Don't cache a
5490     # value for INSTALL within a source directory, because that will
5491     # break other packages using the cache if that directory is
5492     # removed, or if the value is a relative name.
5493     INSTALL=$ac_install_sh
5494   fi
5495 fi
5496 { echo "$as_me:$LINENO: result: $INSTALL" >&5
5497 echo "${ECHO_T}$INSTALL" >&6; }
5498
5499 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5500 # It thinks the first close brace ends the variable substitution.
5501 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5502
5503 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5504
5505 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5506
5507 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
5508 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
5509 LN_S=$as_ln_s
5510 if test "$LN_S" = "ln -s"; then
5511   { echo "$as_me:$LINENO: result: yes" >&5
5512 echo "${ECHO_T}yes" >&6; }
5513 else
5514   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5515 echo "${ECHO_T}no, using $LN_S" >&6; }
5516 fi
5517
5518 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5519 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
5520 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
5521 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
5522   echo $ECHO_N "(cached) $ECHO_C" >&6
5523 else
5524   cat >conftest.make <<\_ACEOF
5525 SHELL = /bin/sh
5526 all:
5527         @echo '@@@%%%=$(MAKE)=@@@%%%'
5528 _ACEOF
5529 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5530 case `${MAKE-make} -f conftest.make 2>/dev/null` in
5531   *@@@%%%=?*=@@@%%%*)
5532     eval ac_cv_prog_make_${ac_make}_set=yes;;
5533   *)
5534     eval ac_cv_prog_make_${ac_make}_set=no;;
5535 esac
5536 rm -f conftest.make
5537 fi
5538 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
5539   { echo "$as_me:$LINENO: result: yes" >&5
5540 echo "${ECHO_T}yes" >&6; }
5541   SET_MAKE=
5542 else
5543   { echo "$as_me:$LINENO: result: no" >&5
5544 echo "${ECHO_T}no" >&6; }
5545   SET_MAKE="MAKE=${MAKE-make}"
5546 fi
5547
5548 # Check whether --enable-shared was given.
5549 if test "${enable_shared+set}" = set; then
5550   enableval=$enable_shared; p=${PACKAGE-default}
5551     case $enableval in
5552     yes) enable_shared=yes ;;
5553     no) enable_shared=no ;;
5554     *)
5555       enable_shared=no
5556       # Look at the argument we got.  We use all the common list separators.
5557       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5558       for pkg in $enableval; do
5559         IFS="$lt_save_ifs"
5560         if test "X$pkg" = "X$p"; then
5561           enable_shared=yes
5562         fi
5563       done
5564       IFS="$lt_save_ifs"
5565       ;;
5566     esac
5567 else
5568   enable_shared=yes
5569 fi
5570
5571
5572 # Check whether --enable-static was given.
5573 if test "${enable_static+set}" = set; then
5574   enableval=$enable_static; p=${PACKAGE-default}
5575     case $enableval in
5576     yes) enable_static=yes ;;
5577     no) enable_static=no ;;
5578     *)
5579      enable_static=no
5580       # Look at the argument we got.  We use all the common list separators.
5581       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5582       for pkg in $enableval; do
5583         IFS="$lt_save_ifs"
5584         if test "X$pkg" = "X$p"; then
5585           enable_static=yes
5586         fi
5587       done
5588       IFS="$lt_save_ifs"
5589       ;;
5590     esac
5591 else
5592   enable_static=yes
5593 fi
5594
5595
5596 # Check whether --enable-fast-install was given.
5597 if test "${enable_fast_install+set}" = set; then
5598   enableval=$enable_fast_install; p=${PACKAGE-default}
5599     case $enableval in
5600     yes) enable_fast_install=yes ;;
5601     no) enable_fast_install=no ;;
5602     *)
5603       enable_fast_install=no
5604       # Look at the argument we got.  We use all the common list separators.
5605       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5606       for pkg in $enableval; do
5607         IFS="$lt_save_ifs"
5608         if test "X$pkg" = "X$p"; then
5609           enable_fast_install=yes
5610         fi
5611       done
5612       IFS="$lt_save_ifs"
5613       ;;
5614     esac
5615 else
5616   enable_fast_install=yes
5617 fi
5618
5619
5620 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5621 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
5622 if test "${lt_cv_path_SED+set}" = set; then
5623   echo $ECHO_N "(cached) $ECHO_C" >&6
5624 else
5625   # Loop through the user's path and test for sed and gsed.
5626 # Then use that list of sed's as ones to test for truncation.
5627 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5628 for as_dir in $PATH
5629 do
5630   IFS=$as_save_IFS
5631   test -z "$as_dir" && as_dir=.
5632   for lt_ac_prog in sed gsed; do
5633     for ac_exec_ext in '' $ac_executable_extensions; do
5634       if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
5635         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
5636       fi
5637     done
5638   done
5639 done
5640 lt_ac_max=0
5641 lt_ac_count=0
5642 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
5643 # along with /bin/sed that truncates output.
5644 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
5645   test ! -f $lt_ac_sed && continue
5646   cat /dev/null > conftest.in
5647   lt_ac_count=0
5648   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
5649   # Check for GNU sed and select it if it is found.
5650   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
5651     lt_cv_path_SED=$lt_ac_sed
5652     break
5653   fi
5654   while true; do
5655     cat conftest.in conftest.in >conftest.tmp
5656     mv conftest.tmp conftest.in
5657     cp conftest.in conftest.nl
5658     echo >>conftest.nl
5659     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
5660     cmp -s conftest.out conftest.nl || break
5661     # 10000 chars as input seems more than enough
5662     test $lt_ac_count -gt 10 && break
5663     lt_ac_count=`expr $lt_ac_count + 1`
5664     if test $lt_ac_count -gt $lt_ac_max; then
5665       lt_ac_max=$lt_ac_count
5666       lt_cv_path_SED=$lt_ac_sed
5667     fi
5668   done
5669 done
5670
5671 fi
5672
5673 SED=$lt_cv_path_SED
5674 { echo "$as_me:$LINENO: result: $SED" >&5
5675 echo "${ECHO_T}$SED" >&6; }
5676
5677 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
5678 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
5679 if test "${ac_cv_path_GREP+set}" = set; then
5680   echo $ECHO_N "(cached) $ECHO_C" >&6
5681 else
5682   # Extract the first word of "grep ggrep" to use in msg output
5683 if test -z "$GREP"; then
5684 set dummy grep ggrep; ac_prog_name=$2
5685 if test "${ac_cv_path_GREP+set}" = set; then
5686   echo $ECHO_N "(cached) $ECHO_C" >&6
5687 else
5688   ac_path_GREP_found=false
5689 # Loop through the user's path and test for each of PROGNAME-LIST
5690 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5691 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5692 do
5693   IFS=$as_save_IFS
5694   test -z "$as_dir" && as_dir=.
5695   for ac_prog in grep ggrep; do
5696   for ac_exec_ext in '' $ac_executable_extensions; do
5697     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5698     { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5699     # Check for GNU ac_path_GREP and select it if it is found.
5700   # Check for GNU $ac_path_GREP
5701 case `"$ac_path_GREP" --version 2>&1` in
5702 *GNU*)
5703   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5704 *)
5705   ac_count=0
5706   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5707   while :
5708   do
5709     cat "conftest.in" "conftest.in" >"conftest.tmp"
5710     mv "conftest.tmp" "conftest.in"
5711     cp "conftest.in" "conftest.nl"
5712     echo 'GREP' >> "conftest.nl"
5713     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5714     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5715     ac_count=`expr $ac_count + 1`
5716     if test $ac_count -gt ${ac_path_GREP_max-0}; then
5717       # Best one so far, save it but keep looking for a better one
5718       ac_cv_path_GREP="$ac_path_GREP"
5719       ac_path_GREP_max=$ac_count
5720     fi
5721     # 10*(2^10) chars as input seems more than enough
5722     test $ac_count -gt 10 && break
5723   done
5724   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5725 esac
5726
5727
5728     $ac_path_GREP_found && break 3
5729   done
5730 done
5731
5732 done
5733 IFS=$as_save_IFS
5734
5735
5736 fi
5737
5738 GREP="$ac_cv_path_GREP"
5739 if test -z "$GREP"; then
5740   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5741 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5742    { (exit 1); exit 1; }; }
5743 fi
5744
5745 else
5746   ac_cv_path_GREP=$GREP
5747 fi
5748
5749
5750 fi
5751 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
5752 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
5753  GREP="$ac_cv_path_GREP"
5754  
5755
5756 { echo "$as_me:$LINENO: checking for egrep" >&5
5757 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
5758 if test "${ac_cv_path_EGREP+set}" = set; then
5759   echo $ECHO_N "(cached) $ECHO_C" >&6
5760 else
5761   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5762    then ac_cv_path_EGREP="$GREP -E"
5763    else
5764      # Extract the first word of "egrep" to use in msg output
5765 if test -z "$EGREP"; then
5766 set dummy egrep; ac_prog_name=$2
5767 if test "${ac_cv_path_EGREP+set}" = set; then
5768   echo $ECHO_N "(cached) $ECHO_C" >&6
5769 else
5770   ac_path_EGREP_found=false
5771 # Loop through the user's path and test for each of PROGNAME-LIST
5772 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5773 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5774 do
5775   IFS=$as_save_IFS
5776   test -z "$as_dir" && as_dir=.
5777   for ac_prog in egrep; do
5778   for ac_exec_ext in '' $ac_executable_extensions; do
5779     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5780     { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5781     # Check for GNU ac_path_EGREP and select it if it is found.
5782   # Check for GNU $ac_path_EGREP
5783 case `"$ac_path_EGREP" --version 2>&1` in
5784 *GNU*)
5785   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5786 *)
5787   ac_count=0
5788   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5789   while :
5790   do
5791     cat "conftest.in" "conftest.in" >"conftest.tmp"
5792     mv "conftest.tmp" "conftest.in"
5793     cp "conftest.in" "conftest.nl"
5794     echo 'EGREP' >> "conftest.nl"
5795     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5796     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5797     ac_count=`expr $ac_count + 1`
5798     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5799       # Best one so far, save it but keep looking for a better one
5800       ac_cv_path_EGREP="$ac_path_EGREP"
5801       ac_path_EGREP_max=$ac_count
5802     fi
5803     # 10*(2^10) chars as input seems more than enough
5804     test $ac_count -gt 10 && break
5805   done
5806   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5807 esac
5808
5809
5810     $ac_path_EGREP_found && break 3
5811   done
5812 done
5813
5814 done
5815 IFS=$as_save_IFS
5816
5817
5818 fi
5819
5820 EGREP="$ac_cv_path_EGREP"
5821 if test -z "$EGREP"; then
5822   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5823 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5824    { (exit 1); exit 1; }; }
5825 fi
5826
5827 else
5828   ac_cv_path_EGREP=$EGREP
5829 fi
5830
5831
5832    fi
5833 fi
5834 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
5835 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
5836  EGREP="$ac_cv_path_EGREP"
5837  
5838
5839
5840 # Check whether --with-gnu-ld was given.
5841 if test "${with_gnu_ld+set}" = set; then
5842   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5843 else
5844   with_gnu_ld=no
5845 fi
5846
5847 ac_prog=ld
5848 if test "$GCC" = yes; then
5849   # Check if gcc -print-prog-name=ld gives a path.
5850   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5851 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
5852   case $host in
5853   *-*-mingw*)
5854     # gcc leaves a trailing carriage return which upsets mingw
5855     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5856   *)
5857     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5858   esac
5859   case $ac_prog in
5860     # Accept absolute paths.
5861     [\\/]* | ?:[\\/]*)
5862       re_direlt='/[^/][^/]*/\.\./'
5863       # Canonicalize the pathname of ld
5864       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
5865       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5866         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
5867       done
5868       test -z "$LD" && LD="$ac_prog"
5869       ;;
5870   "")
5871     # If it fails, then pretend we aren't using GCC.
5872     ac_prog=ld
5873     ;;
5874   *)
5875     # If it is relative, then search for the first ld in PATH.
5876     with_gnu_ld=unknown
5877     ;;
5878   esac
5879 elif test "$with_gnu_ld" = yes; then
5880   { echo "$as_me:$LINENO: checking for GNU ld" >&5
5881 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
5882 else
5883   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5884 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
5885 fi
5886 if test "${lt_cv_path_LD+set}" = set; then
5887   echo $ECHO_N "(cached) $ECHO_C" >&6
5888 else
5889   if test -z "$LD"; then
5890   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5891   for ac_dir in $PATH; do
5892     IFS="$lt_save_ifs"
5893     test -z "$ac_dir" && ac_dir=.
5894     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5895       lt_cv_path_LD="$ac_dir/$ac_prog"
5896       # Check to see if the program is GNU ld.  I'd rather use --version,
5897       # but apparently some variants of GNU ld only accept -v.
5898       # Break only if it was the GNU/non-GNU ld that we prefer.
5899       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5900       *GNU* | *'with BFD'*)
5901         test "$with_gnu_ld" != no && break
5902         ;;
5903       *)
5904         test "$with_gnu_ld" != yes && break
5905         ;;
5906       esac
5907     fi
5908   done
5909   IFS="$lt_save_ifs"
5910 else
5911   lt_cv_path_LD="$LD" # Let the user override the test with a path.
5912 fi
5913 fi
5914
5915 LD="$lt_cv_path_LD"
5916 if test -n "$LD"; then
5917   { echo "$as_me:$LINENO: result: $LD" >&5
5918 echo "${ECHO_T}$LD" >&6; }
5919 else
5920   { echo "$as_me:$LINENO: result: no" >&5
5921 echo "${ECHO_T}no" >&6; }
5922 fi
5923 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5924 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5925    { (exit 1); exit 1; }; }
5926 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5927 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
5928 if test "${lt_cv_prog_gnu_ld+set}" = set; then
5929   echo $ECHO_N "(cached) $ECHO_C" >&6
5930 else
5931   # I'd rather use --version here, but apparently some GNU lds only accept -v.
5932 case `$LD -v 2>&1 </dev/null` in
5933 *GNU* | *'with BFD'*)
5934   lt_cv_prog_gnu_ld=yes
5935   ;;
5936 *)
5937   lt_cv_prog_gnu_ld=no
5938   ;;
5939 esac
5940 fi
5941 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5942 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
5943 with_gnu_ld=$lt_cv_prog_gnu_ld
5944
5945
5946 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5947 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
5948 if test "${lt_cv_ld_reload_flag+set}" = set; then
5949   echo $ECHO_N "(cached) $ECHO_C" >&6
5950 else
5951   lt_cv_ld_reload_flag='-r'
5952 fi
5953 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5954 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
5955 reload_flag=$lt_cv_ld_reload_flag
5956 case $reload_flag in
5957 "" | " "*) ;;
5958 *) reload_flag=" $reload_flag" ;;
5959 esac
5960 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5961 case $host_os in
5962   darwin*)
5963     if test "$GCC" = yes; then
5964       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5965     else
5966       reload_cmds='$LD$reload_flag -o $output$reload_objs'
5967     fi
5968     ;;
5969 esac
5970
5971 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5972 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
5973 if test "${lt_cv_path_NM+set}" = set; then
5974   echo $ECHO_N "(cached) $ECHO_C" >&6
5975 else
5976   if test -n "$NM"; then
5977   # Let the user override the test.
5978   lt_cv_path_NM="$NM"
5979 else
5980   lt_nm_to_check="${ac_tool_prefix}nm"
5981   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 
5982     lt_nm_to_check="$lt_nm_to_check nm"
5983   fi
5984   for lt_tmp_nm in $lt_nm_to_check; do
5985     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5986     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5987       IFS="$lt_save_ifs"
5988       test -z "$ac_dir" && ac_dir=.
5989       tmp_nm="$ac_dir/$lt_tmp_nm"
5990       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5991         # Check to see if the nm accepts a BSD-compat flag.
5992         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5993         #   nm: unknown option "B" ignored
5994         # Tru64's nm complains that /dev/null is an invalid object file
5995         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5996         */dev/null* | *'Invalid file or object type'*)
5997           lt_cv_path_NM="$tmp_nm -B"
5998           break
5999           ;;
6000         *)
6001           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6002           */dev/null*)
6003             lt_cv_path_NM="$tmp_nm -p"
6004             break
6005             ;;
6006           *)
6007             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6008             continue # so that we can try to find one that supports BSD flags
6009             ;;
6010           esac
6011           ;;
6012         esac
6013       fi
6014     done
6015     IFS="$lt_save_ifs"
6016   done
6017   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6018 fi
6019 fi
6020 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6021 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
6022 NM="$lt_cv_path_NM"
6023
6024 { echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
6025 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
6026 if test "${lt_cv_deplibs_check_method+set}" = set; then
6027   echo $ECHO_N "(cached) $ECHO_C" >&6
6028 else
6029   lt_cv_file_magic_cmd='$MAGIC_CMD'
6030 lt_cv_file_magic_test_file=
6031 lt_cv_deplibs_check_method='unknown'
6032 # Need to set the preceding variable on all platforms that support
6033 # interlibrary dependencies.
6034 # 'none' -- dependencies not supported.
6035 # `unknown' -- same as none, but documents that we really don't know.
6036 # 'pass_all' -- all dependencies passed with no checks.
6037 # 'test_compile' -- check by making test program.
6038 # 'file_magic [[regex]]' -- check by looking for files in library path
6039 # which responds to the $file_magic_cmd with a given extended regex.
6040 # If you have `file' or equivalent on your system and you're not sure
6041 # whether `pass_all' will *always* work, you probably want this one.
6042
6043 case $host_os in
6044 aix4* | aix5*)
6045   lt_cv_deplibs_check_method=pass_all
6046   ;;
6047
6048 beos*)
6049   lt_cv_deplibs_check_method=pass_all
6050   ;;
6051
6052 bsdi[45]*)
6053   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6054   lt_cv_file_magic_cmd='/usr/bin/file -L'
6055   lt_cv_file_magic_test_file=/shlib/libc.so
6056   ;;
6057
6058 cygwin*)
6059   # func_win32_libid is a shell function defined in ltmain.sh
6060   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6061   lt_cv_file_magic_cmd='func_win32_libid'
6062   ;;
6063
6064 mingw* | pw32*)
6065   # Base MSYS/MinGW do not provide the 'file' command needed by
6066   # func_win32_libid shell function, so use a weaker test based on 'objdump'.
6067   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6068   lt_cv_file_magic_cmd='$OBJDUMP -f'
6069   ;;
6070
6071 darwin* | rhapsody*)
6072   lt_cv_deplibs_check_method=pass_all
6073   ;;
6074
6075 freebsd* | dragonfly*)
6076   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
6077     case $host_cpu in
6078     i*86 )
6079       # Not sure whether the presence of OpenBSD here was a mistake.
6080       # Let's accept both of them until this is cleared up.
6081       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6082       lt_cv_file_magic_cmd=/usr/bin/file
6083       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6084       ;;
6085     esac
6086   else
6087     lt_cv_deplibs_check_method=pass_all
6088   fi
6089   ;;
6090
6091 gnu*)
6092   lt_cv_deplibs_check_method=pass_all
6093   ;;
6094
6095 hpux10.20* | hpux11*)
6096   lt_cv_file_magic_cmd=/usr/bin/file
6097   case $host_cpu in
6098   ia64*)
6099     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6100     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6101     ;;
6102   hppa*64*)
6103     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]'
6104     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6105     ;;
6106   *)
6107     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
6108     lt_cv_file_magic_test_file=/usr/lib/libc.sl
6109     ;;
6110   esac
6111   ;;
6112
6113 interix3*)
6114   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6115   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6116   ;;
6117
6118 irix5* | irix6* | nonstopux*)
6119   case $LD in
6120   *-32|*"-32 ") libmagic=32-bit;;
6121   *-n32|*"-n32 ") libmagic=N32;;
6122   *-64|*"-64 ") libmagic=64-bit;;
6123   *) libmagic=never-match;;
6124   esac
6125   lt_cv_deplibs_check_method=pass_all
6126   ;;
6127
6128 # This must be Linux ELF.
6129 linux* | k*bsd*-gnu)
6130   lt_cv_deplibs_check_method=pass_all
6131   ;;
6132
6133 netbsd* | netbsdelf*-gnu)
6134   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
6135     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6136   else
6137     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6138   fi
6139   ;;
6140
6141 newos6*)
6142   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6143   lt_cv_file_magic_cmd=/usr/bin/file
6144   lt_cv_file_magic_test_file=/usr/lib/libnls.so
6145   ;;
6146
6147 nto-qnx*)
6148   lt_cv_deplibs_check_method=unknown
6149   ;;
6150
6151 openbsd*)
6152   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6153     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6154   else
6155     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6156   fi
6157   ;;
6158
6159 osf3* | osf4* | osf5*)
6160   lt_cv_deplibs_check_method=pass_all
6161   ;;
6162
6163 solaris*)
6164   lt_cv_deplibs_check_method=pass_all
6165   ;;
6166
6167 sysv4 | sysv4.3*)
6168   case $host_vendor in
6169   motorola)
6170     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]'
6171     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6172     ;;
6173   ncr)
6174     lt_cv_deplibs_check_method=pass_all
6175     ;;
6176   sequent)
6177     lt_cv_file_magic_cmd='/bin/file'
6178     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6179     ;;
6180   sni)
6181     lt_cv_file_magic_cmd='/bin/file'
6182     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6183     lt_cv_file_magic_test_file=/lib/libc.so
6184     ;;
6185   siemens)
6186     lt_cv_deplibs_check_method=pass_all
6187     ;;
6188   pc)
6189     lt_cv_deplibs_check_method=pass_all
6190     ;;
6191   esac
6192   ;;
6193
6194 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6195   lt_cv_deplibs_check_method=pass_all
6196   ;;
6197 esac
6198
6199 fi
6200 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
6201 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
6202 file_magic_cmd=$lt_cv_file_magic_cmd
6203 deplibs_check_method=$lt_cv_deplibs_check_method
6204 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6205
6206
6207
6208
6209 # If no C compiler was specified, use CC.
6210 LTCC=${LTCC-"$CC"}
6211
6212 # If no C compiler flags were specified, use CFLAGS.
6213 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6214
6215 # Allow CC to be a program name with arguments.
6216 compiler=$CC
6217
6218 # Check whether --enable-libtool-lock was given.
6219 if test "${enable_libtool_lock+set}" = set; then
6220   enableval=$enable_libtool_lock; 
6221 fi
6222
6223 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6224
6225 # Some flags need to be propagated to the compiler or linker for good
6226 # libtool support.
6227 case $host in
6228 ia64-*-hpux*)
6229   # Find out which ABI we are using.
6230   echo 'int i;' > conftest.$ac_ext
6231   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6232   (eval $ac_compile) 2>&5
6233   ac_status=$?
6234   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6235   (exit $ac_status); }; then
6236     case `/usr/bin/file conftest.$ac_objext` in
6237     *ELF-32*)
6238       HPUX_IA64_MODE="32"
6239       ;;
6240     *ELF-64*)
6241       HPUX_IA64_MODE="64"
6242       ;;
6243     esac
6244   fi
6245   rm -rf conftest*
6246   ;;
6247 *-*-irix6*)
6248   # Find out which ABI we are using.
6249   echo '#line __oline__ "configure"' > conftest.$ac_ext
6250   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6251   (eval $ac_compile) 2>&5
6252   ac_status=$?
6253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6254   (exit $ac_status); }; then
6255    if test "$lt_cv_prog_gnu_ld" = yes; then
6256     case `/usr/bin/file conftest.$ac_objext` in
6257     *32-bit*)
6258       LD="${LD-ld} -melf32bsmip"
6259       ;;
6260     *N32*)
6261       LD="${LD-ld} -melf32bmipn32"
6262       ;;
6263     *64-bit*)
6264       LD="${LD-ld} -melf64bmip"
6265       ;;
6266     esac
6267    else
6268     case `/usr/bin/file conftest.$ac_objext` in
6269     *32-bit*)
6270       LD="${LD-ld} -32"
6271       ;;
6272     *N32*)
6273       LD="${LD-ld} -n32"
6274       ;;
6275     *64-bit*)
6276       LD="${LD-ld} -64"
6277       ;;
6278     esac
6279    fi
6280   fi
6281   rm -rf conftest*
6282   ;;
6283
6284 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
6285   # Find out which ABI we are using.
6286   echo 'int i;' > conftest.$ac_ext
6287   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6288   (eval $ac_compile) 2>&5
6289   ac_status=$?
6290   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6291   (exit $ac_status); }; then
6292     case `/usr/bin/file conftest.o` in
6293     *32-bit*)
6294       case $host in
6295         x86_64-*linux*)
6296           LD="${LD-ld} -m elf_i386"
6297           ;;
6298         ppc64-*linux*|powerpc64-*linux*)
6299           LD="${LD-ld} -m elf32ppclinux"
6300           ;;
6301         s390x-*linux*)
6302           LD="${LD-ld} -m elf_s390"
6303           ;;
6304         sparc64-*linux*)
6305           LD="${LD-ld} -m elf32_sparc"
6306           ;;
6307       esac
6308       ;;
6309     *64-bit*)
6310       case $host in
6311         x86_64-*linux*)
6312           LD="${LD-ld} -m elf_x86_64"
6313           ;;
6314         ppc*-*linux*|powerpc*-*linux*)
6315           LD="${LD-ld} -m elf64ppc"
6316           ;;
6317         s390*-*linux*)
6318           LD="${LD-ld} -m elf64_s390"
6319           ;;
6320         sparc*-*linux*)
6321           LD="${LD-ld} -m elf64_sparc"
6322           ;;
6323       esac
6324       ;;
6325     esac
6326   fi
6327   rm -rf conftest*
6328   ;;
6329
6330 *-*-sco3.2v5*)
6331   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6332   SAVE_CFLAGS="$CFLAGS"
6333   CFLAGS="$CFLAGS -belf"
6334   { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
6335 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
6336 if test "${lt_cv_cc_needs_belf+set}" = set; then
6337   echo $ECHO_N "(cached) $ECHO_C" >&6
6338 else
6339   ac_ext=c
6340 ac_cpp='$CPP $CPPFLAGS'
6341 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6342 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6343 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6344
6345      cat >conftest.$ac_ext <<_ACEOF
6346 /* confdefs.h.  */
6347 _ACEOF
6348 cat confdefs.h >>conftest.$ac_ext
6349 cat >>conftest.$ac_ext <<_ACEOF
6350 /* end confdefs.h.  */
6351
6352 int
6353 main ()
6354 {
6355
6356   ;
6357   return 0;
6358 }
6359 _ACEOF
6360 rm -f conftest.$ac_objext conftest$ac_exeext
6361 if { (ac_try="$ac_link"
6362 case "(($ac_try" in
6363   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6364   *) ac_try_echo=$ac_try;;
6365 esac
6366 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6367   (eval "$ac_link") 2>conftest.er1
6368   ac_status=$?
6369   grep -v '^ *+' conftest.er1 >conftest.err
6370   rm -f conftest.er1
6371   cat conftest.err >&5
6372   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6373   (exit $ac_status); } && {
6374          test -z "$ac_c_werror_flag" ||
6375          test ! -s conftest.err
6376        } && test -s conftest$ac_exeext &&
6377        $as_test_x conftest$ac_exeext; then
6378   lt_cv_cc_needs_belf=yes
6379 else
6380   echo "$as_me: failed program was:" >&5
6381 sed 's/^/| /' conftest.$ac_ext >&5
6382
6383         lt_cv_cc_needs_belf=no
6384 fi
6385
6386 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6387       conftest$ac_exeext conftest.$ac_ext
6388      ac_ext=c
6389 ac_cpp='$CPP $CPPFLAGS'
6390 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6391 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6392 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6393
6394 fi
6395 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
6396 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
6397   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6398     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6399     CFLAGS="$SAVE_CFLAGS"
6400   fi
6401   ;;
6402 sparc*-*solaris*)
6403   # Find out which ABI we are using.
6404   echo 'int i;' > conftest.$ac_ext
6405   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6406   (eval $ac_compile) 2>&5
6407   ac_status=$?
6408   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6409   (exit $ac_status); }; then
6410     case `/usr/bin/file conftest.o` in
6411     *64-bit*)
6412       case $lt_cv_prog_gnu_ld in
6413       yes*) LD="${LD-ld} -m elf64_sparc" ;;
6414       *)    LD="${LD-ld} -64" ;;
6415       esac
6416       ;;
6417     esac
6418   fi
6419   rm -rf conftest*
6420   ;;
6421
6422
6423 esac
6424
6425 need_locks="$enable_libtool_lock"
6426
6427
6428
6429 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6430 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
6431 if test "${ac_cv_header_stdc+set}" = set; then
6432   echo $ECHO_N "(cached) $ECHO_C" >&6
6433 else
6434   cat >conftest.$ac_ext <<_ACEOF
6435 /* confdefs.h.  */
6436 _ACEOF
6437 cat confdefs.h >>conftest.$ac_ext
6438 cat >>conftest.$ac_ext <<_ACEOF
6439 /* end confdefs.h.  */
6440 #include <stdlib.h>
6441 #include <stdarg.h>
6442 #include <string.h>
6443 #include <float.h>
6444
6445 int
6446 main ()
6447 {
6448
6449   ;
6450   return 0;
6451 }
6452 _ACEOF
6453 rm -f conftest.$ac_objext
6454 if { (ac_try="$ac_compile"
6455 case "(($ac_try" in
6456   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6457   *) ac_try_echo=$ac_try;;
6458 esac
6459 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6460   (eval "$ac_compile") 2>conftest.er1
6461   ac_status=$?
6462   grep -v '^ *+' conftest.er1 >conftest.err
6463   rm -f conftest.er1
6464   cat conftest.err >&5
6465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6466   (exit $ac_status); } && {
6467          test -z "$ac_c_werror_flag" ||
6468          test ! -s conftest.err
6469        } && test -s conftest.$ac_objext; then
6470   ac_cv_header_stdc=yes
6471 else
6472   echo "$as_me: failed program was:" >&5
6473 sed 's/^/| /' conftest.$ac_ext >&5
6474
6475         ac_cv_header_stdc=no
6476 fi
6477
6478 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6479
6480 if test $ac_cv_header_stdc = yes; then
6481   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6482   cat >conftest.$ac_ext <<_ACEOF
6483 /* confdefs.h.  */
6484 _ACEOF
6485 cat confdefs.h >>conftest.$ac_ext
6486 cat >>conftest.$ac_ext <<_ACEOF
6487 /* end confdefs.h.  */
6488 #include <string.h>
6489
6490 _ACEOF
6491 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6492   $EGREP "memchr" >/dev/null 2>&1; then
6493   :
6494 else
6495   ac_cv_header_stdc=no
6496 fi
6497 rm -f conftest*
6498
6499 fi
6500
6501 if test $ac_cv_header_stdc = yes; then
6502   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6503   cat >conftest.$ac_ext <<_ACEOF
6504 /* confdefs.h.  */
6505 _ACEOF
6506 cat confdefs.h >>conftest.$ac_ext
6507 cat >>conftest.$ac_ext <<_ACEOF
6508 /* end confdefs.h.  */
6509 #include <stdlib.h>
6510
6511 _ACEOF
6512 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6513   $EGREP "free" >/dev/null 2>&1; then
6514   :
6515 else
6516   ac_cv_header_stdc=no
6517 fi
6518 rm -f conftest*
6519
6520 fi
6521
6522 if test $ac_cv_header_stdc = yes; then
6523   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6524   if test "$cross_compiling" = yes; then
6525   :
6526 else
6527   cat >conftest.$ac_ext <<_ACEOF
6528 /* confdefs.h.  */
6529 _ACEOF
6530 cat confdefs.h >>conftest.$ac_ext
6531 cat >>conftest.$ac_ext <<_ACEOF
6532 /* end confdefs.h.  */
6533 #include <ctype.h>
6534 #include <stdlib.h>
6535 #if ((' ' & 0x0FF) == 0x020)
6536 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6537 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6538 #else
6539 # define ISLOWER(c) \
6540                    (('a' <= (c) && (c) <= 'i') \
6541                      || ('j' <= (c) && (c) <= 'r') \
6542                      || ('s' <= (c) && (c) <= 'z'))
6543 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6544 #endif
6545
6546 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6547 int
6548 main ()
6549 {
6550   int i;
6551   for (i = 0; i < 256; i++)
6552     if (XOR (islower (i), ISLOWER (i))
6553         || toupper (i) != TOUPPER (i))
6554       return 2;
6555   return 0;
6556 }
6557 _ACEOF
6558 rm -f conftest$ac_exeext
6559 if { (ac_try="$ac_link"
6560 case "(($ac_try" in
6561   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6562   *) ac_try_echo=$ac_try;;
6563 esac
6564 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6565   (eval "$ac_link") 2>&5
6566   ac_status=$?
6567   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6568   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6569   { (case "(($ac_try" in
6570   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6571   *) ac_try_echo=$ac_try;;
6572 esac
6573 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6574   (eval "$ac_try") 2>&5
6575   ac_status=$?
6576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6577   (exit $ac_status); }; }; then
6578   :
6579 else
6580   echo "$as_me: program exited with status $ac_status" >&5
6581 echo "$as_me: failed program was:" >&5
6582 sed 's/^/| /' conftest.$ac_ext >&5
6583
6584 ( exit $ac_status )
6585 ac_cv_header_stdc=no
6586 fi
6587 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6588 fi
6589
6590
6591 fi
6592 fi
6593 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6594 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
6595 if test $ac_cv_header_stdc = yes; then
6596   
6597 cat >>confdefs.h <<\_ACEOF
6598 @%:@define STDC_HEADERS 1
6599 _ACEOF
6600
6601 fi
6602
6603 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6604
6605
6606
6607
6608
6609
6610
6611
6612
6613 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6614                   inttypes.h stdint.h unistd.h
6615 do
6616 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6617 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6618 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6619 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6620   echo $ECHO_N "(cached) $ECHO_C" >&6
6621 else
6622   cat >conftest.$ac_ext <<_ACEOF
6623 /* confdefs.h.  */
6624 _ACEOF
6625 cat confdefs.h >>conftest.$ac_ext
6626 cat >>conftest.$ac_ext <<_ACEOF
6627 /* end confdefs.h.  */
6628 $ac_includes_default
6629
6630 @%:@include <$ac_header>
6631 _ACEOF
6632 rm -f conftest.$ac_objext
6633 if { (ac_try="$ac_compile"
6634 case "(($ac_try" in
6635   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6636   *) ac_try_echo=$ac_try;;
6637 esac
6638 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6639   (eval "$ac_compile") 2>conftest.er1
6640   ac_status=$?
6641   grep -v '^ *+' conftest.er1 >conftest.err
6642   rm -f conftest.er1
6643   cat conftest.err >&5
6644   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6645   (exit $ac_status); } && {
6646          test -z "$ac_c_werror_flag" ||
6647          test ! -s conftest.err
6648        } && test -s conftest.$ac_objext; then
6649   eval "$as_ac_Header=yes"
6650 else
6651   echo "$as_me: failed program was:" >&5
6652 sed 's/^/| /' conftest.$ac_ext >&5
6653
6654         eval "$as_ac_Header=no"
6655 fi
6656
6657 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6658 fi
6659 ac_res=`eval echo '${'$as_ac_Header'}'`
6660                { echo "$as_me:$LINENO: result: $ac_res" >&5
6661 echo "${ECHO_T}$ac_res" >&6; }
6662 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6663   cat >>confdefs.h <<_ACEOF
6664 @%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6665 _ACEOF
6666  
6667 fi
6668
6669 done
6670
6671
6672
6673 for ac_header in dlfcn.h
6674 do
6675 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6676 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6677   { echo "$as_me:$LINENO: checking for $ac_header" >&5
6678 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6679 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6680   echo $ECHO_N "(cached) $ECHO_C" >&6
6681 fi
6682 ac_res=`eval echo '${'$as_ac_Header'}'`
6683                { echo "$as_me:$LINENO: result: $ac_res" >&5
6684 echo "${ECHO_T}$ac_res" >&6; }
6685 else
6686   # Is the header compilable?
6687 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6688 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6689 cat >conftest.$ac_ext <<_ACEOF
6690 /* confdefs.h.  */
6691 _ACEOF
6692 cat confdefs.h >>conftest.$ac_ext
6693 cat >>conftest.$ac_ext <<_ACEOF
6694 /* end confdefs.h.  */
6695 $ac_includes_default
6696 @%:@include <$ac_header>
6697 _ACEOF
6698 rm -f conftest.$ac_objext
6699 if { (ac_try="$ac_compile"
6700 case "(($ac_try" in
6701   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6702   *) ac_try_echo=$ac_try;;
6703 esac
6704 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6705   (eval "$ac_compile") 2>conftest.er1
6706   ac_status=$?
6707   grep -v '^ *+' conftest.er1 >conftest.err
6708   rm -f conftest.er1
6709   cat conftest.err >&5
6710   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6711   (exit $ac_status); } && {
6712          test -z "$ac_c_werror_flag" ||
6713          test ! -s conftest.err
6714        } && test -s conftest.$ac_objext; then
6715   ac_header_compiler=yes
6716 else
6717   echo "$as_me: failed program was:" >&5
6718 sed 's/^/| /' conftest.$ac_ext >&5
6719
6720         ac_header_compiler=no
6721 fi
6722
6723 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6724 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6725 echo "${ECHO_T}$ac_header_compiler" >&6; }
6726
6727 # Is the header present?
6728 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6729 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6730 cat >conftest.$ac_ext <<_ACEOF
6731 /* confdefs.h.  */
6732 _ACEOF
6733 cat confdefs.h >>conftest.$ac_ext
6734 cat >>conftest.$ac_ext <<_ACEOF
6735 /* end confdefs.h.  */
6736 @%:@include <$ac_header>
6737 _ACEOF
6738 if { (ac_try="$ac_cpp conftest.$ac_ext"
6739 case "(($ac_try" in
6740   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6741   *) ac_try_echo=$ac_try;;
6742 esac
6743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6744   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6745   ac_status=$?
6746   grep -v '^ *+' conftest.er1 >conftest.err
6747   rm -f conftest.er1
6748   cat conftest.err >&5
6749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6750   (exit $ac_status); } >/dev/null && {
6751          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6752          test ! -s conftest.err
6753        }; then
6754   ac_header_preproc=yes
6755 else
6756   echo "$as_me: failed program was:" >&5
6757 sed 's/^/| /' conftest.$ac_ext >&5
6758
6759   ac_header_preproc=no
6760 fi
6761
6762 rm -f conftest.err conftest.$ac_ext
6763 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6764 echo "${ECHO_T}$ac_header_preproc" >&6; }
6765
6766 # So?  What about this header?
6767 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6768   yes:no: )
6769     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6770 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6771     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6772 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6773     ac_header_preproc=yes
6774     ;;
6775   no:yes:* )
6776     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6777 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6778     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6779 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6780     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6781 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6782     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6783 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6784     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6785 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6786     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6787 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6788     ( cat <<\_ASBOX
6789 @%:@@%:@ ------------------------------- @%:@@%:@
6790 @%:@@%:@ Report this to nfs@lists.sf.net @%:@@%:@
6791 @%:@@%:@ ------------------------------- @%:@@%:@
6792 _ASBOX
6793      ) | sed "s/^/$as_me: WARNING:     /" >&2
6794     ;;
6795 esac
6796 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6797 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6798 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6799   echo $ECHO_N "(cached) $ECHO_C" >&6
6800 else
6801   eval "$as_ac_Header=\$ac_header_preproc"
6802 fi
6803 ac_res=`eval echo '${'$as_ac_Header'}'`
6804                { echo "$as_me:$LINENO: result: $ac_res" >&5
6805 echo "${ECHO_T}$ac_res" >&6; }
6806
6807 fi
6808 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6809   cat >>confdefs.h <<_ACEOF
6810 @%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6811 _ACEOF
6812  
6813 fi
6814
6815 done
6816
6817
6818
6819 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
6820     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
6821     (test "X$CXX" != "Xg++"))) ; then
6822   ac_ext=cpp
6823 ac_cpp='$CXXCPP $CPPFLAGS'
6824 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6825 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6826 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6827 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
6828 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
6829 if test -z "$CXXCPP"; then
6830   if test "${ac_cv_prog_CXXCPP+set}" = set; then
6831   echo $ECHO_N "(cached) $ECHO_C" >&6
6832 else
6833       # Double quotes because CXXCPP needs to be expanded
6834     for CXXCPP in "$CXX -E" "/lib/cpp"
6835     do
6836       ac_preproc_ok=false
6837 for ac_cxx_preproc_warn_flag in '' yes
6838 do
6839   # Use a header file that comes with gcc, so configuring glibc
6840   # with a fresh cross-compiler works.
6841   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6842   # <limits.h> exists even on freestanding compilers.
6843   # On the NeXT, cc -E runs the code through the compiler's parser,
6844   # not just through cpp. "Syntax error" is here to catch this case.
6845   cat >conftest.$ac_ext <<_ACEOF
6846 /* confdefs.h.  */
6847 _ACEOF
6848 cat confdefs.h >>conftest.$ac_ext
6849 cat >>conftest.$ac_ext <<_ACEOF
6850 /* end confdefs.h.  */
6851 @%:@ifdef __STDC__
6852 @%:@ include <limits.h>
6853 @%:@else
6854 @%:@ include <assert.h>
6855 @%:@endif
6856                      Syntax error
6857 _ACEOF
6858 if { (ac_try="$ac_cpp conftest.$ac_ext"
6859 case "(($ac_try" in
6860   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6861   *) ac_try_echo=$ac_try;;
6862 esac
6863 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6864   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6865   ac_status=$?
6866   grep -v '^ *+' conftest.er1 >conftest.err
6867   rm -f conftest.er1
6868   cat conftest.err >&5
6869   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6870   (exit $ac_status); } >/dev/null && {
6871          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6872          test ! -s conftest.err
6873        }; then
6874   :
6875 else
6876   echo "$as_me: failed program was:" >&5
6877 sed 's/^/| /' conftest.$ac_ext >&5
6878
6879   # Broken: fails on valid input.
6880 continue
6881 fi
6882
6883 rm -f conftest.err conftest.$ac_ext
6884
6885   # OK, works on sane cases.  Now check whether nonexistent headers
6886   # can be detected and how.
6887   cat >conftest.$ac_ext <<_ACEOF
6888 /* confdefs.h.  */
6889 _ACEOF
6890 cat confdefs.h >>conftest.$ac_ext
6891 cat >>conftest.$ac_ext <<_ACEOF
6892 /* end confdefs.h.  */
6893 @%:@include <ac_nonexistent.h>
6894 _ACEOF
6895 if { (ac_try="$ac_cpp conftest.$ac_ext"
6896 case "(($ac_try" in
6897   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6898   *) ac_try_echo=$ac_try;;
6899 esac
6900 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6901   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6902   ac_status=$?
6903   grep -v '^ *+' conftest.er1 >conftest.err
6904   rm -f conftest.er1
6905   cat conftest.err >&5
6906   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6907   (exit $ac_status); } >/dev/null && {
6908          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6909          test ! -s conftest.err
6910        }; then
6911   # Broken: success on invalid input.
6912 continue
6913 else
6914   echo "$as_me: failed program was:" >&5
6915 sed 's/^/| /' conftest.$ac_ext >&5
6916
6917   # Passes both tests.
6918 ac_preproc_ok=:
6919 break
6920 fi
6921
6922 rm -f conftest.err conftest.$ac_ext
6923
6924 done
6925 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6926 rm -f conftest.err conftest.$ac_ext
6927 if $ac_preproc_ok; then
6928   break
6929 fi
6930
6931     done
6932     ac_cv_prog_CXXCPP=$CXXCPP
6933   
6934 fi
6935   CXXCPP=$ac_cv_prog_CXXCPP
6936 else
6937   ac_cv_prog_CXXCPP=$CXXCPP
6938 fi
6939 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
6940 echo "${ECHO_T}$CXXCPP" >&6; }
6941 ac_preproc_ok=false
6942 for ac_cxx_preproc_warn_flag in '' yes
6943 do
6944   # Use a header file that comes with gcc, so configuring glibc
6945   # with a fresh cross-compiler works.
6946   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6947   # <limits.h> exists even on freestanding compilers.
6948   # On the NeXT, cc -E runs the code through the compiler's parser,
6949   # not just through cpp. "Syntax error" is here to catch this case.
6950   cat >conftest.$ac_ext <<_ACEOF
6951 /* confdefs.h.  */
6952 _ACEOF
6953 cat confdefs.h >>conftest.$ac_ext
6954 cat >>conftest.$ac_ext <<_ACEOF
6955 /* end confdefs.h.  */
6956 @%:@ifdef __STDC__
6957 @%:@ include <limits.h>
6958 @%:@else
6959 @%:@ include <assert.h>
6960 @%:@endif
6961                      Syntax error
6962 _ACEOF
6963 if { (ac_try="$ac_cpp conftest.$ac_ext"
6964 case "(($ac_try" in
6965   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6966   *) ac_try_echo=$ac_try;;
6967 esac
6968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6969   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6970   ac_status=$?
6971   grep -v '^ *+' conftest.er1 >conftest.err
6972   rm -f conftest.er1
6973   cat conftest.err >&5
6974   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6975   (exit $ac_status); } >/dev/null && {
6976          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6977          test ! -s conftest.err
6978        }; then
6979   :
6980 else
6981   echo "$as_me: failed program was:" >&5
6982 sed 's/^/| /' conftest.$ac_ext >&5
6983
6984   # Broken: fails on valid input.
6985 continue
6986 fi
6987
6988 rm -f conftest.err conftest.$ac_ext
6989
6990   # OK, works on sane cases.  Now check whether nonexistent headers
6991   # can be detected and how.
6992   cat >conftest.$ac_ext <<_ACEOF
6993 /* confdefs.h.  */
6994 _ACEOF
6995 cat confdefs.h >>conftest.$ac_ext
6996 cat >>conftest.$ac_ext <<_ACEOF
6997 /* end confdefs.h.  */
6998 @%:@include <ac_nonexistent.h>
6999 _ACEOF
7000 if { (ac_try="$ac_cpp conftest.$ac_ext"
7001 case "(($ac_try" in
7002   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7003   *) ac_try_echo=$ac_try;;
7004 esac
7005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7006   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7007   ac_status=$?
7008   grep -v '^ *+' conftest.er1 >conftest.err
7009   rm -f conftest.er1
7010   cat conftest.err >&5
7011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7012   (exit $ac_status); } >/dev/null && {
7013          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
7014          test ! -s conftest.err
7015        }; then
7016   # Broken: success on invalid input.
7017 continue
7018 else
7019   echo "$as_me: failed program was:" >&5
7020 sed 's/^/| /' conftest.$ac_ext >&5
7021
7022   # Passes both tests.
7023 ac_preproc_ok=:
7024 break
7025 fi
7026
7027 rm -f conftest.err conftest.$ac_ext
7028
7029 done
7030 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7031 rm -f conftest.err conftest.$ac_ext
7032 if $ac_preproc_ok; then
7033   :
7034 else
7035   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
7036 See \`config.log' for more details." >&5
7037 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
7038 See \`config.log' for more details." >&2;}
7039    { (exit 1); exit 1; }; }
7040 fi
7041
7042 ac_ext=cpp
7043 ac_cpp='$CXXCPP $CPPFLAGS'
7044 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7045 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7046 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7047
7048 fi
7049
7050
7051 ac_ext=f
7052 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
7053 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7054 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
7055 if test -n "$ac_tool_prefix"; then
7056   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
7057   do
7058     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7059 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7060 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7061 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7062 if test "${ac_cv_prog_F77+set}" = set; then
7063   echo $ECHO_N "(cached) $ECHO_C" >&6
7064 else
7065   if test -n "$F77"; then
7066   ac_cv_prog_F77="$F77" # Let the user override the test.
7067 else
7068 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7069 for as_dir in $PATH
7070 do
7071   IFS=$as_save_IFS
7072   test -z "$as_dir" && as_dir=.
7073   for ac_exec_ext in '' $ac_executable_extensions; do
7074   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7075     ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
7076     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7077     break 2
7078   fi
7079 done
7080 done
7081 IFS=$as_save_IFS
7082
7083 fi
7084 fi
7085 F77=$ac_cv_prog_F77
7086 if test -n "$F77"; then
7087   { echo "$as_me:$LINENO: result: $F77" >&5
7088 echo "${ECHO_T}$F77" >&6; }
7089 else
7090   { echo "$as_me:$LINENO: result: no" >&5
7091 echo "${ECHO_T}no" >&6; }
7092 fi
7093
7094
7095     test -n "$F77" && break
7096   done
7097 fi
7098 if test -z "$F77"; then
7099   ac_ct_F77=$F77
7100   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
7101 do
7102   # Extract the first word of "$ac_prog", so it can be a program name with args.
7103 set dummy $ac_prog; ac_word=$2
7104 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7105 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7106 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
7107   echo $ECHO_N "(cached) $ECHO_C" >&6
7108 else
7109   if test -n "$ac_ct_F77"; then
7110   ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
7111 else
7112 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7113 for as_dir in $PATH
7114 do
7115   IFS=$as_save_IFS
7116   test -z "$as_dir" && as_dir=.
7117   for ac_exec_ext in '' $ac_executable_extensions; do
7118   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7119     ac_cv_prog_ac_ct_F77="$ac_prog"
7120     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7121     break 2
7122   fi
7123 done
7124 done
7125 IFS=$as_save_IFS
7126
7127 fi
7128 fi
7129 ac_ct_F77=$ac_cv_prog_ac_ct_F77
7130 if test -n "$ac_ct_F77"; then
7131   { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
7132 echo "${ECHO_T}$ac_ct_F77" >&6; }
7133 else
7134   { echo "$as_me:$LINENO: result: no" >&5
7135 echo "${ECHO_T}no" >&6; }
7136 fi
7137
7138
7139   test -n "$ac_ct_F77" && break
7140 done
7141
7142   if test "x$ac_ct_F77" = x; then
7143     F77=""
7144   else
7145     case $cross_compiling:$ac_tool_warned in
7146 yes:)
7147 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7148 whose name does not start with the host triplet.  If you think this
7149 configuration is useful to you, please write to autoconf@gnu.org." >&5
7150 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7151 whose name does not start with the host triplet.  If you think this
7152 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7153 ac_tool_warned=yes ;;
7154 esac
7155     F77=$ac_ct_F77
7156   fi
7157 fi
7158
7159
7160 # Provide some information about the compiler.
7161 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
7162 ac_compiler=`set X $ac_compile; echo $2`
7163 { (ac_try="$ac_compiler --version >&5"
7164 case "(($ac_try" in
7165   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7166   *) ac_try_echo=$ac_try;;
7167 esac
7168 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7169   (eval "$ac_compiler --version >&5") 2>&5
7170   ac_status=$?
7171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7172   (exit $ac_status); }
7173 { (ac_try="$ac_compiler -v >&5"
7174 case "(($ac_try" in
7175   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7176   *) ac_try_echo=$ac_try;;
7177 esac
7178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7179   (eval "$ac_compiler -v >&5") 2>&5
7180   ac_status=$?
7181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7182   (exit $ac_status); }
7183 { (ac_try="$ac_compiler -V >&5"
7184 case "(($ac_try" in
7185   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7186   *) ac_try_echo=$ac_try;;
7187 esac
7188 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7189   (eval "$ac_compiler -V >&5") 2>&5
7190   ac_status=$?
7191   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7192   (exit $ac_status); }
7193 rm -f a.out
7194
7195 # If we don't use `.F' as extension, the preprocessor is not run on the
7196 # input file.  (Note that this only needs to work for GNU compilers.)
7197 ac_save_ext=$ac_ext
7198 ac_ext=F
7199 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
7200 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
7201 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
7202   echo $ECHO_N "(cached) $ECHO_C" >&6
7203 else
7204   cat >conftest.$ac_ext <<_ACEOF
7205       program main
7206 #ifndef __GNUC__
7207        choke me
7208 #endif
7209
7210       end
7211 _ACEOF
7212 rm -f conftest.$ac_objext
7213 if { (ac_try="$ac_compile"
7214 case "(($ac_try" in
7215   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7216   *) ac_try_echo=$ac_try;;
7217 esac
7218 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7219   (eval "$ac_compile") 2>conftest.er1
7220   ac_status=$?
7221   grep -v '^ *+' conftest.er1 >conftest.err
7222   rm -f conftest.er1
7223   cat conftest.err >&5
7224   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7225   (exit $ac_status); } && {
7226          test -z "$ac_f77_werror_flag" ||
7227          test ! -s conftest.err
7228        } && test -s conftest.$ac_objext; then
7229   ac_compiler_gnu=yes
7230 else
7231   echo "$as_me: failed program was:" >&5
7232 sed 's/^/| /' conftest.$ac_ext >&5
7233
7234         ac_compiler_gnu=no
7235 fi
7236
7237 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7238 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
7239
7240 fi
7241 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
7242 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
7243 ac_ext=$ac_save_ext
7244 ac_test_FFLAGS=${FFLAGS+set}
7245 ac_save_FFLAGS=$FFLAGS
7246 FFLAGS=
7247 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
7248 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
7249 if test "${ac_cv_prog_f77_g+set}" = set; then
7250   echo $ECHO_N "(cached) $ECHO_C" >&6
7251 else
7252   FFLAGS=-g
7253 cat >conftest.$ac_ext <<_ACEOF
7254       program main
7255
7256       end
7257 _ACEOF
7258 rm -f conftest.$ac_objext
7259 if { (ac_try="$ac_compile"
7260 case "(($ac_try" in
7261   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7262   *) ac_try_echo=$ac_try;;
7263 esac
7264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7265   (eval "$ac_compile") 2>conftest.er1
7266   ac_status=$?
7267   grep -v '^ *+' conftest.er1 >conftest.err
7268   rm -f conftest.er1
7269   cat conftest.err >&5
7270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7271   (exit $ac_status); } && {
7272          test -z "$ac_f77_werror_flag" ||
7273          test ! -s conftest.err
7274        } && test -s conftest.$ac_objext; then
7275   ac_cv_prog_f77_g=yes
7276 else
7277   echo "$as_me: failed program was:" >&5
7278 sed 's/^/| /' conftest.$ac_ext >&5
7279
7280         ac_cv_prog_f77_g=no
7281 fi
7282
7283 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7284
7285 fi
7286 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
7287 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
7288 if test "$ac_test_FFLAGS" = set; then
7289   FFLAGS=$ac_save_FFLAGS
7290 elif test $ac_cv_prog_f77_g = yes; then
7291   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
7292     FFLAGS="-g -O2"
7293   else
7294     FFLAGS="-g"
7295   fi
7296 else
7297   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
7298     FFLAGS="-O2"
7299   else
7300     FFLAGS=
7301   fi
7302 fi
7303
7304 G77=`test $ac_compiler_gnu = yes && echo yes`
7305 ac_ext=c
7306 ac_cpp='$CPP $CPPFLAGS'
7307 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7308 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7309 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7310
7311
7312
7313 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
7314
7315 # find the maximum length of command line arguments
7316 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
7317 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
7318 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
7319   echo $ECHO_N "(cached) $ECHO_C" >&6
7320 else
7321     i=0
7322   teststring="ABCD"
7323
7324   case $build_os in
7325   msdosdjgpp*)
7326     # On DJGPP, this test can blow up pretty badly due to problems in libc
7327     # (any single argument exceeding 2000 bytes causes a buffer overrun
7328     # during glob expansion).  Even if it were fixed, the result of this
7329     # check would be larger than it should be.
7330     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
7331     ;;
7332
7333   gnu*)
7334     # Under GNU Hurd, this test is not required because there is
7335     # no limit to the length of command line arguments.
7336     # Libtool will interpret -1 as no limit whatsoever
7337     lt_cv_sys_max_cmd_len=-1;
7338     ;;
7339
7340   cygwin* | mingw*)
7341     # On Win9x/ME, this test blows up -- it succeeds, but takes
7342     # about 5 minutes as the teststring grows exponentially.
7343     # Worse, since 9x/ME are not pre-emptively multitasking,
7344     # you end up with a "frozen" computer, even though with patience
7345     # the test eventually succeeds (with a max line length of 256k).
7346     # Instead, let's just punt: use the minimum linelength reported by
7347     # all of the supported platforms: 8192 (on NT/2K/XP).
7348     lt_cv_sys_max_cmd_len=8192;
7349     ;;
7350
7351   amigaos*)
7352     # On AmigaOS with pdksh, this test takes hours, literally.
7353     # So we just punt and use a minimum line length of 8192.
7354     lt_cv_sys_max_cmd_len=8192;
7355     ;;
7356
7357   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
7358     # This has been around since 386BSD, at least.  Likely further.
7359     if test -x /sbin/sysctl; then
7360       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7361     elif test -x /usr/sbin/sysctl; then
7362       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7363     else
7364       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
7365     fi
7366     # And add a safety zone
7367     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7368     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7369     ;;
7370
7371   interix*)
7372     # We know the value 262144 and hardcode it with a safety zone (like BSD)
7373     lt_cv_sys_max_cmd_len=196608
7374     ;;
7375
7376   osf*)
7377     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7378     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7379     # nice to cause kernel panics so lets avoid the loop below.
7380     # First set a reasonable default.
7381     lt_cv_sys_max_cmd_len=16384
7382     #
7383     if test -x /sbin/sysconfig; then
7384       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7385         *1*) lt_cv_sys_max_cmd_len=-1 ;;
7386       esac
7387     fi
7388     ;;
7389   sco3.2v5*)
7390     lt_cv_sys_max_cmd_len=102400
7391     ;;
7392   sysv5* | sco5v6* | sysv4.2uw2*)
7393     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
7394     if test -n "$kargmax"; then
7395       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
7396     else
7397       lt_cv_sys_max_cmd_len=32768
7398     fi
7399     ;;
7400   *)
7401     # If test is not a shell built-in, we'll probably end up computing a
7402     # maximum length that is only half of the actual maximum length, but
7403     # we can't tell.
7404     SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7405     while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
7406                = "XX$teststring") >/dev/null 2>&1 &&
7407             new_result=`expr "X$teststring" : ".*" 2>&1` &&
7408             lt_cv_sys_max_cmd_len=$new_result &&
7409             test $i != 17 # 1/2 MB should be enough
7410     do
7411       i=`expr $i + 1`
7412       teststring=$teststring$teststring
7413     done
7414     teststring=
7415     # Add a significant safety factor because C++ compilers can tack on massive
7416     # amounts of additional arguments before passing them to the linker.
7417     # It appears as though 1/2 is a usable value.
7418     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7419     ;;
7420   esac
7421
7422 fi
7423
7424 if test -n $lt_cv_sys_max_cmd_len ; then
7425   { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
7426 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
7427 else
7428   { echo "$as_me:$LINENO: result: none" >&5
7429 echo "${ECHO_T}none" >&6; }
7430 fi
7431
7432
7433
7434
7435 # Check for command to grab the raw symbol name followed by C symbol from nm.
7436 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
7437 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
7438 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
7439   echo $ECHO_N "(cached) $ECHO_C" >&6
7440 else
7441   
7442 # These are sane defaults that work on at least a few old systems.
7443 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
7444
7445 # Character class describing NM global symbol codes.
7446 symcode='[BCDEGRST]'
7447
7448 # Regexp to match symbols that can be accessed directly from C.
7449 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7450
7451 # Transform an extracted symbol line into a proper C declaration
7452 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
7453
7454 # Transform an extracted symbol line into symbol name and symbol address
7455 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'"
7456
7457 # Define system-specific variables.
7458 case $host_os in
7459 aix*)
7460   symcode='[BCDT]'
7461   ;;
7462 cygwin* | mingw* | pw32*)
7463   symcode='[ABCDGISTW]'
7464   ;;
7465 hpux*) # Its linker distinguishes data from code symbols
7466   if test "$host_cpu" = ia64; then
7467     symcode='[ABCDEGRST]'
7468   fi
7469   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7470   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'"
7471   ;;
7472 linux* | k*bsd*-gnu)
7473   if test "$host_cpu" = ia64; then
7474     symcode='[ABCDGIRSTW]'
7475     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7476     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'"
7477   fi
7478   ;;
7479 irix* | nonstopux*)
7480   symcode='[BCDEGRST]'
7481   ;;
7482 osf*)
7483   symcode='[BCDEGQRST]'
7484   ;;
7485 solaris*)
7486   symcode='[BDRT]'
7487   ;;
7488 sco3.2v5*)
7489   symcode='[DT]'
7490   ;;
7491 sysv4.2uw2*)
7492   symcode='[DT]'
7493   ;;
7494 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7495   symcode='[ABDT]'
7496   ;;
7497 sysv4)
7498   symcode='[DFNSTU]'
7499   ;;
7500 esac
7501
7502 # Handle CRLF in mingw tool chain
7503 opt_cr=
7504 case $build_os in
7505 mingw*)
7506   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7507   ;;
7508 esac
7509
7510 # If we're using GNU nm, then use its standard symbol codes.
7511 case `$NM -V 2>&1` in
7512 *GNU* | *'with BFD'*)
7513   symcode='[ABCDGIRSTW]' ;;
7514 esac
7515
7516 # Try without a prefix undercore, then with it.
7517 for ac_symprfx in "" "_"; do
7518
7519   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7520   symxfrm="\\1 $ac_symprfx\\2 \\2"
7521
7522   # Write the raw and C identifiers.
7523   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7524
7525   # Check to see that the pipe works correctly.
7526   pipe_works=no
7527
7528   rm -f conftest*
7529   cat > conftest.$ac_ext <<EOF
7530 #ifdef __cplusplus
7531 extern "C" {
7532 #endif
7533 char nm_test_var;
7534 void nm_test_func(){}
7535 #ifdef __cplusplus
7536 }
7537 #endif
7538 int main(){nm_test_var='a';nm_test_func();return(0);}
7539 EOF
7540
7541   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7542   (eval $ac_compile) 2>&5
7543   ac_status=$?
7544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7545   (exit $ac_status); }; then
7546     # Now try to grab the symbols.
7547     nlist=conftest.nm
7548     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7549   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7550   ac_status=$?
7551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7552   (exit $ac_status); } && test -s "$nlist"; then
7553       # Try sorting and uniquifying the output.
7554       if sort "$nlist" | uniq > "$nlist"T; then
7555         mv -f "$nlist"T "$nlist"
7556       else
7557         rm -f "$nlist"T
7558       fi
7559
7560       # Make sure that we snagged all the symbols we need.
7561       if grep ' nm_test_var$' "$nlist" >/dev/null; then
7562         if grep ' nm_test_func$' "$nlist" >/dev/null; then
7563           cat <<EOF > conftest.$ac_ext
7564 #ifdef __cplusplus
7565 extern "C" {
7566 #endif
7567
7568 EOF
7569           # Now generate the symbol file.
7570           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
7571
7572           cat <<EOF >> conftest.$ac_ext
7573 #if defined (__STDC__) && __STDC__
7574 # define lt_ptr_t void *
7575 #else
7576 # define lt_ptr_t char *
7577 # define const
7578 #endif
7579
7580 /* The mapping between symbol names and symbols. */
7581 const struct {
7582   const char *name;
7583   lt_ptr_t address;
7584 }
7585 lt_preloaded_symbols[] =
7586 {
7587 EOF
7588           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
7589           cat <<\EOF >> conftest.$ac_ext
7590   {0, (lt_ptr_t) 0}
7591 };
7592
7593 #ifdef __cplusplus
7594 }
7595 #endif
7596 EOF
7597           # Now try linking the two files.
7598           mv conftest.$ac_objext conftstm.$ac_objext
7599           lt_save_LIBS="$LIBS"
7600           lt_save_CFLAGS="$CFLAGS"
7601           LIBS="conftstm.$ac_objext"
7602           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7603           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7604   (eval $ac_link) 2>&5
7605   ac_status=$?
7606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7607   (exit $ac_status); } && test -s conftest${ac_exeext}; then
7608             pipe_works=yes
7609           fi
7610           LIBS="$lt_save_LIBS"
7611           CFLAGS="$lt_save_CFLAGS"
7612         else
7613           echo "cannot find nm_test_func in $nlist" >&5
7614         fi
7615       else
7616         echo "cannot find nm_test_var in $nlist" >&5
7617       fi
7618     else
7619       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7620     fi
7621   else
7622     echo "$progname: failed program was:" >&5
7623     cat conftest.$ac_ext >&5
7624   fi
7625   rm -f conftest* conftst*
7626
7627   # Do not use the global_symbol_pipe unless it works.
7628   if test "$pipe_works" = yes; then
7629     break
7630   else
7631     lt_cv_sys_global_symbol_pipe=
7632   fi
7633 done
7634
7635 fi
7636
7637 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7638   lt_cv_sys_global_symbol_to_cdecl=
7639 fi
7640 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7641   { echo "$as_me:$LINENO: result: failed" >&5
7642 echo "${ECHO_T}failed" >&6; }
7643 else
7644   { echo "$as_me:$LINENO: result: ok" >&5
7645 echo "${ECHO_T}ok" >&6; }
7646 fi
7647
7648 { echo "$as_me:$LINENO: checking for objdir" >&5
7649 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
7650 if test "${lt_cv_objdir+set}" = set; then
7651   echo $ECHO_N "(cached) $ECHO_C" >&6
7652 else
7653   rm -f .libs 2>/dev/null
7654 mkdir .libs 2>/dev/null
7655 if test -d .libs; then
7656   lt_cv_objdir=.libs
7657 else
7658   # MS-DOS does not allow filenames that begin with a dot.
7659   lt_cv_objdir=_libs
7660 fi
7661 rmdir .libs 2>/dev/null
7662 fi
7663 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7664 echo "${ECHO_T}$lt_cv_objdir" >&6; }
7665 objdir=$lt_cv_objdir
7666
7667
7668
7669
7670
7671 case $host_os in
7672 aix3*)
7673   # AIX sometimes has problems with the GCC collect2 program.  For some
7674   # reason, if we set the COLLECT_NAMES environment variable, the problems
7675   # vanish in a puff of smoke.
7676   if test "X${COLLECT_NAMES+set}" != Xset; then
7677     COLLECT_NAMES=
7678     export COLLECT_NAMES
7679   fi
7680   ;;
7681 esac
7682
7683 # Sed substitution that helps us do robust quoting.  It backslashifies
7684 # metacharacters that are still active within double-quoted strings.
7685 Xsed='sed -e 1s/^X//'
7686 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
7687
7688 # Same as above, but do not quote variable references.
7689 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
7690
7691 # Sed substitution to delay expansion of an escaped shell variable in a
7692 # double_quote_subst'ed string.
7693 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7694
7695 # Sed substitution to avoid accidental globbing in evaled expressions
7696 no_glob_subst='s/\*/\\\*/g'
7697
7698 # Constants:
7699 rm="rm -f"
7700
7701 # Global variables:
7702 default_ofile=libtool
7703 can_build_shared=yes
7704
7705 # All known linkers require a `.a' archive for static linking (except MSVC,
7706 # which needs '.lib').
7707 libext=a
7708 ltmain="$ac_aux_dir/ltmain.sh"
7709 ofile="$default_ofile"
7710 with_gnu_ld="$lt_cv_prog_gnu_ld"
7711
7712 if test -n "$ac_tool_prefix"; then
7713   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7714 set dummy ${ac_tool_prefix}ar; ac_word=$2
7715 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7716 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7717 if test "${ac_cv_prog_AR+set}" = set; then
7718   echo $ECHO_N "(cached) $ECHO_C" >&6
7719 else
7720   if test -n "$AR"; then
7721   ac_cv_prog_AR="$AR" # Let the user override the test.
7722 else
7723 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7724 for as_dir in $PATH
7725 do
7726   IFS=$as_save_IFS
7727   test -z "$as_dir" && as_dir=.
7728   for ac_exec_ext in '' $ac_executable_extensions; do
7729   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7730     ac_cv_prog_AR="${ac_tool_prefix}ar"
7731     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7732     break 2
7733   fi
7734 done
7735 done
7736 IFS=$as_save_IFS
7737
7738 fi
7739 fi
7740 AR=$ac_cv_prog_AR
7741 if test -n "$AR"; then
7742   { echo "$as_me:$LINENO: result: $AR" >&5
7743 echo "${ECHO_T}$AR" >&6; }
7744 else
7745   { echo "$as_me:$LINENO: result: no" >&5
7746 echo "${ECHO_T}no" >&6; }
7747 fi
7748
7749
7750 fi
7751 if test -z "$ac_cv_prog_AR"; then
7752   ac_ct_AR=$AR
7753   # Extract the first word of "ar", so it can be a program name with args.
7754 set dummy ar; ac_word=$2
7755 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7756 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7757 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7758   echo $ECHO_N "(cached) $ECHO_C" >&6
7759 else
7760   if test -n "$ac_ct_AR"; then
7761   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7762 else
7763 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7764 for as_dir in $PATH
7765 do
7766   IFS=$as_save_IFS
7767   test -z "$as_dir" && as_dir=.
7768   for ac_exec_ext in '' $ac_executable_extensions; do
7769   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7770     ac_cv_prog_ac_ct_AR="ar"
7771     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7772     break 2
7773   fi
7774 done
7775 done
7776 IFS=$as_save_IFS
7777
7778 fi
7779 fi
7780 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7781 if test -n "$ac_ct_AR"; then
7782   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7783 echo "${ECHO_T}$ac_ct_AR" >&6; }
7784 else
7785   { echo "$as_me:$LINENO: result: no" >&5
7786 echo "${ECHO_T}no" >&6; }
7787 fi
7788
7789   if test "x$ac_ct_AR" = x; then
7790     AR="false"
7791   else
7792     case $cross_compiling:$ac_tool_warned in
7793 yes:)
7794 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7795 whose name does not start with the host triplet.  If you think this
7796 configuration is useful to you, please write to autoconf@gnu.org." >&5
7797 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7798 whose name does not start with the host triplet.  If you think this
7799 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7800 ac_tool_warned=yes ;;
7801 esac
7802     AR=$ac_ct_AR
7803   fi
7804 else
7805   AR="$ac_cv_prog_AR"
7806 fi
7807
7808 if test -n "$ac_tool_prefix"; then
7809   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7810 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7811 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7812 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7813 if test "${ac_cv_prog_RANLIB+set}" = set; then
7814   echo $ECHO_N "(cached) $ECHO_C" >&6
7815 else
7816   if test -n "$RANLIB"; then
7817   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7818 else
7819 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7820 for as_dir in $PATH
7821 do
7822   IFS=$as_save_IFS
7823   test -z "$as_dir" && as_dir=.
7824   for ac_exec_ext in '' $ac_executable_extensions; do
7825   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7826     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7827     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7828     break 2
7829   fi
7830 done
7831 done
7832 IFS=$as_save_IFS
7833
7834 fi
7835 fi
7836 RANLIB=$ac_cv_prog_RANLIB
7837 if test -n "$RANLIB"; then
7838   { echo "$as_me:$LINENO: result: $RANLIB" >&5
7839 echo "${ECHO_T}$RANLIB" >&6; }
7840 else
7841   { echo "$as_me:$LINENO: result: no" >&5
7842 echo "${ECHO_T}no" >&6; }
7843 fi
7844
7845
7846 fi
7847 if test -z "$ac_cv_prog_RANLIB"; then
7848   ac_ct_RANLIB=$RANLIB
7849   # Extract the first word of "ranlib", so it can be a program name with args.
7850 set dummy ranlib; ac_word=$2
7851 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7852 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7853 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7854   echo $ECHO_N "(cached) $ECHO_C" >&6
7855 else
7856   if test -n "$ac_ct_RANLIB"; then
7857   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7858 else
7859 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7860 for as_dir in $PATH
7861 do
7862   IFS=$as_save_IFS
7863   test -z "$as_dir" && as_dir=.
7864   for ac_exec_ext in '' $ac_executable_extensions; do
7865   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7866     ac_cv_prog_ac_ct_RANLIB="ranlib"
7867     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7868     break 2
7869   fi
7870 done
7871 done
7872 IFS=$as_save_IFS
7873
7874 fi
7875 fi
7876 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7877 if test -n "$ac_ct_RANLIB"; then
7878   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7879 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
7880 else
7881   { echo "$as_me:$LINENO: result: no" >&5
7882 echo "${ECHO_T}no" >&6; }
7883 fi
7884
7885   if test "x$ac_ct_RANLIB" = x; then
7886     RANLIB=":"
7887   else
7888     case $cross_compiling:$ac_tool_warned in
7889 yes:)
7890 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7891 whose name does not start with the host triplet.  If you think this
7892 configuration is useful to you, please write to autoconf@gnu.org." >&5
7893 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7894 whose name does not start with the host triplet.  If you think this
7895 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7896 ac_tool_warned=yes ;;
7897 esac
7898     RANLIB=$ac_ct_RANLIB
7899   fi
7900 else
7901   RANLIB="$ac_cv_prog_RANLIB"
7902 fi
7903
7904 if test -n "$ac_tool_prefix"; then
7905   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7906 set dummy ${ac_tool_prefix}strip; ac_word=$2
7907 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7908 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7909 if test "${ac_cv_prog_STRIP+set}" = set; then
7910   echo $ECHO_N "(cached) $ECHO_C" >&6
7911 else
7912   if test -n "$STRIP"; then
7913   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7914 else
7915 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7916 for as_dir in $PATH
7917 do
7918   IFS=$as_save_IFS
7919   test -z "$as_dir" && as_dir=.
7920   for ac_exec_ext in '' $ac_executable_extensions; do
7921   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7922     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7923     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7924     break 2
7925   fi
7926 done
7927 done
7928 IFS=$as_save_IFS
7929
7930 fi
7931 fi
7932 STRIP=$ac_cv_prog_STRIP
7933 if test -n "$STRIP"; then
7934   { echo "$as_me:$LINENO: result: $STRIP" >&5
7935 echo "${ECHO_T}$STRIP" >&6; }
7936 else
7937   { echo "$as_me:$LINENO: result: no" >&5
7938 echo "${ECHO_T}no" >&6; }
7939 fi
7940
7941
7942 fi
7943 if test -z "$ac_cv_prog_STRIP"; then
7944   ac_ct_STRIP=$STRIP
7945   # Extract the first word of "strip", so it can be a program name with args.
7946 set dummy strip; ac_word=$2
7947 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7948 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7949 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
7950   echo $ECHO_N "(cached) $ECHO_C" >&6
7951 else
7952   if test -n "$ac_ct_STRIP"; then
7953   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7954 else
7955 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7956 for as_dir in $PATH
7957 do
7958   IFS=$as_save_IFS
7959   test -z "$as_dir" && as_dir=.
7960   for ac_exec_ext in '' $ac_executable_extensions; do
7961   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7962     ac_cv_prog_ac_ct_STRIP="strip"
7963     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7964     break 2
7965   fi
7966 done
7967 done
7968 IFS=$as_save_IFS
7969
7970 fi
7971 fi
7972 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7973 if test -n "$ac_ct_STRIP"; then
7974   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
7975 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
7976 else
7977   { echo "$as_me:$LINENO: result: no" >&5
7978 echo "${ECHO_T}no" >&6; }
7979 fi
7980
7981   if test "x$ac_ct_STRIP" = x; then
7982     STRIP=":"
7983   else
7984     case $cross_compiling:$ac_tool_warned in
7985 yes:)
7986 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7987 whose name does not start with the host triplet.  If you think this
7988 configuration is useful to you, please write to autoconf@gnu.org." >&5
7989 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7990 whose name does not start with the host triplet.  If you think this
7991 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7992 ac_tool_warned=yes ;;
7993 esac
7994     STRIP=$ac_ct_STRIP
7995   fi
7996 else
7997   STRIP="$ac_cv_prog_STRIP"
7998 fi
7999
8000
8001 old_CC="$CC"
8002 old_CFLAGS="$CFLAGS"
8003
8004 # Set sane defaults for various variables
8005 test -z "$AR" && AR=ar
8006 test -z "$AR_FLAGS" && AR_FLAGS=cru
8007 test -z "$AS" && AS=as
8008 test -z "$CC" && CC=cc
8009 test -z "$LTCC" && LTCC=$CC
8010 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8011 test -z "$DLLTOOL" && DLLTOOL=dlltool
8012 test -z "$LD" && LD=ld
8013 test -z "$LN_S" && LN_S="ln -s"
8014 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8015 test -z "$NM" && NM=nm
8016 test -z "$SED" && SED=sed
8017 test -z "$OBJDUMP" && OBJDUMP=objdump
8018 test -z "$RANLIB" && RANLIB=:
8019 test -z "$STRIP" && STRIP=:
8020 test -z "$ac_objext" && ac_objext=o
8021
8022 # Determine commands to create old-style static archives.
8023 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
8024 old_postinstall_cmds='chmod 644 $oldlib'
8025 old_postuninstall_cmds=
8026
8027 if test -n "$RANLIB"; then
8028   case $host_os in
8029   openbsd*)
8030     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
8031     ;;
8032   *)
8033     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
8034     ;;
8035   esac
8036   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
8037 fi
8038
8039 for cc_temp in $compiler""; do
8040   case $cc_temp in
8041     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8042     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8043     \-*) ;;
8044     *) break;;
8045   esac
8046 done
8047 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8048
8049
8050 # Only perform the check for file, if the check method requires it
8051 case $deplibs_check_method in
8052 file_magic*)
8053   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8054     { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
8055 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
8056 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8057   echo $ECHO_N "(cached) $ECHO_C" >&6
8058 else
8059   case $MAGIC_CMD in
8060 [\\/*] |  ?:[\\/]*)
8061   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8062   ;;
8063 *)
8064   lt_save_MAGIC_CMD="$MAGIC_CMD"
8065   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8066   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8067   for ac_dir in $ac_dummy; do
8068     IFS="$lt_save_ifs"
8069     test -z "$ac_dir" && ac_dir=.
8070     if test -f $ac_dir/${ac_tool_prefix}file; then
8071       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8072       if test -n "$file_magic_test_file"; then
8073         case $deplibs_check_method in
8074         "file_magic "*)
8075           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8076           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8077           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8078             $EGREP "$file_magic_regex" > /dev/null; then
8079             :
8080           else
8081             cat <<EOF 1>&2
8082
8083 *** Warning: the command libtool uses to detect shared libraries,
8084 *** $file_magic_cmd, produces output that libtool cannot recognize.
8085 *** The result is that libtool may fail to recognize shared libraries
8086 *** as such.  This will affect the creation of libtool libraries that
8087 *** depend on shared libraries, but programs linked with such libtool
8088 *** libraries will work regardless of this problem.  Nevertheless, you
8089 *** may want to report the problem to your system manager and/or to
8090 *** bug-libtool@gnu.org
8091
8092 EOF
8093           fi ;;
8094         esac
8095       fi
8096       break
8097     fi
8098   done
8099   IFS="$lt_save_ifs"
8100   MAGIC_CMD="$lt_save_MAGIC_CMD"
8101   ;;
8102 esac
8103 fi
8104
8105 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8106 if test -n "$MAGIC_CMD"; then
8107   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8108 echo "${ECHO_T}$MAGIC_CMD" >&6; }
8109 else
8110   { echo "$as_me:$LINENO: result: no" >&5
8111 echo "${ECHO_T}no" >&6; }
8112 fi
8113
8114 if test -z "$lt_cv_path_MAGIC_CMD"; then
8115   if test -n "$ac_tool_prefix"; then
8116     { echo "$as_me:$LINENO: checking for file" >&5
8117 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
8118 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8119   echo $ECHO_N "(cached) $ECHO_C" >&6
8120 else
8121   case $MAGIC_CMD in
8122 [\\/*] |  ?:[\\/]*)
8123   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8124   ;;
8125 *)
8126   lt_save_MAGIC_CMD="$MAGIC_CMD"
8127   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8128   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8129   for ac_dir in $ac_dummy; do
8130     IFS="$lt_save_ifs"
8131     test -z "$ac_dir" && ac_dir=.
8132     if test -f $ac_dir/file; then
8133       lt_cv_path_MAGIC_CMD="$ac_dir/file"
8134       if test -n "$file_magic_test_file"; then
8135         case $deplibs_check_method in
8136         "file_magic "*)
8137           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8138           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8139           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8140             $EGREP "$file_magic_regex" > /dev/null; then
8141             :
8142           else
8143             cat <<EOF 1>&2
8144
8145 *** Warning: the command libtool uses to detect shared libraries,
8146 *** $file_magic_cmd, produces output that libtool cannot recognize.
8147 *** The result is that libtool may fail to recognize shared libraries
8148 *** as such.  This will affect the creation of libtool libraries that
8149 *** depend on shared libraries, but programs linked with such libtool
8150 *** libraries will work regardless of this problem.  Nevertheless, you
8151 *** may want to report the problem to your system manager and/or to
8152 *** bug-libtool@gnu.org
8153
8154 EOF
8155           fi ;;
8156         esac
8157       fi
8158       break
8159     fi
8160   done
8161   IFS="$lt_save_ifs"
8162   MAGIC_CMD="$lt_save_MAGIC_CMD"
8163   ;;
8164 esac
8165 fi
8166
8167 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8168 if test -n "$MAGIC_CMD"; then
8169   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8170 echo "${ECHO_T}$MAGIC_CMD" >&6; }
8171 else
8172   { echo "$as_me:$LINENO: result: no" >&5
8173 echo "${ECHO_T}no" >&6; }
8174 fi
8175
8176   else
8177     MAGIC_CMD=:
8178   fi
8179 fi
8180
8181   fi
8182   ;;
8183 esac
8184
8185 enable_dlopen=no
8186 enable_win32_dll=no
8187
8188 # Check whether --enable-libtool-lock was given.
8189 if test "${enable_libtool_lock+set}" = set; then
8190   enableval=$enable_libtool_lock; 
8191 fi
8192
8193 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8194
8195
8196 # Check whether --with-pic was given.
8197 if test "${with_pic+set}" = set; then
8198   withval=$with_pic; pic_mode="$withval"
8199 else
8200   pic_mode=default
8201 fi
8202
8203 test -z "$pic_mode" && pic_mode=default
8204
8205 # Use C for the default configuration in the libtool script
8206 tagname=
8207 lt_save_CC="$CC"
8208 ac_ext=c
8209 ac_cpp='$CPP $CPPFLAGS'
8210 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8211 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8212 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8213
8214
8215 # Source file extension for C test sources.
8216 ac_ext=c
8217
8218 # Object file extension for compiled C test sources.
8219 objext=o
8220 objext=$objext
8221
8222 # Code to be used in simple compile tests
8223 lt_simple_compile_test_code="int some_variable = 0;\n"
8224
8225 # Code to be used in simple link tests
8226 lt_simple_link_test_code='int main(){return(0);}\n'
8227
8228
8229 # If no C compiler was specified, use CC.
8230 LTCC=${LTCC-"$CC"}
8231
8232 # If no C compiler flags were specified, use CFLAGS.
8233 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8234
8235 # Allow CC to be a program name with arguments.
8236 compiler=$CC
8237
8238
8239 # save warnings/boilerplate of simple test code
8240 ac_outfile=conftest.$ac_objext
8241 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
8242 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8243 _lt_compiler_boilerplate=`cat conftest.err`
8244 $rm conftest*
8245
8246 ac_outfile=conftest.$ac_objext
8247 printf "$lt_simple_link_test_code" >conftest.$ac_ext
8248 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8249 _lt_linker_boilerplate=`cat conftest.err`
8250 $rm conftest*
8251
8252
8253 ## CAVEAT EMPTOR:
8254 ## There is no encapsulation within the following macros, do not change
8255 ## the running order or otherwise move them around unless you know exactly
8256 ## what you are doing...
8257
8258 lt_prog_compiler_no_builtin_flag=
8259
8260 if test "$GCC" = yes; then
8261   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
8262
8263   
8264 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8265 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
8266 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
8267   echo $ECHO_N "(cached) $ECHO_C" >&6
8268 else
8269   lt_cv_prog_compiler_rtti_exceptions=no
8270   ac_outfile=conftest.$ac_objext
8271    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8272    lt_compiler_flag="-fno-rtti -fno-exceptions"
8273    # Insert the option either (1) after the last *FLAGS variable, or
8274    # (2) before a word containing "conftest.", or (3) at the end.
8275    # Note that $ac_compile itself does not contain backslashes and begins
8276    # with a dollar sign (not a hyphen), so the echo should work correctly.
8277    # The option is referenced via a variable to avoid confusing sed.
8278    lt_compile=`echo "$ac_compile" | $SED \
8279    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8280    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8281    -e 's:$: $lt_compiler_flag:'`
8282    (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
8283    (eval "$lt_compile" 2>conftest.err)
8284    ac_status=$?
8285    cat conftest.err >&5
8286    echo "$as_me:__oline__: \$? = $ac_status" >&5
8287    if (exit $ac_status) && test -s "$ac_outfile"; then
8288      # The compiler can only warn and ignore the option if not recognized
8289      # So say no if there are warnings other than the usual output.
8290      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8291      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8292      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8293        lt_cv_prog_compiler_rtti_exceptions=yes
8294      fi
8295    fi
8296    $rm conftest*
8297
8298 fi
8299 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8300 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8301
8302 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8303     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8304 else
8305     :
8306 fi
8307
8308 fi
8309
8310 lt_prog_compiler_wl=
8311 lt_prog_compiler_pic=
8312 lt_prog_compiler_static=
8313
8314 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
8315 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
8316  
8317   if test "$GCC" = yes; then
8318     lt_prog_compiler_wl='-Wl,'
8319     lt_prog_compiler_static='-static'
8320
8321     case $host_os in
8322       aix*)
8323       # All AIX code is PIC.
8324       if test "$host_cpu" = ia64; then
8325         # AIX 5 now supports IA64 processor
8326         lt_prog_compiler_static='-Bstatic'
8327       fi
8328       ;;
8329
8330     amigaos*)
8331       # FIXME: we need at least 68020 code to build shared libraries, but
8332       # adding the `-m68020' flag to GCC prevents building anything better,
8333       # like `-m68040'.
8334       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8335       ;;
8336
8337     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8338       # PIC is the default for these OSes.
8339       ;;
8340
8341     mingw* | pw32* | os2*)
8342       # This hack is so that the source file can tell whether it is being
8343       # built for inclusion in a dll (and should export symbols for example).
8344       lt_prog_compiler_pic='-DDLL_EXPORT'
8345       ;;
8346
8347     darwin* | rhapsody*)
8348       # PIC is the default on this platform
8349       # Common symbols not allowed in MH_DYLIB files
8350       lt_prog_compiler_pic='-fno-common'
8351       ;;
8352
8353     interix3*)
8354       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8355       # Instead, we relocate shared libraries at runtime.
8356       ;;
8357
8358     msdosdjgpp*)
8359       # Just because we use GCC doesn't mean we suddenly get shared libraries
8360       # on systems that don't support them.
8361       lt_prog_compiler_can_build_shared=no
8362       enable_shared=no
8363       ;;
8364
8365     sysv4*MP*)
8366       if test -d /usr/nec; then
8367         lt_prog_compiler_pic=-Kconform_pic
8368       fi
8369       ;;
8370
8371     hpux*)
8372       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8373       # not for PA HP-UX.
8374       case $host_cpu in
8375       hppa*64*|ia64*)
8376         # +Z the default
8377         ;;
8378       *)
8379         lt_prog_compiler_pic='-fPIC'
8380         ;;
8381       esac
8382       ;;
8383
8384     *)
8385       lt_prog_compiler_pic='-fPIC'
8386       ;;
8387     esac
8388   else
8389     # PORTME Check for flag to pass linker flags through the system compiler.
8390     case $host_os in
8391     aix*)
8392       lt_prog_compiler_wl='-Wl,'
8393       if test "$host_cpu" = ia64; then
8394         # AIX 5 now supports IA64 processor
8395         lt_prog_compiler_static='-Bstatic'
8396       else
8397         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8398       fi
8399       ;;
8400       darwin*)
8401         # PIC is the default on this platform
8402         # Common symbols not allowed in MH_DYLIB files
8403        case $cc_basename in
8404          xlc*)
8405          lt_prog_compiler_pic='-qnocommon'
8406          lt_prog_compiler_wl='-Wl,'
8407          ;;
8408        esac
8409        ;;
8410
8411     mingw* | pw32* | os2*)
8412       # This hack is so that the source file can tell whether it is being
8413       # built for inclusion in a dll (and should export symbols for example).
8414       lt_prog_compiler_pic='-DDLL_EXPORT'
8415       ;;
8416
8417     hpux9* | hpux10* | hpux11*)
8418       lt_prog_compiler_wl='-Wl,'
8419       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8420       # not for PA HP-UX.
8421       case $host_cpu in
8422       hppa*64*|ia64*)
8423         # +Z the default
8424         ;;
8425       *)
8426         lt_prog_compiler_pic='+Z'
8427         ;;
8428       esac
8429       # Is there a better lt_prog_compiler_static that works with the bundled CC?
8430       lt_prog_compiler_static='${wl}-a ${wl}archive'
8431       ;;
8432
8433     irix5* | irix6* | nonstopux*)
8434       lt_prog_compiler_wl='-Wl,'
8435       # PIC (with -KPIC) is the default.
8436       lt_prog_compiler_static='-non_shared'
8437       ;;
8438
8439     newsos6)
8440       lt_prog_compiler_pic='-KPIC'
8441       lt_prog_compiler_static='-Bstatic'
8442       ;;
8443
8444     linux* | k*bsd*-gnu)
8445       case $cc_basename in
8446       icc* | ecc*)
8447         lt_prog_compiler_wl='-Wl,'
8448         lt_prog_compiler_pic='-KPIC'
8449         lt_prog_compiler_static='-static'
8450         ;;
8451       pgcc* | pgf77* | pgf90* | pgf95*)
8452         # Portland Group compilers (*not* the Pentium gcc compiler,
8453         # which looks to be a dead project)
8454         lt_prog_compiler_wl='-Wl,'
8455         lt_prog_compiler_pic='-fpic'
8456         lt_prog_compiler_static='-Bstatic'
8457         ;;
8458       ccc*)
8459         lt_prog_compiler_wl='-Wl,'
8460         # All Alpha code is PIC.
8461         lt_prog_compiler_static='-non_shared'
8462         ;;
8463       esac
8464       ;;
8465
8466     osf3* | osf4* | osf5*)
8467       lt_prog_compiler_wl='-Wl,'
8468       # All OSF/1 code is PIC.
8469       lt_prog_compiler_static='-non_shared'
8470       ;;
8471
8472     solaris*)
8473       lt_prog_compiler_pic='-KPIC'
8474       lt_prog_compiler_static='-Bstatic'
8475       case $cc_basename in
8476       f77* | f90* | f95*)
8477         lt_prog_compiler_wl='-Qoption ld ';;
8478       *)
8479         lt_prog_compiler_wl='-Wl,';;
8480       esac
8481       ;;
8482
8483     sunos4*)
8484       lt_prog_compiler_wl='-Qoption ld '
8485       lt_prog_compiler_pic='-PIC'
8486       lt_prog_compiler_static='-Bstatic'
8487       ;;
8488
8489     sysv4 | sysv4.2uw2* | sysv4.3*)
8490       lt_prog_compiler_wl='-Wl,'
8491       lt_prog_compiler_pic='-KPIC'
8492       lt_prog_compiler_static='-Bstatic'
8493       ;;
8494
8495     sysv4*MP*)
8496       if test -d /usr/nec ;then
8497         lt_prog_compiler_pic='-Kconform_pic'
8498         lt_prog_compiler_static='-Bstatic'
8499       fi
8500       ;;
8501
8502     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8503       lt_prog_compiler_wl='-Wl,'
8504       lt_prog_compiler_pic='-KPIC'
8505       lt_prog_compiler_static='-Bstatic'
8506       ;;
8507
8508     unicos*)
8509       lt_prog_compiler_wl='-Wl,'
8510       lt_prog_compiler_can_build_shared=no
8511       ;;
8512
8513     uts4*)
8514       lt_prog_compiler_pic='-pic'
8515       lt_prog_compiler_static='-Bstatic'
8516       ;;
8517
8518     *)
8519       lt_prog_compiler_can_build_shared=no
8520       ;;
8521     esac
8522   fi
8523
8524 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
8525 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
8526
8527 #
8528 # Check to make sure the PIC flag actually works.
8529 #
8530 if test -n "$lt_prog_compiler_pic"; then
8531   
8532 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8533 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
8534 if test "${lt_prog_compiler_pic_works+set}" = set; then
8535   echo $ECHO_N "(cached) $ECHO_C" >&6
8536 else
8537   lt_prog_compiler_pic_works=no
8538   ac_outfile=conftest.$ac_objext
8539    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8540    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8541    # Insert the option either (1) after the last *FLAGS variable, or
8542    # (2) before a word containing "conftest.", or (3) at the end.
8543    # Note that $ac_compile itself does not contain backslashes and begins
8544    # with a dollar sign (not a hyphen), so the echo should work correctly.
8545    # The option is referenced via a variable to avoid confusing sed.
8546    lt_compile=`echo "$ac_compile" | $SED \
8547    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8548    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8549    -e 's:$: $lt_compiler_flag:'`
8550    (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
8551    (eval "$lt_compile" 2>conftest.err)
8552    ac_status=$?
8553    cat conftest.err >&5
8554    echo "$as_me:__oline__: \$? = $ac_status" >&5
8555    if (exit $ac_status) && test -s "$ac_outfile"; then
8556      # The compiler can only warn and ignore the option if not recognized
8557      # So say no if there are warnings other than the usual output.
8558      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8559      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8560      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8561        lt_prog_compiler_pic_works=yes
8562      fi
8563    fi
8564    $rm conftest*
8565
8566 fi
8567 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
8568 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
8569
8570 if test x"$lt_prog_compiler_pic_works" = xyes; then
8571     case $lt_prog_compiler_pic in
8572      "" | " "*) ;;
8573      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8574      esac
8575 else
8576     lt_prog_compiler_pic=
8577      lt_prog_compiler_can_build_shared=no
8578 fi
8579
8580 fi
8581 case $host_os in
8582   # For platforms which do not support PIC, -DPIC is meaningless:
8583   *djgpp*)
8584     lt_prog_compiler_pic=
8585     ;;
8586   *)
8587     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8588     ;;
8589 esac
8590
8591 #
8592 # Check to make sure the static flag actually works.
8593 #
8594 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8595 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8596 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
8597 if test "${lt_prog_compiler_static_works+set}" = set; then
8598   echo $ECHO_N "(cached) $ECHO_C" >&6
8599 else
8600   lt_prog_compiler_static_works=no
8601    save_LDFLAGS="$LDFLAGS"
8602    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8603    printf "$lt_simple_link_test_code" > conftest.$ac_ext
8604    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8605      # The linker can only warn and ignore the option if not recognized
8606      # So say no if there are warnings
8607      if test -s conftest.err; then
8608        # Append any errors to the config.log.
8609        cat conftest.err 1>&5
8610        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8611        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8612        if diff conftest.exp conftest.er2 >/dev/null; then
8613          lt_prog_compiler_static_works=yes
8614        fi
8615      else
8616        lt_prog_compiler_static_works=yes
8617      fi
8618    fi
8619    $rm conftest*
8620    LDFLAGS="$save_LDFLAGS"
8621
8622 fi
8623 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
8624 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
8625
8626 if test x"$lt_prog_compiler_static_works" = xyes; then
8627     :
8628 else
8629     lt_prog_compiler_static=
8630 fi
8631
8632
8633 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8634 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
8635 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8636   echo $ECHO_N "(cached) $ECHO_C" >&6
8637 else
8638   lt_cv_prog_compiler_c_o=no
8639    $rm -r conftest 2>/dev/null
8640    mkdir conftest
8641    cd conftest
8642    mkdir out
8643    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8644
8645    lt_compiler_flag="-o out/conftest2.$ac_objext"
8646    # Insert the option either (1) after the last *FLAGS variable, or
8647    # (2) before a word containing "conftest.", or (3) at the end.
8648    # Note that $ac_compile itself does not contain backslashes and begins
8649    # with a dollar sign (not a hyphen), so the echo should work correctly.
8650    lt_compile=`echo "$ac_compile" | $SED \
8651    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8652    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8653    -e 's:$: $lt_compiler_flag:'`
8654    (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
8655    (eval "$lt_compile" 2>out/conftest.err)
8656    ac_status=$?
8657    cat out/conftest.err >&5
8658    echo "$as_me:__oline__: \$? = $ac_status" >&5
8659    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8660    then
8661      # The compiler can only warn and ignore the option if not recognized
8662      # So say no if there are warnings
8663      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8664      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8665      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8666        lt_cv_prog_compiler_c_o=yes
8667      fi
8668    fi
8669    chmod u+w . 2>&5
8670    $rm conftest*
8671    # SGI C++ compiler will create directory out/ii_files/ for
8672    # template instantiation
8673    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
8674    $rm out/* && rmdir out
8675    cd ..
8676    rmdir conftest
8677    $rm conftest*
8678
8679 fi
8680 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8681 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
8682
8683
8684 hard_links="nottested"
8685 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8686   # do not overwrite the value of need_locks provided by the user
8687   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8688 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
8689   hard_links=yes
8690   $rm conftest*
8691   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8692   touch conftest.a
8693   ln conftest.a conftest.b 2>&5 || hard_links=no
8694   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8695   { echo "$as_me:$LINENO: result: $hard_links" >&5
8696 echo "${ECHO_T}$hard_links" >&6; }
8697   if test "$hard_links" = no; then
8698     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8699 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8700     need_locks=warn
8701   fi
8702 else
8703   need_locks=no
8704 fi
8705
8706 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8707 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
8708
8709   runpath_var=
8710   allow_undefined_flag=
8711   enable_shared_with_static_runtimes=no
8712   archive_cmds=
8713   archive_expsym_cmds=
8714   old_archive_From_new_cmds=
8715   old_archive_from_expsyms_cmds=
8716   export_dynamic_flag_spec=
8717   whole_archive_flag_spec=
8718   thread_safe_flag_spec=
8719   hardcode_libdir_flag_spec=
8720   hardcode_libdir_flag_spec_ld=
8721   hardcode_libdir_separator=
8722   hardcode_direct=no
8723   hardcode_minus_L=no
8724   hardcode_shlibpath_var=unsupported
8725   link_all_deplibs=unknown
8726   hardcode_automatic=no
8727   module_cmds=
8728   module_expsym_cmds=
8729   always_export_symbols=no
8730   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8731   # include_expsyms should be a list of space-separated symbols to be *always*
8732   # included in the symbol list
8733   include_expsyms=
8734   # exclude_expsyms can be an extended regexp of symbols to exclude
8735   # it will be wrapped by ` (' and `)$', so one must not match beginning or
8736   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8737   # as well as any symbol that contains `d'.
8738   exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
8739   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8740   # platforms (ab)use it in PIC code, but their linkers get confused if
8741   # the symbol is explicitly referenced.  Since portable code cannot
8742   # rely on this symbol name, it's probably fine to never include it in
8743   # preloaded symbol tables.
8744   extract_expsyms_cmds=
8745   # Just being paranoid about ensuring that cc_basename is set.
8746   for cc_temp in $compiler""; do
8747   case $cc_temp in
8748     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8749     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8750     \-*) ;;
8751     *) break;;
8752   esac
8753 done
8754 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8755
8756   case $host_os in
8757   cygwin* | mingw* | pw32*)
8758     # FIXME: the MSVC++ port hasn't been tested in a loooong time
8759     # When not using gcc, we currently assume that we are using
8760     # Microsoft Visual C++.
8761     if test "$GCC" != yes; then
8762       with_gnu_ld=no
8763     fi
8764     ;;
8765   interix*)
8766     # we just hope/assume this is gcc and not c89 (= MSVC++)
8767     with_gnu_ld=yes
8768     ;;
8769   openbsd*)
8770     with_gnu_ld=no
8771     ;;
8772   esac
8773
8774   ld_shlibs=yes
8775   if test "$with_gnu_ld" = yes; then
8776     # If archive_cmds runs LD, not CC, wlarc should be empty
8777     wlarc='${wl}'
8778
8779     # Set some defaults for GNU ld with shared library support. These
8780     # are reset later if shared libraries are not supported. Putting them
8781     # here allows them to be overridden if necessary.
8782     runpath_var=LD_RUN_PATH
8783     hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8784     export_dynamic_flag_spec='${wl}--export-dynamic'
8785     # ancient GNU ld didn't support --whole-archive et. al.
8786     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8787         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8788       else
8789         whole_archive_flag_spec=
8790     fi
8791     supports_anon_versioning=no
8792     case `$LD -v 2>/dev/null` in
8793       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8794       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8795       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8796       *\ 2.11.*) ;; # other 2.11 versions
8797       *) supports_anon_versioning=yes ;;
8798     esac
8799
8800     # See if GNU ld supports shared libraries.
8801     case $host_os in
8802     aix3* | aix4* | aix5*)
8803       # On AIX/PPC, the GNU linker is very broken
8804       if test "$host_cpu" != ia64; then
8805         ld_shlibs=no
8806         cat <<EOF 1>&2
8807
8808 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8809 *** to be unable to reliably create shared libraries on AIX.
8810 *** Therefore, libtool is disabling shared libraries support.  If you
8811 *** really care for shared libraries, you may want to modify your PATH
8812 *** so that a non-GNU linker is found, and then restart.
8813
8814 EOF
8815       fi
8816       ;;
8817
8818     amigaos*)
8819       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)'
8820       hardcode_libdir_flag_spec='-L$libdir'
8821       hardcode_minus_L=yes
8822
8823       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8824       # that the semantics of dynamic libraries on AmigaOS, at least up
8825       # to version 4, is to share data among multiple programs linked
8826       # with the same dynamic library.  Since this doesn't match the
8827       # behavior of shared libraries on other platforms, we can't use
8828       # them.
8829       ld_shlibs=no
8830       ;;
8831
8832     beos*)
8833       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8834         allow_undefined_flag=unsupported
8835         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8836         # support --undefined.  This deserves some investigation.  FIXME
8837         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8838       else
8839         ld_shlibs=no
8840       fi
8841       ;;
8842
8843     cygwin* | mingw* | pw32*)
8844       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8845       # as there is no search path for DLLs.
8846       hardcode_libdir_flag_spec='-L$libdir'
8847       allow_undefined_flag=unsupported
8848       always_export_symbols=no
8849       enable_shared_with_static_runtimes=yes
8850       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
8851
8852       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8853         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8854         # If the export-symbols file already is a .def file (1st line
8855         # is EXPORTS), use it as is; otherwise, prepend...
8856         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8857           cp $export_symbols $output_objdir/$soname.def;
8858         else
8859           echo EXPORTS > $output_objdir/$soname.def;
8860           cat $export_symbols >> $output_objdir/$soname.def;
8861         fi~
8862         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8863       else
8864         ld_shlibs=no
8865       fi
8866       ;;
8867
8868     interix3*)
8869       hardcode_direct=no
8870       hardcode_shlibpath_var=no
8871       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8872       export_dynamic_flag_spec='${wl}-E'
8873       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8874       # Instead, shared libraries are loaded at an image base (0x10000000 by
8875       # default) and relocated if they conflict, which is a slow very memory
8876       # consuming and fragmenting process.  To avoid this, we pick a random,
8877       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8878       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8879       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8880       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'
8881       ;;
8882
8883     linux* | k*bsd*-gnu)
8884       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8885         tmp_addflag=
8886         case $cc_basename,$host_cpu in
8887         pgcc*)                          # Portland Group C compiler
8888           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'
8889           tmp_addflag=' $pic_flag'
8890           ;;
8891         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
8892           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'
8893           tmp_addflag=' $pic_flag -Mnomain' ;;
8894         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
8895           tmp_addflag=' -i_dynamic' ;;
8896         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
8897           tmp_addflag=' -i_dynamic -nofor_main' ;;
8898         ifc* | ifort*)                  # Intel Fortran compiler
8899           tmp_addflag=' -nofor_main' ;;
8900         esac
8901         archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8902
8903         if test $supports_anon_versioning = yes; then
8904           archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8905   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8906   $echo "local: *; };" >> $output_objdir/$libname.ver~
8907           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8908         fi
8909         link_all_deplibs=no
8910       else
8911         ld_shlibs=no
8912       fi
8913       ;;
8914
8915     netbsd* | netbsdelf*-gnu)
8916       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8917         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8918         wlarc=
8919       else
8920         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8921         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8922       fi
8923       ;;
8924
8925     solaris*)
8926       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8927         ld_shlibs=no
8928         cat <<EOF 1>&2
8929
8930 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8931 *** create shared libraries on Solaris systems.  Therefore, libtool
8932 *** is disabling shared libraries support.  We urge you to upgrade GNU
8933 *** binutils to release 2.9.1 or newer.  Another option is to modify
8934 *** your PATH or compiler configuration so that the native linker is
8935 *** used, and then restart.
8936
8937 EOF
8938       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8939         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8940         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8941       else
8942         ld_shlibs=no
8943       fi
8944       ;;
8945
8946     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8947       case `$LD -v 2>&1` in
8948         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 
8949         ld_shlibs=no
8950         cat <<_LT_EOF 1>&2
8951
8952 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8953 *** reliably create shared libraries on SCO systems.  Therefore, libtool
8954 *** is disabling shared libraries support.  We urge you to upgrade GNU
8955 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8956 *** your PATH or compiler configuration so that the native linker is
8957 *** used, and then restart.
8958
8959 _LT_EOF
8960         ;;
8961         *)
8962           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8963             hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
8964             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
8965             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
8966           else
8967             ld_shlibs=no
8968           fi
8969         ;;
8970       esac
8971       ;;
8972
8973     sunos4*)
8974       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8975       wlarc=
8976       hardcode_direct=yes
8977       hardcode_shlibpath_var=no
8978       ;;
8979
8980     *)
8981       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8982         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8983         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8984       else
8985         ld_shlibs=no
8986       fi
8987       ;;
8988     esac
8989
8990     if test "$ld_shlibs" = no; then
8991       runpath_var=
8992       hardcode_libdir_flag_spec=
8993       export_dynamic_flag_spec=
8994       whole_archive_flag_spec=
8995     fi
8996   else
8997     # PORTME fill in a description of your system's linker (not GNU ld)
8998     case $host_os in
8999     aix3*)
9000       allow_undefined_flag=unsupported
9001       always_export_symbols=yes
9002       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'
9003       # Note: this linker hardcodes the directories in LIBPATH if there
9004       # are no directories specified by -L.
9005       hardcode_minus_L=yes
9006       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9007         # Neither direct hardcoding nor static linking is supported with a
9008         # broken collect2.
9009         hardcode_direct=unsupported
9010       fi
9011       ;;
9012
9013     aix4* | aix5*)
9014       if test "$host_cpu" = ia64; then
9015         # On IA64, the linker does run time linking by default, so we don't
9016         # have to do anything special.
9017         aix_use_runtimelinking=no
9018         exp_sym_flag='-Bexport'
9019         no_entry_flag=""
9020       else
9021         # If we're using GNU nm, then we don't want the "-C" option.
9022         # -C means demangle to AIX nm, but means don't demangle with GNU nm
9023         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
9024           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'
9025         else
9026           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'
9027         fi
9028         aix_use_runtimelinking=no
9029
9030         # Test if we are trying to use run time linking or normal
9031         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9032         # need to do runtime linking.
9033         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9034           for ld_flag in $LDFLAGS; do
9035           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9036             aix_use_runtimelinking=yes
9037             break
9038           fi
9039           done
9040           ;;
9041         esac
9042
9043         exp_sym_flag='-bexport'
9044         no_entry_flag='-bnoentry'
9045       fi
9046
9047       # When large executables or shared objects are built, AIX ld can
9048       # have problems creating the table of contents.  If linking a library
9049       # or program results in "error TOC overflow" add -mminimal-toc to
9050       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9051       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9052
9053       archive_cmds=''
9054       hardcode_direct=yes
9055       hardcode_libdir_separator=':'
9056       link_all_deplibs=yes
9057
9058       if test "$GCC" = yes; then
9059         case $host_os in aix4.[012]|aix4.[012].*)
9060         # We only want to do this on AIX 4.2 and lower, the check
9061         # below for broken collect2 doesn't work under 4.3+
9062           collect2name=`${CC} -print-prog-name=collect2`
9063           if test -f "$collect2name" && \
9064            strings "$collect2name" | grep resolve_lib_name >/dev/null
9065           then
9066           # We have reworked collect2
9067           hardcode_direct=yes
9068           else
9069           # We have old collect2
9070           hardcode_direct=unsupported
9071           # It fails to find uninstalled libraries when the uninstalled
9072           # path is not listed in the libpath.  Setting hardcode_minus_L
9073           # to unsupported forces relinking
9074           hardcode_minus_L=yes
9075           hardcode_libdir_flag_spec='-L$libdir'
9076           hardcode_libdir_separator=
9077           fi
9078           ;;
9079         esac
9080         shared_flag='-shared'
9081         if test "$aix_use_runtimelinking" = yes; then
9082           shared_flag="$shared_flag "'${wl}-G'
9083         fi
9084       else
9085         # not using gcc
9086         if test "$host_cpu" = ia64; then
9087         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9088         # chokes on -Wl,-G. The following line is correct:
9089           shared_flag='-G'
9090         else
9091           if test "$aix_use_runtimelinking" = yes; then
9092             shared_flag='${wl}-G'
9093           else
9094             shared_flag='${wl}-bM:SRE'
9095           fi
9096         fi
9097       fi
9098
9099       # It seems that -bexpall does not export symbols beginning with
9100       # underscore (_), so it is better to generate a list of symbols to export.
9101       always_export_symbols=yes
9102       if test "$aix_use_runtimelinking" = yes; then
9103         # Warning - without using the other runtime loading flags (-brtl),
9104         # -berok will link without error, but may produce a broken library.
9105         allow_undefined_flag='-berok'
9106        # Determine the default libpath from the value encoded in an empty executable.
9107        cat >conftest.$ac_ext <<_ACEOF
9108 /* confdefs.h.  */
9109 _ACEOF
9110 cat confdefs.h >>conftest.$ac_ext
9111 cat >>conftest.$ac_ext <<_ACEOF
9112 /* end confdefs.h.  */
9113
9114 int
9115 main ()
9116 {
9117
9118   ;
9119   return 0;
9120 }
9121 _ACEOF
9122 rm -f conftest.$ac_objext conftest$ac_exeext
9123 if { (ac_try="$ac_link"
9124 case "(($ac_try" in
9125   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9126   *) ac_try_echo=$ac_try;;
9127 esac
9128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9129   (eval "$ac_link") 2>conftest.er1
9130   ac_status=$?
9131   grep -v '^ *+' conftest.er1 >conftest.err
9132   rm -f conftest.er1
9133   cat conftest.err >&5
9134   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9135   (exit $ac_status); } && {
9136          test -z "$ac_c_werror_flag" ||
9137          test ! -s conftest.err
9138        } && test -s conftest$ac_exeext &&
9139        $as_test_x conftest$ac_exeext; then
9140   
9141 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9142 }'`
9143 # Check for a 64-bit object if we didn't find anything.
9144 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9145 }'`; fi
9146 else
9147   echo "$as_me: failed program was:" >&5
9148 sed 's/^/| /' conftest.$ac_ext >&5
9149
9150         
9151 fi
9152
9153 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9154       conftest$ac_exeext conftest.$ac_ext
9155 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9156
9157        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9158         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"
9159        else
9160         if test "$host_cpu" = ia64; then
9161           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9162           allow_undefined_flag="-z nodefs"
9163           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"
9164         else
9165          # Determine the default libpath from the value encoded in an empty executable.
9166          cat >conftest.$ac_ext <<_ACEOF
9167 /* confdefs.h.  */
9168 _ACEOF
9169 cat confdefs.h >>conftest.$ac_ext
9170 cat >>conftest.$ac_ext <<_ACEOF
9171 /* end confdefs.h.  */
9172
9173 int
9174 main ()
9175 {
9176
9177   ;
9178   return 0;
9179 }
9180 _ACEOF
9181 rm -f conftest.$ac_objext conftest$ac_exeext
9182 if { (ac_try="$ac_link"
9183 case "(($ac_try" in
9184   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9185   *) ac_try_echo=$ac_try;;
9186 esac
9187 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9188   (eval "$ac_link") 2>conftest.er1
9189   ac_status=$?
9190   grep -v '^ *+' conftest.er1 >conftest.err
9191   rm -f conftest.er1
9192   cat conftest.err >&5
9193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9194   (exit $ac_status); } && {
9195          test -z "$ac_c_werror_flag" ||
9196          test ! -s conftest.err
9197        } && test -s conftest$ac_exeext &&
9198        $as_test_x conftest$ac_exeext; then
9199   
9200 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9201 }'`
9202 # Check for a 64-bit object if we didn't find anything.
9203 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9204 }'`; fi
9205 else
9206   echo "$as_me: failed program was:" >&5
9207 sed 's/^/| /' conftest.$ac_ext >&5
9208
9209         
9210 fi
9211
9212 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9213       conftest$ac_exeext conftest.$ac_ext
9214 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9215
9216          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9217           # Warning - without using the other run time loading flags,
9218           # -berok will link without error, but may produce a broken library.
9219           no_undefined_flag=' ${wl}-bernotok'
9220           allow_undefined_flag=' ${wl}-berok'
9221           # Exported symbols can be pulled into shared objects from archives
9222           whole_archive_flag_spec='$convenience'
9223           archive_cmds_need_lc=yes
9224           # This is similar to how AIX traditionally builds its shared libraries.
9225           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'
9226         fi
9227       fi
9228       ;;
9229
9230     amigaos*)
9231       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)'
9232       hardcode_libdir_flag_spec='-L$libdir'
9233       hardcode_minus_L=yes
9234       # see comment about different semantics on the GNU ld section
9235       ld_shlibs=no
9236       ;;
9237
9238     bsdi[45]*)
9239       export_dynamic_flag_spec=-rdynamic
9240       ;;
9241
9242     cygwin* | mingw* | pw32*)
9243       # When not using gcc, we currently assume that we are using
9244       # Microsoft Visual C++.
9245       # hardcode_libdir_flag_spec is actually meaningless, as there is
9246       # no search path for DLLs.
9247       hardcode_libdir_flag_spec=' '
9248       allow_undefined_flag=unsupported
9249       # Tell ltmain to make .lib files, not .a files.
9250       libext=lib
9251       # Tell ltmain to make .dll files, not .so files.
9252       shrext_cmds=".dll"
9253       # FIXME: Setting linknames here is a bad hack.
9254       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
9255       # The linker will automatically build a .lib file if we build a DLL.
9256       old_archive_From_new_cmds='true'
9257       # FIXME: Should let the user specify the lib program.
9258       old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
9259       fix_srcfile_path='`cygpath -w "$srcfile"`'
9260       enable_shared_with_static_runtimes=yes
9261       ;;
9262
9263     darwin* | rhapsody*)
9264       case $host_os in
9265         rhapsody* | darwin1.[012])
9266          allow_undefined_flag='${wl}-undefined ${wl}suppress'
9267          ;;
9268        *) # Darwin 1.3 on
9269          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
9270            allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9271          else
9272            case ${MACOSX_DEPLOYMENT_TARGET} in
9273              10.[012])
9274                allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9275                ;;
9276              10.*)
9277                allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
9278                ;;
9279            esac
9280          fi
9281          ;;
9282       esac
9283       archive_cmds_need_lc=no
9284       hardcode_direct=no
9285       hardcode_automatic=yes
9286       hardcode_shlibpath_var=unsupported
9287       whole_archive_flag_spec=''
9288       link_all_deplibs=yes
9289     if test "$GCC" = yes ; then
9290         output_verbose_link_cmd='echo'
9291         archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9292       module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9293       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
9294       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}'
9295       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}'
9296     else
9297       case $cc_basename in
9298         xlc*)
9299          output_verbose_link_cmd='echo'
9300          archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
9301          module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9302           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
9303          archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
9304           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}'
9305           ;;
9306        *)
9307          ld_shlibs=no
9308           ;;
9309       esac
9310     fi
9311       ;;
9312
9313     dgux*)
9314       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9315       hardcode_libdir_flag_spec='-L$libdir'
9316       hardcode_shlibpath_var=no
9317       ;;
9318
9319     freebsd1*)
9320       ld_shlibs=no
9321       ;;
9322
9323     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9324     # support.  Future versions do this automatically, but an explicit c++rt0.o
9325     # does not break anything, and helps significantly (at the cost of a little
9326     # extra space).
9327     freebsd2.2*)
9328       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9329       hardcode_libdir_flag_spec='-R$libdir'
9330       hardcode_direct=yes
9331       hardcode_shlibpath_var=no
9332       ;;
9333
9334     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9335     freebsd2*)
9336       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9337       hardcode_direct=yes
9338       hardcode_minus_L=yes
9339       hardcode_shlibpath_var=no
9340       ;;
9341
9342     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9343     freebsd* | dragonfly*)
9344       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9345       hardcode_libdir_flag_spec='-R$libdir'
9346       hardcode_direct=yes
9347       hardcode_shlibpath_var=no
9348       ;;
9349
9350     hpux9*)
9351       if test "$GCC" = yes; then
9352         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'
9353       else
9354         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'
9355       fi
9356       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9357       hardcode_libdir_separator=:
9358       hardcode_direct=yes
9359
9360       # hardcode_minus_L: Not really in the search PATH,
9361       # but as the default location of the library.
9362       hardcode_minus_L=yes
9363       export_dynamic_flag_spec='${wl}-E'
9364       ;;
9365
9366     hpux10*)
9367       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9368         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9369       else
9370         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9371       fi
9372       if test "$with_gnu_ld" = no; then
9373         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9374         hardcode_libdir_separator=:
9375
9376         hardcode_direct=yes
9377         export_dynamic_flag_spec='${wl}-E'
9378
9379         # hardcode_minus_L: Not really in the search PATH,
9380         # but as the default location of the library.
9381         hardcode_minus_L=yes
9382       fi
9383       ;;
9384
9385     hpux11*)
9386       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9387         case $host_cpu in
9388         hppa*64*)
9389           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9390           ;;
9391         ia64*)
9392           archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9393           ;;
9394         *)
9395           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9396           ;;
9397         esac
9398       else
9399         case $host_cpu in
9400         hppa*64*)
9401           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9402           ;;
9403         ia64*)
9404           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9405           ;;
9406         *)
9407           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9408           ;;
9409         esac
9410       fi
9411       if test "$with_gnu_ld" = no; then
9412         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9413         hardcode_libdir_separator=:
9414
9415         case $host_cpu in
9416         hppa*64*|ia64*)
9417           hardcode_libdir_flag_spec_ld='+b $libdir'
9418           hardcode_direct=no
9419           hardcode_shlibpath_var=no
9420           ;;
9421         *)
9422           hardcode_direct=yes
9423           export_dynamic_flag_spec='${wl}-E'
9424
9425           # hardcode_minus_L: Not really in the search PATH,
9426           # but as the default location of the library.
9427           hardcode_minus_L=yes
9428           ;;
9429         esac
9430       fi
9431       ;;
9432
9433     irix5* | irix6* | nonstopux*)
9434       if test "$GCC" = yes; then
9435         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'
9436       else
9437         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'
9438         hardcode_libdir_flag_spec_ld='-rpath $libdir'
9439       fi
9440       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9441       hardcode_libdir_separator=:
9442       link_all_deplibs=yes
9443       ;;
9444
9445     netbsd* | netbsdelf*-gnu)
9446       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9447         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9448       else
9449         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9450       fi
9451       hardcode_libdir_flag_spec='-R$libdir'
9452       hardcode_direct=yes
9453       hardcode_shlibpath_var=no
9454       ;;
9455
9456     newsos6)
9457       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9458       hardcode_direct=yes
9459       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9460       hardcode_libdir_separator=:
9461       hardcode_shlibpath_var=no
9462       ;;
9463
9464     openbsd*)
9465       hardcode_direct=yes
9466       hardcode_shlibpath_var=no
9467       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9468         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9469         archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9470         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9471         export_dynamic_flag_spec='${wl}-E'
9472       else
9473        case $host_os in
9474          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9475            archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9476            hardcode_libdir_flag_spec='-R$libdir'
9477            ;;
9478          *)
9479            archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9480            hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9481            ;;
9482        esac
9483       fi
9484       ;;
9485
9486     os2*)
9487       hardcode_libdir_flag_spec='-L$libdir'
9488       hardcode_minus_L=yes
9489       allow_undefined_flag=unsupported
9490       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'
9491       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9492       ;;
9493
9494     osf3*)
9495       if test "$GCC" = yes; then
9496         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9497         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'
9498       else
9499         allow_undefined_flag=' -expect_unresolved \*'
9500         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'
9501       fi
9502       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9503       hardcode_libdir_separator=:
9504       ;;
9505
9506     osf4* | osf5*)      # as osf3* with the addition of -msym flag
9507       if test "$GCC" = yes; then
9508         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9509         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'
9510         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9511       else
9512         allow_undefined_flag=' -expect_unresolved \*'
9513         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'
9514         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
9515         $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'
9516
9517         # Both c and cxx compiler support -rpath directly
9518         hardcode_libdir_flag_spec='-rpath $libdir'
9519       fi
9520       hardcode_libdir_separator=:
9521       ;;
9522
9523     solaris*)
9524       no_undefined_flag=' -z text'
9525       if test "$GCC" = yes; then
9526         wlarc='${wl}'
9527         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9528         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9529           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
9530       else
9531         wlarc=''
9532         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9533         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9534         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
9535       fi
9536       hardcode_libdir_flag_spec='-R$libdir'
9537       hardcode_shlibpath_var=no
9538       case $host_os in
9539       solaris2.[0-5] | solaris2.[0-5].*) ;;
9540       *)
9541         # The compiler driver will combine linker options so we
9542         # cannot just pass the convience library names through
9543         # without $wl, iff we do not link with $LD.
9544         # Luckily, gcc supports the same syntax we need for Sun Studio.
9545         # Supported since Solaris 2.6 (maybe 2.5.1?)
9546         case $wlarc in
9547         '')
9548           whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
9549         *)
9550           whole_archive_flag_spec='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
9551         esac ;;
9552       esac
9553       link_all_deplibs=yes
9554       ;;
9555
9556     sunos4*)
9557       if test "x$host_vendor" = xsequent; then
9558         # Use $CC to link under sequent, because it throws in some extra .o
9559         # files that make .init and .fini sections work.
9560         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9561       else
9562         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9563       fi
9564       hardcode_libdir_flag_spec='-L$libdir'
9565       hardcode_direct=yes
9566       hardcode_minus_L=yes
9567       hardcode_shlibpath_var=no
9568       ;;
9569
9570     sysv4)
9571       case $host_vendor in
9572         sni)
9573           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9574           hardcode_direct=yes # is this really true???
9575         ;;
9576         siemens)
9577           ## LD is ld it makes a PLAMLIB
9578           ## CC just makes a GrossModule.
9579           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9580           reload_cmds='$CC -r -o $output$reload_objs'
9581           hardcode_direct=no
9582         ;;
9583         motorola)
9584           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9585           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9586         ;;
9587       esac
9588       runpath_var='LD_RUN_PATH'
9589       hardcode_shlibpath_var=no
9590       ;;
9591
9592     sysv4.3*)
9593       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9594       hardcode_shlibpath_var=no
9595       export_dynamic_flag_spec='-Bexport'
9596       ;;
9597
9598     sysv4*MP*)
9599       if test -d /usr/nec; then
9600         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9601         hardcode_shlibpath_var=no
9602         runpath_var=LD_RUN_PATH
9603         hardcode_runpath_var=yes
9604         ld_shlibs=yes
9605       fi
9606       ;;
9607
9608     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
9609       no_undefined_flag='${wl}-z,text'
9610       archive_cmds_need_lc=no
9611       hardcode_shlibpath_var=no
9612       runpath_var='LD_RUN_PATH'
9613
9614       if test "$GCC" = yes; then
9615         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9616         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9617       else
9618         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9619         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9620       fi
9621       ;;
9622
9623     sysv5* | sco3.2v5* | sco5v6*)
9624       # Note: We can NOT use -z defs as we might desire, because we do not
9625       # link with -lc, and that would cause any symbols used from libc to
9626       # always be unresolved, which means just about no library would
9627       # ever link correctly.  If we're not using GNU ld we use -z text
9628       # though, which does catch some bad symbols but isn't as heavy-handed
9629       # as -z defs.
9630       no_undefined_flag='${wl}-z,text'
9631       allow_undefined_flag='${wl}-z,nodefs'
9632       archive_cmds_need_lc=no
9633       hardcode_shlibpath_var=no
9634       hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
9635       hardcode_libdir_separator=':'
9636       link_all_deplibs=yes
9637       export_dynamic_flag_spec='${wl}-Bexport'
9638       runpath_var='LD_RUN_PATH'
9639
9640       if test "$GCC" = yes; then
9641         archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9642         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9643       else
9644         archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9645         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9646       fi
9647       ;;
9648
9649     uts4*)
9650       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9651       hardcode_libdir_flag_spec='-L$libdir'
9652       hardcode_shlibpath_var=no
9653       ;;
9654
9655     *)
9656       ld_shlibs=no
9657       ;;
9658     esac
9659   fi
9660
9661 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9662 echo "${ECHO_T}$ld_shlibs" >&6; }
9663 test "$ld_shlibs" = no && can_build_shared=no
9664
9665 #
9666 # Do we need to explicitly link libc?
9667 #
9668 case "x$archive_cmds_need_lc" in
9669 x|xyes)
9670   # Assume -lc should be added
9671   archive_cmds_need_lc=yes
9672
9673   if test "$enable_shared" = yes && test "$GCC" = yes; then
9674     case $archive_cmds in
9675     *'~'*)
9676       # FIXME: we may have to deal with multi-command sequences.
9677       ;;
9678     '$CC '*)
9679       # Test whether the compiler implicitly links with -lc since on some
9680       # systems, -lgcc has to come before -lc. If gcc already passes -lc
9681       # to ld, don't add -lc before -lgcc.
9682       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9683 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
9684       $rm conftest*
9685       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9686
9687       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9688   (eval $ac_compile) 2>&5
9689   ac_status=$?
9690   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9691   (exit $ac_status); } 2>conftest.err; then
9692         soname=conftest
9693         lib=conftest
9694         libobjs=conftest.$ac_objext
9695         deplibs=
9696         wl=$lt_prog_compiler_wl
9697         pic_flag=$lt_prog_compiler_pic
9698         compiler_flags=-v
9699         linker_flags=-v
9700         verstring=
9701         output_objdir=.
9702         libname=conftest
9703         lt_save_allow_undefined_flag=$allow_undefined_flag
9704         allow_undefined_flag=
9705         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
9706   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
9707   ac_status=$?
9708   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9709   (exit $ac_status); }
9710         then
9711           archive_cmds_need_lc=no
9712         else
9713           archive_cmds_need_lc=yes
9714         fi
9715         allow_undefined_flag=$lt_save_allow_undefined_flag
9716       else
9717         cat conftest.err 1>&5
9718       fi
9719       $rm conftest*
9720       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9721 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
9722       ;;
9723     esac
9724   fi
9725   ;;
9726 esac
9727
9728 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9729 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
9730 library_names_spec=
9731 libname_spec='lib$name'
9732 soname_spec=
9733 shrext_cmds=".so"
9734 postinstall_cmds=
9735 postuninstall_cmds=
9736 finish_cmds=
9737 finish_eval=
9738 shlibpath_var=
9739 shlibpath_overrides_runpath=unknown
9740 version_type=none
9741 dynamic_linker="$host_os ld.so"
9742 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9743 if test "$GCC" = yes; then
9744   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9745   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9746     # if the path contains ";" then we assume it to be the separator
9747     # otherwise default to the standard path separator (i.e. ":") - it is
9748     # assumed that no part of a normal pathname contains ";" but that should
9749     # okay in the real world where ";" in dirpaths is itself problematic.
9750     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9751   else
9752     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9753   fi
9754 else
9755   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9756 fi
9757 need_lib_prefix=unknown
9758 hardcode_into_libs=no
9759
9760 # when you set need_version to no, make sure it does not cause -set_version
9761 # flags to be left without arguments
9762 need_version=unknown
9763
9764 case $host_os in
9765 aix3*)
9766   version_type=linux
9767   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9768   shlibpath_var=LIBPATH
9769
9770   # AIX 3 has no versioning support, so we append a major version to the name.
9771   soname_spec='${libname}${release}${shared_ext}$major'
9772   ;;
9773
9774 aix4* | aix5*)
9775   version_type=linux
9776   need_lib_prefix=no
9777   need_version=no
9778   hardcode_into_libs=yes
9779   if test "$host_cpu" = ia64; then
9780     # AIX 5 supports IA64
9781     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9782     shlibpath_var=LD_LIBRARY_PATH
9783   else
9784     # With GCC up to 2.95.x, collect2 would create an import file
9785     # for dependence libraries.  The import file would start with
9786     # the line `#! .'.  This would cause the generated library to
9787     # depend on `.', always an invalid library.  This was fixed in
9788     # development snapshots of GCC prior to 3.0.
9789     case $host_os in
9790       aix4 | aix4.[01] | aix4.[01].*)
9791       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9792            echo ' yes '
9793            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9794         :
9795       else
9796         can_build_shared=no
9797       fi
9798       ;;
9799     esac
9800     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9801     # soname into executable. Probably we can add versioning support to
9802     # collect2, so additional links can be useful in future.
9803     if test "$aix_use_runtimelinking" = yes; then
9804       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9805       # instead of lib<name>.a to let people know that these are not
9806       # typical AIX shared libraries.
9807       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9808     else
9809       # We preserve .a as extension for shared libraries through AIX4.2
9810       # and later when we are not doing run time linking.
9811       library_names_spec='${libname}${release}.a $libname.a'
9812       soname_spec='${libname}${release}${shared_ext}$major'
9813     fi
9814     shlibpath_var=LIBPATH
9815   fi
9816   ;;
9817
9818 amigaos*)
9819   library_names_spec='$libname.ixlibrary $libname.a'
9820   # Create ${libname}_ixlibrary.a entries in /sys/libs.
9821   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'
9822   ;;
9823
9824 beos*)
9825   library_names_spec='${libname}${shared_ext}'
9826   dynamic_linker="$host_os ld.so"
9827   shlibpath_var=LIBRARY_PATH
9828   ;;
9829
9830 bsdi[45]*)
9831   version_type=linux
9832   need_version=no
9833   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9834   soname_spec='${libname}${release}${shared_ext}$major'
9835   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9836   shlibpath_var=LD_LIBRARY_PATH
9837   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9838   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9839   # the default ld.so.conf also contains /usr/contrib/lib and
9840   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9841   # libtool to hard-code these into programs
9842   ;;
9843
9844 cygwin* | mingw* | pw32*)
9845   version_type=windows
9846   shrext_cmds=".dll"
9847   need_version=no
9848   need_lib_prefix=no
9849
9850   case $GCC,$host_os in
9851   yes,cygwin* | yes,mingw* | yes,pw32*)
9852     library_names_spec='$libname.dll.a'
9853     # DLL is installed to $(libdir)/../bin by postinstall_cmds
9854     postinstall_cmds='base_file=`basename \${file}`~
9855       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9856       dldir=$destdir/`dirname \$dlpath`~
9857       test -d \$dldir || mkdir -p \$dldir~
9858       $install_prog $dir/$dlname \$dldir/$dlname~
9859       chmod a+x \$dldir/$dlname'
9860     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9861       dlpath=$dir/\$dldll~
9862        $rm \$dlpath'
9863     shlibpath_overrides_runpath=yes
9864
9865     case $host_os in
9866     cygwin*)
9867       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9868       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9869       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9870       ;;
9871     mingw*)
9872       # MinGW DLLs use traditional 'lib' prefix
9873       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9874       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9875       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9876         # It is most probably a Windows format PATH printed by
9877         # mingw gcc, but we are running on Cygwin. Gcc prints its search
9878         # path with ; separators, and with drive letters. We can handle the
9879         # drive letters (cygwin fileutils understands them), so leave them,
9880         # especially as we might pass files found there to a mingw objdump,
9881         # which wouldn't understand a cygwinified path. Ahh.
9882         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9883       else
9884         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9885       fi
9886       ;;
9887     pw32*)
9888       # pw32 DLLs use 'pw' prefix rather than 'lib'
9889       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9890       ;;
9891     esac
9892     ;;
9893
9894   *)
9895     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9896     ;;
9897   esac
9898   dynamic_linker='Win32 ld.exe'
9899   # FIXME: first we should search . and the directory the executable is in
9900   shlibpath_var=PATH
9901   ;;
9902
9903 darwin* | rhapsody*)
9904   dynamic_linker="$host_os dyld"
9905   version_type=darwin
9906   need_lib_prefix=no
9907   need_version=no
9908   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9909   soname_spec='${libname}${release}${major}$shared_ext'
9910   shlibpath_overrides_runpath=yes
9911   shlibpath_var=DYLD_LIBRARY_PATH
9912   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9913   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9914   if test "$GCC" = yes; then
9915     sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
9916   else
9917     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9918   fi
9919   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9920   ;;
9921
9922 dgux*)
9923   version_type=linux
9924   need_lib_prefix=no
9925   need_version=no
9926   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9927   soname_spec='${libname}${release}${shared_ext}$major'
9928   shlibpath_var=LD_LIBRARY_PATH
9929   ;;
9930
9931 freebsd1*)
9932   dynamic_linker=no
9933   ;;
9934
9935 freebsd* | dragonfly*)
9936   # DragonFly does not have aout.  When/if they implement a new
9937   # versioning mechanism, adjust this.
9938   if test -x /usr/bin/objformat; then
9939     objformat=`/usr/bin/objformat`
9940   else
9941     case $host_os in
9942     freebsd[123]*) objformat=aout ;;
9943     *) objformat=elf ;;
9944     esac
9945   fi
9946   version_type=freebsd-$objformat
9947   case $version_type in
9948     freebsd-elf*)
9949       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9950       need_version=no
9951       need_lib_prefix=no
9952       ;;
9953     freebsd-*)
9954       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9955       need_version=yes
9956       ;;
9957   esac
9958   shlibpath_var=LD_LIBRARY_PATH
9959   case $host_os in
9960   freebsd2*)
9961     shlibpath_overrides_runpath=yes
9962     ;;
9963   freebsd3.[01]* | freebsdelf3.[01]*)
9964     shlibpath_overrides_runpath=yes
9965     hardcode_into_libs=yes
9966     ;;
9967   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9968   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9969     shlibpath_overrides_runpath=no
9970     hardcode_into_libs=yes
9971     ;;
9972   freebsd*) # from 4.6 on
9973     shlibpath_overrides_runpath=yes
9974     hardcode_into_libs=yes
9975     ;;
9976   esac
9977   ;;
9978
9979 gnu*)
9980   version_type=linux
9981   need_lib_prefix=no
9982   need_version=no
9983   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9984   soname_spec='${libname}${release}${shared_ext}$major'
9985   shlibpath_var=LD_LIBRARY_PATH
9986   hardcode_into_libs=yes
9987   ;;
9988
9989 hpux9* | hpux10* | hpux11*)
9990   # Give a soname corresponding to the major version so that dld.sl refuses to
9991   # link against other versions.
9992   version_type=sunos
9993   need_lib_prefix=no
9994   need_version=no
9995   case $host_cpu in
9996   ia64*)
9997     shrext_cmds='.so'
9998     hardcode_into_libs=yes
9999     dynamic_linker="$host_os dld.so"
10000     shlibpath_var=LD_LIBRARY_PATH
10001     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10002     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10003     soname_spec='${libname}${release}${shared_ext}$major'
10004     if test "X$HPUX_IA64_MODE" = X32; then
10005       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10006     else
10007       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10008     fi
10009     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10010     ;;
10011    hppa*64*)
10012      shrext_cmds='.sl'
10013      hardcode_into_libs=yes
10014      dynamic_linker="$host_os dld.sl"
10015      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10016      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10017      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10018      soname_spec='${libname}${release}${shared_ext}$major'
10019      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10020      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10021      ;;
10022    *)
10023     shrext_cmds='.sl'
10024     dynamic_linker="$host_os dld.sl"
10025     shlibpath_var=SHLIB_PATH
10026     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10027     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10028     soname_spec='${libname}${release}${shared_ext}$major'
10029     ;;
10030   esac
10031   # HP-UX runs *really* slowly unless shared libraries are mode 555.
10032   postinstall_cmds='chmod 555 $lib'
10033   ;;
10034
10035 interix3*)
10036   version_type=linux
10037   need_lib_prefix=no
10038   need_version=no
10039   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10040   soname_spec='${libname}${release}${shared_ext}$major'
10041   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10042   shlibpath_var=LD_LIBRARY_PATH
10043   shlibpath_overrides_runpath=no
10044   hardcode_into_libs=yes
10045   ;;
10046
10047 irix5* | irix6* | nonstopux*)
10048   case $host_os in
10049     nonstopux*) version_type=nonstopux ;;
10050     *)
10051         if test "$lt_cv_prog_gnu_ld" = yes; then
10052                 version_type=linux
10053         else
10054                 version_type=irix
10055         fi ;;
10056   esac
10057   need_lib_prefix=no
10058   need_version=no
10059   soname_spec='${libname}${release}${shared_ext}$major'
10060   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10061   case $host_os in
10062   irix5* | nonstopux*)
10063     libsuff= shlibsuff=
10064     ;;
10065   *)
10066     case $LD in # libtool.m4 will add one of these switches to LD
10067     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10068       libsuff= shlibsuff= libmagic=32-bit;;
10069     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10070       libsuff=32 shlibsuff=N32 libmagic=N32;;
10071     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10072       libsuff=64 shlibsuff=64 libmagic=64-bit;;
10073     *) libsuff= shlibsuff= libmagic=never-match;;
10074     esac
10075     ;;
10076   esac
10077   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10078   shlibpath_overrides_runpath=no
10079   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10080   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10081   hardcode_into_libs=yes
10082   ;;
10083
10084 # No shared lib support for Linux oldld, aout, or coff.
10085 linux*oldld* | linux*aout* | linux*coff*)
10086   dynamic_linker=no
10087   ;;
10088
10089 # This must be Linux ELF.
10090 linux* | k*bsd*-gnu)
10091   version_type=linux
10092   need_lib_prefix=no
10093   need_version=no
10094   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10095   soname_spec='${libname}${release}${shared_ext}$major'
10096   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10097   shlibpath_var=LD_LIBRARY_PATH
10098   shlibpath_overrides_runpath=no
10099   # This implies no fast_install, which is unacceptable.
10100   # Some rework will be needed to allow for fast_install
10101   # before this can be enabled.
10102   hardcode_into_libs=yes
10103
10104   # Append ld.so.conf contents to the search path
10105   if test -f /etc/ld.so.conf; then
10106     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,        ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
10107     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10108   fi
10109
10110   # We used to test for /lib/ld.so.1 and disable shared libraries on
10111   # powerpc, because MkLinux only supported shared libraries with the
10112   # GNU dynamic linker.  Since this was broken with cross compilers,
10113   # most powerpc-linux boxes support dynamic linking these days and
10114   # people can always --disable-shared, the test was removed, and we
10115   # assume the GNU/Linux dynamic linker is in use.
10116   dynamic_linker='GNU/Linux ld.so'
10117   ;;
10118
10119 netbsdelf*-gnu)
10120   version_type=linux
10121   need_lib_prefix=no
10122   need_version=no
10123   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10124   soname_spec='${libname}${release}${shared_ext}$major'
10125   shlibpath_var=LD_LIBRARY_PATH
10126   shlibpath_overrides_runpath=no
10127   hardcode_into_libs=yes
10128   dynamic_linker='NetBSD ld.elf_so'
10129   ;;
10130
10131 netbsd*)
10132   version_type=sunos
10133   need_lib_prefix=no
10134   need_version=no
10135   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10136     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10137     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10138     dynamic_linker='NetBSD (a.out) ld.so'
10139   else
10140     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10141     soname_spec='${libname}${release}${shared_ext}$major'
10142     dynamic_linker='NetBSD ld.elf_so'
10143   fi
10144   shlibpath_var=LD_LIBRARY_PATH
10145   shlibpath_overrides_runpath=yes
10146   hardcode_into_libs=yes
10147   ;;
10148
10149 newsos6)
10150   version_type=linux
10151   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10152   shlibpath_var=LD_LIBRARY_PATH
10153   shlibpath_overrides_runpath=yes
10154   ;;
10155
10156 nto-qnx*)
10157   version_type=linux
10158   need_lib_prefix=no
10159   need_version=no
10160   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10161   soname_spec='${libname}${release}${shared_ext}$major'
10162   shlibpath_var=LD_LIBRARY_PATH
10163   shlibpath_overrides_runpath=yes
10164   ;;
10165
10166 openbsd*)
10167   version_type=sunos
10168   sys_lib_dlsearch_path_spec="/usr/lib"
10169   need_lib_prefix=no
10170   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10171   case $host_os in
10172     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10173     *)                         need_version=no  ;;
10174   esac
10175   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10176   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10177   shlibpath_var=LD_LIBRARY_PATH
10178   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10179     case $host_os in
10180       openbsd2.[89] | openbsd2.[89].*)
10181         shlibpath_overrides_runpath=no
10182         ;;
10183       *)
10184         shlibpath_overrides_runpath=yes
10185         ;;
10186       esac
10187   else
10188     shlibpath_overrides_runpath=yes
10189   fi
10190   ;;
10191
10192 os2*)
10193   libname_spec='$name'
10194   shrext_cmds=".dll"
10195   need_lib_prefix=no
10196   library_names_spec='$libname${shared_ext} $libname.a'
10197   dynamic_linker='OS/2 ld.exe'
10198   shlibpath_var=LIBPATH
10199   ;;
10200
10201 osf3* | osf4* | osf5*)
10202   version_type=osf
10203   need_lib_prefix=no
10204   need_version=no
10205   soname_spec='${libname}${release}${shared_ext}$major'
10206   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10207   shlibpath_var=LD_LIBRARY_PATH
10208   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10209   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10210   ;;
10211
10212 solaris*)
10213   version_type=linux
10214   need_lib_prefix=no
10215   need_version=no
10216   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10217   soname_spec='${libname}${release}${shared_ext}$major'
10218   shlibpath_var=LD_LIBRARY_PATH
10219   shlibpath_overrides_runpath=yes
10220   hardcode_into_libs=yes
10221   # ldd complains unless libraries are executable
10222   postinstall_cmds='chmod +x $lib'
10223   ;;
10224
10225 sunos4*)
10226   version_type=sunos
10227   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10228   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10229   shlibpath_var=LD_LIBRARY_PATH
10230   shlibpath_overrides_runpath=yes
10231   if test "$with_gnu_ld" = yes; then
10232     need_lib_prefix=no
10233   fi
10234   need_version=yes
10235   ;;
10236
10237 sysv4 | sysv4.3*)
10238   version_type=linux
10239   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10240   soname_spec='${libname}${release}${shared_ext}$major'
10241   shlibpath_var=LD_LIBRARY_PATH
10242   case $host_vendor in
10243     sni)
10244       shlibpath_overrides_runpath=no
10245       need_lib_prefix=no
10246       export_dynamic_flag_spec='${wl}-Blargedynsym'
10247       runpath_var=LD_RUN_PATH
10248       ;;
10249     siemens)
10250       need_lib_prefix=no
10251       ;;
10252     motorola)
10253       need_lib_prefix=no
10254       need_version=no
10255       shlibpath_overrides_runpath=no
10256       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10257       ;;
10258   esac
10259   ;;
10260
10261 sysv4*MP*)
10262   if test -d /usr/nec ;then
10263     version_type=linux
10264     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10265     soname_spec='$libname${shared_ext}.$major'
10266     shlibpath_var=LD_LIBRARY_PATH
10267   fi
10268   ;;
10269
10270 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10271   version_type=freebsd-elf
10272   need_lib_prefix=no
10273   need_version=no
10274   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10275   soname_spec='${libname}${release}${shared_ext}$major'
10276   shlibpath_var=LD_LIBRARY_PATH
10277   hardcode_into_libs=yes
10278   if test "$with_gnu_ld" = yes; then
10279     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10280     shlibpath_overrides_runpath=no
10281   else
10282     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10283     shlibpath_overrides_runpath=yes
10284     case $host_os in
10285       sco3.2v5*)
10286         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10287         ;;
10288     esac
10289   fi
10290   sys_lib_dlsearch_path_spec='/usr/lib'
10291   ;;
10292
10293 uts4*)
10294   version_type=linux
10295   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10296   soname_spec='${libname}${release}${shared_ext}$major'
10297   shlibpath_var=LD_LIBRARY_PATH
10298   ;;
10299
10300 *)
10301   dynamic_linker=no
10302   ;;
10303 esac
10304 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10305 echo "${ECHO_T}$dynamic_linker" >&6; }
10306 test "$dynamic_linker" = no && can_build_shared=no
10307
10308 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10309 if test "$GCC" = yes; then
10310   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10311 fi
10312
10313 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10314 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
10315 hardcode_action=
10316 if test -n "$hardcode_libdir_flag_spec" || \
10317    test -n "$runpath_var" || \
10318    test "X$hardcode_automatic" = "Xyes" ; then
10319
10320   # We can hardcode non-existant directories.
10321   if test "$hardcode_direct" != no &&
10322      # If the only mechanism to avoid hardcoding is shlibpath_var, we
10323      # have to relink, otherwise we might link with an installed library
10324      # when we should be linking with a yet-to-be-installed one
10325      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
10326      test "$hardcode_minus_L" != no; then
10327     # Linking always hardcodes the temporary library directory.
10328     hardcode_action=relink
10329   else
10330     # We can link without hardcoding, and we can hardcode nonexisting dirs.
10331     hardcode_action=immediate
10332   fi
10333 else
10334   # We cannot hardcode anything, or else we can only hardcode existing
10335   # directories.
10336   hardcode_action=unsupported
10337 fi
10338 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
10339 echo "${ECHO_T}$hardcode_action" >&6; }
10340
10341 if test "$hardcode_action" = relink; then
10342   # Fast installation is not supported
10343   enable_fast_install=no
10344 elif test "$shlibpath_overrides_runpath" = yes ||
10345      test "$enable_shared" = no; then
10346   # Fast installation is not necessary
10347   enable_fast_install=needless
10348 fi
10349
10350 striplib=
10351 old_striplib=
10352 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10353 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
10354 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
10355   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10356   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10357   { echo "$as_me:$LINENO: result: yes" >&5
10358 echo "${ECHO_T}yes" >&6; }
10359 else
10360 # FIXME - insert some real tests, host_os isn't really good enough
10361   case $host_os in
10362    darwin*)
10363        if test -n "$STRIP" ; then
10364          striplib="$STRIP -x"
10365          { echo "$as_me:$LINENO: result: yes" >&5
10366 echo "${ECHO_T}yes" >&6; }
10367        else
10368   { echo "$as_me:$LINENO: result: no" >&5
10369 echo "${ECHO_T}no" >&6; }
10370 fi
10371        ;;
10372    *)
10373   { echo "$as_me:$LINENO: result: no" >&5
10374 echo "${ECHO_T}no" >&6; }
10375     ;;
10376   esac
10377 fi
10378
10379 if test "x$enable_dlopen" != xyes; then
10380   enable_dlopen=unknown
10381   enable_dlopen_self=unknown
10382   enable_dlopen_self_static=unknown
10383 else
10384   lt_cv_dlopen=no
10385   lt_cv_dlopen_libs=
10386
10387   case $host_os in
10388   beos*)
10389     lt_cv_dlopen="load_add_on"
10390     lt_cv_dlopen_libs=
10391     lt_cv_dlopen_self=yes
10392     ;;
10393
10394   mingw* | pw32*)
10395     lt_cv_dlopen="LoadLibrary"
10396     lt_cv_dlopen_libs=
10397    ;;
10398
10399   cygwin*)
10400     lt_cv_dlopen="dlopen"
10401     lt_cv_dlopen_libs=
10402    ;;
10403
10404   darwin*)
10405   # if libdl is installed we need to link against it
10406     { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10407 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10408 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10409   echo $ECHO_N "(cached) $ECHO_C" >&6
10410 else
10411   ac_check_lib_save_LIBS=$LIBS
10412 LIBS="-ldl  $LIBS"
10413 cat >conftest.$ac_ext <<_ACEOF
10414 /* confdefs.h.  */
10415 _ACEOF
10416 cat confdefs.h >>conftest.$ac_ext
10417 cat >>conftest.$ac_ext <<_ACEOF
10418 /* end confdefs.h.  */
10419
10420 /* Override any GCC internal prototype to avoid an error.
10421    Use char because int might match the return type of a GCC
10422    builtin and then its argument prototype would still apply.  */
10423 #ifdef __cplusplus
10424 extern "C"
10425 #endif
10426 char dlopen ();
10427 int
10428 main ()
10429 {
10430 return dlopen ();
10431   ;
10432   return 0;
10433 }
10434 _ACEOF
10435 rm -f conftest.$ac_objext conftest$ac_exeext
10436 if { (ac_try="$ac_link"
10437 case "(($ac_try" in
10438   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10439   *) ac_try_echo=$ac_try;;
10440 esac
10441 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10442   (eval "$ac_link") 2>conftest.er1
10443   ac_status=$?
10444   grep -v '^ *+' conftest.er1 >conftest.err
10445   rm -f conftest.er1
10446   cat conftest.err >&5
10447   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10448   (exit $ac_status); } && {
10449          test -z "$ac_c_werror_flag" ||
10450          test ! -s conftest.err
10451        } && test -s conftest$ac_exeext &&
10452        $as_test_x conftest$ac_exeext; then
10453   ac_cv_lib_dl_dlopen=yes
10454 else
10455   echo "$as_me: failed program was:" >&5
10456 sed 's/^/| /' conftest.$ac_ext >&5
10457
10458         ac_cv_lib_dl_dlopen=no
10459 fi
10460
10461 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10462       conftest$ac_exeext conftest.$ac_ext
10463 LIBS=$ac_check_lib_save_LIBS
10464 fi
10465 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10466 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10467 if test $ac_cv_lib_dl_dlopen = yes; then
10468   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10469 else
10470   
10471     lt_cv_dlopen="dyld"
10472     lt_cv_dlopen_libs=
10473     lt_cv_dlopen_self=yes
10474     
10475 fi
10476
10477    ;;
10478
10479   *)
10480     { echo "$as_me:$LINENO: checking for shl_load" >&5
10481 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
10482 if test "${ac_cv_func_shl_load+set}" = set; then
10483   echo $ECHO_N "(cached) $ECHO_C" >&6
10484 else
10485   cat >conftest.$ac_ext <<_ACEOF
10486 /* confdefs.h.  */
10487 _ACEOF
10488 cat confdefs.h >>conftest.$ac_ext
10489 cat >>conftest.$ac_ext <<_ACEOF
10490 /* end confdefs.h.  */
10491 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10492    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10493 #define shl_load innocuous_shl_load
10494
10495 /* System header to define __stub macros and hopefully few prototypes,
10496     which can conflict with char shl_load (); below.
10497     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10498     <limits.h> exists even on freestanding compilers.  */
10499
10500 #ifdef __STDC__
10501 # include <limits.h>
10502 #else
10503 # include <assert.h>
10504 #endif
10505
10506 #undef shl_load
10507
10508 /* Override any GCC internal prototype to avoid an error.
10509    Use char because int might match the return type of a GCC
10510    builtin and then its argument prototype would still apply.  */
10511 #ifdef __cplusplus
10512 extern "C"
10513 #endif
10514 char shl_load ();
10515 /* The GNU C library defines this for functions which it implements
10516     to always fail with ENOSYS.  Some functions are actually named
10517     something starting with __ and the normal name is an alias.  */
10518 #if defined __stub_shl_load || defined __stub___shl_load
10519 choke me
10520 #endif
10521
10522 int
10523 main ()
10524 {
10525 return shl_load ();
10526   ;
10527   return 0;
10528 }
10529 _ACEOF
10530 rm -f conftest.$ac_objext conftest$ac_exeext
10531 if { (ac_try="$ac_link"
10532 case "(($ac_try" in
10533   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10534   *) ac_try_echo=$ac_try;;
10535 esac
10536 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10537   (eval "$ac_link") 2>conftest.er1
10538   ac_status=$?
10539   grep -v '^ *+' conftest.er1 >conftest.err
10540   rm -f conftest.er1
10541   cat conftest.err >&5
10542   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10543   (exit $ac_status); } && {
10544          test -z "$ac_c_werror_flag" ||
10545          test ! -s conftest.err
10546        } && test -s conftest$ac_exeext &&
10547        $as_test_x conftest$ac_exeext; then
10548   ac_cv_func_shl_load=yes
10549 else
10550   echo "$as_me: failed program was:" >&5
10551 sed 's/^/| /' conftest.$ac_ext >&5
10552
10553         ac_cv_func_shl_load=no
10554 fi
10555
10556 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10557       conftest$ac_exeext conftest.$ac_ext
10558 fi
10559 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10560 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
10561 if test $ac_cv_func_shl_load = yes; then
10562   lt_cv_dlopen="shl_load"
10563 else
10564   { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10565 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
10566 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10567   echo $ECHO_N "(cached) $ECHO_C" >&6
10568 else
10569   ac_check_lib_save_LIBS=$LIBS
10570 LIBS="-ldld  $LIBS"
10571 cat >conftest.$ac_ext <<_ACEOF
10572 /* confdefs.h.  */
10573 _ACEOF
10574 cat confdefs.h >>conftest.$ac_ext
10575 cat >>conftest.$ac_ext <<_ACEOF
10576 /* end confdefs.h.  */
10577
10578 /* Override any GCC internal prototype to avoid an error.
10579    Use char because int might match the return type of a GCC
10580    builtin and then its argument prototype would still apply.  */
10581 #ifdef __cplusplus
10582 extern "C"
10583 #endif
10584 char shl_load ();
10585 int
10586 main ()
10587 {
10588 return shl_load ();
10589   ;
10590   return 0;
10591 }
10592 _ACEOF
10593 rm -f conftest.$ac_objext conftest$ac_exeext
10594 if { (ac_try="$ac_link"
10595 case "(($ac_try" in
10596   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10597   *) ac_try_echo=$ac_try;;
10598 esac
10599 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10600   (eval "$ac_link") 2>conftest.er1
10601   ac_status=$?
10602   grep -v '^ *+' conftest.er1 >conftest.err
10603   rm -f conftest.er1
10604   cat conftest.err >&5
10605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10606   (exit $ac_status); } && {
10607          test -z "$ac_c_werror_flag" ||
10608          test ! -s conftest.err
10609        } && test -s conftest$ac_exeext &&
10610        $as_test_x conftest$ac_exeext; then
10611   ac_cv_lib_dld_shl_load=yes
10612 else
10613   echo "$as_me: failed program was:" >&5
10614 sed 's/^/| /' conftest.$ac_ext >&5
10615
10616         ac_cv_lib_dld_shl_load=no
10617 fi
10618
10619 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10620       conftest$ac_exeext conftest.$ac_ext
10621 LIBS=$ac_check_lib_save_LIBS
10622 fi
10623 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10624 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
10625 if test $ac_cv_lib_dld_shl_load = yes; then
10626   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
10627 else
10628   { echo "$as_me:$LINENO: checking for dlopen" >&5
10629 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
10630 if test "${ac_cv_func_dlopen+set}" = set; then
10631   echo $ECHO_N "(cached) $ECHO_C" >&6
10632 else
10633   cat >conftest.$ac_ext <<_ACEOF
10634 /* confdefs.h.  */
10635 _ACEOF
10636 cat confdefs.h >>conftest.$ac_ext
10637 cat >>conftest.$ac_ext <<_ACEOF
10638 /* end confdefs.h.  */
10639 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10640    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10641 #define dlopen innocuous_dlopen
10642
10643 /* System header to define __stub macros and hopefully few prototypes,
10644     which can conflict with char dlopen (); below.
10645     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10646     <limits.h> exists even on freestanding compilers.  */
10647
10648 #ifdef __STDC__
10649 # include <limits.h>
10650 #else
10651 # include <assert.h>
10652 #endif
10653
10654 #undef dlopen
10655
10656 /* Override any GCC internal prototype to avoid an error.
10657    Use char because int might match the return type of a GCC
10658    builtin and then its argument prototype would still apply.  */
10659 #ifdef __cplusplus
10660 extern "C"
10661 #endif
10662 char dlopen ();
10663 /* The GNU C library defines this for functions which it implements
10664     to always fail with ENOSYS.  Some functions are actually named
10665     something starting with __ and the normal name is an alias.  */
10666 #if defined __stub_dlopen || defined __stub___dlopen
10667 choke me
10668 #endif
10669
10670 int
10671 main ()
10672 {
10673 return dlopen ();
10674   ;
10675   return 0;
10676 }
10677 _ACEOF
10678 rm -f conftest.$ac_objext conftest$ac_exeext
10679 if { (ac_try="$ac_link"
10680 case "(($ac_try" in
10681   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10682   *) ac_try_echo=$ac_try;;
10683 esac
10684 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10685   (eval "$ac_link") 2>conftest.er1
10686   ac_status=$?
10687   grep -v '^ *+' conftest.er1 >conftest.err
10688   rm -f conftest.er1
10689   cat conftest.err >&5
10690   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10691   (exit $ac_status); } && {
10692          test -z "$ac_c_werror_flag" ||
10693          test ! -s conftest.err
10694        } && test -s conftest$ac_exeext &&
10695        $as_test_x conftest$ac_exeext; then
10696   ac_cv_func_dlopen=yes
10697 else
10698   echo "$as_me: failed program was:" >&5
10699 sed 's/^/| /' conftest.$ac_ext >&5
10700
10701         ac_cv_func_dlopen=no
10702 fi
10703
10704 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10705       conftest$ac_exeext conftest.$ac_ext
10706 fi
10707 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10708 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
10709 if test $ac_cv_func_dlopen = yes; then
10710   lt_cv_dlopen="dlopen"
10711 else
10712   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10713 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10714 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10715   echo $ECHO_N "(cached) $ECHO_C" >&6
10716 else
10717   ac_check_lib_save_LIBS=$LIBS
10718 LIBS="-ldl  $LIBS"
10719 cat >conftest.$ac_ext <<_ACEOF
10720 /* confdefs.h.  */
10721 _ACEOF
10722 cat confdefs.h >>conftest.$ac_ext
10723 cat >>conftest.$ac_ext <<_ACEOF
10724 /* end confdefs.h.  */
10725
10726 /* Override any GCC internal prototype to avoid an error.
10727    Use char because int might match the return type of a GCC
10728    builtin and then its argument prototype would still apply.  */
10729 #ifdef __cplusplus
10730 extern "C"
10731 #endif
10732 char dlopen ();
10733 int
10734 main ()
10735 {
10736 return dlopen ();
10737   ;
10738   return 0;
10739 }
10740 _ACEOF
10741 rm -f conftest.$ac_objext conftest$ac_exeext
10742 if { (ac_try="$ac_link"
10743 case "(($ac_try" in
10744   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10745   *) ac_try_echo=$ac_try;;
10746 esac
10747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10748   (eval "$ac_link") 2>conftest.er1
10749   ac_status=$?
10750   grep -v '^ *+' conftest.er1 >conftest.err
10751   rm -f conftest.er1
10752   cat conftest.err >&5
10753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10754   (exit $ac_status); } && {
10755          test -z "$ac_c_werror_flag" ||
10756          test ! -s conftest.err
10757        } && test -s conftest$ac_exeext &&
10758        $as_test_x conftest$ac_exeext; then
10759   ac_cv_lib_dl_dlopen=yes
10760 else
10761   echo "$as_me: failed program was:" >&5
10762 sed 's/^/| /' conftest.$ac_ext >&5
10763
10764         ac_cv_lib_dl_dlopen=no
10765 fi
10766
10767 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10768       conftest$ac_exeext conftest.$ac_ext
10769 LIBS=$ac_check_lib_save_LIBS
10770 fi
10771 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10772 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10773 if test $ac_cv_lib_dl_dlopen = yes; then
10774   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10775 else
10776   { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10777 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10778 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10779   echo $ECHO_N "(cached) $ECHO_C" >&6
10780 else
10781   ac_check_lib_save_LIBS=$LIBS
10782 LIBS="-lsvld  $LIBS"
10783 cat >conftest.$ac_ext <<_ACEOF
10784 /* confdefs.h.  */
10785 _ACEOF
10786 cat confdefs.h >>conftest.$ac_ext
10787 cat >>conftest.$ac_ext <<_ACEOF
10788 /* end confdefs.h.  */
10789
10790 /* Override any GCC internal prototype to avoid an error.
10791    Use char because int might match the return type of a GCC
10792    builtin and then its argument prototype would still apply.  */
10793 #ifdef __cplusplus
10794 extern "C"
10795 #endif
10796 char dlopen ();
10797 int
10798 main ()
10799 {
10800 return dlopen ();
10801   ;
10802   return 0;
10803 }
10804 _ACEOF
10805 rm -f conftest.$ac_objext conftest$ac_exeext
10806 if { (ac_try="$ac_link"
10807 case "(($ac_try" in
10808   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10809   *) ac_try_echo=$ac_try;;
10810 esac
10811 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10812   (eval "$ac_link") 2>conftest.er1
10813   ac_status=$?
10814   grep -v '^ *+' conftest.er1 >conftest.err
10815   rm -f conftest.er1
10816   cat conftest.err >&5
10817   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10818   (exit $ac_status); } && {
10819          test -z "$ac_c_werror_flag" ||
10820          test ! -s conftest.err
10821        } && test -s conftest$ac_exeext &&
10822        $as_test_x conftest$ac_exeext; then
10823   ac_cv_lib_svld_dlopen=yes
10824 else
10825   echo "$as_me: failed program was:" >&5
10826 sed 's/^/| /' conftest.$ac_ext >&5
10827
10828         ac_cv_lib_svld_dlopen=no
10829 fi
10830
10831 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10832       conftest$ac_exeext conftest.$ac_ext
10833 LIBS=$ac_check_lib_save_LIBS
10834 fi
10835 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10836 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10837 if test $ac_cv_lib_svld_dlopen = yes; then
10838   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10839 else
10840   { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10841 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10842 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10843   echo $ECHO_N "(cached) $ECHO_C" >&6
10844 else
10845   ac_check_lib_save_LIBS=$LIBS
10846 LIBS="-ldld  $LIBS"
10847 cat >conftest.$ac_ext <<_ACEOF
10848 /* confdefs.h.  */
10849 _ACEOF
10850 cat confdefs.h >>conftest.$ac_ext
10851 cat >>conftest.$ac_ext <<_ACEOF
10852 /* end confdefs.h.  */
10853
10854 /* Override any GCC internal prototype to avoid an error.
10855    Use char because int might match the return type of a GCC
10856    builtin and then its argument prototype would still apply.  */
10857 #ifdef __cplusplus
10858 extern "C"
10859 #endif
10860 char dld_link ();
10861 int
10862 main ()
10863 {
10864 return dld_link ();
10865   ;
10866   return 0;
10867 }
10868 _ACEOF
10869 rm -f conftest.$ac_objext conftest$ac_exeext
10870 if { (ac_try="$ac_link"
10871 case "(($ac_try" in
10872   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10873   *) ac_try_echo=$ac_try;;
10874 esac
10875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10876   (eval "$ac_link") 2>conftest.er1
10877   ac_status=$?
10878   grep -v '^ *+' conftest.er1 >conftest.err
10879   rm -f conftest.er1
10880   cat conftest.err >&5
10881   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10882   (exit $ac_status); } && {
10883          test -z "$ac_c_werror_flag" ||
10884          test ! -s conftest.err
10885        } && test -s conftest$ac_exeext &&
10886        $as_test_x conftest$ac_exeext; then
10887   ac_cv_lib_dld_dld_link=yes
10888 else
10889   echo "$as_me: failed program was:" >&5
10890 sed 's/^/| /' conftest.$ac_ext >&5
10891
10892         ac_cv_lib_dld_dld_link=no
10893 fi
10894
10895 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10896       conftest$ac_exeext conftest.$ac_ext
10897 LIBS=$ac_check_lib_save_LIBS
10898 fi
10899 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10900 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10901 if test $ac_cv_lib_dld_dld_link = yes; then
10902   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
10903 fi
10904
10905               
10906 fi
10907
10908             
10909 fi
10910
10911           
10912 fi
10913
10914         
10915 fi
10916
10917       
10918 fi
10919
10920     ;;
10921   esac
10922
10923   if test "x$lt_cv_dlopen" != xno; then
10924     enable_dlopen=yes
10925   else
10926     enable_dlopen=no
10927   fi
10928
10929   case $lt_cv_dlopen in
10930   dlopen)
10931     save_CPPFLAGS="$CPPFLAGS"
10932     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10933
10934     save_LDFLAGS="$LDFLAGS"
10935     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10936
10937     save_LIBS="$LIBS"
10938     LIBS="$lt_cv_dlopen_libs $LIBS"
10939
10940     { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10941 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
10942 if test "${lt_cv_dlopen_self+set}" = set; then
10943   echo $ECHO_N "(cached) $ECHO_C" >&6
10944 else
10945           if test "$cross_compiling" = yes; then :
10946   lt_cv_dlopen_self=cross
10947 else
10948   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10949   lt_status=$lt_dlunknown
10950   cat > conftest.$ac_ext <<EOF
10951 #line __oline__ "configure"
10952 #include "confdefs.h"
10953
10954 #if HAVE_DLFCN_H
10955 #include <dlfcn.h>
10956 #endif
10957
10958 #include <stdio.h>
10959
10960 #ifdef RTLD_GLOBAL
10961 #  define LT_DLGLOBAL           RTLD_GLOBAL
10962 #else
10963 #  ifdef DL_GLOBAL
10964 #    define LT_DLGLOBAL         DL_GLOBAL
10965 #  else
10966 #    define LT_DLGLOBAL         0
10967 #  endif
10968 #endif
10969
10970 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10971    find out it does not work in some platform. */
10972 #ifndef LT_DLLAZY_OR_NOW
10973 #  ifdef RTLD_LAZY
10974 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10975 #  else
10976 #    ifdef DL_LAZY
10977 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10978 #    else
10979 #      ifdef RTLD_NOW
10980 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10981 #      else
10982 #        ifdef DL_NOW
10983 #          define LT_DLLAZY_OR_NOW      DL_NOW
10984 #        else
10985 #          define LT_DLLAZY_OR_NOW      0
10986 #        endif
10987 #      endif
10988 #    endif
10989 #  endif
10990 #endif
10991
10992 #ifdef __cplusplus
10993 extern "C" void exit (int);
10994 #endif
10995
10996 void fnord() { int i=42;}
10997 int main ()
10998 {
10999   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11000   int status = $lt_dlunknown;
11001
11002   if (self)
11003     {
11004       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11005       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11006       /* dlclose (self); */
11007     }
11008   else
11009     puts (dlerror ());
11010
11011     exit (status);
11012 }
11013 EOF
11014   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11015   (eval $ac_link) 2>&5
11016   ac_status=$?
11017   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11018   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11019     (./conftest; exit; ) >&5 2>/dev/null
11020     lt_status=$?
11021     case x$lt_status in
11022       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11023       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11024       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11025     esac
11026   else :
11027     # compilation failed
11028     lt_cv_dlopen_self=no
11029   fi
11030 fi
11031 rm -fr conftest*
11032
11033     
11034 fi
11035 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
11036 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
11037
11038     if test "x$lt_cv_dlopen_self" = xyes; then
11039       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11040       { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
11041 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
11042 if test "${lt_cv_dlopen_self_static+set}" = set; then
11043   echo $ECHO_N "(cached) $ECHO_C" >&6
11044 else
11045           if test "$cross_compiling" = yes; then :
11046   lt_cv_dlopen_self_static=cross
11047 else
11048   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11049   lt_status=$lt_dlunknown
11050   cat > conftest.$ac_ext <<EOF
11051 #line __oline__ "configure"
11052 #include "confdefs.h"
11053
11054 #if HAVE_DLFCN_H
11055 #include <dlfcn.h>
11056 #endif
11057
11058 #include <stdio.h>
11059
11060 #ifdef RTLD_GLOBAL
11061 #  define LT_DLGLOBAL           RTLD_GLOBAL
11062 #else
11063 #  ifdef DL_GLOBAL
11064 #    define LT_DLGLOBAL         DL_GLOBAL
11065 #  else
11066 #    define LT_DLGLOBAL         0
11067 #  endif
11068 #endif
11069
11070 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11071    find out it does not work in some platform. */
11072 #ifndef LT_DLLAZY_OR_NOW
11073 #  ifdef RTLD_LAZY
11074 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11075 #  else
11076 #    ifdef DL_LAZY
11077 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11078 #    else
11079 #      ifdef RTLD_NOW
11080 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11081 #      else
11082 #        ifdef DL_NOW
11083 #          define LT_DLLAZY_OR_NOW      DL_NOW
11084 #        else
11085 #          define LT_DLLAZY_OR_NOW      0
11086 #        endif
11087 #      endif
11088 #    endif
11089 #  endif
11090 #endif
11091
11092 #ifdef __cplusplus
11093 extern "C" void exit (int);
11094 #endif
11095
11096 void fnord() { int i=42;}
11097 int main ()
11098 {
11099   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11100   int status = $lt_dlunknown;
11101
11102   if (self)
11103     {
11104       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11105       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11106       /* dlclose (self); */
11107     }
11108   else
11109     puts (dlerror ());
11110
11111     exit (status);
11112 }
11113 EOF
11114   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11115   (eval $ac_link) 2>&5
11116   ac_status=$?
11117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11118   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11119     (./conftest; exit; ) >&5 2>/dev/null
11120     lt_status=$?
11121     case x$lt_status in
11122       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11123       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11124       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11125     esac
11126   else :
11127     # compilation failed
11128     lt_cv_dlopen_self_static=no
11129   fi
11130 fi
11131 rm -fr conftest*
11132
11133       
11134 fi
11135 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
11136 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
11137     fi
11138
11139     CPPFLAGS="$save_CPPFLAGS"
11140     LDFLAGS="$save_LDFLAGS"
11141     LIBS="$save_LIBS"
11142     ;;
11143   esac
11144
11145   case $lt_cv_dlopen_self in
11146   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11147   *) enable_dlopen_self=unknown ;;
11148   esac
11149
11150   case $lt_cv_dlopen_self_static in
11151   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11152   *) enable_dlopen_self_static=unknown ;;
11153   esac
11154 fi
11155
11156
11157 # Report which library types will actually be built
11158 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
11159 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
11160 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
11161 echo "${ECHO_T}$can_build_shared" >&6; }
11162
11163 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
11164 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
11165 test "$can_build_shared" = "no" && enable_shared=no
11166
11167 # On AIX, shared libraries and static libraries use the same namespace, and
11168 # are all built from PIC.
11169 case $host_os in
11170 aix3*)
11171   test "$enable_shared" = yes && enable_static=no
11172   if test -n "$RANLIB"; then
11173     archive_cmds="$archive_cmds~\$RANLIB \$lib"
11174     postinstall_cmds='$RANLIB $lib'
11175   fi
11176   ;;
11177
11178 aix4* | aix5*)
11179   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11180     test "$enable_shared" = yes && enable_static=no
11181   fi
11182     ;;
11183 esac
11184 { echo "$as_me:$LINENO: result: $enable_shared" >&5
11185 echo "${ECHO_T}$enable_shared" >&6; }
11186
11187 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
11188 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
11189 # Make sure either enable_shared or enable_static is yes.
11190 test "$enable_shared" = yes || enable_static=yes
11191 { echo "$as_me:$LINENO: result: $enable_static" >&5
11192 echo "${ECHO_T}$enable_static" >&6; }
11193
11194 # The else clause should only fire when bootstrapping the
11195 # libtool distribution, otherwise you forgot to ship ltmain.sh
11196 # with your package, and you will get complaints that there are
11197 # no rules to generate ltmain.sh.
11198 if test -f "$ltmain"; then
11199   # See if we are running on zsh, and set the options which allow our commands through
11200   # without removal of \ escapes.
11201   if test -n "${ZSH_VERSION+set}" ; then
11202     setopt NO_GLOB_SUBST
11203   fi
11204   # Now quote all the things that may contain metacharacters while being
11205   # careful not to overquote the AC_SUBSTed values.  We take copies of the
11206   # variables and quote the copies for generation of the libtool script.
11207   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
11208     SED SHELL STRIP \
11209     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
11210     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
11211     deplibs_check_method reload_flag reload_cmds need_locks \
11212     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
11213     lt_cv_sys_global_symbol_to_c_name_address \
11214     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
11215     old_postinstall_cmds old_postuninstall_cmds \
11216     compiler \
11217     CC \
11218     LD \
11219     lt_prog_compiler_wl \
11220     lt_prog_compiler_pic \
11221     lt_prog_compiler_static \
11222     lt_prog_compiler_no_builtin_flag \
11223     export_dynamic_flag_spec \
11224     thread_safe_flag_spec \
11225     whole_archive_flag_spec \
11226     enable_shared_with_static_runtimes \
11227     old_archive_cmds \
11228     old_archive_from_new_cmds \
11229     predep_objects \
11230     postdep_objects \
11231     predeps \
11232     postdeps \
11233     compiler_lib_search_path \
11234     archive_cmds \
11235     archive_expsym_cmds \
11236     postinstall_cmds \
11237     postuninstall_cmds \
11238     old_archive_from_expsyms_cmds \
11239     allow_undefined_flag \
11240     no_undefined_flag \
11241     export_symbols_cmds \
11242     hardcode_libdir_flag_spec \
11243     hardcode_libdir_flag_spec_ld \
11244     hardcode_libdir_separator \
11245     hardcode_automatic \
11246     module_cmds \
11247     module_expsym_cmds \
11248     lt_cv_prog_compiler_c_o \
11249     exclude_expsyms \
11250     include_expsyms; do
11251
11252     case $var in
11253     old_archive_cmds | \
11254     old_archive_from_new_cmds | \
11255     archive_cmds | \
11256     archive_expsym_cmds | \
11257     module_cmds | \
11258     module_expsym_cmds | \
11259     old_archive_from_expsyms_cmds | \
11260     export_symbols_cmds | \
11261     extract_expsyms_cmds | reload_cmds | finish_cmds | \
11262     postinstall_cmds | postuninstall_cmds | \
11263     old_postinstall_cmds | old_postuninstall_cmds | \
11264     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
11265       # Double-quote double-evaled strings.
11266       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
11267       ;;
11268     *)
11269       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
11270       ;;
11271     esac
11272   done
11273
11274   case $lt_echo in
11275   *'\$0 --fallback-echo"')
11276     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
11277     ;;
11278   esac
11279
11280 cfgfile="${ofile}T"
11281   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
11282   $rm -f "$cfgfile"
11283   { echo "$as_me:$LINENO: creating $ofile" >&5
11284 echo "$as_me: creating $ofile" >&6;}
11285
11286   cat <<__EOF__ >> "$cfgfile"
11287 #! $SHELL
11288
11289 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
11290 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
11291 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
11292 #
11293 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
11294 # Free Software Foundation, Inc.
11295 #
11296 # This file is part of GNU Libtool:
11297 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
11298 #
11299 # This program is free software; you can redistribute it and/or modify
11300 # it under the terms of the GNU General Public License as published by
11301 # the Free Software Foundation; either version 2 of the License, or
11302 # (at your option) any later version.
11303 #
11304 # This program is distributed in the hope that it will be useful, but
11305 # WITHOUT ANY WARRANTY; without even the implied warranty of
11306 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
11307 # General Public License for more details.
11308 #
11309 # You should have received a copy of the GNU General Public License
11310 # along with this program; if not, write to the Free Software
11311 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
11312 #
11313 # As a special exception to the GNU General Public License, if you
11314 # distribute this file as part of a program that contains a
11315 # configuration script generated by Autoconf, you may include it under
11316 # the same distribution terms that you use for the rest of that program.
11317
11318 # A sed program that does not truncate output.
11319 SED=$lt_SED
11320
11321 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
11322 Xsed="$SED -e 1s/^X//"
11323
11324 # The HP-UX ksh and POSIX shell print the target directory to stdout
11325 # if CDPATH is set.
11326 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11327
11328 # The names of the tagged configurations supported by this script.
11329 available_tags=
11330
11331 # ### BEGIN LIBTOOL CONFIG
11332
11333 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
11334
11335 # Shell to use when invoking shell scripts.
11336 SHELL=$lt_SHELL
11337
11338 # Whether or not to build shared libraries.
11339 build_libtool_libs=$enable_shared
11340
11341 # Whether or not to build static libraries.
11342 build_old_libs=$enable_static
11343
11344 # Whether or not to add -lc for building shared libraries.
11345 build_libtool_need_lc=$archive_cmds_need_lc
11346
11347 # Whether or not to disallow shared libs when runtime libs are static
11348 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
11349
11350 # Whether or not to optimize for fast installation.
11351 fast_install=$enable_fast_install
11352
11353 # The host system.
11354 host_alias=$host_alias
11355 host=$host
11356 host_os=$host_os
11357
11358 # The build system.
11359 build_alias=$build_alias
11360 build=$build
11361 build_os=$build_os
11362
11363 # An echo program that does not interpret backslashes.
11364 echo=$lt_echo
11365
11366 # The archiver.
11367 AR=$lt_AR
11368 AR_FLAGS=$lt_AR_FLAGS
11369
11370 # A C compiler.
11371 LTCC=$lt_LTCC
11372
11373 # LTCC compiler flags.
11374 LTCFLAGS=$lt_LTCFLAGS
11375
11376 # A language-specific compiler.
11377 CC=$lt_compiler
11378
11379 # Is the compiler the GNU C compiler?
11380 with_gcc=$GCC
11381
11382 # An ERE matcher.
11383 EGREP=$lt_EGREP
11384
11385 # The linker used to build libraries.
11386 LD=$lt_LD
11387
11388 # Whether we need hard or soft links.
11389 LN_S=$lt_LN_S
11390
11391 # A BSD-compatible nm program.
11392 NM=$lt_NM
11393
11394 # A symbol stripping program
11395 STRIP=$lt_STRIP
11396
11397 # Used to examine libraries when file_magic_cmd begins "file"
11398 MAGIC_CMD=$MAGIC_CMD
11399
11400 # Used on cygwin: DLL creation program.
11401 DLLTOOL="$DLLTOOL"
11402
11403 # Used on cygwin: object dumper.
11404 OBJDUMP="$OBJDUMP"
11405
11406 # Used on cygwin: assembler.
11407 AS="$AS"
11408
11409 # The name of the directory that contains temporary libtool files.
11410 objdir=$objdir
11411
11412 # How to create reloadable object files.
11413 reload_flag=$lt_reload_flag
11414 reload_cmds=$lt_reload_cmds
11415
11416 # How to pass a linker flag through the compiler.
11417 wl=$lt_lt_prog_compiler_wl
11418
11419 # Object file suffix (normally "o").
11420 objext="$ac_objext"
11421
11422 # Old archive suffix (normally "a").
11423 libext="$libext"
11424
11425 # Shared library suffix (normally ".so").
11426 shrext_cmds='$shrext_cmds'
11427
11428 # Executable file suffix (normally "").
11429 exeext="$exeext"
11430
11431 # Additional compiler flags for building library objects.
11432 pic_flag=$lt_lt_prog_compiler_pic
11433 pic_mode=$pic_mode
11434
11435 # What is the maximum length of a command?
11436 max_cmd_len=$lt_cv_sys_max_cmd_len
11437
11438 # Does compiler simultaneously support -c and -o options?
11439 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
11440
11441 # Must we lock files when doing compilation?
11442 need_locks=$lt_need_locks
11443
11444 # Do we need the lib prefix for modules?
11445 need_lib_prefix=$need_lib_prefix
11446
11447 # Do we need a version for libraries?
11448 need_version=$need_version
11449
11450 # Whether dlopen is supported.
11451 dlopen_support=$enable_dlopen
11452
11453 # Whether dlopen of programs is supported.
11454 dlopen_self=$enable_dlopen_self
11455
11456 # Whether dlopen of statically linked programs is supported.
11457 dlopen_self_static=$enable_dlopen_self_static
11458
11459 # Compiler flag to prevent dynamic linking.
11460 link_static_flag=$lt_lt_prog_compiler_static
11461
11462 # Compiler flag to turn off builtin functions.
11463 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
11464
11465 # Compiler flag to allow reflexive dlopens.
11466 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
11467
11468 # Compiler flag to generate shared objects directly from archives.
11469 whole_archive_flag_spec=$lt_whole_archive_flag_spec
11470
11471 # Compiler flag to generate thread-safe objects.
11472 thread_safe_flag_spec=$lt_thread_safe_flag_spec
11473
11474 # Library versioning type.
11475 version_type=$version_type
11476
11477 # Format of library name prefix.
11478 libname_spec=$lt_libname_spec
11479
11480 # List of archive names.  First name is the real one, the rest are links.
11481 # The last name is the one that the linker finds with -lNAME.
11482 library_names_spec=$lt_library_names_spec
11483
11484 # The coded name of the library, if different from the real name.
11485 soname_spec=$lt_soname_spec
11486
11487 # Commands used to build and install an old-style archive.
11488 RANLIB=$lt_RANLIB
11489 old_archive_cmds=$lt_old_archive_cmds
11490 old_postinstall_cmds=$lt_old_postinstall_cmds
11491 old_postuninstall_cmds=$lt_old_postuninstall_cmds
11492
11493 # Create an old-style archive from a shared archive.
11494 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
11495
11496 # Create a temporary old-style archive to link instead of a shared archive.
11497 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
11498
11499 # Commands used to build and install a shared archive.
11500 archive_cmds=$lt_archive_cmds
11501 archive_expsym_cmds=$lt_archive_expsym_cmds
11502 postinstall_cmds=$lt_postinstall_cmds
11503 postuninstall_cmds=$lt_postuninstall_cmds
11504
11505 # Commands used to build a loadable module (assumed same as above if empty)
11506 module_cmds=$lt_module_cmds
11507 module_expsym_cmds=$lt_module_expsym_cmds
11508
11509 # Commands to strip libraries.
11510 old_striplib=$lt_old_striplib
11511 striplib=$lt_striplib
11512
11513 # Dependencies to place before the objects being linked to create a
11514 # shared library.
11515 predep_objects=$lt_predep_objects
11516
11517 # Dependencies to place after the objects being linked to create a
11518 # shared library.
11519 postdep_objects=$lt_postdep_objects
11520
11521 # Dependencies to place before the objects being linked to create a
11522 # shared library.
11523 predeps=$lt_predeps
11524
11525 # Dependencies to place after the objects being linked to create a
11526 # shared library.
11527 postdeps=$lt_postdeps
11528
11529 # The library search path used internally by the compiler when linking
11530 # a shared library.
11531 compiler_lib_search_path=$lt_compiler_lib_search_path
11532
11533 # Method to check whether dependent libraries are shared objects.
11534 deplibs_check_method=$lt_deplibs_check_method
11535
11536 # Command to use when deplibs_check_method == file_magic.
11537 file_magic_cmd=$lt_file_magic_cmd
11538
11539 # Flag that allows shared libraries with undefined symbols to be built.
11540 allow_undefined_flag=$lt_allow_undefined_flag
11541
11542 # Flag that forces no undefined symbols.
11543 no_undefined_flag=$lt_no_undefined_flag
11544
11545 # Commands used to finish a libtool library installation in a directory.
11546 finish_cmds=$lt_finish_cmds
11547
11548 # Same as above, but a single script fragment to be evaled but not shown.
11549 finish_eval=$lt_finish_eval
11550
11551 # Take the output of nm and produce a listing of raw symbols and C names.
11552 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
11553
11554 # Transform the output of nm in a proper C declaration
11555 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
11556
11557 # Transform the output of nm in a C name address pair
11558 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
11559
11560 # This is the shared library runtime path variable.
11561 runpath_var=$runpath_var
11562
11563 # This is the shared library path variable.
11564 shlibpath_var=$shlibpath_var
11565
11566 # Is shlibpath searched before the hard-coded library search path?
11567 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
11568
11569 # How to hardcode a shared library path into an executable.
11570 hardcode_action=$hardcode_action
11571
11572 # Whether we should hardcode library paths into libraries.
11573 hardcode_into_libs=$hardcode_into_libs
11574
11575 # Flag to hardcode \$libdir into a binary during linking.
11576 # This must work even if \$libdir does not exist.
11577 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
11578
11579 # If ld is used when linking, flag to hardcode \$libdir into
11580 # a binary during linking. This must work even if \$libdir does
11581 # not exist.
11582 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
11583
11584 # Whether we need a single -rpath flag with a separated argument.
11585 hardcode_libdir_separator=$lt_hardcode_libdir_separator
11586
11587 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
11588 # resulting binary.
11589 hardcode_direct=$hardcode_direct
11590
11591 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
11592 # resulting binary.
11593 hardcode_minus_L=$hardcode_minus_L
11594
11595 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
11596 # the resulting binary.
11597 hardcode_shlibpath_var=$hardcode_shlibpath_var
11598
11599 # Set to yes if building a shared library automatically hardcodes DIR into the library
11600 # and all subsequent libraries and executables linked against it.
11601 hardcode_automatic=$hardcode_automatic
11602
11603 # Variables whose values should be saved in libtool wrapper scripts and
11604 # restored at relink time.
11605 variables_saved_for_relink="$variables_saved_for_relink"
11606
11607 # Whether libtool must link a program against all its dependency libraries.
11608 link_all_deplibs=$link_all_deplibs
11609
11610 # Compile-time system search path for libraries
11611 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
11612
11613 # Run-time system search path for libraries
11614 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
11615
11616 # Fix the shell variable \$srcfile for the compiler.
11617 fix_srcfile_path="$fix_srcfile_path"
11618
11619 # Set to yes if exported symbols are required.
11620 always_export_symbols=$always_export_symbols
11621
11622 # The commands to list exported symbols.
11623 export_symbols_cmds=$lt_export_symbols_cmds
11624
11625 # The commands to extract the exported symbol list from a shared archive.
11626 extract_expsyms_cmds=$lt_extract_expsyms_cmds
11627
11628 # Symbols that should not be listed in the preloaded symbols.
11629 exclude_expsyms=$lt_exclude_expsyms
11630
11631 # Symbols that must always be exported.
11632 include_expsyms=$lt_include_expsyms
11633
11634 # ### END LIBTOOL CONFIG
11635
11636 __EOF__
11637
11638
11639   case $host_os in
11640   aix3*)
11641     cat <<\EOF >> "$cfgfile"
11642
11643 # AIX sometimes has problems with the GCC collect2 program.  For some
11644 # reason, if we set the COLLECT_NAMES environment variable, the problems
11645 # vanish in a puff of smoke.
11646 if test "X${COLLECT_NAMES+set}" != Xset; then
11647   COLLECT_NAMES=
11648   export COLLECT_NAMES
11649 fi
11650 EOF
11651     ;;
11652   esac
11653
11654   # We use sed instead of cat because bash on DJGPP gets confused if
11655   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
11656   # text mode, it properly converts lines to CR/LF.  This bash problem
11657   # is reportedly fixed, but why not run on old versions too?
11658   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
11659
11660   mv -f "$cfgfile" "$ofile" || \
11661     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
11662   chmod +x "$ofile"
11663
11664 else
11665   # If there is no Makefile yet, we rely on a make rule to execute
11666   # `config.status --recheck' to rerun these tests and create the
11667   # libtool script then.
11668   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
11669   if test -f "$ltmain_in"; then
11670     test -f Makefile && make "$ltmain"
11671   fi
11672 fi
11673
11674
11675 ac_ext=c
11676 ac_cpp='$CPP $CPPFLAGS'
11677 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11678 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11679 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11680
11681 CC="$lt_save_CC"
11682
11683
11684 # Check whether --with-tags was given.
11685 if test "${with_tags+set}" = set; then
11686   withval=$with_tags; tagnames="$withval"
11687 fi
11688
11689
11690 if test -f "$ltmain" && test -n "$tagnames"; then
11691   if test ! -f "${ofile}"; then
11692     { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
11693 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
11694   fi
11695
11696   if test -z "$LTCC"; then
11697     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
11698     if test -z "$LTCC"; then
11699       { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
11700 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
11701     else
11702       { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
11703 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
11704     fi
11705   fi
11706   if test -z "$LTCFLAGS"; then
11707     eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
11708   fi
11709
11710   # Extract list of available tagged configurations in $ofile.
11711   # Note that this assumes the entire list is on one line.
11712   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
11713
11714   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11715   for tagname in $tagnames; do
11716     IFS="$lt_save_ifs"
11717     # Check whether tagname contains only valid characters
11718     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
11719     "") ;;
11720     *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
11721 echo "$as_me: error: invalid tag name: $tagname" >&2;}
11722    { (exit 1); exit 1; }; }
11723         ;;
11724     esac
11725
11726     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
11727     then
11728       { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
11729 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
11730    { (exit 1); exit 1; }; }
11731     fi
11732
11733     # Update the list of available tags.
11734     if test -n "$tagname"; then
11735       echo appending configuration tag \"$tagname\" to $ofile
11736
11737       case $tagname in
11738       CXX)
11739         if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11740             ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11741             (test "X$CXX" != "Xg++"))) ; then
11742           ac_ext=cpp
11743 ac_cpp='$CXXCPP $CPPFLAGS'
11744 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11745 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11746 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11747
11748
11749
11750
11751 archive_cmds_need_lc_CXX=no
11752 allow_undefined_flag_CXX=
11753 always_export_symbols_CXX=no
11754 archive_expsym_cmds_CXX=
11755 export_dynamic_flag_spec_CXX=
11756 hardcode_direct_CXX=no
11757 hardcode_libdir_flag_spec_CXX=
11758 hardcode_libdir_flag_spec_ld_CXX=
11759 hardcode_libdir_separator_CXX=
11760 hardcode_minus_L_CXX=no
11761 hardcode_shlibpath_var_CXX=unsupported
11762 hardcode_automatic_CXX=no
11763 module_cmds_CXX=
11764 module_expsym_cmds_CXX=
11765 link_all_deplibs_CXX=unknown
11766 old_archive_cmds_CXX=$old_archive_cmds
11767 no_undefined_flag_CXX=
11768 whole_archive_flag_spec_CXX=
11769 enable_shared_with_static_runtimes_CXX=no
11770
11771 # Dependencies to place before and after the object being linked:
11772 predep_objects_CXX=
11773 postdep_objects_CXX=
11774 predeps_CXX=
11775 postdeps_CXX=
11776 compiler_lib_search_path_CXX=
11777
11778 # Source file extension for C++ test sources.
11779 ac_ext=cpp
11780
11781 # Object file extension for compiled C++ test sources.
11782 objext=o
11783 objext_CXX=$objext
11784
11785 # Code to be used in simple compile tests
11786 lt_simple_compile_test_code="int some_variable = 0;\n"
11787
11788 # Code to be used in simple link tests
11789 lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
11790
11791 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11792
11793 # If no C compiler was specified, use CC.
11794 LTCC=${LTCC-"$CC"}
11795
11796 # If no C compiler flags were specified, use CFLAGS.
11797 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11798
11799 # Allow CC to be a program name with arguments.
11800 compiler=$CC
11801
11802
11803 # save warnings/boilerplate of simple test code
11804 ac_outfile=conftest.$ac_objext
11805 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
11806 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11807 _lt_compiler_boilerplate=`cat conftest.err`
11808 $rm conftest*
11809
11810 ac_outfile=conftest.$ac_objext
11811 printf "$lt_simple_link_test_code" >conftest.$ac_ext
11812 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11813 _lt_linker_boilerplate=`cat conftest.err`
11814 $rm conftest*
11815
11816
11817 # Allow CC to be a program name with arguments.
11818 lt_save_CC=$CC
11819 lt_save_LD=$LD
11820 lt_save_GCC=$GCC
11821 GCC=$GXX
11822 lt_save_with_gnu_ld=$with_gnu_ld
11823 lt_save_path_LD=$lt_cv_path_LD
11824 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11825   lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11826 else
11827   $as_unset lt_cv_prog_gnu_ld
11828 fi
11829 if test -n "${lt_cv_path_LDCXX+set}"; then
11830   lt_cv_path_LD=$lt_cv_path_LDCXX
11831 else
11832   $as_unset lt_cv_path_LD
11833 fi
11834 test -z "${LDCXX+set}" || LD=$LDCXX
11835 CC=${CXX-"c++"}
11836 compiler=$CC
11837 compiler_CXX=$CC
11838 for cc_temp in $compiler""; do
11839   case $cc_temp in
11840     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11841     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11842     \-*) ;;
11843     *) break;;
11844   esac
11845 done
11846 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11847
11848
11849 # We don't want -fno-exception wen compiling C++ code, so set the
11850 # no_builtin_flag separately
11851 if test "$GXX" = yes; then
11852   lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11853 else
11854   lt_prog_compiler_no_builtin_flag_CXX=
11855 fi
11856
11857 if test "$GXX" = yes; then
11858   # Set up default GNU C++ configuration
11859
11860   
11861 # Check whether --with-gnu-ld was given.
11862 if test "${with_gnu_ld+set}" = set; then
11863   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11864 else
11865   with_gnu_ld=no
11866 fi
11867
11868 ac_prog=ld
11869 if test "$GCC" = yes; then
11870   # Check if gcc -print-prog-name=ld gives a path.
11871   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
11872 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
11873   case $host in
11874   *-*-mingw*)
11875     # gcc leaves a trailing carriage return which upsets mingw
11876     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11877   *)
11878     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11879   esac
11880   case $ac_prog in
11881     # Accept absolute paths.
11882     [\\/]* | ?:[\\/]*)
11883       re_direlt='/[^/][^/]*/\.\./'
11884       # Canonicalize the pathname of ld
11885       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
11886       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11887         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
11888       done
11889       test -z "$LD" && LD="$ac_prog"
11890       ;;
11891   "")
11892     # If it fails, then pretend we aren't using GCC.
11893     ac_prog=ld
11894     ;;
11895   *)
11896     # If it is relative, then search for the first ld in PATH.
11897     with_gnu_ld=unknown
11898     ;;
11899   esac
11900 elif test "$with_gnu_ld" = yes; then
11901   { echo "$as_me:$LINENO: checking for GNU ld" >&5
11902 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
11903 else
11904   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
11905 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
11906 fi
11907 if test "${lt_cv_path_LD+set}" = set; then
11908   echo $ECHO_N "(cached) $ECHO_C" >&6
11909 else
11910   if test -z "$LD"; then
11911   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11912   for ac_dir in $PATH; do
11913     IFS="$lt_save_ifs"
11914     test -z "$ac_dir" && ac_dir=.
11915     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11916       lt_cv_path_LD="$ac_dir/$ac_prog"
11917       # Check to see if the program is GNU ld.  I'd rather use --version,
11918       # but apparently some variants of GNU ld only accept -v.
11919       # Break only if it was the GNU/non-GNU ld that we prefer.
11920       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11921       *GNU* | *'with BFD'*)
11922         test "$with_gnu_ld" != no && break
11923         ;;
11924       *)
11925         test "$with_gnu_ld" != yes && break
11926         ;;
11927       esac
11928     fi
11929   done
11930   IFS="$lt_save_ifs"
11931 else
11932   lt_cv_path_LD="$LD" # Let the user override the test with a path.
11933 fi
11934 fi
11935
11936 LD="$lt_cv_path_LD"
11937 if test -n "$LD"; then
11938   { echo "$as_me:$LINENO: result: $LD" >&5
11939 echo "${ECHO_T}$LD" >&6; }
11940 else
11941   { echo "$as_me:$LINENO: result: no" >&5
11942 echo "${ECHO_T}no" >&6; }
11943 fi
11944 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
11945 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
11946    { (exit 1); exit 1; }; }
11947 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
11948 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
11949 if test "${lt_cv_prog_gnu_ld+set}" = set; then
11950   echo $ECHO_N "(cached) $ECHO_C" >&6
11951 else
11952   # I'd rather use --version here, but apparently some GNU lds only accept -v.
11953 case `$LD -v 2>&1 </dev/null` in
11954 *GNU* | *'with BFD'*)
11955   lt_cv_prog_gnu_ld=yes
11956   ;;
11957 *)
11958   lt_cv_prog_gnu_ld=no
11959   ;;
11960 esac
11961 fi
11962 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
11963 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
11964 with_gnu_ld=$lt_cv_prog_gnu_ld
11965
11966
11967
11968   # Check if GNU C++ uses GNU ld as the underlying linker, since the
11969   # archiving commands below assume that GNU ld is being used.
11970   if test "$with_gnu_ld" = yes; then
11971     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11972     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'
11973
11974     hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11975     export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11976
11977     # If archive_cmds runs LD, not CC, wlarc should be empty
11978     # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11979     #     investigate it a little bit more. (MM)
11980     wlarc='${wl}'
11981
11982     # ancient GNU ld didn't support --whole-archive et. al.
11983     if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
11984         grep 'no-whole-archive' > /dev/null; then
11985       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11986     else
11987       whole_archive_flag_spec_CXX=
11988     fi
11989   else
11990     with_gnu_ld=no
11991     wlarc=
11992
11993     # A generic and very simple default shared library creation
11994     # command for GNU C++ for the case where it uses the native
11995     # linker, instead of GNU ld.  If possible, this setting should
11996     # overridden to take advantage of the native linker features on
11997     # the platform it is being used on.
11998     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11999   fi
12000
12001   # Commands to make compiler produce verbose output that lists
12002   # what "hidden" libraries, object files and flags are used when
12003   # linking a shared library.
12004   output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12005
12006 else
12007   GXX=no
12008   with_gnu_ld=no
12009   wlarc=
12010 fi
12011
12012 # PORTME: fill in a description of your system's C++ link characteristics
12013 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12014 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
12015 ld_shlibs_CXX=yes
12016 case $host_os in
12017   aix3*)
12018     # FIXME: insert proper C++ library support
12019     ld_shlibs_CXX=no
12020     ;;
12021   aix4* | aix5*)
12022     if test "$host_cpu" = ia64; then
12023       # On IA64, the linker does run time linking by default, so we don't
12024       # have to do anything special.
12025       aix_use_runtimelinking=no
12026       exp_sym_flag='-Bexport'
12027       no_entry_flag=""
12028     else
12029       aix_use_runtimelinking=no
12030
12031       # Test if we are trying to use run time linking or normal
12032       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12033       # need to do runtime linking.
12034       case $host_os in aix4.[23]|aix4.[23].*|aix5*)
12035         for ld_flag in $LDFLAGS; do
12036           case $ld_flag in
12037           *-brtl*)
12038             aix_use_runtimelinking=yes
12039             break
12040             ;;
12041           esac
12042         done
12043         ;;
12044       esac
12045
12046       exp_sym_flag='-bexport'
12047       no_entry_flag='-bnoentry'
12048     fi
12049
12050     # When large executables or shared objects are built, AIX ld can
12051     # have problems creating the table of contents.  If linking a library
12052     # or program results in "error TOC overflow" add -mminimal-toc to
12053     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
12054     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12055
12056     archive_cmds_CXX=''
12057     hardcode_direct_CXX=yes
12058     hardcode_libdir_separator_CXX=':'
12059     link_all_deplibs_CXX=yes
12060
12061     if test "$GXX" = yes; then
12062       case $host_os in aix4.[012]|aix4.[012].*)
12063       # We only want to do this on AIX 4.2 and lower, the check
12064       # below for broken collect2 doesn't work under 4.3+
12065         collect2name=`${CC} -print-prog-name=collect2`
12066         if test -f "$collect2name" && \
12067            strings "$collect2name" | grep resolve_lib_name >/dev/null
12068         then
12069           # We have reworked collect2
12070           hardcode_direct_CXX=yes
12071         else
12072           # We have old collect2
12073           hardcode_direct_CXX=unsupported
12074           # It fails to find uninstalled libraries when the uninstalled
12075           # path is not listed in the libpath.  Setting hardcode_minus_L
12076           # to unsupported forces relinking
12077           hardcode_minus_L_CXX=yes
12078           hardcode_libdir_flag_spec_CXX='-L$libdir'
12079           hardcode_libdir_separator_CXX=
12080         fi
12081         ;;
12082       esac
12083       shared_flag='-shared'
12084       if test "$aix_use_runtimelinking" = yes; then
12085         shared_flag="$shared_flag "'${wl}-G'
12086       fi
12087     else
12088       # not using gcc
12089       if test "$host_cpu" = ia64; then
12090         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12091         # chokes on -Wl,-G. The following line is correct:
12092         shared_flag='-G'
12093       else
12094         if test "$aix_use_runtimelinking" = yes; then
12095           shared_flag='${wl}-G'
12096         else
12097           shared_flag='${wl}-bM:SRE'
12098         fi
12099       fi
12100     fi
12101
12102     # It seems that -bexpall does not export symbols beginning with
12103     # underscore (_), so it is better to generate a list of symbols to export.
12104     always_export_symbols_CXX=yes
12105     if test "$aix_use_runtimelinking" = yes; then
12106       # Warning - without using the other runtime loading flags (-brtl),
12107       # -berok will link without error, but may produce a broken library.
12108       allow_undefined_flag_CXX='-berok'
12109       # Determine the default libpath from the value encoded in an empty executable.
12110       cat >conftest.$ac_ext <<_ACEOF
12111 /* confdefs.h.  */
12112 _ACEOF
12113 cat confdefs.h >>conftest.$ac_ext
12114 cat >>conftest.$ac_ext <<_ACEOF
12115 /* end confdefs.h.  */
12116
12117 int
12118 main ()
12119 {
12120
12121   ;
12122   return 0;
12123 }
12124 _ACEOF
12125 rm -f conftest.$ac_objext conftest$ac_exeext
12126 if { (ac_try="$ac_link"
12127 case "(($ac_try" in
12128   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12129   *) ac_try_echo=$ac_try;;
12130 esac
12131 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12132   (eval "$ac_link") 2>conftest.er1
12133   ac_status=$?
12134   grep -v '^ *+' conftest.er1 >conftest.err
12135   rm -f conftest.er1
12136   cat conftest.err >&5
12137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12138   (exit $ac_status); } && {
12139          test -z "$ac_cxx_werror_flag" ||
12140          test ! -s conftest.err
12141        } && test -s conftest$ac_exeext &&
12142        $as_test_x conftest$ac_exeext; then
12143   
12144 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
12145 }'`
12146 # Check for a 64-bit object if we didn't find anything.
12147 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
12148 }'`; fi
12149 else
12150   echo "$as_me: failed program was:" >&5
12151 sed 's/^/| /' conftest.$ac_ext >&5
12152
12153         
12154 fi
12155
12156 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12157       conftest$ac_exeext conftest.$ac_ext
12158 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12159
12160       hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12161
12162       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"
12163      else
12164       if test "$host_cpu" = ia64; then
12165         hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12166         allow_undefined_flag_CXX="-z nodefs"
12167         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"
12168       else
12169         # Determine the default libpath from the value encoded in an empty executable.
12170         cat >conftest.$ac_ext <<_ACEOF
12171 /* confdefs.h.  */
12172 _ACEOF
12173 cat confdefs.h >>conftest.$ac_ext
12174 cat >>conftest.$ac_ext <<_ACEOF
12175 /* end confdefs.h.  */
12176
12177 int
12178 main ()
12179 {
12180
12181   ;
12182   return 0;
12183 }
12184 _ACEOF
12185 rm -f conftest.$ac_objext conftest$ac_exeext
12186 if { (ac_try="$ac_link"
12187 case "(($ac_try" in
12188   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12189   *) ac_try_echo=$ac_try;;
12190 esac
12191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12192   (eval "$ac_link") 2>conftest.er1
12193   ac_status=$?
12194   grep -v '^ *+' conftest.er1 >conftest.err
12195   rm -f conftest.er1
12196   cat conftest.err >&5
12197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12198   (exit $ac_status); } && {
12199          test -z "$ac_cxx_werror_flag" ||
12200          test ! -s conftest.err
12201        } && test -s conftest$ac_exeext &&
12202        $as_test_x conftest$ac_exeext; then
12203   
12204 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
12205 }'`
12206 # Check for a 64-bit object if we didn't find anything.
12207 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
12208 }'`; fi
12209 else
12210   echo "$as_me: failed program was:" >&5
12211 sed 's/^/| /' conftest.$ac_ext >&5
12212
12213         
12214 fi
12215
12216 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12217       conftest$ac_exeext conftest.$ac_ext
12218 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12219
12220         hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12221         # Warning - without using the other run time loading flags,
12222         # -berok will link without error, but may produce a broken library.
12223         no_undefined_flag_CXX=' ${wl}-bernotok'
12224         allow_undefined_flag_CXX=' ${wl}-berok'
12225         # Exported symbols can be pulled into shared objects from archives
12226         whole_archive_flag_spec_CXX='$convenience'
12227         archive_cmds_need_lc_CXX=yes
12228         # This is similar to how AIX traditionally builds its shared libraries.
12229         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'
12230       fi
12231     fi
12232     ;;
12233
12234   beos*)
12235     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12236       allow_undefined_flag_CXX=unsupported
12237       # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12238       # support --undefined.  This deserves some investigation.  FIXME
12239       archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12240     else
12241       ld_shlibs_CXX=no
12242     fi
12243     ;;
12244
12245   chorus*)
12246     case $cc_basename in
12247       *)
12248         # FIXME: insert proper C++ library support
12249         ld_shlibs_CXX=no
12250         ;;
12251     esac
12252     ;;
12253
12254   cygwin* | mingw* | pw32*)
12255     # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12256     # as there is no search path for DLLs.
12257     hardcode_libdir_flag_spec_CXX='-L$libdir'
12258     allow_undefined_flag_CXX=unsupported
12259     always_export_symbols_CXX=no
12260     enable_shared_with_static_runtimes_CXX=yes
12261
12262     if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
12263       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'
12264       # If the export-symbols file already is a .def file (1st line
12265       # is EXPORTS), use it as is; otherwise, prepend...
12266       archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12267         cp $export_symbols $output_objdir/$soname.def;
12268       else
12269         echo EXPORTS > $output_objdir/$soname.def;
12270         cat $export_symbols >> $output_objdir/$soname.def;
12271       fi~
12272       $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'
12273     else
12274       ld_shlibs_CXX=no
12275     fi
12276   ;;
12277       darwin* | rhapsody*)
12278         case $host_os in
12279         rhapsody* | darwin1.[012])
12280          allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
12281          ;;
12282        *) # Darwin 1.3 on
12283          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
12284            allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
12285          else
12286            case ${MACOSX_DEPLOYMENT_TARGET} in
12287              10.[012])
12288                allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
12289                ;;
12290              10.*)
12291                allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
12292                ;;
12293            esac
12294          fi
12295          ;;
12296         esac
12297       archive_cmds_need_lc_CXX=no
12298       hardcode_direct_CXX=no
12299       hardcode_automatic_CXX=yes
12300       hardcode_shlibpath_var_CXX=unsupported
12301       whole_archive_flag_spec_CXX=''
12302       link_all_deplibs_CXX=yes
12303
12304     if test "$GXX" = yes ; then
12305       lt_int_apple_cc_single_mod=no
12306       output_verbose_link_cmd='echo'
12307       if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
12308        lt_int_apple_cc_single_mod=yes
12309       fi
12310       if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
12311        archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
12312       else
12313           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'
12314         fi
12315         module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12316         # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
12317           if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
12318             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}'
12319           else
12320             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}'
12321           fi
12322             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}'
12323       else
12324       case $cc_basename in
12325         xlc*)
12326          output_verbose_link_cmd='echo'
12327           archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
12328           module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12329           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
12330           archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
12331           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}'
12332           ;;
12333        *)
12334          ld_shlibs_CXX=no
12335           ;;
12336       esac
12337       fi
12338         ;;
12339
12340   dgux*)
12341     case $cc_basename in
12342       ec++*)
12343         # FIXME: insert proper C++ library support
12344         ld_shlibs_CXX=no
12345         ;;
12346       ghcx*)
12347         # Green Hills C++ Compiler
12348         # FIXME: insert proper C++ library support
12349         ld_shlibs_CXX=no
12350         ;;
12351       *)
12352         # FIXME: insert proper C++ library support
12353         ld_shlibs_CXX=no
12354         ;;
12355     esac
12356     ;;
12357   freebsd[12]*)
12358     # C++ shared libraries reported to be fairly broken before switch to ELF
12359     ld_shlibs_CXX=no
12360     ;;
12361   freebsd-elf*)
12362     archive_cmds_need_lc_CXX=no
12363     ;;
12364   freebsd* | dragonfly*)
12365     # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12366     # conventions
12367     ld_shlibs_CXX=yes
12368     ;;
12369   gnu*)
12370     ;;
12371   hpux9*)
12372     hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12373     hardcode_libdir_separator_CXX=:
12374     export_dynamic_flag_spec_CXX='${wl}-E'
12375     hardcode_direct_CXX=yes
12376     hardcode_minus_L_CXX=yes # Not in the search PATH,
12377                                 # but as the default
12378                                 # location of the library.
12379
12380     case $cc_basename in
12381     CC*)
12382       # FIXME: insert proper C++ library support
12383       ld_shlibs_CXX=no
12384       ;;
12385     aCC*)
12386       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'
12387       # Commands to make compiler produce verbose output that lists
12388       # what "hidden" libraries, object files and flags are used when
12389       # linking a shared library.
12390       #
12391       # There doesn't appear to be a way to prevent this compiler from
12392       # explicitly linking system object files so we need to strip them
12393       # from the output so that they don't get included in the library
12394       # dependencies.
12395       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'
12396       ;;
12397     *)
12398       if test "$GXX" = yes; then
12399         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'
12400       else
12401         # FIXME: insert proper C++ library support
12402         ld_shlibs_CXX=no
12403       fi
12404       ;;
12405     esac
12406     ;;
12407   hpux10*|hpux11*)
12408     if test $with_gnu_ld = no; then
12409       hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12410       hardcode_libdir_separator_CXX=:
12411
12412       case $host_cpu in
12413       hppa*64*|ia64*)
12414         hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
12415         ;;
12416       *)
12417         export_dynamic_flag_spec_CXX='${wl}-E'
12418         ;;
12419       esac
12420     fi
12421     case $host_cpu in
12422     hppa*64*|ia64*)
12423       hardcode_direct_CXX=no
12424       hardcode_shlibpath_var_CXX=no
12425       ;;
12426     *)
12427       hardcode_direct_CXX=yes
12428       hardcode_minus_L_CXX=yes # Not in the search PATH,
12429                                               # but as the default
12430                                               # location of the library.
12431       ;;
12432     esac
12433
12434     case $cc_basename in
12435       CC*)
12436         # FIXME: insert proper C++ library support
12437         ld_shlibs_CXX=no
12438         ;;
12439       aCC*)
12440         case $host_cpu in
12441         hppa*64*)
12442           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12443           ;;
12444         ia64*)
12445           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12446           ;;
12447         *)
12448           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12449           ;;
12450         esac
12451         # Commands to make compiler produce verbose output that lists
12452         # what "hidden" libraries, object files and flags are used when
12453         # linking a shared library.
12454         #
12455         # There doesn't appear to be a way to prevent this compiler from
12456         # explicitly linking system object files so we need to strip them
12457         # from the output so that they don't get included in the library
12458         # dependencies.
12459         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'
12460         ;;
12461       *)
12462         if test "$GXX" = yes; then
12463           if test $with_gnu_ld = no; then
12464             case $host_cpu in
12465             hppa*64*)
12466               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12467               ;;
12468             ia64*)
12469               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12470               ;;
12471             *)
12472               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'
12473               ;;
12474             esac
12475           fi
12476         else
12477           # FIXME: insert proper C++ library support
12478           ld_shlibs_CXX=no
12479         fi
12480         ;;
12481     esac
12482     ;;
12483   interix3*)
12484     hardcode_direct_CXX=no
12485     hardcode_shlibpath_var_CXX=no
12486     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12487     export_dynamic_flag_spec_CXX='${wl}-E'
12488     # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12489     # Instead, shared libraries are loaded at an image base (0x10000000 by
12490     # default) and relocated if they conflict, which is a slow very memory
12491     # consuming and fragmenting process.  To avoid this, we pick a random,
12492     # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12493     # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
12494     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'
12495     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'
12496     ;;
12497   irix5* | irix6*)
12498     case $cc_basename in
12499       CC*)
12500         # SGI C++
12501         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'
12502
12503         # Archives containing C++ object files must be created using
12504         # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
12505         # necessary to make sure instantiated templates are included
12506         # in the archive.
12507         old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12508         ;;
12509       *)
12510         if test "$GXX" = yes; then
12511           if test "$with_gnu_ld" = no; then
12512             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'
12513           else
12514             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'
12515           fi
12516         fi
12517         link_all_deplibs_CXX=yes
12518         ;;
12519     esac
12520     hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12521     hardcode_libdir_separator_CXX=:
12522     ;;
12523   linux* | k*bsd*-gnu)
12524     case $cc_basename in
12525       KCC*)
12526         # Kuck and Associates, Inc. (KAI) C++ Compiler
12527
12528         # KCC will only create a shared library if the output file
12529         # ends with ".so" (or ".sl" for HP-UX), so rename the library
12530         # to its proper name (with version) after linking.
12531         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'
12532         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'
12533         # Commands to make compiler produce verbose output that lists
12534         # what "hidden" libraries, object files and flags are used when
12535         # linking a shared library.
12536         #
12537         # There doesn't appear to be a way to prevent this compiler from
12538         # explicitly linking system object files so we need to strip them
12539         # from the output so that they don't get included in the library
12540         # dependencies.
12541         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'
12542
12543         hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
12544         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12545
12546         # Archives containing C++ object files must be created using
12547         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12548         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12549         ;;
12550       icpc*)
12551         # Intel C++
12552         with_gnu_ld=yes
12553         # version 8.0 and above of icpc choke on multiply defined symbols
12554         # if we add $predep_objects and $postdep_objects, however 7.1 and
12555         # earlier do not add the objects themselves.
12556         case `$CC -V 2>&1` in
12557         *"Version 7."*)
12558           archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12559           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'
12560           ;;
12561         *)  # Version 8.0 or newer
12562           tmp_idyn=
12563           case $host_cpu in
12564             ia64*) tmp_idyn=' -i_dynamic';;
12565           esac
12566           archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12567           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'
12568           ;;
12569         esac
12570         archive_cmds_need_lc_CXX=no
12571         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12572         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12573         whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12574         ;;
12575       pgCC*)
12576         # Portland Group C++ compiler
12577         archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12578         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'
12579
12580         hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12581         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12582         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'
12583         ;;
12584       cxx*)
12585         # Compaq C++
12586         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12587         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'
12588
12589         runpath_var=LD_RUN_PATH
12590         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12591         hardcode_libdir_separator_CXX=:
12592
12593         # Commands to make compiler produce verbose output that lists
12594         # what "hidden" libraries, object files and flags are used when
12595         # linking a shared library.
12596         #
12597         # There doesn't appear to be a way to prevent this compiler from
12598         # explicitly linking system object files so we need to strip them
12599         # from the output so that they don't get included in the library
12600         # dependencies.
12601         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'
12602         ;;
12603     esac
12604     ;;
12605   lynxos*)
12606     # FIXME: insert proper C++ library support
12607     ld_shlibs_CXX=no
12608     ;;
12609   m88k*)
12610     # FIXME: insert proper C++ library support
12611     ld_shlibs_CXX=no
12612     ;;
12613   mvs*)
12614     case $cc_basename in
12615       cxx*)
12616         # FIXME: insert proper C++ library support
12617         ld_shlibs_CXX=no
12618         ;;
12619       *)
12620         # FIXME: insert proper C++ library support
12621         ld_shlibs_CXX=no
12622         ;;
12623     esac
12624     ;;
12625   netbsd* | netbsdelf*-gnu)
12626     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12627       archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
12628       wlarc=
12629       hardcode_libdir_flag_spec_CXX='-R$libdir'
12630       hardcode_direct_CXX=yes
12631       hardcode_shlibpath_var_CXX=no
12632     fi
12633     # Workaround some broken pre-1.5 toolchains
12634     output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
12635     ;;
12636   openbsd2*)
12637     # C++ shared libraries are fairly broken
12638     ld_shlibs_CXX=no
12639     ;;
12640   openbsd*)
12641     hardcode_direct_CXX=yes
12642     hardcode_shlibpath_var_CXX=no
12643     archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12644     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12645     if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12646       archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
12647       export_dynamic_flag_spec_CXX='${wl}-E'
12648       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12649     fi
12650     output_verbose_link_cmd='echo'
12651     ;;
12652   osf3*)
12653     case $cc_basename in
12654       KCC*)
12655         # Kuck and Associates, Inc. (KAI) C++ Compiler
12656
12657         # KCC will only create a shared library if the output file
12658         # ends with ".so" (or ".sl" for HP-UX), so rename the library
12659         # to its proper name (with version) after linking.
12660         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'
12661
12662         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12663         hardcode_libdir_separator_CXX=:
12664
12665         # Archives containing C++ object files must be created using
12666         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12667         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12668
12669         ;;
12670       RCC*)
12671         # Rational C++ 2.4.1
12672         # FIXME: insert proper C++ library support
12673         ld_shlibs_CXX=no
12674         ;;
12675       cxx*)
12676         allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12677         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'
12678
12679         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12680         hardcode_libdir_separator_CXX=:
12681
12682         # Commands to make compiler produce verbose output that lists
12683         # what "hidden" libraries, object files and flags are used when
12684         # linking a shared library.
12685         #
12686         # There doesn't appear to be a way to prevent this compiler from
12687         # explicitly linking system object files so we need to strip them
12688         # from the output so that they don't get included in the library
12689         # dependencies.
12690         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'
12691         ;;
12692       *)
12693         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12694           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12695           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'
12696
12697           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12698           hardcode_libdir_separator_CXX=:
12699
12700           # Commands to make compiler produce verbose output that lists
12701           # what "hidden" libraries, object files and flags are used when
12702           # linking a shared library.
12703           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12704
12705         else
12706           # FIXME: insert proper C++ library support
12707           ld_shlibs_CXX=no
12708         fi
12709         ;;
12710     esac
12711     ;;
12712   osf4* | osf5*)
12713     case $cc_basename in
12714       KCC*)
12715         # Kuck and Associates, Inc. (KAI) C++ Compiler
12716
12717         # KCC will only create a shared library if the output file
12718         # ends with ".so" (or ".sl" for HP-UX), so rename the library
12719         # to its proper name (with version) after linking.
12720         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'
12721
12722         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12723         hardcode_libdir_separator_CXX=:
12724
12725         # Archives containing C++ object files must be created using
12726         # the KAI C++ compiler.
12727         old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
12728         ;;
12729       RCC*)
12730         # Rational C++ 2.4.1
12731         # FIXME: insert proper C++ library support
12732         ld_shlibs_CXX=no
12733         ;;
12734       cxx*)
12735         allow_undefined_flag_CXX=' -expect_unresolved \*'
12736         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'
12737         archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12738           echo "-hidden">> $lib.exp~
12739           $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~
12740           $rm $lib.exp'
12741
12742         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12743         hardcode_libdir_separator_CXX=:
12744
12745         # Commands to make compiler produce verbose output that lists
12746         # what "hidden" libraries, object files and flags are used when
12747         # linking a shared library.
12748         #
12749         # There doesn't appear to be a way to prevent this compiler from
12750         # explicitly linking system object files so we need to strip them
12751         # from the output so that they don't get included in the library
12752         # dependencies.
12753         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'
12754         ;;
12755       *)
12756         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12757           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12758          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'
12759
12760           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12761           hardcode_libdir_separator_CXX=:
12762
12763           # Commands to make compiler produce verbose output that lists
12764           # what "hidden" libraries, object files and flags are used when
12765           # linking a shared library.
12766           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12767
12768         else
12769           # FIXME: insert proper C++ library support
12770           ld_shlibs_CXX=no
12771         fi
12772         ;;
12773     esac
12774     ;;
12775   psos*)
12776     # FIXME: insert proper C++ library support
12777     ld_shlibs_CXX=no
12778     ;;
12779   sunos4*)
12780     case $cc_basename in
12781       CC*)
12782         # Sun C++ 4.x
12783         # FIXME: insert proper C++ library support
12784         ld_shlibs_CXX=no
12785         ;;
12786       lcc*)
12787         # Lucid
12788         # FIXME: insert proper C++ library support
12789         ld_shlibs_CXX=no
12790         ;;
12791       *)
12792         # FIXME: insert proper C++ library support
12793         ld_shlibs_CXX=no
12794         ;;
12795     esac
12796     ;;
12797   solaris*)
12798     case $cc_basename in
12799       CC*)
12800         # Sun C++ 4.2, 5.x and Centerline C++
12801         archive_cmds_need_lc_CXX=yes
12802         no_undefined_flag_CXX=' -zdefs'
12803         archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12804         archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12805         $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'
12806
12807         hardcode_libdir_flag_spec_CXX='-R$libdir'
12808         hardcode_shlibpath_var_CXX=no
12809         case $host_os in
12810           solaris2.[0-5] | solaris2.[0-5].*) ;;
12811           *)
12812             # The C++ compiler is used as linker so we must use $wl
12813             # flag to pass the commands to the underlying system
12814             # linker. We must also pass each convience library through
12815             # to the system linker between allextract/defaultextract.
12816             # The C++ compiler will combine linker options so we
12817             # cannot just pass the convience library names through
12818             # without $wl.
12819             # Supported since Solaris 2.6 (maybe 2.5.1?)
12820             whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract'
12821             ;;
12822         esac
12823         link_all_deplibs_CXX=yes
12824
12825         output_verbose_link_cmd='echo'
12826
12827         # Archives containing C++ object files must be created using
12828         # "CC -xar", where "CC" is the Sun C++ compiler.  This is
12829         # necessary to make sure instantiated templates are included
12830         # in the archive.
12831         old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12832         ;;
12833       gcx*)
12834         # Green Hills C++ Compiler
12835         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12836
12837         # The C++ compiler must be used to create the archive.
12838         old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12839         ;;
12840       *)
12841         # GNU C++ compiler with Solaris linker
12842         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12843           no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12844           if $CC --version | grep -v '^2\.7' > /dev/null; then
12845             archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12846             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12847                 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12848
12849             # Commands to make compiler produce verbose output that lists
12850             # what "hidden" libraries, object files and flags are used when
12851             # linking a shared library.
12852             output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12853           else
12854             # g++ 2.7 appears to require `-G' NOT `-shared' on this
12855             # platform.
12856             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12857             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12858                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12859
12860             # Commands to make compiler produce verbose output that lists
12861             # what "hidden" libraries, object files and flags are used when
12862             # linking a shared library.
12863             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12864           fi
12865
12866           hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12867         fi
12868         ;;
12869     esac
12870     ;;
12871   sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12872     no_undefined_flag_CXX='${wl}-z,text'
12873     archive_cmds_need_lc_CXX=no
12874     hardcode_shlibpath_var_CXX=no
12875     runpath_var='LD_RUN_PATH'
12876
12877     case $cc_basename in
12878       CC*)
12879         archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12880         archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12881         ;;
12882       *)
12883         archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12884         archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12885         ;;
12886     esac
12887     ;;
12888   sysv5* | sco3.2v5* | sco5v6*)
12889     # Note: We can NOT use -z defs as we might desire, because we do not
12890     # link with -lc, and that would cause any symbols used from libc to
12891     # always be unresolved, which means just about no library would
12892     # ever link correctly.  If we're not using GNU ld we use -z text
12893     # though, which does catch some bad symbols but isn't as heavy-handed
12894     # as -z defs.
12895     # For security reasons, it is highly recommended that you always
12896     # use absolute paths for naming shared libraries, and exclude the
12897     # DT_RUNPATH tag from executables and libraries.  But doing so
12898     # requires that you compile everything twice, which is a pain.
12899     # So that behaviour is only enabled if SCOABSPATH is set to a
12900     # non-empty value in the environment.  Most likely only useful for
12901     # creating official distributions of packages.
12902     # This is a hack until libtool officially supports absolute path
12903     # names for shared libraries.
12904     no_undefined_flag_CXX='${wl}-z,text'
12905     allow_undefined_flag_CXX='${wl}-z,nodefs'
12906     archive_cmds_need_lc_CXX=no
12907     hardcode_shlibpath_var_CXX=no
12908     hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
12909     hardcode_libdir_separator_CXX=':'
12910     link_all_deplibs_CXX=yes
12911     export_dynamic_flag_spec_CXX='${wl}-Bexport'
12912     runpath_var='LD_RUN_PATH'
12913
12914     case $cc_basename in
12915       CC*)
12916         archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12917         archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12918         ;;
12919       *)
12920         archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12921         archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12922         ;;
12923     esac
12924     ;;
12925   tandem*)
12926     case $cc_basename in
12927       NCC*)
12928         # NonStop-UX NCC 3.20
12929         # FIXME: insert proper C++ library support
12930         ld_shlibs_CXX=no
12931         ;;
12932       *)
12933         # FIXME: insert proper C++ library support
12934         ld_shlibs_CXX=no
12935         ;;
12936     esac
12937     ;;
12938   vxworks*)
12939     # FIXME: insert proper C++ library support
12940     ld_shlibs_CXX=no
12941     ;;
12942   *)
12943     # FIXME: insert proper C++ library support
12944     ld_shlibs_CXX=no
12945     ;;
12946 esac
12947 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12948 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12949 test "$ld_shlibs_CXX" = no && can_build_shared=no
12950
12951 GCC_CXX="$GXX"
12952 LD_CXX="$LD"
12953
12954 ## CAVEAT EMPTOR:
12955 ## There is no encapsulation within the following macros, do not change
12956 ## the running order or otherwise move them around unless you know exactly
12957 ## what you are doing...
12958
12959 cat > conftest.$ac_ext <<EOF
12960 class Foo
12961 {
12962 public:
12963   Foo (void) { a = 0; }
12964 private:
12965   int a;
12966 };
12967 EOF
12968
12969 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12970   (eval $ac_compile) 2>&5
12971   ac_status=$?
12972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12973   (exit $ac_status); }; then
12974   # Parse the compiler output and extract the necessary
12975   # objects, libraries and library flags.
12976
12977   # Sentinel used to keep track of whether or not we are before
12978   # the conftest object file.
12979   pre_test_object_deps_done=no
12980
12981   # The `*' in the case matches for architectures that use `case' in
12982   # $output_verbose_cmd can trigger glob expansion during the loop
12983   # eval without this substitution.
12984   output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
12985
12986   for p in `eval $output_verbose_link_cmd`; do
12987     case $p in
12988
12989     -L* | -R* | -l*)
12990        # Some compilers place space between "-{L,R}" and the path.
12991        # Remove the space.
12992        if test $p = "-L" \
12993           || test $p = "-R"; then
12994          prev=$p
12995          continue
12996        else
12997          prev=
12998        fi
12999
13000        if test "$pre_test_object_deps_done" = no; then
13001          case $p in
13002          -L* | -R*)
13003            # Internal compiler library paths should come after those
13004            # provided the user.  The postdeps already come after the
13005            # user supplied libs so there is no need to process them.
13006            if test -z "$compiler_lib_search_path_CXX"; then
13007              compiler_lib_search_path_CXX="${prev}${p}"
13008            else
13009              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13010            fi
13011            ;;
13012          # The "-l" case would never come before the object being
13013          # linked, so don't bother handling this case.
13014          esac
13015        else
13016          if test -z "$postdeps_CXX"; then
13017            postdeps_CXX="${prev}${p}"
13018          else
13019            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13020          fi
13021        fi
13022        ;;
13023
13024     *.$objext)
13025        # This assumes that the test object file only shows up
13026        # once in the compiler output.
13027        if test "$p" = "conftest.$objext"; then
13028          pre_test_object_deps_done=yes
13029          continue
13030        fi
13031
13032        if test "$pre_test_object_deps_done" = no; then
13033          if test -z "$predep_objects_CXX"; then
13034            predep_objects_CXX="$p"
13035          else
13036            predep_objects_CXX="$predep_objects_CXX $p"
13037          fi
13038        else
13039          if test -z "$postdep_objects_CXX"; then
13040            postdep_objects_CXX="$p"
13041          else
13042            postdep_objects_CXX="$postdep_objects_CXX $p"
13043          fi
13044        fi
13045        ;;
13046
13047     *) ;; # Ignore the rest.
13048
13049     esac
13050   done
13051
13052   # Clean up.
13053   rm -f a.out a.exe
13054 else
13055   echo "libtool.m4: error: problem compiling CXX test program"
13056 fi
13057
13058 $rm -f confest.$objext
13059
13060 # PORTME: override above test on systems where it is broken
13061 case $host_os in
13062 interix3*)
13063   # Interix 3.5 installs completely hosed .la files for C++, so rather than
13064   # hack all around it, let's just trust "g++" to DTRT.
13065   predep_objects_CXX=
13066   postdep_objects_CXX=
13067   postdeps_CXX=
13068   ;;
13069
13070 solaris*)
13071   case $cc_basename in
13072   CC*)
13073     # Adding this requires a known-good setup of shared libraries for
13074     # Sun compiler versions before 5.6, else PIC objects from an old
13075     # archive will be linked into the output, leading to subtle bugs.
13076     postdeps_CXX='-lCstd -lCrun'
13077     ;;
13078   esac
13079   ;;
13080 esac
13081
13082
13083 case " $postdeps_CXX " in
13084 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
13085 esac
13086
13087 lt_prog_compiler_wl_CXX=
13088 lt_prog_compiler_pic_CXX=
13089 lt_prog_compiler_static_CXX=
13090
13091 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13092 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
13093  
13094   # C++ specific cases for pic, static, wl, etc.
13095   if test "$GXX" = yes; then
13096     lt_prog_compiler_wl_CXX='-Wl,'
13097     lt_prog_compiler_static_CXX='-static'
13098
13099     case $host_os in
13100     aix*)
13101       # All AIX code is PIC.
13102       if test "$host_cpu" = ia64; then
13103         # AIX 5 now supports IA64 processor
13104         lt_prog_compiler_static_CXX='-Bstatic'
13105       fi
13106       ;;
13107     amigaos*)
13108       # FIXME: we need at least 68020 code to build shared libraries, but
13109       # adding the `-m68020' flag to GCC prevents building anything better,
13110       # like `-m68040'.
13111       lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
13112       ;;
13113     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13114       # PIC is the default for these OSes.
13115       ;;
13116     mingw* | os2* | pw32*)
13117       # This hack is so that the source file can tell whether it is being
13118       # built for inclusion in a dll (and should export symbols for example).
13119       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13120       ;;
13121     darwin* | rhapsody*)
13122       # PIC is the default on this platform
13123       # Common symbols not allowed in MH_DYLIB files
13124       lt_prog_compiler_pic_CXX='-fno-common'
13125       ;;
13126     *djgpp*)
13127       # DJGPP does not support shared libraries at all
13128       lt_prog_compiler_pic_CXX=
13129       ;;
13130     interix3*)
13131       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13132       # Instead, we relocate shared libraries at runtime.
13133       ;;
13134     sysv4*MP*)
13135       if test -d /usr/nec; then
13136         lt_prog_compiler_pic_CXX=-Kconform_pic
13137       fi
13138       ;;
13139     hpux*)
13140       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13141       # not for PA HP-UX.
13142       case $host_cpu in
13143       hppa*64*|ia64*)
13144         ;;
13145       *)
13146         lt_prog_compiler_pic_CXX='-fPIC'
13147         ;;
13148       esac
13149       ;;
13150     *)
13151       lt_prog_compiler_pic_CXX='-fPIC'
13152       ;;
13153     esac
13154   else
13155     case $host_os in
13156       aix4* | aix5*)
13157         # All AIX code is PIC.
13158         if test "$host_cpu" = ia64; then
13159           # AIX 5 now supports IA64 processor
13160           lt_prog_compiler_static_CXX='-Bstatic'
13161         else
13162           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
13163         fi
13164         ;;
13165       chorus*)
13166         case $cc_basename in
13167         cxch68*)
13168           # Green Hills C++ Compiler
13169           # _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"
13170           ;;
13171         esac
13172         ;;
13173        darwin*)
13174          # PIC is the default on this platform
13175          # Common symbols not allowed in MH_DYLIB files
13176          case $cc_basename in
13177            xlc*)
13178            lt_prog_compiler_pic_CXX='-qnocommon'
13179            lt_prog_compiler_wl_CXX='-Wl,'
13180            ;;
13181          esac
13182        ;;
13183       dgux*)
13184         case $cc_basename in
13185           ec++*)
13186             lt_prog_compiler_pic_CXX='-KPIC'
13187             ;;
13188           ghcx*)
13189             # Green Hills C++ Compiler
13190             lt_prog_compiler_pic_CXX='-pic'
13191             ;;
13192           *)
13193             ;;
13194         esac
13195         ;;
13196       freebsd* | dragonfly*)
13197         # FreeBSD uses GNU C++
13198         ;;
13199       hpux9* | hpux10* | hpux11*)
13200         case $cc_basename in
13201           CC*)
13202             lt_prog_compiler_wl_CXX='-Wl,'
13203             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13204             if test "$host_cpu" != ia64; then
13205               lt_prog_compiler_pic_CXX='+Z'
13206             fi
13207             ;;
13208           aCC*)
13209             lt_prog_compiler_wl_CXX='-Wl,'
13210             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13211             case $host_cpu in
13212             hppa*64*|ia64*)
13213               # +Z the default
13214               ;;
13215             *)
13216               lt_prog_compiler_pic_CXX='+Z'
13217               ;;
13218             esac
13219             ;;
13220           *)
13221             ;;
13222         esac
13223         ;;
13224       interix*)
13225         # This is c89, which is MS Visual C++ (no shared libs)
13226         # Anyone wants to do a port?
13227         ;;
13228       irix5* | irix6* | nonstopux*)
13229         case $cc_basename in
13230           CC*)
13231             lt_prog_compiler_wl_CXX='-Wl,'
13232             lt_prog_compiler_static_CXX='-non_shared'
13233             # CC pic flag -KPIC is the default.
13234             ;;
13235           *)
13236             ;;
13237         esac
13238         ;;
13239       linux* | k*bsd*-gnu)
13240         case $cc_basename in
13241           KCC*)
13242             # KAI C++ Compiler
13243             lt_prog_compiler_wl_CXX='--backend -Wl,'
13244             lt_prog_compiler_pic_CXX='-fPIC'
13245             ;;
13246           icpc* | ecpc*)
13247             # Intel C++
13248             lt_prog_compiler_wl_CXX='-Wl,'
13249             lt_prog_compiler_pic_CXX='-KPIC'
13250             lt_prog_compiler_static_CXX='-static'
13251             ;;
13252           pgCC*)
13253             # Portland Group C++ compiler.
13254             lt_prog_compiler_wl_CXX='-Wl,'
13255             lt_prog_compiler_pic_CXX='-fpic'
13256             lt_prog_compiler_static_CXX='-Bstatic'
13257             ;;
13258           cxx*)
13259             # Compaq C++
13260             # Make sure the PIC flag is empty.  It appears that all Alpha
13261             # Linux and Compaq Tru64 Unix objects are PIC.
13262             lt_prog_compiler_pic_CXX=
13263             lt_prog_compiler_static_CXX='-non_shared'
13264             ;;
13265           *)
13266             ;;
13267         esac
13268         ;;
13269       lynxos*)
13270         ;;
13271       m88k*)
13272         ;;
13273       mvs*)
13274         case $cc_basename in
13275           cxx*)
13276             lt_prog_compiler_pic_CXX='-W c,exportall'
13277             ;;
13278           *)
13279             ;;
13280         esac
13281         ;;
13282       netbsd* | netbsdelf*-gnu)
13283         ;;
13284       osf3* | osf4* | osf5*)
13285         case $cc_basename in
13286           KCC*)
13287             lt_prog_compiler_wl_CXX='--backend -Wl,'
13288             ;;
13289           RCC*)
13290             # Rational C++ 2.4.1
13291             lt_prog_compiler_pic_CXX='-pic'
13292             ;;
13293           cxx*)
13294             # Digital/Compaq C++
13295             lt_prog_compiler_wl_CXX='-Wl,'
13296             # Make sure the PIC flag is empty.  It appears that all Alpha
13297             # Linux and Compaq Tru64 Unix objects are PIC.
13298             lt_prog_compiler_pic_CXX=
13299             lt_prog_compiler_static_CXX='-non_shared'
13300             ;;
13301           *)
13302             ;;
13303         esac
13304         ;;
13305       psos*)
13306         ;;
13307       solaris*)
13308         case $cc_basename in
13309           CC*)
13310             # Sun C++ 4.2, 5.x and Centerline C++
13311             lt_prog_compiler_pic_CXX='-KPIC'
13312             lt_prog_compiler_static_CXX='-Bstatic'
13313             lt_prog_compiler_wl_CXX='-Qoption ld '
13314             ;;
13315           gcx*)
13316             # Green Hills C++ Compiler
13317             lt_prog_compiler_pic_CXX='-PIC'
13318             ;;
13319           *)
13320             ;;
13321         esac
13322         ;;
13323       sunos4*)
13324         case $cc_basename in
13325           CC*)
13326             # Sun C++ 4.x
13327             lt_prog_compiler_pic_CXX='-pic'
13328             lt_prog_compiler_static_CXX='-Bstatic'
13329             ;;
13330           lcc*)
13331             # Lucid
13332             lt_prog_compiler_pic_CXX='-pic'
13333             ;;
13334           *)
13335             ;;
13336         esac
13337         ;;
13338       tandem*)
13339         case $cc_basename in
13340           NCC*)
13341             # NonStop-UX NCC 3.20
13342             lt_prog_compiler_pic_CXX='-KPIC'
13343             ;;
13344           *)
13345             ;;
13346         esac
13347         ;;
13348       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13349         case $cc_basename in
13350           CC*)
13351             lt_prog_compiler_wl_CXX='-Wl,'
13352             lt_prog_compiler_pic_CXX='-KPIC'
13353             lt_prog_compiler_static_CXX='-Bstatic'
13354             ;;
13355         esac
13356         ;;
13357       vxworks*)
13358         ;;
13359       *)
13360         lt_prog_compiler_can_build_shared_CXX=no
13361         ;;
13362     esac
13363   fi
13364
13365 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
13366 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
13367
13368 #
13369 # Check to make sure the PIC flag actually works.
13370 #
13371 if test -n "$lt_prog_compiler_pic_CXX"; then
13372   
13373 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
13374 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
13375 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
13376   echo $ECHO_N "(cached) $ECHO_C" >&6
13377 else
13378   lt_prog_compiler_pic_works_CXX=no
13379   ac_outfile=conftest.$ac_objext
13380    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13381    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
13382    # Insert the option either (1) after the last *FLAGS variable, or
13383    # (2) before a word containing "conftest.", or (3) at the end.
13384    # Note that $ac_compile itself does not contain backslashes and begins
13385    # with a dollar sign (not a hyphen), so the echo should work correctly.
13386    # The option is referenced via a variable to avoid confusing sed.
13387    lt_compile=`echo "$ac_compile" | $SED \
13388    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13389    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13390    -e 's:$: $lt_compiler_flag:'`
13391    (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
13392    (eval "$lt_compile" 2>conftest.err)
13393    ac_status=$?
13394    cat conftest.err >&5
13395    echo "$as_me:__oline__: \$? = $ac_status" >&5
13396    if (exit $ac_status) && test -s "$ac_outfile"; then
13397      # The compiler can only warn and ignore the option if not recognized
13398      # So say no if there are warnings other than the usual output.
13399      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13400      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13401      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13402        lt_prog_compiler_pic_works_CXX=yes
13403      fi
13404    fi
13405    $rm conftest*
13406
13407 fi
13408 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
13409 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
13410
13411 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
13412     case $lt_prog_compiler_pic_CXX in
13413      "" | " "*) ;;
13414      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
13415      esac
13416 else
13417     lt_prog_compiler_pic_CXX=
13418      lt_prog_compiler_can_build_shared_CXX=no
13419 fi
13420
13421 fi
13422 case $host_os in
13423   # For platforms which do not support PIC, -DPIC is meaningless:
13424   *djgpp*)
13425     lt_prog_compiler_pic_CXX=
13426     ;;
13427   *)
13428     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
13429     ;;
13430 esac
13431
13432 #
13433 # Check to make sure the static flag actually works.
13434 #
13435 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
13436 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13437 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
13438 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
13439   echo $ECHO_N "(cached) $ECHO_C" >&6
13440 else
13441   lt_prog_compiler_static_works_CXX=no
13442    save_LDFLAGS="$LDFLAGS"
13443    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13444    printf "$lt_simple_link_test_code" > conftest.$ac_ext
13445    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13446      # The linker can only warn and ignore the option if not recognized
13447      # So say no if there are warnings
13448      if test -s conftest.err; then
13449        # Append any errors to the config.log.
13450        cat conftest.err 1>&5
13451        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
13452        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13453        if diff conftest.exp conftest.er2 >/dev/null; then
13454          lt_prog_compiler_static_works_CXX=yes
13455        fi
13456      else
13457        lt_prog_compiler_static_works_CXX=yes
13458      fi
13459    fi
13460    $rm conftest*
13461    LDFLAGS="$save_LDFLAGS"
13462
13463 fi
13464 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
13465 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
13466
13467 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
13468     :
13469 else
13470     lt_prog_compiler_static_CXX=
13471 fi
13472
13473
13474 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13475 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
13476 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
13477   echo $ECHO_N "(cached) $ECHO_C" >&6
13478 else
13479   lt_cv_prog_compiler_c_o_CXX=no
13480    $rm -r conftest 2>/dev/null
13481    mkdir conftest
13482    cd conftest
13483    mkdir out
13484    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13485
13486    lt_compiler_flag="-o out/conftest2.$ac_objext"
13487    # Insert the option either (1) after the last *FLAGS variable, or
13488    # (2) before a word containing "conftest.", or (3) at the end.
13489    # Note that $ac_compile itself does not contain backslashes and begins
13490    # with a dollar sign (not a hyphen), so the echo should work correctly.
13491    lt_compile=`echo "$ac_compile" | $SED \
13492    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13493    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13494    -e 's:$: $lt_compiler_flag:'`
13495    (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
13496    (eval "$lt_compile" 2>out/conftest.err)
13497    ac_status=$?
13498    cat out/conftest.err >&5
13499    echo "$as_me:__oline__: \$? = $ac_status" >&5
13500    if (exit $ac_status) && test -s out/conftest2.$ac_objext
13501    then
13502      # The compiler can only warn and ignore the option if not recognized
13503      # So say no if there are warnings
13504      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13505      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13506      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13507        lt_cv_prog_compiler_c_o_CXX=yes
13508      fi
13509    fi
13510    chmod u+w . 2>&5
13511    $rm conftest*
13512    # SGI C++ compiler will create directory out/ii_files/ for
13513    # template instantiation
13514    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13515    $rm out/* && rmdir out
13516    cd ..
13517    rmdir conftest
13518    $rm conftest*
13519
13520 fi
13521 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13522 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
13523
13524
13525 hard_links="nottested"
13526 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
13527   # do not overwrite the value of need_locks provided by the user
13528   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13529 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
13530   hard_links=yes
13531   $rm conftest*
13532   ln conftest.a conftest.b 2>/dev/null && hard_links=no
13533   touch conftest.a
13534   ln conftest.a conftest.b 2>&5 || hard_links=no
13535   ln conftest.a conftest.b 2>/dev/null && hard_links=no
13536   { echo "$as_me:$LINENO: result: $hard_links" >&5
13537 echo "${ECHO_T}$hard_links" >&6; }
13538   if test "$hard_links" = no; then
13539     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13540 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13541     need_locks=warn
13542   fi
13543 else
13544   need_locks=no
13545 fi
13546
13547 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13548 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
13549
13550   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13551   case $host_os in
13552   aix4* | aix5*)
13553     # If we're using GNU nm, then we don't want the "-C" option.
13554     # -C means demangle to AIX nm, but means don't demangle with GNU nm
13555     if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13556       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'
13557     else
13558       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'
13559     fi
13560     ;;
13561   pw32*)
13562     export_symbols_cmds_CXX="$ltdll_cmds"
13563   ;;
13564   cygwin* | mingw*)
13565     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'
13566   ;;
13567   linux* | k*bsd*-gnu)
13568     link_all_deplibs_CXX=no
13569   ;;
13570   *)
13571     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13572   ;;
13573   esac
13574
13575 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
13576 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
13577 test "$ld_shlibs_CXX" = no && can_build_shared=no
13578
13579 #
13580 # Do we need to explicitly link libc?
13581 #
13582 case "x$archive_cmds_need_lc_CXX" in
13583 x|xyes)
13584   # Assume -lc should be added
13585   archive_cmds_need_lc_CXX=yes
13586
13587   if test "$enable_shared" = yes && test "$GCC" = yes; then
13588     case $archive_cmds_CXX in
13589     *'~'*)
13590       # FIXME: we may have to deal with multi-command sequences.
13591       ;;
13592     '$CC '*)
13593       # Test whether the compiler implicitly links with -lc since on some
13594       # systems, -lgcc has to come before -lc. If gcc already passes -lc
13595       # to ld, don't add -lc before -lgcc.
13596       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13597 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
13598       $rm conftest*
13599       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13600
13601       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13602   (eval $ac_compile) 2>&5
13603   ac_status=$?
13604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13605   (exit $ac_status); } 2>conftest.err; then
13606         soname=conftest
13607         lib=conftest
13608         libobjs=conftest.$ac_objext
13609         deplibs=
13610         wl=$lt_prog_compiler_wl_CXX
13611         pic_flag=$lt_prog_compiler_pic_CXX
13612         compiler_flags=-v
13613         linker_flags=-v
13614         verstring=
13615         output_objdir=.
13616         libname=conftest
13617         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
13618         allow_undefined_flag_CXX=
13619         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13620   (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13621   ac_status=$?
13622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13623   (exit $ac_status); }
13624         then
13625           archive_cmds_need_lc_CXX=no
13626         else
13627           archive_cmds_need_lc_CXX=yes
13628         fi
13629         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
13630       else
13631         cat conftest.err 1>&5
13632       fi
13633       $rm conftest*
13634       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
13635 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
13636       ;;
13637     esac
13638   fi
13639   ;;
13640 esac
13641
13642 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13643 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
13644 library_names_spec=
13645 libname_spec='lib$name'
13646 soname_spec=
13647 shrext_cmds=".so"
13648 postinstall_cmds=
13649 postuninstall_cmds=
13650 finish_cmds=
13651 finish_eval=
13652 shlibpath_var=
13653 shlibpath_overrides_runpath=unknown
13654 version_type=none
13655 dynamic_linker="$host_os ld.so"
13656 sys_lib_dlsearch_path_spec="/lib /usr/lib"
13657 if test "$GCC" = yes; then
13658   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13659   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
13660     # if the path contains ";" then we assume it to be the separator
13661     # otherwise default to the standard path separator (i.e. ":") - it is
13662     # assumed that no part of a normal pathname contains ";" but that should
13663     # okay in the real world where ";" in dirpaths is itself problematic.
13664     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13665   else
13666     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
13667   fi
13668 else
13669   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13670 fi
13671 need_lib_prefix=unknown
13672 hardcode_into_libs=no
13673
13674 # when you set need_version to no, make sure it does not cause -set_version
13675 # flags to be left without arguments
13676 need_version=unknown
13677
13678 case $host_os in
13679 aix3*)
13680   version_type=linux
13681   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13682   shlibpath_var=LIBPATH
13683
13684   # AIX 3 has no versioning support, so we append a major version to the name.
13685   soname_spec='${libname}${release}${shared_ext}$major'
13686   ;;
13687
13688 aix4* | aix5*)
13689   version_type=linux
13690   need_lib_prefix=no
13691   need_version=no
13692   hardcode_into_libs=yes
13693   if test "$host_cpu" = ia64; then
13694     # AIX 5 supports IA64
13695     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13696     shlibpath_var=LD_LIBRARY_PATH
13697   else
13698     # With GCC up to 2.95.x, collect2 would create an import file
13699     # for dependence libraries.  The import file would start with
13700     # the line `#! .'.  This would cause the generated library to
13701     # depend on `.', always an invalid library.  This was fixed in
13702     # development snapshots of GCC prior to 3.0.
13703     case $host_os in
13704       aix4 | aix4.[01] | aix4.[01].*)
13705       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13706            echo ' yes '
13707            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13708         :
13709       else
13710         can_build_shared=no
13711       fi
13712       ;;
13713     esac
13714     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13715     # soname into executable. Probably we can add versioning support to
13716     # collect2, so additional links can be useful in future.
13717     if test "$aix_use_runtimelinking" = yes; then
13718       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13719       # instead of lib<name>.a to let people know that these are not
13720       # typical AIX shared libraries.
13721       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13722     else
13723       # We preserve .a as extension for shared libraries through AIX4.2
13724       # and later when we are not doing run time linking.
13725       library_names_spec='${libname}${release}.a $libname.a'
13726       soname_spec='${libname}${release}${shared_ext}$major'
13727     fi
13728     shlibpath_var=LIBPATH
13729   fi
13730   ;;
13731
13732 amigaos*)
13733   library_names_spec='$libname.ixlibrary $libname.a'
13734   # Create ${libname}_ixlibrary.a entries in /sys/libs.
13735   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'
13736   ;;
13737
13738 beos*)
13739   library_names_spec='${libname}${shared_ext}'
13740   dynamic_linker="$host_os ld.so"
13741   shlibpath_var=LIBRARY_PATH
13742   ;;
13743
13744 bsdi[45]*)
13745   version_type=linux
13746   need_version=no
13747   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13748   soname_spec='${libname}${release}${shared_ext}$major'
13749   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13750   shlibpath_var=LD_LIBRARY_PATH
13751   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13752   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13753   # the default ld.so.conf also contains /usr/contrib/lib and
13754   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13755   # libtool to hard-code these into programs
13756   ;;
13757
13758 cygwin* | mingw* | pw32*)
13759   version_type=windows
13760   shrext_cmds=".dll"
13761   need_version=no
13762   need_lib_prefix=no
13763
13764   case $GCC,$host_os in
13765   yes,cygwin* | yes,mingw* | yes,pw32*)
13766     library_names_spec='$libname.dll.a'
13767     # DLL is installed to $(libdir)/../bin by postinstall_cmds
13768     postinstall_cmds='base_file=`basename \${file}`~
13769       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13770       dldir=$destdir/`dirname \$dlpath`~
13771       test -d \$dldir || mkdir -p \$dldir~
13772       $install_prog $dir/$dlname \$dldir/$dlname~
13773       chmod a+x \$dldir/$dlname'
13774     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13775       dlpath=$dir/\$dldll~
13776        $rm \$dlpath'
13777     shlibpath_overrides_runpath=yes
13778
13779     case $host_os in
13780     cygwin*)
13781       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13782       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13783       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13784       ;;
13785     mingw*)
13786       # MinGW DLLs use traditional 'lib' prefix
13787       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13788       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13789       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13790         # It is most probably a Windows format PATH printed by
13791         # mingw gcc, but we are running on Cygwin. Gcc prints its search
13792         # path with ; separators, and with drive letters. We can handle the
13793         # drive letters (cygwin fileutils understands them), so leave them,
13794         # especially as we might pass files found there to a mingw objdump,
13795         # which wouldn't understand a cygwinified path. Ahh.
13796         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13797       else
13798         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
13799       fi
13800       ;;
13801     pw32*)
13802       # pw32 DLLs use 'pw' prefix rather than 'lib'
13803       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13804       ;;
13805     esac
13806     ;;
13807
13808   *)
13809     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13810     ;;
13811   esac
13812   dynamic_linker='Win32 ld.exe'
13813   # FIXME: first we should search . and the directory the executable is in
13814   shlibpath_var=PATH
13815   ;;
13816
13817 darwin* | rhapsody*)
13818   dynamic_linker="$host_os dyld"
13819   version_type=darwin
13820   need_lib_prefix=no
13821   need_version=no
13822   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13823   soname_spec='${libname}${release}${major}$shared_ext'
13824   shlibpath_overrides_runpath=yes
13825   shlibpath_var=DYLD_LIBRARY_PATH
13826   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13827   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
13828   if test "$GCC" = yes; then
13829     sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
13830   else
13831     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
13832   fi
13833   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13834   ;;
13835
13836 dgux*)
13837   version_type=linux
13838   need_lib_prefix=no
13839   need_version=no
13840   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13841   soname_spec='${libname}${release}${shared_ext}$major'
13842   shlibpath_var=LD_LIBRARY_PATH
13843   ;;
13844
13845 freebsd1*)
13846   dynamic_linker=no
13847   ;;
13848
13849 freebsd* | dragonfly*)
13850   # DragonFly does not have aout.  When/if they implement a new
13851   # versioning mechanism, adjust this.
13852   if test -x /usr/bin/objformat; then
13853     objformat=`/usr/bin/objformat`
13854   else
13855     case $host_os in
13856     freebsd[123]*) objformat=aout ;;
13857     *) objformat=elf ;;
13858     esac
13859   fi
13860   version_type=freebsd-$objformat
13861   case $version_type in
13862     freebsd-elf*)
13863       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13864       need_version=no
13865       need_lib_prefix=no
13866       ;;
13867     freebsd-*)
13868       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13869       need_version=yes
13870       ;;
13871   esac
13872   shlibpath_var=LD_LIBRARY_PATH
13873   case $host_os in
13874   freebsd2*)
13875     shlibpath_overrides_runpath=yes
13876     ;;
13877   freebsd3.[01]* | freebsdelf3.[01]*)
13878     shlibpath_overrides_runpath=yes
13879     hardcode_into_libs=yes
13880     ;;
13881   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13882   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13883     shlibpath_overrides_runpath=no
13884     hardcode_into_libs=yes
13885     ;;
13886   freebsd*) # from 4.6 on
13887     shlibpath_overrides_runpath=yes
13888     hardcode_into_libs=yes
13889     ;;
13890   esac
13891   ;;
13892
13893 gnu*)
13894   version_type=linux
13895   need_lib_prefix=no
13896   need_version=no
13897   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13898   soname_spec='${libname}${release}${shared_ext}$major'
13899   shlibpath_var=LD_LIBRARY_PATH
13900   hardcode_into_libs=yes
13901   ;;
13902
13903 hpux9* | hpux10* | hpux11*)
13904   # Give a soname corresponding to the major version so that dld.sl refuses to
13905   # link against other versions.
13906   version_type=sunos
13907   need_lib_prefix=no
13908   need_version=no
13909   case $host_cpu in
13910   ia64*)
13911     shrext_cmds='.so'
13912     hardcode_into_libs=yes
13913     dynamic_linker="$host_os dld.so"
13914     shlibpath_var=LD_LIBRARY_PATH
13915     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13916     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13917     soname_spec='${libname}${release}${shared_ext}$major'
13918     if test "X$HPUX_IA64_MODE" = X32; then
13919       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13920     else
13921       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13922     fi
13923     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13924     ;;
13925    hppa*64*)
13926      shrext_cmds='.sl'
13927      hardcode_into_libs=yes
13928      dynamic_linker="$host_os dld.sl"
13929      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13930      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13931      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13932      soname_spec='${libname}${release}${shared_ext}$major'
13933      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13934      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13935      ;;
13936    *)
13937     shrext_cmds='.sl'
13938     dynamic_linker="$host_os dld.sl"
13939     shlibpath_var=SHLIB_PATH
13940     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13941     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13942     soname_spec='${libname}${release}${shared_ext}$major'
13943     ;;
13944   esac
13945   # HP-UX runs *really* slowly unless shared libraries are mode 555.
13946   postinstall_cmds='chmod 555 $lib'
13947   ;;
13948
13949 interix3*)
13950   version_type=linux
13951   need_lib_prefix=no
13952   need_version=no
13953   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13954   soname_spec='${libname}${release}${shared_ext}$major'
13955   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13956   shlibpath_var=LD_LIBRARY_PATH
13957   shlibpath_overrides_runpath=no
13958   hardcode_into_libs=yes
13959   ;;
13960
13961 irix5* | irix6* | nonstopux*)
13962   case $host_os in
13963     nonstopux*) version_type=nonstopux ;;
13964     *)
13965         if test "$lt_cv_prog_gnu_ld" = yes; then
13966                 version_type=linux
13967         else
13968                 version_type=irix
13969         fi ;;
13970   esac
13971   need_lib_prefix=no
13972   need_version=no
13973   soname_spec='${libname}${release}${shared_ext}$major'
13974   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13975   case $host_os in
13976   irix5* | nonstopux*)
13977     libsuff= shlibsuff=
13978     ;;
13979   *)
13980     case $LD in # libtool.m4 will add one of these switches to LD
13981     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13982       libsuff= shlibsuff= libmagic=32-bit;;
13983     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13984       libsuff=32 shlibsuff=N32 libmagic=N32;;
13985     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13986       libsuff=64 shlibsuff=64 libmagic=64-bit;;
13987     *) libsuff= shlibsuff= libmagic=never-match;;
13988     esac
13989     ;;
13990   esac
13991   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13992   shlibpath_overrides_runpath=no
13993   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13994   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13995   hardcode_into_libs=yes
13996   ;;
13997
13998 # No shared lib support for Linux oldld, aout, or coff.
13999 linux*oldld* | linux*aout* | linux*coff*)
14000   dynamic_linker=no
14001   ;;
14002
14003 # This must be Linux ELF.
14004 linux* | k*bsd*-gnu)
14005   version_type=linux
14006   need_lib_prefix=no
14007   need_version=no
14008   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14009   soname_spec='${libname}${release}${shared_ext}$major'
14010   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14011   shlibpath_var=LD_LIBRARY_PATH
14012   shlibpath_overrides_runpath=no
14013   # This implies no fast_install, which is unacceptable.
14014   # Some rework will be needed to allow for fast_install
14015   # before this can be enabled.
14016   hardcode_into_libs=yes
14017
14018   # Append ld.so.conf contents to the search path
14019   if test -f /etc/ld.so.conf; then
14020     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,        ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
14021     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14022   fi
14023
14024   # We used to test for /lib/ld.so.1 and disable shared libraries on
14025   # powerpc, because MkLinux only supported shared libraries with the
14026   # GNU dynamic linker.  Since this was broken with cross compilers,
14027   # most powerpc-linux boxes support dynamic linking these days and
14028   # people can always --disable-shared, the test was removed, and we
14029   # assume the GNU/Linux dynamic linker is in use.
14030   dynamic_linker='GNU/Linux ld.so'
14031   ;;
14032
14033 netbsdelf*-gnu)
14034   version_type=linux
14035   need_lib_prefix=no
14036   need_version=no
14037   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14038   soname_spec='${libname}${release}${shared_ext}$major'
14039   shlibpath_var=LD_LIBRARY_PATH
14040   shlibpath_overrides_runpath=no
14041   hardcode_into_libs=yes
14042   dynamic_linker='NetBSD ld.elf_so'
14043   ;;
14044
14045 netbsd*)
14046   version_type=sunos
14047   need_lib_prefix=no
14048   need_version=no
14049   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14050     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14051     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14052     dynamic_linker='NetBSD (a.out) ld.so'
14053   else
14054     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14055     soname_spec='${libname}${release}${shared_ext}$major'
14056     dynamic_linker='NetBSD ld.elf_so'
14057   fi
14058   shlibpath_var=LD_LIBRARY_PATH
14059   shlibpath_overrides_runpath=yes
14060   hardcode_into_libs=yes
14061   ;;
14062
14063 newsos6)
14064   version_type=linux
14065   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14066   shlibpath_var=LD_LIBRARY_PATH
14067   shlibpath_overrides_runpath=yes
14068   ;;
14069
14070 nto-qnx*)
14071   version_type=linux
14072   need_lib_prefix=no
14073   need_version=no
14074   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14075   soname_spec='${libname}${release}${shared_ext}$major'
14076   shlibpath_var=LD_LIBRARY_PATH
14077   shlibpath_overrides_runpath=yes
14078   ;;
14079
14080 openbsd*)
14081   version_type=sunos
14082   sys_lib_dlsearch_path_spec="/usr/lib"
14083   need_lib_prefix=no
14084   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14085   case $host_os in
14086     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14087     *)                         need_version=no  ;;
14088   esac
14089   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14090   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14091   shlibpath_var=LD_LIBRARY_PATH
14092   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14093     case $host_os in
14094       openbsd2.[89] | openbsd2.[89].*)
14095         shlibpath_overrides_runpath=no
14096         ;;
14097       *)
14098         shlibpath_overrides_runpath=yes
14099         ;;
14100       esac
14101   else
14102     shlibpath_overrides_runpath=yes
14103   fi
14104   ;;
14105
14106 os2*)
14107   libname_spec='$name'
14108   shrext_cmds=".dll"
14109   need_lib_prefix=no
14110   library_names_spec='$libname${shared_ext} $libname.a'
14111   dynamic_linker='OS/2 ld.exe'
14112   shlibpath_var=LIBPATH
14113   ;;
14114
14115 osf3* | osf4* | osf5*)
14116   version_type=osf
14117   need_lib_prefix=no
14118   need_version=no
14119   soname_spec='${libname}${release}${shared_ext}$major'
14120   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14121   shlibpath_var=LD_LIBRARY_PATH
14122   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14123   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14124   ;;
14125
14126 solaris*)
14127   version_type=linux
14128   need_lib_prefix=no
14129   need_version=no
14130   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14131   soname_spec='${libname}${release}${shared_ext}$major'
14132   shlibpath_var=LD_LIBRARY_PATH
14133   shlibpath_overrides_runpath=yes
14134   hardcode_into_libs=yes
14135   # ldd complains unless libraries are executable
14136   postinstall_cmds='chmod +x $lib'
14137   ;;
14138
14139 sunos4*)
14140   version_type=sunos
14141   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14142   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14143   shlibpath_var=LD_LIBRARY_PATH
14144   shlibpath_overrides_runpath=yes
14145   if test "$with_gnu_ld" = yes; then
14146     need_lib_prefix=no
14147   fi
14148   need_version=yes
14149   ;;
14150
14151 sysv4 | sysv4.3*)
14152   version_type=linux
14153   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14154   soname_spec='${libname}${release}${shared_ext}$major'
14155   shlibpath_var=LD_LIBRARY_PATH
14156   case $host_vendor in
14157     sni)
14158       shlibpath_overrides_runpath=no
14159       need_lib_prefix=no
14160       export_dynamic_flag_spec='${wl}-Blargedynsym'
14161       runpath_var=LD_RUN_PATH
14162       ;;
14163     siemens)
14164       need_lib_prefix=no
14165       ;;
14166     motorola)
14167       need_lib_prefix=no
14168       need_version=no
14169       shlibpath_overrides_runpath=no
14170       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14171       ;;
14172   esac
14173   ;;
14174
14175 sysv4*MP*)
14176   if test -d /usr/nec ;then
14177     version_type=linux
14178     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14179     soname_spec='$libname${shared_ext}.$major'
14180     shlibpath_var=LD_LIBRARY_PATH
14181   fi
14182   ;;
14183
14184 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14185   version_type=freebsd-elf
14186   need_lib_prefix=no
14187   need_version=no
14188   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14189   soname_spec='${libname}${release}${shared_ext}$major'
14190   shlibpath_var=LD_LIBRARY_PATH
14191   hardcode_into_libs=yes
14192   if test "$with_gnu_ld" = yes; then
14193     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14194     shlibpath_overrides_runpath=no
14195   else
14196     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14197     shlibpath_overrides_runpath=yes
14198     case $host_os in
14199       sco3.2v5*)
14200         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14201         ;;
14202     esac
14203   fi
14204   sys_lib_dlsearch_path_spec='/usr/lib'
14205   ;;
14206
14207 uts4*)
14208   version_type=linux
14209   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14210   soname_spec='${libname}${release}${shared_ext}$major'
14211   shlibpath_var=LD_LIBRARY_PATH
14212   ;;
14213
14214 *)
14215   dynamic_linker=no
14216   ;;
14217 esac
14218 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14219 echo "${ECHO_T}$dynamic_linker" >&6; }
14220 test "$dynamic_linker" = no && can_build_shared=no
14221
14222 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14223 if test "$GCC" = yes; then
14224   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14225 fi
14226
14227 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
14228 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
14229 hardcode_action_CXX=
14230 if test -n "$hardcode_libdir_flag_spec_CXX" || \
14231    test -n "$runpath_var_CXX" || \
14232    test "X$hardcode_automatic_CXX" = "Xyes" ; then
14233
14234   # We can hardcode non-existant directories.
14235   if test "$hardcode_direct_CXX" != no &&
14236      # If the only mechanism to avoid hardcoding is shlibpath_var, we
14237      # have to relink, otherwise we might link with an installed library
14238      # when we should be linking with a yet-to-be-installed one
14239      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
14240      test "$hardcode_minus_L_CXX" != no; then
14241     # Linking always hardcodes the temporary library directory.
14242     hardcode_action_CXX=relink
14243   else
14244     # We can link without hardcoding, and we can hardcode nonexisting dirs.
14245     hardcode_action_CXX=immediate
14246   fi
14247 else
14248   # We cannot hardcode anything, or else we can only hardcode existing
14249   # directories.
14250   hardcode_action_CXX=unsupported
14251 fi
14252 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
14253 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
14254
14255 if test "$hardcode_action_CXX" = relink; then
14256   # Fast installation is not supported
14257   enable_fast_install=no
14258 elif test "$shlibpath_overrides_runpath" = yes ||
14259      test "$enable_shared" = no; then
14260   # Fast installation is not necessary
14261   enable_fast_install=needless
14262 fi
14263
14264
14265 # The else clause should only fire when bootstrapping the
14266 # libtool distribution, otherwise you forgot to ship ltmain.sh
14267 # with your package, and you will get complaints that there are
14268 # no rules to generate ltmain.sh.
14269 if test -f "$ltmain"; then
14270   # See if we are running on zsh, and set the options which allow our commands through
14271   # without removal of \ escapes.
14272   if test -n "${ZSH_VERSION+set}" ; then
14273     setopt NO_GLOB_SUBST
14274   fi
14275   # Now quote all the things that may contain metacharacters while being
14276   # careful not to overquote the AC_SUBSTed values.  We take copies of the
14277   # variables and quote the copies for generation of the libtool script.
14278   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
14279     SED SHELL STRIP \
14280     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14281     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14282     deplibs_check_method reload_flag reload_cmds need_locks \
14283     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14284     lt_cv_sys_global_symbol_to_c_name_address \
14285     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14286     old_postinstall_cmds old_postuninstall_cmds \
14287     compiler_CXX \
14288     CC_CXX \
14289     LD_CXX \
14290     lt_prog_compiler_wl_CXX \
14291     lt_prog_compiler_pic_CXX \
14292     lt_prog_compiler_static_CXX \
14293     lt_prog_compiler_no_builtin_flag_CXX \
14294     export_dynamic_flag_spec_CXX \
14295     thread_safe_flag_spec_CXX \
14296     whole_archive_flag_spec_CXX \
14297     enable_shared_with_static_runtimes_CXX \
14298     old_archive_cmds_CXX \
14299     old_archive_from_new_cmds_CXX \
14300     predep_objects_CXX \
14301     postdep_objects_CXX \
14302     predeps_CXX \
14303     postdeps_CXX \
14304     compiler_lib_search_path_CXX \
14305     archive_cmds_CXX \
14306     archive_expsym_cmds_CXX \
14307     postinstall_cmds_CXX \
14308     postuninstall_cmds_CXX \
14309     old_archive_from_expsyms_cmds_CXX \
14310     allow_undefined_flag_CXX \
14311     no_undefined_flag_CXX \
14312     export_symbols_cmds_CXX \
14313     hardcode_libdir_flag_spec_CXX \
14314     hardcode_libdir_flag_spec_ld_CXX \
14315     hardcode_libdir_separator_CXX \
14316     hardcode_automatic_CXX \
14317     module_cmds_CXX \
14318     module_expsym_cmds_CXX \
14319     lt_cv_prog_compiler_c_o_CXX \
14320     exclude_expsyms_CXX \
14321     include_expsyms_CXX; do
14322
14323     case $var in
14324     old_archive_cmds_CXX | \
14325     old_archive_from_new_cmds_CXX | \
14326     archive_cmds_CXX | \
14327     archive_expsym_cmds_CXX | \
14328     module_cmds_CXX | \
14329     module_expsym_cmds_CXX | \
14330     old_archive_from_expsyms_cmds_CXX | \
14331     export_symbols_cmds_CXX | \
14332     extract_expsyms_cmds | reload_cmds | finish_cmds | \
14333     postinstall_cmds | postuninstall_cmds | \
14334     old_postinstall_cmds | old_postuninstall_cmds | \
14335     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14336       # Double-quote double-evaled strings.
14337       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14338       ;;
14339     *)
14340       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14341       ;;
14342     esac
14343   done
14344
14345   case $lt_echo in
14346   *'\$0 --fallback-echo"')
14347     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14348     ;;
14349   esac
14350
14351 cfgfile="$ofile"
14352
14353   cat <<__EOF__ >> "$cfgfile"
14354 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
14355
14356 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14357
14358 # Shell to use when invoking shell scripts.
14359 SHELL=$lt_SHELL
14360
14361 # Whether or not to build shared libraries.
14362 build_libtool_libs=$enable_shared
14363
14364 # Whether or not to build static libraries.
14365 build_old_libs=$enable_static
14366
14367 # Whether or not to add -lc for building shared libraries.
14368 build_libtool_need_lc=$archive_cmds_need_lc_CXX
14369
14370 # Whether or not to disallow shared libs when runtime libs are static
14371 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
14372
14373 # Whether or not to optimize for fast installation.
14374 fast_install=$enable_fast_install
14375
14376 # The host system.
14377 host_alias=$host_alias
14378 host=$host
14379 host_os=$host_os
14380
14381 # The build system.
14382 build_alias=$build_alias
14383 build=$build
14384 build_os=$build_os
14385
14386 # An echo program that does not interpret backslashes.
14387 echo=$lt_echo
14388
14389 # The archiver.
14390 AR=$lt_AR
14391 AR_FLAGS=$lt_AR_FLAGS
14392
14393 # A C compiler.
14394 LTCC=$lt_LTCC
14395
14396 # LTCC compiler flags.
14397 LTCFLAGS=$lt_LTCFLAGS
14398
14399 # A language-specific compiler.
14400 CC=$lt_compiler_CXX
14401
14402 # Is the compiler the GNU C compiler?
14403 with_gcc=$GCC_CXX
14404
14405 # An ERE matcher.
14406 EGREP=$lt_EGREP
14407
14408 # The linker used to build libraries.
14409 LD=$lt_LD_CXX
14410
14411 # Whether we need hard or soft links.
14412 LN_S=$lt_LN_S
14413
14414 # A BSD-compatible nm program.
14415 NM=$lt_NM
14416
14417 # A symbol stripping program
14418 STRIP=$lt_STRIP
14419
14420 # Used to examine libraries when file_magic_cmd begins "file"
14421 MAGIC_CMD=$MAGIC_CMD
14422
14423 # Used on cygwin: DLL creation program.
14424 DLLTOOL="$DLLTOOL"
14425
14426 # Used on cygwin: object dumper.
14427 OBJDUMP="$OBJDUMP"
14428
14429 # Used on cygwin: assembler.
14430 AS="$AS"
14431
14432 # The name of the directory that contains temporary libtool files.
14433 objdir=$objdir
14434
14435 # How to create reloadable object files.
14436 reload_flag=$lt_reload_flag
14437 reload_cmds=$lt_reload_cmds
14438
14439 # How to pass a linker flag through the compiler.
14440 wl=$lt_lt_prog_compiler_wl_CXX
14441
14442 # Object file suffix (normally "o").
14443 objext="$ac_objext"
14444
14445 # Old archive suffix (normally "a").
14446 libext="$libext"
14447
14448 # Shared library suffix (normally ".so").
14449 shrext_cmds='$shrext_cmds'
14450
14451 # Executable file suffix (normally "").
14452 exeext="$exeext"
14453
14454 # Additional compiler flags for building library objects.
14455 pic_flag=$lt_lt_prog_compiler_pic_CXX
14456 pic_mode=$pic_mode
14457
14458 # What is the maximum length of a command?
14459 max_cmd_len=$lt_cv_sys_max_cmd_len
14460
14461 # Does compiler simultaneously support -c and -o options?
14462 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
14463
14464 # Must we lock files when doing compilation?
14465 need_locks=$lt_need_locks
14466
14467 # Do we need the lib prefix for modules?
14468 need_lib_prefix=$need_lib_prefix
14469
14470 # Do we need a version for libraries?
14471 need_version=$need_version
14472
14473 # Whether dlopen is supported.
14474 dlopen_support=$enable_dlopen
14475
14476 # Whether dlopen of programs is supported.
14477 dlopen_self=$enable_dlopen_self
14478
14479 # Whether dlopen of statically linked programs is supported.
14480 dlopen_self_static=$enable_dlopen_self_static
14481
14482 # Compiler flag to prevent dynamic linking.
14483 link_static_flag=$lt_lt_prog_compiler_static_CXX
14484
14485 # Compiler flag to turn off builtin functions.
14486 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
14487
14488 # Compiler flag to allow reflexive dlopens.
14489 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
14490
14491 # Compiler flag to generate shared objects directly from archives.
14492 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
14493
14494 # Compiler flag to generate thread-safe objects.
14495 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
14496
14497 # Library versioning type.
14498 version_type=$version_type
14499
14500 # Format of library name prefix.
14501 libname_spec=$lt_libname_spec
14502
14503 # List of archive names.  First name is the real one, the rest are links.
14504 # The last name is the one that the linker finds with -lNAME.
14505 library_names_spec=$lt_library_names_spec
14506
14507 # The coded name of the library, if different from the real name.
14508 soname_spec=$lt_soname_spec
14509
14510 # Commands used to build and install an old-style archive.
14511 RANLIB=$lt_RANLIB
14512 old_archive_cmds=$lt_old_archive_cmds_CXX
14513 old_postinstall_cmds=$lt_old_postinstall_cmds
14514 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14515
14516 # Create an old-style archive from a shared archive.
14517 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
14518
14519 # Create a temporary old-style archive to link instead of a shared archive.
14520 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
14521
14522 # Commands used to build and install a shared archive.
14523 archive_cmds=$lt_archive_cmds_CXX
14524 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
14525 postinstall_cmds=$lt_postinstall_cmds
14526 postuninstall_cmds=$lt_postuninstall_cmds
14527
14528 # Commands used to build a loadable module (assumed same as above if empty)
14529 module_cmds=$lt_module_cmds_CXX
14530 module_expsym_cmds=$lt_module_expsym_cmds_CXX
14531
14532 # Commands to strip libraries.
14533 old_striplib=$lt_old_striplib
14534 striplib=$lt_striplib
14535
14536 # Dependencies to place before the objects being linked to create a
14537 # shared library.
14538 predep_objects=$lt_predep_objects_CXX
14539
14540 # Dependencies to place after the objects being linked to create a
14541 # shared library.
14542 postdep_objects=$lt_postdep_objects_CXX
14543
14544 # Dependencies to place before the objects being linked to create a
14545 # shared library.
14546 predeps=$lt_predeps_CXX
14547
14548 # Dependencies to place after the objects being linked to create a
14549 # shared library.
14550 postdeps=$lt_postdeps_CXX
14551
14552 # The library search path used internally by the compiler when linking
14553 # a shared library.
14554 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
14555
14556 # Method to check whether dependent libraries are shared objects.
14557 deplibs_check_method=$lt_deplibs_check_method
14558
14559 # Command to use when deplibs_check_method == file_magic.
14560 file_magic_cmd=$lt_file_magic_cmd
14561
14562 # Flag that allows shared libraries with undefined symbols to be built.
14563 allow_undefined_flag=$lt_allow_undefined_flag_CXX
14564
14565 # Flag that forces no undefined symbols.
14566 no_undefined_flag=$lt_no_undefined_flag_CXX
14567
14568 # Commands used to finish a libtool library installation in a directory.
14569 finish_cmds=$lt_finish_cmds
14570
14571 # Same as above, but a single script fragment to be evaled but not shown.
14572 finish_eval=$lt_finish_eval
14573
14574 # Take the output of nm and produce a listing of raw symbols and C names.
14575 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14576
14577 # Transform the output of nm in a proper C declaration
14578 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14579
14580 # Transform the output of nm in a C name address pair
14581 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14582
14583 # This is the shared library runtime path variable.
14584 runpath_var=$runpath_var
14585
14586 # This is the shared library path variable.
14587 shlibpath_var=$shlibpath_var
14588
14589 # Is shlibpath searched before the hard-coded library search path?
14590 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14591
14592 # How to hardcode a shared library path into an executable.
14593 hardcode_action=$hardcode_action_CXX
14594
14595 # Whether we should hardcode library paths into libraries.
14596 hardcode_into_libs=$hardcode_into_libs
14597
14598 # Flag to hardcode \$libdir into a binary during linking.
14599 # This must work even if \$libdir does not exist.
14600 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
14601
14602 # If ld is used when linking, flag to hardcode \$libdir into
14603 # a binary during linking. This must work even if \$libdir does
14604 # not exist.
14605 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
14606
14607 # Whether we need a single -rpath flag with a separated argument.
14608 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
14609
14610 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14611 # resulting binary.
14612 hardcode_direct=$hardcode_direct_CXX
14613
14614 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14615 # resulting binary.
14616 hardcode_minus_L=$hardcode_minus_L_CXX
14617
14618 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14619 # the resulting binary.
14620 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
14621
14622 # Set to yes if building a shared library automatically hardcodes DIR into the library
14623 # and all subsequent libraries and executables linked against it.
14624 hardcode_automatic=$hardcode_automatic_CXX
14625
14626 # Variables whose values should be saved in libtool wrapper scripts and
14627 # restored at relink time.
14628 variables_saved_for_relink="$variables_saved_for_relink"
14629
14630 # Whether libtool must link a program against all its dependency libraries.
14631 link_all_deplibs=$link_all_deplibs_CXX
14632
14633 # Compile-time system search path for libraries
14634 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14635
14636 # Run-time system search path for libraries
14637 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14638
14639 # Fix the shell variable \$srcfile for the compiler.
14640 fix_srcfile_path="$fix_srcfile_path_CXX"
14641
14642 # Set to yes if exported symbols are required.
14643 always_export_symbols=$always_export_symbols_CXX
14644
14645 # The commands to list exported symbols.
14646 export_symbols_cmds=$lt_export_symbols_cmds_CXX
14647
14648 # The commands to extract the exported symbol list from a shared archive.
14649 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14650
14651 # Symbols that should not be listed in the preloaded symbols.
14652 exclude_expsyms=$lt_exclude_expsyms_CXX
14653
14654 # Symbols that must always be exported.
14655 include_expsyms=$lt_include_expsyms_CXX
14656
14657 # ### END LIBTOOL TAG CONFIG: $tagname
14658
14659 __EOF__
14660
14661
14662 else
14663   # If there is no Makefile yet, we rely on a make rule to execute
14664   # `config.status --recheck' to rerun these tests and create the
14665   # libtool script then.
14666   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
14667   if test -f "$ltmain_in"; then
14668     test -f Makefile && make "$ltmain"
14669   fi
14670 fi
14671
14672
14673 ac_ext=c
14674 ac_cpp='$CPP $CPPFLAGS'
14675 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14676 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14677 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14678
14679 CC=$lt_save_CC
14680 LDCXX=$LD
14681 LD=$lt_save_LD
14682 GCC=$lt_save_GCC
14683 with_gnu_ldcxx=$with_gnu_ld
14684 with_gnu_ld=$lt_save_with_gnu_ld
14685 lt_cv_path_LDCXX=$lt_cv_path_LD
14686 lt_cv_path_LD=$lt_save_path_LD
14687 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14688 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14689
14690         else
14691           tagname=""
14692         fi
14693         ;;
14694
14695       F77)
14696         if test -n "$F77" && test "X$F77" != "Xno"; then
14697           
14698 ac_ext=f
14699 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
14700 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14701 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
14702
14703
14704 archive_cmds_need_lc_F77=no
14705 allow_undefined_flag_F77=
14706 always_export_symbols_F77=no
14707 archive_expsym_cmds_F77=
14708 export_dynamic_flag_spec_F77=
14709 hardcode_direct_F77=no
14710 hardcode_libdir_flag_spec_F77=
14711 hardcode_libdir_flag_spec_ld_F77=
14712 hardcode_libdir_separator_F77=
14713 hardcode_minus_L_F77=no
14714 hardcode_automatic_F77=no
14715 module_cmds_F77=
14716 module_expsym_cmds_F77=
14717 link_all_deplibs_F77=unknown
14718 old_archive_cmds_F77=$old_archive_cmds
14719 no_undefined_flag_F77=
14720 whole_archive_flag_spec_F77=
14721 enable_shared_with_static_runtimes_F77=no
14722
14723 # Source file extension for f77 test sources.
14724 ac_ext=f
14725
14726 # Object file extension for compiled f77 test sources.
14727 objext=o
14728 objext_F77=$objext
14729
14730 # Code to be used in simple compile tests
14731 lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
14732
14733 # Code to be used in simple link tests
14734 lt_simple_link_test_code="      program t\n      end\n"
14735
14736 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
14737
14738 # If no C compiler was specified, use CC.
14739 LTCC=${LTCC-"$CC"}
14740
14741 # If no C compiler flags were specified, use CFLAGS.
14742 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14743
14744 # Allow CC to be a program name with arguments.
14745 compiler=$CC
14746
14747
14748 # save warnings/boilerplate of simple test code
14749 ac_outfile=conftest.$ac_objext
14750 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
14751 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14752 _lt_compiler_boilerplate=`cat conftest.err`
14753 $rm conftest*
14754
14755 ac_outfile=conftest.$ac_objext
14756 printf "$lt_simple_link_test_code" >conftest.$ac_ext
14757 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14758 _lt_linker_boilerplate=`cat conftest.err`
14759 $rm conftest*
14760
14761
14762 # Allow CC to be a program name with arguments.
14763 lt_save_CC="$CC"
14764 CC=${F77-"f77"}
14765 compiler=$CC
14766 compiler_F77=$CC
14767 for cc_temp in $compiler""; do
14768   case $cc_temp in
14769     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14770     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14771     \-*) ;;
14772     *) break;;
14773   esac
14774 done
14775 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14776
14777
14778 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14779 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
14780 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
14781 echo "${ECHO_T}$can_build_shared" >&6; }
14782
14783 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14784 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
14785 test "$can_build_shared" = "no" && enable_shared=no
14786
14787 # On AIX, shared libraries and static libraries use the same namespace, and
14788 # are all built from PIC.
14789 case $host_os in
14790 aix3*)
14791   test "$enable_shared" = yes && enable_static=no
14792   if test -n "$RANLIB"; then
14793     archive_cmds="$archive_cmds~\$RANLIB \$lib"
14794     postinstall_cmds='$RANLIB $lib'
14795   fi
14796   ;;
14797 aix4* | aix5*)
14798   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14799     test "$enable_shared" = yes && enable_static=no
14800   fi
14801   ;;
14802 esac
14803 { echo "$as_me:$LINENO: result: $enable_shared" >&5
14804 echo "${ECHO_T}$enable_shared" >&6; }
14805
14806 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14807 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
14808 # Make sure either enable_shared or enable_static is yes.
14809 test "$enable_shared" = yes || enable_static=yes
14810 { echo "$as_me:$LINENO: result: $enable_static" >&5
14811 echo "${ECHO_T}$enable_static" >&6; }
14812
14813 GCC_F77="$G77"
14814 LD_F77="$LD"
14815
14816 lt_prog_compiler_wl_F77=
14817 lt_prog_compiler_pic_F77=
14818 lt_prog_compiler_static_F77=
14819
14820 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14821 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
14822  
14823   if test "$GCC" = yes; then
14824     lt_prog_compiler_wl_F77='-Wl,'
14825     lt_prog_compiler_static_F77='-static'
14826
14827     case $host_os in
14828       aix*)
14829       # All AIX code is PIC.
14830       if test "$host_cpu" = ia64; then
14831         # AIX 5 now supports IA64 processor
14832         lt_prog_compiler_static_F77='-Bstatic'
14833       fi
14834       ;;
14835
14836     amigaos*)
14837       # FIXME: we need at least 68020 code to build shared libraries, but
14838       # adding the `-m68020' flag to GCC prevents building anything better,
14839       # like `-m68040'.
14840       lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
14841       ;;
14842
14843     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14844       # PIC is the default for these OSes.
14845       ;;
14846
14847     mingw* | pw32* | os2*)
14848       # This hack is so that the source file can tell whether it is being
14849       # built for inclusion in a dll (and should export symbols for example).
14850       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14851       ;;
14852
14853     darwin* | rhapsody*)
14854       # PIC is the default on this platform
14855       # Common symbols not allowed in MH_DYLIB files
14856       lt_prog_compiler_pic_F77='-fno-common'
14857       ;;
14858
14859     interix3*)
14860       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14861       # Instead, we relocate shared libraries at runtime.
14862       ;;
14863
14864     msdosdjgpp*)
14865       # Just because we use GCC doesn't mean we suddenly get shared libraries
14866       # on systems that don't support them.
14867       lt_prog_compiler_can_build_shared_F77=no
14868       enable_shared=no
14869       ;;
14870
14871     sysv4*MP*)
14872       if test -d /usr/nec; then
14873         lt_prog_compiler_pic_F77=-Kconform_pic
14874       fi
14875       ;;
14876
14877     hpux*)
14878       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14879       # not for PA HP-UX.
14880       case $host_cpu in
14881       hppa*64*|ia64*)
14882         # +Z the default
14883         ;;
14884       *)
14885         lt_prog_compiler_pic_F77='-fPIC'
14886         ;;
14887       esac
14888       ;;
14889
14890     *)
14891       lt_prog_compiler_pic_F77='-fPIC'
14892       ;;
14893     esac
14894   else
14895     # PORTME Check for flag to pass linker flags through the system compiler.
14896     case $host_os in
14897     aix*)
14898       lt_prog_compiler_wl_F77='-Wl,'
14899       if test "$host_cpu" = ia64; then
14900         # AIX 5 now supports IA64 processor
14901         lt_prog_compiler_static_F77='-Bstatic'
14902       else
14903         lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
14904       fi
14905       ;;
14906       darwin*)
14907         # PIC is the default on this platform
14908         # Common symbols not allowed in MH_DYLIB files
14909        case $cc_basename in
14910          xlc*)
14911          lt_prog_compiler_pic_F77='-qnocommon'
14912          lt_prog_compiler_wl_F77='-Wl,'
14913          ;;
14914        esac
14915        ;;
14916
14917     mingw* | pw32* | os2*)
14918       # This hack is so that the source file can tell whether it is being
14919       # built for inclusion in a dll (and should export symbols for example).
14920       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14921       ;;
14922
14923     hpux9* | hpux10* | hpux11*)
14924       lt_prog_compiler_wl_F77='-Wl,'
14925       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14926       # not for PA HP-UX.
14927       case $host_cpu in
14928       hppa*64*|ia64*)
14929         # +Z the default
14930         ;;
14931       *)
14932         lt_prog_compiler_pic_F77='+Z'
14933         ;;
14934       esac
14935       # Is there a better lt_prog_compiler_static that works with the bundled CC?
14936       lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
14937       ;;
14938
14939     irix5* | irix6* | nonstopux*)
14940       lt_prog_compiler_wl_F77='-Wl,'
14941       # PIC (with -KPIC) is the default.
14942       lt_prog_compiler_static_F77='-non_shared'
14943       ;;
14944
14945     newsos6)
14946       lt_prog_compiler_pic_F77='-KPIC'
14947       lt_prog_compiler_static_F77='-Bstatic'
14948       ;;
14949
14950     linux* | k*bsd*-gnu)
14951       case $cc_basename in
14952       icc* | ecc*)
14953         lt_prog_compiler_wl_F77='-Wl,'
14954         lt_prog_compiler_pic_F77='-KPIC'
14955         lt_prog_compiler_static_F77='-static'
14956         ;;
14957       pgcc* | pgf77* | pgf90* | pgf95*)
14958         # Portland Group compilers (*not* the Pentium gcc compiler,
14959         # which looks to be a dead project)
14960         lt_prog_compiler_wl_F77='-Wl,'
14961         lt_prog_compiler_pic_F77='-fpic'
14962         lt_prog_compiler_static_F77='-Bstatic'
14963         ;;
14964       ccc*)
14965         lt_prog_compiler_wl_F77='-Wl,'
14966         # All Alpha code is PIC.
14967         lt_prog_compiler_static_F77='-non_shared'
14968         ;;
14969       esac
14970       ;;
14971
14972     osf3* | osf4* | osf5*)
14973       lt_prog_compiler_wl_F77='-Wl,'
14974       # All OSF/1 code is PIC.
14975       lt_prog_compiler_static_F77='-non_shared'
14976       ;;
14977
14978     solaris*)
14979       lt_prog_compiler_pic_F77='-KPIC'
14980       lt_prog_compiler_static_F77='-Bstatic'
14981       case $cc_basename in
14982       f77* | f90* | f95*)
14983         lt_prog_compiler_wl_F77='-Qoption ld ';;
14984       *)
14985         lt_prog_compiler_wl_F77='-Wl,';;
14986       esac
14987       ;;
14988
14989     sunos4*)
14990       lt_prog_compiler_wl_F77='-Qoption ld '
14991       lt_prog_compiler_pic_F77='-PIC'
14992       lt_prog_compiler_static_F77='-Bstatic'
14993       ;;
14994
14995     sysv4 | sysv4.2uw2* | sysv4.3*)
14996       lt_prog_compiler_wl_F77='-Wl,'
14997       lt_prog_compiler_pic_F77='-KPIC'
14998       lt_prog_compiler_static_F77='-Bstatic'
14999       ;;
15000
15001     sysv4*MP*)
15002       if test -d /usr/nec ;then
15003         lt_prog_compiler_pic_F77='-Kconform_pic'
15004         lt_prog_compiler_static_F77='-Bstatic'
15005       fi
15006       ;;
15007
15008     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15009       lt_prog_compiler_wl_F77='-Wl,'
15010       lt_prog_compiler_pic_F77='-KPIC'
15011       lt_prog_compiler_static_F77='-Bstatic'
15012       ;;
15013
15014     unicos*)
15015       lt_prog_compiler_wl_F77='-Wl,'
15016       lt_prog_compiler_can_build_shared_F77=no
15017       ;;
15018
15019     uts4*)
15020       lt_prog_compiler_pic_F77='-pic'
15021       lt_prog_compiler_static_F77='-Bstatic'
15022       ;;
15023
15024     *)
15025       lt_prog_compiler_can_build_shared_F77=no
15026       ;;
15027     esac
15028   fi
15029
15030 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
15031 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
15032
15033 #
15034 # Check to make sure the PIC flag actually works.
15035 #
15036 if test -n "$lt_prog_compiler_pic_F77"; then
15037   
15038 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
15039 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
15040 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
15041   echo $ECHO_N "(cached) $ECHO_C" >&6
15042 else
15043   lt_prog_compiler_pic_works_F77=no
15044   ac_outfile=conftest.$ac_objext
15045    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15046    lt_compiler_flag="$lt_prog_compiler_pic_F77"
15047    # Insert the option either (1) after the last *FLAGS variable, or
15048    # (2) before a word containing "conftest.", or (3) at the end.
15049    # Note that $ac_compile itself does not contain backslashes and begins
15050    # with a dollar sign (not a hyphen), so the echo should work correctly.
15051    # The option is referenced via a variable to avoid confusing sed.
15052    lt_compile=`echo "$ac_compile" | $SED \
15053    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15054    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15055    -e 's:$: $lt_compiler_flag:'`
15056    (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
15057    (eval "$lt_compile" 2>conftest.err)
15058    ac_status=$?
15059    cat conftest.err >&5
15060    echo "$as_me:__oline__: \$? = $ac_status" >&5
15061    if (exit $ac_status) && test -s "$ac_outfile"; then
15062      # The compiler can only warn and ignore the option if not recognized
15063      # So say no if there are warnings other than the usual output.
15064      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15065      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15066      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15067        lt_prog_compiler_pic_works_F77=yes
15068      fi
15069    fi
15070    $rm conftest*
15071
15072 fi
15073 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
15074 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
15075
15076 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
15077     case $lt_prog_compiler_pic_F77 in
15078      "" | " "*) ;;
15079      *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
15080      esac
15081 else
15082     lt_prog_compiler_pic_F77=
15083      lt_prog_compiler_can_build_shared_F77=no
15084 fi
15085
15086 fi
15087 case $host_os in
15088   # For platforms which do not support PIC, -DPIC is meaningless:
15089   *djgpp*)
15090     lt_prog_compiler_pic_F77=
15091     ;;
15092   *)
15093     lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
15094     ;;
15095 esac
15096
15097 #
15098 # Check to make sure the static flag actually works.
15099 #
15100 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
15101 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15102 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
15103 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
15104   echo $ECHO_N "(cached) $ECHO_C" >&6
15105 else
15106   lt_prog_compiler_static_works_F77=no
15107    save_LDFLAGS="$LDFLAGS"
15108    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15109    printf "$lt_simple_link_test_code" > conftest.$ac_ext
15110    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15111      # The linker can only warn and ignore the option if not recognized
15112      # So say no if there are warnings
15113      if test -s conftest.err; then
15114        # Append any errors to the config.log.
15115        cat conftest.err 1>&5
15116        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
15117        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15118        if diff conftest.exp conftest.er2 >/dev/null; then
15119          lt_prog_compiler_static_works_F77=yes
15120        fi
15121      else
15122        lt_prog_compiler_static_works_F77=yes
15123      fi
15124    fi
15125    $rm conftest*
15126    LDFLAGS="$save_LDFLAGS"
15127
15128 fi
15129 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
15130 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
15131
15132 if test x"$lt_prog_compiler_static_works_F77" = xyes; then
15133     :
15134 else
15135     lt_prog_compiler_static_F77=
15136 fi
15137
15138
15139 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15140 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
15141 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
15142   echo $ECHO_N "(cached) $ECHO_C" >&6
15143 else
15144   lt_cv_prog_compiler_c_o_F77=no
15145    $rm -r conftest 2>/dev/null
15146    mkdir conftest
15147    cd conftest
15148    mkdir out
15149    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15150
15151    lt_compiler_flag="-o out/conftest2.$ac_objext"
15152    # Insert the option either (1) after the last *FLAGS variable, or
15153    # (2) before a word containing "conftest.", or (3) at the end.
15154    # Note that $ac_compile itself does not contain backslashes and begins
15155    # with a dollar sign (not a hyphen), so the echo should work correctly.
15156    lt_compile=`echo "$ac_compile" | $SED \
15157    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15158    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15159    -e 's:$: $lt_compiler_flag:'`
15160    (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
15161    (eval "$lt_compile" 2>out/conftest.err)
15162    ac_status=$?
15163    cat out/conftest.err >&5
15164    echo "$as_me:__oline__: \$? = $ac_status" >&5
15165    if (exit $ac_status) && test -s out/conftest2.$ac_objext
15166    then
15167      # The compiler can only warn and ignore the option if not recognized
15168      # So say no if there are warnings
15169      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
15170      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15171      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15172        lt_cv_prog_compiler_c_o_F77=yes
15173      fi
15174    fi
15175    chmod u+w . 2>&5
15176    $rm conftest*
15177    # SGI C++ compiler will create directory out/ii_files/ for
15178    # template instantiation
15179    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15180    $rm out/* && rmdir out
15181    cd ..
15182    rmdir conftest
15183    $rm conftest*
15184
15185 fi
15186 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
15187 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
15188
15189
15190 hard_links="nottested"
15191 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
15192   # do not overwrite the value of need_locks provided by the user
15193   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15194 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
15195   hard_links=yes
15196   $rm conftest*
15197   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15198   touch conftest.a
15199   ln conftest.a conftest.b 2>&5 || hard_links=no
15200   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15201   { echo "$as_me:$LINENO: result: $hard_links" >&5
15202 echo "${ECHO_T}$hard_links" >&6; }
15203   if test "$hard_links" = no; then
15204     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15205 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15206     need_locks=warn
15207   fi
15208 else
15209   need_locks=no
15210 fi
15211
15212 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15213 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
15214
15215   runpath_var=
15216   allow_undefined_flag_F77=
15217   enable_shared_with_static_runtimes_F77=no
15218   archive_cmds_F77=
15219   archive_expsym_cmds_F77=
15220   old_archive_From_new_cmds_F77=
15221   old_archive_from_expsyms_cmds_F77=
15222   export_dynamic_flag_spec_F77=
15223   whole_archive_flag_spec_F77=
15224   thread_safe_flag_spec_F77=
15225   hardcode_libdir_flag_spec_F77=
15226   hardcode_libdir_flag_spec_ld_F77=
15227   hardcode_libdir_separator_F77=
15228   hardcode_direct_F77=no
15229   hardcode_minus_L_F77=no
15230   hardcode_shlibpath_var_F77=unsupported
15231   link_all_deplibs_F77=unknown
15232   hardcode_automatic_F77=no
15233   module_cmds_F77=
15234   module_expsym_cmds_F77=
15235   always_export_symbols_F77=no
15236   export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15237   # include_expsyms should be a list of space-separated symbols to be *always*
15238   # included in the symbol list
15239   include_expsyms_F77=
15240   # exclude_expsyms can be an extended regexp of symbols to exclude
15241   # it will be wrapped by ` (' and `)$', so one must not match beginning or
15242   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15243   # as well as any symbol that contains `d'.
15244   exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
15245   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15246   # platforms (ab)use it in PIC code, but their linkers get confused if
15247   # the symbol is explicitly referenced.  Since portable code cannot
15248   # rely on this symbol name, it's probably fine to never include it in
15249   # preloaded symbol tables.
15250   extract_expsyms_cmds=
15251   # Just being paranoid about ensuring that cc_basename is set.
15252   for cc_temp in $compiler""; do
15253   case $cc_temp in
15254     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15255     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15256     \-*) ;;
15257     *) break;;
15258   esac
15259 done
15260 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15261
15262   case $host_os in
15263   cygwin* | mingw* | pw32*)
15264     # FIXME: the MSVC++ port hasn't been tested in a loooong time
15265     # When not using gcc, we currently assume that we are using
15266     # Microsoft Visual C++.
15267     if test "$GCC" != yes; then
15268       with_gnu_ld=no
15269     fi
15270     ;;
15271   interix*)
15272     # we just hope/assume this is gcc and not c89 (= MSVC++)
15273     with_gnu_ld=yes
15274     ;;
15275   openbsd*)
15276     with_gnu_ld=no
15277     ;;
15278   esac
15279
15280   ld_shlibs_F77=yes
15281   if test "$with_gnu_ld" = yes; then
15282     # If archive_cmds runs LD, not CC, wlarc should be empty
15283     wlarc='${wl}'
15284
15285     # Set some defaults for GNU ld with shared library support. These
15286     # are reset later if shared libraries are not supported. Putting them
15287     # here allows them to be overridden if necessary.
15288     runpath_var=LD_RUN_PATH
15289     hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
15290     export_dynamic_flag_spec_F77='${wl}--export-dynamic'
15291     # ancient GNU ld didn't support --whole-archive et. al.
15292     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15293         whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15294       else
15295         whole_archive_flag_spec_F77=
15296     fi
15297     supports_anon_versioning=no
15298     case `$LD -v 2>/dev/null` in
15299       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15300       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15301       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15302       *\ 2.11.*) ;; # other 2.11 versions
15303       *) supports_anon_versioning=yes ;;
15304     esac
15305
15306     # See if GNU ld supports shared libraries.
15307     case $host_os in
15308     aix3* | aix4* | aix5*)
15309       # On AIX/PPC, the GNU linker is very broken
15310       if test "$host_cpu" != ia64; then
15311         ld_shlibs_F77=no
15312         cat <<EOF 1>&2
15313
15314 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
15315 *** to be unable to reliably create shared libraries on AIX.
15316 *** Therefore, libtool is disabling shared libraries support.  If you
15317 *** really care for shared libraries, you may want to modify your PATH
15318 *** so that a non-GNU linker is found, and then restart.
15319
15320 EOF
15321       fi
15322       ;;
15323
15324     amigaos*)
15325       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)'
15326       hardcode_libdir_flag_spec_F77='-L$libdir'
15327       hardcode_minus_L_F77=yes
15328
15329       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15330       # that the semantics of dynamic libraries on AmigaOS, at least up
15331       # to version 4, is to share data among multiple programs linked
15332       # with the same dynamic library.  Since this doesn't match the
15333       # behavior of shared libraries on other platforms, we can't use
15334       # them.
15335       ld_shlibs_F77=no
15336       ;;
15337
15338     beos*)
15339       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15340         allow_undefined_flag_F77=unsupported
15341         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15342         # support --undefined.  This deserves some investigation.  FIXME
15343         archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15344       else
15345         ld_shlibs_F77=no
15346       fi
15347       ;;
15348
15349     cygwin* | mingw* | pw32*)
15350       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
15351       # as there is no search path for DLLs.
15352       hardcode_libdir_flag_spec_F77='-L$libdir'
15353       allow_undefined_flag_F77=unsupported
15354       always_export_symbols_F77=no
15355       enable_shared_with_static_runtimes_F77=yes
15356       export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15357
15358       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15359         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15360         # If the export-symbols file already is a .def file (1st line
15361         # is EXPORTS), use it as is; otherwise, prepend...
15362         archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15363           cp $export_symbols $output_objdir/$soname.def;
15364         else
15365           echo EXPORTS > $output_objdir/$soname.def;
15366           cat $export_symbols >> $output_objdir/$soname.def;
15367         fi~
15368         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15369       else
15370         ld_shlibs_F77=no
15371       fi
15372       ;;
15373
15374     interix3*)
15375       hardcode_direct_F77=no
15376       hardcode_shlibpath_var_F77=no
15377       hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15378       export_dynamic_flag_spec_F77='${wl}-E'
15379       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15380       # Instead, shared libraries are loaded at an image base (0x10000000 by
15381       # default) and relocated if they conflict, which is a slow very memory
15382       # consuming and fragmenting process.  To avoid this, we pick a random,
15383       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15384       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
15385       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'
15386       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'
15387       ;;
15388
15389     linux* | k*bsd*-gnu)
15390       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15391         tmp_addflag=
15392         case $cc_basename,$host_cpu in
15393         pgcc*)                          # Portland Group C compiler
15394           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'
15395           tmp_addflag=' $pic_flag'
15396           ;;
15397         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
15398           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'
15399           tmp_addflag=' $pic_flag -Mnomain' ;;
15400         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
15401           tmp_addflag=' -i_dynamic' ;;
15402         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
15403           tmp_addflag=' -i_dynamic -nofor_main' ;;
15404         ifc* | ifort*)                  # Intel Fortran compiler
15405           tmp_addflag=' -nofor_main' ;;
15406         esac
15407         archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15408
15409         if test $supports_anon_versioning = yes; then
15410           archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
15411   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15412   $echo "local: *; };" >> $output_objdir/$libname.ver~
15413           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15414         fi
15415         link_all_deplibs_F77=no
15416       else
15417         ld_shlibs_F77=no
15418       fi
15419       ;;
15420
15421     netbsd* | netbsdelf*-gnu)
15422       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15423         archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15424         wlarc=
15425       else
15426         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15427         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15428       fi
15429       ;;
15430
15431     solaris*)
15432       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15433         ld_shlibs_F77=no
15434         cat <<EOF 1>&2
15435
15436 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15437 *** create shared libraries on Solaris systems.  Therefore, libtool
15438 *** is disabling shared libraries support.  We urge you to upgrade GNU
15439 *** binutils to release 2.9.1 or newer.  Another option is to modify
15440 *** your PATH or compiler configuration so that the native linker is
15441 *** used, and then restart.
15442
15443 EOF
15444       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15445         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15446         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15447       else
15448         ld_shlibs_F77=no
15449       fi
15450       ;;
15451
15452     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15453       case `$LD -v 2>&1` in
15454         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 
15455         ld_shlibs_F77=no
15456         cat <<_LT_EOF 1>&2
15457
15458 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15459 *** reliably create shared libraries on SCO systems.  Therefore, libtool
15460 *** is disabling shared libraries support.  We urge you to upgrade GNU
15461 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
15462 *** your PATH or compiler configuration so that the native linker is
15463 *** used, and then restart.
15464
15465 _LT_EOF
15466         ;;
15467         *)
15468           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15469             hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
15470             archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
15471             archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
15472           else
15473             ld_shlibs_F77=no
15474           fi
15475         ;;
15476       esac
15477       ;;
15478
15479     sunos4*)
15480       archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15481       wlarc=
15482       hardcode_direct_F77=yes
15483       hardcode_shlibpath_var_F77=no
15484       ;;
15485
15486     *)
15487       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15488         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15489         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15490       else
15491         ld_shlibs_F77=no
15492       fi
15493       ;;
15494     esac
15495
15496     if test "$ld_shlibs_F77" = no; then
15497       runpath_var=
15498       hardcode_libdir_flag_spec_F77=
15499       export_dynamic_flag_spec_F77=
15500       whole_archive_flag_spec_F77=
15501     fi
15502   else
15503     # PORTME fill in a description of your system's linker (not GNU ld)
15504     case $host_os in
15505     aix3*)
15506       allow_undefined_flag_F77=unsupported
15507       always_export_symbols_F77=yes
15508       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'
15509       # Note: this linker hardcodes the directories in LIBPATH if there
15510       # are no directories specified by -L.
15511       hardcode_minus_L_F77=yes
15512       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15513         # Neither direct hardcoding nor static linking is supported with a
15514         # broken collect2.
15515         hardcode_direct_F77=unsupported
15516       fi
15517       ;;
15518
15519     aix4* | aix5*)
15520       if test "$host_cpu" = ia64; then
15521         # On IA64, the linker does run time linking by default, so we don't
15522         # have to do anything special.
15523         aix_use_runtimelinking=no
15524         exp_sym_flag='-Bexport'
15525         no_entry_flag=""
15526       else
15527         # If we're using GNU nm, then we don't want the "-C" option.
15528         # -C means demangle to AIX nm, but means don't demangle with GNU nm
15529         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15530           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'
15531         else
15532           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'
15533         fi
15534         aix_use_runtimelinking=no
15535
15536         # Test if we are trying to use run time linking or normal
15537         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15538         # need to do runtime linking.
15539         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15540           for ld_flag in $LDFLAGS; do
15541           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15542             aix_use_runtimelinking=yes
15543             break
15544           fi
15545           done
15546           ;;
15547         esac
15548
15549         exp_sym_flag='-bexport'
15550         no_entry_flag='-bnoentry'
15551       fi
15552
15553       # When large executables or shared objects are built, AIX ld can
15554       # have problems creating the table of contents.  If linking a library
15555       # or program results in "error TOC overflow" add -mminimal-toc to
15556       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
15557       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15558
15559       archive_cmds_F77=''
15560       hardcode_direct_F77=yes
15561       hardcode_libdir_separator_F77=':'
15562       link_all_deplibs_F77=yes
15563
15564       if test "$GCC" = yes; then
15565         case $host_os in aix4.[012]|aix4.[012].*)
15566         # We only want to do this on AIX 4.2 and lower, the check
15567         # below for broken collect2 doesn't work under 4.3+
15568           collect2name=`${CC} -print-prog-name=collect2`
15569           if test -f "$collect2name" && \
15570            strings "$collect2name" | grep resolve_lib_name >/dev/null
15571           then
15572           # We have reworked collect2
15573           hardcode_direct_F77=yes
15574           else
15575           # We have old collect2
15576           hardcode_direct_F77=unsupported
15577           # It fails to find uninstalled libraries when the uninstalled
15578           # path is not listed in the libpath.  Setting hardcode_minus_L
15579           # to unsupported forces relinking
15580           hardcode_minus_L_F77=yes
15581           hardcode_libdir_flag_spec_F77='-L$libdir'
15582           hardcode_libdir_separator_F77=
15583           fi
15584           ;;
15585         esac
15586         shared_flag='-shared'
15587         if test "$aix_use_runtimelinking" = yes; then
15588           shared_flag="$shared_flag "'${wl}-G'
15589         fi
15590       else
15591         # not using gcc
15592         if test "$host_cpu" = ia64; then
15593         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15594         # chokes on -Wl,-G. The following line is correct:
15595           shared_flag='-G'
15596         else
15597           if test "$aix_use_runtimelinking" = yes; then
15598             shared_flag='${wl}-G'
15599           else
15600             shared_flag='${wl}-bM:SRE'
15601           fi
15602         fi
15603       fi
15604
15605       # It seems that -bexpall does not export symbols beginning with
15606       # underscore (_), so it is better to generate a list of symbols to export.
15607       always_export_symbols_F77=yes
15608       if test "$aix_use_runtimelinking" = yes; then
15609         # Warning - without using the other runtime loading flags (-brtl),
15610         # -berok will link without error, but may produce a broken library.
15611         allow_undefined_flag_F77='-berok'
15612        # Determine the default libpath from the value encoded in an empty executable.
15613        cat >conftest.$ac_ext <<_ACEOF
15614       program main
15615
15616       end
15617 _ACEOF
15618 rm -f conftest.$ac_objext conftest$ac_exeext
15619 if { (ac_try="$ac_link"
15620 case "(($ac_try" in
15621   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15622   *) ac_try_echo=$ac_try;;
15623 esac
15624 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15625   (eval "$ac_link") 2>conftest.er1
15626   ac_status=$?
15627   grep -v '^ *+' conftest.er1 >conftest.err
15628   rm -f conftest.er1
15629   cat conftest.err >&5
15630   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15631   (exit $ac_status); } && {
15632          test -z "$ac_f77_werror_flag" ||
15633          test ! -s conftest.err
15634        } && test -s conftest$ac_exeext &&
15635        $as_test_x conftest$ac_exeext; then
15636   
15637 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15638 }'`
15639 # Check for a 64-bit object if we didn't find anything.
15640 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15641 }'`; fi
15642 else
15643   echo "$as_me: failed program was:" >&5
15644 sed 's/^/| /' conftest.$ac_ext >&5
15645
15646         
15647 fi
15648
15649 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15650       conftest$ac_exeext conftest.$ac_ext
15651 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15652
15653        hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15654         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"
15655        else
15656         if test "$host_cpu" = ia64; then
15657           hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
15658           allow_undefined_flag_F77="-z nodefs"
15659           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"
15660         else
15661          # Determine the default libpath from the value encoded in an empty executable.
15662          cat >conftest.$ac_ext <<_ACEOF
15663       program main
15664
15665       end
15666 _ACEOF
15667 rm -f conftest.$ac_objext conftest$ac_exeext
15668 if { (ac_try="$ac_link"
15669 case "(($ac_try" in
15670   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15671   *) ac_try_echo=$ac_try;;
15672 esac
15673 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15674   (eval "$ac_link") 2>conftest.er1
15675   ac_status=$?
15676   grep -v '^ *+' conftest.er1 >conftest.err
15677   rm -f conftest.er1
15678   cat conftest.err >&5
15679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15680   (exit $ac_status); } && {
15681          test -z "$ac_f77_werror_flag" ||
15682          test ! -s conftest.err
15683        } && test -s conftest$ac_exeext &&
15684        $as_test_x conftest$ac_exeext; then
15685   
15686 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15687 }'`
15688 # Check for a 64-bit object if we didn't find anything.
15689 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15690 }'`; fi
15691 else
15692   echo "$as_me: failed program was:" >&5
15693 sed 's/^/| /' conftest.$ac_ext >&5
15694
15695         
15696 fi
15697
15698 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15699       conftest$ac_exeext conftest.$ac_ext
15700 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15701
15702          hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15703           # Warning - without using the other run time loading flags,
15704           # -berok will link without error, but may produce a broken library.
15705           no_undefined_flag_F77=' ${wl}-bernotok'
15706           allow_undefined_flag_F77=' ${wl}-berok'
15707           # Exported symbols can be pulled into shared objects from archives
15708           whole_archive_flag_spec_F77='$convenience'
15709           archive_cmds_need_lc_F77=yes
15710           # This is similar to how AIX traditionally builds its shared libraries.
15711           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'
15712         fi
15713       fi
15714       ;;
15715
15716     amigaos*)
15717       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)'
15718       hardcode_libdir_flag_spec_F77='-L$libdir'
15719       hardcode_minus_L_F77=yes
15720       # see comment about different semantics on the GNU ld section
15721       ld_shlibs_F77=no
15722       ;;
15723
15724     bsdi[45]*)
15725       export_dynamic_flag_spec_F77=-rdynamic
15726       ;;
15727
15728     cygwin* | mingw* | pw32*)
15729       # When not using gcc, we currently assume that we are using
15730       # Microsoft Visual C++.
15731       # hardcode_libdir_flag_spec is actually meaningless, as there is
15732       # no search path for DLLs.
15733       hardcode_libdir_flag_spec_F77=' '
15734       allow_undefined_flag_F77=unsupported
15735       # Tell ltmain to make .lib files, not .a files.
15736       libext=lib
15737       # Tell ltmain to make .dll files, not .so files.
15738       shrext_cmds=".dll"
15739       # FIXME: Setting linknames here is a bad hack.
15740       archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15741       # The linker will automatically build a .lib file if we build a DLL.
15742       old_archive_From_new_cmds_F77='true'
15743       # FIXME: Should let the user specify the lib program.
15744       old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
15745       fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
15746       enable_shared_with_static_runtimes_F77=yes
15747       ;;
15748
15749     darwin* | rhapsody*)
15750       case $host_os in
15751         rhapsody* | darwin1.[012])
15752          allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
15753          ;;
15754        *) # Darwin 1.3 on
15755          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15756            allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15757          else
15758            case ${MACOSX_DEPLOYMENT_TARGET} in
15759              10.[012])
15760                allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15761                ;;
15762              10.*)
15763                allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
15764                ;;
15765            esac
15766          fi
15767          ;;
15768       esac
15769       archive_cmds_need_lc_F77=no
15770       hardcode_direct_F77=no
15771       hardcode_automatic_F77=yes
15772       hardcode_shlibpath_var_F77=unsupported
15773       whole_archive_flag_spec_F77=''
15774       link_all_deplibs_F77=yes
15775     if test "$GCC" = yes ; then
15776         output_verbose_link_cmd='echo'
15777         archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15778       module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15779       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15780       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}'
15781       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}'
15782     else
15783       case $cc_basename in
15784         xlc*)
15785          output_verbose_link_cmd='echo'
15786          archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
15787          module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15788           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15789          archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15790           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}'
15791           ;;
15792        *)
15793          ld_shlibs_F77=no
15794           ;;
15795       esac
15796     fi
15797       ;;
15798
15799     dgux*)
15800       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15801       hardcode_libdir_flag_spec_F77='-L$libdir'
15802       hardcode_shlibpath_var_F77=no
15803       ;;
15804
15805     freebsd1*)
15806       ld_shlibs_F77=no
15807       ;;
15808
15809     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15810     # support.  Future versions do this automatically, but an explicit c++rt0.o
15811     # does not break anything, and helps significantly (at the cost of a little
15812     # extra space).
15813     freebsd2.2*)
15814       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15815       hardcode_libdir_flag_spec_F77='-R$libdir'
15816       hardcode_direct_F77=yes
15817       hardcode_shlibpath_var_F77=no
15818       ;;
15819
15820     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15821     freebsd2*)
15822       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15823       hardcode_direct_F77=yes
15824       hardcode_minus_L_F77=yes
15825       hardcode_shlibpath_var_F77=no
15826       ;;
15827
15828     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15829     freebsd* | dragonfly*)
15830       archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15831       hardcode_libdir_flag_spec_F77='-R$libdir'
15832       hardcode_direct_F77=yes
15833       hardcode_shlibpath_var_F77=no
15834       ;;
15835
15836     hpux9*)
15837       if test "$GCC" = yes; then
15838         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'
15839       else
15840         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'
15841       fi
15842       hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15843       hardcode_libdir_separator_F77=:
15844       hardcode_direct_F77=yes
15845
15846       # hardcode_minus_L: Not really in the search PATH,
15847       # but as the default location of the library.
15848       hardcode_minus_L_F77=yes
15849       export_dynamic_flag_spec_F77='${wl}-E'
15850       ;;
15851
15852     hpux10*)
15853       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15854         archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15855       else
15856         archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15857       fi
15858       if test "$with_gnu_ld" = no; then
15859         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15860         hardcode_libdir_separator_F77=:
15861
15862         hardcode_direct_F77=yes
15863         export_dynamic_flag_spec_F77='${wl}-E'
15864
15865         # hardcode_minus_L: Not really in the search PATH,
15866         # but as the default location of the library.
15867         hardcode_minus_L_F77=yes
15868       fi
15869       ;;
15870
15871     hpux11*)
15872       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15873         case $host_cpu in
15874         hppa*64*)
15875           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15876           ;;
15877         ia64*)
15878           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15879           ;;
15880         *)
15881           archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15882           ;;
15883         esac
15884       else
15885         case $host_cpu in
15886         hppa*64*)
15887           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15888           ;;
15889         ia64*)
15890           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15891           ;;
15892         *)
15893           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15894           ;;
15895         esac
15896       fi
15897       if test "$with_gnu_ld" = no; then
15898         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15899         hardcode_libdir_separator_F77=:
15900
15901         case $host_cpu in
15902         hppa*64*|ia64*)
15903           hardcode_libdir_flag_spec_ld_F77='+b $libdir'
15904           hardcode_direct_F77=no
15905           hardcode_shlibpath_var_F77=no
15906           ;;
15907         *)
15908           hardcode_direct_F77=yes
15909           export_dynamic_flag_spec_F77='${wl}-E'
15910
15911           # hardcode_minus_L: Not really in the search PATH,
15912           # but as the default location of the library.
15913           hardcode_minus_L_F77=yes
15914           ;;
15915         esac
15916       fi
15917       ;;
15918
15919     irix5* | irix6* | nonstopux*)
15920       if test "$GCC" = yes; then
15921         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'
15922       else
15923         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'
15924         hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
15925       fi
15926       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15927       hardcode_libdir_separator_F77=:
15928       link_all_deplibs_F77=yes
15929       ;;
15930
15931     netbsd* | netbsdelf*-gnu)
15932       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15933         archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
15934       else
15935         archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
15936       fi
15937       hardcode_libdir_flag_spec_F77='-R$libdir'
15938       hardcode_direct_F77=yes
15939       hardcode_shlibpath_var_F77=no
15940       ;;
15941
15942     newsos6)
15943       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15944       hardcode_direct_F77=yes
15945       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15946       hardcode_libdir_separator_F77=:
15947       hardcode_shlibpath_var_F77=no
15948       ;;
15949
15950     openbsd*)
15951       hardcode_direct_F77=yes
15952       hardcode_shlibpath_var_F77=no
15953       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15954         archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15955         archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15956         hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15957         export_dynamic_flag_spec_F77='${wl}-E'
15958       else
15959        case $host_os in
15960          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15961            archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15962            hardcode_libdir_flag_spec_F77='-R$libdir'
15963            ;;
15964          *)
15965            archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15966            hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15967            ;;
15968        esac
15969       fi
15970       ;;
15971
15972     os2*)
15973       hardcode_libdir_flag_spec_F77='-L$libdir'
15974       hardcode_minus_L_F77=yes
15975       allow_undefined_flag_F77=unsupported
15976       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'
15977       old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15978       ;;
15979
15980     osf3*)
15981       if test "$GCC" = yes; then
15982         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15983         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'
15984       else
15985         allow_undefined_flag_F77=' -expect_unresolved \*'
15986         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'
15987       fi
15988       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15989       hardcode_libdir_separator_F77=:
15990       ;;
15991
15992     osf4* | osf5*)      # as osf3* with the addition of -msym flag
15993       if test "$GCC" = yes; then
15994         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15995         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'
15996         hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15997       else
15998         allow_undefined_flag_F77=' -expect_unresolved \*'
15999         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'
16000         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~
16001         $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'
16002
16003         # Both c and cxx compiler support -rpath directly
16004         hardcode_libdir_flag_spec_F77='-rpath $libdir'
16005       fi
16006       hardcode_libdir_separator_F77=:
16007       ;;
16008
16009     solaris*)
16010       no_undefined_flag_F77=' -z text'
16011       if test "$GCC" = yes; then
16012         wlarc='${wl}'
16013         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16014         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16015           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16016       else
16017         wlarc=''
16018         archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16019         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16020         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16021       fi
16022       hardcode_libdir_flag_spec_F77='-R$libdir'
16023       hardcode_shlibpath_var_F77=no
16024       case $host_os in
16025       solaris2.[0-5] | solaris2.[0-5].*) ;;
16026       *)
16027         # The compiler driver will combine linker options so we
16028         # cannot just pass the convience library names through
16029         # without $wl, iff we do not link with $LD.
16030         # Luckily, gcc supports the same syntax we need for Sun Studio.
16031         # Supported since Solaris 2.6 (maybe 2.5.1?)
16032         case $wlarc in
16033         '')
16034           whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
16035         *)
16036           whole_archive_flag_spec_F77='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
16037         esac ;;
16038       esac
16039       link_all_deplibs_F77=yes
16040       ;;
16041
16042     sunos4*)
16043       if test "x$host_vendor" = xsequent; then
16044         # Use $CC to link under sequent, because it throws in some extra .o
16045         # files that make .init and .fini sections work.
16046         archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16047       else
16048         archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16049       fi
16050       hardcode_libdir_flag_spec_F77='-L$libdir'
16051       hardcode_direct_F77=yes
16052       hardcode_minus_L_F77=yes
16053       hardcode_shlibpath_var_F77=no
16054       ;;
16055
16056     sysv4)
16057       case $host_vendor in
16058         sni)
16059           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16060           hardcode_direct_F77=yes # is this really true???
16061         ;;
16062         siemens)
16063           ## LD is ld it makes a PLAMLIB
16064           ## CC just makes a GrossModule.
16065           archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16066           reload_cmds_F77='$CC -r -o $output$reload_objs'
16067           hardcode_direct_F77=no
16068         ;;
16069         motorola)
16070           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16071           hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
16072         ;;
16073       esac
16074       runpath_var='LD_RUN_PATH'
16075       hardcode_shlibpath_var_F77=no
16076       ;;
16077
16078     sysv4.3*)
16079       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16080       hardcode_shlibpath_var_F77=no
16081       export_dynamic_flag_spec_F77='-Bexport'
16082       ;;
16083
16084     sysv4*MP*)
16085       if test -d /usr/nec; then
16086         archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16087         hardcode_shlibpath_var_F77=no
16088         runpath_var=LD_RUN_PATH
16089         hardcode_runpath_var=yes
16090         ld_shlibs_F77=yes
16091       fi
16092       ;;
16093
16094     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
16095       no_undefined_flag_F77='${wl}-z,text'
16096       archive_cmds_need_lc_F77=no
16097       hardcode_shlibpath_var_F77=no
16098       runpath_var='LD_RUN_PATH'
16099
16100       if test "$GCC" = yes; then
16101         archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16102         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16103       else
16104         archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16105         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16106       fi
16107       ;;
16108
16109     sysv5* | sco3.2v5* | sco5v6*)
16110       # Note: We can NOT use -z defs as we might desire, because we do not
16111       # link with -lc, and that would cause any symbols used from libc to
16112       # always be unresolved, which means just about no library would
16113       # ever link correctly.  If we're not using GNU ld we use -z text
16114       # though, which does catch some bad symbols but isn't as heavy-handed
16115       # as -z defs.
16116       no_undefined_flag_F77='${wl}-z,text'
16117       allow_undefined_flag_F77='${wl}-z,nodefs'
16118       archive_cmds_need_lc_F77=no
16119       hardcode_shlibpath_var_F77=no
16120       hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
16121       hardcode_libdir_separator_F77=':'
16122       link_all_deplibs_F77=yes
16123       export_dynamic_flag_spec_F77='${wl}-Bexport'
16124       runpath_var='LD_RUN_PATH'
16125
16126       if test "$GCC" = yes; then
16127         archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16128         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16129       else
16130         archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16131         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16132       fi
16133       ;;
16134
16135     uts4*)
16136       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16137       hardcode_libdir_flag_spec_F77='-L$libdir'
16138       hardcode_shlibpath_var_F77=no
16139       ;;
16140
16141     *)
16142       ld_shlibs_F77=no
16143       ;;
16144     esac
16145   fi
16146
16147 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
16148 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
16149 test "$ld_shlibs_F77" = no && can_build_shared=no
16150
16151 #
16152 # Do we need to explicitly link libc?
16153 #
16154 case "x$archive_cmds_need_lc_F77" in
16155 x|xyes)
16156   # Assume -lc should be added
16157   archive_cmds_need_lc_F77=yes
16158
16159   if test "$enable_shared" = yes && test "$GCC" = yes; then
16160     case $archive_cmds_F77 in
16161     *'~'*)
16162       # FIXME: we may have to deal with multi-command sequences.
16163       ;;
16164     '$CC '*)
16165       # Test whether the compiler implicitly links with -lc since on some
16166       # systems, -lgcc has to come before -lc. If gcc already passes -lc
16167       # to ld, don't add -lc before -lgcc.
16168       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16169 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
16170       $rm conftest*
16171       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16172
16173       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16174   (eval $ac_compile) 2>&5
16175   ac_status=$?
16176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16177   (exit $ac_status); } 2>conftest.err; then
16178         soname=conftest
16179         lib=conftest
16180         libobjs=conftest.$ac_objext
16181         deplibs=
16182         wl=$lt_prog_compiler_wl_F77
16183         pic_flag=$lt_prog_compiler_pic_F77
16184         compiler_flags=-v
16185         linker_flags=-v
16186         verstring=
16187         output_objdir=.
16188         libname=conftest
16189         lt_save_allow_undefined_flag=$allow_undefined_flag_F77
16190         allow_undefined_flag_F77=
16191         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16192   (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16193   ac_status=$?
16194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16195   (exit $ac_status); }
16196         then
16197           archive_cmds_need_lc_F77=no
16198         else
16199           archive_cmds_need_lc_F77=yes
16200         fi
16201         allow_undefined_flag_F77=$lt_save_allow_undefined_flag
16202       else
16203         cat conftest.err 1>&5
16204       fi
16205       $rm conftest*
16206       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
16207 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
16208       ;;
16209     esac
16210   fi
16211   ;;
16212 esac
16213
16214 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16215 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
16216 library_names_spec=
16217 libname_spec='lib$name'
16218 soname_spec=
16219 shrext_cmds=".so"
16220 postinstall_cmds=
16221 postuninstall_cmds=
16222 finish_cmds=
16223 finish_eval=
16224 shlibpath_var=
16225 shlibpath_overrides_runpath=unknown
16226 version_type=none
16227 dynamic_linker="$host_os ld.so"
16228 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16229 if test "$GCC" = yes; then
16230   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16231   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16232     # if the path contains ";" then we assume it to be the separator
16233     # otherwise default to the standard path separator (i.e. ":") - it is
16234     # assumed that no part of a normal pathname contains ";" but that should
16235     # okay in the real world where ";" in dirpaths is itself problematic.
16236     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16237   else
16238     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16239   fi
16240 else
16241   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16242 fi
16243 need_lib_prefix=unknown
16244 hardcode_into_libs=no
16245
16246 # when you set need_version to no, make sure it does not cause -set_version
16247 # flags to be left without arguments
16248 need_version=unknown
16249
16250 case $host_os in
16251 aix3*)
16252   version_type=linux
16253   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16254   shlibpath_var=LIBPATH
16255
16256   # AIX 3 has no versioning support, so we append a major version to the name.
16257   soname_spec='${libname}${release}${shared_ext}$major'
16258   ;;
16259
16260 aix4* | aix5*)
16261   version_type=linux
16262   need_lib_prefix=no
16263   need_version=no
16264   hardcode_into_libs=yes
16265   if test "$host_cpu" = ia64; then
16266     # AIX 5 supports IA64
16267     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16268     shlibpath_var=LD_LIBRARY_PATH
16269   else
16270     # With GCC up to 2.95.x, collect2 would create an import file
16271     # for dependence libraries.  The import file would start with
16272     # the line `#! .'.  This would cause the generated library to
16273     # depend on `.', always an invalid library.  This was fixed in
16274     # development snapshots of GCC prior to 3.0.
16275     case $host_os in
16276       aix4 | aix4.[01] | aix4.[01].*)
16277       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16278            echo ' yes '
16279            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16280         :
16281       else
16282         can_build_shared=no
16283       fi
16284       ;;
16285     esac
16286     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16287     # soname into executable. Probably we can add versioning support to
16288     # collect2, so additional links can be useful in future.
16289     if test "$aix_use_runtimelinking" = yes; then
16290       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16291       # instead of lib<name>.a to let people know that these are not
16292       # typical AIX shared libraries.
16293       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16294     else
16295       # We preserve .a as extension for shared libraries through AIX4.2
16296       # and later when we are not doing run time linking.
16297       library_names_spec='${libname}${release}.a $libname.a'
16298       soname_spec='${libname}${release}${shared_ext}$major'
16299     fi
16300     shlibpath_var=LIBPATH
16301   fi
16302   ;;
16303
16304 amigaos*)
16305   library_names_spec='$libname.ixlibrary $libname.a'
16306   # Create ${libname}_ixlibrary.a entries in /sys/libs.
16307   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'
16308   ;;
16309
16310 beos*)
16311   library_names_spec='${libname}${shared_ext}'
16312   dynamic_linker="$host_os ld.so"
16313   shlibpath_var=LIBRARY_PATH
16314   ;;
16315
16316 bsdi[45]*)
16317   version_type=linux
16318   need_version=no
16319   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16320   soname_spec='${libname}${release}${shared_ext}$major'
16321   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16322   shlibpath_var=LD_LIBRARY_PATH
16323   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16324   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16325   # the default ld.so.conf also contains /usr/contrib/lib and
16326   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16327   # libtool to hard-code these into programs
16328   ;;
16329
16330 cygwin* | mingw* | pw32*)
16331   version_type=windows
16332   shrext_cmds=".dll"
16333   need_version=no
16334   need_lib_prefix=no
16335
16336   case $GCC,$host_os in
16337   yes,cygwin* | yes,mingw* | yes,pw32*)
16338     library_names_spec='$libname.dll.a'
16339     # DLL is installed to $(libdir)/../bin by postinstall_cmds
16340     postinstall_cmds='base_file=`basename \${file}`~
16341       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16342       dldir=$destdir/`dirname \$dlpath`~
16343       test -d \$dldir || mkdir -p \$dldir~
16344       $install_prog $dir/$dlname \$dldir/$dlname~
16345       chmod a+x \$dldir/$dlname'
16346     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16347       dlpath=$dir/\$dldll~
16348        $rm \$dlpath'
16349     shlibpath_overrides_runpath=yes
16350
16351     case $host_os in
16352     cygwin*)
16353       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16354       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16355       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16356       ;;
16357     mingw*)
16358       # MinGW DLLs use traditional 'lib' prefix
16359       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16360       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16361       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16362         # It is most probably a Windows format PATH printed by
16363         # mingw gcc, but we are running on Cygwin. Gcc prints its search
16364         # path with ; separators, and with drive letters. We can handle the
16365         # drive letters (cygwin fileutils understands them), so leave them,
16366         # especially as we might pass files found there to a mingw objdump,
16367         # which wouldn't understand a cygwinified path. Ahh.
16368         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16369       else
16370         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16371       fi
16372       ;;
16373     pw32*)
16374       # pw32 DLLs use 'pw' prefix rather than 'lib'
16375       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16376       ;;
16377     esac
16378     ;;
16379
16380   *)
16381     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16382     ;;
16383   esac
16384   dynamic_linker='Win32 ld.exe'
16385   # FIXME: first we should search . and the directory the executable is in
16386   shlibpath_var=PATH
16387   ;;
16388
16389 darwin* | rhapsody*)
16390   dynamic_linker="$host_os dyld"
16391   version_type=darwin
16392   need_lib_prefix=no
16393   need_version=no
16394   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16395   soname_spec='${libname}${release}${major}$shared_ext'
16396   shlibpath_overrides_runpath=yes
16397   shlibpath_var=DYLD_LIBRARY_PATH
16398   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16399   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16400   if test "$GCC" = yes; then
16401     sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
16402   else
16403     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
16404   fi
16405   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16406   ;;
16407
16408 dgux*)
16409   version_type=linux
16410   need_lib_prefix=no
16411   need_version=no
16412   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16413   soname_spec='${libname}${release}${shared_ext}$major'
16414   shlibpath_var=LD_LIBRARY_PATH
16415   ;;
16416
16417 freebsd1*)
16418   dynamic_linker=no
16419   ;;
16420
16421 freebsd* | dragonfly*)
16422   # DragonFly does not have aout.  When/if they implement a new
16423   # versioning mechanism, adjust this.
16424   if test -x /usr/bin/objformat; then
16425     objformat=`/usr/bin/objformat`
16426   else
16427     case $host_os in
16428     freebsd[123]*) objformat=aout ;;
16429     *) objformat=elf ;;
16430     esac
16431   fi
16432   version_type=freebsd-$objformat
16433   case $version_type in
16434     freebsd-elf*)
16435       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16436       need_version=no
16437       need_lib_prefix=no
16438       ;;
16439     freebsd-*)
16440       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16441       need_version=yes
16442       ;;
16443   esac
16444   shlibpath_var=LD_LIBRARY_PATH
16445   case $host_os in
16446   freebsd2*)
16447     shlibpath_overrides_runpath=yes
16448     ;;
16449   freebsd3.[01]* | freebsdelf3.[01]*)
16450     shlibpath_overrides_runpath=yes
16451     hardcode_into_libs=yes
16452     ;;
16453   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16454   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16455     shlibpath_overrides_runpath=no
16456     hardcode_into_libs=yes
16457     ;;
16458   freebsd*) # from 4.6 on
16459     shlibpath_overrides_runpath=yes
16460     hardcode_into_libs=yes
16461     ;;
16462   esac
16463   ;;
16464
16465 gnu*)
16466   version_type=linux
16467   need_lib_prefix=no
16468   need_version=no
16469   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16470   soname_spec='${libname}${release}${shared_ext}$major'
16471   shlibpath_var=LD_LIBRARY_PATH
16472   hardcode_into_libs=yes
16473   ;;
16474
16475 hpux9* | hpux10* | hpux11*)
16476   # Give a soname corresponding to the major version so that dld.sl refuses to
16477   # link against other versions.
16478   version_type=sunos
16479   need_lib_prefix=no
16480   need_version=no
16481   case $host_cpu in
16482   ia64*)
16483     shrext_cmds='.so'
16484     hardcode_into_libs=yes
16485     dynamic_linker="$host_os dld.so"
16486     shlibpath_var=LD_LIBRARY_PATH
16487     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16488     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16489     soname_spec='${libname}${release}${shared_ext}$major'
16490     if test "X$HPUX_IA64_MODE" = X32; then
16491       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16492     else
16493       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16494     fi
16495     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16496     ;;
16497    hppa*64*)
16498      shrext_cmds='.sl'
16499      hardcode_into_libs=yes
16500      dynamic_linker="$host_os dld.sl"
16501      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16502      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16503      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16504      soname_spec='${libname}${release}${shared_ext}$major'
16505      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16506      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16507      ;;
16508    *)
16509     shrext_cmds='.sl'
16510     dynamic_linker="$host_os dld.sl"
16511     shlibpath_var=SHLIB_PATH
16512     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16513     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16514     soname_spec='${libname}${release}${shared_ext}$major'
16515     ;;
16516   esac
16517   # HP-UX runs *really* slowly unless shared libraries are mode 555.
16518   postinstall_cmds='chmod 555 $lib'
16519   ;;
16520
16521 interix3*)
16522   version_type=linux
16523   need_lib_prefix=no
16524   need_version=no
16525   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16526   soname_spec='${libname}${release}${shared_ext}$major'
16527   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16528   shlibpath_var=LD_LIBRARY_PATH
16529   shlibpath_overrides_runpath=no
16530   hardcode_into_libs=yes
16531   ;;
16532
16533 irix5* | irix6* | nonstopux*)
16534   case $host_os in
16535     nonstopux*) version_type=nonstopux ;;
16536     *)
16537         if test "$lt_cv_prog_gnu_ld" = yes; then
16538                 version_type=linux
16539         else
16540                 version_type=irix
16541         fi ;;
16542   esac
16543   need_lib_prefix=no
16544   need_version=no
16545   soname_spec='${libname}${release}${shared_ext}$major'
16546   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16547   case $host_os in
16548   irix5* | nonstopux*)
16549     libsuff= shlibsuff=
16550     ;;
16551   *)
16552     case $LD in # libtool.m4 will add one of these switches to LD
16553     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16554       libsuff= shlibsuff= libmagic=32-bit;;
16555     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16556       libsuff=32 shlibsuff=N32 libmagic=N32;;
16557     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16558       libsuff=64 shlibsuff=64 libmagic=64-bit;;
16559     *) libsuff= shlibsuff= libmagic=never-match;;
16560     esac
16561     ;;
16562   esac
16563   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16564   shlibpath_overrides_runpath=no
16565   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16566   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16567   hardcode_into_libs=yes
16568   ;;
16569
16570 # No shared lib support for Linux oldld, aout, or coff.
16571 linux*oldld* | linux*aout* | linux*coff*)
16572   dynamic_linker=no
16573   ;;
16574
16575 # This must be Linux ELF.
16576 linux* | k*bsd*-gnu)
16577   version_type=linux
16578   need_lib_prefix=no
16579   need_version=no
16580   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16581   soname_spec='${libname}${release}${shared_ext}$major'
16582   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16583   shlibpath_var=LD_LIBRARY_PATH
16584   shlibpath_overrides_runpath=no
16585   # This implies no fast_install, which is unacceptable.
16586   # Some rework will be needed to allow for fast_install
16587   # before this can be enabled.
16588   hardcode_into_libs=yes
16589
16590   # Append ld.so.conf contents to the search path
16591   if test -f /etc/ld.so.conf; then
16592     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,        ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
16593     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16594   fi
16595
16596   # We used to test for /lib/ld.so.1 and disable shared libraries on
16597   # powerpc, because MkLinux only supported shared libraries with the
16598   # GNU dynamic linker.  Since this was broken with cross compilers,
16599   # most powerpc-linux boxes support dynamic linking these days and
16600   # people can always --disable-shared, the test was removed, and we
16601   # assume the GNU/Linux dynamic linker is in use.
16602   dynamic_linker='GNU/Linux ld.so'
16603   ;;
16604
16605 netbsdelf*-gnu)
16606   version_type=linux
16607   need_lib_prefix=no
16608   need_version=no
16609   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16610   soname_spec='${libname}${release}${shared_ext}$major'
16611   shlibpath_var=LD_LIBRARY_PATH
16612   shlibpath_overrides_runpath=no
16613   hardcode_into_libs=yes
16614   dynamic_linker='NetBSD ld.elf_so'
16615   ;;
16616
16617 netbsd*)
16618   version_type=sunos
16619   need_lib_prefix=no
16620   need_version=no
16621   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16622     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16623     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16624     dynamic_linker='NetBSD (a.out) ld.so'
16625   else
16626     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16627     soname_spec='${libname}${release}${shared_ext}$major'
16628     dynamic_linker='NetBSD ld.elf_so'
16629   fi
16630   shlibpath_var=LD_LIBRARY_PATH
16631   shlibpath_overrides_runpath=yes
16632   hardcode_into_libs=yes
16633   ;;
16634
16635 newsos6)
16636   version_type=linux
16637   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16638   shlibpath_var=LD_LIBRARY_PATH
16639   shlibpath_overrides_runpath=yes
16640   ;;
16641
16642 nto-qnx*)
16643   version_type=linux
16644   need_lib_prefix=no
16645   need_version=no
16646   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16647   soname_spec='${libname}${release}${shared_ext}$major'
16648   shlibpath_var=LD_LIBRARY_PATH
16649   shlibpath_overrides_runpath=yes
16650   ;;
16651
16652 openbsd*)
16653   version_type=sunos
16654   sys_lib_dlsearch_path_spec="/usr/lib"
16655   need_lib_prefix=no
16656   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16657   case $host_os in
16658     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16659     *)                         need_version=no  ;;
16660   esac
16661   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16662   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16663   shlibpath_var=LD_LIBRARY_PATH
16664   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16665     case $host_os in
16666       openbsd2.[89] | openbsd2.[89].*)
16667         shlibpath_overrides_runpath=no
16668         ;;
16669       *)
16670         shlibpath_overrides_runpath=yes
16671         ;;
16672       esac
16673   else
16674     shlibpath_overrides_runpath=yes
16675   fi
16676   ;;
16677
16678 os2*)
16679   libname_spec='$name'
16680   shrext_cmds=".dll"
16681   need_lib_prefix=no
16682   library_names_spec='$libname${shared_ext} $libname.a'
16683   dynamic_linker='OS/2 ld.exe'
16684   shlibpath_var=LIBPATH
16685   ;;
16686
16687 osf3* | osf4* | osf5*)
16688   version_type=osf
16689   need_lib_prefix=no
16690   need_version=no
16691   soname_spec='${libname}${release}${shared_ext}$major'
16692   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16693   shlibpath_var=LD_LIBRARY_PATH
16694   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16695   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16696   ;;
16697
16698 solaris*)
16699   version_type=linux
16700   need_lib_prefix=no
16701   need_version=no
16702   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16703   soname_spec='${libname}${release}${shared_ext}$major'
16704   shlibpath_var=LD_LIBRARY_PATH
16705   shlibpath_overrides_runpath=yes
16706   hardcode_into_libs=yes
16707   # ldd complains unless libraries are executable
16708   postinstall_cmds='chmod +x $lib'
16709   ;;
16710
16711 sunos4*)
16712   version_type=sunos
16713   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16714   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16715   shlibpath_var=LD_LIBRARY_PATH
16716   shlibpath_overrides_runpath=yes
16717   if test "$with_gnu_ld" = yes; then
16718     need_lib_prefix=no
16719   fi
16720   need_version=yes
16721   ;;
16722
16723 sysv4 | sysv4.3*)
16724   version_type=linux
16725   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16726   soname_spec='${libname}${release}${shared_ext}$major'
16727   shlibpath_var=LD_LIBRARY_PATH
16728   case $host_vendor in
16729     sni)
16730       shlibpath_overrides_runpath=no
16731       need_lib_prefix=no
16732       export_dynamic_flag_spec='${wl}-Blargedynsym'
16733       runpath_var=LD_RUN_PATH
16734       ;;
16735     siemens)
16736       need_lib_prefix=no
16737       ;;
16738     motorola)
16739       need_lib_prefix=no
16740       need_version=no
16741       shlibpath_overrides_runpath=no
16742       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16743       ;;
16744   esac
16745   ;;
16746
16747 sysv4*MP*)
16748   if test -d /usr/nec ;then
16749     version_type=linux
16750     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16751     soname_spec='$libname${shared_ext}.$major'
16752     shlibpath_var=LD_LIBRARY_PATH
16753   fi
16754   ;;
16755
16756 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16757   version_type=freebsd-elf
16758   need_lib_prefix=no
16759   need_version=no
16760   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16761   soname_spec='${libname}${release}${shared_ext}$major'
16762   shlibpath_var=LD_LIBRARY_PATH
16763   hardcode_into_libs=yes
16764   if test "$with_gnu_ld" = yes; then
16765     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16766     shlibpath_overrides_runpath=no
16767   else
16768     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16769     shlibpath_overrides_runpath=yes
16770     case $host_os in
16771       sco3.2v5*)
16772         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16773         ;;
16774     esac
16775   fi
16776   sys_lib_dlsearch_path_spec='/usr/lib'
16777   ;;
16778
16779 uts4*)
16780   version_type=linux
16781   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16782   soname_spec='${libname}${release}${shared_ext}$major'
16783   shlibpath_var=LD_LIBRARY_PATH
16784   ;;
16785
16786 *)
16787   dynamic_linker=no
16788   ;;
16789 esac
16790 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16791 echo "${ECHO_T}$dynamic_linker" >&6; }
16792 test "$dynamic_linker" = no && can_build_shared=no
16793
16794 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16795 if test "$GCC" = yes; then
16796   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16797 fi
16798
16799 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16800 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
16801 hardcode_action_F77=
16802 if test -n "$hardcode_libdir_flag_spec_F77" || \
16803    test -n "$runpath_var_F77" || \
16804    test "X$hardcode_automatic_F77" = "Xyes" ; then
16805
16806   # We can hardcode non-existant directories.
16807   if test "$hardcode_direct_F77" != no &&
16808      # If the only mechanism to avoid hardcoding is shlibpath_var, we
16809      # have to relink, otherwise we might link with an installed library
16810      # when we should be linking with a yet-to-be-installed one
16811      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
16812      test "$hardcode_minus_L_F77" != no; then
16813     # Linking always hardcodes the temporary library directory.
16814     hardcode_action_F77=relink
16815   else
16816     # We can link without hardcoding, and we can hardcode nonexisting dirs.
16817     hardcode_action_F77=immediate
16818   fi
16819 else
16820   # We cannot hardcode anything, or else we can only hardcode existing
16821   # directories.
16822   hardcode_action_F77=unsupported
16823 fi
16824 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
16825 echo "${ECHO_T}$hardcode_action_F77" >&6; }
16826
16827 if test "$hardcode_action_F77" = relink; then
16828   # Fast installation is not supported
16829   enable_fast_install=no
16830 elif test "$shlibpath_overrides_runpath" = yes ||
16831      test "$enable_shared" = no; then
16832   # Fast installation is not necessary
16833   enable_fast_install=needless
16834 fi
16835
16836
16837 # The else clause should only fire when bootstrapping the
16838 # libtool distribution, otherwise you forgot to ship ltmain.sh
16839 # with your package, and you will get complaints that there are
16840 # no rules to generate ltmain.sh.
16841 if test -f "$ltmain"; then
16842   # See if we are running on zsh, and set the options which allow our commands through
16843   # without removal of \ escapes.
16844   if test -n "${ZSH_VERSION+set}" ; then
16845     setopt NO_GLOB_SUBST
16846   fi
16847   # Now quote all the things that may contain metacharacters while being
16848   # careful not to overquote the AC_SUBSTed values.  We take copies of the
16849   # variables and quote the copies for generation of the libtool script.
16850   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
16851     SED SHELL STRIP \
16852     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
16853     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
16854     deplibs_check_method reload_flag reload_cmds need_locks \
16855     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
16856     lt_cv_sys_global_symbol_to_c_name_address \
16857     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
16858     old_postinstall_cmds old_postuninstall_cmds \
16859     compiler_F77 \
16860     CC_F77 \
16861     LD_F77 \
16862     lt_prog_compiler_wl_F77 \
16863     lt_prog_compiler_pic_F77 \
16864     lt_prog_compiler_static_F77 \
16865     lt_prog_compiler_no_builtin_flag_F77 \
16866     export_dynamic_flag_spec_F77 \
16867     thread_safe_flag_spec_F77 \
16868     whole_archive_flag_spec_F77 \
16869     enable_shared_with_static_runtimes_F77 \
16870     old_archive_cmds_F77 \
16871     old_archive_from_new_cmds_F77 \
16872     predep_objects_F77 \
16873     postdep_objects_F77 \
16874     predeps_F77 \
16875     postdeps_F77 \
16876     compiler_lib_search_path_F77 \
16877     archive_cmds_F77 \
16878     archive_expsym_cmds_F77 \
16879     postinstall_cmds_F77 \
16880     postuninstall_cmds_F77 \
16881     old_archive_from_expsyms_cmds_F77 \
16882     allow_undefined_flag_F77 \
16883     no_undefined_flag_F77 \
16884     export_symbols_cmds_F77 \
16885     hardcode_libdir_flag_spec_F77 \
16886     hardcode_libdir_flag_spec_ld_F77 \
16887     hardcode_libdir_separator_F77 \
16888     hardcode_automatic_F77 \
16889     module_cmds_F77 \
16890     module_expsym_cmds_F77 \
16891     lt_cv_prog_compiler_c_o_F77 \
16892     exclude_expsyms_F77 \
16893     include_expsyms_F77; do
16894
16895     case $var in
16896     old_archive_cmds_F77 | \
16897     old_archive_from_new_cmds_F77 | \
16898     archive_cmds_F77 | \
16899     archive_expsym_cmds_F77 | \
16900     module_cmds_F77 | \
16901     module_expsym_cmds_F77 | \
16902     old_archive_from_expsyms_cmds_F77 | \
16903     export_symbols_cmds_F77 | \
16904     extract_expsyms_cmds | reload_cmds | finish_cmds | \
16905     postinstall_cmds | postuninstall_cmds | \
16906     old_postinstall_cmds | old_postuninstall_cmds | \
16907     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
16908       # Double-quote double-evaled strings.
16909       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
16910       ;;
16911     *)
16912       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
16913       ;;
16914     esac
16915   done
16916
16917   case $lt_echo in
16918   *'\$0 --fallback-echo"')
16919     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
16920     ;;
16921   esac
16922
16923 cfgfile="$ofile"
16924
16925   cat <<__EOF__ >> "$cfgfile"
16926 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
16927
16928 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16929
16930 # Shell to use when invoking shell scripts.
16931 SHELL=$lt_SHELL
16932
16933 # Whether or not to build shared libraries.
16934 build_libtool_libs=$enable_shared
16935
16936 # Whether or not to build static libraries.
16937 build_old_libs=$enable_static
16938
16939 # Whether or not to add -lc for building shared libraries.
16940 build_libtool_need_lc=$archive_cmds_need_lc_F77
16941
16942 # Whether or not to disallow shared libs when runtime libs are static
16943 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
16944
16945 # Whether or not to optimize for fast installation.
16946 fast_install=$enable_fast_install
16947
16948 # The host system.
16949 host_alias=$host_alias
16950 host=$host
16951 host_os=$host_os
16952
16953 # The build system.
16954 build_alias=$build_alias
16955 build=$build
16956 build_os=$build_os
16957
16958 # An echo program that does not interpret backslashes.
16959 echo=$lt_echo
16960
16961 # The archiver.
16962 AR=$lt_AR
16963 AR_FLAGS=$lt_AR_FLAGS
16964
16965 # A C compiler.
16966 LTCC=$lt_LTCC
16967
16968 # LTCC compiler flags.
16969 LTCFLAGS=$lt_LTCFLAGS
16970
16971 # A language-specific compiler.
16972 CC=$lt_compiler_F77
16973
16974 # Is the compiler the GNU C compiler?
16975 with_gcc=$GCC_F77
16976
16977 # An ERE matcher.
16978 EGREP=$lt_EGREP
16979
16980 # The linker used to build libraries.
16981 LD=$lt_LD_F77
16982
16983 # Whether we need hard or soft links.
16984 LN_S=$lt_LN_S
16985
16986 # A BSD-compatible nm program.
16987 NM=$lt_NM
16988
16989 # A symbol stripping program
16990 STRIP=$lt_STRIP
16991
16992 # Used to examine libraries when file_magic_cmd begins "file"
16993 MAGIC_CMD=$MAGIC_CMD
16994
16995 # Used on cygwin: DLL creation program.
16996 DLLTOOL="$DLLTOOL"
16997
16998 # Used on cygwin: object dumper.
16999 OBJDUMP="$OBJDUMP"
17000
17001 # Used on cygwin: assembler.
17002 AS="$AS"
17003
17004 # The name of the directory that contains temporary libtool files.
17005 objdir=$objdir
17006
17007 # How to create reloadable object files.
17008 reload_flag=$lt_reload_flag
17009 reload_cmds=$lt_reload_cmds
17010
17011 # How to pass a linker flag through the compiler.
17012 wl=$lt_lt_prog_compiler_wl_F77
17013
17014 # Object file suffix (normally "o").
17015 objext="$ac_objext"
17016
17017 # Old archive suffix (normally "a").
17018 libext="$libext"
17019
17020 # Shared library suffix (normally ".so").
17021 shrext_cmds='$shrext_cmds'
17022
17023 # Executable file suffix (normally "").
17024 exeext="$exeext"
17025
17026 # Additional compiler flags for building library objects.
17027 pic_flag=$lt_lt_prog_compiler_pic_F77
17028 pic_mode=$pic_mode
17029
17030 # What is the maximum length of a command?
17031 max_cmd_len=$lt_cv_sys_max_cmd_len
17032
17033 # Does compiler simultaneously support -c and -o options?
17034 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
17035
17036 # Must we lock files when doing compilation?
17037 need_locks=$lt_need_locks
17038
17039 # Do we need the lib prefix for modules?
17040 need_lib_prefix=$need_lib_prefix
17041
17042 # Do we need a version for libraries?
17043 need_version=$need_version
17044
17045 # Whether dlopen is supported.
17046 dlopen_support=$enable_dlopen
17047
17048 # Whether dlopen of programs is supported.
17049 dlopen_self=$enable_dlopen_self
17050
17051 # Whether dlopen of statically linked programs is supported.
17052 dlopen_self_static=$enable_dlopen_self_static
17053
17054 # Compiler flag to prevent dynamic linking.
17055 link_static_flag=$lt_lt_prog_compiler_static_F77
17056
17057 # Compiler flag to turn off builtin functions.
17058 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
17059
17060 # Compiler flag to allow reflexive dlopens.
17061 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
17062
17063 # Compiler flag to generate shared objects directly from archives.
17064 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
17065
17066 # Compiler flag to generate thread-safe objects.
17067 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
17068
17069 # Library versioning type.
17070 version_type=$version_type
17071
17072 # Format of library name prefix.
17073 libname_spec=$lt_libname_spec
17074
17075 # List of archive names.  First name is the real one, the rest are links.
17076 # The last name is the one that the linker finds with -lNAME.
17077 library_names_spec=$lt_library_names_spec
17078
17079 # The coded name of the library, if different from the real name.
17080 soname_spec=$lt_soname_spec
17081
17082 # Commands used to build and install an old-style archive.
17083 RANLIB=$lt_RANLIB
17084 old_archive_cmds=$lt_old_archive_cmds_F77
17085 old_postinstall_cmds=$lt_old_postinstall_cmds
17086 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17087
17088 # Create an old-style archive from a shared archive.
17089 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
17090
17091 # Create a temporary old-style archive to link instead of a shared archive.
17092 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
17093
17094 # Commands used to build and install a shared archive.
17095 archive_cmds=$lt_archive_cmds_F77
17096 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
17097 postinstall_cmds=$lt_postinstall_cmds
17098 postuninstall_cmds=$lt_postuninstall_cmds
17099
17100 # Commands used to build a loadable module (assumed same as above if empty)
17101 module_cmds=$lt_module_cmds_F77
17102 module_expsym_cmds=$lt_module_expsym_cmds_F77
17103
17104 # Commands to strip libraries.
17105 old_striplib=$lt_old_striplib
17106 striplib=$lt_striplib
17107
17108 # Dependencies to place before the objects being linked to create a
17109 # shared library.
17110 predep_objects=$lt_predep_objects_F77
17111
17112 # Dependencies to place after the objects being linked to create a
17113 # shared library.
17114 postdep_objects=$lt_postdep_objects_F77
17115
17116 # Dependencies to place before the objects being linked to create a
17117 # shared library.
17118 predeps=$lt_predeps_F77
17119
17120 # Dependencies to place after the objects being linked to create a
17121 # shared library.
17122 postdeps=$lt_postdeps_F77
17123
17124 # The library search path used internally by the compiler when linking
17125 # a shared library.
17126 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
17127
17128 # Method to check whether dependent libraries are shared objects.
17129 deplibs_check_method=$lt_deplibs_check_method
17130
17131 # Command to use when deplibs_check_method == file_magic.
17132 file_magic_cmd=$lt_file_magic_cmd
17133
17134 # Flag that allows shared libraries with undefined symbols to be built.
17135 allow_undefined_flag=$lt_allow_undefined_flag_F77
17136
17137 # Flag that forces no undefined symbols.
17138 no_undefined_flag=$lt_no_undefined_flag_F77
17139
17140 # Commands used to finish a libtool library installation in a directory.
17141 finish_cmds=$lt_finish_cmds
17142
17143 # Same as above, but a single script fragment to be evaled but not shown.
17144 finish_eval=$lt_finish_eval
17145
17146 # Take the output of nm and produce a listing of raw symbols and C names.
17147 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17148
17149 # Transform the output of nm in a proper C declaration
17150 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17151
17152 # Transform the output of nm in a C name address pair
17153 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17154
17155 # This is the shared library runtime path variable.
17156 runpath_var=$runpath_var
17157
17158 # This is the shared library path variable.
17159 shlibpath_var=$shlibpath_var
17160
17161 # Is shlibpath searched before the hard-coded library search path?
17162 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17163
17164 # How to hardcode a shared library path into an executable.
17165 hardcode_action=$hardcode_action_F77
17166
17167 # Whether we should hardcode library paths into libraries.
17168 hardcode_into_libs=$hardcode_into_libs
17169
17170 # Flag to hardcode \$libdir into a binary during linking.
17171 # This must work even if \$libdir does not exist.
17172 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
17173
17174 # If ld is used when linking, flag to hardcode \$libdir into
17175 # a binary during linking. This must work even if \$libdir does
17176 # not exist.
17177 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
17178
17179 # Whether we need a single -rpath flag with a separated argument.
17180 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
17181
17182 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17183 # resulting binary.
17184 hardcode_direct=$hardcode_direct_F77
17185
17186 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17187 # resulting binary.
17188 hardcode_minus_L=$hardcode_minus_L_F77
17189
17190 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17191 # the resulting binary.
17192 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
17193
17194 # Set to yes if building a shared library automatically hardcodes DIR into the library
17195 # and all subsequent libraries and executables linked against it.
17196 hardcode_automatic=$hardcode_automatic_F77
17197
17198 # Variables whose values should be saved in libtool wrapper scripts and
17199 # restored at relink time.
17200 variables_saved_for_relink="$variables_saved_for_relink"
17201
17202 # Whether libtool must link a program against all its dependency libraries.
17203 link_all_deplibs=$link_all_deplibs_F77
17204
17205 # Compile-time system search path for libraries
17206 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17207
17208 # Run-time system search path for libraries
17209 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17210
17211 # Fix the shell variable \$srcfile for the compiler.
17212 fix_srcfile_path="$fix_srcfile_path_F77"
17213
17214 # Set to yes if exported symbols are required.
17215 always_export_symbols=$always_export_symbols_F77
17216
17217 # The commands to list exported symbols.
17218 export_symbols_cmds=$lt_export_symbols_cmds_F77
17219
17220 # The commands to extract the exported symbol list from a shared archive.
17221 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17222
17223 # Symbols that should not be listed in the preloaded symbols.
17224 exclude_expsyms=$lt_exclude_expsyms_F77
17225
17226 # Symbols that must always be exported.
17227 include_expsyms=$lt_include_expsyms_F77
17228
17229 # ### END LIBTOOL TAG CONFIG: $tagname
17230
17231 __EOF__
17232
17233
17234 else
17235   # If there is no Makefile yet, we rely on a make rule to execute
17236   # `config.status --recheck' to rerun these tests and create the
17237   # libtool script then.
17238   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
17239   if test -f "$ltmain_in"; then
17240     test -f Makefile && make "$ltmain"
17241   fi
17242 fi
17243
17244
17245 ac_ext=c
17246 ac_cpp='$CPP $CPPFLAGS'
17247 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17248 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17249 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17250
17251 CC="$lt_save_CC"
17252
17253         else
17254           tagname=""
17255         fi
17256         ;;
17257
17258       GCJ)
17259         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
17260           
17261
17262 # Source file extension for Java test sources.
17263 ac_ext=java
17264
17265 # Object file extension for compiled Java test sources.
17266 objext=o
17267 objext_GCJ=$objext
17268
17269 # Code to be used in simple compile tests
17270 lt_simple_compile_test_code="class foo {}\n"
17271
17272 # Code to be used in simple link tests
17273 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
17274
17275 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
17276
17277 # If no C compiler was specified, use CC.
17278 LTCC=${LTCC-"$CC"}
17279
17280 # If no C compiler flags were specified, use CFLAGS.
17281 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
17282
17283 # Allow CC to be a program name with arguments.
17284 compiler=$CC
17285
17286
17287 # save warnings/boilerplate of simple test code
17288 ac_outfile=conftest.$ac_objext
17289 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
17290 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17291 _lt_compiler_boilerplate=`cat conftest.err`
17292 $rm conftest*
17293
17294 ac_outfile=conftest.$ac_objext
17295 printf "$lt_simple_link_test_code" >conftest.$ac_ext
17296 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17297 _lt_linker_boilerplate=`cat conftest.err`
17298 $rm conftest*
17299
17300
17301 # Allow CC to be a program name with arguments.
17302 lt_save_CC="$CC"
17303 CC=${GCJ-"gcj"}
17304 compiler=$CC
17305 compiler_GCJ=$CC
17306 for cc_temp in $compiler""; do
17307   case $cc_temp in
17308     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17309     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17310     \-*) ;;
17311     *) break;;
17312   esac
17313 done
17314 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17315
17316
17317 # GCJ did not exist at the time GCC didn't implicitly link libc in.
17318 archive_cmds_need_lc_GCJ=no
17319
17320 old_archive_cmds_GCJ=$old_archive_cmds
17321
17322 ## CAVEAT EMPTOR:
17323 ## There is no encapsulation within the following macros, do not change
17324 ## the running order or otherwise move them around unless you know exactly
17325 ## what you are doing...
17326
17327 lt_prog_compiler_no_builtin_flag_GCJ=
17328
17329 if test "$GCC" = yes; then
17330   lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
17331
17332   
17333 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
17334 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
17335 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
17336   echo $ECHO_N "(cached) $ECHO_C" >&6
17337 else
17338   lt_cv_prog_compiler_rtti_exceptions=no
17339   ac_outfile=conftest.$ac_objext
17340    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17341    lt_compiler_flag="-fno-rtti -fno-exceptions"
17342    # Insert the option either (1) after the last *FLAGS variable, or
17343    # (2) before a word containing "conftest.", or (3) at the end.
17344    # Note that $ac_compile itself does not contain backslashes and begins
17345    # with a dollar sign (not a hyphen), so the echo should work correctly.
17346    # The option is referenced via a variable to avoid confusing sed.
17347    lt_compile=`echo "$ac_compile" | $SED \
17348    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17349    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17350    -e 's:$: $lt_compiler_flag:'`
17351    (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
17352    (eval "$lt_compile" 2>conftest.err)
17353    ac_status=$?
17354    cat conftest.err >&5
17355    echo "$as_me:__oline__: \$? = $ac_status" >&5
17356    if (exit $ac_status) && test -s "$ac_outfile"; then
17357      # The compiler can only warn and ignore the option if not recognized
17358      # So say no if there are warnings other than the usual output.
17359      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17360      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17361      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17362        lt_cv_prog_compiler_rtti_exceptions=yes
17363      fi
17364    fi
17365    $rm conftest*
17366
17367 fi
17368 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
17369 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
17370
17371 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
17372     lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
17373 else
17374     :
17375 fi
17376
17377 fi
17378
17379 lt_prog_compiler_wl_GCJ=
17380 lt_prog_compiler_pic_GCJ=
17381 lt_prog_compiler_static_GCJ=
17382
17383 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
17384 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
17385  
17386   if test "$GCC" = yes; then
17387     lt_prog_compiler_wl_GCJ='-Wl,'
17388     lt_prog_compiler_static_GCJ='-static'
17389
17390     case $host_os in
17391       aix*)
17392       # All AIX code is PIC.
17393       if test "$host_cpu" = ia64; then
17394         # AIX 5 now supports IA64 processor
17395         lt_prog_compiler_static_GCJ='-Bstatic'
17396       fi
17397       ;;
17398
17399     amigaos*)
17400       # FIXME: we need at least 68020 code to build shared libraries, but
17401       # adding the `-m68020' flag to GCC prevents building anything better,
17402       # like `-m68040'.
17403       lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
17404       ;;
17405
17406     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
17407       # PIC is the default for these OSes.
17408       ;;
17409
17410     mingw* | pw32* | os2*)
17411       # This hack is so that the source file can tell whether it is being
17412       # built for inclusion in a dll (and should export symbols for example).
17413       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
17414       ;;
17415
17416     darwin* | rhapsody*)
17417       # PIC is the default on this platform
17418       # Common symbols not allowed in MH_DYLIB files
17419       lt_prog_compiler_pic_GCJ='-fno-common'
17420       ;;
17421
17422     interix3*)
17423       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
17424       # Instead, we relocate shared libraries at runtime.
17425       ;;
17426
17427     msdosdjgpp*)
17428       # Just because we use GCC doesn't mean we suddenly get shared libraries
17429       # on systems that don't support them.
17430       lt_prog_compiler_can_build_shared_GCJ=no
17431       enable_shared=no
17432       ;;
17433
17434     sysv4*MP*)
17435       if test -d /usr/nec; then
17436         lt_prog_compiler_pic_GCJ=-Kconform_pic
17437       fi
17438       ;;
17439
17440     hpux*)
17441       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17442       # not for PA HP-UX.
17443       case $host_cpu in
17444       hppa*64*|ia64*)
17445         # +Z the default
17446         ;;
17447       *)
17448         lt_prog_compiler_pic_GCJ='-fPIC'
17449         ;;
17450       esac
17451       ;;
17452
17453     *)
17454       lt_prog_compiler_pic_GCJ='-fPIC'
17455       ;;
17456     esac
17457   else
17458     # PORTME Check for flag to pass linker flags through the system compiler.
17459     case $host_os in
17460     aix*)
17461       lt_prog_compiler_wl_GCJ='-Wl,'
17462       if test "$host_cpu" = ia64; then
17463         # AIX 5 now supports IA64 processor
17464         lt_prog_compiler_static_GCJ='-Bstatic'
17465       else
17466         lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
17467       fi
17468       ;;
17469       darwin*)
17470         # PIC is the default on this platform
17471         # Common symbols not allowed in MH_DYLIB files
17472        case $cc_basename in
17473          xlc*)
17474          lt_prog_compiler_pic_GCJ='-qnocommon'
17475          lt_prog_compiler_wl_GCJ='-Wl,'
17476          ;;
17477        esac
17478        ;;
17479
17480     mingw* | pw32* | os2*)
17481       # This hack is so that the source file can tell whether it is being
17482       # built for inclusion in a dll (and should export symbols for example).
17483       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
17484       ;;
17485
17486     hpux9* | hpux10* | hpux11*)
17487       lt_prog_compiler_wl_GCJ='-Wl,'
17488       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17489       # not for PA HP-UX.
17490       case $host_cpu in
17491       hppa*64*|ia64*)
17492         # +Z the default
17493         ;;
17494       *)
17495         lt_prog_compiler_pic_GCJ='+Z'
17496         ;;
17497       esac
17498       # Is there a better lt_prog_compiler_static that works with the bundled CC?
17499       lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
17500       ;;
17501
17502     irix5* | irix6* | nonstopux*)
17503       lt_prog_compiler_wl_GCJ='-Wl,'
17504       # PIC (with -KPIC) is the default.
17505       lt_prog_compiler_static_GCJ='-non_shared'
17506       ;;
17507
17508     newsos6)
17509       lt_prog_compiler_pic_GCJ='-KPIC'
17510       lt_prog_compiler_static_GCJ='-Bstatic'
17511       ;;
17512
17513     linux* | k*bsd*-gnu)
17514       case $cc_basename in
17515       icc* | ecc*)
17516         lt_prog_compiler_wl_GCJ='-Wl,'
17517         lt_prog_compiler_pic_GCJ='-KPIC'
17518         lt_prog_compiler_static_GCJ='-static'
17519         ;;
17520       pgcc* | pgf77* | pgf90* | pgf95*)
17521         # Portland Group compilers (*not* the Pentium gcc compiler,
17522         # which looks to be a dead project)
17523         lt_prog_compiler_wl_GCJ='-Wl,'
17524         lt_prog_compiler_pic_GCJ='-fpic'
17525         lt_prog_compiler_static_GCJ='-Bstatic'
17526         ;;
17527       ccc*)
17528         lt_prog_compiler_wl_GCJ='-Wl,'
17529         # All Alpha code is PIC.
17530         lt_prog_compiler_static_GCJ='-non_shared'
17531         ;;
17532       esac
17533       ;;
17534
17535     osf3* | osf4* | osf5*)
17536       lt_prog_compiler_wl_GCJ='-Wl,'
17537       # All OSF/1 code is PIC.
17538       lt_prog_compiler_static_GCJ='-non_shared'
17539       ;;
17540
17541     solaris*)
17542       lt_prog_compiler_pic_GCJ='-KPIC'
17543       lt_prog_compiler_static_GCJ='-Bstatic'
17544       case $cc_basename in
17545       f77* | f90* | f95*)
17546         lt_prog_compiler_wl_GCJ='-Qoption ld ';;
17547       *)
17548         lt_prog_compiler_wl_GCJ='-Wl,';;
17549       esac
17550       ;;
17551
17552     sunos4*)
17553       lt_prog_compiler_wl_GCJ='-Qoption ld '
17554       lt_prog_compiler_pic_GCJ='-PIC'
17555       lt_prog_compiler_static_GCJ='-Bstatic'
17556       ;;
17557
17558     sysv4 | sysv4.2uw2* | sysv4.3*)
17559       lt_prog_compiler_wl_GCJ='-Wl,'
17560       lt_prog_compiler_pic_GCJ='-KPIC'
17561       lt_prog_compiler_static_GCJ='-Bstatic'
17562       ;;
17563
17564     sysv4*MP*)
17565       if test -d /usr/nec ;then
17566         lt_prog_compiler_pic_GCJ='-Kconform_pic'
17567         lt_prog_compiler_static_GCJ='-Bstatic'
17568       fi
17569       ;;
17570
17571     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
17572       lt_prog_compiler_wl_GCJ='-Wl,'
17573       lt_prog_compiler_pic_GCJ='-KPIC'
17574       lt_prog_compiler_static_GCJ='-Bstatic'
17575       ;;
17576
17577     unicos*)
17578       lt_prog_compiler_wl_GCJ='-Wl,'
17579       lt_prog_compiler_can_build_shared_GCJ=no
17580       ;;
17581
17582     uts4*)
17583       lt_prog_compiler_pic_GCJ='-pic'
17584       lt_prog_compiler_static_GCJ='-Bstatic'
17585       ;;
17586
17587     *)
17588       lt_prog_compiler_can_build_shared_GCJ=no
17589       ;;
17590     esac
17591   fi
17592
17593 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
17594 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
17595
17596 #
17597 # Check to make sure the PIC flag actually works.
17598 #
17599 if test -n "$lt_prog_compiler_pic_GCJ"; then
17600   
17601 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
17602 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
17603 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
17604   echo $ECHO_N "(cached) $ECHO_C" >&6
17605 else
17606   lt_prog_compiler_pic_works_GCJ=no
17607   ac_outfile=conftest.$ac_objext
17608    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17609    lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
17610    # Insert the option either (1) after the last *FLAGS variable, or
17611    # (2) before a word containing "conftest.", or (3) at the end.
17612    # Note that $ac_compile itself does not contain backslashes and begins
17613    # with a dollar sign (not a hyphen), so the echo should work correctly.
17614    # The option is referenced via a variable to avoid confusing sed.
17615    lt_compile=`echo "$ac_compile" | $SED \
17616    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17617    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17618    -e 's:$: $lt_compiler_flag:'`
17619    (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
17620    (eval "$lt_compile" 2>conftest.err)
17621    ac_status=$?
17622    cat conftest.err >&5
17623    echo "$as_me:__oline__: \$? = $ac_status" >&5
17624    if (exit $ac_status) && test -s "$ac_outfile"; then
17625      # The compiler can only warn and ignore the option if not recognized
17626      # So say no if there are warnings other than the usual output.
17627      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17628      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17629      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17630        lt_prog_compiler_pic_works_GCJ=yes
17631      fi
17632    fi
17633    $rm conftest*
17634
17635 fi
17636 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
17637 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
17638
17639 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
17640     case $lt_prog_compiler_pic_GCJ in
17641      "" | " "*) ;;
17642      *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
17643      esac
17644 else
17645     lt_prog_compiler_pic_GCJ=
17646      lt_prog_compiler_can_build_shared_GCJ=no
17647 fi
17648
17649 fi
17650 case $host_os in
17651   # For platforms which do not support PIC, -DPIC is meaningless:
17652   *djgpp*)
17653     lt_prog_compiler_pic_GCJ=
17654     ;;
17655   *)
17656     lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
17657     ;;
17658 esac
17659
17660 #
17661 # Check to make sure the static flag actually works.
17662 #
17663 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
17664 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
17665 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
17666 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
17667   echo $ECHO_N "(cached) $ECHO_C" >&6
17668 else
17669   lt_prog_compiler_static_works_GCJ=no
17670    save_LDFLAGS="$LDFLAGS"
17671    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
17672    printf "$lt_simple_link_test_code" > conftest.$ac_ext
17673    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17674      # The linker can only warn and ignore the option if not recognized
17675      # So say no if there are warnings
17676      if test -s conftest.err; then
17677        # Append any errors to the config.log.
17678        cat conftest.err 1>&5
17679        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
17680        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17681        if diff conftest.exp conftest.er2 >/dev/null; then
17682          lt_prog_compiler_static_works_GCJ=yes
17683        fi
17684      else
17685        lt_prog_compiler_static_works_GCJ=yes
17686      fi
17687    fi
17688    $rm conftest*
17689    LDFLAGS="$save_LDFLAGS"
17690
17691 fi
17692 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
17693 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
17694
17695 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
17696     :
17697 else
17698     lt_prog_compiler_static_GCJ=
17699 fi
17700
17701
17702 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
17703 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
17704 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
17705   echo $ECHO_N "(cached) $ECHO_C" >&6
17706 else
17707   lt_cv_prog_compiler_c_o_GCJ=no
17708    $rm -r conftest 2>/dev/null
17709    mkdir conftest
17710    cd conftest
17711    mkdir out
17712    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17713
17714    lt_compiler_flag="-o out/conftest2.$ac_objext"
17715    # Insert the option either (1) after the last *FLAGS variable, or
17716    # (2) before a word containing "conftest.", or (3) at the end.
17717    # Note that $ac_compile itself does not contain backslashes and begins
17718    # with a dollar sign (not a hyphen), so the echo should work correctly.
17719    lt_compile=`echo "$ac_compile" | $SED \
17720    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17721    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17722    -e 's:$: $lt_compiler_flag:'`
17723    (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
17724    (eval "$lt_compile" 2>out/conftest.err)
17725    ac_status=$?
17726    cat out/conftest.err >&5
17727    echo "$as_me:__oline__: \$? = $ac_status" >&5
17728    if (exit $ac_status) && test -s out/conftest2.$ac_objext
17729    then
17730      # The compiler can only warn and ignore the option if not recognized
17731      # So say no if there are warnings
17732      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
17733      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17734      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17735        lt_cv_prog_compiler_c_o_GCJ=yes
17736      fi
17737    fi
17738    chmod u+w . 2>&5
17739    $rm conftest*
17740    # SGI C++ compiler will create directory out/ii_files/ for
17741    # template instantiation
17742    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
17743    $rm out/* && rmdir out
17744    cd ..
17745    rmdir conftest
17746    $rm conftest*
17747
17748 fi
17749 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
17750 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
17751
17752
17753 hard_links="nottested"
17754 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
17755   # do not overwrite the value of need_locks provided by the user
17756   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
17757 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
17758   hard_links=yes
17759   $rm conftest*
17760   ln conftest.a conftest.b 2>/dev/null && hard_links=no
17761   touch conftest.a
17762   ln conftest.a conftest.b 2>&5 || hard_links=no
17763   ln conftest.a conftest.b 2>/dev/null && hard_links=no
17764   { echo "$as_me:$LINENO: result: $hard_links" >&5
17765 echo "${ECHO_T}$hard_links" >&6; }
17766   if test "$hard_links" = no; then
17767     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17768 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17769     need_locks=warn
17770   fi
17771 else
17772   need_locks=no
17773 fi
17774
17775 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17776 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
17777
17778   runpath_var=
17779   allow_undefined_flag_GCJ=
17780   enable_shared_with_static_runtimes_GCJ=no
17781   archive_cmds_GCJ=
17782   archive_expsym_cmds_GCJ=
17783   old_archive_From_new_cmds_GCJ=
17784   old_archive_from_expsyms_cmds_GCJ=
17785   export_dynamic_flag_spec_GCJ=
17786   whole_archive_flag_spec_GCJ=
17787   thread_safe_flag_spec_GCJ=
17788   hardcode_libdir_flag_spec_GCJ=
17789   hardcode_libdir_flag_spec_ld_GCJ=
17790   hardcode_libdir_separator_GCJ=
17791   hardcode_direct_GCJ=no
17792   hardcode_minus_L_GCJ=no
17793   hardcode_shlibpath_var_GCJ=unsupported
17794   link_all_deplibs_GCJ=unknown
17795   hardcode_automatic_GCJ=no
17796   module_cmds_GCJ=
17797   module_expsym_cmds_GCJ=
17798   always_export_symbols_GCJ=no
17799   export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17800   # include_expsyms should be a list of space-separated symbols to be *always*
17801   # included in the symbol list
17802   include_expsyms_GCJ=
17803   # exclude_expsyms can be an extended regexp of symbols to exclude
17804   # it will be wrapped by ` (' and `)$', so one must not match beginning or
17805   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17806   # as well as any symbol that contains `d'.
17807   exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
17808   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17809   # platforms (ab)use it in PIC code, but their linkers get confused if
17810   # the symbol is explicitly referenced.  Since portable code cannot
17811   # rely on this symbol name, it's probably fine to never include it in
17812   # preloaded symbol tables.
17813   extract_expsyms_cmds=
17814   # Just being paranoid about ensuring that cc_basename is set.
17815   for cc_temp in $compiler""; do
17816   case $cc_temp in
17817     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17818     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17819     \-*) ;;
17820     *) break;;
17821   esac
17822 done
17823 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17824
17825   case $host_os in
17826   cygwin* | mingw* | pw32*)
17827     # FIXME: the MSVC++ port hasn't been tested in a loooong time
17828     # When not using gcc, we currently assume that we are using
17829     # Microsoft Visual C++.
17830     if test "$GCC" != yes; then
17831       with_gnu_ld=no
17832     fi
17833     ;;
17834   interix*)
17835     # we just hope/assume this is gcc and not c89 (= MSVC++)
17836     with_gnu_ld=yes
17837     ;;
17838   openbsd*)
17839     with_gnu_ld=no
17840     ;;
17841   esac
17842
17843   ld_shlibs_GCJ=yes
17844   if test "$with_gnu_ld" = yes; then
17845     # If archive_cmds runs LD, not CC, wlarc should be empty
17846     wlarc='${wl}'
17847
17848     # Set some defaults for GNU ld with shared library support. These
17849     # are reset later if shared libraries are not supported. Putting them
17850     # here allows them to be overridden if necessary.
17851     runpath_var=LD_RUN_PATH
17852     hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
17853     export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
17854     # ancient GNU ld didn't support --whole-archive et. al.
17855     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
17856         whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17857       else
17858         whole_archive_flag_spec_GCJ=
17859     fi
17860     supports_anon_versioning=no
17861     case `$LD -v 2>/dev/null` in
17862       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17863       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17864       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17865       *\ 2.11.*) ;; # other 2.11 versions
17866       *) supports_anon_versioning=yes ;;
17867     esac
17868
17869     # See if GNU ld supports shared libraries.
17870     case $host_os in
17871     aix3* | aix4* | aix5*)
17872       # On AIX/PPC, the GNU linker is very broken
17873       if test "$host_cpu" != ia64; then
17874         ld_shlibs_GCJ=no
17875         cat <<EOF 1>&2
17876
17877 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
17878 *** to be unable to reliably create shared libraries on AIX.
17879 *** Therefore, libtool is disabling shared libraries support.  If you
17880 *** really care for shared libraries, you may want to modify your PATH
17881 *** so that a non-GNU linker is found, and then restart.
17882
17883 EOF
17884       fi
17885       ;;
17886
17887     amigaos*)
17888       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)'
17889       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17890       hardcode_minus_L_GCJ=yes
17891
17892       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
17893       # that the semantics of dynamic libraries on AmigaOS, at least up
17894       # to version 4, is to share data among multiple programs linked
17895       # with the same dynamic library.  Since this doesn't match the
17896       # behavior of shared libraries on other platforms, we can't use
17897       # them.
17898       ld_shlibs_GCJ=no
17899       ;;
17900
17901     beos*)
17902       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17903         allow_undefined_flag_GCJ=unsupported
17904         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17905         # support --undefined.  This deserves some investigation.  FIXME
17906         archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17907       else
17908         ld_shlibs_GCJ=no
17909       fi
17910       ;;
17911
17912     cygwin* | mingw* | pw32*)
17913       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
17914       # as there is no search path for DLLs.
17915       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17916       allow_undefined_flag_GCJ=unsupported
17917       always_export_symbols_GCJ=no
17918       enable_shared_with_static_runtimes_GCJ=yes
17919       export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
17920
17921       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
17922         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17923         # If the export-symbols file already is a .def file (1st line
17924         # is EXPORTS), use it as is; otherwise, prepend...
17925         archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17926           cp $export_symbols $output_objdir/$soname.def;
17927         else
17928           echo EXPORTS > $output_objdir/$soname.def;
17929           cat $export_symbols >> $output_objdir/$soname.def;
17930         fi~
17931         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17932       else
17933         ld_shlibs_GCJ=no
17934       fi
17935       ;;
17936
17937     interix3*)
17938       hardcode_direct_GCJ=no
17939       hardcode_shlibpath_var_GCJ=no
17940       hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17941       export_dynamic_flag_spec_GCJ='${wl}-E'
17942       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17943       # Instead, shared libraries are loaded at an image base (0x10000000 by
17944       # default) and relocated if they conflict, which is a slow very memory
17945       # consuming and fragmenting process.  To avoid this, we pick a random,
17946       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17947       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
17948       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'
17949       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'
17950       ;;
17951
17952     linux* | k*bsd*-gnu)
17953       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17954         tmp_addflag=
17955         case $cc_basename,$host_cpu in
17956         pgcc*)                          # Portland Group C compiler
17957           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'
17958           tmp_addflag=' $pic_flag'
17959           ;;
17960         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
17961           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'
17962           tmp_addflag=' $pic_flag -Mnomain' ;;
17963         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
17964           tmp_addflag=' -i_dynamic' ;;
17965         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
17966           tmp_addflag=' -i_dynamic -nofor_main' ;;
17967         ifc* | ifort*)                  # Intel Fortran compiler
17968           tmp_addflag=' -nofor_main' ;;
17969         esac
17970         archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17971
17972         if test $supports_anon_versioning = yes; then
17973           archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
17974   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17975   $echo "local: *; };" >> $output_objdir/$libname.ver~
17976           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17977         fi
17978         link_all_deplibs_GCJ=no
17979       else
17980         ld_shlibs_GCJ=no
17981       fi
17982       ;;
17983
17984     netbsd* | netbsdelf*-gnu)
17985       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17986         archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17987         wlarc=
17988       else
17989         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17990         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17991       fi
17992       ;;
17993
17994     solaris*)
17995       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17996         ld_shlibs_GCJ=no
17997         cat <<EOF 1>&2
17998
17999 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
18000 *** create shared libraries on Solaris systems.  Therefore, libtool
18001 *** is disabling shared libraries support.  We urge you to upgrade GNU
18002 *** binutils to release 2.9.1 or newer.  Another option is to modify
18003 *** your PATH or compiler configuration so that the native linker is
18004 *** used, and then restart.
18005
18006 EOF
18007       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18008         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18009         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18010       else
18011         ld_shlibs_GCJ=no
18012       fi
18013       ;;
18014
18015     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
18016       case `$LD -v 2>&1` in
18017         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 
18018         ld_shlibs_GCJ=no
18019         cat <<_LT_EOF 1>&2
18020
18021 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
18022 *** reliably create shared libraries on SCO systems.  Therefore, libtool
18023 *** is disabling shared libraries support.  We urge you to upgrade GNU
18024 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
18025 *** your PATH or compiler configuration so that the native linker is
18026 *** used, and then restart.
18027
18028 _LT_EOF
18029         ;;
18030         *)
18031           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18032             hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
18033             archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
18034             archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
18035           else
18036             ld_shlibs_GCJ=no
18037           fi
18038         ;;
18039       esac
18040       ;;
18041
18042     sunos4*)
18043       archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18044       wlarc=
18045       hardcode_direct_GCJ=yes
18046       hardcode_shlibpath_var_GCJ=no
18047       ;;
18048
18049     *)
18050       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18051         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18052         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18053       else
18054         ld_shlibs_GCJ=no
18055       fi
18056       ;;
18057     esac
18058
18059     if test "$ld_shlibs_GCJ" = no; then
18060       runpath_var=
18061       hardcode_libdir_flag_spec_GCJ=
18062       export_dynamic_flag_spec_GCJ=
18063       whole_archive_flag_spec_GCJ=
18064     fi
18065   else
18066     # PORTME fill in a description of your system's linker (not GNU ld)
18067     case $host_os in
18068     aix3*)
18069       allow_undefined_flag_GCJ=unsupported
18070       always_export_symbols_GCJ=yes
18071       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'
18072       # Note: this linker hardcodes the directories in LIBPATH if there
18073       # are no directories specified by -L.
18074       hardcode_minus_L_GCJ=yes
18075       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
18076         # Neither direct hardcoding nor static linking is supported with a
18077         # broken collect2.
18078         hardcode_direct_GCJ=unsupported
18079       fi
18080       ;;
18081
18082     aix4* | aix5*)
18083       if test "$host_cpu" = ia64; then
18084         # On IA64, the linker does run time linking by default, so we don't
18085         # have to do anything special.
18086         aix_use_runtimelinking=no
18087         exp_sym_flag='-Bexport'
18088         no_entry_flag=""
18089       else
18090         # If we're using GNU nm, then we don't want the "-C" option.
18091         # -C means demangle to AIX nm, but means don't demangle with GNU nm
18092         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
18093           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'
18094         else
18095           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'
18096         fi
18097         aix_use_runtimelinking=no
18098
18099         # Test if we are trying to use run time linking or normal
18100         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18101         # need to do runtime linking.
18102         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
18103           for ld_flag in $LDFLAGS; do
18104           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
18105             aix_use_runtimelinking=yes
18106             break
18107           fi
18108           done
18109           ;;
18110         esac
18111
18112         exp_sym_flag='-bexport'
18113         no_entry_flag='-bnoentry'
18114       fi
18115
18116       # When large executables or shared objects are built, AIX ld can
18117       # have problems creating the table of contents.  If linking a library
18118       # or program results in "error TOC overflow" add -mminimal-toc to
18119       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
18120       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18121
18122       archive_cmds_GCJ=''
18123       hardcode_direct_GCJ=yes
18124       hardcode_libdir_separator_GCJ=':'
18125       link_all_deplibs_GCJ=yes
18126
18127       if test "$GCC" = yes; then
18128         case $host_os in aix4.[012]|aix4.[012].*)
18129         # We only want to do this on AIX 4.2 and lower, the check
18130         # below for broken collect2 doesn't work under 4.3+
18131           collect2name=`${CC} -print-prog-name=collect2`
18132           if test -f "$collect2name" && \
18133            strings "$collect2name" | grep resolve_lib_name >/dev/null
18134           then
18135           # We have reworked collect2
18136           hardcode_direct_GCJ=yes
18137           else
18138           # We have old collect2
18139           hardcode_direct_GCJ=unsupported
18140           # It fails to find uninstalled libraries when the uninstalled
18141           # path is not listed in the libpath.  Setting hardcode_minus_L
18142           # to unsupported forces relinking
18143           hardcode_minus_L_GCJ=yes
18144           hardcode_libdir_flag_spec_GCJ='-L$libdir'
18145           hardcode_libdir_separator_GCJ=
18146           fi
18147           ;;
18148         esac
18149         shared_flag='-shared'
18150         if test "$aix_use_runtimelinking" = yes; then
18151           shared_flag="$shared_flag "'${wl}-G'
18152         fi
18153       else
18154         # not using gcc
18155         if test "$host_cpu" = ia64; then
18156         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18157         # chokes on -Wl,-G. The following line is correct:
18158           shared_flag='-G'
18159         else
18160           if test "$aix_use_runtimelinking" = yes; then
18161             shared_flag='${wl}-G'
18162           else
18163             shared_flag='${wl}-bM:SRE'
18164           fi
18165         fi
18166       fi
18167
18168       # It seems that -bexpall does not export symbols beginning with
18169       # underscore (_), so it is better to generate a list of symbols to export.
18170       always_export_symbols_GCJ=yes
18171       if test "$aix_use_runtimelinking" = yes; then
18172         # Warning - without using the other runtime loading flags (-brtl),
18173         # -berok will link without error, but may produce a broken library.
18174         allow_undefined_flag_GCJ='-berok'
18175        # Determine the default libpath from the value encoded in an empty executable.
18176        cat >conftest.$ac_ext <<_ACEOF
18177 /* confdefs.h.  */
18178 _ACEOF
18179 cat confdefs.h >>conftest.$ac_ext
18180 cat >>conftest.$ac_ext <<_ACEOF
18181 /* end confdefs.h.  */
18182
18183 int
18184 main ()
18185 {
18186
18187   ;
18188   return 0;
18189 }
18190 _ACEOF
18191 rm -f conftest.$ac_objext conftest$ac_exeext
18192 if { (ac_try="$ac_link"
18193 case "(($ac_try" in
18194   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18195   *) ac_try_echo=$ac_try;;
18196 esac
18197 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18198   (eval "$ac_link") 2>conftest.er1
18199   ac_status=$?
18200   grep -v '^ *+' conftest.er1 >conftest.err
18201   rm -f conftest.er1
18202   cat conftest.err >&5
18203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18204   (exit $ac_status); } && {
18205          test -z "$ac_c_werror_flag" ||
18206          test ! -s conftest.err
18207        } && test -s conftest$ac_exeext &&
18208        $as_test_x conftest$ac_exeext; then
18209   
18210 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
18211 }'`
18212 # Check for a 64-bit object if we didn't find anything.
18213 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
18214 }'`; fi
18215 else
18216   echo "$as_me: failed program was:" >&5
18217 sed 's/^/| /' conftest.$ac_ext >&5
18218
18219         
18220 fi
18221
18222 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18223       conftest$ac_exeext conftest.$ac_ext
18224 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18225
18226        hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
18227         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"
18228        else
18229         if test "$host_cpu" = ia64; then
18230           hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
18231           allow_undefined_flag_GCJ="-z nodefs"
18232           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"
18233         else
18234          # Determine the default libpath from the value encoded in an empty executable.
18235          cat >conftest.$ac_ext <<_ACEOF
18236 /* confdefs.h.  */
18237 _ACEOF
18238 cat confdefs.h >>conftest.$ac_ext
18239 cat >>conftest.$ac_ext <<_ACEOF
18240 /* end confdefs.h.  */
18241
18242 int
18243 main ()
18244 {
18245
18246   ;
18247   return 0;
18248 }
18249 _ACEOF
18250 rm -f conftest.$ac_objext conftest$ac_exeext
18251 if { (ac_try="$ac_link"
18252 case "(($ac_try" in
18253   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18254   *) ac_try_echo=$ac_try;;
18255 esac
18256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18257   (eval "$ac_link") 2>conftest.er1
18258   ac_status=$?
18259   grep -v '^ *+' conftest.er1 >conftest.err
18260   rm -f conftest.er1
18261   cat conftest.err >&5
18262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18263   (exit $ac_status); } && {
18264          test -z "$ac_c_werror_flag" ||
18265          test ! -s conftest.err
18266        } && test -s conftest$ac_exeext &&
18267        $as_test_x conftest$ac_exeext; then
18268   
18269 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
18270 }'`
18271 # Check for a 64-bit object if we didn't find anything.
18272 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
18273 }'`; fi
18274 else
18275   echo "$as_me: failed program was:" >&5
18276 sed 's/^/| /' conftest.$ac_ext >&5
18277
18278         
18279 fi
18280
18281 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18282       conftest$ac_exeext conftest.$ac_ext
18283 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18284
18285          hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
18286           # Warning - without using the other run time loading flags,
18287           # -berok will link without error, but may produce a broken library.
18288           no_undefined_flag_GCJ=' ${wl}-bernotok'
18289           allow_undefined_flag_GCJ=' ${wl}-berok'
18290           # Exported symbols can be pulled into shared objects from archives
18291           whole_archive_flag_spec_GCJ='$convenience'
18292           archive_cmds_need_lc_GCJ=yes
18293           # This is similar to how AIX traditionally builds its shared libraries.
18294           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'
18295         fi
18296       fi
18297       ;;
18298
18299     amigaos*)
18300       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)'
18301       hardcode_libdir_flag_spec_GCJ='-L$libdir'
18302       hardcode_minus_L_GCJ=yes
18303       # see comment about different semantics on the GNU ld section
18304       ld_shlibs_GCJ=no
18305       ;;
18306
18307     bsdi[45]*)
18308       export_dynamic_flag_spec_GCJ=-rdynamic
18309       ;;
18310
18311     cygwin* | mingw* | pw32*)
18312       # When not using gcc, we currently assume that we are using
18313       # Microsoft Visual C++.
18314       # hardcode_libdir_flag_spec is actually meaningless, as there is
18315       # no search path for DLLs.
18316       hardcode_libdir_flag_spec_GCJ=' '
18317       allow_undefined_flag_GCJ=unsupported
18318       # Tell ltmain to make .lib files, not .a files.
18319       libext=lib
18320       # Tell ltmain to make .dll files, not .so files.
18321       shrext_cmds=".dll"
18322       # FIXME: Setting linknames here is a bad hack.
18323       archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
18324       # The linker will automatically build a .lib file if we build a DLL.
18325       old_archive_From_new_cmds_GCJ='true'
18326       # FIXME: Should let the user specify the lib program.
18327       old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
18328       fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
18329       enable_shared_with_static_runtimes_GCJ=yes
18330       ;;
18331
18332     darwin* | rhapsody*)
18333       case $host_os in
18334         rhapsody* | darwin1.[012])
18335          allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
18336          ;;
18337        *) # Darwin 1.3 on
18338          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
18339            allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18340          else
18341            case ${MACOSX_DEPLOYMENT_TARGET} in
18342              10.[012])
18343                allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18344                ;;
18345              10.*)
18346                allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
18347                ;;
18348            esac
18349          fi
18350          ;;
18351       esac
18352       archive_cmds_need_lc_GCJ=no
18353       hardcode_direct_GCJ=no
18354       hardcode_automatic_GCJ=yes
18355       hardcode_shlibpath_var_GCJ=unsupported
18356       whole_archive_flag_spec_GCJ=''
18357       link_all_deplibs_GCJ=yes
18358     if test "$GCC" = yes ; then
18359         output_verbose_link_cmd='echo'
18360         archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
18361       module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18362       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18363       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}'
18364       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}'
18365     else
18366       case $cc_basename in
18367         xlc*)
18368          output_verbose_link_cmd='echo'
18369          archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
18370          module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18371           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18372          archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
18373           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}'
18374           ;;
18375        *)
18376          ld_shlibs_GCJ=no
18377           ;;
18378       esac
18379     fi
18380       ;;
18381
18382     dgux*)
18383       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18384       hardcode_libdir_flag_spec_GCJ='-L$libdir'
18385       hardcode_shlibpath_var_GCJ=no
18386       ;;
18387
18388     freebsd1*)
18389       ld_shlibs_GCJ=no
18390       ;;
18391
18392     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
18393     # support.  Future versions do this automatically, but an explicit c++rt0.o
18394     # does not break anything, and helps significantly (at the cost of a little
18395     # extra space).
18396     freebsd2.2*)
18397       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
18398       hardcode_libdir_flag_spec_GCJ='-R$libdir'
18399       hardcode_direct_GCJ=yes
18400       hardcode_shlibpath_var_GCJ=no
18401       ;;
18402
18403     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
18404     freebsd2*)
18405       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18406       hardcode_direct_GCJ=yes
18407       hardcode_minus_L_GCJ=yes
18408       hardcode_shlibpath_var_GCJ=no
18409       ;;
18410
18411     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
18412     freebsd* | dragonfly*)
18413       archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
18414       hardcode_libdir_flag_spec_GCJ='-R$libdir'
18415       hardcode_direct_GCJ=yes
18416       hardcode_shlibpath_var_GCJ=no
18417       ;;
18418
18419     hpux9*)
18420       if test "$GCC" = yes; then
18421         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'
18422       else
18423         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'
18424       fi
18425       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18426       hardcode_libdir_separator_GCJ=:
18427       hardcode_direct_GCJ=yes
18428
18429       # hardcode_minus_L: Not really in the search PATH,
18430       # but as the default location of the library.
18431       hardcode_minus_L_GCJ=yes
18432       export_dynamic_flag_spec_GCJ='${wl}-E'
18433       ;;
18434
18435     hpux10*)
18436       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18437         archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18438       else
18439         archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
18440       fi
18441       if test "$with_gnu_ld" = no; then
18442         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18443         hardcode_libdir_separator_GCJ=:
18444
18445         hardcode_direct_GCJ=yes
18446         export_dynamic_flag_spec_GCJ='${wl}-E'
18447
18448         # hardcode_minus_L: Not really in the search PATH,
18449         # but as the default location of the library.
18450         hardcode_minus_L_GCJ=yes
18451       fi
18452       ;;
18453
18454     hpux11*)
18455       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18456         case $host_cpu in
18457         hppa*64*)
18458           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18459           ;;
18460         ia64*)
18461           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18462           ;;
18463         *)
18464           archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18465           ;;
18466         esac
18467       else
18468         case $host_cpu in
18469         hppa*64*)
18470           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18471           ;;
18472         ia64*)
18473           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18474           ;;
18475         *)
18476           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18477           ;;
18478         esac
18479       fi
18480       if test "$with_gnu_ld" = no; then
18481         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18482         hardcode_libdir_separator_GCJ=:
18483
18484         case $host_cpu in
18485         hppa*64*|ia64*)
18486           hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
18487           hardcode_direct_GCJ=no
18488           hardcode_shlibpath_var_GCJ=no
18489           ;;
18490         *)
18491           hardcode_direct_GCJ=yes
18492           export_dynamic_flag_spec_GCJ='${wl}-E'
18493
18494           # hardcode_minus_L: Not really in the search PATH,
18495           # but as the default location of the library.
18496           hardcode_minus_L_GCJ=yes
18497           ;;
18498         esac
18499       fi
18500       ;;
18501
18502     irix5* | irix6* | nonstopux*)
18503       if test "$GCC" = yes; then
18504         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'
18505       else
18506         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'
18507         hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
18508       fi
18509       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18510       hardcode_libdir_separator_GCJ=:
18511       link_all_deplibs_GCJ=yes
18512       ;;
18513
18514     netbsd* | netbsdelf*-gnu)
18515       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18516         archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
18517       else
18518         archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
18519       fi
18520       hardcode_libdir_flag_spec_GCJ='-R$libdir'
18521       hardcode_direct_GCJ=yes
18522       hardcode_shlibpath_var_GCJ=no
18523       ;;
18524
18525     newsos6)
18526       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18527       hardcode_direct_GCJ=yes
18528       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18529       hardcode_libdir_separator_GCJ=:
18530       hardcode_shlibpath_var_GCJ=no
18531       ;;
18532
18533     openbsd*)
18534       hardcode_direct_GCJ=yes
18535       hardcode_shlibpath_var_GCJ=no
18536       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18537         archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18538         archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
18539         hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18540         export_dynamic_flag_spec_GCJ='${wl}-E'
18541       else
18542        case $host_os in
18543          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
18544            archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18545            hardcode_libdir_flag_spec_GCJ='-R$libdir'
18546            ;;
18547          *)
18548            archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18549            hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18550            ;;
18551        esac
18552       fi
18553       ;;
18554
18555     os2*)
18556       hardcode_libdir_flag_spec_GCJ='-L$libdir'
18557       hardcode_minus_L_GCJ=yes
18558       allow_undefined_flag_GCJ=unsupported
18559       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'
18560       old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
18561       ;;
18562
18563     osf3*)
18564       if test "$GCC" = yes; then
18565         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18566         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'
18567       else
18568         allow_undefined_flag_GCJ=' -expect_unresolved \*'
18569         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'
18570       fi
18571       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18572       hardcode_libdir_separator_GCJ=:
18573       ;;
18574
18575     osf4* | osf5*)      # as osf3* with the addition of -msym flag
18576       if test "$GCC" = yes; then
18577         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18578         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'
18579         hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18580       else
18581         allow_undefined_flag_GCJ=' -expect_unresolved \*'
18582         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'
18583         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~
18584         $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'
18585
18586         # Both c and cxx compiler support -rpath directly
18587         hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
18588       fi
18589       hardcode_libdir_separator_GCJ=:
18590       ;;
18591
18592     solaris*)
18593       no_undefined_flag_GCJ=' -z text'
18594       if test "$GCC" = yes; then
18595         wlarc='${wl}'
18596         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18597         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18598           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
18599       else
18600         wlarc=''
18601         archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
18602         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18603         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
18604       fi
18605       hardcode_libdir_flag_spec_GCJ='-R$libdir'
18606       hardcode_shlibpath_var_GCJ=no
18607       case $host_os in
18608       solaris2.[0-5] | solaris2.[0-5].*) ;;
18609       *)
18610         # The compiler driver will combine linker options so we
18611         # cannot just pass the convience library names through
18612         # without $wl, iff we do not link with $LD.
18613         # Luckily, gcc supports the same syntax we need for Sun Studio.
18614         # Supported since Solaris 2.6 (maybe 2.5.1?)
18615         case $wlarc in
18616         '')
18617           whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
18618         *)
18619           whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
18620         esac ;;
18621       esac
18622       link_all_deplibs_GCJ=yes
18623       ;;
18624
18625     sunos4*)
18626       if test "x$host_vendor" = xsequent; then
18627         # Use $CC to link under sequent, because it throws in some extra .o
18628         # files that make .init and .fini sections work.
18629         archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
18630       else
18631         archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
18632       fi
18633       hardcode_libdir_flag_spec_GCJ='-L$libdir'
18634       hardcode_direct_GCJ=yes
18635       hardcode_minus_L_GCJ=yes
18636       hardcode_shlibpath_var_GCJ=no
18637       ;;
18638
18639     sysv4)
18640       case $host_vendor in
18641         sni)
18642           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18643           hardcode_direct_GCJ=yes # is this really true???
18644         ;;
18645         siemens)
18646           ## LD is ld it makes a PLAMLIB
18647           ## CC just makes a GrossModule.
18648           archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18649           reload_cmds_GCJ='$CC -r -o $output$reload_objs'
18650           hardcode_direct_GCJ=no
18651         ;;
18652         motorola)
18653           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18654           hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
18655         ;;
18656       esac
18657       runpath_var='LD_RUN_PATH'
18658       hardcode_shlibpath_var_GCJ=no
18659       ;;
18660
18661     sysv4.3*)
18662       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18663       hardcode_shlibpath_var_GCJ=no
18664       export_dynamic_flag_spec_GCJ='-Bexport'
18665       ;;
18666
18667     sysv4*MP*)
18668       if test -d /usr/nec; then
18669         archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18670         hardcode_shlibpath_var_GCJ=no
18671         runpath_var=LD_RUN_PATH
18672         hardcode_runpath_var=yes
18673         ld_shlibs_GCJ=yes
18674       fi
18675       ;;
18676
18677     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
18678       no_undefined_flag_GCJ='${wl}-z,text'
18679       archive_cmds_need_lc_GCJ=no
18680       hardcode_shlibpath_var_GCJ=no
18681       runpath_var='LD_RUN_PATH'
18682
18683       if test "$GCC" = yes; then
18684         archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18685         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18686       else
18687         archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18688         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18689       fi
18690       ;;
18691
18692     sysv5* | sco3.2v5* | sco5v6*)
18693       # Note: We can NOT use -z defs as we might desire, because we do not
18694       # link with -lc, and that would cause any symbols used from libc to
18695       # always be unresolved, which means just about no library would
18696       # ever link correctly.  If we're not using GNU ld we use -z text
18697       # though, which does catch some bad symbols but isn't as heavy-handed
18698       # as -z defs.
18699       no_undefined_flag_GCJ='${wl}-z,text'
18700       allow_undefined_flag_GCJ='${wl}-z,nodefs'
18701       archive_cmds_need_lc_GCJ=no
18702       hardcode_shlibpath_var_GCJ=no
18703       hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
18704       hardcode_libdir_separator_GCJ=':'
18705       link_all_deplibs_GCJ=yes
18706       export_dynamic_flag_spec_GCJ='${wl}-Bexport'
18707       runpath_var='LD_RUN_PATH'
18708
18709       if test "$GCC" = yes; then
18710         archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18711         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18712       else
18713         archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18714         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18715       fi
18716       ;;
18717
18718     uts4*)
18719       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18720       hardcode_libdir_flag_spec_GCJ='-L$libdir'
18721       hardcode_shlibpath_var_GCJ=no
18722       ;;
18723
18724     *)
18725       ld_shlibs_GCJ=no
18726       ;;
18727     esac
18728   fi
18729
18730 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
18731 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
18732 test "$ld_shlibs_GCJ" = no && can_build_shared=no
18733
18734 #
18735 # Do we need to explicitly link libc?
18736 #
18737 case "x$archive_cmds_need_lc_GCJ" in
18738 x|xyes)
18739   # Assume -lc should be added
18740   archive_cmds_need_lc_GCJ=yes
18741
18742   if test "$enable_shared" = yes && test "$GCC" = yes; then
18743     case $archive_cmds_GCJ in
18744     *'~'*)
18745       # FIXME: we may have to deal with multi-command sequences.
18746       ;;
18747     '$CC '*)
18748       # Test whether the compiler implicitly links with -lc since on some
18749       # systems, -lgcc has to come before -lc. If gcc already passes -lc
18750       # to ld, don't add -lc before -lgcc.
18751       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
18752 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
18753       $rm conftest*
18754       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18755
18756       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18757   (eval $ac_compile) 2>&5
18758   ac_status=$?
18759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18760   (exit $ac_status); } 2>conftest.err; then
18761         soname=conftest
18762         lib=conftest
18763         libobjs=conftest.$ac_objext
18764         deplibs=
18765         wl=$lt_prog_compiler_wl_GCJ
18766         pic_flag=$lt_prog_compiler_pic_GCJ
18767         compiler_flags=-v
18768         linker_flags=-v
18769         verstring=
18770         output_objdir=.
18771         libname=conftest
18772         lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
18773         allow_undefined_flag_GCJ=
18774         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
18775   (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
18776   ac_status=$?
18777   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18778   (exit $ac_status); }
18779         then
18780           archive_cmds_need_lc_GCJ=no
18781         else
18782           archive_cmds_need_lc_GCJ=yes
18783         fi
18784         allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
18785       else
18786         cat conftest.err 1>&5
18787       fi
18788       $rm conftest*
18789       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
18790 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
18791       ;;
18792     esac
18793   fi
18794   ;;
18795 esac
18796
18797 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
18798 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
18799 library_names_spec=
18800 libname_spec='lib$name'
18801 soname_spec=
18802 shrext_cmds=".so"
18803 postinstall_cmds=
18804 postuninstall_cmds=
18805 finish_cmds=
18806 finish_eval=
18807 shlibpath_var=
18808 shlibpath_overrides_runpath=unknown
18809 version_type=none
18810 dynamic_linker="$host_os ld.so"
18811 sys_lib_dlsearch_path_spec="/lib /usr/lib"
18812 if test "$GCC" = yes; then
18813   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18814   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
18815     # if the path contains ";" then we assume it to be the separator
18816     # otherwise default to the standard path separator (i.e. ":") - it is
18817     # assumed that no part of a normal pathname contains ";" but that should
18818     # okay in the real world where ";" in dirpaths is itself problematic.
18819     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18820   else
18821     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
18822   fi
18823 else
18824   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
18825 fi
18826 need_lib_prefix=unknown
18827 hardcode_into_libs=no
18828
18829 # when you set need_version to no, make sure it does not cause -set_version
18830 # flags to be left without arguments
18831 need_version=unknown
18832
18833 case $host_os in
18834 aix3*)
18835   version_type=linux
18836   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18837   shlibpath_var=LIBPATH
18838
18839   # AIX 3 has no versioning support, so we append a major version to the name.
18840   soname_spec='${libname}${release}${shared_ext}$major'
18841   ;;
18842
18843 aix4* | aix5*)
18844   version_type=linux
18845   need_lib_prefix=no
18846   need_version=no
18847   hardcode_into_libs=yes
18848   if test "$host_cpu" = ia64; then
18849     # AIX 5 supports IA64
18850     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18851     shlibpath_var=LD_LIBRARY_PATH
18852   else
18853     # With GCC up to 2.95.x, collect2 would create an import file
18854     # for dependence libraries.  The import file would start with
18855     # the line `#! .'.  This would cause the generated library to
18856     # depend on `.', always an invalid library.  This was fixed in
18857     # development snapshots of GCC prior to 3.0.
18858     case $host_os in
18859       aix4 | aix4.[01] | aix4.[01].*)
18860       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18861            echo ' yes '
18862            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
18863         :
18864       else
18865         can_build_shared=no
18866       fi
18867       ;;
18868     esac
18869     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18870     # soname into executable. Probably we can add versioning support to
18871     # collect2, so additional links can be useful in future.
18872     if test "$aix_use_runtimelinking" = yes; then
18873       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18874       # instead of lib<name>.a to let people know that these are not
18875       # typical AIX shared libraries.
18876       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18877     else
18878       # We preserve .a as extension for shared libraries through AIX4.2
18879       # and later when we are not doing run time linking.
18880       library_names_spec='${libname}${release}.a $libname.a'
18881       soname_spec='${libname}${release}${shared_ext}$major'
18882     fi
18883     shlibpath_var=LIBPATH
18884   fi
18885   ;;
18886
18887 amigaos*)
18888   library_names_spec='$libname.ixlibrary $libname.a'
18889   # Create ${libname}_ixlibrary.a entries in /sys/libs.
18890   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'
18891   ;;
18892
18893 beos*)
18894   library_names_spec='${libname}${shared_ext}'
18895   dynamic_linker="$host_os ld.so"
18896   shlibpath_var=LIBRARY_PATH
18897   ;;
18898
18899 bsdi[45]*)
18900   version_type=linux
18901   need_version=no
18902   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18903   soname_spec='${libname}${release}${shared_ext}$major'
18904   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18905   shlibpath_var=LD_LIBRARY_PATH
18906   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18907   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18908   # the default ld.so.conf also contains /usr/contrib/lib and
18909   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18910   # libtool to hard-code these into programs
18911   ;;
18912
18913 cygwin* | mingw* | pw32*)
18914   version_type=windows
18915   shrext_cmds=".dll"
18916   need_version=no
18917   need_lib_prefix=no
18918
18919   case $GCC,$host_os in
18920   yes,cygwin* | yes,mingw* | yes,pw32*)
18921     library_names_spec='$libname.dll.a'
18922     # DLL is installed to $(libdir)/../bin by postinstall_cmds
18923     postinstall_cmds='base_file=`basename \${file}`~
18924       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
18925       dldir=$destdir/`dirname \$dlpath`~
18926       test -d \$dldir || mkdir -p \$dldir~
18927       $install_prog $dir/$dlname \$dldir/$dlname~
18928       chmod a+x \$dldir/$dlname'
18929     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18930       dlpath=$dir/\$dldll~
18931        $rm \$dlpath'
18932     shlibpath_overrides_runpath=yes
18933
18934     case $host_os in
18935     cygwin*)
18936       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18937       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18938       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18939       ;;
18940     mingw*)
18941       # MinGW DLLs use traditional 'lib' prefix
18942       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18943       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18944       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
18945         # It is most probably a Windows format PATH printed by
18946         # mingw gcc, but we are running on Cygwin. Gcc prints its search
18947         # path with ; separators, and with drive letters. We can handle the
18948         # drive letters (cygwin fileutils understands them), so leave them,
18949         # especially as we might pass files found there to a mingw objdump,
18950         # which wouldn't understand a cygwinified path. Ahh.
18951         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18952       else
18953         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
18954       fi
18955       ;;
18956     pw32*)
18957       # pw32 DLLs use 'pw' prefix rather than 'lib'
18958       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18959       ;;
18960     esac
18961     ;;
18962
18963   *)
18964     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18965     ;;
18966   esac
18967   dynamic_linker='Win32 ld.exe'
18968   # FIXME: first we should search . and the directory the executable is in
18969   shlibpath_var=PATH
18970   ;;
18971
18972 darwin* | rhapsody*)
18973   dynamic_linker="$host_os dyld"
18974   version_type=darwin
18975   need_lib_prefix=no
18976   need_version=no
18977   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18978   soname_spec='${libname}${release}${major}$shared_ext'
18979   shlibpath_overrides_runpath=yes
18980   shlibpath_var=DYLD_LIBRARY_PATH
18981   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18982   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
18983   if test "$GCC" = yes; then
18984     sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
18985   else
18986     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
18987   fi
18988   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18989   ;;
18990
18991 dgux*)
18992   version_type=linux
18993   need_lib_prefix=no
18994   need_version=no
18995   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18996   soname_spec='${libname}${release}${shared_ext}$major'
18997   shlibpath_var=LD_LIBRARY_PATH
18998   ;;
18999
19000 freebsd1*)
19001   dynamic_linker=no
19002   ;;
19003
19004 freebsd* | dragonfly*)
19005   # DragonFly does not have aout.  When/if they implement a new
19006   # versioning mechanism, adjust this.
19007   if test -x /usr/bin/objformat; then
19008     objformat=`/usr/bin/objformat`
19009   else
19010     case $host_os in
19011     freebsd[123]*) objformat=aout ;;
19012     *) objformat=elf ;;
19013     esac
19014   fi
19015   version_type=freebsd-$objformat
19016   case $version_type in
19017     freebsd-elf*)
19018       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19019       need_version=no
19020       need_lib_prefix=no
19021       ;;
19022     freebsd-*)
19023       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
19024       need_version=yes
19025       ;;
19026   esac
19027   shlibpath_var=LD_LIBRARY_PATH
19028   case $host_os in
19029   freebsd2*)
19030     shlibpath_overrides_runpath=yes
19031     ;;
19032   freebsd3.[01]* | freebsdelf3.[01]*)
19033     shlibpath_overrides_runpath=yes
19034     hardcode_into_libs=yes
19035     ;;
19036   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
19037   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
19038     shlibpath_overrides_runpath=no
19039     hardcode_into_libs=yes
19040     ;;
19041   freebsd*) # from 4.6 on
19042     shlibpath_overrides_runpath=yes
19043     hardcode_into_libs=yes
19044     ;;
19045   esac
19046   ;;
19047
19048 gnu*)
19049   version_type=linux
19050   need_lib_prefix=no
19051   need_version=no
19052   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
19053   soname_spec='${libname}${release}${shared_ext}$major'
19054   shlibpath_var=LD_LIBRARY_PATH
19055   hardcode_into_libs=yes
19056   ;;
19057
19058 hpux9* | hpux10* | hpux11*)
19059   # Give a soname corresponding to the major version so that dld.sl refuses to
19060   # link against other versions.
19061   version_type=sunos
19062   need_lib_prefix=no
19063   need_version=no
19064   case $host_cpu in
19065   ia64*)
19066     shrext_cmds='.so'
19067     hardcode_into_libs=yes
19068     dynamic_linker="$host_os dld.so"
19069     shlibpath_var=LD_LIBRARY_PATH
19070     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19071     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19072     soname_spec='${libname}${release}${shared_ext}$major'
19073     if test "X$HPUX_IA64_MODE" = X32; then
19074       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
19075     else
19076       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
19077     fi
19078     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19079     ;;
19080    hppa*64*)
19081      shrext_cmds='.sl'
19082      hardcode_into_libs=yes
19083      dynamic_linker="$host_os dld.sl"
19084      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
19085      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19086      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19087      soname_spec='${libname}${release}${shared_ext}$major'
19088      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
19089      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19090      ;;
19091    *)
19092     shrext_cmds='.sl'
19093     dynamic_linker="$host_os dld.sl"
19094     shlibpath_var=SHLIB_PATH
19095     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
19096     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19097     soname_spec='${libname}${release}${shared_ext}$major'
19098     ;;
19099   esac
19100   # HP-UX runs *really* slowly unless shared libraries are mode 555.
19101   postinstall_cmds='chmod 555 $lib'
19102   ;;
19103
19104 interix3*)
19105   version_type=linux
19106   need_lib_prefix=no
19107   need_version=no
19108   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19109   soname_spec='${libname}${release}${shared_ext}$major'
19110   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
19111   shlibpath_var=LD_LIBRARY_PATH
19112   shlibpath_overrides_runpath=no
19113   hardcode_into_libs=yes
19114   ;;
19115
19116 irix5* | irix6* | nonstopux*)
19117   case $host_os in
19118     nonstopux*) version_type=nonstopux ;;
19119     *)
19120         if test "$lt_cv_prog_gnu_ld" = yes; then
19121                 version_type=linux
19122         else
19123                 version_type=irix
19124         fi ;;
19125   esac
19126   need_lib_prefix=no
19127   need_version=no
19128   soname_spec='${libname}${release}${shared_ext}$major'
19129   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
19130   case $host_os in
19131   irix5* | nonstopux*)
19132     libsuff= shlibsuff=
19133     ;;
19134   *)
19135     case $LD in # libtool.m4 will add one of these switches to LD
19136     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
19137       libsuff= shlibsuff= libmagic=32-bit;;
19138     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
19139       libsuff=32 shlibsuff=N32 libmagic=N32;;
19140     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
19141       libsuff=64 shlibsuff=64 libmagic=64-bit;;
19142     *) libsuff= shlibsuff= libmagic=never-match;;
19143     esac
19144     ;;
19145   esac
19146   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
19147   shlibpath_overrides_runpath=no
19148   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
19149   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
19150   hardcode_into_libs=yes
19151   ;;
19152
19153 # No shared lib support for Linux oldld, aout, or coff.
19154 linux*oldld* | linux*aout* | linux*coff*)
19155   dynamic_linker=no
19156   ;;
19157
19158 # This must be Linux ELF.
19159 linux* | k*bsd*-gnu)
19160   version_type=linux
19161   need_lib_prefix=no
19162   need_version=no
19163   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19164   soname_spec='${libname}${release}${shared_ext}$major'
19165   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
19166   shlibpath_var=LD_LIBRARY_PATH
19167   shlibpath_overrides_runpath=no
19168   # This implies no fast_install, which is unacceptable.
19169   # Some rework will be needed to allow for fast_install
19170   # before this can be enabled.
19171   hardcode_into_libs=yes
19172
19173   # Append ld.so.conf contents to the search path
19174   if test -f /etc/ld.so.conf; then
19175     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,        ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
19176     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
19177   fi
19178
19179   # We used to test for /lib/ld.so.1 and disable shared libraries on
19180   # powerpc, because MkLinux only supported shared libraries with the
19181   # GNU dynamic linker.  Since this was broken with cross compilers,
19182   # most powerpc-linux boxes support dynamic linking these days and
19183   # people can always --disable-shared, the test was removed, and we
19184   # assume the GNU/Linux dynamic linker is in use.
19185   dynamic_linker='GNU/Linux ld.so'
19186   ;;
19187
19188 netbsdelf*-gnu)
19189   version_type=linux
19190   need_lib_prefix=no
19191   need_version=no
19192   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19193   soname_spec='${libname}${release}${shared_ext}$major'
19194   shlibpath_var=LD_LIBRARY_PATH
19195   shlibpath_overrides_runpath=no
19196   hardcode_into_libs=yes
19197   dynamic_linker='NetBSD ld.elf_so'
19198   ;;
19199
19200 netbsd*)
19201   version_type=sunos
19202   need_lib_prefix=no
19203   need_version=no
19204   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19205     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19206     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19207     dynamic_linker='NetBSD (a.out) ld.so'
19208   else
19209     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19210     soname_spec='${libname}${release}${shared_ext}$major'
19211     dynamic_linker='NetBSD ld.elf_so'
19212   fi
19213   shlibpath_var=LD_LIBRARY_PATH
19214   shlibpath_overrides_runpath=yes
19215   hardcode_into_libs=yes
19216   ;;
19217
19218 newsos6)
19219   version_type=linux
19220   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19221   shlibpath_var=LD_LIBRARY_PATH
19222   shlibpath_overrides_runpath=yes
19223   ;;
19224
19225 nto-qnx*)
19226   version_type=linux
19227   need_lib_prefix=no
19228   need_version=no
19229   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19230   soname_spec='${libname}${release}${shared_ext}$major'
19231   shlibpath_var=LD_LIBRARY_PATH
19232   shlibpath_overrides_runpath=yes
19233   ;;
19234
19235 openbsd*)
19236   version_type=sunos
19237   sys_lib_dlsearch_path_spec="/usr/lib"
19238   need_lib_prefix=no
19239   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
19240   case $host_os in
19241     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
19242     *)                         need_version=no  ;;
19243   esac
19244   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19245   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19246   shlibpath_var=LD_LIBRARY_PATH
19247   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19248     case $host_os in
19249       openbsd2.[89] | openbsd2.[89].*)
19250         shlibpath_overrides_runpath=no
19251         ;;
19252       *)
19253         shlibpath_overrides_runpath=yes
19254         ;;
19255       esac
19256   else
19257     shlibpath_overrides_runpath=yes
19258   fi
19259   ;;
19260
19261 os2*)
19262   libname_spec='$name'
19263   shrext_cmds=".dll"
19264   need_lib_prefix=no
19265   library_names_spec='$libname${shared_ext} $libname.a'
19266   dynamic_linker='OS/2 ld.exe'
19267   shlibpath_var=LIBPATH
19268   ;;
19269
19270 osf3* | osf4* | osf5*)
19271   version_type=osf
19272   need_lib_prefix=no
19273   need_version=no
19274   soname_spec='${libname}${release}${shared_ext}$major'
19275   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19276   shlibpath_var=LD_LIBRARY_PATH
19277   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
19278   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
19279   ;;
19280
19281 solaris*)
19282   version_type=linux
19283   need_lib_prefix=no
19284   need_version=no
19285   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19286   soname_spec='${libname}${release}${shared_ext}$major'
19287   shlibpath_var=LD_LIBRARY_PATH
19288   shlibpath_overrides_runpath=yes
19289   hardcode_into_libs=yes
19290   # ldd complains unless libraries are executable
19291   postinstall_cmds='chmod +x $lib'
19292   ;;
19293
19294 sunos4*)
19295   version_type=sunos
19296   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19297   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
19298   shlibpath_var=LD_LIBRARY_PATH
19299   shlibpath_overrides_runpath=yes
19300   if test "$with_gnu_ld" = yes; then
19301     need_lib_prefix=no
19302   fi
19303   need_version=yes
19304   ;;
19305
19306 sysv4 | sysv4.3*)
19307   version_type=linux
19308   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19309   soname_spec='${libname}${release}${shared_ext}$major'
19310   shlibpath_var=LD_LIBRARY_PATH
19311   case $host_vendor in
19312     sni)
19313       shlibpath_overrides_runpath=no
19314       need_lib_prefix=no
19315       export_dynamic_flag_spec='${wl}-Blargedynsym'
19316       runpath_var=LD_RUN_PATH
19317       ;;
19318     siemens)
19319       need_lib_prefix=no
19320       ;;
19321     motorola)
19322       need_lib_prefix=no
19323       need_version=no
19324       shlibpath_overrides_runpath=no
19325       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
19326       ;;
19327   esac
19328   ;;
19329
19330 sysv4*MP*)
19331   if test -d /usr/nec ;then
19332     version_type=linux
19333     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
19334     soname_spec='$libname${shared_ext}.$major'
19335     shlibpath_var=LD_LIBRARY_PATH
19336   fi
19337   ;;
19338
19339 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
19340   version_type=freebsd-elf
19341   need_lib_prefix=no
19342   need_version=no
19343   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19344   soname_spec='${libname}${release}${shared_ext}$major'
19345   shlibpath_var=LD_LIBRARY_PATH
19346   hardcode_into_libs=yes
19347   if test "$with_gnu_ld" = yes; then
19348     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
19349     shlibpath_overrides_runpath=no
19350   else
19351     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
19352     shlibpath_overrides_runpath=yes
19353     case $host_os in
19354       sco3.2v5*)
19355         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
19356         ;;
19357     esac
19358   fi
19359   sys_lib_dlsearch_path_spec='/usr/lib'
19360   ;;
19361
19362 uts4*)
19363   version_type=linux
19364   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19365   soname_spec='${libname}${release}${shared_ext}$major'
19366   shlibpath_var=LD_LIBRARY_PATH
19367   ;;
19368
19369 *)
19370   dynamic_linker=no
19371   ;;
19372 esac
19373 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
19374 echo "${ECHO_T}$dynamic_linker" >&6; }
19375 test "$dynamic_linker" = no && can_build_shared=no
19376
19377 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
19378 if test "$GCC" = yes; then
19379   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
19380 fi
19381
19382 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
19383 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
19384 hardcode_action_GCJ=
19385 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
19386    test -n "$runpath_var_GCJ" || \
19387    test "X$hardcode_automatic_GCJ" = "Xyes" ; then
19388
19389   # We can hardcode non-existant directories.
19390   if test "$hardcode_direct_GCJ" != no &&
19391      # If the only mechanism to avoid hardcoding is shlibpath_var, we
19392      # have to relink, otherwise we might link with an installed library
19393      # when we should be linking with a yet-to-be-installed one
19394      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
19395      test "$hardcode_minus_L_GCJ" != no; then
19396     # Linking always hardcodes the temporary library directory.
19397     hardcode_action_GCJ=relink
19398   else
19399     # We can link without hardcoding, and we can hardcode nonexisting dirs.
19400     hardcode_action_GCJ=immediate
19401   fi
19402 else
19403   # We cannot hardcode anything, or else we can only hardcode existing
19404   # directories.
19405   hardcode_action_GCJ=unsupported
19406 fi
19407 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
19408 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
19409
19410 if test "$hardcode_action_GCJ" = relink; then
19411   # Fast installation is not supported
19412   enable_fast_install=no
19413 elif test "$shlibpath_overrides_runpath" = yes ||
19414      test "$enable_shared" = no; then
19415   # Fast installation is not necessary
19416   enable_fast_install=needless
19417 fi
19418
19419
19420 # The else clause should only fire when bootstrapping the
19421 # libtool distribution, otherwise you forgot to ship ltmain.sh
19422 # with your package, and you will get complaints that there are
19423 # no rules to generate ltmain.sh.
19424 if test -f "$ltmain"; then
19425   # See if we are running on zsh, and set the options which allow our commands through
19426   # without removal of \ escapes.
19427   if test -n "${ZSH_VERSION+set}" ; then
19428     setopt NO_GLOB_SUBST
19429   fi
19430   # Now quote all the things that may contain metacharacters while being
19431   # careful not to overquote the AC_SUBSTed values.  We take copies of the
19432   # variables and quote the copies for generation of the libtool script.
19433   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19434     SED SHELL STRIP \
19435     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19436     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19437     deplibs_check_method reload_flag reload_cmds need_locks \
19438     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19439     lt_cv_sys_global_symbol_to_c_name_address \
19440     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19441     old_postinstall_cmds old_postuninstall_cmds \
19442     compiler_GCJ \
19443     CC_GCJ \
19444     LD_GCJ \
19445     lt_prog_compiler_wl_GCJ \
19446     lt_prog_compiler_pic_GCJ \
19447     lt_prog_compiler_static_GCJ \
19448     lt_prog_compiler_no_builtin_flag_GCJ \
19449     export_dynamic_flag_spec_GCJ \
19450     thread_safe_flag_spec_GCJ \
19451     whole_archive_flag_spec_GCJ \
19452     enable_shared_with_static_runtimes_GCJ \
19453     old_archive_cmds_GCJ \
19454     old_archive_from_new_cmds_GCJ \
19455     predep_objects_GCJ \
19456     postdep_objects_GCJ \
19457     predeps_GCJ \
19458     postdeps_GCJ \
19459     compiler_lib_search_path_GCJ \
19460     archive_cmds_GCJ \
19461     archive_expsym_cmds_GCJ \
19462     postinstall_cmds_GCJ \
19463     postuninstall_cmds_GCJ \
19464     old_archive_from_expsyms_cmds_GCJ \
19465     allow_undefined_flag_GCJ \
19466     no_undefined_flag_GCJ \
19467     export_symbols_cmds_GCJ \
19468     hardcode_libdir_flag_spec_GCJ \
19469     hardcode_libdir_flag_spec_ld_GCJ \
19470     hardcode_libdir_separator_GCJ \
19471     hardcode_automatic_GCJ \
19472     module_cmds_GCJ \
19473     module_expsym_cmds_GCJ \
19474     lt_cv_prog_compiler_c_o_GCJ \
19475     exclude_expsyms_GCJ \
19476     include_expsyms_GCJ; do
19477
19478     case $var in
19479     old_archive_cmds_GCJ | \
19480     old_archive_from_new_cmds_GCJ | \
19481     archive_cmds_GCJ | \
19482     archive_expsym_cmds_GCJ | \
19483     module_cmds_GCJ | \
19484     module_expsym_cmds_GCJ | \
19485     old_archive_from_expsyms_cmds_GCJ | \
19486     export_symbols_cmds_GCJ | \
19487     extract_expsyms_cmds | reload_cmds | finish_cmds | \
19488     postinstall_cmds | postuninstall_cmds | \
19489     old_postinstall_cmds | old_postuninstall_cmds | \
19490     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19491       # Double-quote double-evaled strings.
19492       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19493       ;;
19494     *)
19495       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19496       ;;
19497     esac
19498   done
19499
19500   case $lt_echo in
19501   *'\$0 --fallback-echo"')
19502     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19503     ;;
19504   esac
19505
19506 cfgfile="$ofile"
19507
19508   cat <<__EOF__ >> "$cfgfile"
19509 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19510
19511 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19512
19513 # Shell to use when invoking shell scripts.
19514 SHELL=$lt_SHELL
19515
19516 # Whether or not to build shared libraries.
19517 build_libtool_libs=$enable_shared
19518
19519 # Whether or not to build static libraries.
19520 build_old_libs=$enable_static
19521
19522 # Whether or not to add -lc for building shared libraries.
19523 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
19524
19525 # Whether or not to disallow shared libs when runtime libs are static
19526 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
19527
19528 # Whether or not to optimize for fast installation.
19529 fast_install=$enable_fast_install
19530
19531 # The host system.
19532 host_alias=$host_alias
19533 host=$host
19534 host_os=$host_os
19535
19536 # The build system.
19537 build_alias=$build_alias
19538 build=$build
19539 build_os=$build_os
19540
19541 # An echo program that does not interpret backslashes.
19542 echo=$lt_echo
19543
19544 # The archiver.
19545 AR=$lt_AR
19546 AR_FLAGS=$lt_AR_FLAGS
19547
19548 # A C compiler.
19549 LTCC=$lt_LTCC
19550
19551 # LTCC compiler flags.
19552 LTCFLAGS=$lt_LTCFLAGS
19553
19554 # A language-specific compiler.
19555 CC=$lt_compiler_GCJ
19556
19557 # Is the compiler the GNU C compiler?
19558 with_gcc=$GCC_GCJ
19559
19560 # An ERE matcher.
19561 EGREP=$lt_EGREP
19562
19563 # The linker used to build libraries.
19564 LD=$lt_LD_GCJ
19565
19566 # Whether we need hard or soft links.
19567 LN_S=$lt_LN_S
19568
19569 # A BSD-compatible nm program.
19570 NM=$lt_NM
19571
19572 # A symbol stripping program
19573 STRIP=$lt_STRIP
19574
19575 # Used to examine libraries when file_magic_cmd begins "file"
19576 MAGIC_CMD=$MAGIC_CMD
19577
19578 # Used on cygwin: DLL creation program.
19579 DLLTOOL="$DLLTOOL"
19580
19581 # Used on cygwin: object dumper.
19582 OBJDUMP="$OBJDUMP"
19583
19584 # Used on cygwin: assembler.
19585 AS="$AS"
19586
19587 # The name of the directory that contains temporary libtool files.
19588 objdir=$objdir
19589
19590 # How to create reloadable object files.
19591 reload_flag=$lt_reload_flag
19592 reload_cmds=$lt_reload_cmds
19593
19594 # How to pass a linker flag through the compiler.
19595 wl=$lt_lt_prog_compiler_wl_GCJ
19596
19597 # Object file suffix (normally "o").
19598 objext="$ac_objext"
19599
19600 # Old archive suffix (normally "a").
19601 libext="$libext"
19602
19603 # Shared library suffix (normally ".so").
19604 shrext_cmds='$shrext_cmds'
19605
19606 # Executable file suffix (normally "").
19607 exeext="$exeext"
19608
19609 # Additional compiler flags for building library objects.
19610 pic_flag=$lt_lt_prog_compiler_pic_GCJ
19611 pic_mode=$pic_mode
19612
19613 # What is the maximum length of a command?
19614 max_cmd_len=$lt_cv_sys_max_cmd_len
19615
19616 # Does compiler simultaneously support -c and -o options?
19617 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
19618
19619 # Must we lock files when doing compilation?
19620 need_locks=$lt_need_locks
19621
19622 # Do we need the lib prefix for modules?
19623 need_lib_prefix=$need_lib_prefix
19624
19625 # Do we need a version for libraries?
19626 need_version=$need_version
19627
19628 # Whether dlopen is supported.
19629 dlopen_support=$enable_dlopen
19630
19631 # Whether dlopen of programs is supported.
19632 dlopen_self=$enable_dlopen_self
19633
19634 # Whether dlopen of statically linked programs is supported.
19635 dlopen_self_static=$enable_dlopen_self_static
19636
19637 # Compiler flag to prevent dynamic linking.
19638 link_static_flag=$lt_lt_prog_compiler_static_GCJ
19639
19640 # Compiler flag to turn off builtin functions.
19641 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
19642
19643 # Compiler flag to allow reflexive dlopens.
19644 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
19645
19646 # Compiler flag to generate shared objects directly from archives.
19647 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
19648
19649 # Compiler flag to generate thread-safe objects.
19650 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
19651
19652 # Library versioning type.
19653 version_type=$version_type
19654
19655 # Format of library name prefix.
19656 libname_spec=$lt_libname_spec
19657
19658 # List of archive names.  First name is the real one, the rest are links.
19659 # The last name is the one that the linker finds with -lNAME.
19660 library_names_spec=$lt_library_names_spec
19661
19662 # The coded name of the library, if different from the real name.
19663 soname_spec=$lt_soname_spec
19664
19665 # Commands used to build and install an old-style archive.
19666 RANLIB=$lt_RANLIB
19667 old_archive_cmds=$lt_old_archive_cmds_GCJ
19668 old_postinstall_cmds=$lt_old_postinstall_cmds
19669 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19670
19671 # Create an old-style archive from a shared archive.
19672 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
19673
19674 # Create a temporary old-style archive to link instead of a shared archive.
19675 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
19676
19677 # Commands used to build and install a shared archive.
19678 archive_cmds=$lt_archive_cmds_GCJ
19679 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
19680 postinstall_cmds=$lt_postinstall_cmds
19681 postuninstall_cmds=$lt_postuninstall_cmds
19682
19683 # Commands used to build a loadable module (assumed same as above if empty)
19684 module_cmds=$lt_module_cmds_GCJ
19685 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
19686
19687 # Commands to strip libraries.
19688 old_striplib=$lt_old_striplib
19689 striplib=$lt_striplib
19690
19691 # Dependencies to place before the objects being linked to create a
19692 # shared library.
19693 predep_objects=$lt_predep_objects_GCJ
19694
19695 # Dependencies to place after the objects being linked to create a
19696 # shared library.
19697 postdep_objects=$lt_postdep_objects_GCJ
19698
19699 # Dependencies to place before the objects being linked to create a
19700 # shared library.
19701 predeps=$lt_predeps_GCJ
19702
19703 # Dependencies to place after the objects being linked to create a
19704 # shared library.
19705 postdeps=$lt_postdeps_GCJ
19706
19707 # The library search path used internally by the compiler when linking
19708 # a shared library.
19709 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
19710
19711 # Method to check whether dependent libraries are shared objects.
19712 deplibs_check_method=$lt_deplibs_check_method
19713
19714 # Command to use when deplibs_check_method == file_magic.
19715 file_magic_cmd=$lt_file_magic_cmd
19716
19717 # Flag that allows shared libraries with undefined symbols to be built.
19718 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
19719
19720 # Flag that forces no undefined symbols.
19721 no_undefined_flag=$lt_no_undefined_flag_GCJ
19722
19723 # Commands used to finish a libtool library installation in a directory.
19724 finish_cmds=$lt_finish_cmds
19725
19726 # Same as above, but a single script fragment to be evaled but not shown.
19727 finish_eval=$lt_finish_eval
19728
19729 # Take the output of nm and produce a listing of raw symbols and C names.
19730 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19731
19732 # Transform the output of nm in a proper C declaration
19733 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19734
19735 # Transform the output of nm in a C name address pair
19736 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19737
19738 # This is the shared library runtime path variable.
19739 runpath_var=$runpath_var
19740
19741 # This is the shared library path variable.
19742 shlibpath_var=$shlibpath_var
19743
19744 # Is shlibpath searched before the hard-coded library search path?
19745 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19746
19747 # How to hardcode a shared library path into an executable.
19748 hardcode_action=$hardcode_action_GCJ
19749
19750 # Whether we should hardcode library paths into libraries.
19751 hardcode_into_libs=$hardcode_into_libs
19752
19753 # Flag to hardcode \$libdir into a binary during linking.
19754 # This must work even if \$libdir does not exist.
19755 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
19756
19757 # If ld is used when linking, flag to hardcode \$libdir into
19758 # a binary during linking. This must work even if \$libdir does
19759 # not exist.
19760 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
19761
19762 # Whether we need a single -rpath flag with a separated argument.
19763 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
19764
19765 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19766 # resulting binary.
19767 hardcode_direct=$hardcode_direct_GCJ
19768
19769 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19770 # resulting binary.
19771 hardcode_minus_L=$hardcode_minus_L_GCJ
19772
19773 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19774 # the resulting binary.
19775 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
19776
19777 # Set to yes if building a shared library automatically hardcodes DIR into the library
19778 # and all subsequent libraries and executables linked against it.
19779 hardcode_automatic=$hardcode_automatic_GCJ
19780
19781 # Variables whose values should be saved in libtool wrapper scripts and
19782 # restored at relink time.
19783 variables_saved_for_relink="$variables_saved_for_relink"
19784
19785 # Whether libtool must link a program against all its dependency libraries.
19786 link_all_deplibs=$link_all_deplibs_GCJ
19787
19788 # Compile-time system search path for libraries
19789 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19790
19791 # Run-time system search path for libraries
19792 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19793
19794 # Fix the shell variable \$srcfile for the compiler.
19795 fix_srcfile_path="$fix_srcfile_path_GCJ"
19796
19797 # Set to yes if exported symbols are required.
19798 always_export_symbols=$always_export_symbols_GCJ
19799
19800 # The commands to list exported symbols.
19801 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
19802
19803 # The commands to extract the exported symbol list from a shared archive.
19804 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19805
19806 # Symbols that should not be listed in the preloaded symbols.
19807 exclude_expsyms=$lt_exclude_expsyms_GCJ
19808
19809 # Symbols that must always be exported.
19810 include_expsyms=$lt_include_expsyms_GCJ
19811
19812 # ### END LIBTOOL TAG CONFIG: $tagname
19813
19814 __EOF__
19815
19816
19817 else
19818   # If there is no Makefile yet, we rely on a make rule to execute
19819   # `config.status --recheck' to rerun these tests and create the
19820   # libtool script then.
19821   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19822   if test -f "$ltmain_in"; then
19823     test -f Makefile && make "$ltmain"
19824   fi
19825 fi
19826
19827
19828 ac_ext=c
19829 ac_cpp='$CPP $CPPFLAGS'
19830 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19831 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19832 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19833
19834 CC="$lt_save_CC"
19835
19836         else
19837           tagname=""
19838         fi
19839         ;;
19840
19841       RC)
19842         
19843
19844 # Source file extension for RC test sources.
19845 ac_ext=rc
19846
19847 # Object file extension for compiled RC test sources.
19848 objext=o
19849 objext_RC=$objext
19850
19851 # Code to be used in simple compile tests
19852 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
19853
19854 # Code to be used in simple link tests
19855 lt_simple_link_test_code="$lt_simple_compile_test_code"
19856
19857 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
19858
19859 # If no C compiler was specified, use CC.
19860 LTCC=${LTCC-"$CC"}
19861
19862 # If no C compiler flags were specified, use CFLAGS.
19863 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
19864
19865 # Allow CC to be a program name with arguments.
19866 compiler=$CC
19867
19868
19869 # save warnings/boilerplate of simple test code
19870 ac_outfile=conftest.$ac_objext
19871 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
19872 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19873 _lt_compiler_boilerplate=`cat conftest.err`
19874 $rm conftest*
19875
19876 ac_outfile=conftest.$ac_objext
19877 printf "$lt_simple_link_test_code" >conftest.$ac_ext
19878 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19879 _lt_linker_boilerplate=`cat conftest.err`
19880 $rm conftest*
19881
19882
19883 # Allow CC to be a program name with arguments.
19884 lt_save_CC="$CC"
19885 CC=${RC-"windres"}
19886 compiler=$CC
19887 compiler_RC=$CC
19888 for cc_temp in $compiler""; do
19889   case $cc_temp in
19890     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19891     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19892     \-*) ;;
19893     *) break;;
19894   esac
19895 done
19896 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
19897
19898 lt_cv_prog_compiler_c_o_RC=yes
19899
19900 # The else clause should only fire when bootstrapping the
19901 # libtool distribution, otherwise you forgot to ship ltmain.sh
19902 # with your package, and you will get complaints that there are
19903 # no rules to generate ltmain.sh.
19904 if test -f "$ltmain"; then
19905   # See if we are running on zsh, and set the options which allow our commands through
19906   # without removal of \ escapes.
19907   if test -n "${ZSH_VERSION+set}" ; then
19908     setopt NO_GLOB_SUBST
19909   fi
19910   # Now quote all the things that may contain metacharacters while being
19911   # careful not to overquote the AC_SUBSTed values.  We take copies of the
19912   # variables and quote the copies for generation of the libtool script.
19913   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19914     SED SHELL STRIP \
19915     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19916     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19917     deplibs_check_method reload_flag reload_cmds need_locks \
19918     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19919     lt_cv_sys_global_symbol_to_c_name_address \
19920     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19921     old_postinstall_cmds old_postuninstall_cmds \
19922     compiler_RC \
19923     CC_RC \
19924     LD_RC \
19925     lt_prog_compiler_wl_RC \
19926     lt_prog_compiler_pic_RC \
19927     lt_prog_compiler_static_RC \
19928     lt_prog_compiler_no_builtin_flag_RC \
19929     export_dynamic_flag_spec_RC \
19930     thread_safe_flag_spec_RC \
19931     whole_archive_flag_spec_RC \
19932     enable_shared_with_static_runtimes_RC \
19933     old_archive_cmds_RC \
19934     old_archive_from_new_cmds_RC \
19935     predep_objects_RC \
19936     postdep_objects_RC \
19937     predeps_RC \
19938     postdeps_RC \
19939     compiler_lib_search_path_RC \
19940     archive_cmds_RC \
19941     archive_expsym_cmds_RC \
19942     postinstall_cmds_RC \
19943     postuninstall_cmds_RC \
19944     old_archive_from_expsyms_cmds_RC \
19945     allow_undefined_flag_RC \
19946     no_undefined_flag_RC \
19947     export_symbols_cmds_RC \
19948     hardcode_libdir_flag_spec_RC \
19949     hardcode_libdir_flag_spec_ld_RC \
19950     hardcode_libdir_separator_RC \
19951     hardcode_automatic_RC \
19952     module_cmds_RC \
19953     module_expsym_cmds_RC \
19954     lt_cv_prog_compiler_c_o_RC \
19955     exclude_expsyms_RC \
19956     include_expsyms_RC; do
19957
19958     case $var in
19959     old_archive_cmds_RC | \
19960     old_archive_from_new_cmds_RC | \
19961     archive_cmds_RC | \
19962     archive_expsym_cmds_RC | \
19963     module_cmds_RC | \
19964     module_expsym_cmds_RC | \
19965     old_archive_from_expsyms_cmds_RC | \
19966     export_symbols_cmds_RC | \
19967     extract_expsyms_cmds | reload_cmds | finish_cmds | \
19968     postinstall_cmds | postuninstall_cmds | \
19969     old_postinstall_cmds | old_postuninstall_cmds | \
19970     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19971       # Double-quote double-evaled strings.
19972       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19973       ;;
19974     *)
19975       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19976       ;;
19977     esac
19978   done
19979
19980   case $lt_echo in
19981   *'\$0 --fallback-echo"')
19982     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19983     ;;
19984   esac
19985
19986 cfgfile="$ofile"
19987
19988   cat <<__EOF__ >> "$cfgfile"
19989 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19990
19991 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19992
19993 # Shell to use when invoking shell scripts.
19994 SHELL=$lt_SHELL
19995
19996 # Whether or not to build shared libraries.
19997 build_libtool_libs=$enable_shared
19998
19999 # Whether or not to build static libraries.
20000 build_old_libs=$enable_static
20001
20002 # Whether or not to add -lc for building shared libraries.
20003 build_libtool_need_lc=$archive_cmds_need_lc_RC
20004
20005 # Whether or not to disallow shared libs when runtime libs are static
20006 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
20007
20008 # Whether or not to optimize for fast installation.
20009 fast_install=$enable_fast_install
20010
20011 # The host system.
20012 host_alias=$host_alias
20013 host=$host
20014 host_os=$host_os
20015
20016 # The build system.
20017 build_alias=$build_alias
20018 build=$build
20019 build_os=$build_os
20020
20021 # An echo program that does not interpret backslashes.
20022 echo=$lt_echo
20023
20024 # The archiver.
20025 AR=$lt_AR
20026 AR_FLAGS=$lt_AR_FLAGS
20027
20028 # A C compiler.
20029 LTCC=$lt_LTCC
20030
20031 # LTCC compiler flags.
20032 LTCFLAGS=$lt_LTCFLAGS
20033
20034 # A language-specific compiler.
20035 CC=$lt_compiler_RC
20036
20037 # Is the compiler the GNU C compiler?
20038 with_gcc=$GCC_RC
20039
20040 # An ERE matcher.
20041 EGREP=$lt_EGREP
20042
20043 # The linker used to build libraries.
20044 LD=$lt_LD_RC
20045
20046 # Whether we need hard or soft links.
20047 LN_S=$lt_LN_S
20048
20049 # A BSD-compatible nm program.
20050 NM=$lt_NM
20051
20052 # A symbol stripping program
20053 STRIP=$lt_STRIP
20054
20055 # Used to examine libraries when file_magic_cmd begins "file"
20056 MAGIC_CMD=$MAGIC_CMD
20057
20058 # Used on cygwin: DLL creation program.
20059 DLLTOOL="$DLLTOOL"
20060
20061 # Used on cygwin: object dumper.
20062 OBJDUMP="$OBJDUMP"
20063
20064 # Used on cygwin: assembler.
20065 AS="$AS"
20066
20067 # The name of the directory that contains temporary libtool files.
20068 objdir=$objdir
20069
20070 # How to create reloadable object files.
20071 reload_flag=$lt_reload_flag
20072 reload_cmds=$lt_reload_cmds
20073
20074 # How to pass a linker flag through the compiler.
20075 wl=$lt_lt_prog_compiler_wl_RC
20076
20077 # Object file suffix (normally "o").
20078 objext="$ac_objext"
20079
20080 # Old archive suffix (normally "a").
20081 libext="$libext"
20082
20083 # Shared library suffix (normally ".so").
20084 shrext_cmds='$shrext_cmds'
20085
20086 # Executable file suffix (normally "").
20087 exeext="$exeext"
20088
20089 # Additional compiler flags for building library objects.
20090 pic_flag=$lt_lt_prog_compiler_pic_RC
20091 pic_mode=$pic_mode
20092
20093 # What is the maximum length of a command?
20094 max_cmd_len=$lt_cv_sys_max_cmd_len
20095
20096 # Does compiler simultaneously support -c and -o options?
20097 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
20098
20099 # Must we lock files when doing compilation?
20100 need_locks=$lt_need_locks
20101
20102 # Do we need the lib prefix for modules?
20103 need_lib_prefix=$need_lib_prefix
20104
20105 # Do we need a version for libraries?
20106 need_version=$need_version
20107
20108 # Whether dlopen is supported.
20109 dlopen_support=$enable_dlopen
20110
20111 # Whether dlopen of programs is supported.
20112 dlopen_self=$enable_dlopen_self
20113
20114 # Whether dlopen of statically linked programs is supported.
20115 dlopen_self_static=$enable_dlopen_self_static
20116
20117 # Compiler flag to prevent dynamic linking.
20118 link_static_flag=$lt_lt_prog_compiler_static_RC
20119
20120 # Compiler flag to turn off builtin functions.
20121 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
20122
20123 # Compiler flag to allow reflexive dlopens.
20124 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
20125
20126 # Compiler flag to generate shared objects directly from archives.
20127 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
20128
20129 # Compiler flag to generate thread-safe objects.
20130 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
20131
20132 # Library versioning type.
20133 version_type=$version_type
20134
20135 # Format of library name prefix.
20136 libname_spec=$lt_libname_spec
20137
20138 # List of archive names.  First name is the real one, the rest are links.
20139 # The last name is the one that the linker finds with -lNAME.
20140 library_names_spec=$lt_library_names_spec
20141
20142 # The coded name of the library, if different from the real name.
20143 soname_spec=$lt_soname_spec
20144
20145 # Commands used to build and install an old-style archive.
20146 RANLIB=$lt_RANLIB
20147 old_archive_cmds=$lt_old_archive_cmds_RC
20148 old_postinstall_cmds=$lt_old_postinstall_cmds
20149 old_postuninstall_cmds=$lt_old_postuninstall_cmds
20150
20151 # Create an old-style archive from a shared archive.
20152 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
20153
20154 # Create a temporary old-style archive to link instead of a shared archive.
20155 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
20156
20157 # Commands used to build and install a shared archive.
20158 archive_cmds=$lt_archive_cmds_RC
20159 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
20160 postinstall_cmds=$lt_postinstall_cmds
20161 postuninstall_cmds=$lt_postuninstall_cmds
20162
20163 # Commands used to build a loadable module (assumed same as above if empty)
20164 module_cmds=$lt_module_cmds_RC
20165 module_expsym_cmds=$lt_module_expsym_cmds_RC
20166
20167 # Commands to strip libraries.
20168 old_striplib=$lt_old_striplib
20169 striplib=$lt_striplib
20170
20171 # Dependencies to place before the objects being linked to create a
20172 # shared library.
20173 predep_objects=$lt_predep_objects_RC
20174
20175 # Dependencies to place after the objects being linked to create a
20176 # shared library.
20177 postdep_objects=$lt_postdep_objects_RC
20178
20179 # Dependencies to place before the objects being linked to create a
20180 # shared library.
20181 predeps=$lt_predeps_RC
20182
20183 # Dependencies to place after the objects being linked to create a
20184 # shared library.
20185 postdeps=$lt_postdeps_RC
20186
20187 # The library search path used internally by the compiler when linking
20188 # a shared library.
20189 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
20190
20191 # Method to check whether dependent libraries are shared objects.
20192 deplibs_check_method=$lt_deplibs_check_method
20193
20194 # Command to use when deplibs_check_method == file_magic.
20195 file_magic_cmd=$lt_file_magic_cmd
20196
20197 # Flag that allows shared libraries with undefined symbols to be built.
20198 allow_undefined_flag=$lt_allow_undefined_flag_RC
20199
20200 # Flag that forces no undefined symbols.
20201 no_undefined_flag=$lt_no_undefined_flag_RC
20202
20203 # Commands used to finish a libtool library installation in a directory.
20204 finish_cmds=$lt_finish_cmds
20205
20206 # Same as above, but a single script fragment to be evaled but not shown.
20207 finish_eval=$lt_finish_eval
20208
20209 # Take the output of nm and produce a listing of raw symbols and C names.
20210 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20211
20212 # Transform the output of nm in a proper C declaration
20213 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20214
20215 # Transform the output of nm in a C name address pair
20216 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20217
20218 # This is the shared library runtime path variable.
20219 runpath_var=$runpath_var
20220
20221 # This is the shared library path variable.
20222 shlibpath_var=$shlibpath_var
20223
20224 # Is shlibpath searched before the hard-coded library search path?
20225 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20226
20227 # How to hardcode a shared library path into an executable.
20228 hardcode_action=$hardcode_action_RC
20229
20230 # Whether we should hardcode library paths into libraries.
20231 hardcode_into_libs=$hardcode_into_libs
20232
20233 # Flag to hardcode \$libdir into a binary during linking.
20234 # This must work even if \$libdir does not exist.
20235 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
20236
20237 # If ld is used when linking, flag to hardcode \$libdir into
20238 # a binary during linking. This must work even if \$libdir does
20239 # not exist.
20240 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
20241
20242 # Whether we need a single -rpath flag with a separated argument.
20243 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
20244
20245 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20246 # resulting binary.
20247 hardcode_direct=$hardcode_direct_RC
20248
20249 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20250 # resulting binary.
20251 hardcode_minus_L=$hardcode_minus_L_RC
20252
20253 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20254 # the resulting binary.
20255 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
20256
20257 # Set to yes if building a shared library automatically hardcodes DIR into the library
20258 # and all subsequent libraries and executables linked against it.
20259 hardcode_automatic=$hardcode_automatic_RC
20260
20261 # Variables whose values should be saved in libtool wrapper scripts and
20262 # restored at relink time.
20263 variables_saved_for_relink="$variables_saved_for_relink"
20264
20265 # Whether libtool must link a program against all its dependency libraries.
20266 link_all_deplibs=$link_all_deplibs_RC
20267
20268 # Compile-time system search path for libraries
20269 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20270
20271 # Run-time system search path for libraries
20272 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20273
20274 # Fix the shell variable \$srcfile for the compiler.
20275 fix_srcfile_path="$fix_srcfile_path_RC"
20276
20277 # Set to yes if exported symbols are required.
20278 always_export_symbols=$always_export_symbols_RC
20279
20280 # The commands to list exported symbols.
20281 export_symbols_cmds=$lt_export_symbols_cmds_RC
20282
20283 # The commands to extract the exported symbol list from a shared archive.
20284 extract_expsyms_cmds=$lt_extract_expsyms_cmds
20285
20286 # Symbols that should not be listed in the preloaded symbols.
20287 exclude_expsyms=$lt_exclude_expsyms_RC
20288
20289 # Symbols that must always be exported.
20290 include_expsyms=$lt_include_expsyms_RC
20291
20292 # ### END LIBTOOL TAG CONFIG: $tagname
20293
20294 __EOF__
20295
20296
20297 else
20298   # If there is no Makefile yet, we rely on a make rule to execute
20299   # `config.status --recheck' to rerun these tests and create the
20300   # libtool script then.
20301   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20302   if test -f "$ltmain_in"; then
20303     test -f Makefile && make "$ltmain"
20304   fi
20305 fi
20306
20307
20308 ac_ext=c
20309 ac_cpp='$CPP $CPPFLAGS'
20310 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20311 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20312 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20313
20314 CC="$lt_save_CC"
20315
20316         ;;
20317
20318       *)
20319         { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
20320 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
20321    { (exit 1); exit 1; }; }
20322         ;;
20323       esac
20324
20325       # Append the new tag name to the list of available tags.
20326       if test -n "$tagname" ; then
20327       available_tags="$available_tags $tagname"
20328     fi
20329     fi
20330   done
20331   IFS="$lt_save_ifs"
20332
20333   # Now substitute the updated list of available tags.
20334   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
20335     mv "${ofile}T" "$ofile"
20336     chmod +x "$ofile"
20337   else
20338     rm -f "${ofile}T"
20339     { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
20340 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
20341    { (exit 1); exit 1; }; }
20342   fi
20343 fi
20344
20345
20346
20347 # This can be used to rebuild libtool when needed
20348 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
20349
20350 # Always use our own libtool.
20351 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
20352
20353 # Prevent multiple expansion
20354
20355
20356
20357
20358
20359
20360
20361
20362
20363
20364
20365   
20366
20367   
20368
20369
20370   
20371        
20372        
20373
20374
20375 if test "x$cross_compiling" = "xno"; then
20376         CC_FOR_BUILD=${CC_FOR_BUILD-${CC-gcc}}
20377 else
20378         CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
20379 fi
20380
20381
20382
20383 if test -n "$ac_tool_prefix"; then
20384   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
20385 set dummy ${ac_tool_prefix}ar; ac_word=$2
20386 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20387 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20388 if test "${ac_cv_prog_AR+set}" = set; then
20389   echo $ECHO_N "(cached) $ECHO_C" >&6
20390 else
20391   if test -n "$AR"; then
20392   ac_cv_prog_AR="$AR" # Let the user override the test.
20393 else
20394 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20395 for as_dir in $PATH
20396 do
20397   IFS=$as_save_IFS
20398   test -z "$as_dir" && as_dir=.
20399   for ac_exec_ext in '' $ac_executable_extensions; do
20400   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20401     ac_cv_prog_AR="${ac_tool_prefix}ar"
20402     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20403     break 2
20404   fi
20405 done
20406 done
20407 IFS=$as_save_IFS
20408
20409 fi
20410 fi
20411 AR=$ac_cv_prog_AR
20412 if test -n "$AR"; then
20413   { echo "$as_me:$LINENO: result: $AR" >&5
20414 echo "${ECHO_T}$AR" >&6; }
20415 else
20416   { echo "$as_me:$LINENO: result: no" >&5
20417 echo "${ECHO_T}no" >&6; }
20418 fi
20419
20420
20421 fi
20422 if test -z "$ac_cv_prog_AR"; then
20423   ac_ct_AR=$AR
20424   # Extract the first word of "ar", so it can be a program name with args.
20425 set dummy ar; ac_word=$2
20426 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20427 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20428 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
20429   echo $ECHO_N "(cached) $ECHO_C" >&6
20430 else
20431   if test -n "$ac_ct_AR"; then
20432   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
20433 else
20434 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20435 for as_dir in $PATH
20436 do
20437   IFS=$as_save_IFS
20438   test -z "$as_dir" && as_dir=.
20439   for ac_exec_ext in '' $ac_executable_extensions; do
20440   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20441     ac_cv_prog_ac_ct_AR="ar"
20442     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20443     break 2
20444   fi
20445 done
20446 done
20447 IFS=$as_save_IFS
20448
20449 fi
20450 fi
20451 ac_ct_AR=$ac_cv_prog_ac_ct_AR
20452 if test -n "$ac_ct_AR"; then
20453   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
20454 echo "${ECHO_T}$ac_ct_AR" >&6; }
20455 else
20456   { echo "$as_me:$LINENO: result: no" >&5
20457 echo "${ECHO_T}no" >&6; }
20458 fi
20459
20460   if test "x$ac_ct_AR" = x; then
20461     AR=""
20462   else
20463     case $cross_compiling:$ac_tool_warned in
20464 yes:)
20465 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
20466 whose name does not start with the host triplet.  If you think this
20467 configuration is useful to you, please write to autoconf@gnu.org." >&5
20468 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
20469 whose name does not start with the host triplet.  If you think this
20470 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
20471 ac_tool_warned=yes ;;
20472 esac
20473     AR=$ac_ct_AR
20474   fi
20475 else
20476   AR="$ac_cv_prog_AR"
20477 fi
20478
20479 if test -n "$ac_tool_prefix"; then
20480   # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
20481 set dummy ${ac_tool_prefix}ld; ac_word=$2
20482 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20483 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20484 if test "${ac_cv_prog_LD+set}" = set; then
20485   echo $ECHO_N "(cached) $ECHO_C" >&6
20486 else
20487   if test -n "$LD"; then
20488   ac_cv_prog_LD="$LD" # Let the user override the test.
20489 else
20490 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20491 for as_dir in $PATH
20492 do
20493   IFS=$as_save_IFS
20494   test -z "$as_dir" && as_dir=.
20495   for ac_exec_ext in '' $ac_executable_extensions; do
20496   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20497     ac_cv_prog_LD="${ac_tool_prefix}ld"
20498     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20499     break 2
20500   fi
20501 done
20502 done
20503 IFS=$as_save_IFS
20504
20505 fi
20506 fi
20507 LD=$ac_cv_prog_LD
20508 if test -n "$LD"; then
20509   { echo "$as_me:$LINENO: result: $LD" >&5
20510 echo "${ECHO_T}$LD" >&6; }
20511 else
20512   { echo "$as_me:$LINENO: result: no" >&5
20513 echo "${ECHO_T}no" >&6; }
20514 fi
20515
20516
20517 fi
20518 if test -z "$ac_cv_prog_LD"; then
20519   ac_ct_LD=$LD
20520   # Extract the first word of "ld", so it can be a program name with args.
20521 set dummy ld; ac_word=$2
20522 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20523 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20524 if test "${ac_cv_prog_ac_ct_LD+set}" = set; then
20525   echo $ECHO_N "(cached) $ECHO_C" >&6
20526 else
20527   if test -n "$ac_ct_LD"; then
20528   ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
20529 else
20530 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20531 for as_dir in $PATH
20532 do
20533   IFS=$as_save_IFS
20534   test -z "$as_dir" && as_dir=.
20535   for ac_exec_ext in '' $ac_executable_extensions; do
20536   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20537     ac_cv_prog_ac_ct_LD="ld"
20538     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20539     break 2
20540   fi
20541 done
20542 done
20543 IFS=$as_save_IFS
20544
20545 fi
20546 fi
20547 ac_ct_LD=$ac_cv_prog_ac_ct_LD
20548 if test -n "$ac_ct_LD"; then
20549   { echo "$as_me:$LINENO: result: $ac_ct_LD" >&5
20550 echo "${ECHO_T}$ac_ct_LD" >&6; }
20551 else
20552   { echo "$as_me:$LINENO: result: no" >&5
20553 echo "${ECHO_T}no" >&6; }
20554 fi
20555
20556   if test "x$ac_ct_LD" = x; then
20557     LD=""
20558   else
20559     case $cross_compiling:$ac_tool_warned in
20560 yes:)
20561 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
20562 whose name does not start with the host triplet.  If you think this
20563 configuration is useful to you, please write to autoconf@gnu.org." >&5
20564 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
20565 whose name does not start with the host triplet.  If you think this
20566 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
20567 ac_tool_warned=yes ;;
20568 esac
20569     LD=$ac_ct_LD
20570   fi
20571 else
20572   LD="$ac_cv_prog_LD"
20573 fi
20574
20575
20576 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
20577 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
20578 if test "${ac_cv_header_stdc+set}" = set; then
20579   echo $ECHO_N "(cached) $ECHO_C" >&6
20580 else
20581   cat >conftest.$ac_ext <<_ACEOF
20582 /* confdefs.h.  */
20583 _ACEOF
20584 cat confdefs.h >>conftest.$ac_ext
20585 cat >>conftest.$ac_ext <<_ACEOF
20586 /* end confdefs.h.  */
20587 #include <stdlib.h>
20588 #include <stdarg.h>
20589 #include <string.h>
20590 #include <float.h>
20591
20592 int
20593 main ()
20594 {
20595
20596   ;
20597   return 0;
20598 }
20599 _ACEOF
20600 rm -f conftest.$ac_objext
20601 if { (ac_try="$ac_compile"
20602 case "(($ac_try" in
20603   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20604   *) ac_try_echo=$ac_try;;
20605 esac
20606 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20607   (eval "$ac_compile") 2>conftest.er1
20608   ac_status=$?
20609   grep -v '^ *+' conftest.er1 >conftest.err
20610   rm -f conftest.er1
20611   cat conftest.err >&5
20612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20613   (exit $ac_status); } && {
20614          test -z "$ac_c_werror_flag" ||
20615          test ! -s conftest.err
20616        } && test -s conftest.$ac_objext; then
20617   ac_cv_header_stdc=yes
20618 else
20619   echo "$as_me: failed program was:" >&5
20620 sed 's/^/| /' conftest.$ac_ext >&5
20621
20622         ac_cv_header_stdc=no
20623 fi
20624
20625 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20626
20627 if test $ac_cv_header_stdc = yes; then
20628   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
20629   cat >conftest.$ac_ext <<_ACEOF
20630 /* confdefs.h.  */
20631 _ACEOF
20632 cat confdefs.h >>conftest.$ac_ext
20633 cat >>conftest.$ac_ext <<_ACEOF
20634 /* end confdefs.h.  */
20635 #include <string.h>
20636
20637 _ACEOF
20638 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20639   $EGREP "memchr" >/dev/null 2>&1; then
20640   :
20641 else
20642   ac_cv_header_stdc=no
20643 fi
20644 rm -f conftest*
20645
20646 fi
20647
20648 if test $ac_cv_header_stdc = yes; then
20649   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
20650   cat >conftest.$ac_ext <<_ACEOF
20651 /* confdefs.h.  */
20652 _ACEOF
20653 cat confdefs.h >>conftest.$ac_ext
20654 cat >>conftest.$ac_ext <<_ACEOF
20655 /* end confdefs.h.  */
20656 #include <stdlib.h>
20657
20658 _ACEOF
20659 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20660   $EGREP "free" >/dev/null 2>&1; then
20661   :
20662 else
20663   ac_cv_header_stdc=no
20664 fi
20665 rm -f conftest*
20666
20667 fi
20668
20669 if test $ac_cv_header_stdc = yes; then
20670   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
20671   if test "$cross_compiling" = yes; then
20672   :
20673 else
20674   cat >conftest.$ac_ext <<_ACEOF
20675 /* confdefs.h.  */
20676 _ACEOF
20677 cat confdefs.h >>conftest.$ac_ext
20678 cat >>conftest.$ac_ext <<_ACEOF
20679 /* end confdefs.h.  */
20680 #include <ctype.h>
20681 #include <stdlib.h>
20682 #if ((' ' & 0x0FF) == 0x020)
20683 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
20684 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
20685 #else
20686 # define ISLOWER(c) \
20687                    (('a' <= (c) && (c) <= 'i') \
20688                      || ('j' <= (c) && (c) <= 'r') \
20689                      || ('s' <= (c) && (c) <= 'z'))
20690 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
20691 #endif
20692
20693 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
20694 int
20695 main ()
20696 {
20697   int i;
20698   for (i = 0; i < 256; i++)
20699     if (XOR (islower (i), ISLOWER (i))
20700         || toupper (i) != TOUPPER (i))
20701       return 2;
20702   return 0;
20703 }
20704 _ACEOF
20705 rm -f conftest$ac_exeext
20706 if { (ac_try="$ac_link"
20707 case "(($ac_try" in
20708   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20709   *) ac_try_echo=$ac_try;;
20710 esac
20711 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20712   (eval "$ac_link") 2>&5
20713   ac_status=$?
20714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20715   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20716   { (case "(($ac_try" in
20717   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20718   *) ac_try_echo=$ac_try;;
20719 esac
20720 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20721   (eval "$ac_try") 2>&5
20722   ac_status=$?
20723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20724   (exit $ac_status); }; }; then
20725   :
20726 else
20727   echo "$as_me: program exited with status $ac_status" >&5
20728 echo "$as_me: failed program was:" >&5
20729 sed 's/^/| /' conftest.$ac_ext >&5
20730
20731 ( exit $ac_status )
20732 ac_cv_header_stdc=no
20733 fi
20734 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20735 fi
20736
20737
20738 fi
20739 fi
20740 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
20741 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
20742 if test $ac_cv_header_stdc = yes; then
20743   
20744 cat >>confdefs.h <<\_ACEOF
20745 @%:@define STDC_HEADERS 1
20746 _ACEOF
20747
20748 fi
20749
20750
20751   { echo "$as_me:$LINENO: checking for GNU libc2" >&5
20752 echo $ECHO_N "checking for GNU libc2... $ECHO_C" >&6; }
20753   if test "${knfsd_cv_glibc2+set}" = set; then
20754   echo $ECHO_N "(cached) $ECHO_C" >&6
20755 else
20756   cat >conftest.$ac_ext <<_ACEOF
20757 /* confdefs.h.  */
20758 _ACEOF
20759 cat confdefs.h >>conftest.$ac_ext
20760 cat >>conftest.$ac_ext <<_ACEOF
20761 /* end confdefs.h.  */
20762
20763       #include <features.h>
20764       #if !defined(__GLIBC__)
20765       # error Nope
20766       #endif
20767       
20768 _ACEOF
20769 if { (ac_try="$ac_cpp conftest.$ac_ext"
20770 case "(($ac_try" in
20771   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20772   *) ac_try_echo=$ac_try;;
20773 esac
20774 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20775   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20776   ac_status=$?
20777   grep -v '^ *+' conftest.er1 >conftest.err
20778   rm -f conftest.er1
20779   cat conftest.err >&5
20780   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20781   (exit $ac_status); } >/dev/null && {
20782          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20783          test ! -s conftest.err
20784        }; then
20785   knfsd_cv_glibc2=yes
20786 else
20787   echo "$as_me: failed program was:" >&5
20788 sed 's/^/| /' conftest.$ac_ext >&5
20789
20790   knfsd_cv_glibc2=no
20791 fi
20792
20793 rm -f conftest.err conftest.$ac_ext
20794 fi
20795
20796   { echo "$as_me:$LINENO: result: $knfsd_cv_glibc2" >&5
20797 echo "${ECHO_T}$knfsd_cv_glibc2" >&6; }
20798   if test $knfsd_cv_glibc2 = yes; then
20799     CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE"
20800     CPPFLAGS_FOR_BUILD="$CPPFLAGS_FOR_BUILD -D_GNU_SOURCE"
20801   fi
20802
20803
20804   { echo "$as_me:$LINENO: checking for BSD signal semantics" >&5
20805 echo $ECHO_N "checking for BSD signal semantics... $ECHO_C" >&6; }
20806   if test "${knfsd_cv_bsd_signals+set}" = set; then
20807   echo $ECHO_N "(cached) $ECHO_C" >&6
20808 else
20809   if test "$cross_compiling" = yes; then
20810   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
20811 See \`config.log' for more details." >&5
20812 echo "$as_me: error: cannot run test program while cross compiling
20813 See \`config.log' for more details." >&2;}
20814    { (exit 1); exit 1; }; }
20815 else
20816   cat >conftest.$ac_ext <<_ACEOF
20817 /* confdefs.h.  */
20818 _ACEOF
20819 cat confdefs.h >>conftest.$ac_ext
20820 cat >>conftest.$ac_ext <<_ACEOF
20821 /* end confdefs.h.  */
20822
20823         #include <signal.h>
20824         #include <unistd.h>
20825         #include <sys/wait.h>
20826
20827         static int counter = 0;
20828         static RETSIGTYPE handler(int num) { counter++; }
20829
20830         int main()
20831         {
20832                 int     s;
20833                 if ((s = fork()) < 0) return 1;
20834                 if (s != 0) {
20835                         if (wait(&s) < 0) return 1;
20836                         return WIFSIGNALED(s)? 1 : 0;
20837                 }
20838
20839                 signal(SIGHUP, handler);
20840                 kill(getpid(), SIGHUP); kill(getpid(), SIGHUP);
20841                 return (counter == 2)? 0 : 1;
20842         }
20843     
20844 _ACEOF
20845 rm -f conftest$ac_exeext
20846 if { (ac_try="$ac_link"
20847 case "(($ac_try" in
20848   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20849   *) ac_try_echo=$ac_try;;
20850 esac
20851 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20852   (eval "$ac_link") 2>&5
20853   ac_status=$?
20854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20855   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20856   { (case "(($ac_try" in
20857   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20858   *) ac_try_echo=$ac_try;;
20859 esac
20860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20861   (eval "$ac_try") 2>&5
20862   ac_status=$?
20863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20864   (exit $ac_status); }; }; then
20865   knfsd_cv_bsd_signals=yes
20866 else
20867   echo "$as_me: program exited with status $ac_status" >&5
20868 echo "$as_me: failed program was:" >&5
20869 sed 's/^/| /' conftest.$ac_ext >&5
20870
20871 ( exit $ac_status )
20872 knfsd_cv_bsd_signals=no
20873 fi
20874 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20875 fi
20876
20877
20878 fi
20879      { echo "$as_me:$LINENO: result: $knfsd_cv_bsd_signals" >&5
20880 echo "${ECHO_T}$knfsd_cv_bsd_signals" >&6; }
20881     test $knfsd_cv_bsd_signals = yes && 
20882 cat >>confdefs.h <<\_ACEOF
20883 @%:@define HAVE_BSD_SIGNALS 1
20884 _ACEOF
20885
20886
20887
20888 { echo "$as_me:$LINENO: checking for gethostbyname" >&5
20889 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; }
20890 if test "${ac_cv_func_gethostbyname+set}" = set; then
20891   echo $ECHO_N "(cached) $ECHO_C" >&6
20892 else
20893   cat >conftest.$ac_ext <<_ACEOF
20894 /* confdefs.h.  */
20895 _ACEOF
20896 cat confdefs.h >>conftest.$ac_ext
20897 cat >>conftest.$ac_ext <<_ACEOF
20898 /* end confdefs.h.  */
20899 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
20900    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20901 #define gethostbyname innocuous_gethostbyname
20902
20903 /* System header to define __stub macros and hopefully few prototypes,
20904     which can conflict with char gethostbyname (); below.
20905     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20906     <limits.h> exists even on freestanding compilers.  */
20907
20908 #ifdef __STDC__
20909 # include <limits.h>
20910 #else
20911 # include <assert.h>
20912 #endif
20913
20914 #undef gethostbyname
20915
20916 /* Override any GCC internal prototype to avoid an error.
20917    Use char because int might match the return type of a GCC
20918    builtin and then its argument prototype would still apply.  */
20919 #ifdef __cplusplus
20920 extern "C"
20921 #endif
20922 char gethostbyname ();
20923 /* The GNU C library defines this for functions which it implements
20924     to always fail with ENOSYS.  Some functions are actually named
20925     something starting with __ and the normal name is an alias.  */
20926 #if defined __stub_gethostbyname || defined __stub___gethostbyname
20927 choke me
20928 #endif
20929
20930 int
20931 main ()
20932 {
20933 return gethostbyname ();
20934   ;
20935   return 0;
20936 }
20937 _ACEOF
20938 rm -f conftest.$ac_objext conftest$ac_exeext
20939 if { (ac_try="$ac_link"
20940 case "(($ac_try" in
20941   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20942   *) ac_try_echo=$ac_try;;
20943 esac
20944 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20945   (eval "$ac_link") 2>conftest.er1
20946   ac_status=$?
20947   grep -v '^ *+' conftest.er1 >conftest.err
20948   rm -f conftest.er1
20949   cat conftest.err >&5
20950   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20951   (exit $ac_status); } && {
20952          test -z "$ac_c_werror_flag" ||
20953          test ! -s conftest.err
20954        } && test -s conftest$ac_exeext &&
20955        $as_test_x conftest$ac_exeext; then
20956   ac_cv_func_gethostbyname=yes
20957 else
20958   echo "$as_me: failed program was:" >&5
20959 sed 's/^/| /' conftest.$ac_ext >&5
20960
20961         ac_cv_func_gethostbyname=no
20962 fi
20963
20964 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20965       conftest$ac_exeext conftest.$ac_ext
20966 fi
20967 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
20968 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; }
20969 if test $ac_cv_func_gethostbyname = yes; then
20970   :
20971 else
20972   { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
20973 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; }
20974 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
20975   echo $ECHO_N "(cached) $ECHO_C" >&6
20976 else
20977   ac_check_lib_save_LIBS=$LIBS
20978 LIBS="-lnsl  $LIBS"
20979 cat >conftest.$ac_ext <<_ACEOF
20980 /* confdefs.h.  */
20981 _ACEOF
20982 cat confdefs.h >>conftest.$ac_ext
20983 cat >>conftest.$ac_ext <<_ACEOF
20984 /* end confdefs.h.  */
20985
20986 /* Override any GCC internal prototype to avoid an error.
20987    Use char because int might match the return type of a GCC
20988    builtin and then its argument prototype would still apply.  */
20989 #ifdef __cplusplus
20990 extern "C"
20991 #endif
20992 char gethostbyname ();
20993 int
20994 main ()
20995 {
20996 return gethostbyname ();
20997   ;
20998   return 0;
20999 }
21000 _ACEOF
21001 rm -f conftest.$ac_objext conftest$ac_exeext
21002 if { (ac_try="$ac_link"
21003 case "(($ac_try" in
21004   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21005   *) ac_try_echo=$ac_try;;
21006 esac
21007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21008   (eval "$ac_link") 2>conftest.er1
21009   ac_status=$?
21010   grep -v '^ *+' conftest.er1 >conftest.err
21011   rm -f conftest.er1
21012   cat conftest.err >&5
21013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21014   (exit $ac_status); } && {
21015          test -z "$ac_c_werror_flag" ||
21016          test ! -s conftest.err
21017        } && test -s conftest$ac_exeext &&
21018        $as_test_x conftest$ac_exeext; then
21019   ac_cv_lib_nsl_gethostbyname=yes
21020 else
21021   echo "$as_me: failed program was:" >&5
21022 sed 's/^/| /' conftest.$ac_ext >&5
21023
21024         ac_cv_lib_nsl_gethostbyname=no
21025 fi
21026
21027 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21028       conftest$ac_exeext conftest.$ac_ext
21029 LIBS=$ac_check_lib_save_LIBS
21030 fi
21031 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
21032 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; }
21033 if test $ac_cv_lib_nsl_gethostbyname = yes; then
21034   LIBNSL="-lnsl"
21035 fi
21036
21037 fi
21038
21039
21040
21041 { echo "$as_me:$LINENO: checking for connect" >&5
21042 echo $ECHO_N "checking for connect... $ECHO_C" >&6; }
21043 if test "${ac_cv_func_connect+set}" = set; then
21044   echo $ECHO_N "(cached) $ECHO_C" >&6
21045 else
21046   cat >conftest.$ac_ext <<_ACEOF
21047 /* confdefs.h.  */
21048 _ACEOF
21049 cat confdefs.h >>conftest.$ac_ext
21050 cat >>conftest.$ac_ext <<_ACEOF
21051 /* end confdefs.h.  */
21052 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
21053    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21054 #define connect innocuous_connect
21055
21056 /* System header to define __stub macros and hopefully few prototypes,
21057     which can conflict with char connect (); below.
21058     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21059     <limits.h> exists even on freestanding compilers.  */
21060
21061 #ifdef __STDC__
21062 # include <limits.h>
21063 #else
21064 # include <assert.h>
21065 #endif
21066
21067 #undef connect
21068
21069 /* Override any GCC internal prototype to avoid an error.
21070    Use char because int might match the return type of a GCC
21071    builtin and then its argument prototype would still apply.  */
21072 #ifdef __cplusplus
21073 extern "C"
21074 #endif
21075 char connect ();
21076 /* The GNU C library defines this for functions which it implements
21077     to always fail with ENOSYS.  Some functions are actually named
21078     something starting with __ and the normal name is an alias.  */
21079 #if defined __stub_connect || defined __stub___connect
21080 choke me
21081 #endif
21082
21083 int
21084 main ()
21085 {
21086 return connect ();
21087   ;
21088   return 0;
21089 }
21090 _ACEOF
21091 rm -f conftest.$ac_objext conftest$ac_exeext
21092 if { (ac_try="$ac_link"
21093 case "(($ac_try" in
21094   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21095   *) ac_try_echo=$ac_try;;
21096 esac
21097 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21098   (eval "$ac_link") 2>conftest.er1
21099   ac_status=$?
21100   grep -v '^ *+' conftest.er1 >conftest.err
21101   rm -f conftest.er1
21102   cat conftest.err >&5
21103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21104   (exit $ac_status); } && {
21105          test -z "$ac_c_werror_flag" ||
21106          test ! -s conftest.err
21107        } && test -s conftest$ac_exeext &&
21108        $as_test_x conftest$ac_exeext; then
21109   ac_cv_func_connect=yes
21110 else
21111   echo "$as_me: failed program was:" >&5
21112 sed 's/^/| /' conftest.$ac_ext >&5
21113
21114         ac_cv_func_connect=no
21115 fi
21116
21117 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21118       conftest$ac_exeext conftest.$ac_ext
21119 fi
21120 { echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
21121 echo "${ECHO_T}$ac_cv_func_connect" >&6; }
21122 if test $ac_cv_func_connect = yes; then
21123   :
21124 else
21125   { echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
21126 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6; }
21127 if test "${ac_cv_lib_socket_connect+set}" = set; then
21128   echo $ECHO_N "(cached) $ECHO_C" >&6
21129 else
21130   ac_check_lib_save_LIBS=$LIBS
21131 LIBS="-lsocket $LIBNSL $LIBS"
21132 cat >conftest.$ac_ext <<_ACEOF
21133 /* confdefs.h.  */
21134 _ACEOF
21135 cat confdefs.h >>conftest.$ac_ext
21136 cat >>conftest.$ac_ext <<_ACEOF
21137 /* end confdefs.h.  */
21138
21139 /* Override any GCC internal prototype to avoid an error.
21140    Use char because int might match the return type of a GCC
21141    builtin and then its argument prototype would still apply.  */
21142 #ifdef __cplusplus
21143 extern "C"
21144 #endif
21145 char connect ();
21146 int
21147 main ()
21148 {
21149 return connect ();
21150   ;
21151   return 0;
21152 }
21153 _ACEOF
21154 rm -f conftest.$ac_objext conftest$ac_exeext
21155 if { (ac_try="$ac_link"
21156 case "(($ac_try" in
21157   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21158   *) ac_try_echo=$ac_try;;
21159 esac
21160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21161   (eval "$ac_link") 2>conftest.er1
21162   ac_status=$?
21163   grep -v '^ *+' conftest.er1 >conftest.err
21164   rm -f conftest.er1
21165   cat conftest.err >&5
21166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21167   (exit $ac_status); } && {
21168          test -z "$ac_c_werror_flag" ||
21169          test ! -s conftest.err
21170        } && test -s conftest$ac_exeext &&
21171        $as_test_x conftest$ac_exeext; then
21172   ac_cv_lib_socket_connect=yes
21173 else
21174   echo "$as_me: failed program was:" >&5
21175 sed 's/^/| /' conftest.$ac_ext >&5
21176
21177         ac_cv_lib_socket_connect=no
21178 fi
21179
21180 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21181       conftest$ac_exeext conftest.$ac_ext
21182 LIBS=$ac_check_lib_save_LIBS
21183 fi
21184 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
21185 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6; }
21186 if test $ac_cv_lib_socket_connect = yes; then
21187   LIBSOCKET="-lsocket"
21188 else
21189   { { echo "$as_me:$LINENO: error: Function 'socket' not found." >&5
21190 echo "$as_me: error: Function 'socket' not found." >&2;}
21191    { (exit 1); exit 1; }; }
21192 fi
21193
21194 fi
21195
21196
21197 { echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
21198 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6; }
21199 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
21200   echo $ECHO_N "(cached) $ECHO_C" >&6
21201 else
21202   ac_check_lib_save_LIBS=$LIBS
21203 LIBS="-lcrypt  $LIBS"
21204 cat >conftest.$ac_ext <<_ACEOF
21205 /* confdefs.h.  */
21206 _ACEOF
21207 cat confdefs.h >>conftest.$ac_ext
21208 cat >>conftest.$ac_ext <<_ACEOF
21209 /* end confdefs.h.  */
21210
21211 /* Override any GCC internal prototype to avoid an error.
21212    Use char because int might match the return type of a GCC
21213    builtin and then its argument prototype would still apply.  */
21214 #ifdef __cplusplus
21215 extern "C"
21216 #endif
21217 char crypt ();
21218 int
21219 main ()
21220 {
21221 return crypt ();
21222   ;
21223   return 0;
21224 }
21225 _ACEOF
21226 rm -f conftest.$ac_objext conftest$ac_exeext
21227 if { (ac_try="$ac_link"
21228 case "(($ac_try" in
21229   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21230   *) ac_try_echo=$ac_try;;
21231 esac
21232 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21233   (eval "$ac_link") 2>conftest.er1
21234   ac_status=$?
21235   grep -v '^ *+' conftest.er1 >conftest.err
21236   rm -f conftest.er1
21237   cat conftest.err >&5
21238   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21239   (exit $ac_status); } && {
21240          test -z "$ac_c_werror_flag" ||
21241          test ! -s conftest.err
21242        } && test -s conftest$ac_exeext &&
21243        $as_test_x conftest$ac_exeext; then
21244   ac_cv_lib_crypt_crypt=yes
21245 else
21246   echo "$as_me: failed program was:" >&5
21247 sed 's/^/| /' conftest.$ac_ext >&5
21248
21249         ac_cv_lib_crypt_crypt=no
21250 fi
21251
21252 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21253       conftest$ac_exeext conftest.$ac_ext
21254 LIBS=$ac_check_lib_save_LIBS
21255 fi
21256 { echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
21257 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6; }
21258 if test $ac_cv_lib_crypt_crypt = yes; then
21259   LIBCRYPT="-lcrypt"
21260 fi
21261
21262 if test "$enable_nfsv4" = yes; then
21263     { echo "$as_me:$LINENO: checking for event_dispatch in -levent" >&5
21264 echo $ECHO_N "checking for event_dispatch in -levent... $ECHO_C" >&6; }
21265 if test "${ac_cv_lib_event_event_dispatch+set}" = set; then
21266   echo $ECHO_N "(cached) $ECHO_C" >&6
21267 else
21268   ac_check_lib_save_LIBS=$LIBS
21269 LIBS="-levent  $LIBS"
21270 cat >conftest.$ac_ext <<_ACEOF
21271 /* confdefs.h.  */
21272 _ACEOF
21273 cat confdefs.h >>conftest.$ac_ext
21274 cat >>conftest.$ac_ext <<_ACEOF
21275 /* end confdefs.h.  */
21276
21277 /* Override any GCC internal prototype to avoid an error.
21278    Use char because int might match the return type of a GCC
21279    builtin and then its argument prototype would still apply.  */
21280 #ifdef __cplusplus
21281 extern "C"
21282 #endif
21283 char event_dispatch ();
21284 int
21285 main ()
21286 {
21287 return event_dispatch ();
21288   ;
21289   return 0;
21290 }
21291 _ACEOF
21292 rm -f conftest.$ac_objext conftest$ac_exeext
21293 if { (ac_try="$ac_link"
21294 case "(($ac_try" in
21295   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21296   *) ac_try_echo=$ac_try;;
21297 esac
21298 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21299   (eval "$ac_link") 2>conftest.er1
21300   ac_status=$?
21301   grep -v '^ *+' conftest.er1 >conftest.err
21302   rm -f conftest.er1
21303   cat conftest.err >&5
21304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21305   (exit $ac_status); } && {
21306          test -z "$ac_c_werror_flag" ||
21307          test ! -s conftest.err
21308        } && test -s conftest$ac_exeext &&
21309        $as_test_x conftest$ac_exeext; then
21310   ac_cv_lib_event_event_dispatch=yes
21311 else
21312   echo "$as_me: failed program was:" >&5
21313 sed 's/^/| /' conftest.$ac_ext >&5
21314
21315         ac_cv_lib_event_event_dispatch=no
21316 fi
21317
21318 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21319       conftest$ac_exeext conftest.$ac_ext
21320 LIBS=$ac_check_lib_save_LIBS
21321 fi
21322 { echo "$as_me:$LINENO: result: $ac_cv_lib_event_event_dispatch" >&5
21323 echo "${ECHO_T}$ac_cv_lib_event_event_dispatch" >&6; }
21324 if test $ac_cv_lib_event_event_dispatch = yes; then
21325   libevent=1
21326 else
21327   { { echo "$as_me:$LINENO: error: libevent needed for nfsv4 support" >&5
21328 echo "$as_me: error: libevent needed for nfsv4 support" >&2;}
21329    { (exit 1); exit 1; }; }
21330 fi
21331
21332     { echo "$as_me:$LINENO: checking for nfs4_init_name_mapping in -lnfsidmap" >&5
21333 echo $ECHO_N "checking for nfs4_init_name_mapping in -lnfsidmap... $ECHO_C" >&6; }
21334 if test "${ac_cv_lib_nfsidmap_nfs4_init_name_mapping+set}" = set; then
21335   echo $ECHO_N "(cached) $ECHO_C" >&6
21336 else
21337   ac_check_lib_save_LIBS=$LIBS
21338 LIBS="-lnfsidmap  $LIBS"
21339 cat >conftest.$ac_ext <<_ACEOF
21340 /* confdefs.h.  */
21341 _ACEOF
21342 cat confdefs.h >>conftest.$ac_ext
21343 cat >>conftest.$ac_ext <<_ACEOF
21344 /* end confdefs.h.  */
21345
21346 /* Override any GCC internal prototype to avoid an error.
21347    Use char because int might match the return type of a GCC
21348    builtin and then its argument prototype would still apply.  */
21349 #ifdef __cplusplus
21350 extern "C"
21351 #endif
21352 char nfs4_init_name_mapping ();
21353 int
21354 main ()
21355 {
21356 return nfs4_init_name_mapping ();
21357   ;
21358   return 0;
21359 }
21360 _ACEOF
21361 rm -f conftest.$ac_objext conftest$ac_exeext
21362 if { (ac_try="$ac_link"
21363 case "(($ac_try" in
21364   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21365   *) ac_try_echo=$ac_try;;
21366 esac
21367 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21368   (eval "$ac_link") 2>conftest.er1
21369   ac_status=$?
21370   grep -v '^ *+' conftest.er1 >conftest.err
21371   rm -f conftest.er1
21372   cat conftest.err >&5
21373   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21374   (exit $ac_status); } && {
21375          test -z "$ac_c_werror_flag" ||
21376          test ! -s conftest.err
21377        } && test -s conftest$ac_exeext &&
21378        $as_test_x conftest$ac_exeext; then
21379   ac_cv_lib_nfsidmap_nfs4_init_name_mapping=yes
21380 else
21381   echo "$as_me: failed program was:" >&5
21382 sed 's/^/| /' conftest.$ac_ext >&5
21383
21384         ac_cv_lib_nfsidmap_nfs4_init_name_mapping=no
21385 fi
21386
21387 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21388       conftest$ac_exeext conftest.$ac_ext
21389 LIBS=$ac_check_lib_save_LIBS
21390 fi
21391 { echo "$as_me:$LINENO: result: $ac_cv_lib_nfsidmap_nfs4_init_name_mapping" >&5
21392 echo "${ECHO_T}$ac_cv_lib_nfsidmap_nfs4_init_name_mapping" >&6; }
21393 if test $ac_cv_lib_nfsidmap_nfs4_init_name_mapping = yes; then
21394   libnfsidmap=1
21395 else
21396   { { echo "$as_me:$LINENO: error: libnfsidmap needed for nfsv4 support" >&5
21397 echo "$as_me: error: libnfsidmap needed for nfsv4 support" >&2;}
21398    { (exit 1); exit 1; }; }
21399 fi
21400
21401     
21402 for ac_header in event.h
21403 do
21404 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21405 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21406   { echo "$as_me:$LINENO: checking for $ac_header" >&5
21407 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21408 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21409   echo $ECHO_N "(cached) $ECHO_C" >&6
21410 fi
21411 ac_res=`eval echo '${'$as_ac_Header'}'`
21412                { echo "$as_me:$LINENO: result: $ac_res" >&5
21413 echo "${ECHO_T}$ac_res" >&6; }
21414 else
21415   # Is the header compilable?
21416 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21417 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21418 cat >conftest.$ac_ext <<_ACEOF
21419 /* confdefs.h.  */
21420 _ACEOF
21421 cat confdefs.h >>conftest.$ac_ext
21422 cat >>conftest.$ac_ext <<_ACEOF
21423 /* end confdefs.h.  */
21424 $ac_includes_default
21425 @%:@include <$ac_header>
21426 _ACEOF
21427 rm -f conftest.$ac_objext
21428 if { (ac_try="$ac_compile"
21429 case "(($ac_try" in
21430   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21431   *) ac_try_echo=$ac_try;;
21432 esac
21433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21434   (eval "$ac_compile") 2>conftest.er1
21435   ac_status=$?
21436   grep -v '^ *+' conftest.er1 >conftest.err
21437   rm -f conftest.er1
21438   cat conftest.err >&5
21439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21440   (exit $ac_status); } && {
21441          test -z "$ac_c_werror_flag" ||
21442          test ! -s conftest.err
21443        } && test -s conftest.$ac_objext; then
21444   ac_header_compiler=yes
21445 else
21446   echo "$as_me: failed program was:" >&5
21447 sed 's/^/| /' conftest.$ac_ext >&5
21448
21449         ac_header_compiler=no
21450 fi
21451
21452 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21453 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21454 echo "${ECHO_T}$ac_header_compiler" >&6; }
21455
21456 # Is the header present?
21457 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21458 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21459 cat >conftest.$ac_ext <<_ACEOF
21460 /* confdefs.h.  */
21461 _ACEOF
21462 cat confdefs.h >>conftest.$ac_ext
21463 cat >>conftest.$ac_ext <<_ACEOF
21464 /* end confdefs.h.  */
21465 @%:@include <$ac_header>
21466 _ACEOF
21467 if { (ac_try="$ac_cpp conftest.$ac_ext"
21468 case "(($ac_try" in
21469   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21470   *) ac_try_echo=$ac_try;;
21471 esac
21472 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21473   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21474   ac_status=$?
21475   grep -v '^ *+' conftest.er1 >conftest.err
21476   rm -f conftest.er1
21477   cat conftest.err >&5
21478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21479   (exit $ac_status); } >/dev/null && {
21480          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21481          test ! -s conftest.err
21482        }; then
21483   ac_header_preproc=yes
21484 else
21485   echo "$as_me: failed program was:" >&5
21486 sed 's/^/| /' conftest.$ac_ext >&5
21487
21488   ac_header_preproc=no
21489 fi
21490
21491 rm -f conftest.err conftest.$ac_ext
21492 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21493 echo "${ECHO_T}$ac_header_preproc" >&6; }
21494
21495 # So?  What about this header?
21496 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21497   yes:no: )
21498     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21499 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21500     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21501 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21502     ac_header_preproc=yes
21503     ;;
21504   no:yes:* )
21505     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21506 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21507     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
21508 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
21509     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21510 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21511     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
21512 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
21513     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21514 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21515     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21516 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21517     ( cat <<\_ASBOX
21518 @%:@@%:@ ------------------------------- @%:@@%:@
21519 @%:@@%:@ Report this to nfs@lists.sf.net @%:@@%:@
21520 @%:@@%:@ ------------------------------- @%:@@%:@
21521 _ASBOX
21522      ) | sed "s/^/$as_me: WARNING:     /" >&2
21523     ;;
21524 esac
21525 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21526 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21527 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21528   echo $ECHO_N "(cached) $ECHO_C" >&6
21529 else
21530   eval "$as_ac_Header=\$ac_header_preproc"
21531 fi
21532 ac_res=`eval echo '${'$as_ac_Header'}'`
21533                { echo "$as_me:$LINENO: result: $ac_res" >&5
21534 echo "${ECHO_T}$ac_res" >&6; }
21535
21536 fi
21537 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21538   cat >>confdefs.h <<_ACEOF
21539 @%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21540 _ACEOF
21541  
21542 else
21543   { { echo "$as_me:$LINENO: error: libevent needed for nfsv4 support" >&5
21544 echo "$as_me: error: libevent needed for nfsv4 support" >&2;}
21545    { (exit 1); exit 1; }; }
21546 fi
21547
21548 done
21549
21550     
21551 for ac_header in nfsidmap.h
21552 do
21553 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21554 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21555   { echo "$as_me:$LINENO: checking for $ac_header" >&5
21556 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21557 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21558   echo $ECHO_N "(cached) $ECHO_C" >&6
21559 fi
21560 ac_res=`eval echo '${'$as_ac_Header'}'`
21561                { echo "$as_me:$LINENO: result: $ac_res" >&5
21562 echo "${ECHO_T}$ac_res" >&6; }
21563 else
21564   # Is the header compilable?
21565 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21566 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21567 cat >conftest.$ac_ext <<_ACEOF
21568 /* confdefs.h.  */
21569 _ACEOF
21570 cat confdefs.h >>conftest.$ac_ext
21571 cat >>conftest.$ac_ext <<_ACEOF
21572 /* end confdefs.h.  */
21573 $ac_includes_default
21574 @%:@include <$ac_header>
21575 _ACEOF
21576 rm -f conftest.$ac_objext
21577 if { (ac_try="$ac_compile"
21578 case "(($ac_try" in
21579   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21580   *) ac_try_echo=$ac_try;;
21581 esac
21582 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21583   (eval "$ac_compile") 2>conftest.er1
21584   ac_status=$?
21585   grep -v '^ *+' conftest.er1 >conftest.err
21586   rm -f conftest.er1
21587   cat conftest.err >&5
21588   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21589   (exit $ac_status); } && {
21590          test -z "$ac_c_werror_flag" ||
21591          test ! -s conftest.err
21592        } && test -s conftest.$ac_objext; then
21593   ac_header_compiler=yes
21594 else
21595   echo "$as_me: failed program was:" >&5
21596 sed 's/^/| /' conftest.$ac_ext >&5
21597
21598         ac_header_compiler=no
21599 fi
21600
21601 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21602 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21603 echo "${ECHO_T}$ac_header_compiler" >&6; }
21604
21605 # Is the header present?
21606 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21607 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21608 cat >conftest.$ac_ext <<_ACEOF
21609 /* confdefs.h.  */
21610 _ACEOF
21611 cat confdefs.h >>conftest.$ac_ext
21612 cat >>conftest.$ac_ext <<_ACEOF
21613 /* end confdefs.h.  */
21614 @%:@include <$ac_header>
21615 _ACEOF
21616 if { (ac_try="$ac_cpp conftest.$ac_ext"
21617 case "(($ac_try" in
21618   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21619   *) ac_try_echo=$ac_try;;
21620 esac
21621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21622   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21623   ac_status=$?
21624   grep -v '^ *+' conftest.er1 >conftest.err
21625   rm -f conftest.er1
21626   cat conftest.err >&5
21627   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21628   (exit $ac_status); } >/dev/null && {
21629          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21630          test ! -s conftest.err
21631        }; then
21632   ac_header_preproc=yes
21633 else
21634   echo "$as_me: failed program was:" >&5
21635 sed 's/^/| /' conftest.$ac_ext >&5
21636
21637   ac_header_preproc=no
21638 fi
21639
21640 rm -f conftest.err conftest.$ac_ext
21641 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21642 echo "${ECHO_T}$ac_header_preproc" >&6; }
21643
21644 # So?  What about this header?
21645 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21646   yes:no: )
21647     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21648 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21649     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21650 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21651     ac_header_preproc=yes
21652     ;;
21653   no:yes:* )
21654     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21655 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21656     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
21657 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
21658     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21659 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21660     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
21661 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
21662     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21663 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21664     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21665 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21666     ( cat <<\_ASBOX
21667 @%:@@%:@ ------------------------------- @%:@@%:@
21668 @%:@@%:@ Report this to nfs@lists.sf.net @%:@@%:@
21669 @%:@@%:@ ------------------------------- @%:@@%:@
21670 _ASBOX
21671      ) | sed "s/^/$as_me: WARNING:     /" >&2
21672     ;;
21673 esac
21674 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21675 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21676 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21677   echo $ECHO_N "(cached) $ECHO_C" >&6
21678 else
21679   eval "$as_ac_Header=\$ac_header_preproc"
21680 fi
21681 ac_res=`eval echo '${'$as_ac_Header'}'`
21682                { echo "$as_me:$LINENO: result: $ac_res" >&5
21683 echo "${ECHO_T}$ac_res" >&6; }
21684
21685 fi
21686 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21687   cat >>confdefs.h <<_ACEOF
21688 @%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21689 _ACEOF
21690  
21691 else
21692   { { echo "$as_me:$LINENO: error: libnfsidmap needed for nfsv4 support" >&5
21693 echo "$as_me: error: libnfsidmap needed for nfsv4 support" >&2;}
21694    { (exit 1); exit 1; }; }
21695 fi
21696
21697 done
21698
21699             if test "$enable_gss" = yes; then
21700      
21701
21702 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
21703         if test -n "$ac_tool_prefix"; then
21704   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
21705 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
21706 { echo "$as_me:$LINENO: checking for $ac_word" >&5
21707 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
21708 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
21709   echo $ECHO_N "(cached) $ECHO_C" >&6
21710 else
21711   case $PKG_CONFIG in
21712   [\\/]* | ?:[\\/]*)
21713   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
21714   ;;
21715   *)
21716   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21717 for as_dir in $PATH
21718 do
21719   IFS=$as_save_IFS
21720   test -z "$as_dir" && as_dir=.
21721   for ac_exec_ext in '' $ac_executable_extensions; do
21722   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21723     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
21724     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21725     break 2
21726   fi
21727 done
21728 done
21729 IFS=$as_save_IFS
21730
21731   ;;
21732 esac
21733 fi
21734 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
21735 if test -n "$PKG_CONFIG"; then
21736   { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
21737 echo "${ECHO_T}$PKG_CONFIG" >&6; }
21738 else
21739   { echo "$as_me:$LINENO: result: no" >&5
21740 echo "${ECHO_T}no" >&6; }
21741 fi
21742
21743
21744 fi
21745 if test -z "$ac_cv_path_PKG_CONFIG"; then
21746   ac_pt_PKG_CONFIG=$PKG_CONFIG
21747   # Extract the first word of "pkg-config", so it can be a program name with args.
21748 set dummy pkg-config; ac_word=$2
21749 { echo "$as_me:$LINENO: checking for $ac_word" >&5
21750 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
21751 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
21752   echo $ECHO_N "(cached) $ECHO_C" >&6
21753 else
21754   case $ac_pt_PKG_CONFIG in
21755   [\\/]* | ?:[\\/]*)
21756   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
21757   ;;
21758   *)
21759   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21760 for as_dir in $PATH
21761 do
21762   IFS=$as_save_IFS
21763   test -z "$as_dir" && as_dir=.
21764   for ac_exec_ext in '' $ac_executable_extensions; do
21765   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21766     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
21767     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21768     break 2
21769   fi
21770 done
21771 done
21772 IFS=$as_save_IFS
21773
21774   ;;
21775 esac
21776 fi
21777 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
21778 if test -n "$ac_pt_PKG_CONFIG"; then
21779   { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
21780 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
21781 else
21782   { echo "$as_me:$LINENO: result: no" >&5
21783 echo "${ECHO_T}no" >&6; }
21784 fi
21785
21786   if test "x$ac_pt_PKG_CONFIG" = x; then
21787     PKG_CONFIG=""
21788   else
21789     case $cross_compiling:$ac_tool_warned in
21790 yes:)
21791 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
21792 whose name does not start with the host triplet.  If you think this
21793 configuration is useful to you, please write to autoconf@gnu.org." >&5
21794 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
21795 whose name does not start with the host triplet.  If you think this
21796 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
21797 ac_tool_warned=yes ;;
21798 esac
21799     PKG_CONFIG=$ac_pt_PKG_CONFIG
21800   fi
21801 else
21802   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
21803 fi
21804
21805 fi
21806 if test -n "$PKG_CONFIG"; then
21807         _pkg_min_version=0.9.0
21808         { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
21809 echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
21810         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
21811                 { echo "$as_me:$LINENO: result: yes" >&5
21812 echo "${ECHO_T}yes" >&6; }
21813         else
21814                 { echo "$as_me:$LINENO: result: no" >&5
21815 echo "${ECHO_T}no" >&6; }
21816                 PKG_CONFIG=""
21817         fi
21818                 
21819 fi
21820
21821 pkg_failed=no
21822 { echo "$as_me:$LINENO: checking for RPCSECGSS" >&5
21823 echo $ECHO_N "checking for RPCSECGSS... $ECHO_C" >&6; }
21824
21825 if test -n "$PKG_CONFIG"; then
21826     if test -n "$RPCSECGSS_CFLAGS"; then
21827         pkg_cv_RPCSECGSS_CFLAGS="$RPCSECGSS_CFLAGS"
21828     else
21829         if test -n "$PKG_CONFIG" && \
21830     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"librpcsecgss >= 0.10\"") >&5
21831   ($PKG_CONFIG --exists --print-errors "librpcsecgss >= 0.10") 2>&5
21832   ac_status=$?
21833   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21834   (exit $ac_status); }; then
21835   pkg_cv_RPCSECGSS_CFLAGS=`$PKG_CONFIG --cflags "librpcsecgss >= 0.10" 2>/dev/null`
21836 else
21837   pkg_failed=yes
21838 fi
21839     fi
21840 else
21841         pkg_failed=untried
21842 fi
21843 if test -n "$PKG_CONFIG"; then
21844     if test -n "$RPCSECGSS_LIBS"; then
21845         pkg_cv_RPCSECGSS_LIBS="$RPCSECGSS_LIBS"
21846     else
21847         if test -n "$PKG_CONFIG" && \
21848     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"librpcsecgss >= 0.10\"") >&5
21849   ($PKG_CONFIG --exists --print-errors "librpcsecgss >= 0.10") 2>&5
21850   ac_status=$?
21851   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21852   (exit $ac_status); }; then
21853   pkg_cv_RPCSECGSS_LIBS=`$PKG_CONFIG --libs "librpcsecgss >= 0.10" 2>/dev/null`
21854 else
21855   pkg_failed=yes
21856 fi
21857     fi
21858 else
21859         pkg_failed=untried
21860 fi
21861
21862
21863
21864 if test $pkg_failed = yes; then
21865         
21866 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
21867         _pkg_short_errors_supported=yes
21868 else
21869         _pkg_short_errors_supported=no
21870 fi
21871         if test $_pkg_short_errors_supported = yes; then
21872                 RPCSECGSS_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "librpcsecgss >= 0.10"`
21873         else 
21874                 RPCSECGSS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "librpcsecgss >= 0.10"`
21875         fi
21876         # Put the nasty error message in config.log where it belongs
21877         echo "$RPCSECGSS_PKG_ERRORS" >&5
21878
21879         { echo "$as_me:$LINENO: result: no" >&5
21880 echo "${ECHO_T}no" >&6; }
21881                 { { 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
21882 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;}
21883    { (exit 1); exit 1; }; }
21884       
21885      
21886 elif test $pkg_failed = untried; then
21887         { { 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
21888 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;}
21889    { (exit 1); exit 1; }; }
21890       
21891      
21892 else
21893         RPCSECGSS_CFLAGS=$pkg_cv_RPCSECGSS_CFLAGS
21894         RPCSECGSS_LIBS=$pkg_cv_RPCSECGSS_LIBS
21895         { echo "$as_me:$LINENO: result: yes" >&5
21896 echo "${ECHO_T}yes" >&6; }
21897         :
21898 fi
21899     
21900 pkg_failed=no
21901 { echo "$as_me:$LINENO: checking for GSSAPI" >&5
21902 echo $ECHO_N "checking for GSSAPI... $ECHO_C" >&6; }
21903
21904 if test -n "$PKG_CONFIG"; then
21905     if test -n "$GSSAPI_CFLAGS"; then
21906         pkg_cv_GSSAPI_CFLAGS="$GSSAPI_CFLAGS"
21907     else
21908         if test -n "$PKG_CONFIG" && \
21909     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libgssapi >= 0.9\"") >&5
21910   ($PKG_CONFIG --exists --print-errors "libgssapi >= 0.9") 2>&5
21911   ac_status=$?
21912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21913   (exit $ac_status); }; then
21914   pkg_cv_GSSAPI_CFLAGS=`$PKG_CONFIG --cflags "libgssapi >= 0.9" 2>/dev/null`
21915 else
21916   pkg_failed=yes
21917 fi
21918     fi
21919 else
21920         pkg_failed=untried
21921 fi
21922 if test -n "$PKG_CONFIG"; then
21923     if test -n "$GSSAPI_LIBS"; then
21924         pkg_cv_GSSAPI_LIBS="$GSSAPI_LIBS"
21925     else
21926         if test -n "$PKG_CONFIG" && \
21927     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libgssapi >= 0.9\"") >&5
21928   ($PKG_CONFIG --exists --print-errors "libgssapi >= 0.9") 2>&5
21929   ac_status=$?
21930   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21931   (exit $ac_status); }; then
21932   pkg_cv_GSSAPI_LIBS=`$PKG_CONFIG --libs "libgssapi >= 0.9" 2>/dev/null`
21933 else
21934   pkg_failed=yes
21935 fi
21936     fi
21937 else
21938         pkg_failed=untried
21939 fi
21940
21941
21942
21943 if test $pkg_failed = yes; then
21944         
21945 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
21946         _pkg_short_errors_supported=yes
21947 else
21948         _pkg_short_errors_supported=no
21949 fi
21950         if test $_pkg_short_errors_supported = yes; then
21951                 GSSAPI_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libgssapi >= 0.9"`
21952         else 
21953                 GSSAPI_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libgssapi >= 0.9"`
21954         fi
21955         # Put the nasty error message in config.log where it belongs
21956         echo "$GSSAPI_PKG_ERRORS" >&5
21957
21958         { { echo "$as_me:$LINENO: error: Package requirements (libgssapi >= 0.9) were not met:
21959
21960 $GSSAPI_PKG_ERRORS
21961
21962 Consider adjusting the PKG_CONFIG_PATH environment variable if you
21963 installed software in a non-standard prefix.
21964
21965 Alternatively, you may set the environment variables GSSAPI_CFLAGS
21966 and GSSAPI_LIBS to avoid the need to call pkg-config.
21967 See the pkg-config man page for more details.
21968 " >&5
21969 echo "$as_me: error: Package requirements (libgssapi >= 0.9) were not met:
21970
21971 $GSSAPI_PKG_ERRORS
21972
21973 Consider adjusting the PKG_CONFIG_PATH environment variable if you
21974 installed software in a non-standard prefix.
21975
21976 Alternatively, you may set the environment variables GSSAPI_CFLAGS
21977 and GSSAPI_LIBS to avoid the need to call pkg-config.
21978 See the pkg-config man page for more details.
21979 " >&2;}
21980    { (exit 1); exit 1; }; }
21981 elif test $pkg_failed = untried; then
21982         { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
21983 is in your PATH or set the PKG_CONFIG environment variable to the full
21984 path to pkg-config.
21985
21986 Alternatively, you may set the environment variables GSSAPI_CFLAGS
21987 and GSSAPI_LIBS to avoid the need to call pkg-config.
21988 See the pkg-config man page for more details.
21989
21990 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
21991 See \`config.log' for more details." >&5
21992 echo "$as_me: error: The pkg-config script could not be found or is too old.  Make sure it
21993 is in your PATH or set the PKG_CONFIG environment variable to the full
21994 path to pkg-config.
21995
21996 Alternatively, you may set the environment variables GSSAPI_CFLAGS
21997 and GSSAPI_LIBS to avoid the need to call pkg-config.
21998 See the pkg-config man page for more details.
21999
22000 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
22001 See \`config.log' for more details." >&2;}
22002    { (exit 1); exit 1; }; }
22003 else
22004         GSSAPI_CFLAGS=$pkg_cv_GSSAPI_CFLAGS
22005         GSSAPI_LIBS=$pkg_cv_GSSAPI_LIBS
22006         { echo "$as_me:$LINENO: result: yes" >&5
22007 echo "${ECHO_T}yes" >&6; }
22008         :
22009 fi
22010     fi
22011
22012 fi
22013 if test "$knfsd_cv_glibc2" = no; then
22014     { echo "$as_me:$LINENO: checking for daemon in -lbsd" >&5
22015 echo $ECHO_N "checking for daemon in -lbsd... $ECHO_C" >&6; }
22016 if test "${ac_cv_lib_bsd_daemon+set}" = set; then
22017   echo $ECHO_N "(cached) $ECHO_C" >&6
22018 else
22019   ac_check_lib_save_LIBS=$LIBS
22020 LIBS="-lbsd  $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 daemon ();
22035 int
22036 main ()
22037 {
22038 return daemon ();
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_bsd_daemon=yes
22062 else
22063   echo "$as_me: failed program was:" >&5
22064 sed 's/^/| /' conftest.$ac_ext >&5
22065
22066         ac_cv_lib_bsd_daemon=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_bsd_daemon" >&5
22074 echo "${ECHO_T}$ac_cv_lib_bsd_daemon" >&6; }
22075 if test $ac_cv_lib_bsd_daemon = yes; then
22076   LIBBSD="-lbsd"
22077 fi
22078
22079 fi
22080
22081
22082
22083
22084 if test "$enable_gss" = yes; then
22085     
22086 for ac_header in nfsidmap.h
22087 do
22088 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22089 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22090   { echo "$as_me:$LINENO: checking for $ac_header" >&5
22091 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22092 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22093   echo $ECHO_N "(cached) $ECHO_C" >&6
22094 fi
22095 ac_res=`eval echo '${'$as_ac_Header'}'`
22096                { echo "$as_me:$LINENO: result: $ac_res" >&5
22097 echo "${ECHO_T}$ac_res" >&6; }
22098 else
22099   # Is the header compilable?
22100 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
22101 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22102 cat >conftest.$ac_ext <<_ACEOF
22103 /* confdefs.h.  */
22104 _ACEOF
22105 cat confdefs.h >>conftest.$ac_ext
22106 cat >>conftest.$ac_ext <<_ACEOF
22107 /* end confdefs.h.  */
22108 $ac_includes_default
22109 @%:@include <$ac_header>
22110 _ACEOF
22111 rm -f conftest.$ac_objext
22112 if { (ac_try="$ac_compile"
22113 case "(($ac_try" in
22114   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22115   *) ac_try_echo=$ac_try;;
22116 esac
22117 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22118   (eval "$ac_compile") 2>conftest.er1
22119   ac_status=$?
22120   grep -v '^ *+' conftest.er1 >conftest.err
22121   rm -f conftest.er1
22122   cat conftest.err >&5
22123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22124   (exit $ac_status); } && {
22125          test -z "$ac_c_werror_flag" ||
22126          test ! -s conftest.err
22127        } && test -s conftest.$ac_objext; then
22128   ac_header_compiler=yes
22129 else
22130   echo "$as_me: failed program was:" >&5
22131 sed 's/^/| /' conftest.$ac_ext >&5
22132
22133         ac_header_compiler=no
22134 fi
22135
22136 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22137 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22138 echo "${ECHO_T}$ac_header_compiler" >&6; }
22139
22140 # Is the header present?
22141 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
22142 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22143 cat >conftest.$ac_ext <<_ACEOF
22144 /* confdefs.h.  */
22145 _ACEOF
22146 cat confdefs.h >>conftest.$ac_ext
22147 cat >>conftest.$ac_ext <<_ACEOF
22148 /* end confdefs.h.  */
22149 @%:@include <$ac_header>
22150 _ACEOF
22151 if { (ac_try="$ac_cpp conftest.$ac_ext"
22152 case "(($ac_try" in
22153   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22154   *) ac_try_echo=$ac_try;;
22155 esac
22156 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22157   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22158   ac_status=$?
22159   grep -v '^ *+' conftest.er1 >conftest.err
22160   rm -f conftest.er1
22161   cat conftest.err >&5
22162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22163   (exit $ac_status); } >/dev/null && {
22164          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22165          test ! -s conftest.err
22166        }; then
22167   ac_header_preproc=yes
22168 else
22169   echo "$as_me: failed program was:" >&5
22170 sed 's/^/| /' conftest.$ac_ext >&5
22171
22172   ac_header_preproc=no
22173 fi
22174
22175 rm -f conftest.err conftest.$ac_ext
22176 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22177 echo "${ECHO_T}$ac_header_preproc" >&6; }
22178
22179 # So?  What about this header?
22180 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22181   yes:no: )
22182     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22183 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22184     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22185 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22186     ac_header_preproc=yes
22187     ;;
22188   no:yes:* )
22189     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22190 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22191     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
22192 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
22193     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22194 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22195     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
22196 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
22197     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22198 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22199     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22200 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22201     ( cat <<\_ASBOX
22202 @%:@@%:@ ------------------------------- @%:@@%:@
22203 @%:@@%:@ Report this to nfs@lists.sf.net @%:@@%:@
22204 @%:@@%:@ ------------------------------- @%:@@%:@
22205 _ASBOX
22206      ) | sed "s/^/$as_me: WARNING:     /" >&2
22207     ;;
22208 esac
22209 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22210 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22211 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22212   echo $ECHO_N "(cached) $ECHO_C" >&6
22213 else
22214   eval "$as_ac_Header=\$ac_header_preproc"
22215 fi
22216 ac_res=`eval echo '${'$as_ac_Header'}'`
22217                { echo "$as_me:$LINENO: result: $ac_res" >&5
22218 echo "${ECHO_T}$ac_res" >&6; }
22219
22220 fi
22221 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22222   cat >>confdefs.h <<_ACEOF
22223 @%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22224 _ACEOF
22225  
22226 else
22227   { { echo "$as_me:$LINENO: error: libnfsidmap needed for gss support" >&5
22228 echo "$as_me: error: libnfsidmap needed for gss support" >&2;}
22229    { (exit 1); exit 1; }; }
22230 fi
22231
22232 done
22233
22234   
22235 for ac_header in spkm3.h
22236 do
22237 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22238 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22239   { echo "$as_me:$LINENO: checking for $ac_header" >&5
22240 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22241 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22242   echo $ECHO_N "(cached) $ECHO_C" >&6
22243 fi
22244 ac_res=`eval echo '${'$as_ac_Header'}'`
22245                { echo "$as_me:$LINENO: result: $ac_res" >&5
22246 echo "${ECHO_T}$ac_res" >&6; }
22247 else
22248   # Is the header compilable?
22249 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
22250 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22251 cat >conftest.$ac_ext <<_ACEOF
22252 /* confdefs.h.  */
22253 _ACEOF
22254 cat confdefs.h >>conftest.$ac_ext
22255 cat >>conftest.$ac_ext <<_ACEOF
22256 /* end confdefs.h.  */
22257 $ac_includes_default
22258 @%:@include <$ac_header>
22259 _ACEOF
22260 rm -f conftest.$ac_objext
22261 if { (ac_try="$ac_compile"
22262 case "(($ac_try" in
22263   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22264   *) ac_try_echo=$ac_try;;
22265 esac
22266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22267   (eval "$ac_compile") 2>conftest.er1
22268   ac_status=$?
22269   grep -v '^ *+' conftest.er1 >conftest.err
22270   rm -f conftest.er1
22271   cat conftest.err >&5
22272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22273   (exit $ac_status); } && {
22274          test -z "$ac_c_werror_flag" ||
22275          test ! -s conftest.err
22276        } && test -s conftest.$ac_objext; then
22277   ac_header_compiler=yes
22278 else
22279   echo "$as_me: failed program was:" >&5
22280 sed 's/^/| /' conftest.$ac_ext >&5
22281
22282         ac_header_compiler=no
22283 fi
22284
22285 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22286 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22287 echo "${ECHO_T}$ac_header_compiler" >&6; }
22288
22289 # Is the header present?
22290 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
22291 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22292 cat >conftest.$ac_ext <<_ACEOF
22293 /* confdefs.h.  */
22294 _ACEOF
22295 cat confdefs.h >>conftest.$ac_ext
22296 cat >>conftest.$ac_ext <<_ACEOF
22297 /* end confdefs.h.  */
22298 @%:@include <$ac_header>
22299 _ACEOF
22300 if { (ac_try="$ac_cpp conftest.$ac_ext"
22301 case "(($ac_try" in
22302   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22303   *) ac_try_echo=$ac_try;;
22304 esac
22305 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22306   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22307   ac_status=$?
22308   grep -v '^ *+' conftest.er1 >conftest.err
22309   rm -f conftest.er1
22310   cat conftest.err >&5
22311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22312   (exit $ac_status); } >/dev/null && {
22313          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22314          test ! -s conftest.err
22315        }; then
22316   ac_header_preproc=yes
22317 else
22318   echo "$as_me: failed program was:" >&5
22319 sed 's/^/| /' conftest.$ac_ext >&5
22320
22321   ac_header_preproc=no
22322 fi
22323
22324 rm -f conftest.err conftest.$ac_ext
22325 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22326 echo "${ECHO_T}$ac_header_preproc" >&6; }
22327
22328 # So?  What about this header?
22329 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22330   yes:no: )
22331     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22332 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22333     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22334 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22335     ac_header_preproc=yes
22336     ;;
22337   no:yes:* )
22338     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22339 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22340     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
22341 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
22342     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22343 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22344     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
22345 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
22346     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22347 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22348     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22349 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22350     ( cat <<\_ASBOX
22351 @%:@@%:@ ------------------------------- @%:@@%:@
22352 @%:@@%:@ Report this to nfs@lists.sf.net @%:@@%:@
22353 @%:@@%:@ ------------------------------- @%:@@%:@
22354 _ASBOX
22355      ) | sed "s/^/$as_me: WARNING:     /" >&2
22356     ;;
22357 esac
22358 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22359 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22360 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22361   echo $ECHO_N "(cached) $ECHO_C" >&6
22362 else
22363   eval "$as_ac_Header=\$ac_header_preproc"
22364 fi
22365 ac_res=`eval echo '${'$as_ac_Header'}'`
22366                { echo "$as_me:$LINENO: result: $ac_res" >&5
22367 echo "${ECHO_T}$ac_res" >&6; }
22368
22369 fi
22370 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22371   cat >>confdefs.h <<_ACEOF
22372 @%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22373 _ACEOF
22374  
22375 else
22376   { echo "$as_me:$LINENO: WARNING: could not locate SPKM3 header; will not have SPKM3 support" >&5
22377 echo "$as_me: WARNING: could not locate SPKM3 header; will not have SPKM3 support" >&2;}
22378 fi
22379
22380 done
22381
22382     { echo "$as_me:$LINENO: checking for nfs4_set_debug in -lnfsidmap" >&5
22383 echo $ECHO_N "checking for nfs4_set_debug in -lnfsidmap... $ECHO_C" >&6; }
22384 if test "${ac_cv_lib_nfsidmap_nfs4_set_debug+set}" = set; then
22385   echo $ECHO_N "(cached) $ECHO_C" >&6
22386 else
22387   ac_check_lib_save_LIBS=$LIBS
22388 LIBS="-lnfsidmap  $LIBS"
22389 cat >conftest.$ac_ext <<_ACEOF
22390 /* confdefs.h.  */
22391 _ACEOF
22392 cat confdefs.h >>conftest.$ac_ext
22393 cat >>conftest.$ac_ext <<_ACEOF
22394 /* end confdefs.h.  */
22395
22396 /* Override any GCC internal prototype to avoid an error.
22397    Use char because int might match the return type of a GCC
22398    builtin and then its argument prototype would still apply.  */
22399 #ifdef __cplusplus
22400 extern "C"
22401 #endif
22402 char nfs4_set_debug ();
22403 int
22404 main ()
22405 {
22406 return nfs4_set_debug ();
22407   ;
22408   return 0;
22409 }
22410 _ACEOF
22411 rm -f conftest.$ac_objext conftest$ac_exeext
22412 if { (ac_try="$ac_link"
22413 case "(($ac_try" in
22414   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22415   *) ac_try_echo=$ac_try;;
22416 esac
22417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22418   (eval "$ac_link") 2>conftest.er1
22419   ac_status=$?
22420   grep -v '^ *+' conftest.er1 >conftest.err
22421   rm -f conftest.er1
22422   cat conftest.err >&5
22423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22424   (exit $ac_status); } && {
22425          test -z "$ac_c_werror_flag" ||
22426          test ! -s conftest.err
22427        } && test -s conftest$ac_exeext &&
22428        $as_test_x conftest$ac_exeext; then
22429   ac_cv_lib_nfsidmap_nfs4_set_debug=yes
22430 else
22431   echo "$as_me: failed program was:" >&5
22432 sed 's/^/| /' conftest.$ac_ext >&5
22433
22434         ac_cv_lib_nfsidmap_nfs4_set_debug=no
22435 fi
22436
22437 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22438       conftest$ac_exeext conftest.$ac_ext
22439 LIBS=$ac_check_lib_save_LIBS
22440 fi
22441 { echo "$as_me:$LINENO: result: $ac_cv_lib_nfsidmap_nfs4_set_debug" >&5
22442 echo "${ECHO_T}$ac_cv_lib_nfsidmap_nfs4_set_debug" >&6; }
22443 if test $ac_cv_lib_nfsidmap_nfs4_set_debug = yes; then
22444   
22445 cat >>confdefs.h <<\_ACEOF
22446 @%:@define HAVE_NFS4_SET_DEBUG 1
22447 _ACEOF
22448
22449 fi
22450
22451
22452     
22453   { echo "$as_me:$LINENO: checking for Kerberos v5" >&5
22454 echo $ECHO_N "checking for Kerberos v5... $ECHO_C" >&6; }
22455   
22456 # Check whether --with-krb5 was given.
22457 if test "${with_krb5+set}" = set; then
22458   withval=$with_krb5;  case "$withval" in
22459     yes|no)
22460        krb5_with=""
22461        ;;
22462     *)
22463        krb5_with="$withval"
22464        ;;
22465     esac 
22466   
22467 fi
22468
22469
22470   for dir in $krb5_with /usr /usr/kerberos /usr/local /usr/local/krb5 \
22471              /usr/krb5 /usr/heimdal /usr/local/heimdal /usr/athena ; do
22472             K5CONFIG=""
22473     if test -f $dir/bin/krb5-config; then
22474       K5CONFIG=$dir/bin/krb5-config
22475     elif test -f "/usr/kerberos/bin/krb5-config"; then
22476       K5CONFIG="/usr/kerberos/bin/krb5-config"
22477     elif test -f "/usr/lib/mit/bin/krb5-config"; then
22478       K5CONFIG="/usr/lib/mit/bin/krb5-config"
22479     fi
22480     if test "$K5CONFIG" != ""; then
22481       KRBCFLAGS=`$K5CONFIG --cflags`
22482       KRBLIBS=`$K5CONFIG --libs gssapi`
22483       K5VERS=`$K5CONFIG --version | head -n 1 | awk '{split($(4),v,"."); if (v@<:@"3"@:>@ == "") v@<:@"3"@:>@ = "0"; print v@<:@"1"@:>@v@<:@"2"@:>@v@<:@"3"@:>@ }'`
22484       
22485 cat >>confdefs.h <<_ACEOF
22486 @%:@define KRB5_VERSION $K5VERS
22487 _ACEOF
22488
22489       if test -f $dir/include/gssapi/gssapi_krb5.h -a \
22490                 \( -f $dir/lib/libgssapi_krb5.a -o \
22491                    -f $dir/lib/libgssapi_krb5.so \) ; then
22492          
22493 cat >>confdefs.h <<\_ACEOF
22494 @%:@define HAVE_KRB5 1
22495 _ACEOF
22496
22497          KRBDIR="$dir"
22498                      if test $K5VERS -le 131; then
22499            
22500 cat >>confdefs.h <<\_ACEOF
22501 @%:@define USE_GSS_KRB5_CCACHE_NAME 1
22502 _ACEOF
22503
22504          fi
22505          gssapi_lib=gssapi_krb5
22506          break
22507                   elif test \( -f $dir/include/heim_err.h -o\
22508                  -f $dir/include/heimdal/heim_err.h \) -a \
22509                 -f $dir/lib/libroken.a; then
22510          
22511 cat >>confdefs.h <<\_ACEOF
22512 @%:@define HAVE_HEIMDAL 1
22513 _ACEOF
22514
22515          KRBDIR="$dir"
22516          gssapi_lib=gssapi
22517         break
22518       fi
22519     fi
22520   done
22521     if test "x$KRBDIR" = "x"; then
22522     if test "x$krb5_with" = "x"; then
22523       { { echo "$as_me:$LINENO: error: Kerberos v5 with GSS support not found: consider --disable-gss or --with-krb5=" >&5
22524 echo "$as_me: error: Kerberos v5 with GSS support not found: consider --disable-gss or --with-krb5=" >&2;}
22525    { (exit 1); exit 1; }; }
22526     else
22527       { { echo "$as_me:$LINENO: error: Kerberos v5 with GSS support not found at $krb5_with" >&5
22528 echo "$as_me: error: Kerberos v5 with GSS support not found at $krb5_with" >&2;}
22529    { (exit 1); exit 1; }; }
22530     fi
22531   fi
22532   { echo "$as_me:$LINENO: result: $KRBDIR" >&5
22533 echo "${ECHO_T}$KRBDIR" >&6; }
22534
22535     echo "The current KRBDIR is $KRBDIR"
22536   if test "$KRBDIR/lib" = "/lib" -o "$KRBDIR/lib" = "/usr/lib" \
22537        -o "$KRBDIR/lib" = "//lib" -o "$KRBDIR/lib" = "/usr//lib" ; then
22538     KRBLDFLAGS="";
22539   elif /sbin/ldconfig -p | grep > /dev/null "=> $KRBDIR/lib/"; then
22540     KRBLDFLAGS="";
22541   else
22542     KRBLDFLAGS="-Wl,-rpath=$KRBDIR/lib"
22543   fi
22544
22545     as_ac_Lib=`echo "ac_cv_lib_$gssapi_lib''_gss_krb5_export_lucid_sec_context" | $as_tr_sh`
22546 { echo "$as_me:$LINENO: checking for gss_krb5_export_lucid_sec_context in -l$gssapi_lib" >&5
22547 echo $ECHO_N "checking for gss_krb5_export_lucid_sec_context in -l$gssapi_lib... $ECHO_C" >&6; }
22548 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
22549   echo $ECHO_N "(cached) $ECHO_C" >&6
22550 else
22551   ac_check_lib_save_LIBS=$LIBS
22552 LIBS="-l$gssapi_lib $KRBLIBS $LIBS"
22553 cat >conftest.$ac_ext <<_ACEOF
22554 /* confdefs.h.  */
22555 _ACEOF
22556 cat confdefs.h >>conftest.$ac_ext
22557 cat >>conftest.$ac_ext <<_ACEOF
22558 /* end confdefs.h.  */
22559
22560 /* Override any GCC internal prototype to avoid an error.
22561    Use char because int might match the return type of a GCC
22562    builtin and then its argument prototype would still apply.  */
22563 #ifdef __cplusplus
22564 extern "C"
22565 #endif
22566 char gss_krb5_export_lucid_sec_context ();
22567 int
22568 main ()
22569 {
22570 return gss_krb5_export_lucid_sec_context ();
22571   ;
22572   return 0;
22573 }
22574 _ACEOF
22575 rm -f conftest.$ac_objext conftest$ac_exeext
22576 if { (ac_try="$ac_link"
22577 case "(($ac_try" in
22578   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22579   *) ac_try_echo=$ac_try;;
22580 esac
22581 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22582   (eval "$ac_link") 2>conftest.er1
22583   ac_status=$?
22584   grep -v '^ *+' conftest.er1 >conftest.err
22585   rm -f conftest.er1
22586   cat conftest.err >&5
22587   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22588   (exit $ac_status); } && {
22589          test -z "$ac_c_werror_flag" ||
22590          test ! -s conftest.err
22591        } && test -s conftest$ac_exeext &&
22592        $as_test_x conftest$ac_exeext; then
22593   eval "$as_ac_Lib=yes"
22594 else
22595   echo "$as_me: failed program was:" >&5
22596 sed 's/^/| /' conftest.$ac_ext >&5
22597
22598         eval "$as_ac_Lib=no"
22599 fi
22600
22601 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22602       conftest$ac_exeext conftest.$ac_ext
22603 LIBS=$ac_check_lib_save_LIBS
22604 fi
22605 ac_res=`eval echo '${'$as_ac_Lib'}'`
22606                { echo "$as_me:$LINENO: result: $ac_res" >&5
22607 echo "${ECHO_T}$ac_res" >&6; }
22608 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
22609   
22610 cat >>confdefs.h <<\_ACEOF
22611 @%:@define HAVE_LUCID_CONTEXT_SUPPORT 1
22612 _ACEOF
22613
22614 fi
22615
22616   as_ac_Lib=`echo "ac_cv_lib_$gssapi_lib''_gss_krb5_set_allowable_enctypes" | $as_tr_sh`
22617 { echo "$as_me:$LINENO: checking for gss_krb5_set_allowable_enctypes in -l$gssapi_lib" >&5
22618 echo $ECHO_N "checking for gss_krb5_set_allowable_enctypes in -l$gssapi_lib... $ECHO_C" >&6; }
22619 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
22620   echo $ECHO_N "(cached) $ECHO_C" >&6
22621 else
22622   ac_check_lib_save_LIBS=$LIBS
22623 LIBS="-l$gssapi_lib $KRBLIBS $LIBS"
22624 cat >conftest.$ac_ext <<_ACEOF
22625 /* confdefs.h.  */
22626 _ACEOF
22627 cat confdefs.h >>conftest.$ac_ext
22628 cat >>conftest.$ac_ext <<_ACEOF
22629 /* end confdefs.h.  */
22630
22631 /* Override any GCC internal prototype to avoid an error.
22632    Use char because int might match the return type of a GCC
22633    builtin and then its argument prototype would still apply.  */
22634 #ifdef __cplusplus
22635 extern "C"
22636 #endif
22637 char gss_krb5_set_allowable_enctypes ();
22638 int
22639 main ()
22640 {
22641 return gss_krb5_set_allowable_enctypes ();
22642   ;
22643   return 0;
22644 }
22645 _ACEOF
22646 rm -f conftest.$ac_objext conftest$ac_exeext
22647 if { (ac_try="$ac_link"
22648 case "(($ac_try" in
22649   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22650   *) ac_try_echo=$ac_try;;
22651 esac
22652 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22653   (eval "$ac_link") 2>conftest.er1
22654   ac_status=$?
22655   grep -v '^ *+' conftest.er1 >conftest.err
22656   rm -f conftest.er1
22657   cat conftest.err >&5
22658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22659   (exit $ac_status); } && {
22660          test -z "$ac_c_werror_flag" ||
22661          test ! -s conftest.err
22662        } && test -s conftest$ac_exeext &&
22663        $as_test_x conftest$ac_exeext; then
22664   eval "$as_ac_Lib=yes"
22665 else
22666   echo "$as_me: failed program was:" >&5
22667 sed 's/^/| /' conftest.$ac_ext >&5
22668
22669         eval "$as_ac_Lib=no"
22670 fi
22671
22672 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22673       conftest$ac_exeext conftest.$ac_ext
22674 LIBS=$ac_check_lib_save_LIBS
22675 fi
22676 ac_res=`eval echo '${'$as_ac_Lib'}'`
22677                { echo "$as_me:$LINENO: result: $ac_res" >&5
22678 echo "${ECHO_T}$ac_res" >&6; }
22679 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
22680   
22681 cat >>confdefs.h <<\_ACEOF
22682 @%:@define HAVE_SET_ALLOWABLE_ENCTYPES 1
22683 _ACEOF
22684
22685 fi
22686
22687   as_ac_Lib=`echo "ac_cv_lib_$gssapi_lib''_gss_krb5_ccache_name" | $as_tr_sh`
22688 { echo "$as_me:$LINENO: checking for gss_krb5_ccache_name in -l$gssapi_lib" >&5
22689 echo $ECHO_N "checking for gss_krb5_ccache_name in -l$gssapi_lib... $ECHO_C" >&6; }
22690 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
22691   echo $ECHO_N "(cached) $ECHO_C" >&6
22692 else
22693   ac_check_lib_save_LIBS=$LIBS
22694 LIBS="-l$gssapi_lib $KRBLIBS $LIBS"
22695 cat >conftest.$ac_ext <<_ACEOF
22696 /* confdefs.h.  */
22697 _ACEOF
22698 cat confdefs.h >>conftest.$ac_ext
22699 cat >>conftest.$ac_ext <<_ACEOF
22700 /* end confdefs.h.  */
22701
22702 /* Override any GCC internal prototype to avoid an error.
22703    Use char because int might match the return type of a GCC
22704    builtin and then its argument prototype would still apply.  */
22705 #ifdef __cplusplus
22706 extern "C"
22707 #endif
22708 char gss_krb5_ccache_name ();
22709 int
22710 main ()
22711 {
22712 return gss_krb5_ccache_name ();
22713   ;
22714   return 0;
22715 }
22716 _ACEOF
22717 rm -f conftest.$ac_objext conftest$ac_exeext
22718 if { (ac_try="$ac_link"
22719 case "(($ac_try" in
22720   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22721   *) ac_try_echo=$ac_try;;
22722 esac
22723 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22724   (eval "$ac_link") 2>conftest.er1
22725   ac_status=$?
22726   grep -v '^ *+' conftest.er1 >conftest.err
22727   rm -f conftest.er1
22728   cat conftest.err >&5
22729   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22730   (exit $ac_status); } && {
22731          test -z "$ac_c_werror_flag" ||
22732          test ! -s conftest.err
22733        } && test -s conftest$ac_exeext &&
22734        $as_test_x conftest$ac_exeext; then
22735   eval "$as_ac_Lib=yes"
22736 else
22737   echo "$as_me: failed program was:" >&5
22738 sed 's/^/| /' conftest.$ac_ext >&5
22739
22740         eval "$as_ac_Lib=no"
22741 fi
22742
22743 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22744       conftest$ac_exeext conftest.$ac_ext
22745 LIBS=$ac_check_lib_save_LIBS
22746 fi
22747 ac_res=`eval echo '${'$as_ac_Lib'}'`
22748                { echo "$as_me:$LINENO: result: $ac_res" >&5
22749 echo "${ECHO_T}$ac_res" >&6; }
22750 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
22751   
22752 cat >>confdefs.h <<\_ACEOF
22753 @%:@define HAVE_GSS_KRB5_CCACHE_NAME 1
22754 _ACEOF
22755
22756 fi
22757
22758
22759     if test "x$krb5_with" != "x" -a "$krb5_with" != "$KRBDIR"; then
22760     { echo "$as_me:$LINENO: WARNING: Using $KRBDIR instead of requested value of $krb5_with for Kerberos!" >&5
22761 echo "$as_me: WARNING: Using $KRBDIR instead of requested value of $krb5_with for Kerberos!" >&2;}
22762   fi
22763
22764   
22765   
22766   
22767   
22768   
22769
22770
22771
22772       { echo "$as_me:$LINENO: checking for authgss_create_default in -lrpcsecgss" >&5
22773 echo $ECHO_N "checking for authgss_create_default in -lrpcsecgss... $ECHO_C" >&6; }
22774 if test "${ac_cv_lib_rpcsecgss_authgss_create_default+set}" = set; then
22775   echo $ECHO_N "(cached) $ECHO_C" >&6
22776 else
22777   ac_check_lib_save_LIBS=$LIBS
22778 LIBS="-lrpcsecgss -lgssapi -ldl $LIBS"
22779 cat >conftest.$ac_ext <<_ACEOF
22780 /* confdefs.h.  */
22781 _ACEOF
22782 cat confdefs.h >>conftest.$ac_ext
22783 cat >>conftest.$ac_ext <<_ACEOF
22784 /* end confdefs.h.  */
22785
22786 /* Override any GCC internal prototype to avoid an error.
22787    Use char because int might match the return type of a GCC
22788    builtin and then its argument prototype would still apply.  */
22789 #ifdef __cplusplus
22790 extern "C"
22791 #endif
22792 char authgss_create_default ();
22793 int
22794 main ()
22795 {
22796 return authgss_create_default ();
22797   ;
22798   return 0;
22799 }
22800 _ACEOF
22801 rm -f conftest.$ac_objext conftest$ac_exeext
22802 if { (ac_try="$ac_link"
22803 case "(($ac_try" in
22804   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22805   *) ac_try_echo=$ac_try;;
22806 esac
22807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22808   (eval "$ac_link") 2>conftest.er1
22809   ac_status=$?
22810   grep -v '^ *+' conftest.er1 >conftest.err
22811   rm -f conftest.er1
22812   cat conftest.err >&5
22813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22814   (exit $ac_status); } && {
22815          test -z "$ac_c_werror_flag" ||
22816          test ! -s conftest.err
22817        } && test -s conftest$ac_exeext &&
22818        $as_test_x conftest$ac_exeext; then
22819   ac_cv_lib_rpcsecgss_authgss_create_default=yes
22820 else
22821   echo "$as_me: failed program was:" >&5
22822 sed 's/^/| /' conftest.$ac_ext >&5
22823
22824         ac_cv_lib_rpcsecgss_authgss_create_default=no
22825 fi
22826
22827 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22828       conftest$ac_exeext conftest.$ac_ext
22829 LIBS=$ac_check_lib_save_LIBS
22830 fi
22831 { echo "$as_me:$LINENO: result: $ac_cv_lib_rpcsecgss_authgss_create_default" >&5
22832 echo "${ECHO_T}$ac_cv_lib_rpcsecgss_authgss_create_default" >&6; }
22833 if test $ac_cv_lib_rpcsecgss_authgss_create_default = yes; then
22834   librpcsecgss=1
22835 else
22836   { { echo "$as_me:$LINENO: error: librpcsecgss needed for nfsv4 support" >&5
22837 echo "$as_me: error: librpcsecgss needed for nfsv4 support" >&2;}
22838    { (exit 1); exit 1; }; }
22839 fi
22840
22841   { echo "$as_me:$LINENO: checking for authgss_set_debug_level in -lrpcsecgss" >&5
22842 echo $ECHO_N "checking for authgss_set_debug_level in -lrpcsecgss... $ECHO_C" >&6; }
22843 if test "${ac_cv_lib_rpcsecgss_authgss_set_debug_level+set}" = set; then
22844   echo $ECHO_N "(cached) $ECHO_C" >&6
22845 else
22846   ac_check_lib_save_LIBS=$LIBS
22847 LIBS="-lrpcsecgss -lgssapi -ldl $LIBS"
22848 cat >conftest.$ac_ext <<_ACEOF
22849 /* confdefs.h.  */
22850 _ACEOF
22851 cat confdefs.h >>conftest.$ac_ext
22852 cat >>conftest.$ac_ext <<_ACEOF
22853 /* end confdefs.h.  */
22854
22855 /* Override any GCC internal prototype to avoid an error.
22856    Use char because int might match the return type of a GCC
22857    builtin and then its argument prototype would still apply.  */
22858 #ifdef __cplusplus
22859 extern "C"
22860 #endif
22861 char authgss_set_debug_level ();
22862 int
22863 main ()
22864 {
22865 return authgss_set_debug_level ();
22866   ;
22867   return 0;
22868 }
22869 _ACEOF
22870 rm -f conftest.$ac_objext conftest$ac_exeext
22871 if { (ac_try="$ac_link"
22872 case "(($ac_try" in
22873   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22874   *) ac_try_echo=$ac_try;;
22875 esac
22876 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22877   (eval "$ac_link") 2>conftest.er1
22878   ac_status=$?
22879   grep -v '^ *+' conftest.er1 >conftest.err
22880   rm -f conftest.er1
22881   cat conftest.err >&5
22882   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22883   (exit $ac_status); } && {
22884          test -z "$ac_c_werror_flag" ||
22885          test ! -s conftest.err
22886        } && test -s conftest$ac_exeext &&
22887        $as_test_x conftest$ac_exeext; then
22888   ac_cv_lib_rpcsecgss_authgss_set_debug_level=yes
22889 else
22890   echo "$as_me: failed program was:" >&5
22891 sed 's/^/| /' conftest.$ac_ext >&5
22892
22893         ac_cv_lib_rpcsecgss_authgss_set_debug_level=no
22894 fi
22895
22896 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22897       conftest$ac_exeext conftest.$ac_ext
22898 LIBS=$ac_check_lib_save_LIBS
22899 fi
22900 { echo "$as_me:$LINENO: result: $ac_cv_lib_rpcsecgss_authgss_set_debug_level" >&5
22901 echo "${ECHO_T}$ac_cv_lib_rpcsecgss_authgss_set_debug_level" >&6; }
22902 if test $ac_cv_lib_rpcsecgss_authgss_set_debug_level = yes; then
22903   
22904 cat >>confdefs.h <<\_ACEOF
22905 @%:@define HAVE_AUTHGSS_SET_DEBUG_LEVEL 1
22906 _ACEOF
22907
22908 fi
22909
22910
22911 fi
22912
22913
22914
22915
22916
22917
22918
22919
22920
22921
22922
22923
22924
22925
22926
22927
22928
22929
22930
22931
22932
22933
22934
22935
22936 for ac_header in arpa/inet.h fcntl.h libintl.h limits.h \
22937                  malloc.h memory.h netdb.h netinet/in.h paths.h \
22938                  stdlib.h string.h sys/file.h sys/ioctl.h sys/mount.h \
22939                  sys/param.h sys/socket.h sys/time.h sys/vfs.h \
22940                  syslog.h unistd.h com_err.h et/com_err.h \
22941                  ifaddrs.h
22942 do
22943 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22944 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22945   { echo "$as_me:$LINENO: checking for $ac_header" >&5
22946 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22947 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22948   echo $ECHO_N "(cached) $ECHO_C" >&6
22949 fi
22950 ac_res=`eval echo '${'$as_ac_Header'}'`
22951                { echo "$as_me:$LINENO: result: $ac_res" >&5
22952 echo "${ECHO_T}$ac_res" >&6; }
22953 else
22954   # Is the header compilable?
22955 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
22956 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22957 cat >conftest.$ac_ext <<_ACEOF
22958 /* confdefs.h.  */
22959 _ACEOF
22960 cat confdefs.h >>conftest.$ac_ext
22961 cat >>conftest.$ac_ext <<_ACEOF
22962 /* end confdefs.h.  */
22963 $ac_includes_default
22964 @%:@include <$ac_header>
22965 _ACEOF
22966 rm -f conftest.$ac_objext
22967 if { (ac_try="$ac_compile"
22968 case "(($ac_try" in
22969   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22970   *) ac_try_echo=$ac_try;;
22971 esac
22972 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22973   (eval "$ac_compile") 2>conftest.er1
22974   ac_status=$?
22975   grep -v '^ *+' conftest.er1 >conftest.err
22976   rm -f conftest.er1
22977   cat conftest.err >&5
22978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22979   (exit $ac_status); } && {
22980          test -z "$ac_c_werror_flag" ||
22981          test ! -s conftest.err
22982        } && test -s conftest.$ac_objext; then
22983   ac_header_compiler=yes
22984 else
22985   echo "$as_me: failed program was:" >&5
22986 sed 's/^/| /' conftest.$ac_ext >&5
22987
22988         ac_header_compiler=no
22989 fi
22990
22991 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22992 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22993 echo "${ECHO_T}$ac_header_compiler" >&6; }
22994
22995 # Is the header present?
22996 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
22997 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22998 cat >conftest.$ac_ext <<_ACEOF
22999 /* confdefs.h.  */
23000 _ACEOF
23001 cat confdefs.h >>conftest.$ac_ext
23002 cat >>conftest.$ac_ext <<_ACEOF
23003 /* end confdefs.h.  */
23004 @%:@include <$ac_header>
23005 _ACEOF
23006 if { (ac_try="$ac_cpp conftest.$ac_ext"
23007 case "(($ac_try" in
23008   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23009   *) ac_try_echo=$ac_try;;
23010 esac
23011 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23012   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23013   ac_status=$?
23014   grep -v '^ *+' conftest.er1 >conftest.err
23015   rm -f conftest.er1
23016   cat conftest.err >&5
23017   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23018   (exit $ac_status); } >/dev/null && {
23019          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23020          test ! -s conftest.err
23021        }; then
23022   ac_header_preproc=yes
23023 else
23024   echo "$as_me: failed program was:" >&5
23025 sed 's/^/| /' conftest.$ac_ext >&5
23026
23027   ac_header_preproc=no
23028 fi
23029
23030 rm -f conftest.err conftest.$ac_ext
23031 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23032 echo "${ECHO_T}$ac_header_preproc" >&6; }
23033
23034 # So?  What about this header?
23035 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23036   yes:no: )
23037     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23038 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23039     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23040 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23041     ac_header_preproc=yes
23042     ;;
23043   no:yes:* )
23044     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23045 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23046     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
23047 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
23048     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23049 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23050     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
23051 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
23052     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23053 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23054     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23055 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23056     ( cat <<\_ASBOX
23057 @%:@@%:@ ------------------------------- @%:@@%:@
23058 @%:@@%:@ Report this to nfs@lists.sf.net @%:@@%:@
23059 @%:@@%:@ ------------------------------- @%:@@%:@
23060 _ASBOX
23061      ) | sed "s/^/$as_me: WARNING:     /" >&2
23062     ;;
23063 esac
23064 { echo "$as_me:$LINENO: checking for $ac_header" >&5
23065 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23066 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23067   echo $ECHO_N "(cached) $ECHO_C" >&6
23068 else
23069   eval "$as_ac_Header=\$ac_header_preproc"
23070 fi
23071 ac_res=`eval echo '${'$as_ac_Header'}'`
23072                { echo "$as_me:$LINENO: result: $ac_res" >&5
23073 echo "${ECHO_T}$ac_res" >&6; }
23074
23075 fi
23076 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23077   cat >>confdefs.h <<_ACEOF
23078 @%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23079 _ACEOF
23080  
23081 fi
23082
23083 done
23084
23085
23086 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
23087 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
23088 if test "${ac_cv_c_const+set}" = set; then
23089   echo $ECHO_N "(cached) $ECHO_C" >&6
23090 else
23091   cat >conftest.$ac_ext <<_ACEOF
23092 /* confdefs.h.  */
23093 _ACEOF
23094 cat confdefs.h >>conftest.$ac_ext
23095 cat >>conftest.$ac_ext <<_ACEOF
23096 /* end confdefs.h.  */
23097
23098 int
23099 main ()
23100 {
23101 /* FIXME: Include the comments suggested by Paul. */
23102 #ifndef __cplusplus
23103   /* Ultrix mips cc rejects this.  */
23104   typedef int charset[2];
23105   const charset cs;
23106   /* SunOS 4.1.1 cc rejects this.  */
23107   char const *const *pcpcc;
23108   char **ppc;
23109   /* NEC SVR4.0.2 mips cc rejects this.  */
23110   struct point {int x, y;};
23111   static struct point const zero = {0,0};
23112   /* AIX XL C 1.02.0.0 rejects this.
23113      It does not let you subtract one const X* pointer from another in
23114      an arm of an if-expression whose if-part is not a constant
23115      expression */
23116   const char *g = "string";
23117   pcpcc = &g + (g ? g-g : 0);
23118   /* HPUX 7.0 cc rejects these. */
23119   ++pcpcc;
23120   ppc = (char**) pcpcc;
23121   pcpcc = (char const *const *) ppc;
23122   { /* SCO 3.2v4 cc rejects this.  */
23123     char *t;
23124     char const *s = 0 ? (char *) 0 : (char const *) 0;
23125
23126     *t++ = 0;
23127     if (s) return 0;
23128   }
23129   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
23130     int x[] = {25, 17};
23131     const int *foo = &x[0];
23132     ++foo;
23133   }
23134   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
23135     typedef const int *iptr;
23136     iptr p = 0;
23137     ++p;
23138   }
23139   { /* AIX XL C 1.02.0.0 rejects this saying
23140        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
23141     struct s { int j; const int *ap[3]; };
23142     struct s *b; b->j = 5;
23143   }
23144   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
23145     const int foo = 10;
23146     if (!foo) return 0;
23147   }
23148   return !cs[0] && !zero.x;
23149 #endif
23150
23151   ;
23152   return 0;
23153 }
23154 _ACEOF
23155 rm -f conftest.$ac_objext
23156 if { (ac_try="$ac_compile"
23157 case "(($ac_try" in
23158   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23159   *) ac_try_echo=$ac_try;;
23160 esac
23161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23162   (eval "$ac_compile") 2>conftest.er1
23163   ac_status=$?
23164   grep -v '^ *+' conftest.er1 >conftest.err
23165   rm -f conftest.er1
23166   cat conftest.err >&5
23167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23168   (exit $ac_status); } && {
23169          test -z "$ac_c_werror_flag" ||
23170          test ! -s conftest.err
23171        } && test -s conftest.$ac_objext; then
23172   ac_cv_c_const=yes
23173 else
23174   echo "$as_me: failed program was:" >&5
23175 sed 's/^/| /' conftest.$ac_ext >&5
23176
23177         ac_cv_c_const=no
23178 fi
23179
23180 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23181 fi
23182 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
23183 echo "${ECHO_T}$ac_cv_c_const" >&6; }
23184 if test $ac_cv_c_const = no; then
23185   
23186 cat >>confdefs.h <<\_ACEOF
23187 @%:@define const 
23188 _ACEOF
23189
23190 fi
23191
23192 { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
23193 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
23194 if test "${ac_cv_type_uid_t+set}" = set; then
23195   echo $ECHO_N "(cached) $ECHO_C" >&6
23196 else
23197   cat >conftest.$ac_ext <<_ACEOF
23198 /* confdefs.h.  */
23199 _ACEOF
23200 cat confdefs.h >>conftest.$ac_ext
23201 cat >>conftest.$ac_ext <<_ACEOF
23202 /* end confdefs.h.  */
23203 #include <sys/types.h>
23204
23205 _ACEOF
23206 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23207   $EGREP "uid_t" >/dev/null 2>&1; then
23208   ac_cv_type_uid_t=yes
23209 else
23210   ac_cv_type_uid_t=no
23211 fi
23212 rm -f conftest*
23213
23214 fi
23215 { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
23216 echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
23217 if test $ac_cv_type_uid_t = no; then
23218   
23219 cat >>confdefs.h <<\_ACEOF
23220 @%:@define uid_t int
23221 _ACEOF
23222
23223   
23224 cat >>confdefs.h <<\_ACEOF
23225 @%:@define gid_t int
23226 _ACEOF
23227
23228 fi
23229
23230 { echo "$as_me:$LINENO: checking for inline" >&5
23231 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
23232 if test "${ac_cv_c_inline+set}" = set; then
23233   echo $ECHO_N "(cached) $ECHO_C" >&6
23234 else
23235   ac_cv_c_inline=no
23236 for ac_kw in inline __inline__ __inline; do
23237   cat >conftest.$ac_ext <<_ACEOF
23238 /* confdefs.h.  */
23239 _ACEOF
23240 cat confdefs.h >>conftest.$ac_ext
23241 cat >>conftest.$ac_ext <<_ACEOF
23242 /* end confdefs.h.  */
23243 #ifndef __cplusplus
23244 typedef int foo_t;
23245 static $ac_kw foo_t static_foo () {return 0; }
23246 $ac_kw foo_t foo () {return 0; }
23247 #endif
23248
23249 _ACEOF
23250 rm -f conftest.$ac_objext
23251 if { (ac_try="$ac_compile"
23252 case "(($ac_try" in
23253   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23254   *) ac_try_echo=$ac_try;;
23255 esac
23256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23257   (eval "$ac_compile") 2>conftest.er1
23258   ac_status=$?
23259   grep -v '^ *+' conftest.er1 >conftest.err
23260   rm -f conftest.er1
23261   cat conftest.err >&5
23262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23263   (exit $ac_status); } && {
23264          test -z "$ac_c_werror_flag" ||
23265          test ! -s conftest.err
23266        } && test -s conftest.$ac_objext; then
23267   ac_cv_c_inline=$ac_kw
23268 else
23269   echo "$as_me: failed program was:" >&5
23270 sed 's/^/| /' conftest.$ac_ext >&5
23271
23272         
23273 fi
23274
23275 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23276   test "$ac_cv_c_inline" != no && break
23277 done
23278
23279 fi
23280 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
23281 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
23282
23283
23284 case $ac_cv_c_inline in
23285   inline | yes) ;;
23286   *)
23287     case $ac_cv_c_inline in
23288       no) ac_val=;;
23289       *) ac_val=$ac_cv_c_inline;;
23290     esac
23291     cat >>confdefs.h <<_ACEOF
23292 #ifndef __cplusplus
23293 #define inline $ac_val
23294 #endif
23295 _ACEOF
23296     ;;
23297 esac
23298
23299 { echo "$as_me:$LINENO: checking for off_t" >&5
23300 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
23301 if test "${ac_cv_type_off_t+set}" = set; then
23302   echo $ECHO_N "(cached) $ECHO_C" >&6
23303 else
23304   cat >conftest.$ac_ext <<_ACEOF
23305 /* confdefs.h.  */
23306 _ACEOF
23307 cat confdefs.h >>conftest.$ac_ext
23308 cat >>conftest.$ac_ext <<_ACEOF
23309 /* end confdefs.h.  */
23310 $ac_includes_default
23311 typedef off_t ac__type_new_;
23312 int
23313 main ()
23314 {
23315 if ((ac__type_new_ *) 0)
23316   return 0;
23317 if (sizeof (ac__type_new_))
23318   return 0;
23319   ;
23320   return 0;
23321 }
23322 _ACEOF
23323 rm -f conftest.$ac_objext
23324 if { (ac_try="$ac_compile"
23325 case "(($ac_try" in
23326   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23327   *) ac_try_echo=$ac_try;;
23328 esac
23329 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23330   (eval "$ac_compile") 2>conftest.er1
23331   ac_status=$?
23332   grep -v '^ *+' conftest.er1 >conftest.err
23333   rm -f conftest.er1
23334   cat conftest.err >&5
23335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23336   (exit $ac_status); } && {
23337          test -z "$ac_c_werror_flag" ||
23338          test ! -s conftest.err
23339        } && test -s conftest.$ac_objext; then
23340   ac_cv_type_off_t=yes
23341 else
23342   echo "$as_me: failed program was:" >&5
23343 sed 's/^/| /' conftest.$ac_ext >&5
23344
23345         ac_cv_type_off_t=no
23346 fi
23347
23348 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23349 fi
23350 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
23351 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
23352 if test $ac_cv_type_off_t = yes; then
23353   :
23354 else
23355   
23356 cat >>confdefs.h <<_ACEOF
23357 @%:@define off_t long int
23358 _ACEOF
23359
23360 fi
23361
23362 { echo "$as_me:$LINENO: checking for pid_t" >&5
23363 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
23364 if test "${ac_cv_type_pid_t+set}" = set; then
23365   echo $ECHO_N "(cached) $ECHO_C" >&6
23366 else
23367   cat >conftest.$ac_ext <<_ACEOF
23368 /* confdefs.h.  */
23369 _ACEOF
23370 cat confdefs.h >>conftest.$ac_ext
23371 cat >>conftest.$ac_ext <<_ACEOF
23372 /* end confdefs.h.  */
23373 $ac_includes_default
23374 typedef pid_t ac__type_new_;
23375 int
23376 main ()
23377 {
23378 if ((ac__type_new_ *) 0)
23379   return 0;
23380 if (sizeof (ac__type_new_))
23381   return 0;
23382   ;
23383   return 0;
23384 }
23385 _ACEOF
23386 rm -f conftest.$ac_objext
23387 if { (ac_try="$ac_compile"
23388 case "(($ac_try" in
23389   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23390   *) ac_try_echo=$ac_try;;
23391 esac
23392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23393   (eval "$ac_compile") 2>conftest.er1
23394   ac_status=$?
23395   grep -v '^ *+' conftest.er1 >conftest.err
23396   rm -f conftest.er1
23397   cat conftest.err >&5
23398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23399   (exit $ac_status); } && {
23400          test -z "$ac_c_werror_flag" ||
23401          test ! -s conftest.err
23402        } && test -s conftest.$ac_objext; then
23403   ac_cv_type_pid_t=yes
23404 else
23405   echo "$as_me: failed program was:" >&5
23406 sed 's/^/| /' conftest.$ac_ext >&5
23407
23408         ac_cv_type_pid_t=no
23409 fi
23410
23411 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23412 fi
23413 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
23414 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
23415 if test $ac_cv_type_pid_t = yes; then
23416   :
23417 else
23418   
23419 cat >>confdefs.h <<_ACEOF
23420 @%:@define pid_t int
23421 _ACEOF
23422
23423 fi
23424
23425 { echo "$as_me:$LINENO: checking for size_t" >&5
23426 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
23427 if test "${ac_cv_type_size_t+set}" = set; then
23428   echo $ECHO_N "(cached) $ECHO_C" >&6
23429 else
23430   cat >conftest.$ac_ext <<_ACEOF
23431 /* confdefs.h.  */
23432 _ACEOF
23433 cat confdefs.h >>conftest.$ac_ext
23434 cat >>conftest.$ac_ext <<_ACEOF
23435 /* end confdefs.h.  */
23436 $ac_includes_default
23437 typedef size_t ac__type_new_;
23438 int
23439 main ()
23440 {
23441 if ((ac__type_new_ *) 0)
23442   return 0;
23443 if (sizeof (ac__type_new_))
23444   return 0;
23445   ;
23446   return 0;
23447 }
23448 _ACEOF
23449 rm -f conftest.$ac_objext
23450 if { (ac_try="$ac_compile"
23451 case "(($ac_try" in
23452   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23453   *) ac_try_echo=$ac_try;;
23454 esac
23455 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23456   (eval "$ac_compile") 2>conftest.er1
23457   ac_status=$?
23458   grep -v '^ *+' conftest.er1 >conftest.err
23459   rm -f conftest.er1
23460   cat conftest.err >&5
23461   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23462   (exit $ac_status); } && {
23463          test -z "$ac_c_werror_flag" ||
23464          test ! -s conftest.err
23465        } && test -s conftest.$ac_objext; then
23466   ac_cv_type_size_t=yes
23467 else
23468   echo "$as_me: failed program was:" >&5
23469 sed 's/^/| /' conftest.$ac_ext >&5
23470
23471         ac_cv_type_size_t=no
23472 fi
23473
23474 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23475 fi
23476 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
23477 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
23478 if test $ac_cv_type_size_t = yes; then
23479   :
23480 else
23481   
23482 cat >>confdefs.h <<_ACEOF
23483 @%:@define size_t unsigned int
23484 _ACEOF
23485
23486 fi
23487
23488 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
23489 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
23490 if test "${ac_cv_header_time+set}" = set; then
23491   echo $ECHO_N "(cached) $ECHO_C" >&6
23492 else
23493   cat >conftest.$ac_ext <<_ACEOF
23494 /* confdefs.h.  */
23495 _ACEOF
23496 cat confdefs.h >>conftest.$ac_ext
23497 cat >>conftest.$ac_ext <<_ACEOF
23498 /* end confdefs.h.  */
23499 #include <sys/types.h>
23500 #include <sys/time.h>
23501 #include <time.h>
23502
23503 int
23504 main ()
23505 {
23506 if ((struct tm *) 0)
23507 return 0;
23508   ;
23509   return 0;
23510 }
23511 _ACEOF
23512 rm -f conftest.$ac_objext
23513 if { (ac_try="$ac_compile"
23514 case "(($ac_try" in
23515   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23516   *) ac_try_echo=$ac_try;;
23517 esac
23518 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23519   (eval "$ac_compile") 2>conftest.er1
23520   ac_status=$?
23521   grep -v '^ *+' conftest.er1 >conftest.err
23522   rm -f conftest.er1
23523   cat conftest.err >&5
23524   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23525   (exit $ac_status); } && {
23526          test -z "$ac_c_werror_flag" ||
23527          test ! -s conftest.err
23528        } && test -s conftest.$ac_objext; then
23529   ac_cv_header_time=yes
23530 else
23531   echo "$as_me: failed program was:" >&5
23532 sed 's/^/| /' conftest.$ac_ext >&5
23533
23534         ac_cv_header_time=no
23535 fi
23536
23537 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23538 fi
23539 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
23540 echo "${ECHO_T}$ac_cv_header_time" >&6; }
23541 if test $ac_cv_header_time = yes; then
23542   
23543 cat >>confdefs.h <<\_ACEOF
23544 @%:@define TIME_WITH_SYS_TIME 1
23545 _ACEOF
23546
23547 fi
23548
23549 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
23550 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
23551 if test "${ac_cv_struct_tm+set}" = set; then
23552   echo $ECHO_N "(cached) $ECHO_C" >&6
23553 else
23554   cat >conftest.$ac_ext <<_ACEOF
23555 /* confdefs.h.  */
23556 _ACEOF
23557 cat confdefs.h >>conftest.$ac_ext
23558 cat >>conftest.$ac_ext <<_ACEOF
23559 /* end confdefs.h.  */
23560 #include <sys/types.h>
23561 #include <time.h>
23562
23563 int
23564 main ()
23565 {
23566 struct tm tm;
23567                                      int *p = &tm.tm_sec;
23568                                      return !p;
23569   ;
23570   return 0;
23571 }
23572 _ACEOF
23573 rm -f conftest.$ac_objext
23574 if { (ac_try="$ac_compile"
23575 case "(($ac_try" in
23576   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23577   *) ac_try_echo=$ac_try;;
23578 esac
23579 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23580   (eval "$ac_compile") 2>conftest.er1
23581   ac_status=$?
23582   grep -v '^ *+' conftest.er1 >conftest.err
23583   rm -f conftest.er1
23584   cat conftest.err >&5
23585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23586   (exit $ac_status); } && {
23587          test -z "$ac_c_werror_flag" ||
23588          test ! -s conftest.err
23589        } && test -s conftest.$ac_objext; then
23590   ac_cv_struct_tm=time.h
23591 else
23592   echo "$as_me: failed program was:" >&5
23593 sed 's/^/| /' conftest.$ac_ext >&5
23594
23595         ac_cv_struct_tm=sys/time.h
23596 fi
23597
23598 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23599 fi
23600 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
23601 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
23602 if test $ac_cv_struct_tm = sys/time.h; then
23603   
23604 cat >>confdefs.h <<\_ACEOF
23605 @%:@define TM_IN_SYS_TIME 1
23606 _ACEOF
23607
23608 fi
23609
23610
23611 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
23612 # for constant arguments.  Useless!
23613 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
23614 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
23615 if test "${ac_cv_working_alloca_h+set}" = set; then
23616   echo $ECHO_N "(cached) $ECHO_C" >&6
23617 else
23618   cat >conftest.$ac_ext <<_ACEOF
23619 /* confdefs.h.  */
23620 _ACEOF
23621 cat confdefs.h >>conftest.$ac_ext
23622 cat >>conftest.$ac_ext <<_ACEOF
23623 /* end confdefs.h.  */
23624 @%:@include <alloca.h>
23625 int
23626 main ()
23627 {
23628 char *p = (char *) alloca (2 * sizeof (int));
23629                           if (p) return 0;
23630   ;
23631   return 0;
23632 }
23633 _ACEOF
23634 rm -f conftest.$ac_objext conftest$ac_exeext
23635 if { (ac_try="$ac_link"
23636 case "(($ac_try" in
23637   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23638   *) ac_try_echo=$ac_try;;
23639 esac
23640 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23641   (eval "$ac_link") 2>conftest.er1
23642   ac_status=$?
23643   grep -v '^ *+' conftest.er1 >conftest.err
23644   rm -f conftest.er1
23645   cat conftest.err >&5
23646   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23647   (exit $ac_status); } && {
23648          test -z "$ac_c_werror_flag" ||
23649          test ! -s conftest.err
23650        } && test -s conftest$ac_exeext &&
23651        $as_test_x conftest$ac_exeext; then
23652   ac_cv_working_alloca_h=yes
23653 else
23654   echo "$as_me: failed program was:" >&5
23655 sed 's/^/| /' conftest.$ac_ext >&5
23656
23657         ac_cv_working_alloca_h=no
23658 fi
23659
23660 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23661       conftest$ac_exeext conftest.$ac_ext
23662 fi
23663 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
23664 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
23665 if test $ac_cv_working_alloca_h = yes; then
23666   
23667 cat >>confdefs.h <<\_ACEOF
23668 @%:@define HAVE_ALLOCA_H 1
23669 _ACEOF
23670
23671 fi
23672
23673 { echo "$as_me:$LINENO: checking for alloca" >&5
23674 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
23675 if test "${ac_cv_func_alloca_works+set}" = set; then
23676   echo $ECHO_N "(cached) $ECHO_C" >&6
23677 else
23678   cat >conftest.$ac_ext <<_ACEOF
23679 /* confdefs.h.  */
23680 _ACEOF
23681 cat confdefs.h >>conftest.$ac_ext
23682 cat >>conftest.$ac_ext <<_ACEOF
23683 /* end confdefs.h.  */
23684 #ifdef __GNUC__
23685 # define alloca __builtin_alloca
23686 #else
23687 # ifdef _MSC_VER
23688 #  include <malloc.h>
23689 #  define alloca _alloca
23690 # else
23691 #  ifdef HAVE_ALLOCA_H
23692 #   include <alloca.h>
23693 #  else
23694 #   ifdef _AIX
23695  #pragma alloca
23696 #   else
23697 #    ifndef alloca /* predefined by HP cc +Olibcalls */
23698 char *alloca ();
23699 #    endif
23700 #   endif
23701 #  endif
23702 # endif
23703 #endif
23704
23705 int
23706 main ()
23707 {
23708 char *p = (char *) alloca (1);
23709                                     if (p) return 0;
23710   ;
23711   return 0;
23712 }
23713 _ACEOF
23714 rm -f conftest.$ac_objext conftest$ac_exeext
23715 if { (ac_try="$ac_link"
23716 case "(($ac_try" in
23717   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23718   *) ac_try_echo=$ac_try;;
23719 esac
23720 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23721   (eval "$ac_link") 2>conftest.er1
23722   ac_status=$?
23723   grep -v '^ *+' conftest.er1 >conftest.err
23724   rm -f conftest.er1
23725   cat conftest.err >&5
23726   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23727   (exit $ac_status); } && {
23728          test -z "$ac_c_werror_flag" ||
23729          test ! -s conftest.err
23730        } && test -s conftest$ac_exeext &&
23731        $as_test_x conftest$ac_exeext; then
23732   ac_cv_func_alloca_works=yes
23733 else
23734   echo "$as_me: failed program was:" >&5
23735 sed 's/^/| /' conftest.$ac_ext >&5
23736
23737         ac_cv_func_alloca_works=no
23738 fi
23739
23740 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23741       conftest$ac_exeext conftest.$ac_ext
23742 fi
23743 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
23744 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
23745
23746 if test $ac_cv_func_alloca_works = yes; then
23747   
23748 cat >>confdefs.h <<\_ACEOF
23749 @%:@define HAVE_ALLOCA 1
23750 _ACEOF
23751
23752 else
23753   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
23754 # that cause trouble.  Some versions do not even contain alloca or
23755 # contain a buggy version.  If you still want to use their alloca,
23756 # use ar to extract alloca.o from them instead of compiling alloca.c.
23757
23758 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
23759
23760 cat >>confdefs.h <<\_ACEOF
23761 @%:@define C_ALLOCA 1
23762 _ACEOF
23763
23764
23765 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
23766 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
23767 if test "${ac_cv_os_cray+set}" = set; then
23768   echo $ECHO_N "(cached) $ECHO_C" >&6
23769 else
23770   cat >conftest.$ac_ext <<_ACEOF
23771 /* confdefs.h.  */
23772 _ACEOF
23773 cat confdefs.h >>conftest.$ac_ext
23774 cat >>conftest.$ac_ext <<_ACEOF
23775 /* end confdefs.h.  */
23776 #if defined CRAY && ! defined CRAY2
23777 webecray
23778 #else
23779 wenotbecray
23780 #endif
23781
23782 _ACEOF
23783 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23784   $EGREP "webecray" >/dev/null 2>&1; then
23785   ac_cv_os_cray=yes
23786 else
23787   ac_cv_os_cray=no
23788 fi
23789 rm -f conftest*
23790
23791 fi
23792 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
23793 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
23794 if test $ac_cv_os_cray = yes; then
23795   for ac_func in _getb67 GETB67 getb67; do
23796     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23797 { echo "$as_me:$LINENO: checking for $ac_func" >&5
23798 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
23799 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
23800   echo $ECHO_N "(cached) $ECHO_C" >&6
23801 else
23802   cat >conftest.$ac_ext <<_ACEOF
23803 /* confdefs.h.  */
23804 _ACEOF
23805 cat confdefs.h >>conftest.$ac_ext
23806 cat >>conftest.$ac_ext <<_ACEOF
23807 /* end confdefs.h.  */
23808 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23809    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
23810 #define $ac_func innocuous_$ac_func
23811
23812 /* System header to define __stub macros and hopefully few prototypes,
23813     which can conflict with char $ac_func (); below.
23814     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23815     <limits.h> exists even on freestanding compilers.  */
23816
23817 #ifdef __STDC__
23818 # include <limits.h>
23819 #else
23820 # include <assert.h>
23821 #endif
23822
23823 #undef $ac_func
23824
23825 /* Override any GCC internal prototype to avoid an error.
23826    Use char because int might match the return type of a GCC
23827    builtin and then its argument prototype would still apply.  */
23828 #ifdef __cplusplus
23829 extern "C"
23830 #endif
23831 char $ac_func ();
23832 /* The GNU C library defines this for functions which it implements
23833     to always fail with ENOSYS.  Some functions are actually named
23834     something starting with __ and the normal name is an alias.  */
23835 #if defined __stub_$ac_func || defined __stub___$ac_func
23836 choke me
23837 #endif
23838
23839 int
23840 main ()
23841 {
23842 return $ac_func ();
23843   ;
23844   return 0;
23845 }
23846 _ACEOF
23847 rm -f conftest.$ac_objext conftest$ac_exeext
23848 if { (ac_try="$ac_link"
23849 case "(($ac_try" in
23850   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23851   *) ac_try_echo=$ac_try;;
23852 esac
23853 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23854   (eval "$ac_link") 2>conftest.er1
23855   ac_status=$?
23856   grep -v '^ *+' conftest.er1 >conftest.err
23857   rm -f conftest.er1
23858   cat conftest.err >&5
23859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23860   (exit $ac_status); } && {
23861          test -z "$ac_c_werror_flag" ||
23862          test ! -s conftest.err
23863        } && test -s conftest$ac_exeext &&
23864        $as_test_x conftest$ac_exeext; then
23865   eval "$as_ac_var=yes"
23866 else
23867   echo "$as_me: failed program was:" >&5
23868 sed 's/^/| /' conftest.$ac_ext >&5
23869
23870         eval "$as_ac_var=no"
23871 fi
23872
23873 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23874       conftest$ac_exeext conftest.$ac_ext
23875 fi
23876 ac_res=`eval echo '${'$as_ac_var'}'`
23877                { echo "$as_me:$LINENO: result: $ac_res" >&5
23878 echo "${ECHO_T}$ac_res" >&6; }
23879 if test `eval echo '${'$as_ac_var'}'` = yes; then
23880   
23881 cat >>confdefs.h <<_ACEOF
23882 @%:@define CRAY_STACKSEG_END $ac_func
23883 _ACEOF
23884
23885     break
23886 fi
23887
23888   done
23889 fi
23890
23891 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
23892 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
23893 if test "${ac_cv_c_stack_direction+set}" = set; then
23894   echo $ECHO_N "(cached) $ECHO_C" >&6
23895 else
23896   if test "$cross_compiling" = yes; then
23897   ac_cv_c_stack_direction=0
23898 else
23899   cat >conftest.$ac_ext <<_ACEOF
23900 /* confdefs.h.  */
23901 _ACEOF
23902 cat confdefs.h >>conftest.$ac_ext
23903 cat >>conftest.$ac_ext <<_ACEOF
23904 /* end confdefs.h.  */
23905 $ac_includes_default
23906 int
23907 find_stack_direction ()
23908 {
23909   static char *addr = 0;
23910   auto char dummy;
23911   if (addr == 0)
23912     {
23913       addr = &dummy;
23914       return find_stack_direction ();
23915     }
23916   else
23917     return (&dummy > addr) ? 1 : -1;
23918 }
23919
23920 int
23921 main ()
23922 {
23923   return find_stack_direction () < 0;
23924 }
23925 _ACEOF
23926 rm -f conftest$ac_exeext
23927 if { (ac_try="$ac_link"
23928 case "(($ac_try" in
23929   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23930   *) ac_try_echo=$ac_try;;
23931 esac
23932 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23933   (eval "$ac_link") 2>&5
23934   ac_status=$?
23935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23936   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23937   { (case "(($ac_try" in
23938   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23939   *) ac_try_echo=$ac_try;;
23940 esac
23941 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23942   (eval "$ac_try") 2>&5
23943   ac_status=$?
23944   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23945   (exit $ac_status); }; }; then
23946   ac_cv_c_stack_direction=1
23947 else
23948   echo "$as_me: program exited with status $ac_status" >&5
23949 echo "$as_me: failed program was:" >&5
23950 sed 's/^/| /' conftest.$ac_ext >&5
23951
23952 ( exit $ac_status )
23953 ac_cv_c_stack_direction=-1
23954 fi
23955 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23956 fi
23957
23958
23959 fi
23960 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
23961 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
23962
23963 cat >>confdefs.h <<_ACEOF
23964 @%:@define STACK_DIRECTION $ac_cv_c_stack_direction
23965 _ACEOF
23966
23967
23968 fi
23969
23970
23971
23972
23973
23974
23975 ac_header_dirent=no
23976 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
23977   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
23978 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
23979 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
23980 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23981   echo $ECHO_N "(cached) $ECHO_C" >&6
23982 else
23983   cat >conftest.$ac_ext <<_ACEOF
23984 /* confdefs.h.  */
23985 _ACEOF
23986 cat confdefs.h >>conftest.$ac_ext
23987 cat >>conftest.$ac_ext <<_ACEOF
23988 /* end confdefs.h.  */
23989 #include <sys/types.h>
23990 #include <$ac_hdr>
23991
23992 int
23993 main ()
23994 {
23995 if ((DIR *) 0)
23996 return 0;
23997   ;
23998   return 0;
23999 }
24000 _ACEOF
24001 rm -f conftest.$ac_objext
24002 if { (ac_try="$ac_compile"
24003 case "(($ac_try" in
24004   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24005   *) ac_try_echo=$ac_try;;
24006 esac
24007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24008   (eval "$ac_compile") 2>conftest.er1
24009   ac_status=$?
24010   grep -v '^ *+' conftest.er1 >conftest.err
24011   rm -f conftest.er1
24012   cat conftest.err >&5
24013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24014   (exit $ac_status); } && {
24015          test -z "$ac_c_werror_flag" ||
24016          test ! -s conftest.err
24017        } && test -s conftest.$ac_objext; then
24018   eval "$as_ac_Header=yes"
24019 else
24020   echo "$as_me: failed program was:" >&5
24021 sed 's/^/| /' conftest.$ac_ext >&5
24022
24023         eval "$as_ac_Header=no"
24024 fi
24025
24026 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24027 fi
24028 ac_res=`eval echo '${'$as_ac_Header'}'`
24029                { echo "$as_me:$LINENO: result: $ac_res" >&5
24030 echo "${ECHO_T}$ac_res" >&6; }
24031 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24032   cat >>confdefs.h <<_ACEOF
24033 @%:@define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
24034 _ACEOF
24035
24036 ac_header_dirent=$ac_hdr; break
24037 fi
24038
24039 done
24040 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
24041 if test $ac_header_dirent = dirent.h; then
24042   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
24043 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
24044 if test "${ac_cv_search_opendir+set}" = set; then
24045   echo $ECHO_N "(cached) $ECHO_C" >&6
24046 else
24047   ac_func_search_save_LIBS=$LIBS
24048 cat >conftest.$ac_ext <<_ACEOF
24049 /* confdefs.h.  */
24050 _ACEOF
24051 cat confdefs.h >>conftest.$ac_ext
24052 cat >>conftest.$ac_ext <<_ACEOF
24053 /* end confdefs.h.  */
24054
24055 /* Override any GCC internal prototype to avoid an error.
24056    Use char because int might match the return type of a GCC
24057    builtin and then its argument prototype would still apply.  */
24058 #ifdef __cplusplus
24059 extern "C"
24060 #endif
24061 char opendir ();
24062 int
24063 main ()
24064 {
24065 return opendir ();
24066   ;
24067   return 0;
24068 }
24069 _ACEOF
24070 for ac_lib in '' dir; do
24071   if test -z "$ac_lib"; then
24072     ac_res="none required"
24073   else
24074     ac_res=-l$ac_lib
24075     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
24076   fi
24077   rm -f conftest.$ac_objext conftest$ac_exeext
24078 if { (ac_try="$ac_link"
24079 case "(($ac_try" in
24080   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24081   *) ac_try_echo=$ac_try;;
24082 esac
24083 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24084   (eval "$ac_link") 2>conftest.er1
24085   ac_status=$?
24086   grep -v '^ *+' conftest.er1 >conftest.err
24087   rm -f conftest.er1
24088   cat conftest.err >&5
24089   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24090   (exit $ac_status); } && {
24091          test -z "$ac_c_werror_flag" ||
24092          test ! -s conftest.err
24093        } && test -s conftest$ac_exeext &&
24094        $as_test_x conftest$ac_exeext; then
24095   ac_cv_search_opendir=$ac_res
24096 else
24097   echo "$as_me: failed program was:" >&5
24098 sed 's/^/| /' conftest.$ac_ext >&5
24099
24100         
24101 fi
24102
24103 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24104       conftest$ac_exeext 
24105   if test "${ac_cv_search_opendir+set}" = set; then
24106   break
24107 fi
24108 done
24109 if test "${ac_cv_search_opendir+set}" = set; then
24110   :
24111 else
24112   ac_cv_search_opendir=no
24113 fi
24114 rm conftest.$ac_ext
24115 LIBS=$ac_func_search_save_LIBS
24116 fi
24117 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
24118 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
24119 ac_res=$ac_cv_search_opendir
24120 if test "$ac_res" != no; then
24121   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
24122   
24123 fi
24124
24125 else
24126   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
24127 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
24128 if test "${ac_cv_search_opendir+set}" = set; then
24129   echo $ECHO_N "(cached) $ECHO_C" >&6
24130 else
24131   ac_func_search_save_LIBS=$LIBS
24132 cat >conftest.$ac_ext <<_ACEOF
24133 /* confdefs.h.  */
24134 _ACEOF
24135 cat confdefs.h >>conftest.$ac_ext
24136 cat >>conftest.$ac_ext <<_ACEOF
24137 /* end confdefs.h.  */
24138
24139 /* Override any GCC internal prototype to avoid an error.
24140    Use char because int might match the return type of a GCC
24141    builtin and then its argument prototype would still apply.  */
24142 #ifdef __cplusplus
24143 extern "C"
24144 #endif
24145 char opendir ();
24146 int
24147 main ()
24148 {
24149 return opendir ();
24150   ;
24151   return 0;
24152 }
24153 _ACEOF
24154 for ac_lib in '' x; do
24155   if test -z "$ac_lib"; then
24156     ac_res="none required"
24157   else
24158     ac_res=-l$ac_lib
24159     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
24160   fi
24161   rm -f conftest.$ac_objext conftest$ac_exeext
24162 if { (ac_try="$ac_link"
24163 case "(($ac_try" in
24164   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24165   *) ac_try_echo=$ac_try;;
24166 esac
24167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24168   (eval "$ac_link") 2>conftest.er1
24169   ac_status=$?
24170   grep -v '^ *+' conftest.er1 >conftest.err
24171   rm -f conftest.er1
24172   cat conftest.err >&5
24173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24174   (exit $ac_status); } && {
24175          test -z "$ac_c_werror_flag" ||
24176          test ! -s conftest.err
24177        } && test -s conftest$ac_exeext &&
24178        $as_test_x conftest$ac_exeext; then
24179   ac_cv_search_opendir=$ac_res
24180 else
24181   echo "$as_me: failed program was:" >&5
24182 sed 's/^/| /' conftest.$ac_ext >&5
24183
24184         
24185 fi
24186
24187 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24188       conftest$ac_exeext 
24189   if test "${ac_cv_search_opendir+set}" = set; then
24190   break
24191 fi
24192 done
24193 if test "${ac_cv_search_opendir+set}" = set; then
24194   :
24195 else
24196   ac_cv_search_opendir=no
24197 fi
24198 rm conftest.$ac_ext
24199 LIBS=$ac_func_search_save_LIBS
24200 fi
24201 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
24202 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
24203 ac_res=$ac_cv_search_opendir
24204 if test "$ac_res" != no; then
24205   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
24206   
24207 fi
24208
24209 fi
24210
24211 { echo "$as_me:$LINENO: checking whether closedir returns void" >&5
24212 echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6; }
24213 if test "${ac_cv_func_closedir_void+set}" = set; then
24214   echo $ECHO_N "(cached) $ECHO_C" >&6
24215 else
24216   if test "$cross_compiling" = yes; then
24217   ac_cv_func_closedir_void=yes
24218 else
24219   cat >conftest.$ac_ext <<_ACEOF
24220 /* confdefs.h.  */
24221 _ACEOF
24222 cat confdefs.h >>conftest.$ac_ext
24223 cat >>conftest.$ac_ext <<_ACEOF
24224 /* end confdefs.h.  */
24225 $ac_includes_default
24226 #include <$ac_header_dirent>
24227 #ifndef __cplusplus
24228 int closedir ();
24229 #endif
24230
24231 int
24232 main ()
24233 {
24234 return closedir (opendir (".")) != 0;
24235   ;
24236   return 0;
24237 }
24238 _ACEOF
24239 rm -f conftest$ac_exeext
24240 if { (ac_try="$ac_link"
24241 case "(($ac_try" in
24242   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24243   *) ac_try_echo=$ac_try;;
24244 esac
24245 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24246   (eval "$ac_link") 2>&5
24247   ac_status=$?
24248   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24249   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24250   { (case "(($ac_try" in
24251   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24252   *) ac_try_echo=$ac_try;;
24253 esac
24254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24255   (eval "$ac_try") 2>&5
24256   ac_status=$?
24257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24258   (exit $ac_status); }; }; then
24259   ac_cv_func_closedir_void=no
24260 else
24261   echo "$as_me: program exited with status $ac_status" >&5
24262 echo "$as_me: failed program was:" >&5
24263 sed 's/^/| /' conftest.$ac_ext >&5
24264
24265 ( exit $ac_status )
24266 ac_cv_func_closedir_void=yes
24267 fi
24268 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24269 fi
24270
24271
24272 fi
24273 { echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
24274 echo "${ECHO_T}$ac_cv_func_closedir_void" >&6; }
24275 if test $ac_cv_func_closedir_void = yes; then
24276   
24277 cat >>confdefs.h <<\_ACEOF
24278 @%:@define CLOSEDIR_VOID 1
24279 _ACEOF
24280
24281 fi
24282
24283 { echo "$as_me:$LINENO: checking for error_at_line" >&5
24284 echo $ECHO_N "checking for error_at_line... $ECHO_C" >&6; }
24285 if test "${ac_cv_lib_error_at_line+set}" = set; then
24286   echo $ECHO_N "(cached) $ECHO_C" >&6
24287 else
24288   cat >conftest.$ac_ext <<_ACEOF
24289 /* confdefs.h.  */
24290 _ACEOF
24291 cat confdefs.h >>conftest.$ac_ext
24292 cat >>conftest.$ac_ext <<_ACEOF
24293 /* end confdefs.h.  */
24294 #include <error.h>
24295 int
24296 main ()
24297 {
24298 error_at_line (0, 0, "", 0, "an error occurred");
24299   ;
24300   return 0;
24301 }
24302 _ACEOF
24303 rm -f conftest.$ac_objext conftest$ac_exeext
24304 if { (ac_try="$ac_link"
24305 case "(($ac_try" in
24306   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24307   *) ac_try_echo=$ac_try;;
24308 esac
24309 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24310   (eval "$ac_link") 2>conftest.er1
24311   ac_status=$?
24312   grep -v '^ *+' conftest.er1 >conftest.err
24313   rm -f conftest.er1
24314   cat conftest.err >&5
24315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24316   (exit $ac_status); } && {
24317          test -z "$ac_c_werror_flag" ||
24318          test ! -s conftest.err
24319        } && test -s conftest$ac_exeext &&
24320        $as_test_x conftest$ac_exeext; then
24321   ac_cv_lib_error_at_line=yes
24322 else
24323   echo "$as_me: failed program was:" >&5
24324 sed 's/^/| /' conftest.$ac_ext >&5
24325
24326         ac_cv_lib_error_at_line=no
24327 fi
24328
24329 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24330       conftest$ac_exeext conftest.$ac_ext
24331 fi
24332 { echo "$as_me:$LINENO: result: $ac_cv_lib_error_at_line" >&5
24333 echo "${ECHO_T}$ac_cv_lib_error_at_line" >&6; }
24334 if test $ac_cv_lib_error_at_line = no; then
24335   case " $LIB@&t@OBJS " in
24336   *" error.$ac_objext "* ) ;;
24337   *) LIB@&t@OBJS="$LIB@&t@OBJS error.$ac_objext"
24338  ;;
24339 esac
24340
24341 fi
24342
24343
24344 for ac_header in vfork.h
24345 do
24346 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24347 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24348   { echo "$as_me:$LINENO: checking for $ac_header" >&5
24349 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24350 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24351   echo $ECHO_N "(cached) $ECHO_C" >&6
24352 fi
24353 ac_res=`eval echo '${'$as_ac_Header'}'`
24354                { echo "$as_me:$LINENO: result: $ac_res" >&5
24355 echo "${ECHO_T}$ac_res" >&6; }
24356 else
24357   # Is the header compilable?
24358 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
24359 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
24360 cat >conftest.$ac_ext <<_ACEOF
24361 /* confdefs.h.  */
24362 _ACEOF
24363 cat confdefs.h >>conftest.$ac_ext
24364 cat >>conftest.$ac_ext <<_ACEOF
24365 /* end confdefs.h.  */
24366 $ac_includes_default
24367 @%:@include <$ac_header>
24368 _ACEOF
24369 rm -f conftest.$ac_objext
24370 if { (ac_try="$ac_compile"
24371 case "(($ac_try" in
24372   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24373   *) ac_try_echo=$ac_try;;
24374 esac
24375 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24376   (eval "$ac_compile") 2>conftest.er1
24377   ac_status=$?
24378   grep -v '^ *+' conftest.er1 >conftest.err
24379   rm -f conftest.er1
24380   cat conftest.err >&5
24381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24382   (exit $ac_status); } && {
24383          test -z "$ac_c_werror_flag" ||
24384          test ! -s conftest.err
24385        } && test -s conftest.$ac_objext; then
24386   ac_header_compiler=yes
24387 else
24388   echo "$as_me: failed program was:" >&5
24389 sed 's/^/| /' conftest.$ac_ext >&5
24390
24391         ac_header_compiler=no
24392 fi
24393
24394 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24395 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24396 echo "${ECHO_T}$ac_header_compiler" >&6; }
24397
24398 # Is the header present?
24399 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
24400 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
24401 cat >conftest.$ac_ext <<_ACEOF
24402 /* confdefs.h.  */
24403 _ACEOF
24404 cat confdefs.h >>conftest.$ac_ext
24405 cat >>conftest.$ac_ext <<_ACEOF
24406 /* end confdefs.h.  */
24407 @%:@include <$ac_header>
24408 _ACEOF
24409 if { (ac_try="$ac_cpp conftest.$ac_ext"
24410 case "(($ac_try" in
24411   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24412   *) ac_try_echo=$ac_try;;
24413 esac
24414 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24415   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24416   ac_status=$?
24417   grep -v '^ *+' conftest.er1 >conftest.err
24418   rm -f conftest.er1
24419   cat conftest.err >&5
24420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24421   (exit $ac_status); } >/dev/null && {
24422          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24423          test ! -s conftest.err
24424        }; then
24425   ac_header_preproc=yes
24426 else
24427   echo "$as_me: failed program was:" >&5
24428 sed 's/^/| /' conftest.$ac_ext >&5
24429
24430   ac_header_preproc=no
24431 fi
24432
24433 rm -f conftest.err conftest.$ac_ext
24434 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24435 echo "${ECHO_T}$ac_header_preproc" >&6; }
24436
24437 # So?  What about this header?
24438 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24439   yes:no: )
24440     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24441 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24442     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24443 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24444     ac_header_preproc=yes
24445     ;;
24446   no:yes:* )
24447     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24448 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24449     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
24450 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
24451     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24452 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24453     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
24454 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
24455     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24456 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24457     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24458 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24459     ( cat <<\_ASBOX
24460 @%:@@%:@ ------------------------------- @%:@@%:@
24461 @%:@@%:@ Report this to nfs@lists.sf.net @%:@@%:@
24462 @%:@@%:@ ------------------------------- @%:@@%:@
24463 _ASBOX
24464      ) | sed "s/^/$as_me: WARNING:     /" >&2
24465     ;;
24466 esac
24467 { echo "$as_me:$LINENO: checking for $ac_header" >&5
24468 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24469 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24470   echo $ECHO_N "(cached) $ECHO_C" >&6
24471 else
24472   eval "$as_ac_Header=\$ac_header_preproc"
24473 fi
24474 ac_res=`eval echo '${'$as_ac_Header'}'`
24475                { echo "$as_me:$LINENO: result: $ac_res" >&5
24476 echo "${ECHO_T}$ac_res" >&6; }
24477
24478 fi
24479 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24480   cat >>confdefs.h <<_ACEOF
24481 @%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24482 _ACEOF
24483  
24484 fi
24485
24486 done
24487
24488
24489
24490 for ac_func in fork vfork
24491 do
24492 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24493 { echo "$as_me:$LINENO: checking for $ac_func" >&5
24494 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
24495 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
24496   echo $ECHO_N "(cached) $ECHO_C" >&6
24497 else
24498   cat >conftest.$ac_ext <<_ACEOF
24499 /* confdefs.h.  */
24500 _ACEOF
24501 cat confdefs.h >>conftest.$ac_ext
24502 cat >>conftest.$ac_ext <<_ACEOF
24503 /* end confdefs.h.  */
24504 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24505    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24506 #define $ac_func innocuous_$ac_func
24507
24508 /* System header to define __stub macros and hopefully few prototypes,
24509     which can conflict with char $ac_func (); below.
24510     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24511     <limits.h> exists even on freestanding compilers.  */
24512
24513 #ifdef __STDC__
24514 # include <limits.h>
24515 #else
24516 # include <assert.h>
24517 #endif
24518
24519 #undef $ac_func
24520
24521 /* Override any GCC internal prototype to avoid an error.
24522    Use char because int might match the return type of a GCC
24523    builtin and then its argument prototype would still apply.  */
24524 #ifdef __cplusplus
24525 extern "C"
24526 #endif
24527 char $ac_func ();
24528 /* The GNU C library defines this for functions which it implements
24529     to always fail with ENOSYS.  Some functions are actually named
24530     something starting with __ and the normal name is an alias.  */
24531 #if defined __stub_$ac_func || defined __stub___$ac_func
24532 choke me
24533 #endif
24534
24535 int
24536 main ()
24537 {
24538 return $ac_func ();
24539   ;
24540   return 0;
24541 }
24542 _ACEOF
24543 rm -f conftest.$ac_objext conftest$ac_exeext
24544 if { (ac_try="$ac_link"
24545 case "(($ac_try" in
24546   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24547   *) ac_try_echo=$ac_try;;
24548 esac
24549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24550   (eval "$ac_link") 2>conftest.er1
24551   ac_status=$?
24552   grep -v '^ *+' conftest.er1 >conftest.err
24553   rm -f conftest.er1
24554   cat conftest.err >&5
24555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24556   (exit $ac_status); } && {
24557          test -z "$ac_c_werror_flag" ||
24558          test ! -s conftest.err
24559        } && test -s conftest$ac_exeext &&
24560        $as_test_x conftest$ac_exeext; then
24561   eval "$as_ac_var=yes"
24562 else
24563   echo "$as_me: failed program was:" >&5
24564 sed 's/^/| /' conftest.$ac_ext >&5
24565
24566         eval "$as_ac_var=no"
24567 fi
24568
24569 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24570       conftest$ac_exeext conftest.$ac_ext
24571 fi
24572 ac_res=`eval echo '${'$as_ac_var'}'`
24573                { echo "$as_me:$LINENO: result: $ac_res" >&5
24574 echo "${ECHO_T}$ac_res" >&6; }
24575 if test `eval echo '${'$as_ac_var'}'` = yes; then
24576   cat >>confdefs.h <<_ACEOF
24577 @%:@define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24578 _ACEOF
24579  
24580 fi
24581 done
24582
24583 if test "x$ac_cv_func_fork" = xyes; then
24584   { echo "$as_me:$LINENO: checking for working fork" >&5
24585 echo $ECHO_N "checking for working fork... $ECHO_C" >&6; }
24586 if test "${ac_cv_func_fork_works+set}" = set; then
24587   echo $ECHO_N "(cached) $ECHO_C" >&6
24588 else
24589   if test "$cross_compiling" = yes; then
24590   ac_cv_func_fork_works=cross
24591 else
24592   cat >conftest.$ac_ext <<_ACEOF
24593 /* confdefs.h.  */
24594 _ACEOF
24595 cat confdefs.h >>conftest.$ac_ext
24596 cat >>conftest.$ac_ext <<_ACEOF
24597 /* end confdefs.h.  */
24598 $ac_includes_default
24599 int
24600 main ()
24601 {
24602
24603           /* By Ruediger Kuhlmann. */
24604           return fork () < 0;
24605         
24606   ;
24607   return 0;
24608 }
24609 _ACEOF
24610 rm -f conftest$ac_exeext
24611 if { (ac_try="$ac_link"
24612 case "(($ac_try" in
24613   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24614   *) ac_try_echo=$ac_try;;
24615 esac
24616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24617   (eval "$ac_link") 2>&5
24618   ac_status=$?
24619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24620   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24621   { (case "(($ac_try" in
24622   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24623   *) ac_try_echo=$ac_try;;
24624 esac
24625 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24626   (eval "$ac_try") 2>&5
24627   ac_status=$?
24628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24629   (exit $ac_status); }; }; then
24630   ac_cv_func_fork_works=yes
24631 else
24632   echo "$as_me: program exited with status $ac_status" >&5
24633 echo "$as_me: failed program was:" >&5
24634 sed 's/^/| /' conftest.$ac_ext >&5
24635
24636 ( exit $ac_status )
24637 ac_cv_func_fork_works=no
24638 fi
24639 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24640 fi
24641
24642
24643 fi
24644 { echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
24645 echo "${ECHO_T}$ac_cv_func_fork_works" >&6; }
24646
24647 else
24648   ac_cv_func_fork_works=$ac_cv_func_fork
24649 fi
24650 if test "x$ac_cv_func_fork_works" = xcross; then
24651   case $host in
24652     *-*-amigaos* | *-*-msdosdjgpp*)
24653       # Override, as these systems have only a dummy fork() stub
24654       ac_cv_func_fork_works=no
24655       ;;
24656     *)
24657       ac_cv_func_fork_works=yes
24658       ;;
24659   esac
24660   { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
24661 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
24662 fi
24663 ac_cv_func_vfork_works=$ac_cv_func_vfork
24664 if test "x$ac_cv_func_vfork" = xyes; then
24665   { echo "$as_me:$LINENO: checking for working vfork" >&5
24666 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6; }
24667 if test "${ac_cv_func_vfork_works+set}" = set; then
24668   echo $ECHO_N "(cached) $ECHO_C" >&6
24669 else
24670   if test "$cross_compiling" = yes; then
24671   ac_cv_func_vfork_works=cross
24672 else
24673   cat >conftest.$ac_ext <<_ACEOF
24674 /* confdefs.h.  */
24675 _ACEOF
24676 cat confdefs.h >>conftest.$ac_ext
24677 cat >>conftest.$ac_ext <<_ACEOF
24678 /* end confdefs.h.  */
24679 /* Thanks to Paul Eggert for this test.  */
24680 $ac_includes_default
24681 #include <sys/wait.h>
24682 #ifdef HAVE_VFORK_H
24683 # include <vfork.h>
24684 #endif
24685 /* On some sparc systems, changes by the child to local and incoming
24686    argument registers are propagated back to the parent.  The compiler
24687    is told about this with #include <vfork.h>, but some compilers
24688    (e.g. gcc -O) don't grok <vfork.h>.  Test for this by using a
24689    static variable whose address is put into a register that is
24690    clobbered by the vfork.  */
24691 static void
24692 #ifdef __cplusplus
24693 sparc_address_test (int arg)
24694 # else
24695 sparc_address_test (arg) int arg;
24696 #endif
24697 {
24698   static pid_t child;
24699   if (!child) {
24700     child = vfork ();
24701     if (child < 0) {
24702       perror ("vfork");
24703       _exit(2);
24704     }
24705     if (!child) {
24706       arg = getpid();
24707       write(-1, "", 0);
24708       _exit (arg);
24709     }
24710   }
24711 }
24712
24713 int
24714 main ()
24715 {
24716   pid_t parent = getpid ();
24717   pid_t child;
24718
24719   sparc_address_test (0);
24720
24721   child = vfork ();
24722
24723   if (child == 0) {
24724     /* Here is another test for sparc vfork register problems.  This
24725        test uses lots of local variables, at least as many local
24726        variables as main has allocated so far including compiler
24727        temporaries.  4 locals are enough for gcc 1.40.3 on a Solaris
24728        4.1.3 sparc, but we use 8 to be safe.  A buggy compiler should
24729        reuse the register of parent for one of the local variables,
24730        since it will think that parent can't possibly be used any more
24731        in this routine.  Assigning to the local variable will thus
24732        munge parent in the parent process.  */
24733     pid_t
24734       p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
24735       p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
24736     /* Convince the compiler that p..p7 are live; otherwise, it might
24737        use the same hardware register for all 8 local variables.  */
24738     if (p != p1 || p != p2 || p != p3 || p != p4
24739         || p != p5 || p != p6 || p != p7)
24740       _exit(1);
24741
24742     /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
24743        from child file descriptors.  If the child closes a descriptor
24744        before it execs or exits, this munges the parent's descriptor
24745        as well.  Test for this by closing stdout in the child.  */
24746     _exit(close(fileno(stdout)) != 0);
24747   } else {
24748     int status;
24749     struct stat st;
24750
24751     while (wait(&status) != child)
24752       ;
24753     return (
24754          /* Was there some problem with vforking?  */
24755          child < 0
24756
24757          /* Did the child fail?  (This shouldn't happen.)  */
24758          || status
24759
24760          /* Did the vfork/compiler bug occur?  */
24761          || parent != getpid()
24762
24763          /* Did the file descriptor bug occur?  */
24764          || fstat(fileno(stdout), &st) != 0
24765          );
24766   }
24767 }
24768 _ACEOF
24769 rm -f conftest$ac_exeext
24770 if { (ac_try="$ac_link"
24771 case "(($ac_try" in
24772   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24773   *) ac_try_echo=$ac_try;;
24774 esac
24775 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24776   (eval "$ac_link") 2>&5
24777   ac_status=$?
24778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24779   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24780   { (case "(($ac_try" in
24781   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24782   *) ac_try_echo=$ac_try;;
24783 esac
24784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24785   (eval "$ac_try") 2>&5
24786   ac_status=$?
24787   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24788   (exit $ac_status); }; }; then
24789   ac_cv_func_vfork_works=yes
24790 else
24791   echo "$as_me: program exited with status $ac_status" >&5
24792 echo "$as_me: failed program was:" >&5
24793 sed 's/^/| /' conftest.$ac_ext >&5
24794
24795 ( exit $ac_status )
24796 ac_cv_func_vfork_works=no
24797 fi
24798 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24799 fi
24800
24801
24802 fi
24803 { echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
24804 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6; }
24805
24806 fi;
24807 if test "x$ac_cv_func_fork_works" = xcross; then
24808   ac_cv_func_vfork_works=$ac_cv_func_vfork
24809   { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
24810 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
24811 fi
24812
24813 if test "x$ac_cv_func_vfork_works" = xyes; then
24814   
24815 cat >>confdefs.h <<\_ACEOF
24816 @%:@define HAVE_WORKING_VFORK 1
24817 _ACEOF
24818
24819 else
24820   
24821 cat >>confdefs.h <<\_ACEOF
24822 @%:@define vfork fork
24823 _ACEOF
24824
24825 fi
24826 if test "x$ac_cv_func_fork_works" = xyes; then
24827   
24828 cat >>confdefs.h <<\_ACEOF
24829 @%:@define HAVE_WORKING_FORK 1
24830 _ACEOF
24831
24832 fi
24833
24834 { echo "$as_me:$LINENO: checking type of array argument to getgroups" >&5
24835 echo $ECHO_N "checking type of array argument to getgroups... $ECHO_C" >&6; }
24836 if test "${ac_cv_type_getgroups+set}" = set; then
24837   echo $ECHO_N "(cached) $ECHO_C" >&6
24838 else
24839   if test "$cross_compiling" = yes; then
24840   ac_cv_type_getgroups=cross
24841 else
24842   cat >conftest.$ac_ext <<_ACEOF
24843 /* confdefs.h.  */
24844 _ACEOF
24845 cat confdefs.h >>conftest.$ac_ext
24846 cat >>conftest.$ac_ext <<_ACEOF
24847 /* end confdefs.h.  */
24848 /* Thanks to Mike Rendell for this test.  */
24849 $ac_includes_default
24850 #define NGID 256
24851 #undef MAX
24852 #define MAX(x, y) ((x) > (y) ? (x) : (y))
24853
24854 int
24855 main ()
24856 {
24857   gid_t gidset[NGID];
24858   int i, n;
24859   union { gid_t gval; long int lval; }  val;
24860
24861   val.lval = -1;
24862   for (i = 0; i < NGID; i++)
24863     gidset[i] = val.gval;
24864   n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
24865                  gidset);
24866   /* Exit non-zero if getgroups seems to require an array of ints.  This
24867      happens when gid_t is short int but getgroups modifies an array
24868      of ints.  */
24869   return n > 0 && gidset[n] != val.gval;
24870 }
24871 _ACEOF
24872 rm -f conftest$ac_exeext
24873 if { (ac_try="$ac_link"
24874 case "(($ac_try" in
24875   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24876   *) ac_try_echo=$ac_try;;
24877 esac
24878 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24879   (eval "$ac_link") 2>&5
24880   ac_status=$?
24881   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24882   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24883   { (case "(($ac_try" in
24884   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24885   *) ac_try_echo=$ac_try;;
24886 esac
24887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24888   (eval "$ac_try") 2>&5
24889   ac_status=$?
24890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24891   (exit $ac_status); }; }; then
24892   ac_cv_type_getgroups=gid_t
24893 else
24894   echo "$as_me: program exited with status $ac_status" >&5
24895 echo "$as_me: failed program was:" >&5
24896 sed 's/^/| /' conftest.$ac_ext >&5
24897
24898 ( exit $ac_status )
24899 ac_cv_type_getgroups=int
24900 fi
24901 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24902 fi
24903
24904
24905 if test $ac_cv_type_getgroups = cross; then
24906         cat >conftest.$ac_ext <<_ACEOF
24907 /* confdefs.h.  */
24908 _ACEOF
24909 cat confdefs.h >>conftest.$ac_ext
24910 cat >>conftest.$ac_ext <<_ACEOF
24911 /* end confdefs.h.  */
24912 #include <unistd.h>
24913
24914 _ACEOF
24915 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24916   $EGREP "getgroups.*int.*gid_t" >/dev/null 2>&1; then
24917   ac_cv_type_getgroups=gid_t
24918 else
24919   ac_cv_type_getgroups=int
24920 fi
24921 rm -f conftest*
24922
24923 fi
24924 fi
24925 { echo "$as_me:$LINENO: result: $ac_cv_type_getgroups" >&5
24926 echo "${ECHO_T}$ac_cv_type_getgroups" >&6; }
24927
24928 cat >>confdefs.h <<_ACEOF
24929 @%:@define GETGROUPS_T $ac_cv_type_getgroups
24930 _ACEOF
24931
24932
24933 { echo "$as_me:$LINENO: checking for getgroups" >&5
24934 echo $ECHO_N "checking for getgroups... $ECHO_C" >&6; }
24935 if test "${ac_cv_func_getgroups+set}" = set; then
24936   echo $ECHO_N "(cached) $ECHO_C" >&6
24937 else
24938   cat >conftest.$ac_ext <<_ACEOF
24939 /* confdefs.h.  */
24940 _ACEOF
24941 cat confdefs.h >>conftest.$ac_ext
24942 cat >>conftest.$ac_ext <<_ACEOF
24943 /* end confdefs.h.  */
24944 /* Define getgroups to an innocuous variant, in case <limits.h> declares getgroups.
24945    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24946 #define getgroups innocuous_getgroups
24947
24948 /* System header to define __stub macros and hopefully few prototypes,
24949     which can conflict with char getgroups (); below.
24950     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24951     <limits.h> exists even on freestanding compilers.  */
24952
24953 #ifdef __STDC__
24954 # include <limits.h>
24955 #else
24956 # include <assert.h>
24957 #endif
24958
24959 #undef getgroups
24960
24961 /* Override any GCC internal prototype to avoid an error.
24962    Use char because int might match the return type of a GCC
24963    builtin and then its argument prototype would still apply.  */
24964 #ifdef __cplusplus
24965 extern "C"
24966 #endif
24967 char getgroups ();
24968 /* The GNU C library defines this for functions which it implements
24969     to always fail with ENOSYS.  Some functions are actually named
24970     something starting with __ and the normal name is an alias.  */
24971 #if defined __stub_getgroups || defined __stub___getgroups
24972 choke me
24973 #endif
24974
24975 int
24976 main ()
24977 {
24978 return getgroups ();
24979   ;
24980   return 0;
24981 }
24982 _ACEOF
24983 rm -f conftest.$ac_objext conftest$ac_exeext
24984 if { (ac_try="$ac_link"
24985 case "(($ac_try" in
24986   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24987   *) ac_try_echo=$ac_try;;
24988 esac
24989 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24990   (eval "$ac_link") 2>conftest.er1
24991   ac_status=$?
24992   grep -v '^ *+' conftest.er1 >conftest.err
24993   rm -f conftest.er1
24994   cat conftest.err >&5
24995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24996   (exit $ac_status); } && {
24997          test -z "$ac_c_werror_flag" ||
24998          test ! -s conftest.err
24999        } && test -s conftest$ac_exeext &&
25000        $as_test_x conftest$ac_exeext; then
25001   ac_cv_func_getgroups=yes
25002 else
25003   echo "$as_me: failed program was:" >&5
25004 sed 's/^/| /' conftest.$ac_ext >&5
25005
25006         ac_cv_func_getgroups=no
25007 fi
25008
25009 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25010       conftest$ac_exeext conftest.$ac_ext
25011 fi
25012 { echo "$as_me:$LINENO: result: $ac_cv_func_getgroups" >&5
25013 echo "${ECHO_T}$ac_cv_func_getgroups" >&6; }
25014
25015
25016 # If we don't yet have getgroups, see if it's in -lbsd.
25017 # This is reported to be necessary on an ITOS 3000WS running SEIUX 3.1.
25018 ac_save_LIBS=$LIBS
25019 if test $ac_cv_func_getgroups = no; then
25020   { echo "$as_me:$LINENO: checking for getgroups in -lbsd" >&5
25021 echo $ECHO_N "checking for getgroups in -lbsd... $ECHO_C" >&6; }
25022 if test "${ac_cv_lib_bsd_getgroups+set}" = set; then
25023   echo $ECHO_N "(cached) $ECHO_C" >&6
25024 else
25025   ac_check_lib_save_LIBS=$LIBS
25026 LIBS="-lbsd  $LIBS"
25027 cat >conftest.$ac_ext <<_ACEOF
25028 /* confdefs.h.  */
25029 _ACEOF
25030 cat confdefs.h >>conftest.$ac_ext
25031 cat >>conftest.$ac_ext <<_ACEOF
25032 /* end confdefs.h.  */
25033
25034 /* Override any GCC internal prototype to avoid an error.
25035    Use char because int might match the return type of a GCC
25036    builtin and then its argument prototype would still apply.  */
25037 #ifdef __cplusplus
25038 extern "C"
25039 #endif
25040 char getgroups ();
25041 int
25042 main ()
25043 {
25044 return getgroups ();
25045   ;
25046   return 0;
25047 }
25048 _ACEOF
25049 rm -f conftest.$ac_objext conftest$ac_exeext
25050 if { (ac_try="$ac_link"
25051 case "(($ac_try" in
25052   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25053   *) ac_try_echo=$ac_try;;
25054 esac
25055 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25056   (eval "$ac_link") 2>conftest.er1
25057   ac_status=$?
25058   grep -v '^ *+' conftest.er1 >conftest.err
25059   rm -f conftest.er1
25060   cat conftest.err >&5
25061   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25062   (exit $ac_status); } && {
25063          test -z "$ac_c_werror_flag" ||
25064          test ! -s conftest.err
25065        } && test -s conftest$ac_exeext &&
25066        $as_test_x conftest$ac_exeext; then
25067   ac_cv_lib_bsd_getgroups=yes
25068 else
25069   echo "$as_me: failed program was:" >&5
25070 sed 's/^/| /' conftest.$ac_ext >&5
25071
25072         ac_cv_lib_bsd_getgroups=no
25073 fi
25074
25075 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25076       conftest$ac_exeext conftest.$ac_ext
25077 LIBS=$ac_check_lib_save_LIBS
25078 fi
25079 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_getgroups" >&5
25080 echo "${ECHO_T}$ac_cv_lib_bsd_getgroups" >&6; }
25081 if test $ac_cv_lib_bsd_getgroups = yes; then
25082   GETGROUPS_LIB=-lbsd
25083 fi
25084
25085 fi
25086
25087 # Run the program to test the functionality of the system-supplied
25088 # getgroups function only if there is such a function.
25089 if test $ac_cv_func_getgroups = yes; then
25090   { echo "$as_me:$LINENO: checking for working getgroups" >&5
25091 echo $ECHO_N "checking for working getgroups... $ECHO_C" >&6; }
25092 if test "${ac_cv_func_getgroups_works+set}" = set; then
25093   echo $ECHO_N "(cached) $ECHO_C" >&6
25094 else
25095   if test "$cross_compiling" = yes; then
25096   ac_cv_func_getgroups_works=no
25097 else
25098   cat >conftest.$ac_ext <<_ACEOF
25099 /* confdefs.h.  */
25100 _ACEOF
25101 cat confdefs.h >>conftest.$ac_ext
25102 cat >>conftest.$ac_ext <<_ACEOF
25103 /* end confdefs.h.  */
25104 $ac_includes_default
25105 int
25106 main ()
25107 {
25108 /* On Ultrix 4.3, getgroups (0, 0) always fails.  */
25109        return getgroups (0, 0) == -1;
25110   ;
25111   return 0;
25112 }
25113 _ACEOF
25114 rm -f conftest$ac_exeext
25115 if { (ac_try="$ac_link"
25116 case "(($ac_try" in
25117   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25118   *) ac_try_echo=$ac_try;;
25119 esac
25120 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25121   (eval "$ac_link") 2>&5
25122   ac_status=$?
25123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25124   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25125   { (case "(($ac_try" in
25126   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25127   *) ac_try_echo=$ac_try;;
25128 esac
25129 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25130   (eval "$ac_try") 2>&5
25131   ac_status=$?
25132   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25133   (exit $ac_status); }; }; then
25134   ac_cv_func_getgroups_works=yes
25135 else
25136   echo "$as_me: program exited with status $ac_status" >&5
25137 echo "$as_me: failed program was:" >&5
25138 sed 's/^/| /' conftest.$ac_ext >&5
25139
25140 ( exit $ac_status )
25141 ac_cv_func_getgroups_works=no
25142 fi
25143 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25144 fi
25145
25146
25147    
25148 fi
25149 { echo "$as_me:$LINENO: result: $ac_cv_func_getgroups_works" >&5
25150 echo "${ECHO_T}$ac_cv_func_getgroups_works" >&6; }
25151   if test $ac_cv_func_getgroups_works = yes; then
25152     
25153 cat >>confdefs.h <<\_ACEOF
25154 @%:@define HAVE_GETGROUPS 1
25155 _ACEOF
25156
25157   fi
25158 fi
25159 LIBS=$ac_save_LIBS
25160
25161 # getmntent is in the standard C library on UNICOS, in -lsun on Irix 4,
25162 # -lseq on Dynix/PTX, -lgen on Unixware.
25163 { echo "$as_me:$LINENO: checking for library containing getmntent" >&5
25164 echo $ECHO_N "checking for library containing getmntent... $ECHO_C" >&6; }
25165 if test "${ac_cv_search_getmntent+set}" = set; then
25166   echo $ECHO_N "(cached) $ECHO_C" >&6
25167 else
25168   ac_func_search_save_LIBS=$LIBS
25169 cat >conftest.$ac_ext <<_ACEOF
25170 /* confdefs.h.  */
25171 _ACEOF
25172 cat confdefs.h >>conftest.$ac_ext
25173 cat >>conftest.$ac_ext <<_ACEOF
25174 /* end confdefs.h.  */
25175
25176 /* Override any GCC internal prototype to avoid an error.
25177    Use char because int might match the return type of a GCC
25178    builtin and then its argument prototype would still apply.  */
25179 #ifdef __cplusplus
25180 extern "C"
25181 #endif
25182 char getmntent ();
25183 int
25184 main ()
25185 {
25186 return getmntent ();
25187   ;
25188   return 0;
25189 }
25190 _ACEOF
25191 for ac_lib in '' sun seq gen; do
25192   if test -z "$ac_lib"; then
25193     ac_res="none required"
25194   else
25195     ac_res=-l$ac_lib
25196     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
25197   fi
25198   rm -f conftest.$ac_objext conftest$ac_exeext
25199 if { (ac_try="$ac_link"
25200 case "(($ac_try" in
25201   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25202   *) ac_try_echo=$ac_try;;
25203 esac
25204 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25205   (eval "$ac_link") 2>conftest.er1
25206   ac_status=$?
25207   grep -v '^ *+' conftest.er1 >conftest.err
25208   rm -f conftest.er1
25209   cat conftest.err >&5
25210   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25211   (exit $ac_status); } && {
25212          test -z "$ac_c_werror_flag" ||
25213          test ! -s conftest.err
25214        } && test -s conftest$ac_exeext &&
25215        $as_test_x conftest$ac_exeext; then
25216   ac_cv_search_getmntent=$ac_res
25217 else
25218   echo "$as_me: failed program was:" >&5
25219 sed 's/^/| /' conftest.$ac_ext >&5
25220
25221         
25222 fi
25223
25224 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25225       conftest$ac_exeext 
25226   if test "${ac_cv_search_getmntent+set}" = set; then
25227   break
25228 fi
25229 done
25230 if test "${ac_cv_search_getmntent+set}" = set; then
25231   :
25232 else
25233   ac_cv_search_getmntent=no
25234 fi
25235 rm conftest.$ac_ext
25236 LIBS=$ac_func_search_save_LIBS
25237 fi
25238 { echo "$as_me:$LINENO: result: $ac_cv_search_getmntent" >&5
25239 echo "${ECHO_T}$ac_cv_search_getmntent" >&6; }
25240 ac_res=$ac_cv_search_getmntent
25241 if test "$ac_res" != no; then
25242   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25243   ac_cv_func_getmntent=yes
25244                 
25245 cat >>confdefs.h <<\_ACEOF
25246 @%:@define HAVE_GETMNTENT 1
25247 _ACEOF
25248
25249 else
25250   ac_cv_func_getmntent=no
25251 fi
25252
25253
25254 if test $ac_cv_c_compiler_gnu = yes; then
25255     { echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
25256 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6; }
25257 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
25258   echo $ECHO_N "(cached) $ECHO_C" >&6
25259 else
25260     ac_pattern="Autoconf.*'x'"
25261   cat >conftest.$ac_ext <<_ACEOF
25262 /* confdefs.h.  */
25263 _ACEOF
25264 cat confdefs.h >>conftest.$ac_ext
25265 cat >>conftest.$ac_ext <<_ACEOF
25266 /* end confdefs.h.  */
25267 #include <sgtty.h>
25268 Autoconf TIOCGETP
25269 _ACEOF
25270 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25271   $EGREP "$ac_pattern" >/dev/null 2>&1; then
25272   ac_cv_prog_gcc_traditional=yes
25273 else
25274   ac_cv_prog_gcc_traditional=no
25275 fi
25276 rm -f conftest*
25277
25278
25279   if test $ac_cv_prog_gcc_traditional = no; then
25280     cat >conftest.$ac_ext <<_ACEOF
25281 /* confdefs.h.  */
25282 _ACEOF
25283 cat confdefs.h >>conftest.$ac_ext
25284 cat >>conftest.$ac_ext <<_ACEOF
25285 /* end confdefs.h.  */
25286 #include <termio.h>
25287 Autoconf TCGETA
25288 _ACEOF
25289 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25290   $EGREP "$ac_pattern" >/dev/null 2>&1; then
25291   ac_cv_prog_gcc_traditional=yes
25292 fi
25293 rm -f conftest*
25294
25295   fi
25296 fi
25297 { echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
25298 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6; }
25299   if test $ac_cv_prog_gcc_traditional = yes; then
25300     CC="$CC -traditional"
25301   fi
25302 fi
25303
25304 { echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
25305 echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6; }
25306 if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
25307   echo $ECHO_N "(cached) $ECHO_C" >&6
25308 else
25309   rm -f conftest.sym conftest.file
25310 echo >conftest.file
25311 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
25312   if test "$cross_compiling" = yes; then
25313   ac_cv_func_lstat_dereferences_slashed_symlink=no
25314 else
25315   cat >conftest.$ac_ext <<_ACEOF
25316 /* confdefs.h.  */
25317 _ACEOF
25318 cat confdefs.h >>conftest.$ac_ext
25319 cat >>conftest.$ac_ext <<_ACEOF
25320 /* end confdefs.h.  */
25321 $ac_includes_default
25322 int
25323 main ()
25324 {
25325 struct stat sbuf;
25326      /* Linux will dereference the symlink and fail.
25327         That is better in the sense that it means we will not
25328         have to compile and use the lstat wrapper.  */
25329      return lstat ("conftest.sym/", &sbuf) == 0;
25330   ;
25331   return 0;
25332 }
25333 _ACEOF
25334 rm -f conftest$ac_exeext
25335 if { (ac_try="$ac_link"
25336 case "(($ac_try" in
25337   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25338   *) ac_try_echo=$ac_try;;
25339 esac
25340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25341   (eval "$ac_link") 2>&5
25342   ac_status=$?
25343   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25344   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25345   { (case "(($ac_try" in
25346   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25347   *) ac_try_echo=$ac_try;;
25348 esac
25349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25350   (eval "$ac_try") 2>&5
25351   ac_status=$?
25352   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25353   (exit $ac_status); }; }; then
25354   ac_cv_func_lstat_dereferences_slashed_symlink=yes
25355 else
25356   echo "$as_me: program exited with status $ac_status" >&5
25357 echo "$as_me: failed program was:" >&5
25358 sed 's/^/| /' conftest.$ac_ext >&5
25359
25360 ( exit $ac_status )
25361 ac_cv_func_lstat_dereferences_slashed_symlink=no
25362 fi
25363 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25364 fi
25365
25366
25367 else
25368   # If the `ln -s' command failed, then we probably don't even
25369   # have an lstat function.
25370   ac_cv_func_lstat_dereferences_slashed_symlink=no
25371 fi
25372 rm -f conftest.sym conftest.file
25373
25374 fi
25375 { echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
25376 echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
25377
25378 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
25379   
25380 cat >>confdefs.h <<_ACEOF
25381 @%:@define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
25382 _ACEOF
25383
25384
25385 if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
25386   case " $LIB@&t@OBJS " in
25387   *" lstat.$ac_objext "* ) ;;
25388   *) LIB@&t@OBJS="$LIB@&t@OBJS lstat.$ac_objext"
25389  ;;
25390 esac
25391
25392 fi
25393
25394 { echo "$as_me:$LINENO: checking whether lstat accepts an empty string" >&5
25395 echo $ECHO_N "checking whether lstat accepts an empty string... $ECHO_C" >&6; }
25396 if test "${ac_cv_func_lstat_empty_string_bug+set}" = set; then
25397   echo $ECHO_N "(cached) $ECHO_C" >&6
25398 else
25399   if test "$cross_compiling" = yes; then
25400   ac_cv_func_lstat_empty_string_bug=yes
25401 else
25402   cat >conftest.$ac_ext <<_ACEOF
25403 /* confdefs.h.  */
25404 _ACEOF
25405 cat confdefs.h >>conftest.$ac_ext
25406 cat >>conftest.$ac_ext <<_ACEOF
25407 /* end confdefs.h.  */
25408 $ac_includes_default
25409 int
25410 main ()
25411 {
25412 struct stat sbuf;
25413   return lstat ("", &sbuf) == 0;
25414   ;
25415   return 0;
25416 }
25417 _ACEOF
25418 rm -f conftest$ac_exeext
25419 if { (ac_try="$ac_link"
25420 case "(($ac_try" in
25421   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25422   *) ac_try_echo=$ac_try;;
25423 esac
25424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25425   (eval "$ac_link") 2>&5
25426   ac_status=$?
25427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25428   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25429   { (case "(($ac_try" in
25430   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25431   *) ac_try_echo=$ac_try;;
25432 esac
25433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25434   (eval "$ac_try") 2>&5
25435   ac_status=$?
25436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25437   (exit $ac_status); }; }; then
25438   ac_cv_func_lstat_empty_string_bug=no
25439 else
25440   echo "$as_me: program exited with status $ac_status" >&5
25441 echo "$as_me: failed program was:" >&5
25442 sed 's/^/| /' conftest.$ac_ext >&5
25443
25444 ( exit $ac_status )
25445 ac_cv_func_lstat_empty_string_bug=yes
25446 fi
25447 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25448 fi
25449
25450
25451 fi
25452 { echo "$as_me:$LINENO: result: $ac_cv_func_lstat_empty_string_bug" >&5
25453 echo "${ECHO_T}$ac_cv_func_lstat_empty_string_bug" >&6; }
25454 if test $ac_cv_func_lstat_empty_string_bug = yes; then
25455   case " $LIB@&t@OBJS " in
25456   *" lstat.$ac_objext "* ) ;;
25457   *) LIB@&t@OBJS="$LIB@&t@OBJS lstat.$ac_objext"
25458  ;;
25459 esac
25460
25461   
25462 cat >>confdefs.h <<_ACEOF
25463 @%:@define HAVE_LSTAT_EMPTY_STRING_BUG 1
25464 _ACEOF
25465
25466 fi
25467
25468 { echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
25469 echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6; }
25470 if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
25471   echo $ECHO_N "(cached) $ECHO_C" >&6
25472 else
25473   rm -f conftest.sym conftest.file
25474 echo >conftest.file
25475 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
25476   if test "$cross_compiling" = yes; then
25477   ac_cv_func_lstat_dereferences_slashed_symlink=no
25478 else
25479   cat >conftest.$ac_ext <<_ACEOF
25480 /* confdefs.h.  */
25481 _ACEOF
25482 cat confdefs.h >>conftest.$ac_ext
25483 cat >>conftest.$ac_ext <<_ACEOF
25484 /* end confdefs.h.  */
25485 $ac_includes_default
25486 int
25487 main ()
25488 {
25489 struct stat sbuf;
25490      /* Linux will dereference the symlink and fail.
25491         That is better in the sense that it means we will not
25492         have to compile and use the lstat wrapper.  */
25493      return lstat ("conftest.sym/", &sbuf) == 0;
25494   ;
25495   return 0;
25496 }
25497 _ACEOF
25498 rm -f conftest$ac_exeext
25499 if { (ac_try="$ac_link"
25500 case "(($ac_try" in
25501   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25502   *) ac_try_echo=$ac_try;;
25503 esac
25504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25505   (eval "$ac_link") 2>&5
25506   ac_status=$?
25507   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25508   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25509   { (case "(($ac_try" in
25510   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25511   *) ac_try_echo=$ac_try;;
25512 esac
25513 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25514   (eval "$ac_try") 2>&5
25515   ac_status=$?
25516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25517   (exit $ac_status); }; }; then
25518   ac_cv_func_lstat_dereferences_slashed_symlink=yes
25519 else
25520   echo "$as_me: program exited with status $ac_status" >&5
25521 echo "$as_me: failed program was:" >&5
25522 sed 's/^/| /' conftest.$ac_ext >&5
25523
25524 ( exit $ac_status )
25525 ac_cv_func_lstat_dereferences_slashed_symlink=no
25526 fi
25527 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25528 fi
25529
25530
25531 else
25532   # If the `ln -s' command failed, then we probably don't even
25533   # have an lstat function.
25534   ac_cv_func_lstat_dereferences_slashed_symlink=no
25535 fi
25536 rm -f conftest.sym conftest.file
25537
25538 fi
25539 { echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
25540 echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
25541
25542 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
25543   
25544 cat >>confdefs.h <<_ACEOF
25545 @%:@define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
25546 _ACEOF
25547
25548
25549 if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
25550   case " $LIB@&t@OBJS " in
25551   *" lstat.$ac_objext "* ) ;;
25552   *) LIB@&t@OBJS="$LIB@&t@OBJS lstat.$ac_objext"
25553  ;;
25554 esac
25555
25556 fi
25557
25558 { echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
25559 echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6; }
25560 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
25561   echo $ECHO_N "(cached) $ECHO_C" >&6
25562 else
25563   cat >conftest.$ac_ext <<_ACEOF
25564 /* confdefs.h.  */
25565 _ACEOF
25566 cat confdefs.h >>conftest.$ac_ext
25567 cat >>conftest.$ac_ext <<_ACEOF
25568 /* end confdefs.h.  */
25569 @%:@include <sys/types.h>
25570 int
25571 main ()
25572 {
25573 return makedev(0, 0);
25574   ;
25575   return 0;
25576 }
25577 _ACEOF
25578 rm -f conftest.$ac_objext conftest$ac_exeext
25579 if { (ac_try="$ac_link"
25580 case "(($ac_try" in
25581   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25582   *) ac_try_echo=$ac_try;;
25583 esac
25584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25585   (eval "$ac_link") 2>conftest.er1
25586   ac_status=$?
25587   grep -v '^ *+' conftest.er1 >conftest.err
25588   rm -f conftest.er1
25589   cat conftest.err >&5
25590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25591   (exit $ac_status); } && {
25592          test -z "$ac_c_werror_flag" ||
25593          test ! -s conftest.err
25594        } && test -s conftest$ac_exeext &&
25595        $as_test_x conftest$ac_exeext; then
25596   ac_cv_header_sys_types_h_makedev=yes
25597 else
25598   echo "$as_me: failed program was:" >&5
25599 sed 's/^/| /' conftest.$ac_ext >&5
25600
25601         ac_cv_header_sys_types_h_makedev=no
25602 fi
25603
25604 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25605       conftest$ac_exeext conftest.$ac_ext
25606
25607 fi
25608 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
25609 echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6; }
25610
25611 if test $ac_cv_header_sys_types_h_makedev = no; then
25612 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
25613   { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
25614 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
25615 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
25616   echo $ECHO_N "(cached) $ECHO_C" >&6
25617 fi
25618 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
25619 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
25620 else
25621   # Is the header compilable?
25622 { echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
25623 echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6; }
25624 cat >conftest.$ac_ext <<_ACEOF
25625 /* confdefs.h.  */
25626 _ACEOF
25627 cat confdefs.h >>conftest.$ac_ext
25628 cat >>conftest.$ac_ext <<_ACEOF
25629 /* end confdefs.h.  */
25630 $ac_includes_default
25631 @%:@include <sys/mkdev.h>
25632 _ACEOF
25633 rm -f conftest.$ac_objext
25634 if { (ac_try="$ac_compile"
25635 case "(($ac_try" in
25636   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25637   *) ac_try_echo=$ac_try;;
25638 esac
25639 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25640   (eval "$ac_compile") 2>conftest.er1
25641   ac_status=$?
25642   grep -v '^ *+' conftest.er1 >conftest.err
25643   rm -f conftest.er1
25644   cat conftest.err >&5
25645   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25646   (exit $ac_status); } && {
25647          test -z "$ac_c_werror_flag" ||
25648          test ! -s conftest.err
25649        } && test -s conftest.$ac_objext; then
25650   ac_header_compiler=yes
25651 else
25652   echo "$as_me: failed program was:" >&5
25653 sed 's/^/| /' conftest.$ac_ext >&5
25654
25655         ac_header_compiler=no
25656 fi
25657
25658 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25659 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25660 echo "${ECHO_T}$ac_header_compiler" >&6; }
25661
25662 # Is the header present?
25663 { echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
25664 echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6; }
25665 cat >conftest.$ac_ext <<_ACEOF
25666 /* confdefs.h.  */
25667 _ACEOF
25668 cat confdefs.h >>conftest.$ac_ext
25669 cat >>conftest.$ac_ext <<_ACEOF
25670 /* end confdefs.h.  */
25671 @%:@include <sys/mkdev.h>
25672 _ACEOF
25673 if { (ac_try="$ac_cpp conftest.$ac_ext"
25674 case "(($ac_try" in
25675   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25676   *) ac_try_echo=$ac_try;;
25677 esac
25678 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25679   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25680   ac_status=$?
25681   grep -v '^ *+' conftest.er1 >conftest.err
25682   rm -f conftest.er1
25683   cat conftest.err >&5
25684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25685   (exit $ac_status); } >/dev/null && {
25686          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25687          test ! -s conftest.err
25688        }; then
25689   ac_header_preproc=yes
25690 else
25691   echo "$as_me: failed program was:" >&5
25692 sed 's/^/| /' conftest.$ac_ext >&5
25693
25694   ac_header_preproc=no
25695 fi
25696
25697 rm -f conftest.err conftest.$ac_ext
25698 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25699 echo "${ECHO_T}$ac_header_preproc" >&6; }
25700
25701 # So?  What about this header?
25702 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25703   yes:no: )
25704     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
25705 echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25706     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5
25707 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&2;}
25708     ac_header_preproc=yes
25709     ;;
25710   no:yes:* )
25711     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
25712 echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
25713     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h:     check for missing prerequisite headers?" >&5
25714 echo "$as_me: WARNING: sys/mkdev.h:     check for missing prerequisite headers?" >&2;}
25715     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5
25716 echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;}
25717     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h:     section \"Present But Cannot Be Compiled\"" >&5
25718 echo "$as_me: WARNING: sys/mkdev.h:     section \"Present But Cannot Be Compiled\"" >&2;}
25719     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
25720 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
25721     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5
25722 echo "$as_me: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&2;}
25723     ( cat <<\_ASBOX
25724 @%:@@%:@ ------------------------------- @%:@@%:@
25725 @%:@@%:@ Report this to nfs@lists.sf.net @%:@@%:@
25726 @%:@@%:@ ------------------------------- @%:@@%:@
25727 _ASBOX
25728      ) | sed "s/^/$as_me: WARNING:     /" >&2
25729     ;;
25730 esac
25731 { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
25732 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
25733 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
25734   echo $ECHO_N "(cached) $ECHO_C" >&6
25735 else
25736   ac_cv_header_sys_mkdev_h=$ac_header_preproc
25737 fi
25738 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
25739 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
25740
25741 fi
25742 if test $ac_cv_header_sys_mkdev_h = yes; then
25743   
25744 cat >>confdefs.h <<\_ACEOF
25745 @%:@define MAJOR_IN_MKDEV 1
25746 _ACEOF
25747
25748 fi
25749
25750
25751
25752   if test $ac_cv_header_sys_mkdev_h = no; then
25753     if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
25754   { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
25755 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
25756 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
25757   echo $ECHO_N "(cached) $ECHO_C" >&6
25758 fi
25759 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
25760 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
25761 else
25762   # Is the header compilable?
25763 { echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
25764 echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6; }
25765 cat >conftest.$ac_ext <<_ACEOF
25766 /* confdefs.h.  */
25767 _ACEOF
25768 cat confdefs.h >>conftest.$ac_ext
25769 cat >>conftest.$ac_ext <<_ACEOF
25770 /* end confdefs.h.  */
25771 $ac_includes_default
25772 @%:@include <sys/sysmacros.h>
25773 _ACEOF
25774 rm -f conftest.$ac_objext
25775 if { (ac_try="$ac_compile"
25776 case "(($ac_try" in
25777   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25778   *) ac_try_echo=$ac_try;;
25779 esac
25780 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25781   (eval "$ac_compile") 2>conftest.er1
25782   ac_status=$?
25783   grep -v '^ *+' conftest.er1 >conftest.err
25784   rm -f conftest.er1
25785   cat conftest.err >&5
25786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25787   (exit $ac_status); } && {
25788          test -z "$ac_c_werror_flag" ||
25789          test ! -s conftest.err
25790        } && test -s conftest.$ac_objext; then
25791   ac_header_compiler=yes
25792 else
25793   echo "$as_me: failed program was:" >&5
25794 sed 's/^/| /' conftest.$ac_ext >&5
25795
25796         ac_header_compiler=no
25797 fi
25798
25799 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25800 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25801 echo "${ECHO_T}$ac_header_compiler" >&6; }
25802
25803 # Is the header present?
25804 { echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
25805 echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6; }
25806 cat >conftest.$ac_ext <<_ACEOF
25807 /* confdefs.h.  */
25808 _ACEOF
25809 cat confdefs.h >>conftest.$ac_ext
25810 cat >>conftest.$ac_ext <<_ACEOF
25811 /* end confdefs.h.  */
25812 @%:@include <sys/sysmacros.h>
25813 _ACEOF
25814 if { (ac_try="$ac_cpp conftest.$ac_ext"
25815 case "(($ac_try" in
25816   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25817   *) ac_try_echo=$ac_try;;
25818 esac
25819 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25820   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25821   ac_status=$?
25822   grep -v '^ *+' conftest.er1 >conftest.err
25823   rm -f conftest.er1
25824   cat conftest.err >&5
25825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25826   (exit $ac_status); } >/dev/null && {
25827          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25828          test ! -s conftest.err
25829        }; then
25830   ac_header_preproc=yes
25831 else
25832   echo "$as_me: failed program was:" >&5
25833 sed 's/^/| /' conftest.$ac_ext >&5
25834
25835   ac_header_preproc=no
25836 fi
25837
25838 rm -f conftest.err conftest.$ac_ext
25839 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25840 echo "${ECHO_T}$ac_header_preproc" >&6; }
25841
25842 # So?  What about this header?
25843 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25844   yes:no: )
25845     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
25846 echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25847     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5
25848 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&2;}
25849     ac_header_preproc=yes
25850     ;;
25851   no:yes:* )
25852     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
25853 echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
25854     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h:     check for missing prerequisite headers?" >&5
25855 echo "$as_me: WARNING: sys/sysmacros.h:     check for missing prerequisite headers?" >&2;}
25856     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5
25857 echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;}
25858     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h:     section \"Present But Cannot Be Compiled\"" >&5
25859 echo "$as_me: WARNING: sys/sysmacros.h:     section \"Present But Cannot Be Compiled\"" >&2;}
25860     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
25861 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
25862     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5
25863 echo "$as_me: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&2;}
25864     ( cat <<\_ASBOX
25865 @%:@@%:@ ------------------------------- @%:@@%:@
25866 @%:@@%:@ Report this to nfs@lists.sf.net @%:@@%:@
25867 @%:@@%:@ ------------------------------- @%:@@%:@
25868 _ASBOX
25869      ) | sed "s/^/$as_me: WARNING:     /" >&2
25870     ;;
25871 esac
25872 { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
25873 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
25874 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
25875   echo $ECHO_N "(cached) $ECHO_C" >&6
25876 else
25877   ac_cv_header_sys_sysmacros_h=$ac_header_preproc
25878 fi
25879 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
25880 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
25881
25882 fi
25883 if test $ac_cv_header_sys_sysmacros_h = yes; then
25884   
25885 cat >>confdefs.h <<\_ACEOF
25886 @%:@define MAJOR_IN_SYSMACROS 1
25887 _ACEOF
25888
25889 fi
25890
25891
25892   fi
25893 fi
25894
25895 #AC_FUNC_MALLOC
25896 { echo "$as_me:$LINENO: checking for working memcmp" >&5
25897 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6; }
25898 if test "${ac_cv_func_memcmp_working+set}" = set; then
25899   echo $ECHO_N "(cached) $ECHO_C" >&6
25900 else
25901   if test "$cross_compiling" = yes; then
25902   ac_cv_func_memcmp_working=no
25903 else
25904   cat >conftest.$ac_ext <<_ACEOF
25905 /* confdefs.h.  */
25906 _ACEOF
25907 cat confdefs.h >>conftest.$ac_ext
25908 cat >>conftest.$ac_ext <<_ACEOF
25909 /* end confdefs.h.  */
25910 $ac_includes_default
25911 int
25912 main ()
25913 {
25914
25915   /* Some versions of memcmp are not 8-bit clean.  */
25916   char c0 = '\100', c1 = '\200', c2 = '\201';
25917   if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
25918     return 1;
25919
25920   /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
25921      or more and with at least one buffer not starting on a 4-byte boundary.
25922      William Lewis provided this test program.   */
25923   {
25924     char foo[21];
25925     char bar[21];
25926     int i;
25927     for (i = 0; i < 4; i++)
25928       {
25929         char *a = foo + i;
25930         char *b = bar + i;
25931         strcpy (a, "--------01111111");
25932         strcpy (b, "--------10000000");
25933         if (memcmp (a, b, 16) >= 0)
25934           return 1;
25935       }
25936     return 0;
25937   }
25938
25939   ;
25940   return 0;
25941 }
25942 _ACEOF
25943 rm -f conftest$ac_exeext
25944 if { (ac_try="$ac_link"
25945 case "(($ac_try" in
25946   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25947   *) ac_try_echo=$ac_try;;
25948 esac
25949 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25950   (eval "$ac_link") 2>&5
25951   ac_status=$?
25952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25953   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25954   { (case "(($ac_try" in
25955   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25956   *) ac_try_echo=$ac_try;;
25957 esac
25958 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25959   (eval "$ac_try") 2>&5
25960   ac_status=$?
25961   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25962   (exit $ac_status); }; }; then
25963   ac_cv_func_memcmp_working=yes
25964 else
25965   echo "$as_me: program exited with status $ac_status" >&5
25966 echo "$as_me: failed program was:" >&5
25967 sed 's/^/| /' conftest.$ac_ext >&5
25968
25969 ( exit $ac_status )
25970 ac_cv_func_memcmp_working=no
25971 fi
25972 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25973 fi
25974
25975
25976 fi
25977 { echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
25978 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6; }
25979 test $ac_cv_func_memcmp_working = no && case " $LIB@&t@OBJS " in
25980   *" memcmp.$ac_objext "* ) ;;
25981   *) LIB@&t@OBJS="$LIB@&t@OBJS memcmp.$ac_objext"
25982  ;;
25983 esac
25984
25985
25986 #AC_FUNC_REALLOC
25987
25988
25989 for ac_header in sys/select.h sys/socket.h
25990 do
25991 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25992 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25993   { echo "$as_me:$LINENO: checking for $ac_header" >&5
25994 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
25995 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25996   echo $ECHO_N "(cached) $ECHO_C" >&6
25997 fi
25998 ac_res=`eval echo '${'$as_ac_Header'}'`
25999                { echo "$as_me:$LINENO: result: $ac_res" >&5
26000 echo "${ECHO_T}$ac_res" >&6; }
26001 else
26002   # Is the header compilable?
26003 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
26004 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
26005 cat >conftest.$ac_ext <<_ACEOF
26006 /* confdefs.h.  */
26007 _ACEOF
26008 cat confdefs.h >>conftest.$ac_ext
26009 cat >>conftest.$ac_ext <<_ACEOF
26010 /* end confdefs.h.  */
26011 $ac_includes_default
26012 @%:@include <$ac_header>
26013 _ACEOF
26014 rm -f conftest.$ac_objext
26015 if { (ac_try="$ac_compile"
26016 case "(($ac_try" in
26017   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26018   *) ac_try_echo=$ac_try;;
26019 esac
26020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26021   (eval "$ac_compile") 2>conftest.er1
26022   ac_status=$?
26023   grep -v '^ *+' conftest.er1 >conftest.err
26024   rm -f conftest.er1
26025   cat conftest.err >&5
26026   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26027   (exit $ac_status); } && {
26028          test -z "$ac_c_werror_flag" ||
26029          test ! -s conftest.err
26030        } && test -s conftest.$ac_objext; then
26031   ac_header_compiler=yes
26032 else
26033   echo "$as_me: failed program was:" >&5
26034 sed 's/^/| /' conftest.$ac_ext >&5
26035
26036         ac_header_compiler=no
26037 fi
26038
26039 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26040 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26041 echo "${ECHO_T}$ac_header_compiler" >&6; }
26042
26043 # Is the header present?
26044 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
26045 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
26046 cat >conftest.$ac_ext <<_ACEOF
26047 /* confdefs.h.  */
26048 _ACEOF
26049 cat confdefs.h >>conftest.$ac_ext
26050 cat >>conftest.$ac_ext <<_ACEOF
26051 /* end confdefs.h.  */
26052 @%:@include <$ac_header>
26053 _ACEOF
26054 if { (ac_try="$ac_cpp conftest.$ac_ext"
26055 case "(($ac_try" in
26056   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26057   *) ac_try_echo=$ac_try;;
26058 esac
26059 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26060   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26061   ac_status=$?
26062   grep -v '^ *+' conftest.er1 >conftest.err
26063   rm -f conftest.er1
26064   cat conftest.err >&5
26065   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26066   (exit $ac_status); } >/dev/null && {
26067          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26068          test ! -s conftest.err
26069        }; then
26070   ac_header_preproc=yes
26071 else
26072   echo "$as_me: failed program was:" >&5
26073 sed 's/^/| /' conftest.$ac_ext >&5
26074
26075   ac_header_preproc=no
26076 fi
26077
26078 rm -f conftest.err conftest.$ac_ext
26079 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26080 echo "${ECHO_T}$ac_header_preproc" >&6; }
26081
26082 # So?  What about this header?
26083 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26084   yes:no: )
26085     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26086 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26087     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26088 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26089     ac_header_preproc=yes
26090     ;;
26091   no:yes:* )
26092     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26093 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26094     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
26095 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
26096     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26097 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26098     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
26099 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
26100     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26101 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26102     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26103 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26104     ( cat <<\_ASBOX
26105 @%:@@%:@ ------------------------------- @%:@@%:@
26106 @%:@@%:@ Report this to nfs@lists.sf.net @%:@@%:@
26107 @%:@@%:@ ------------------------------- @%:@@%:@
26108 _ASBOX
26109      ) | sed "s/^/$as_me: WARNING:     /" >&2
26110     ;;
26111 esac
26112 { echo "$as_me:$LINENO: checking for $ac_header" >&5
26113 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
26114 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26115   echo $ECHO_N "(cached) $ECHO_C" >&6
26116 else
26117   eval "$as_ac_Header=\$ac_header_preproc"
26118 fi
26119 ac_res=`eval echo '${'$as_ac_Header'}'`
26120                { echo "$as_me:$LINENO: result: $ac_res" >&5
26121 echo "${ECHO_T}$ac_res" >&6; }
26122
26123 fi
26124 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26125   cat >>confdefs.h <<_ACEOF
26126 @%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26127 _ACEOF
26128  
26129 fi
26130
26131 done
26132
26133 { echo "$as_me:$LINENO: checking types of arguments for select" >&5
26134 echo $ECHO_N "checking types of arguments for select... $ECHO_C" >&6; }
26135 if test "${ac_cv_func_select_args+set}" = set; then
26136   echo $ECHO_N "(cached) $ECHO_C" >&6
26137 else
26138   for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
26139  for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
26140   for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
26141    cat >conftest.$ac_ext <<_ACEOF
26142 /* confdefs.h.  */
26143 _ACEOF
26144 cat confdefs.h >>conftest.$ac_ext
26145 cat >>conftest.$ac_ext <<_ACEOF
26146 /* end confdefs.h.  */
26147 $ac_includes_default
26148 #ifdef HAVE_SYS_SELECT_H
26149 # include <sys/select.h>
26150 #endif
26151 #ifdef HAVE_SYS_SOCKET_H
26152 # include <sys/socket.h>
26153 #endif
26154
26155 int
26156 main ()
26157 {
26158 extern int select ($ac_arg1,
26159                                             $ac_arg234, $ac_arg234, $ac_arg234,
26160                                             $ac_arg5);
26161   ;
26162   return 0;
26163 }
26164 _ACEOF
26165 rm -f conftest.$ac_objext
26166 if { (ac_try="$ac_compile"
26167 case "(($ac_try" in
26168   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26169   *) ac_try_echo=$ac_try;;
26170 esac
26171 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26172   (eval "$ac_compile") 2>conftest.er1
26173   ac_status=$?
26174   grep -v '^ *+' conftest.er1 >conftest.err
26175   rm -f conftest.er1
26176   cat conftest.err >&5
26177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26178   (exit $ac_status); } && {
26179          test -z "$ac_c_werror_flag" ||
26180          test ! -s conftest.err
26181        } && test -s conftest.$ac_objext; then
26182   ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
26183 else
26184   echo "$as_me: failed program was:" >&5
26185 sed 's/^/| /' conftest.$ac_ext >&5
26186
26187         
26188 fi
26189
26190 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26191   done
26192  done
26193 done
26194 # Provide a safe default value.
26195 : ${ac_cv_func_select_args='int,int *,struct timeval *'}
26196
26197 fi
26198 { echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5
26199 echo "${ECHO_T}$ac_cv_func_select_args" >&6; }
26200 ac_save_IFS=$IFS; IFS=','
26201 set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
26202 IFS=$ac_save_IFS
26203 shift
26204
26205 cat >>confdefs.h <<_ACEOF
26206 @%:@define SELECT_TYPE_ARG1 $1
26207 _ACEOF
26208
26209
26210 cat >>confdefs.h <<_ACEOF
26211 @%:@define SELECT_TYPE_ARG234 ($2)
26212 _ACEOF
26213
26214
26215 cat >>confdefs.h <<_ACEOF
26216 @%:@define SELECT_TYPE_ARG5 ($3)
26217 _ACEOF
26218
26219 rm -f conftest*
26220
26221 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
26222 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
26223 if test "${ac_cv_type_signal+set}" = set; then
26224   echo $ECHO_N "(cached) $ECHO_C" >&6
26225 else
26226   cat >conftest.$ac_ext <<_ACEOF
26227 /* confdefs.h.  */
26228 _ACEOF
26229 cat confdefs.h >>conftest.$ac_ext
26230 cat >>conftest.$ac_ext <<_ACEOF
26231 /* end confdefs.h.  */
26232 #include <sys/types.h>
26233 #include <signal.h>
26234
26235 int
26236 main ()
26237 {
26238 return *(signal (0, 0)) (0) == 1;
26239   ;
26240   return 0;
26241 }
26242 _ACEOF
26243 rm -f conftest.$ac_objext
26244 if { (ac_try="$ac_compile"
26245 case "(($ac_try" in
26246   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26247   *) ac_try_echo=$ac_try;;
26248 esac
26249 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26250   (eval "$ac_compile") 2>conftest.er1
26251   ac_status=$?
26252   grep -v '^ *+' conftest.er1 >conftest.err
26253   rm -f conftest.er1
26254   cat conftest.err >&5
26255   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26256   (exit $ac_status); } && {
26257          test -z "$ac_c_werror_flag" ||
26258          test ! -s conftest.err
26259        } && test -s conftest.$ac_objext; then
26260   ac_cv_type_signal=int
26261 else
26262   echo "$as_me: failed program was:" >&5
26263 sed 's/^/| /' conftest.$ac_ext >&5
26264
26265         ac_cv_type_signal=void
26266 fi
26267
26268 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26269 fi
26270 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
26271 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
26272
26273 cat >>confdefs.h <<_ACEOF
26274 @%:@define RETSIGTYPE $ac_cv_type_signal
26275 _ACEOF
26276
26277
26278 { echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5
26279 echo $ECHO_N "checking whether stat accepts an empty string... $ECHO_C" >&6; }
26280 if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then
26281   echo $ECHO_N "(cached) $ECHO_C" >&6
26282 else
26283   if test "$cross_compiling" = yes; then
26284   ac_cv_func_stat_empty_string_bug=yes
26285 else
26286   cat >conftest.$ac_ext <<_ACEOF
26287 /* confdefs.h.  */
26288 _ACEOF
26289 cat confdefs.h >>conftest.$ac_ext
26290 cat >>conftest.$ac_ext <<_ACEOF
26291 /* end confdefs.h.  */
26292 $ac_includes_default
26293 int
26294 main ()
26295 {
26296 struct stat sbuf;
26297   return stat ("", &sbuf) == 0;
26298   ;
26299   return 0;
26300 }
26301 _ACEOF
26302 rm -f conftest$ac_exeext
26303 if { (ac_try="$ac_link"
26304 case "(($ac_try" in
26305   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26306   *) ac_try_echo=$ac_try;;
26307 esac
26308 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26309   (eval "$ac_link") 2>&5
26310   ac_status=$?
26311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26312   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26313   { (case "(($ac_try" in
26314   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26315   *) ac_try_echo=$ac_try;;
26316 esac
26317 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26318   (eval "$ac_try") 2>&5
26319   ac_status=$?
26320   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26321   (exit $ac_status); }; }; then
26322   ac_cv_func_stat_empty_string_bug=no
26323 else
26324   echo "$as_me: program exited with status $ac_status" >&5
26325 echo "$as_me: failed program was:" >&5
26326 sed 's/^/| /' conftest.$ac_ext >&5
26327
26328 ( exit $ac_status )
26329 ac_cv_func_stat_empty_string_bug=yes
26330 fi
26331 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26332 fi
26333
26334
26335 fi
26336 { echo "$as_me:$LINENO: result: $ac_cv_func_stat_empty_string_bug" >&5
26337 echo "${ECHO_T}$ac_cv_func_stat_empty_string_bug" >&6; }
26338 if test $ac_cv_func_stat_empty_string_bug = yes; then
26339   case " $LIB@&t@OBJS " in
26340   *" stat.$ac_objext "* ) ;;
26341   *) LIB@&t@OBJS="$LIB@&t@OBJS stat.$ac_objext"
26342  ;;
26343 esac
26344
26345   
26346 cat >>confdefs.h <<_ACEOF
26347 @%:@define HAVE_STAT_EMPTY_STRING_BUG 1
26348 _ACEOF
26349
26350 fi
26351
26352
26353 for ac_func in vprintf
26354 do
26355 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26356 { echo "$as_me:$LINENO: checking for $ac_func" >&5
26357 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
26358 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
26359   echo $ECHO_N "(cached) $ECHO_C" >&6
26360 else
26361   cat >conftest.$ac_ext <<_ACEOF
26362 /* confdefs.h.  */
26363 _ACEOF
26364 cat confdefs.h >>conftest.$ac_ext
26365 cat >>conftest.$ac_ext <<_ACEOF
26366 /* end confdefs.h.  */
26367 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26368    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26369 #define $ac_func innocuous_$ac_func
26370
26371 /* System header to define __stub macros and hopefully few prototypes,
26372     which can conflict with char $ac_func (); below.
26373     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26374     <limits.h> exists even on freestanding compilers.  */
26375
26376 #ifdef __STDC__
26377 # include <limits.h>
26378 #else
26379 # include <assert.h>
26380 #endif
26381
26382 #undef $ac_func
26383
26384 /* Override any GCC internal prototype to avoid an error.
26385    Use char because int might match the return type of a GCC
26386    builtin and then its argument prototype would still apply.  */
26387 #ifdef __cplusplus
26388 extern "C"
26389 #endif
26390 char $ac_func ();
26391 /* The GNU C library defines this for functions which it implements
26392     to always fail with ENOSYS.  Some functions are actually named
26393     something starting with __ and the normal name is an alias.  */
26394 #if defined __stub_$ac_func || defined __stub___$ac_func
26395 choke me
26396 #endif
26397
26398 int
26399 main ()
26400 {
26401 return $ac_func ();
26402   ;
26403   return 0;
26404 }
26405 _ACEOF
26406 rm -f conftest.$ac_objext conftest$ac_exeext
26407 if { (ac_try="$ac_link"
26408 case "(($ac_try" in
26409   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26410   *) ac_try_echo=$ac_try;;
26411 esac
26412 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26413   (eval "$ac_link") 2>conftest.er1
26414   ac_status=$?
26415   grep -v '^ *+' conftest.er1 >conftest.err
26416   rm -f conftest.er1
26417   cat conftest.err >&5
26418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26419   (exit $ac_status); } && {
26420          test -z "$ac_c_werror_flag" ||
26421          test ! -s conftest.err
26422        } && test -s conftest$ac_exeext &&
26423        $as_test_x conftest$ac_exeext; then
26424   eval "$as_ac_var=yes"
26425 else
26426   echo "$as_me: failed program was:" >&5
26427 sed 's/^/| /' conftest.$ac_ext >&5
26428
26429         eval "$as_ac_var=no"
26430 fi
26431
26432 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26433       conftest$ac_exeext conftest.$ac_ext
26434 fi
26435 ac_res=`eval echo '${'$as_ac_var'}'`
26436                { echo "$as_me:$LINENO: result: $ac_res" >&5
26437 echo "${ECHO_T}$ac_res" >&6; }
26438 if test `eval echo '${'$as_ac_var'}'` = yes; then
26439   cat >>confdefs.h <<_ACEOF
26440 @%:@define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26441 _ACEOF
26442  
26443 { echo "$as_me:$LINENO: checking for _doprnt" >&5
26444 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6; }
26445 if test "${ac_cv_func__doprnt+set}" = set; then
26446   echo $ECHO_N "(cached) $ECHO_C" >&6
26447 else
26448   cat >conftest.$ac_ext <<_ACEOF
26449 /* confdefs.h.  */
26450 _ACEOF
26451 cat confdefs.h >>conftest.$ac_ext
26452 cat >>conftest.$ac_ext <<_ACEOF
26453 /* end confdefs.h.  */
26454 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
26455    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26456 #define _doprnt innocuous__doprnt
26457
26458 /* System header to define __stub macros and hopefully few prototypes,
26459     which can conflict with char _doprnt (); below.
26460     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26461     <limits.h> exists even on freestanding compilers.  */
26462
26463 #ifdef __STDC__
26464 # include <limits.h>
26465 #else
26466 # include <assert.h>
26467 #endif
26468
26469 #undef _doprnt
26470
26471 /* Override any GCC internal prototype to avoid an error.
26472    Use char because int might match the return type of a GCC
26473    builtin and then its argument prototype would still apply.  */
26474 #ifdef __cplusplus
26475 extern "C"
26476 #endif
26477 char _doprnt ();
26478 /* The GNU C library defines this for functions which it implements
26479     to always fail with ENOSYS.  Some functions are actually named
26480     something starting with __ and the normal name is an alias.  */
26481 #if defined __stub__doprnt || defined __stub____doprnt
26482 choke me
26483 #endif
26484
26485 int
26486 main ()
26487 {
26488 return _doprnt ();
26489   ;
26490   return 0;
26491 }
26492 _ACEOF
26493 rm -f conftest.$ac_objext conftest$ac_exeext
26494 if { (ac_try="$ac_link"
26495 case "(($ac_try" in
26496   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26497   *) ac_try_echo=$ac_try;;
26498 esac
26499 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26500   (eval "$ac_link") 2>conftest.er1
26501   ac_status=$?
26502   grep -v '^ *+' conftest.er1 >conftest.err
26503   rm -f conftest.er1
26504   cat conftest.err >&5
26505   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26506   (exit $ac_status); } && {
26507          test -z "$ac_c_werror_flag" ||
26508          test ! -s conftest.err
26509        } && test -s conftest$ac_exeext &&
26510        $as_test_x conftest$ac_exeext; then
26511   ac_cv_func__doprnt=yes
26512 else
26513   echo "$as_me: failed program was:" >&5
26514 sed 's/^/| /' conftest.$ac_ext >&5
26515
26516         ac_cv_func__doprnt=no
26517 fi
26518
26519 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26520       conftest$ac_exeext conftest.$ac_ext
26521 fi
26522 { echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
26523 echo "${ECHO_T}$ac_cv_func__doprnt" >&6; }
26524 if test $ac_cv_func__doprnt = yes; then
26525   
26526 cat >>confdefs.h <<\_ACEOF
26527 @%:@define HAVE_DOPRNT 1
26528 _ACEOF
26529
26530 fi
26531
26532 fi
26533 done
26534
26535
26536
26537
26538
26539
26540
26541
26542
26543
26544
26545
26546
26547
26548
26549
26550
26551
26552
26553
26554
26555
26556
26557
26558
26559
26560
26561
26562
26563
26564
26565 for ac_func in alarm atexit dup2 fdatasync ftruncate getcwd \
26566                gethostbyaddr gethostbyname gethostname getmntent \
26567                gettimeofday hasmntopt inet_ntoa innetgr memset mkdir pathconf \
26568                realpath rmdir select socket strcasecmp strchr strdup \
26569                strerror strrchr strtol strtoul sigprocmask
26570 do
26571 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26572 { echo "$as_me:$LINENO: checking for $ac_func" >&5
26573 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
26574 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
26575   echo $ECHO_N "(cached) $ECHO_C" >&6
26576 else
26577   cat >conftest.$ac_ext <<_ACEOF
26578 /* confdefs.h.  */
26579 _ACEOF
26580 cat confdefs.h >>conftest.$ac_ext
26581 cat >>conftest.$ac_ext <<_ACEOF
26582 /* end confdefs.h.  */
26583 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26584    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26585 #define $ac_func innocuous_$ac_func
26586
26587 /* System header to define __stub macros and hopefully few prototypes,
26588     which can conflict with char $ac_func (); below.
26589     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26590     <limits.h> exists even on freestanding compilers.  */
26591
26592 #ifdef __STDC__
26593 # include <limits.h>
26594 #else
26595 # include <assert.h>
26596 #endif
26597
26598 #undef $ac_func
26599
26600 /* Override any GCC internal prototype to avoid an error.
26601    Use char because int might match the return type of a GCC
26602    builtin and then its argument prototype would still apply.  */
26603 #ifdef __cplusplus
26604 extern "C"
26605 #endif
26606 char $ac_func ();
26607 /* The GNU C library defines this for functions which it implements
26608     to always fail with ENOSYS.  Some functions are actually named
26609     something starting with __ and the normal name is an alias.  */
26610 #if defined __stub_$ac_func || defined __stub___$ac_func
26611 choke me
26612 #endif
26613
26614 int
26615 main ()
26616 {
26617 return $ac_func ();
26618   ;
26619   return 0;
26620 }
26621 _ACEOF
26622 rm -f conftest.$ac_objext conftest$ac_exeext
26623 if { (ac_try="$ac_link"
26624 case "(($ac_try" in
26625   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26626   *) ac_try_echo=$ac_try;;
26627 esac
26628 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26629   (eval "$ac_link") 2>conftest.er1
26630   ac_status=$?
26631   grep -v '^ *+' conftest.er1 >conftest.err
26632   rm -f conftest.er1
26633   cat conftest.err >&5
26634   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26635   (exit $ac_status); } && {
26636          test -z "$ac_c_werror_flag" ||
26637          test ! -s conftest.err
26638        } && test -s conftest$ac_exeext &&
26639        $as_test_x conftest$ac_exeext; then
26640   eval "$as_ac_var=yes"
26641 else
26642   echo "$as_me: failed program was:" >&5
26643 sed 's/^/| /' conftest.$ac_ext >&5
26644
26645         eval "$as_ac_var=no"
26646 fi
26647
26648 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26649       conftest$ac_exeext conftest.$ac_ext
26650 fi
26651 ac_res=`eval echo '${'$as_ac_var'}'`
26652                { echo "$as_me:$LINENO: result: $ac_res" >&5
26653 echo "${ECHO_T}$ac_res" >&6; }
26654 if test `eval echo '${'$as_ac_var'}'` = yes; then
26655   cat >>confdefs.h <<_ACEOF
26656 @%:@define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26657 _ACEOF
26658  
26659 fi
26660 done
26661
26662
26663
26664 { echo "$as_me:$LINENO: checking for short" >&5
26665 echo $ECHO_N "checking for short... $ECHO_C" >&6; }
26666 if test "${ac_cv_type_short+set}" = set; then
26667   echo $ECHO_N "(cached) $ECHO_C" >&6
26668 else
26669   cat >conftest.$ac_ext <<_ACEOF
26670 /* confdefs.h.  */
26671 _ACEOF
26672 cat confdefs.h >>conftest.$ac_ext
26673 cat >>conftest.$ac_ext <<_ACEOF
26674 /* end confdefs.h.  */
26675 $ac_includes_default
26676 typedef short ac__type_new_;
26677 int
26678 main ()
26679 {
26680 if ((ac__type_new_ *) 0)
26681   return 0;
26682 if (sizeof (ac__type_new_))
26683   return 0;
26684   ;
26685   return 0;
26686 }
26687 _ACEOF
26688 rm -f conftest.$ac_objext
26689 if { (ac_try="$ac_compile"
26690 case "(($ac_try" in
26691   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26692   *) ac_try_echo=$ac_try;;
26693 esac
26694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26695   (eval "$ac_compile") 2>conftest.er1
26696   ac_status=$?
26697   grep -v '^ *+' conftest.er1 >conftest.err
26698   rm -f conftest.er1
26699   cat conftest.err >&5
26700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26701   (exit $ac_status); } && {
26702          test -z "$ac_c_werror_flag" ||
26703          test ! -s conftest.err
26704        } && test -s conftest.$ac_objext; then
26705   ac_cv_type_short=yes
26706 else
26707   echo "$as_me: failed program was:" >&5
26708 sed 's/^/| /' conftest.$ac_ext >&5
26709
26710         ac_cv_type_short=no
26711 fi
26712
26713 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26714 fi
26715 { echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
26716 echo "${ECHO_T}$ac_cv_type_short" >&6; }
26717
26718 # The cast to long int works around a bug in the HP C Compiler
26719 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
26720 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
26721 # This bug is HP SR number 8606223364.
26722 { echo "$as_me:$LINENO: checking size of short" >&5
26723 echo $ECHO_N "checking size of short... $ECHO_C" >&6; }
26724 if test "${ac_cv_sizeof_short+set}" = set; then
26725   echo $ECHO_N "(cached) $ECHO_C" >&6
26726 else
26727   if test "$cross_compiling" = yes; then
26728   # Depending upon the size, compute the lo and hi bounds.
26729 cat >conftest.$ac_ext <<_ACEOF
26730 /* confdefs.h.  */
26731 _ACEOF
26732 cat confdefs.h >>conftest.$ac_ext
26733 cat >>conftest.$ac_ext <<_ACEOF
26734 /* end confdefs.h.  */
26735 $ac_includes_default
26736    typedef short ac__type_sizeof_;
26737 int
26738 main ()
26739 {
26740 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)@:>@;
26741 test_array @<:@0@:>@ = 0
26742
26743   ;
26744   return 0;
26745 }
26746 _ACEOF
26747 rm -f conftest.$ac_objext
26748 if { (ac_try="$ac_compile"
26749 case "(($ac_try" in
26750   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26751   *) ac_try_echo=$ac_try;;
26752 esac
26753 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26754   (eval "$ac_compile") 2>conftest.er1
26755   ac_status=$?
26756   grep -v '^ *+' conftest.er1 >conftest.err
26757   rm -f conftest.er1
26758   cat conftest.err >&5
26759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26760   (exit $ac_status); } && {
26761          test -z "$ac_c_werror_flag" ||
26762          test ! -s conftest.err
26763        } && test -s conftest.$ac_objext; then
26764   ac_lo=0 ac_mid=0
26765   while :; do
26766     cat >conftest.$ac_ext <<_ACEOF
26767 /* confdefs.h.  */
26768 _ACEOF
26769 cat confdefs.h >>conftest.$ac_ext
26770 cat >>conftest.$ac_ext <<_ACEOF
26771 /* end confdefs.h.  */
26772 $ac_includes_default
26773    typedef short ac__type_sizeof_;
26774 int
26775 main ()
26776 {
26777 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)@:>@;
26778 test_array @<:@0@:>@ = 0
26779
26780   ;
26781   return 0;
26782 }
26783 _ACEOF
26784 rm -f conftest.$ac_objext
26785 if { (ac_try="$ac_compile"
26786 case "(($ac_try" in
26787   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26788   *) ac_try_echo=$ac_try;;
26789 esac
26790 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26791   (eval "$ac_compile") 2>conftest.er1
26792   ac_status=$?
26793   grep -v '^ *+' conftest.er1 >conftest.err
26794   rm -f conftest.er1
26795   cat conftest.err >&5
26796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26797   (exit $ac_status); } && {
26798          test -z "$ac_c_werror_flag" ||
26799          test ! -s conftest.err
26800        } && test -s conftest.$ac_objext; then
26801   ac_hi=$ac_mid; break
26802 else
26803   echo "$as_me: failed program was:" >&5
26804 sed 's/^/| /' conftest.$ac_ext >&5
26805
26806         ac_lo=`expr $ac_mid + 1`
26807                         if test $ac_lo -le $ac_mid; then
26808                           ac_lo= ac_hi=
26809                           break
26810                         fi
26811                         ac_mid=`expr 2 '*' $ac_mid + 1`
26812 fi
26813
26814 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26815   done
26816 else
26817   echo "$as_me: failed program was:" >&5
26818 sed 's/^/| /' conftest.$ac_ext >&5
26819
26820         cat >conftest.$ac_ext <<_ACEOF
26821 /* confdefs.h.  */
26822 _ACEOF
26823 cat confdefs.h >>conftest.$ac_ext
26824 cat >>conftest.$ac_ext <<_ACEOF
26825 /* end confdefs.h.  */
26826 $ac_includes_default
26827    typedef short ac__type_sizeof_;
26828 int
26829 main ()
26830 {
26831 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)@:>@;
26832 test_array @<:@0@:>@ = 0
26833
26834   ;
26835   return 0;
26836 }
26837 _ACEOF
26838 rm -f conftest.$ac_objext
26839 if { (ac_try="$ac_compile"
26840 case "(($ac_try" in
26841   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26842   *) ac_try_echo=$ac_try;;
26843 esac
26844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26845   (eval "$ac_compile") 2>conftest.er1
26846   ac_status=$?
26847   grep -v '^ *+' conftest.er1 >conftest.err
26848   rm -f conftest.er1
26849   cat conftest.err >&5
26850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26851   (exit $ac_status); } && {
26852          test -z "$ac_c_werror_flag" ||
26853          test ! -s conftest.err
26854        } && test -s conftest.$ac_objext; then
26855   ac_hi=-1 ac_mid=-1
26856   while :; do
26857     cat >conftest.$ac_ext <<_ACEOF
26858 /* confdefs.h.  */
26859 _ACEOF
26860 cat confdefs.h >>conftest.$ac_ext
26861 cat >>conftest.$ac_ext <<_ACEOF
26862 /* end confdefs.h.  */
26863 $ac_includes_default
26864    typedef short ac__type_sizeof_;
26865 int
26866 main ()
26867 {
26868 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)@:>@;
26869 test_array @<:@0@:>@ = 0
26870
26871   ;
26872   return 0;
26873 }
26874 _ACEOF
26875 rm -f conftest.$ac_objext
26876 if { (ac_try="$ac_compile"
26877 case "(($ac_try" in
26878   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26879   *) ac_try_echo=$ac_try;;
26880 esac
26881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26882   (eval "$ac_compile") 2>conftest.er1
26883   ac_status=$?
26884   grep -v '^ *+' conftest.er1 >conftest.err
26885   rm -f conftest.er1
26886   cat conftest.err >&5
26887   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26888   (exit $ac_status); } && {
26889          test -z "$ac_c_werror_flag" ||
26890          test ! -s conftest.err
26891        } && test -s conftest.$ac_objext; then
26892   ac_lo=$ac_mid; break
26893 else
26894   echo "$as_me: failed program was:" >&5
26895 sed 's/^/| /' conftest.$ac_ext >&5
26896
26897         ac_hi=`expr '(' $ac_mid ')' - 1`
26898                         if test $ac_mid -le $ac_hi; then
26899                           ac_lo= ac_hi=
26900                           break
26901                         fi
26902                         ac_mid=`expr 2 '*' $ac_mid`
26903 fi
26904
26905 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26906   done
26907 else
26908   echo "$as_me: failed program was:" >&5
26909 sed 's/^/| /' conftest.$ac_ext >&5
26910
26911         ac_lo= ac_hi=
26912 fi
26913
26914 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26915 fi
26916
26917 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26918 # Binary search between lo and hi bounds.
26919 while test "x$ac_lo" != "x$ac_hi"; do
26920   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
26921   cat >conftest.$ac_ext <<_ACEOF
26922 /* confdefs.h.  */
26923 _ACEOF
26924 cat confdefs.h >>conftest.$ac_ext
26925 cat >>conftest.$ac_ext <<_ACEOF
26926 /* end confdefs.h.  */
26927 $ac_includes_default
26928    typedef short ac__type_sizeof_;
26929 int
26930 main ()
26931 {
26932 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)@:>@;
26933 test_array @<:@0@:>@ = 0
26934
26935   ;
26936   return 0;
26937 }
26938 _ACEOF
26939 rm -f conftest.$ac_objext
26940 if { (ac_try="$ac_compile"
26941 case "(($ac_try" in
26942   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26943   *) ac_try_echo=$ac_try;;
26944 esac
26945 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26946   (eval "$ac_compile") 2>conftest.er1
26947   ac_status=$?
26948   grep -v '^ *+' conftest.er1 >conftest.err
26949   rm -f conftest.er1
26950   cat conftest.err >&5
26951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26952   (exit $ac_status); } && {
26953          test -z "$ac_c_werror_flag" ||
26954          test ! -s conftest.err
26955        } && test -s conftest.$ac_objext; then
26956   ac_hi=$ac_mid
26957 else
26958   echo "$as_me: failed program was:" >&5
26959 sed 's/^/| /' conftest.$ac_ext >&5
26960
26961         ac_lo=`expr '(' $ac_mid ')' + 1`
26962 fi
26963
26964 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26965 done
26966 case $ac_lo in
26967 ?*) ac_cv_sizeof_short=$ac_lo;;
26968 '') if test "$ac_cv_type_short" = yes; then
26969      { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
26970 See \`config.log' for more details." >&5
26971 echo "$as_me: error: cannot compute sizeof (short)
26972 See \`config.log' for more details." >&2;}
26973    { (exit 77); exit 77; }; }
26974    else
26975      ac_cv_sizeof_short=0
26976    fi ;;
26977 esac
26978 else
26979   cat >conftest.$ac_ext <<_ACEOF
26980 /* confdefs.h.  */
26981 _ACEOF
26982 cat confdefs.h >>conftest.$ac_ext
26983 cat >>conftest.$ac_ext <<_ACEOF
26984 /* end confdefs.h.  */
26985 $ac_includes_default
26986    typedef short ac__type_sizeof_;
26987 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
26988 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
26989 @%:@include <stdio.h>
26990 @%:@include <stdlib.h>
26991 int
26992 main ()
26993 {
26994
26995   FILE *f = fopen ("conftest.val", "w");
26996   if (! f)
26997     return 1;
26998   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
26999     {
27000       long int i = longval ();
27001       if (i != ((long int) (sizeof (ac__type_sizeof_))))
27002         return 1;
27003       fprintf (f, "%ld\n", i);
27004     }
27005   else
27006     {
27007       unsigned long int i = ulongval ();
27008       if (i != ((long int) (sizeof (ac__type_sizeof_))))
27009         return 1;
27010       fprintf (f, "%lu\n", i);
27011     }
27012   return ferror (f) || fclose (f) != 0;
27013
27014   ;
27015   return 0;
27016 }
27017 _ACEOF
27018 rm -f conftest$ac_exeext
27019 if { (ac_try="$ac_link"
27020 case "(($ac_try" in
27021   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27022   *) ac_try_echo=$ac_try;;
27023 esac
27024 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27025   (eval "$ac_link") 2>&5
27026   ac_status=$?
27027   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27028   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27029   { (case "(($ac_try" in
27030   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27031   *) ac_try_echo=$ac_try;;
27032 esac
27033 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27034   (eval "$ac_try") 2>&5
27035   ac_status=$?
27036   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27037   (exit $ac_status); }; }; then
27038   ac_cv_sizeof_short=`cat conftest.val`
27039 else
27040   echo "$as_me: program exited with status $ac_status" >&5
27041 echo "$as_me: failed program was:" >&5
27042 sed 's/^/| /' conftest.$ac_ext >&5
27043
27044 ( exit $ac_status )
27045 if test "$ac_cv_type_short" = yes; then
27046      { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
27047 See \`config.log' for more details." >&5
27048 echo "$as_me: error: cannot compute sizeof (short)
27049 See \`config.log' for more details." >&2;}
27050    { (exit 77); exit 77; }; }
27051    else
27052      ac_cv_sizeof_short=0
27053    fi
27054 fi
27055 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27056 fi
27057 rm -f conftest.val
27058 fi
27059 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
27060 echo "${ECHO_T}$ac_cv_sizeof_short" >&6; }
27061
27062
27063
27064 cat >>confdefs.h <<_ACEOF
27065 @%:@define SIZEOF_SHORT $ac_cv_sizeof_short
27066 _ACEOF
27067
27068
27069 { echo "$as_me:$LINENO: checking for int" >&5
27070 echo $ECHO_N "checking for int... $ECHO_C" >&6; }
27071 if test "${ac_cv_type_int+set}" = set; then
27072   echo $ECHO_N "(cached) $ECHO_C" >&6
27073 else
27074   cat >conftest.$ac_ext <<_ACEOF
27075 /* confdefs.h.  */
27076 _ACEOF
27077 cat confdefs.h >>conftest.$ac_ext
27078 cat >>conftest.$ac_ext <<_ACEOF
27079 /* end confdefs.h.  */
27080 $ac_includes_default
27081 typedef int ac__type_new_;
27082 int
27083 main ()
27084 {
27085 if ((ac__type_new_ *) 0)
27086   return 0;
27087 if (sizeof (ac__type_new_))
27088   return 0;
27089   ;
27090   return 0;
27091 }
27092 _ACEOF
27093 rm -f conftest.$ac_objext
27094 if { (ac_try="$ac_compile"
27095 case "(($ac_try" in
27096   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27097   *) ac_try_echo=$ac_try;;
27098 esac
27099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27100   (eval "$ac_compile") 2>conftest.er1
27101   ac_status=$?
27102   grep -v '^ *+' conftest.er1 >conftest.err
27103   rm -f conftest.er1
27104   cat conftest.err >&5
27105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27106   (exit $ac_status); } && {
27107          test -z "$ac_c_werror_flag" ||
27108          test ! -s conftest.err
27109        } && test -s conftest.$ac_objext; then
27110   ac_cv_type_int=yes
27111 else
27112   echo "$as_me: failed program was:" >&5
27113 sed 's/^/| /' conftest.$ac_ext >&5
27114
27115         ac_cv_type_int=no
27116 fi
27117
27118 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27119 fi
27120 { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
27121 echo "${ECHO_T}$ac_cv_type_int" >&6; }
27122
27123 # The cast to long int works around a bug in the HP C Compiler
27124 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27125 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27126 # This bug is HP SR number 8606223364.
27127 { echo "$as_me:$LINENO: checking size of int" >&5
27128 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
27129 if test "${ac_cv_sizeof_int+set}" = set; then
27130   echo $ECHO_N "(cached) $ECHO_C" >&6
27131 else
27132   if test "$cross_compiling" = yes; then
27133   # Depending upon the size, compute the lo and hi bounds.
27134 cat >conftest.$ac_ext <<_ACEOF
27135 /* confdefs.h.  */
27136 _ACEOF
27137 cat confdefs.h >>conftest.$ac_ext
27138 cat >>conftest.$ac_ext <<_ACEOF
27139 /* end confdefs.h.  */
27140 $ac_includes_default
27141    typedef int ac__type_sizeof_;
27142 int
27143 main ()
27144 {
27145 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)@:>@;
27146 test_array @<:@0@:>@ = 0
27147
27148   ;
27149   return 0;
27150 }
27151 _ACEOF
27152 rm -f conftest.$ac_objext
27153 if { (ac_try="$ac_compile"
27154 case "(($ac_try" in
27155   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27156   *) ac_try_echo=$ac_try;;
27157 esac
27158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27159   (eval "$ac_compile") 2>conftest.er1
27160   ac_status=$?
27161   grep -v '^ *+' conftest.er1 >conftest.err
27162   rm -f conftest.er1
27163   cat conftest.err >&5
27164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27165   (exit $ac_status); } && {
27166          test -z "$ac_c_werror_flag" ||
27167          test ! -s conftest.err
27168        } && test -s conftest.$ac_objext; then
27169   ac_lo=0 ac_mid=0
27170   while :; do
27171     cat >conftest.$ac_ext <<_ACEOF
27172 /* confdefs.h.  */
27173 _ACEOF
27174 cat confdefs.h >>conftest.$ac_ext
27175 cat >>conftest.$ac_ext <<_ACEOF
27176 /* end confdefs.h.  */
27177 $ac_includes_default
27178    typedef int ac__type_sizeof_;
27179 int
27180 main ()
27181 {
27182 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)@:>@;
27183 test_array @<:@0@:>@ = 0
27184
27185   ;
27186   return 0;
27187 }
27188 _ACEOF
27189 rm -f conftest.$ac_objext
27190 if { (ac_try="$ac_compile"
27191 case "(($ac_try" in
27192   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27193   *) ac_try_echo=$ac_try;;
27194 esac
27195 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27196   (eval "$ac_compile") 2>conftest.er1
27197   ac_status=$?
27198   grep -v '^ *+' conftest.er1 >conftest.err
27199   rm -f conftest.er1
27200   cat conftest.err >&5
27201   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27202   (exit $ac_status); } && {
27203          test -z "$ac_c_werror_flag" ||
27204          test ! -s conftest.err
27205        } && test -s conftest.$ac_objext; then
27206   ac_hi=$ac_mid; break
27207 else
27208   echo "$as_me: failed program was:" >&5
27209 sed 's/^/| /' conftest.$ac_ext >&5
27210
27211         ac_lo=`expr $ac_mid + 1`
27212                         if test $ac_lo -le $ac_mid; then
27213                           ac_lo= ac_hi=
27214                           break
27215                         fi
27216                         ac_mid=`expr 2 '*' $ac_mid + 1`
27217 fi
27218
27219 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27220   done
27221 else
27222   echo "$as_me: failed program was:" >&5
27223 sed 's/^/| /' conftest.$ac_ext >&5
27224
27225         cat >conftest.$ac_ext <<_ACEOF
27226 /* confdefs.h.  */
27227 _ACEOF
27228 cat confdefs.h >>conftest.$ac_ext
27229 cat >>conftest.$ac_ext <<_ACEOF
27230 /* end confdefs.h.  */
27231 $ac_includes_default
27232    typedef int ac__type_sizeof_;
27233 int
27234 main ()
27235 {
27236 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)@:>@;
27237 test_array @<:@0@:>@ = 0
27238
27239   ;
27240   return 0;
27241 }
27242 _ACEOF
27243 rm -f conftest.$ac_objext
27244 if { (ac_try="$ac_compile"
27245 case "(($ac_try" in
27246   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27247   *) ac_try_echo=$ac_try;;
27248 esac
27249 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27250   (eval "$ac_compile") 2>conftest.er1
27251   ac_status=$?
27252   grep -v '^ *+' conftest.er1 >conftest.err
27253   rm -f conftest.er1
27254   cat conftest.err >&5
27255   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27256   (exit $ac_status); } && {
27257          test -z "$ac_c_werror_flag" ||
27258          test ! -s conftest.err
27259        } && test -s conftest.$ac_objext; then
27260   ac_hi=-1 ac_mid=-1
27261   while :; do
27262     cat >conftest.$ac_ext <<_ACEOF
27263 /* confdefs.h.  */
27264 _ACEOF
27265 cat confdefs.h >>conftest.$ac_ext
27266 cat >>conftest.$ac_ext <<_ACEOF
27267 /* end confdefs.h.  */
27268 $ac_includes_default
27269    typedef int ac__type_sizeof_;
27270 int
27271 main ()
27272 {
27273 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)@:>@;
27274 test_array @<:@0@:>@ = 0
27275
27276   ;
27277   return 0;
27278 }
27279 _ACEOF
27280 rm -f conftest.$ac_objext
27281 if { (ac_try="$ac_compile"
27282 case "(($ac_try" in
27283   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27284   *) ac_try_echo=$ac_try;;
27285 esac
27286 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27287   (eval "$ac_compile") 2>conftest.er1
27288   ac_status=$?
27289   grep -v '^ *+' conftest.er1 >conftest.err
27290   rm -f conftest.er1
27291   cat conftest.err >&5
27292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27293   (exit $ac_status); } && {
27294          test -z "$ac_c_werror_flag" ||
27295          test ! -s conftest.err
27296        } && test -s conftest.$ac_objext; then
27297   ac_lo=$ac_mid; break
27298 else
27299   echo "$as_me: failed program was:" >&5
27300 sed 's/^/| /' conftest.$ac_ext >&5
27301
27302         ac_hi=`expr '(' $ac_mid ')' - 1`
27303                         if test $ac_mid -le $ac_hi; then
27304                           ac_lo= ac_hi=
27305                           break
27306                         fi
27307                         ac_mid=`expr 2 '*' $ac_mid`
27308 fi
27309
27310 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27311   done
27312 else
27313   echo "$as_me: failed program was:" >&5
27314 sed 's/^/| /' conftest.$ac_ext >&5
27315
27316         ac_lo= ac_hi=
27317 fi
27318
27319 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27320 fi
27321
27322 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27323 # Binary search between lo and hi bounds.
27324 while test "x$ac_lo" != "x$ac_hi"; do
27325   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
27326   cat >conftest.$ac_ext <<_ACEOF
27327 /* confdefs.h.  */
27328 _ACEOF
27329 cat confdefs.h >>conftest.$ac_ext
27330 cat >>conftest.$ac_ext <<_ACEOF
27331 /* end confdefs.h.  */
27332 $ac_includes_default
27333    typedef int ac__type_sizeof_;
27334 int
27335 main ()
27336 {
27337 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)@:>@;
27338 test_array @<:@0@:>@ = 0
27339
27340   ;
27341   return 0;
27342 }
27343 _ACEOF
27344 rm -f conftest.$ac_objext
27345 if { (ac_try="$ac_compile"
27346 case "(($ac_try" in
27347   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27348   *) ac_try_echo=$ac_try;;
27349 esac
27350 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27351   (eval "$ac_compile") 2>conftest.er1
27352   ac_status=$?
27353   grep -v '^ *+' conftest.er1 >conftest.err
27354   rm -f conftest.er1
27355   cat conftest.err >&5
27356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27357   (exit $ac_status); } && {
27358          test -z "$ac_c_werror_flag" ||
27359          test ! -s conftest.err
27360        } && test -s conftest.$ac_objext; then
27361   ac_hi=$ac_mid
27362 else
27363   echo "$as_me: failed program was:" >&5
27364 sed 's/^/| /' conftest.$ac_ext >&5
27365
27366         ac_lo=`expr '(' $ac_mid ')' + 1`
27367 fi
27368
27369 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27370 done
27371 case $ac_lo in
27372 ?*) ac_cv_sizeof_int=$ac_lo;;
27373 '') if test "$ac_cv_type_int" = yes; then
27374      { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
27375 See \`config.log' for more details." >&5
27376 echo "$as_me: error: cannot compute sizeof (int)
27377 See \`config.log' for more details." >&2;}
27378    { (exit 77); exit 77; }; }
27379    else
27380      ac_cv_sizeof_int=0
27381    fi ;;
27382 esac
27383 else
27384   cat >conftest.$ac_ext <<_ACEOF
27385 /* confdefs.h.  */
27386 _ACEOF
27387 cat confdefs.h >>conftest.$ac_ext
27388 cat >>conftest.$ac_ext <<_ACEOF
27389 /* end confdefs.h.  */
27390 $ac_includes_default
27391    typedef int ac__type_sizeof_;
27392 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
27393 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
27394 @%:@include <stdio.h>
27395 @%:@include <stdlib.h>
27396 int
27397 main ()
27398 {
27399
27400   FILE *f = fopen ("conftest.val", "w");
27401   if (! f)
27402     return 1;
27403   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
27404     {
27405       long int i = longval ();
27406       if (i != ((long int) (sizeof (ac__type_sizeof_))))
27407         return 1;
27408       fprintf (f, "%ld\n", i);
27409     }
27410   else
27411     {
27412       unsigned long int i = ulongval ();
27413       if (i != ((long int) (sizeof (ac__type_sizeof_))))
27414         return 1;
27415       fprintf (f, "%lu\n", i);
27416     }
27417   return ferror (f) || fclose (f) != 0;
27418
27419   ;
27420   return 0;
27421 }
27422 _ACEOF
27423 rm -f conftest$ac_exeext
27424 if { (ac_try="$ac_link"
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_link") 2>&5
27431   ac_status=$?
27432   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27433   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27434   { (case "(($ac_try" in
27435   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27436   *) ac_try_echo=$ac_try;;
27437 esac
27438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27439   (eval "$ac_try") 2>&5
27440   ac_status=$?
27441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27442   (exit $ac_status); }; }; then
27443   ac_cv_sizeof_int=`cat conftest.val`
27444 else
27445   echo "$as_me: program exited with status $ac_status" >&5
27446 echo "$as_me: failed program was:" >&5
27447 sed 's/^/| /' conftest.$ac_ext >&5
27448
27449 ( exit $ac_status )
27450 if test "$ac_cv_type_int" = yes; then
27451      { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
27452 See \`config.log' for more details." >&5
27453 echo "$as_me: error: cannot compute sizeof (int)
27454 See \`config.log' for more details." >&2;}
27455    { (exit 77); exit 77; }; }
27456    else
27457      ac_cv_sizeof_int=0
27458    fi
27459 fi
27460 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27461 fi
27462 rm -f conftest.val
27463 fi
27464 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
27465 echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
27466
27467
27468
27469 cat >>confdefs.h <<_ACEOF
27470 @%:@define SIZEOF_INT $ac_cv_sizeof_int
27471 _ACEOF
27472
27473
27474 { echo "$as_me:$LINENO: checking for long" >&5
27475 echo $ECHO_N "checking for long... $ECHO_C" >&6; }
27476 if test "${ac_cv_type_long+set}" = set; then
27477   echo $ECHO_N "(cached) $ECHO_C" >&6
27478 else
27479   cat >conftest.$ac_ext <<_ACEOF
27480 /* confdefs.h.  */
27481 _ACEOF
27482 cat confdefs.h >>conftest.$ac_ext
27483 cat >>conftest.$ac_ext <<_ACEOF
27484 /* end confdefs.h.  */
27485 $ac_includes_default
27486 typedef long ac__type_new_;
27487 int
27488 main ()
27489 {
27490 if ((ac__type_new_ *) 0)
27491   return 0;
27492 if (sizeof (ac__type_new_))
27493   return 0;
27494   ;
27495   return 0;
27496 }
27497 _ACEOF
27498 rm -f conftest.$ac_objext
27499 if { (ac_try="$ac_compile"
27500 case "(($ac_try" in
27501   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27502   *) ac_try_echo=$ac_try;;
27503 esac
27504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27505   (eval "$ac_compile") 2>conftest.er1
27506   ac_status=$?
27507   grep -v '^ *+' conftest.er1 >conftest.err
27508   rm -f conftest.er1
27509   cat conftest.err >&5
27510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27511   (exit $ac_status); } && {
27512          test -z "$ac_c_werror_flag" ||
27513          test ! -s conftest.err
27514        } && test -s conftest.$ac_objext; then
27515   ac_cv_type_long=yes
27516 else
27517   echo "$as_me: failed program was:" >&5
27518 sed 's/^/| /' conftest.$ac_ext >&5
27519
27520         ac_cv_type_long=no
27521 fi
27522
27523 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27524 fi
27525 { echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
27526 echo "${ECHO_T}$ac_cv_type_long" >&6; }
27527
27528 # The cast to long int works around a bug in the HP C Compiler
27529 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27530 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27531 # This bug is HP SR number 8606223364.
27532 { echo "$as_me:$LINENO: checking size of long" >&5
27533 echo $ECHO_N "checking size of long... $ECHO_C" >&6; }
27534 if test "${ac_cv_sizeof_long+set}" = set; then
27535   echo $ECHO_N "(cached) $ECHO_C" >&6
27536 else
27537   if test "$cross_compiling" = yes; then
27538   # Depending upon the size, compute the lo and hi bounds.
27539 cat >conftest.$ac_ext <<_ACEOF
27540 /* confdefs.h.  */
27541 _ACEOF
27542 cat confdefs.h >>conftest.$ac_ext
27543 cat >>conftest.$ac_ext <<_ACEOF
27544 /* end confdefs.h.  */
27545 $ac_includes_default
27546    typedef long ac__type_sizeof_;
27547 int
27548 main ()
27549 {
27550 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)@:>@;
27551 test_array @<:@0@:>@ = 0
27552
27553   ;
27554   return 0;
27555 }
27556 _ACEOF
27557 rm -f conftest.$ac_objext
27558 if { (ac_try="$ac_compile"
27559 case "(($ac_try" in
27560   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27561   *) ac_try_echo=$ac_try;;
27562 esac
27563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27564   (eval "$ac_compile") 2>conftest.er1
27565   ac_status=$?
27566   grep -v '^ *+' conftest.er1 >conftest.err
27567   rm -f conftest.er1
27568   cat conftest.err >&5
27569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27570   (exit $ac_status); } && {
27571          test -z "$ac_c_werror_flag" ||
27572          test ! -s conftest.err
27573        } && test -s conftest.$ac_objext; then
27574   ac_lo=0 ac_mid=0
27575   while :; do
27576     cat >conftest.$ac_ext <<_ACEOF
27577 /* confdefs.h.  */
27578 _ACEOF
27579 cat confdefs.h >>conftest.$ac_ext
27580 cat >>conftest.$ac_ext <<_ACEOF
27581 /* end confdefs.h.  */
27582 $ac_includes_default
27583    typedef long ac__type_sizeof_;
27584 int
27585 main ()
27586 {
27587 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)@:>@;
27588 test_array @<:@0@:>@ = 0
27589
27590   ;
27591   return 0;
27592 }
27593 _ACEOF
27594 rm -f conftest.$ac_objext
27595 if { (ac_try="$ac_compile"
27596 case "(($ac_try" in
27597   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27598   *) ac_try_echo=$ac_try;;
27599 esac
27600 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27601   (eval "$ac_compile") 2>conftest.er1
27602   ac_status=$?
27603   grep -v '^ *+' conftest.er1 >conftest.err
27604   rm -f conftest.er1
27605   cat conftest.err >&5
27606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27607   (exit $ac_status); } && {
27608          test -z "$ac_c_werror_flag" ||
27609          test ! -s conftest.err
27610        } && test -s conftest.$ac_objext; then
27611   ac_hi=$ac_mid; break
27612 else
27613   echo "$as_me: failed program was:" >&5
27614 sed 's/^/| /' conftest.$ac_ext >&5
27615
27616         ac_lo=`expr $ac_mid + 1`
27617                         if test $ac_lo -le $ac_mid; then
27618                           ac_lo= ac_hi=
27619                           break
27620                         fi
27621                         ac_mid=`expr 2 '*' $ac_mid + 1`
27622 fi
27623
27624 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27625   done
27626 else
27627   echo "$as_me: failed program was:" >&5
27628 sed 's/^/| /' conftest.$ac_ext >&5
27629
27630         cat >conftest.$ac_ext <<_ACEOF
27631 /* confdefs.h.  */
27632 _ACEOF
27633 cat confdefs.h >>conftest.$ac_ext
27634 cat >>conftest.$ac_ext <<_ACEOF
27635 /* end confdefs.h.  */
27636 $ac_includes_default
27637    typedef long ac__type_sizeof_;
27638 int
27639 main ()
27640 {
27641 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)@:>@;
27642 test_array @<:@0@:>@ = 0
27643
27644   ;
27645   return 0;
27646 }
27647 _ACEOF
27648 rm -f conftest.$ac_objext
27649 if { (ac_try="$ac_compile"
27650 case "(($ac_try" in
27651   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27652   *) ac_try_echo=$ac_try;;
27653 esac
27654 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27655   (eval "$ac_compile") 2>conftest.er1
27656   ac_status=$?
27657   grep -v '^ *+' conftest.er1 >conftest.err
27658   rm -f conftest.er1
27659   cat conftest.err >&5
27660   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27661   (exit $ac_status); } && {
27662          test -z "$ac_c_werror_flag" ||
27663          test ! -s conftest.err
27664        } && test -s conftest.$ac_objext; then
27665   ac_hi=-1 ac_mid=-1
27666   while :; do
27667     cat >conftest.$ac_ext <<_ACEOF
27668 /* confdefs.h.  */
27669 _ACEOF
27670 cat confdefs.h >>conftest.$ac_ext
27671 cat >>conftest.$ac_ext <<_ACEOF
27672 /* end confdefs.h.  */
27673 $ac_includes_default
27674    typedef long ac__type_sizeof_;
27675 int
27676 main ()
27677 {
27678 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)@:>@;
27679 test_array @<:@0@:>@ = 0
27680
27681   ;
27682   return 0;
27683 }
27684 _ACEOF
27685 rm -f conftest.$ac_objext
27686 if { (ac_try="$ac_compile"
27687 case "(($ac_try" in
27688   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27689   *) ac_try_echo=$ac_try;;
27690 esac
27691 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27692   (eval "$ac_compile") 2>conftest.er1
27693   ac_status=$?
27694   grep -v '^ *+' conftest.er1 >conftest.err
27695   rm -f conftest.er1
27696   cat conftest.err >&5
27697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27698   (exit $ac_status); } && {
27699          test -z "$ac_c_werror_flag" ||
27700          test ! -s conftest.err
27701        } && test -s conftest.$ac_objext; then
27702   ac_lo=$ac_mid; break
27703 else
27704   echo "$as_me: failed program was:" >&5
27705 sed 's/^/| /' conftest.$ac_ext >&5
27706
27707         ac_hi=`expr '(' $ac_mid ')' - 1`
27708                         if test $ac_mid -le $ac_hi; then
27709                           ac_lo= ac_hi=
27710                           break
27711                         fi
27712                         ac_mid=`expr 2 '*' $ac_mid`
27713 fi
27714
27715 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27716   done
27717 else
27718   echo "$as_me: failed program was:" >&5
27719 sed 's/^/| /' conftest.$ac_ext >&5
27720
27721         ac_lo= ac_hi=
27722 fi
27723
27724 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27725 fi
27726
27727 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27728 # Binary search between lo and hi bounds.
27729 while test "x$ac_lo" != "x$ac_hi"; do
27730   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
27731   cat >conftest.$ac_ext <<_ACEOF
27732 /* confdefs.h.  */
27733 _ACEOF
27734 cat confdefs.h >>conftest.$ac_ext
27735 cat >>conftest.$ac_ext <<_ACEOF
27736 /* end confdefs.h.  */
27737 $ac_includes_default
27738    typedef long ac__type_sizeof_;
27739 int
27740 main ()
27741 {
27742 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)@:>@;
27743 test_array @<:@0@:>@ = 0
27744
27745   ;
27746   return 0;
27747 }
27748 _ACEOF
27749 rm -f conftest.$ac_objext
27750 if { (ac_try="$ac_compile"
27751 case "(($ac_try" in
27752   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27753   *) ac_try_echo=$ac_try;;
27754 esac
27755 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27756   (eval "$ac_compile") 2>conftest.er1
27757   ac_status=$?
27758   grep -v '^ *+' conftest.er1 >conftest.err
27759   rm -f conftest.er1
27760   cat conftest.err >&5
27761   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27762   (exit $ac_status); } && {
27763          test -z "$ac_c_werror_flag" ||
27764          test ! -s conftest.err
27765        } && test -s conftest.$ac_objext; then
27766   ac_hi=$ac_mid
27767 else
27768   echo "$as_me: failed program was:" >&5
27769 sed 's/^/| /' conftest.$ac_ext >&5
27770
27771         ac_lo=`expr '(' $ac_mid ')' + 1`
27772 fi
27773
27774 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27775 done
27776 case $ac_lo in
27777 ?*) ac_cv_sizeof_long=$ac_lo;;
27778 '') if test "$ac_cv_type_long" = yes; then
27779      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
27780 See \`config.log' for more details." >&5
27781 echo "$as_me: error: cannot compute sizeof (long)
27782 See \`config.log' for more details." >&2;}
27783    { (exit 77); exit 77; }; }
27784    else
27785      ac_cv_sizeof_long=0
27786    fi ;;
27787 esac
27788 else
27789   cat >conftest.$ac_ext <<_ACEOF
27790 /* confdefs.h.  */
27791 _ACEOF
27792 cat confdefs.h >>conftest.$ac_ext
27793 cat >>conftest.$ac_ext <<_ACEOF
27794 /* end confdefs.h.  */
27795 $ac_includes_default
27796    typedef long ac__type_sizeof_;
27797 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
27798 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
27799 @%:@include <stdio.h>
27800 @%:@include <stdlib.h>
27801 int
27802 main ()
27803 {
27804
27805   FILE *f = fopen ("conftest.val", "w");
27806   if (! f)
27807     return 1;
27808   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
27809     {
27810       long int i = longval ();
27811       if (i != ((long int) (sizeof (ac__type_sizeof_))))
27812         return 1;
27813       fprintf (f, "%ld\n", i);
27814     }
27815   else
27816     {
27817       unsigned long int i = ulongval ();
27818       if (i != ((long int) (sizeof (ac__type_sizeof_))))
27819         return 1;
27820       fprintf (f, "%lu\n", i);
27821     }
27822   return ferror (f) || fclose (f) != 0;
27823
27824   ;
27825   return 0;
27826 }
27827 _ACEOF
27828 rm -f conftest$ac_exeext
27829 if { (ac_try="$ac_link"
27830 case "(($ac_try" in
27831   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27832   *) ac_try_echo=$ac_try;;
27833 esac
27834 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27835   (eval "$ac_link") 2>&5
27836   ac_status=$?
27837   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27838   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27839   { (case "(($ac_try" in
27840   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27841   *) ac_try_echo=$ac_try;;
27842 esac
27843 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27844   (eval "$ac_try") 2>&5
27845   ac_status=$?
27846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27847   (exit $ac_status); }; }; then
27848   ac_cv_sizeof_long=`cat conftest.val`
27849 else
27850   echo "$as_me: program exited with status $ac_status" >&5
27851 echo "$as_me: failed program was:" >&5
27852 sed 's/^/| /' conftest.$ac_ext >&5
27853
27854 ( exit $ac_status )
27855 if test "$ac_cv_type_long" = yes; then
27856      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
27857 See \`config.log' for more details." >&5
27858 echo "$as_me: error: cannot compute sizeof (long)
27859 See \`config.log' for more details." >&2;}
27860    { (exit 77); exit 77; }; }
27861    else
27862      ac_cv_sizeof_long=0
27863    fi
27864 fi
27865 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27866 fi
27867 rm -f conftest.val
27868 fi
27869 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
27870 echo "${ECHO_T}$ac_cv_sizeof_long" >&6; }
27871
27872
27873
27874 cat >>confdefs.h <<_ACEOF
27875 @%:@define SIZEOF_LONG $ac_cv_sizeof_long
27876 _ACEOF
27877
27878
27879 { echo "$as_me:$LINENO: checking for size_t" >&5
27880 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
27881 if test "${ac_cv_type_size_t+set}" = set; then
27882   echo $ECHO_N "(cached) $ECHO_C" >&6
27883 else
27884   cat >conftest.$ac_ext <<_ACEOF
27885 /* confdefs.h.  */
27886 _ACEOF
27887 cat confdefs.h >>conftest.$ac_ext
27888 cat >>conftest.$ac_ext <<_ACEOF
27889 /* end confdefs.h.  */
27890 $ac_includes_default
27891 typedef size_t ac__type_new_;
27892 int
27893 main ()
27894 {
27895 if ((ac__type_new_ *) 0)
27896   return 0;
27897 if (sizeof (ac__type_new_))
27898   return 0;
27899   ;
27900   return 0;
27901 }
27902 _ACEOF
27903 rm -f conftest.$ac_objext
27904 if { (ac_try="$ac_compile"
27905 case "(($ac_try" in
27906   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27907   *) ac_try_echo=$ac_try;;
27908 esac
27909 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27910   (eval "$ac_compile") 2>conftest.er1
27911   ac_status=$?
27912   grep -v '^ *+' conftest.er1 >conftest.err
27913   rm -f conftest.er1
27914   cat conftest.err >&5
27915   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27916   (exit $ac_status); } && {
27917          test -z "$ac_c_werror_flag" ||
27918          test ! -s conftest.err
27919        } && test -s conftest.$ac_objext; then
27920   ac_cv_type_size_t=yes
27921 else
27922   echo "$as_me: failed program was:" >&5
27923 sed 's/^/| /' conftest.$ac_ext >&5
27924
27925         ac_cv_type_size_t=no
27926 fi
27927
27928 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27929 fi
27930 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
27931 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
27932
27933 # The cast to long int works around a bug in the HP C Compiler
27934 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27935 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27936 # This bug is HP SR number 8606223364.
27937 { echo "$as_me:$LINENO: checking size of size_t" >&5
27938 echo $ECHO_N "checking size of size_t... $ECHO_C" >&6; }
27939 if test "${ac_cv_sizeof_size_t+set}" = set; then
27940   echo $ECHO_N "(cached) $ECHO_C" >&6
27941 else
27942   if test "$cross_compiling" = yes; then
27943   # Depending upon the size, compute the lo and hi bounds.
27944 cat >conftest.$ac_ext <<_ACEOF
27945 /* confdefs.h.  */
27946 _ACEOF
27947 cat confdefs.h >>conftest.$ac_ext
27948 cat >>conftest.$ac_ext <<_ACEOF
27949 /* end confdefs.h.  */
27950 $ac_includes_default
27951    typedef size_t ac__type_sizeof_;
27952 int
27953 main ()
27954 {
27955 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)@:>@;
27956 test_array @<:@0@:>@ = 0
27957
27958   ;
27959   return 0;
27960 }
27961 _ACEOF
27962 rm -f conftest.$ac_objext
27963 if { (ac_try="$ac_compile"
27964 case "(($ac_try" in
27965   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27966   *) ac_try_echo=$ac_try;;
27967 esac
27968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27969   (eval "$ac_compile") 2>conftest.er1
27970   ac_status=$?
27971   grep -v '^ *+' conftest.er1 >conftest.err
27972   rm -f conftest.er1
27973   cat conftest.err >&5
27974   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27975   (exit $ac_status); } && {
27976          test -z "$ac_c_werror_flag" ||
27977          test ! -s conftest.err
27978        } && test -s conftest.$ac_objext; then
27979   ac_lo=0 ac_mid=0
27980   while :; do
27981     cat >conftest.$ac_ext <<_ACEOF
27982 /* confdefs.h.  */
27983 _ACEOF
27984 cat confdefs.h >>conftest.$ac_ext
27985 cat >>conftest.$ac_ext <<_ACEOF
27986 /* end confdefs.h.  */
27987 $ac_includes_default
27988    typedef size_t ac__type_sizeof_;
27989 int
27990 main ()
27991 {
27992 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)@:>@;
27993 test_array @<:@0@:>@ = 0
27994
27995   ;
27996   return 0;
27997 }
27998 _ACEOF
27999 rm -f conftest.$ac_objext
28000 if { (ac_try="$ac_compile"
28001 case "(($ac_try" in
28002   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28003   *) ac_try_echo=$ac_try;;
28004 esac
28005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28006   (eval "$ac_compile") 2>conftest.er1
28007   ac_status=$?
28008   grep -v '^ *+' conftest.er1 >conftest.err
28009   rm -f conftest.er1
28010   cat conftest.err >&5
28011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28012   (exit $ac_status); } && {
28013          test -z "$ac_c_werror_flag" ||
28014          test ! -s conftest.err
28015        } && test -s conftest.$ac_objext; then
28016   ac_hi=$ac_mid; break
28017 else
28018   echo "$as_me: failed program was:" >&5
28019 sed 's/^/| /' conftest.$ac_ext >&5
28020
28021         ac_lo=`expr $ac_mid + 1`
28022                         if test $ac_lo -le $ac_mid; then
28023                           ac_lo= ac_hi=
28024                           break
28025                         fi
28026                         ac_mid=`expr 2 '*' $ac_mid + 1`
28027 fi
28028
28029 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28030   done
28031 else
28032   echo "$as_me: failed program was:" >&5
28033 sed 's/^/| /' conftest.$ac_ext >&5
28034
28035         cat >conftest.$ac_ext <<_ACEOF
28036 /* confdefs.h.  */
28037 _ACEOF
28038 cat confdefs.h >>conftest.$ac_ext
28039 cat >>conftest.$ac_ext <<_ACEOF
28040 /* end confdefs.h.  */
28041 $ac_includes_default
28042    typedef size_t ac__type_sizeof_;
28043 int
28044 main ()
28045 {
28046 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)@:>@;
28047 test_array @<:@0@:>@ = 0
28048
28049   ;
28050   return 0;
28051 }
28052 _ACEOF
28053 rm -f conftest.$ac_objext
28054 if { (ac_try="$ac_compile"
28055 case "(($ac_try" in
28056   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28057   *) ac_try_echo=$ac_try;;
28058 esac
28059 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28060   (eval "$ac_compile") 2>conftest.er1
28061   ac_status=$?
28062   grep -v '^ *+' conftest.er1 >conftest.err
28063   rm -f conftest.er1
28064   cat conftest.err >&5
28065   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28066   (exit $ac_status); } && {
28067          test -z "$ac_c_werror_flag" ||
28068          test ! -s conftest.err
28069        } && test -s conftest.$ac_objext; then
28070   ac_hi=-1 ac_mid=-1
28071   while :; do
28072     cat >conftest.$ac_ext <<_ACEOF
28073 /* confdefs.h.  */
28074 _ACEOF
28075 cat confdefs.h >>conftest.$ac_ext
28076 cat >>conftest.$ac_ext <<_ACEOF
28077 /* end confdefs.h.  */
28078 $ac_includes_default
28079    typedef size_t ac__type_sizeof_;
28080 int
28081 main ()
28082 {
28083 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)@:>@;
28084 test_array @<:@0@:>@ = 0
28085
28086   ;
28087   return 0;
28088 }
28089 _ACEOF
28090 rm -f conftest.$ac_objext
28091 if { (ac_try="$ac_compile"
28092 case "(($ac_try" in
28093   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28094   *) ac_try_echo=$ac_try;;
28095 esac
28096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28097   (eval "$ac_compile") 2>conftest.er1
28098   ac_status=$?
28099   grep -v '^ *+' conftest.er1 >conftest.err
28100   rm -f conftest.er1
28101   cat conftest.err >&5
28102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28103   (exit $ac_status); } && {
28104          test -z "$ac_c_werror_flag" ||
28105          test ! -s conftest.err
28106        } && test -s conftest.$ac_objext; then
28107   ac_lo=$ac_mid; break
28108 else
28109   echo "$as_me: failed program was:" >&5
28110 sed 's/^/| /' conftest.$ac_ext >&5
28111
28112         ac_hi=`expr '(' $ac_mid ')' - 1`
28113                         if test $ac_mid -le $ac_hi; then
28114                           ac_lo= ac_hi=
28115                           break
28116                         fi
28117                         ac_mid=`expr 2 '*' $ac_mid`
28118 fi
28119
28120 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28121   done
28122 else
28123   echo "$as_me: failed program was:" >&5
28124 sed 's/^/| /' conftest.$ac_ext >&5
28125
28126         ac_lo= ac_hi=
28127 fi
28128
28129 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28130 fi
28131
28132 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28133 # Binary search between lo and hi bounds.
28134 while test "x$ac_lo" != "x$ac_hi"; do
28135   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
28136   cat >conftest.$ac_ext <<_ACEOF
28137 /* confdefs.h.  */
28138 _ACEOF
28139 cat confdefs.h >>conftest.$ac_ext
28140 cat >>conftest.$ac_ext <<_ACEOF
28141 /* end confdefs.h.  */
28142 $ac_includes_default
28143    typedef size_t ac__type_sizeof_;
28144 int
28145 main ()
28146 {
28147 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)@:>@;
28148 test_array @<:@0@:>@ = 0
28149
28150   ;
28151   return 0;
28152 }
28153 _ACEOF
28154 rm -f conftest.$ac_objext
28155 if { (ac_try="$ac_compile"
28156 case "(($ac_try" in
28157   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28158   *) ac_try_echo=$ac_try;;
28159 esac
28160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28161   (eval "$ac_compile") 2>conftest.er1
28162   ac_status=$?
28163   grep -v '^ *+' conftest.er1 >conftest.err
28164   rm -f conftest.er1
28165   cat conftest.err >&5
28166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28167   (exit $ac_status); } && {
28168          test -z "$ac_c_werror_flag" ||
28169          test ! -s conftest.err
28170        } && test -s conftest.$ac_objext; then
28171   ac_hi=$ac_mid
28172 else
28173   echo "$as_me: failed program was:" >&5
28174 sed 's/^/| /' conftest.$ac_ext >&5
28175
28176         ac_lo=`expr '(' $ac_mid ')' + 1`
28177 fi
28178
28179 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28180 done
28181 case $ac_lo in
28182 ?*) ac_cv_sizeof_size_t=$ac_lo;;
28183 '') if test "$ac_cv_type_size_t" = yes; then
28184      { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
28185 See \`config.log' for more details." >&5
28186 echo "$as_me: error: cannot compute sizeof (size_t)
28187 See \`config.log' for more details." >&2;}
28188    { (exit 77); exit 77; }; }
28189    else
28190      ac_cv_sizeof_size_t=0
28191    fi ;;
28192 esac
28193 else
28194   cat >conftest.$ac_ext <<_ACEOF
28195 /* confdefs.h.  */
28196 _ACEOF
28197 cat confdefs.h >>conftest.$ac_ext
28198 cat >>conftest.$ac_ext <<_ACEOF
28199 /* end confdefs.h.  */
28200 $ac_includes_default
28201    typedef size_t ac__type_sizeof_;
28202 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
28203 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
28204 @%:@include <stdio.h>
28205 @%:@include <stdlib.h>
28206 int
28207 main ()
28208 {
28209
28210   FILE *f = fopen ("conftest.val", "w");
28211   if (! f)
28212     return 1;
28213   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
28214     {
28215       long int i = longval ();
28216       if (i != ((long int) (sizeof (ac__type_sizeof_))))
28217         return 1;
28218       fprintf (f, "%ld\n", i);
28219     }
28220   else
28221     {
28222       unsigned long int i = ulongval ();
28223       if (i != ((long int) (sizeof (ac__type_sizeof_))))
28224         return 1;
28225       fprintf (f, "%lu\n", i);
28226     }
28227   return ferror (f) || fclose (f) != 0;
28228
28229   ;
28230   return 0;
28231 }
28232 _ACEOF
28233 rm -f conftest$ac_exeext
28234 if { (ac_try="$ac_link"
28235 case "(($ac_try" in
28236   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28237   *) ac_try_echo=$ac_try;;
28238 esac
28239 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28240   (eval "$ac_link") 2>&5
28241   ac_status=$?
28242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28243   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28244   { (case "(($ac_try" in
28245   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28246   *) ac_try_echo=$ac_try;;
28247 esac
28248 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28249   (eval "$ac_try") 2>&5
28250   ac_status=$?
28251   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28252   (exit $ac_status); }; }; then
28253   ac_cv_sizeof_size_t=`cat conftest.val`
28254 else
28255   echo "$as_me: program exited with status $ac_status" >&5
28256 echo "$as_me: failed program was:" >&5
28257 sed 's/^/| /' conftest.$ac_ext >&5
28258
28259 ( exit $ac_status )
28260 if test "$ac_cv_type_size_t" = yes; then
28261      { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
28262 See \`config.log' for more details." >&5
28263 echo "$as_me: error: cannot compute sizeof (size_t)
28264 See \`config.log' for more details." >&2;}
28265    { (exit 77); exit 77; }; }
28266    else
28267      ac_cv_sizeof_size_t=0
28268    fi
28269 fi
28270 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28271 fi
28272 rm -f conftest.val
28273 fi
28274 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
28275 echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6; }
28276
28277
28278
28279 cat >>confdefs.h <<_ACEOF
28280 @%:@define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
28281 _ACEOF
28282
28283
28284 { echo "$as_me:$LINENO: checking for socklen_t" >&5
28285 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; }
28286 if test "${ac_cv_type_socklen_t+set}" = set; then
28287   echo $ECHO_N "(cached) $ECHO_C" >&6
28288 else
28289   cat >conftest.$ac_ext <<_ACEOF
28290 /* confdefs.h.  */
28291 _ACEOF
28292 cat confdefs.h >>conftest.$ac_ext
28293 cat >>conftest.$ac_ext <<_ACEOF
28294 /* end confdefs.h.  */
28295 $ac_includes_default
28296 typedef socklen_t ac__type_new_;
28297 int
28298 main ()
28299 {
28300 if ((ac__type_new_ *) 0)
28301   return 0;
28302 if (sizeof (ac__type_new_))
28303   return 0;
28304   ;
28305   return 0;
28306 }
28307 _ACEOF
28308 rm -f conftest.$ac_objext
28309 if { (ac_try="$ac_compile"
28310 case "(($ac_try" in
28311   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28312   *) ac_try_echo=$ac_try;;
28313 esac
28314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28315   (eval "$ac_compile") 2>conftest.er1
28316   ac_status=$?
28317   grep -v '^ *+' conftest.er1 >conftest.err
28318   rm -f conftest.er1
28319   cat conftest.err >&5
28320   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28321   (exit $ac_status); } && {
28322          test -z "$ac_c_werror_flag" ||
28323          test ! -s conftest.err
28324        } && test -s conftest.$ac_objext; then
28325   ac_cv_type_socklen_t=yes
28326 else
28327   echo "$as_me: failed program was:" >&5
28328 sed 's/^/| /' conftest.$ac_ext >&5
28329
28330         ac_cv_type_socklen_t=no
28331 fi
28332
28333 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28334 fi
28335 { echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
28336 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6; }
28337
28338 # The cast to long int works around a bug in the HP C Compiler
28339 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
28340 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
28341 # This bug is HP SR number 8606223364.
28342 { echo "$as_me:$LINENO: checking size of socklen_t" >&5
28343 echo $ECHO_N "checking size of socklen_t... $ECHO_C" >&6; }
28344 if test "${ac_cv_sizeof_socklen_t+set}" = set; then
28345   echo $ECHO_N "(cached) $ECHO_C" >&6
28346 else
28347   if test "$cross_compiling" = yes; then
28348   # Depending upon the size, compute the lo and hi bounds.
28349 cat >conftest.$ac_ext <<_ACEOF
28350 /* confdefs.h.  */
28351 _ACEOF
28352 cat confdefs.h >>conftest.$ac_ext
28353 cat >>conftest.$ac_ext <<_ACEOF
28354 /* end confdefs.h.  */
28355 $ac_includes_default
28356    typedef socklen_t ac__type_sizeof_;
28357 int
28358 main ()
28359 {
28360 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)@:>@;
28361 test_array @<:@0@:>@ = 0
28362
28363   ;
28364   return 0;
28365 }
28366 _ACEOF
28367 rm -f conftest.$ac_objext
28368 if { (ac_try="$ac_compile"
28369 case "(($ac_try" in
28370   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28371   *) ac_try_echo=$ac_try;;
28372 esac
28373 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28374   (eval "$ac_compile") 2>conftest.er1
28375   ac_status=$?
28376   grep -v '^ *+' conftest.er1 >conftest.err
28377   rm -f conftest.er1
28378   cat conftest.err >&5
28379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28380   (exit $ac_status); } && {
28381          test -z "$ac_c_werror_flag" ||
28382          test ! -s conftest.err
28383        } && test -s conftest.$ac_objext; then
28384   ac_lo=0 ac_mid=0
28385   while :; do
28386     cat >conftest.$ac_ext <<_ACEOF
28387 /* confdefs.h.  */
28388 _ACEOF
28389 cat confdefs.h >>conftest.$ac_ext
28390 cat >>conftest.$ac_ext <<_ACEOF
28391 /* end confdefs.h.  */
28392 $ac_includes_default
28393    typedef socklen_t ac__type_sizeof_;
28394 int
28395 main ()
28396 {
28397 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)@:>@;
28398 test_array @<:@0@:>@ = 0
28399
28400   ;
28401   return 0;
28402 }
28403 _ACEOF
28404 rm -f conftest.$ac_objext
28405 if { (ac_try="$ac_compile"
28406 case "(($ac_try" in
28407   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28408   *) ac_try_echo=$ac_try;;
28409 esac
28410 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28411   (eval "$ac_compile") 2>conftest.er1
28412   ac_status=$?
28413   grep -v '^ *+' conftest.er1 >conftest.err
28414   rm -f conftest.er1
28415   cat conftest.err >&5
28416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28417   (exit $ac_status); } && {
28418          test -z "$ac_c_werror_flag" ||
28419          test ! -s conftest.err
28420        } && test -s conftest.$ac_objext; then
28421   ac_hi=$ac_mid; break
28422 else
28423   echo "$as_me: failed program was:" >&5
28424 sed 's/^/| /' conftest.$ac_ext >&5
28425
28426         ac_lo=`expr $ac_mid + 1`
28427                         if test $ac_lo -le $ac_mid; then
28428                           ac_lo= ac_hi=
28429                           break
28430                         fi
28431                         ac_mid=`expr 2 '*' $ac_mid + 1`
28432 fi
28433
28434 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28435   done
28436 else
28437   echo "$as_me: failed program was:" >&5
28438 sed 's/^/| /' conftest.$ac_ext >&5
28439
28440         cat >conftest.$ac_ext <<_ACEOF
28441 /* confdefs.h.  */
28442 _ACEOF
28443 cat confdefs.h >>conftest.$ac_ext
28444 cat >>conftest.$ac_ext <<_ACEOF
28445 /* end confdefs.h.  */
28446 $ac_includes_default
28447    typedef socklen_t ac__type_sizeof_;
28448 int
28449 main ()
28450 {
28451 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)@:>@;
28452 test_array @<:@0@:>@ = 0
28453
28454   ;
28455   return 0;
28456 }
28457 _ACEOF
28458 rm -f conftest.$ac_objext
28459 if { (ac_try="$ac_compile"
28460 case "(($ac_try" in
28461   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28462   *) ac_try_echo=$ac_try;;
28463 esac
28464 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28465   (eval "$ac_compile") 2>conftest.er1
28466   ac_status=$?
28467   grep -v '^ *+' conftest.er1 >conftest.err
28468   rm -f conftest.er1
28469   cat conftest.err >&5
28470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28471   (exit $ac_status); } && {
28472          test -z "$ac_c_werror_flag" ||
28473          test ! -s conftest.err
28474        } && test -s conftest.$ac_objext; then
28475   ac_hi=-1 ac_mid=-1
28476   while :; do
28477     cat >conftest.$ac_ext <<_ACEOF
28478 /* confdefs.h.  */
28479 _ACEOF
28480 cat confdefs.h >>conftest.$ac_ext
28481 cat >>conftest.$ac_ext <<_ACEOF
28482 /* end confdefs.h.  */
28483 $ac_includes_default
28484    typedef socklen_t ac__type_sizeof_;
28485 int
28486 main ()
28487 {
28488 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)@:>@;
28489 test_array @<:@0@:>@ = 0
28490
28491   ;
28492   return 0;
28493 }
28494 _ACEOF
28495 rm -f conftest.$ac_objext
28496 if { (ac_try="$ac_compile"
28497 case "(($ac_try" in
28498   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28499   *) ac_try_echo=$ac_try;;
28500 esac
28501 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28502   (eval "$ac_compile") 2>conftest.er1
28503   ac_status=$?
28504   grep -v '^ *+' conftest.er1 >conftest.err
28505   rm -f conftest.er1
28506   cat conftest.err >&5
28507   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28508   (exit $ac_status); } && {
28509          test -z "$ac_c_werror_flag" ||
28510          test ! -s conftest.err
28511        } && test -s conftest.$ac_objext; then
28512   ac_lo=$ac_mid; break
28513 else
28514   echo "$as_me: failed program was:" >&5
28515 sed 's/^/| /' conftest.$ac_ext >&5
28516
28517         ac_hi=`expr '(' $ac_mid ')' - 1`
28518                         if test $ac_mid -le $ac_hi; then
28519                           ac_lo= ac_hi=
28520                           break
28521                         fi
28522                         ac_mid=`expr 2 '*' $ac_mid`
28523 fi
28524
28525 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28526   done
28527 else
28528   echo "$as_me: failed program was:" >&5
28529 sed 's/^/| /' conftest.$ac_ext >&5
28530
28531         ac_lo= ac_hi=
28532 fi
28533
28534 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28535 fi
28536
28537 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28538 # Binary search between lo and hi bounds.
28539 while test "x$ac_lo" != "x$ac_hi"; do
28540   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
28541   cat >conftest.$ac_ext <<_ACEOF
28542 /* confdefs.h.  */
28543 _ACEOF
28544 cat confdefs.h >>conftest.$ac_ext
28545 cat >>conftest.$ac_ext <<_ACEOF
28546 /* end confdefs.h.  */
28547 $ac_includes_default
28548    typedef socklen_t ac__type_sizeof_;
28549 int
28550 main ()
28551 {
28552 static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)@:>@;
28553 test_array @<:@0@:>@ = 0
28554
28555   ;
28556   return 0;
28557 }
28558 _ACEOF
28559 rm -f conftest.$ac_objext
28560 if { (ac_try="$ac_compile"
28561 case "(($ac_try" in
28562   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28563   *) ac_try_echo=$ac_try;;
28564 esac
28565 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28566   (eval "$ac_compile") 2>conftest.er1
28567   ac_status=$?
28568   grep -v '^ *+' conftest.er1 >conftest.err
28569   rm -f conftest.er1
28570   cat conftest.err >&5
28571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28572   (exit $ac_status); } && {
28573          test -z "$ac_c_werror_flag" ||
28574          test ! -s conftest.err
28575        } && test -s conftest.$ac_objext; then
28576   ac_hi=$ac_mid
28577 else
28578   echo "$as_me: failed program was:" >&5
28579 sed 's/^/| /' conftest.$ac_ext >&5
28580
28581         ac_lo=`expr '(' $ac_mid ')' + 1`
28582 fi
28583
28584 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28585 done
28586 case $ac_lo in
28587 ?*) ac_cv_sizeof_socklen_t=$ac_lo;;
28588 '') if test "$ac_cv_type_socklen_t" = yes; then
28589      { { echo "$as_me:$LINENO: error: cannot compute sizeof (socklen_t)
28590 See \`config.log' for more details." >&5
28591 echo "$as_me: error: cannot compute sizeof (socklen_t)
28592 See \`config.log' for more details." >&2;}
28593    { (exit 77); exit 77; }; }
28594    else
28595      ac_cv_sizeof_socklen_t=0
28596    fi ;;
28597 esac
28598 else
28599   cat >conftest.$ac_ext <<_ACEOF
28600 /* confdefs.h.  */
28601 _ACEOF
28602 cat confdefs.h >>conftest.$ac_ext
28603 cat >>conftest.$ac_ext <<_ACEOF
28604 /* end confdefs.h.  */
28605 $ac_includes_default
28606    typedef socklen_t ac__type_sizeof_;
28607 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
28608 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
28609 @%:@include <stdio.h>
28610 @%:@include <stdlib.h>
28611 int
28612 main ()
28613 {
28614
28615   FILE *f = fopen ("conftest.val", "w");
28616   if (! f)
28617     return 1;
28618   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
28619     {
28620       long int i = longval ();
28621       if (i != ((long int) (sizeof (ac__type_sizeof_))))
28622         return 1;
28623       fprintf (f, "%ld\n", i);
28624     }
28625   else
28626     {
28627       unsigned long int i = ulongval ();
28628       if (i != ((long int) (sizeof (ac__type_sizeof_))))
28629         return 1;
28630       fprintf (f, "%lu\n", i);
28631     }
28632   return ferror (f) || fclose (f) != 0;
28633
28634   ;
28635   return 0;
28636 }
28637 _ACEOF
28638 rm -f conftest$ac_exeext
28639 if { (ac_try="$ac_link"
28640 case "(($ac_try" in
28641   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28642   *) ac_try_echo=$ac_try;;
28643 esac
28644 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28645   (eval "$ac_link") 2>&5
28646   ac_status=$?
28647   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28648   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28649   { (case "(($ac_try" in
28650   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28651   *) ac_try_echo=$ac_try;;
28652 esac
28653 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28654   (eval "$ac_try") 2>&5
28655   ac_status=$?
28656   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28657   (exit $ac_status); }; }; then
28658   ac_cv_sizeof_socklen_t=`cat conftest.val`
28659 else
28660   echo "$as_me: program exited with status $ac_status" >&5
28661 echo "$as_me: failed program was:" >&5
28662 sed 's/^/| /' conftest.$ac_ext >&5
28663
28664 ( exit $ac_status )
28665 if test "$ac_cv_type_socklen_t" = yes; then
28666      { { echo "$as_me:$LINENO: error: cannot compute sizeof (socklen_t)
28667 See \`config.log' for more details." >&5
28668 echo "$as_me: error: cannot compute sizeof (socklen_t)
28669 See \`config.log' for more details." >&2;}
28670    { (exit 77); exit 77; }; }
28671    else
28672      ac_cv_sizeof_socklen_t=0
28673    fi
28674 fi
28675 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28676 fi
28677 rm -f conftest.val
28678 fi
28679 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_socklen_t" >&5
28680 echo "${ECHO_T}$ac_cv_sizeof_socklen_t" >&6; }
28681
28682
28683
28684 cat >>confdefs.h <<_ACEOF
28685 @%:@define SIZEOF_SOCKLEN_T $ac_cv_sizeof_socklen_t
28686 _ACEOF
28687
28688
28689
28690
28691
28692 cat >>confdefs.h <<_ACEOF
28693 @%:@define NFS_STATEDIR "$statedir"
28694 _ACEOF
28695
28696
28697 if test "x$cross_compiling" = "xno"; then
28698         CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-"$CFLAGS"}
28699         CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-"$CXXFLAGS"}
28700         CPPFLAGS_FOR_BUILD=${CPPFLAGS_FOR_BUILD-"$CPPFLAGS"}
28701         LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-"$LDFLAGS"}
28702 else
28703         CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-""}
28704         CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-""}
28705         CPPFLAGS_FOR_BUILD=${CPPFLAGS_FOR_BUILD-""}
28706         LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-""}
28707 fi
28708
28709
28710
28711
28712
28713
28714
28715
28716
28717
28718
28719 case $host in
28720   alpha*)
28721     ARCHFLAGS="-mno-fp-regs -ffixed-8" ;;
28722   *)
28723     ARCHFLAGS="" ;;
28724 esac
28725
28726 my_am_cflags="-Wall $ARCHFLAGS -pipe"
28727
28728 AM_CPPFLAGS="-I\${top_srcdir}/support/include -D_FILE_OFFSET_BITS=64"
28729
28730 AM_CFLAGS="$my_am_cflags"
28731
28732
28733 # Make sure that $ACLOCAL_FLAGS are used during a rebuild
28734 ACLOCAL_AMFLAGS="-I $ac_macro_dir \$(ACLOCAL_FLAGS)"
28735
28736
28737 ac_config_files="$ac_config_files Makefile linux-nfs/Makefile support/Makefile support/export/Makefile support/include/nfs/Makefile support/include/rpcsvc/Makefile support/include/sys/fs/Makefile support/include/sys/Makefile support/include/Makefile support/misc/Makefile support/nfs/Makefile tools/Makefile tools/getiversion/Makefile tools/getkversion/Makefile tools/locktest/Makefile tools/nlmtest/Makefile tools/rpcdebug/Makefile tools/rpcgen/Makefile utils/Makefile utils/exportfs/Makefile utils/gssd/Makefile utils/idmapd/Makefile utils/lockd/Makefile utils/mount/Makefile utils/mountd/Makefile utils/nfsd/Makefile utils/nfsstat/Makefile utils/rquotad/Makefile utils/showmount/Makefile utils/statd/Makefile"
28738
28739 cat >confcache <<\_ACEOF
28740 # This file is a shell script that caches the results of configure
28741 # tests run on this system so they can be shared between configure
28742 # scripts and configure runs, see configure's option --config-cache.
28743 # It is not useful on other systems.  If it contains results you don't
28744 # want to keep, you may remove or edit it.
28745 #
28746 # config.status only pays attention to the cache file if you give it
28747 # the --recheck option to rerun configure.
28748 #
28749 # `ac_cv_env_foo' variables (set or unset) will be overridden when
28750 # loading this file, other *unset* `ac_cv_foo' will be assigned the
28751 # following values.
28752
28753 _ACEOF
28754
28755 # The following way of writing the cache mishandles newlines in values,
28756 # but we know of no workaround that is simple, portable, and efficient.
28757 # So, we kill variables containing newlines.
28758 # Ultrix sh set writes to stderr and can't be redirected directly,
28759 # and sets the high bit in the cache file unless we assign to the vars.
28760 (
28761   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
28762     eval ac_val=\$$ac_var
28763     case $ac_val in #(
28764     *${as_nl}*)
28765       case $ac_var in #(
28766       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
28767 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
28768       esac
28769       case $ac_var in #(
28770       _ | IFS | as_nl) ;; #(
28771       *) $as_unset $ac_var ;;
28772       esac ;;
28773     esac
28774   done
28775
28776   (set) 2>&1 |
28777     case $as_nl`(ac_space=' '; set) 2>&1` in #(
28778     *${as_nl}ac_space=\ *)
28779       # `set' does not quote correctly, so add quotes (double-quote
28780       # substitution turns \\\\ into \\, and sed turns \\ into \).
28781       sed -n \
28782         "s/'/'\\\\''/g;
28783           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
28784       ;; #(
28785     *)
28786       # `set' quotes correctly as required by POSIX, so do not add quotes.
28787       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
28788       ;;
28789     esac |
28790     sort
28791 ) |
28792   sed '
28793      /^ac_cv_env_/b end
28794      t clear
28795      :clear
28796      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
28797      t end
28798      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
28799      :end' >>confcache
28800 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
28801   if test -w "$cache_file"; then
28802     test "x$cache_file" != "x/dev/null" &&
28803       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
28804 echo "$as_me: updating cache $cache_file" >&6;}
28805     cat confcache >$cache_file
28806   else
28807     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
28808 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
28809   fi
28810 fi
28811 rm -f confcache
28812
28813 test "x$prefix" = xNONE && prefix=$ac_default_prefix
28814 # Let make expand exec_prefix.
28815 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
28816
28817 DEFS=-DHAVE_CONFIG_H
28818
28819 ac_libobjs=
28820 ac_ltlibobjs=
28821 for ac_i in : $LIB@&t@OBJS; do test "x$ac_i" = x: && continue
28822   # 1. Remove the extension, and $U if already installed.
28823   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
28824   ac_i=`echo "$ac_i" | sed "$ac_script"`
28825   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
28826   #    will be set to the directory where LIBOBJS objects are built.
28827   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
28828   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
28829 done
28830 LIB@&t@OBJS=$ac_libobjs
28831
28832 LTLIBOBJS=$ac_ltlibobjs
28833
28834
28835 if test -z "${CONFIG_NFSV4_TRUE}" && test -z "${CONFIG_NFSV4_FALSE}"; then
28836   { { echo "$as_me:$LINENO: error: conditional \"CONFIG_NFSV4\" was never defined.
28837 Usually this means the macro was only invoked conditionally." >&5
28838 echo "$as_me: error: conditional \"CONFIG_NFSV4\" was never defined.
28839 Usually this means the macro was only invoked conditionally." >&2;}
28840    { (exit 1); exit 1; }; }
28841 fi
28842 if test -z "${CONFIG_GSS_TRUE}" && test -z "${CONFIG_GSS_FALSE}"; then
28843   { { echo "$as_me:$LINENO: error: conditional \"CONFIG_GSS\" was never defined.
28844 Usually this means the macro was only invoked conditionally." >&5
28845 echo "$as_me: error: conditional \"CONFIG_GSS\" was never defined.
28846 Usually this means the macro was only invoked conditionally." >&2;}
28847    { (exit 1); exit 1; }; }
28848 fi
28849 if test -z "${CONFIG_RQUOTAD_TRUE}" && test -z "${CONFIG_RQUOTAD_FALSE}"; then
28850   { { echo "$as_me:$LINENO: error: conditional \"CONFIG_RQUOTAD\" was never defined.
28851 Usually this means the macro was only invoked conditionally." >&5
28852 echo "$as_me: error: conditional \"CONFIG_RQUOTAD\" was never defined.
28853 Usually this means the macro was only invoked conditionally." >&2;}
28854    { (exit 1); exit 1; }; }
28855 fi
28856 if test -z "${CONFIG_MOUNT_TRUE}" && test -z "${CONFIG_MOUNT_FALSE}"; then
28857   { { echo "$as_me:$LINENO: error: conditional \"CONFIG_MOUNT\" was never defined.
28858 Usually this means the macro was only invoked conditionally." >&5
28859 echo "$as_me: error: conditional \"CONFIG_MOUNT\" was never defined.
28860 Usually this means the macro was only invoked conditionally." >&2;}
28861    { (exit 1); exit 1; }; }
28862 fi
28863 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
28864   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
28865 Usually this means the macro was only invoked conditionally." >&5
28866 echo "$as_me: error: conditional \"AMDEP\" was never defined.
28867 Usually this means the macro was only invoked conditionally." >&2;}
28868    { (exit 1); exit 1; }; }
28869 fi
28870 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
28871   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
28872 Usually this means the macro was only invoked conditionally." >&5
28873 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
28874 Usually this means the macro was only invoked conditionally." >&2;}
28875    { (exit 1); exit 1; }; }
28876 fi
28877 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
28878   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
28879 Usually this means the macro was only invoked conditionally." >&5
28880 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
28881 Usually this means the macro was only invoked conditionally." >&2;}
28882    { (exit 1); exit 1; }; }
28883 fi
28884 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
28885   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
28886 Usually this means the macro was only invoked conditionally." >&5
28887 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
28888 Usually this means the macro was only invoked conditionally." >&2;}
28889    { (exit 1); exit 1; }; }
28890 fi
28891
28892 : ${CONFIG_STATUS=./config.status}
28893 ac_clean_files_save=$ac_clean_files
28894 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
28895 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
28896 echo "$as_me: creating $CONFIG_STATUS" >&6;}
28897 cat >$CONFIG_STATUS <<_ACEOF
28898 #! $SHELL
28899 # Generated by $as_me.
28900 # Run this file to recreate the current configuration.
28901 # Compiler output produced by configure, useful for debugging
28902 # configure, is in config.log if it exists.
28903
28904 debug=false
28905 ac_cs_recheck=false
28906 ac_cs_silent=false
28907 SHELL=\${CONFIG_SHELL-$SHELL}
28908 _ACEOF
28909
28910 cat >>$CONFIG_STATUS <<\_ACEOF
28911 ## --------------------- ##
28912 ## M4sh Initialization.  ##
28913 ## --------------------- ##
28914
28915 # Be more Bourne compatible
28916 DUALCASE=1; export DUALCASE # for MKS sh
28917 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
28918   emulate sh
28919   NULLCMD=:
28920   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
28921   # is contrary to our usage.  Disable this feature.
28922   alias -g '${1+"$@"}'='"$@"'
28923   setopt NO_GLOB_SUBST
28924 else
28925   case `(set -o) 2>/dev/null` in
28926   *posix*) set -o posix ;;
28927 esac
28928
28929 fi
28930
28931
28932
28933
28934 # PATH needs CR
28935 # Avoid depending upon Character Ranges.
28936 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
28937 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
28938 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
28939 as_cr_digits='0123456789'
28940 as_cr_alnum=$as_cr_Letters$as_cr_digits
28941
28942 # The user is always right.
28943 if test "${PATH_SEPARATOR+set}" != set; then
28944   echo "#! /bin/sh" >conf$$.sh
28945   echo  "exit 0"   >>conf$$.sh
28946   chmod +x conf$$.sh
28947   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
28948     PATH_SEPARATOR=';'
28949   else
28950     PATH_SEPARATOR=:
28951   fi
28952   rm -f conf$$.sh
28953 fi
28954
28955 # Support unset when possible.
28956 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
28957   as_unset=unset
28958 else
28959   as_unset=false
28960 fi
28961
28962
28963 # IFS
28964 # We need space, tab and new line, in precisely that order.  Quoting is
28965 # there to prevent editors from complaining about space-tab.
28966 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
28967 # splitting by setting IFS to empty value.)
28968 as_nl='
28969 '
28970 IFS=" ""        $as_nl"
28971
28972 # Find who we are.  Look in the path if we contain no directory separator.
28973 case $0 in
28974   *[\\/]* ) as_myself=$0 ;;
28975   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28976 for as_dir in $PATH
28977 do
28978   IFS=$as_save_IFS
28979   test -z "$as_dir" && as_dir=.
28980   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
28981 done
28982 IFS=$as_save_IFS
28983
28984      ;;
28985 esac
28986 # We did not find ourselves, most probably we were run as `sh COMMAND'
28987 # in which case we are not to be found in the path.
28988 if test "x$as_myself" = x; then
28989   as_myself=$0
28990 fi
28991 if test ! -f "$as_myself"; then
28992   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
28993   { (exit 1); exit 1; }
28994 fi
28995
28996 # Work around bugs in pre-3.0 UWIN ksh.
28997 for as_var in ENV MAIL MAILPATH
28998 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
28999 done
29000 PS1='$ '
29001 PS2='> '
29002 PS4='+ '
29003
29004 # NLS nuisances.
29005 for as_var in \
29006   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
29007   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
29008   LC_TELEPHONE LC_TIME
29009 do
29010   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
29011     eval $as_var=C; export $as_var
29012   else
29013     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
29014   fi
29015 done
29016
29017 # Required to use basename.
29018 if expr a : '\(a\)' >/dev/null 2>&1 &&
29019    test "X`expr 00001 : '.*\(...\)'`" = X001; then
29020   as_expr=expr
29021 else
29022   as_expr=false
29023 fi
29024
29025 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
29026   as_basename=basename
29027 else
29028   as_basename=false
29029 fi
29030
29031
29032 # Name of the executable.
29033 as_me=`$as_basename -- "$0" ||
29034 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
29035          X"$0" : 'X\(//\)$' \| \
29036          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
29037 echo X/"$0" |
29038     sed '/^.*\/\([^/][^/]*\)\/*$/{
29039             s//\1/
29040             q
29041           }
29042           /^X\/\(\/\/\)$/{
29043             s//\1/
29044             q
29045           }
29046           /^X\/\(\/\).*/{
29047             s//\1/
29048             q
29049           }
29050           s/.*/./; q'`
29051
29052 # CDPATH.
29053 $as_unset CDPATH
29054
29055
29056
29057   as_lineno_1=$LINENO
29058   as_lineno_2=$LINENO
29059   test "x$as_lineno_1" != "x$as_lineno_2" &&
29060   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
29061
29062   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
29063   # uniformly replaced by the line number.  The first 'sed' inserts a
29064   # line-number line after each line using $LINENO; the second 'sed'
29065   # does the real work.  The second script uses 'N' to pair each
29066   # line-number line with the line containing $LINENO, and appends
29067   # trailing '-' during substitution so that $LINENO is not a special
29068   # case at line end.
29069   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
29070   # scripts with optimization help from Paolo Bonzini.  Blame Lee
29071   # E. McMahon (1931-1989) for sed's syntax.  :-)
29072   sed -n '
29073     p
29074     /[$]LINENO/=
29075   ' <$as_myself |
29076     sed '
29077       s/[$]LINENO.*/&-/
29078       t lineno
29079       b
29080       :lineno
29081       N
29082       :loop
29083       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
29084       t loop
29085       s/-\n.*//
29086     ' >$as_me.lineno &&
29087   chmod +x "$as_me.lineno" ||
29088     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
29089    { (exit 1); exit 1; }; }
29090
29091   # Don't try to exec as it changes $[0], causing all sort of problems
29092   # (the dirname of $[0] is not the place where we might find the
29093   # original and so on.  Autoconf is especially sensitive to this).
29094   . "./$as_me.lineno"
29095   # Exit status is that of the last command.
29096   exit
29097 }
29098
29099
29100 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
29101   as_dirname=dirname
29102 else
29103   as_dirname=false
29104 fi
29105
29106 ECHO_C= ECHO_N= ECHO_T=
29107 case `echo -n x` in
29108 -n*)
29109   case `echo 'x\c'` in
29110   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
29111   *)   ECHO_C='\c';;
29112   esac;;
29113 *)
29114   ECHO_N='-n';;
29115 esac
29116
29117 if expr a : '\(a\)' >/dev/null 2>&1 &&
29118    test "X`expr 00001 : '.*\(...\)'`" = X001; then
29119   as_expr=expr
29120 else
29121   as_expr=false
29122 fi
29123
29124 rm -f conf$$ conf$$.exe conf$$.file
29125 if test -d conf$$.dir; then
29126   rm -f conf$$.dir/conf$$.file
29127 else
29128   rm -f conf$$.dir
29129   mkdir conf$$.dir
29130 fi
29131 echo >conf$$.file
29132 if ln -s conf$$.file conf$$ 2>/dev/null; then
29133   as_ln_s='ln -s'
29134   # ... but there are two gotchas:
29135   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
29136   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
29137   # In both cases, we have to default to `cp -p'.
29138   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
29139     as_ln_s='cp -p'
29140 elif ln conf$$.file conf$$ 2>/dev/null; then
29141   as_ln_s=ln
29142 else
29143   as_ln_s='cp -p'
29144 fi
29145 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
29146 rmdir conf$$.dir 2>/dev/null
29147
29148 if mkdir -p . 2>/dev/null; then
29149   as_mkdir_p=:
29150 else
29151   test -d ./-p && rmdir ./-p
29152   as_mkdir_p=false
29153 fi
29154
29155 if test -x / >/dev/null 2>&1; then
29156   as_test_x='test -x'
29157 else
29158   if ls -dL / >/dev/null 2>&1; then
29159     as_ls_L_option=L
29160   else
29161     as_ls_L_option=
29162   fi
29163   as_test_x='
29164     eval sh -c '\''
29165       if test -d "$1"; then
29166         test -d "$1/.";
29167       else
29168         case $1 in
29169         -*)set "./$1";;
29170         esac;
29171         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
29172         ???[sx]*):;;*)false;;esac;fi
29173     '\'' sh
29174   '
29175 fi
29176 as_executable_p=$as_test_x
29177
29178 # Sed expression to map a string onto a valid CPP name.
29179 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
29180
29181 # Sed expression to map a string onto a valid variable name.
29182 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
29183
29184
29185 exec 6>&1
29186
29187 # Save the log message, to keep $[0] and so on meaningful, and to
29188 # report actual input values of CONFIG_FILES etc. instead of their
29189 # values after options handling.
29190 ac_log="
29191 This file was extended by linux nfs-utils $as_me 1.0.10, which was
29192 generated by GNU Autoconf 2.61.  Invocation command line was
29193
29194   CONFIG_FILES    = $CONFIG_FILES
29195   CONFIG_HEADERS  = $CONFIG_HEADERS
29196   CONFIG_LINKS    = $CONFIG_LINKS
29197   CONFIG_COMMANDS = $CONFIG_COMMANDS
29198   $ $0 $@
29199
29200 on `(hostname || uname -n) 2>/dev/null | sed 1q`
29201 "
29202
29203 _ACEOF
29204
29205 cat >>$CONFIG_STATUS <<_ACEOF
29206 # Files that config.status was made for.
29207 config_files="$ac_config_files"
29208 config_headers="$ac_config_headers"
29209 config_commands="$ac_config_commands"
29210
29211 _ACEOF
29212
29213 cat >>$CONFIG_STATUS <<\_ACEOF
29214 ac_cs_usage="\
29215 \`$as_me' instantiates files from templates according to the
29216 current configuration.
29217
29218 Usage: $0 [OPTIONS] [FILE]...
29219
29220   -h, --help       print this help, then exit
29221   -V, --version    print version number and configuration settings, then exit
29222   -q, --quiet      do not print progress messages
29223   -d, --debug      don't remove temporary files
29224       --recheck    update $as_me by reconfiguring in the same conditions
29225   --file=FILE[:TEMPLATE]
29226                    instantiate the configuration file FILE
29227   --header=FILE[:TEMPLATE]
29228                    instantiate the configuration header FILE
29229
29230 Configuration files:
29231 $config_files
29232
29233 Configuration headers:
29234 $config_headers
29235
29236 Configuration commands:
29237 $config_commands
29238
29239 Report bugs to <bug-autoconf@gnu.org>."
29240
29241 _ACEOF
29242 cat >>$CONFIG_STATUS <<_ACEOF
29243 ac_cs_version="\\
29244 linux nfs-utils config.status 1.0.10
29245 configured by $0, generated by GNU Autoconf 2.61,
29246   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
29247
29248 Copyright (C) 2006 Free Software Foundation, Inc.
29249 This config.status script is free software; the Free Software Foundation
29250 gives unlimited permission to copy, distribute and modify it."
29251
29252 ac_pwd='$ac_pwd'
29253 srcdir='$srcdir'
29254 INSTALL='$INSTALL'
29255 _ACEOF
29256
29257 cat >>$CONFIG_STATUS <<\_ACEOF
29258 # If no file are specified by the user, then we need to provide default
29259 # value.  By we need to know if files were specified by the user.
29260 ac_need_defaults=:
29261 while test $# != 0
29262 do
29263   case $1 in
29264   --*=*)
29265     ac_option=`expr "X$1" : 'X\([^=]*\)='`
29266     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
29267     ac_shift=:
29268     ;;
29269   *)
29270     ac_option=$1
29271     ac_optarg=$2
29272     ac_shift=shift
29273     ;;
29274   esac
29275
29276   case $ac_option in
29277   # Handling of the options.
29278   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
29279     ac_cs_recheck=: ;;
29280   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
29281     echo "$ac_cs_version"; exit ;;
29282   --debug | --debu | --deb | --de | --d | -d )
29283     debug=: ;;
29284   --file | --fil | --fi | --f )
29285     $ac_shift
29286     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
29287     ac_need_defaults=false;;
29288   --header | --heade | --head | --hea )
29289     $ac_shift
29290     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
29291     ac_need_defaults=false;;
29292   --he | --h)
29293     # Conflict between --help and --header
29294     { echo "$as_me: error: ambiguous option: $1
29295 Try \`$0 --help' for more information." >&2
29296    { (exit 1); exit 1; }; };;
29297   --help | --hel | -h )
29298     echo "$ac_cs_usage"; exit ;;
29299   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
29300   | -silent | --silent | --silen | --sile | --sil | --si | --s)
29301     ac_cs_silent=: ;;
29302
29303   # This is an error.
29304   -*) { echo "$as_me: error: unrecognized option: $1
29305 Try \`$0 --help' for more information." >&2
29306    { (exit 1); exit 1; }; } ;;
29307
29308   *) ac_config_targets="$ac_config_targets $1"
29309      ac_need_defaults=false ;;
29310
29311   esac
29312   shift
29313 done
29314
29315 ac_configure_extra_args=
29316
29317 if $ac_cs_silent; then
29318   exec 6>/dev/null
29319   ac_configure_extra_args="$ac_configure_extra_args --silent"
29320 fi
29321
29322 _ACEOF
29323 cat >>$CONFIG_STATUS <<_ACEOF
29324 if \$ac_cs_recheck; then
29325   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
29326   CONFIG_SHELL=$SHELL
29327   export CONFIG_SHELL
29328   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
29329 fi
29330
29331 _ACEOF
29332 cat >>$CONFIG_STATUS <<\_ACEOF
29333 exec 5>>config.log
29334 {
29335   echo
29336   sed 'h;s/./-/g;s/^.../@%:@@%:@ /;s/...$/ @%:@@%:@/;p;x;p;x' <<_ASBOX
29337 @%:@@%:@ Running $as_me. @%:@@%:@
29338 _ASBOX
29339   echo "$ac_log"
29340 } >&5
29341
29342 _ACEOF
29343 cat >>$CONFIG_STATUS <<_ACEOF
29344 #
29345 # INIT-COMMANDS
29346 #
29347 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
29348
29349 _ACEOF
29350
29351 cat >>$CONFIG_STATUS <<\_ACEOF
29352
29353 # Handling of arguments.
29354 for ac_config_target in $ac_config_targets
29355 do
29356   case $ac_config_target in
29357     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
29358     "support/include/config.h") CONFIG_HEADERS="$CONFIG_HEADERS support/include/config.h" ;;
29359     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
29360     "linux-nfs/Makefile") CONFIG_FILES="$CONFIG_FILES linux-nfs/Makefile" ;;
29361     "support/Makefile") CONFIG_FILES="$CONFIG_FILES support/Makefile" ;;
29362     "support/export/Makefile") CONFIG_FILES="$CONFIG_FILES support/export/Makefile" ;;
29363     "support/include/nfs/Makefile") CONFIG_FILES="$CONFIG_FILES support/include/nfs/Makefile" ;;
29364     "support/include/rpcsvc/Makefile") CONFIG_FILES="$CONFIG_FILES support/include/rpcsvc/Makefile" ;;
29365     "support/include/sys/fs/Makefile") CONFIG_FILES="$CONFIG_FILES support/include/sys/fs/Makefile" ;;
29366     "support/include/sys/Makefile") CONFIG_FILES="$CONFIG_FILES support/include/sys/Makefile" ;;
29367     "support/include/Makefile") CONFIG_FILES="$CONFIG_FILES support/include/Makefile" ;;
29368     "support/misc/Makefile") CONFIG_FILES="$CONFIG_FILES support/misc/Makefile" ;;
29369     "support/nfs/Makefile") CONFIG_FILES="$CONFIG_FILES support/nfs/Makefile" ;;
29370     "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
29371     "tools/getiversion/Makefile") CONFIG_FILES="$CONFIG_FILES tools/getiversion/Makefile" ;;
29372     "tools/getkversion/Makefile") CONFIG_FILES="$CONFIG_FILES tools/getkversion/Makefile" ;;
29373     "tools/locktest/Makefile") CONFIG_FILES="$CONFIG_FILES tools/locktest/Makefile" ;;
29374     "tools/nlmtest/Makefile") CONFIG_FILES="$CONFIG_FILES tools/nlmtest/Makefile" ;;
29375     "tools/rpcdebug/Makefile") CONFIG_FILES="$CONFIG_FILES tools/rpcdebug/Makefile" ;;
29376     "tools/rpcgen/Makefile") CONFIG_FILES="$CONFIG_FILES tools/rpcgen/Makefile" ;;
29377     "utils/Makefile") CONFIG_FILES="$CONFIG_FILES utils/Makefile" ;;
29378     "utils/exportfs/Makefile") CONFIG_FILES="$CONFIG_FILES utils/exportfs/Makefile" ;;
29379     "utils/gssd/Makefile") CONFIG_FILES="$CONFIG_FILES utils/gssd/Makefile" ;;
29380     "utils/idmapd/Makefile") CONFIG_FILES="$CONFIG_FILES utils/idmapd/Makefile" ;;
29381     "utils/lockd/Makefile") CONFIG_FILES="$CONFIG_FILES utils/lockd/Makefile" ;;
29382     "utils/mount/Makefile") CONFIG_FILES="$CONFIG_FILES utils/mount/Makefile" ;;
29383     "utils/mountd/Makefile") CONFIG_FILES="$CONFIG_FILES utils/mountd/Makefile" ;;
29384     "utils/nfsd/Makefile") CONFIG_FILES="$CONFIG_FILES utils/nfsd/Makefile" ;;
29385     "utils/nfsstat/Makefile") CONFIG_FILES="$CONFIG_FILES utils/nfsstat/Makefile" ;;
29386     "utils/rquotad/Makefile") CONFIG_FILES="$CONFIG_FILES utils/rquotad/Makefile" ;;
29387     "utils/showmount/Makefile") CONFIG_FILES="$CONFIG_FILES utils/showmount/Makefile" ;;
29388     "utils/statd/Makefile") CONFIG_FILES="$CONFIG_FILES utils/statd/Makefile" ;;
29389
29390   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
29391 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
29392    { (exit 1); exit 1; }; };;
29393   esac
29394 done
29395
29396
29397 # If the user did not use the arguments to specify the items to instantiate,
29398 # then the envvar interface is used.  Set only those that are not.
29399 # We use the long form for the default assignment because of an extremely
29400 # bizarre bug on SunOS 4.1.3.
29401 if $ac_need_defaults; then
29402   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
29403   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
29404   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
29405 fi
29406
29407 # Have a temporary directory for convenience.  Make it in the build tree
29408 # simply because there is no reason against having it here, and in addition,
29409 # creating and moving files from /tmp can sometimes cause problems.
29410 # Hook for its removal unless debugging.
29411 # Note that there is a small window in which the directory will not be cleaned:
29412 # after its creation but before its name has been assigned to `$tmp'.
29413 $debug ||
29414 {
29415   tmp=
29416   trap 'exit_status=$?
29417   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
29418 ' 0
29419   trap '{ (exit 1); exit 1; }' 1 2 13 15
29420 }
29421 # Create a (secure) tmp directory for tmp files.
29422
29423 {
29424   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
29425   test -n "$tmp" && test -d "$tmp"
29426 }  ||
29427 {
29428   tmp=./conf$$-$RANDOM
29429   (umask 077 && mkdir "$tmp")
29430 } ||
29431 {
29432    echo "$me: cannot create a temporary directory in ." >&2
29433    { (exit 1); exit 1; }
29434 }
29435
29436 #
29437 # Set up the sed scripts for CONFIG_FILES section.
29438 #
29439
29440 # No need to generate the scripts if there are no CONFIG_FILES.
29441 # This happens for instance when ./config.status config.h
29442 if test -n "$CONFIG_FILES"; then
29443
29444 _ACEOF
29445
29446
29447
29448 ac_delim='%!_!# '
29449 for ac_last_try in false false false false false :; do
29450   cat >conf$$subs.sed <<_ACEOF
29451 SHELL!$SHELL$ac_delim
29452 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
29453 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
29454 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
29455 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
29456 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
29457 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
29458 exec_prefix!$exec_prefix$ac_delim
29459 prefix!$prefix$ac_delim
29460 program_transform_name!$program_transform_name$ac_delim
29461 bindir!$bindir$ac_delim
29462 sbindir!$sbindir$ac_delim
29463 libexecdir!$libexecdir$ac_delim
29464 datarootdir!$datarootdir$ac_delim
29465 datadir!$datadir$ac_delim
29466 sysconfdir!$sysconfdir$ac_delim
29467 sharedstatedir!$sharedstatedir$ac_delim
29468 localstatedir!$localstatedir$ac_delim
29469 includedir!$includedir$ac_delim
29470 oldincludedir!$oldincludedir$ac_delim
29471 docdir!$docdir$ac_delim
29472 infodir!$infodir$ac_delim
29473 htmldir!$htmldir$ac_delim
29474 dvidir!$dvidir$ac_delim
29475 pdfdir!$pdfdir$ac_delim
29476 psdir!$psdir$ac_delim
29477 libdir!$libdir$ac_delim
29478 localedir!$localedir$ac_delim
29479 mandir!$mandir$ac_delim
29480 DEFS!$DEFS$ac_delim
29481 ECHO_C!$ECHO_C$ac_delim
29482 ECHO_N!$ECHO_N$ac_delim
29483 ECHO_T!$ECHO_T$ac_delim
29484 LIBS!$LIBS$ac_delim
29485 build_alias!$build_alias$ac_delim
29486 host_alias!$host_alias$ac_delim
29487 target_alias!$target_alias$ac_delim
29488 build!$build$ac_delim
29489 build_cpu!$build_cpu$ac_delim
29490 build_vendor!$build_vendor$ac_delim
29491 build_os!$build_os$ac_delim
29492 host!$host$ac_delim
29493 host_cpu!$host_cpu$ac_delim
29494 host_vendor!$host_vendor$ac_delim
29495 host_os!$host_os$ac_delim
29496 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
29497 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
29498 INSTALL_DATA!$INSTALL_DATA$ac_delim
29499 CYGPATH_W!$CYGPATH_W$ac_delim
29500 PACKAGE!$PACKAGE$ac_delim
29501 VERSION!$VERSION$ac_delim
29502 ACLOCAL!$ACLOCAL$ac_delim
29503 AUTOCONF!$AUTOCONF$ac_delim
29504 AUTOMAKE!$AUTOMAKE$ac_delim
29505 AUTOHEADER!$AUTOHEADER$ac_delim
29506 MAKEINFO!$MAKEINFO$ac_delim
29507 AMTAR!$AMTAR$ac_delim
29508 install_sh!$install_sh$ac_delim
29509 STRIP!$STRIP$ac_delim
29510 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
29511 mkdir_p!$mkdir_p$ac_delim
29512 AWK!$AWK$ac_delim
29513 SET_MAKE!$SET_MAKE$ac_delim
29514 am__leading_dot!$am__leading_dot$ac_delim
29515 RELEASE!$RELEASE$ac_delim
29516 statedir!$statedir$ac_delim
29517 statduser!$statduser$ac_delim
29518 enable_nfsv3!$enable_nfsv3$ac_delim
29519 IDMAPD!$IDMAPD$ac_delim
29520 enable_nfsv4!$enable_nfsv4$ac_delim
29521 CONFIG_NFSV4_TRUE!$CONFIG_NFSV4_TRUE$ac_delim
29522 CONFIG_NFSV4_FALSE!$CONFIG_NFSV4_FALSE$ac_delim
29523 GSSD!$GSSD$ac_delim
29524 SVCGSSD!$SVCGSSD$ac_delim
29525 enable_gss!$enable_gss$ac_delim
29526 CONFIG_GSS_TRUE!$CONFIG_GSS_TRUE$ac_delim
29527 CONFIG_GSS_FALSE!$CONFIG_GSS_FALSE$ac_delim
29528 kprefix!$kprefix$ac_delim
29529 secure_statd!$secure_statd$ac_delim
29530 CONFIG_RQUOTAD_TRUE!$CONFIG_RQUOTAD_TRUE$ac_delim
29531 CONFIG_RQUOTAD_FALSE!$CONFIG_RQUOTAD_FALSE$ac_delim
29532 CONFIG_MOUNT_TRUE!$CONFIG_MOUNT_TRUE$ac_delim
29533 CONFIG_MOUNT_FALSE!$CONFIG_MOUNT_FALSE$ac_delim
29534 CC!$CC$ac_delim
29535 CFLAGS!$CFLAGS$ac_delim
29536 LDFLAGS!$LDFLAGS$ac_delim
29537 CPPFLAGS!$CPPFLAGS$ac_delim
29538 ac_ct_CC!$ac_ct_CC$ac_delim
29539 EXEEXT!$EXEEXT$ac_delim
29540 OBJEXT!$OBJEXT$ac_delim
29541 DEPDIR!$DEPDIR$ac_delim
29542 am__include!$am__include$ac_delim
29543 am__quote!$am__quote$ac_delim
29544 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
29545 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
29546 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
29547 CCDEPMODE!$CCDEPMODE$ac_delim
29548 _ACEOF
29549
29550   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
29551     break
29552   elif $ac_last_try; then
29553     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
29554 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
29555    { (exit 1); exit 1; }; }
29556   else
29557     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
29558   fi
29559 done
29560
29561 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
29562 if test -n "$ac_eof"; then
29563   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
29564   ac_eof=`expr $ac_eof + 1`
29565 fi
29566
29567 cat >>$CONFIG_STATUS <<_ACEOF
29568 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
29569 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
29570 _ACEOF
29571 sed '
29572 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
29573 s/^/s,@/; s/!/@,|#_!!_#|/
29574 :n
29575 t n
29576 s/'"$ac_delim"'$/,g/; t
29577 s/$/\\/; p
29578 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
29579 ' >>$CONFIG_STATUS <conf$$subs.sed
29580 rm -f conf$$subs.sed
29581 cat >>$CONFIG_STATUS <<_ACEOF
29582 CEOF$ac_eof
29583 _ACEOF
29584
29585
29586 ac_delim='%!_!# '
29587 for ac_last_try in false false false false false :; do
29588   cat >conf$$subs.sed <<_ACEOF
29589 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
29590 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
29591 LIBWRAP!$LIBWRAP$ac_delim
29592 HAVE_LIBWRAP!$HAVE_LIBWRAP$ac_delim
29593 HAVE_TCP_WRAPPER!$HAVE_TCP_WRAPPER$ac_delim
29594 CXX!$CXX$ac_delim
29595 CXXFLAGS!$CXXFLAGS$ac_delim
29596 ac_ct_CXX!$ac_ct_CXX$ac_delim
29597 CXXDEPMODE!$CXXDEPMODE$ac_delim
29598 am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
29599 am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
29600 CPP!$CPP$ac_delim
29601 LN_S!$LN_S$ac_delim
29602 GREP!$GREP$ac_delim
29603 EGREP!$EGREP$ac_delim
29604 ECHO!$ECHO$ac_delim
29605 AR!$AR$ac_delim
29606 RANLIB!$RANLIB$ac_delim
29607 CXXCPP!$CXXCPP$ac_delim
29608 F77!$F77$ac_delim
29609 FFLAGS!$FFLAGS$ac_delim
29610 ac_ct_F77!$ac_ct_F77$ac_delim
29611 LIBTOOL!$LIBTOOL$ac_delim
29612 CC_FOR_BUILD!$CC_FOR_BUILD$ac_delim
29613 LD!$LD$ac_delim
29614 LIBNSL!$LIBNSL$ac_delim
29615 PKG_CONFIG!$PKG_CONFIG$ac_delim
29616 RPCSECGSS_CFLAGS!$RPCSECGSS_CFLAGS$ac_delim
29617 RPCSECGSS_LIBS!$RPCSECGSS_LIBS$ac_delim
29618 GSSAPI_CFLAGS!$GSSAPI_CFLAGS$ac_delim
29619 GSSAPI_LIBS!$GSSAPI_LIBS$ac_delim
29620 LIBSOCKET!$LIBSOCKET$ac_delim
29621 LIBCRYPT!$LIBCRYPT$ac_delim
29622 LIBBSD!$LIBBSD$ac_delim
29623 KRBDIR!$KRBDIR$ac_delim
29624 KRBLIBS!$KRBLIBS$ac_delim
29625 KRBCFLAGS!$KRBCFLAGS$ac_delim
29626 KRBLDFLAGS!$KRBLDFLAGS$ac_delim
29627 K5VERS!$K5VERS$ac_delim
29628 ALLOCA!$ALLOCA$ac_delim
29629 LIB@&t@OBJS!$LIB@&t@OBJS$ac_delim
29630 CFLAGS_FOR_BUILD!$CFLAGS_FOR_BUILD$ac_delim
29631 CXXFLAGS_FOR_BUILD!$CXXFLAGS_FOR_BUILD$ac_delim
29632 CPPFLAGS_FOR_BUILD!$CPPFLAGS_FOR_BUILD$ac_delim
29633 LDFLAGS_FOR_BUILD!$LDFLAGS_FOR_BUILD$ac_delim
29634 AM_CPPFLAGS!$AM_CPPFLAGS$ac_delim
29635 AM_CFLAGS!$AM_CFLAGS$ac_delim
29636 ACLOCAL_AMFLAGS!$ACLOCAL_AMFLAGS$ac_delim
29637 LTLIBOBJS!$LTLIBOBJS$ac_delim
29638 _ACEOF
29639
29640   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 49; then
29641     break
29642   elif $ac_last_try; then
29643     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
29644 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
29645    { (exit 1); exit 1; }; }
29646   else
29647     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
29648   fi
29649 done
29650
29651 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
29652 if test -n "$ac_eof"; then
29653   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
29654   ac_eof=`expr $ac_eof + 1`
29655 fi
29656
29657 cat >>$CONFIG_STATUS <<_ACEOF
29658 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
29659 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
29660 _ACEOF
29661 sed '
29662 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
29663 s/^/s,@/; s/!/@,|#_!!_#|/
29664 :n
29665 t n
29666 s/'"$ac_delim"'$/,g/; t
29667 s/$/\\/; p
29668 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
29669 ' >>$CONFIG_STATUS <conf$$subs.sed
29670 rm -f conf$$subs.sed
29671 cat >>$CONFIG_STATUS <<_ACEOF
29672 :end
29673 s/|#_!!_#|//g
29674 CEOF$ac_eof
29675 _ACEOF
29676
29677
29678 # VPATH may cause trouble with some makes, so we remove $(srcdir),
29679 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
29680 # trailing colons and then remove the whole line if VPATH becomes empty
29681 # (actually we leave an empty line to preserve line numbers).
29682 if test "x$srcdir" = x.; then
29683   ac_vpsub='/^[  ]*VPATH[        ]*=/{
29684 s/:*\$(srcdir):*/:/
29685 s/:*\${srcdir}:*/:/
29686 s/:*@srcdir@:*/:/
29687 s/^\([^=]*=[     ]*\):*/\1/
29688 s/:*$//
29689 s/^[^=]*=[       ]*$//
29690 }'
29691 fi
29692
29693 cat >>$CONFIG_STATUS <<\_ACEOF
29694 fi # test -n "$CONFIG_FILES"
29695
29696
29697 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
29698 do
29699   case $ac_tag in
29700   :[FHLC]) ac_mode=$ac_tag; continue;;
29701   esac
29702   case $ac_mode$ac_tag in
29703   :[FHL]*:*);;
29704   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
29705 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
29706    { (exit 1); exit 1; }; };;
29707   :[FH]-) ac_tag=-:-;;
29708   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
29709   esac
29710   ac_save_IFS=$IFS
29711   IFS=:
29712   set x $ac_tag
29713   IFS=$ac_save_IFS
29714   shift
29715   ac_file=$1
29716   shift
29717
29718   case $ac_mode in
29719   :L) ac_source=$1;;
29720   :[FH])
29721     ac_file_inputs=
29722     for ac_f
29723     do
29724       case $ac_f in
29725       -) ac_f="$tmp/stdin";;
29726       *) # Look for the file first in the build tree, then in the source tree
29727          # (if the path is not absolute).  The absolute path cannot be DOS-style,
29728          # because $ac_f cannot contain `:'.
29729          test -f "$ac_f" ||
29730            case $ac_f in
29731            [\\/$]*) false;;
29732            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
29733            esac ||
29734            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
29735 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
29736    { (exit 1); exit 1; }; };;
29737       esac
29738       ac_file_inputs="$ac_file_inputs $ac_f"
29739     done
29740
29741     # Let's still pretend it is `configure' which instantiates (i.e., don't
29742     # use $as_me), people would be surprised to read:
29743     #    /* config.h.  Generated by config.status.  */
29744     configure_input="Generated from "`IFS=:
29745           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
29746     if test x"$ac_file" != x-; then
29747       configure_input="$ac_file.  $configure_input"
29748       { echo "$as_me:$LINENO: creating $ac_file" >&5
29749 echo "$as_me: creating $ac_file" >&6;}
29750     fi
29751
29752     case $ac_tag in
29753     *:-:* | *:-) cat >"$tmp/stdin";;
29754     esac
29755     ;;
29756   esac
29757
29758   ac_dir=`$as_dirname -- "$ac_file" ||
29759 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29760          X"$ac_file" : 'X\(//\)[^/]' \| \
29761          X"$ac_file" : 'X\(//\)$' \| \
29762          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
29763 echo X"$ac_file" |
29764     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
29765             s//\1/
29766             q
29767           }
29768           /^X\(\/\/\)[^/].*/{
29769             s//\1/
29770             q
29771           }
29772           /^X\(\/\/\)$/{
29773             s//\1/
29774             q
29775           }
29776           /^X\(\/\).*/{
29777             s//\1/
29778             q
29779           }
29780           s/.*/./; q'`
29781   { as_dir="$ac_dir"
29782   case $as_dir in #(
29783   -*) as_dir=./$as_dir;;
29784   esac
29785   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
29786     as_dirs=
29787     while :; do
29788       case $as_dir in #(
29789       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
29790       *) as_qdir=$as_dir;;
29791       esac
29792       as_dirs="'$as_qdir' $as_dirs"
29793       as_dir=`$as_dirname -- "$as_dir" ||
29794 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29795          X"$as_dir" : 'X\(//\)[^/]' \| \
29796          X"$as_dir" : 'X\(//\)$' \| \
29797          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
29798 echo X"$as_dir" |
29799     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
29800             s//\1/
29801             q
29802           }
29803           /^X\(\/\/\)[^/].*/{
29804             s//\1/
29805             q
29806           }
29807           /^X\(\/\/\)$/{
29808             s//\1/
29809             q
29810           }
29811           /^X\(\/\).*/{
29812             s//\1/
29813             q
29814           }
29815           s/.*/./; q'`
29816       test -d "$as_dir" && break
29817     done
29818     test -z "$as_dirs" || eval "mkdir $as_dirs"
29819   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
29820 echo "$as_me: error: cannot create directory $as_dir" >&2;}
29821    { (exit 1); exit 1; }; }; }
29822   ac_builddir=.
29823
29824 case "$ac_dir" in
29825 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
29826 *)
29827   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
29828   # A ".." for each directory in $ac_dir_suffix.
29829   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
29830   case $ac_top_builddir_sub in
29831   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
29832   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
29833   esac ;;
29834 esac
29835 ac_abs_top_builddir=$ac_pwd
29836 ac_abs_builddir=$ac_pwd$ac_dir_suffix
29837 # for backward compatibility:
29838 ac_top_builddir=$ac_top_build_prefix
29839
29840 case $srcdir in
29841   .)  # We are building in place.
29842     ac_srcdir=.
29843     ac_top_srcdir=$ac_top_builddir_sub
29844     ac_abs_top_srcdir=$ac_pwd ;;
29845   [\\/]* | ?:[\\/]* )  # Absolute name.
29846     ac_srcdir=$srcdir$ac_dir_suffix;
29847     ac_top_srcdir=$srcdir
29848     ac_abs_top_srcdir=$srcdir ;;
29849   *) # Relative name.
29850     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
29851     ac_top_srcdir=$ac_top_build_prefix$srcdir
29852     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
29853 esac
29854 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
29855
29856
29857   case $ac_mode in
29858   :F)
29859   #
29860   # CONFIG_FILE
29861   #
29862
29863   case $INSTALL in
29864   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
29865   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
29866   esac
29867 _ACEOF
29868
29869 cat >>$CONFIG_STATUS <<\_ACEOF
29870 # If the template does not know about datarootdir, expand it.
29871 # FIXME: This hack should be removed a few years after 2.60.
29872 ac_datarootdir_hack=; ac_datarootdir_seen=
29873
29874 case `sed -n '/datarootdir/ {
29875   p
29876   q
29877 }
29878 /@datadir@/p
29879 /@docdir@/p
29880 /@infodir@/p
29881 /@localedir@/p
29882 /@mandir@/p
29883 ' $ac_file_inputs` in
29884 *datarootdir*) ac_datarootdir_seen=yes;;
29885 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
29886   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
29887 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
29888 _ACEOF
29889 cat >>$CONFIG_STATUS <<_ACEOF
29890   ac_datarootdir_hack='
29891   s&@datadir@&$datadir&g
29892   s&@docdir@&$docdir&g
29893   s&@infodir@&$infodir&g
29894   s&@localedir@&$localedir&g
29895   s&@mandir@&$mandir&g
29896     s&\\\${datarootdir}&$datarootdir&g' ;;
29897 esac
29898 _ACEOF
29899
29900 # Neutralize VPATH when `$srcdir' = `.'.
29901 # Shell code in configure.ac might set extrasub.
29902 # FIXME: do we really want to maintain this feature?
29903 cat >>$CONFIG_STATUS <<_ACEOF
29904   sed "$ac_vpsub
29905 $extrasub
29906 _ACEOF
29907 cat >>$CONFIG_STATUS <<\_ACEOF
29908 :t
29909 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
29910 s&@configure_input@&$configure_input&;t t
29911 s&@top_builddir@&$ac_top_builddir_sub&;t t
29912 s&@srcdir@&$ac_srcdir&;t t
29913 s&@abs_srcdir@&$ac_abs_srcdir&;t t
29914 s&@top_srcdir@&$ac_top_srcdir&;t t
29915 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
29916 s&@builddir@&$ac_builddir&;t t
29917 s&@abs_builddir@&$ac_abs_builddir&;t t
29918 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
29919 s&@INSTALL@&$ac_INSTALL&;t t
29920 $ac_datarootdir_hack
29921 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
29922
29923 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
29924   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
29925   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
29926   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
29927 which seems to be undefined.  Please make sure it is defined." >&5
29928 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
29929 which seems to be undefined.  Please make sure it is defined." >&2;}
29930
29931   rm -f "$tmp/stdin"
29932   case $ac_file in
29933   -) cat "$tmp/out"; rm -f "$tmp/out";;
29934   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
29935   esac
29936  ;;
29937   :H)
29938   #
29939   # CONFIG_HEADER
29940   #
29941 _ACEOF
29942
29943 # Transform confdefs.h into a sed script `conftest.defines', that
29944 # substitutes the proper values into config.h.in to produce config.h.
29945 rm -f conftest.defines conftest.tail
29946 # First, append a space to every undef/define line, to ease matching.
29947 echo 's/$/ /' >conftest.defines
29948 # Then, protect against being on the right side of a sed subst, or in
29949 # an unquoted here document, in config.status.  If some macros were
29950 # called several times there might be several #defines for the same
29951 # symbol, which is useless.  But do not sort them, since the last
29952 # AC_DEFINE must be honored.
29953 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
29954 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
29955 # NAME is the cpp macro being defined, VALUE is the value it is being given.
29956 # PARAMS is the parameter list in the macro definition--in most cases, it's
29957 # just an empty string.
29958 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
29959 ac_dB='\\)[      (].*,\\1define\\2'
29960 ac_dC=' '
29961 ac_dD=' ,'
29962
29963 uniq confdefs.h |
29964   sed -n '
29965         t rset
29966         :rset
29967         s/^[     ]*#[    ]*define[       ][      ]*//
29968         t ok
29969         d
29970         :ok
29971         s/[\\&,]/\\&/g
29972         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
29973         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
29974   ' >>conftest.defines
29975
29976 # Remove the space that was appended to ease matching.
29977 # Then replace #undef with comments.  This is necessary, for
29978 # example, in the case of _POSIX_SOURCE, which is predefined and required
29979 # on some systems where configure will not decide to define it.
29980 # (The regexp can be short, since the line contains either #define or #undef.)
29981 echo 's/ $//
29982 s,^[     #]*u.*,/* & */,' >>conftest.defines
29983
29984 # Break up conftest.defines:
29985 ac_max_sed_lines=50
29986
29987 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
29988 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
29989 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
29990 # et cetera.
29991 ac_in='$ac_file_inputs'
29992 ac_out='"$tmp/out1"'
29993 ac_nxt='"$tmp/out2"'
29994
29995 while :
29996 do
29997   # Write a here document:
29998     cat >>$CONFIG_STATUS <<_ACEOF
29999     # First, check the format of the line:
30000     cat >"\$tmp/defines.sed" <<\\CEOF
30001 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
30002 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
30003 b
30004 :def
30005 _ACEOF
30006   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
30007   echo 'CEOF
30008     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
30009   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
30010   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
30011   grep . conftest.tail >/dev/null || break
30012   rm -f conftest.defines
30013   mv conftest.tail conftest.defines
30014 done
30015 rm -f conftest.defines conftest.tail
30016
30017 echo "ac_result=$ac_in" >>$CONFIG_STATUS
30018 cat >>$CONFIG_STATUS <<\_ACEOF
30019   if test x"$ac_file" != x-; then
30020     echo "/* $configure_input  */" >"$tmp/config.h"
30021     cat "$ac_result" >>"$tmp/config.h"
30022     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
30023       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
30024 echo "$as_me: $ac_file is unchanged" >&6;}
30025     else
30026       rm -f $ac_file
30027       mv "$tmp/config.h" $ac_file
30028     fi
30029   else
30030     echo "/* $configure_input  */"
30031     cat "$ac_result"
30032   fi
30033   rm -f "$tmp/out12"
30034 # Compute $ac_file's index in $config_headers.
30035 _am_stamp_count=1
30036 for _am_header in $config_headers :; do
30037   case $_am_header in
30038     $ac_file | $ac_file:* )
30039       break ;;
30040     * )
30041       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
30042   esac
30043 done
30044 echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
30045 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30046          X$ac_file : 'X\(//\)[^/]' \| \
30047          X$ac_file : 'X\(//\)$' \| \
30048          X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
30049 echo X$ac_file |
30050     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30051             s//\1/
30052             q
30053           }
30054           /^X\(\/\/\)[^/].*/{
30055             s//\1/
30056             q
30057           }
30058           /^X\(\/\/\)$/{
30059             s//\1/
30060             q
30061           }
30062           /^X\(\/\).*/{
30063             s//\1/
30064             q
30065           }
30066           s/.*/./; q'`/stamp-h$_am_stamp_count
30067  ;;
30068   
30069   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
30070 echo "$as_me: executing $ac_file commands" >&6;}
30071  ;;
30072   esac
30073
30074
30075   case $ac_file$ac_mode in
30076     "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
30077   # Strip MF so we end up with the name of the file.
30078   mf=`echo "$mf" | sed -e 's/:.*$//'`
30079   # Check whether this is an Automake generated Makefile or not.
30080   # We used to match only the files named `Makefile.in', but
30081   # some people rename them; so instead we look at the file content.
30082   # Grep'ing the first line is not enough: some people post-process
30083   # each Makefile.in and add a new line on top of each file to say so.
30084   # So let's grep whole file.
30085   if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
30086     dirpart=`$as_dirname -- "$mf" ||
30087 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30088          X"$mf" : 'X\(//\)[^/]' \| \
30089          X"$mf" : 'X\(//\)$' \| \
30090          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
30091 echo X"$mf" |
30092     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30093             s//\1/
30094             q
30095           }
30096           /^X\(\/\/\)[^/].*/{
30097             s//\1/
30098             q
30099           }
30100           /^X\(\/\/\)$/{
30101             s//\1/
30102             q
30103           }
30104           /^X\(\/\).*/{
30105             s//\1/
30106             q
30107           }
30108           s/.*/./; q'`
30109   else
30110     continue
30111   fi
30112   grep '^DEP_FILES *= *[^ @%:@]' < "$mf" > /dev/null || continue
30113   # Extract the definition of DEP_FILES from the Makefile without
30114   # running `make'.
30115   DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
30116   test -z "$DEPDIR" && continue
30117   # When using ansi2knr, U may be empty or an underscore; expand it
30118   U=`sed -n 's/^U = //p' < "$mf"`
30119   test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
30120   # We invoke sed twice because it is the simplest approach to
30121   # changing $(DEPDIR) to its actual value in the expansion.
30122   for file in `sed -n '
30123     /^DEP_FILES = .*\\\\$/ {
30124       s/^DEP_FILES = //
30125       :loop
30126         s/\\\\$//
30127         p
30128         n
30129         /\\\\$/ b loop
30130       p
30131     }
30132     /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
30133        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
30134     # Make sure the directory exists.
30135     test -f "$dirpart/$file" && continue
30136     fdir=`$as_dirname -- "$file" ||
30137 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30138          X"$file" : 'X\(//\)[^/]' \| \
30139          X"$file" : 'X\(//\)$' \| \
30140          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
30141 echo X"$file" |
30142     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30143             s//\1/
30144             q
30145           }
30146           /^X\(\/\/\)[^/].*/{
30147             s//\1/
30148             q
30149           }
30150           /^X\(\/\/\)$/{
30151             s//\1/
30152             q
30153           }
30154           /^X\(\/\).*/{
30155             s//\1/
30156             q
30157           }
30158           s/.*/./; q'`
30159     { as_dir=$dirpart/$fdir
30160   case $as_dir in #(
30161   -*) as_dir=./$as_dir;;
30162   esac
30163   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
30164     as_dirs=
30165     while :; do
30166       case $as_dir in #(
30167       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
30168       *) as_qdir=$as_dir;;
30169       esac
30170       as_dirs="'$as_qdir' $as_dirs"
30171       as_dir=`$as_dirname -- "$as_dir" ||
30172 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30173          X"$as_dir" : 'X\(//\)[^/]' \| \
30174          X"$as_dir" : 'X\(//\)$' \| \
30175          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
30176 echo X"$as_dir" |
30177     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30178             s//\1/
30179             q
30180           }
30181           /^X\(\/\/\)[^/].*/{
30182             s//\1/
30183             q
30184           }
30185           /^X\(\/\/\)$/{
30186             s//\1/
30187             q
30188           }
30189           /^X\(\/\).*/{
30190             s//\1/
30191             q
30192           }
30193           s/.*/./; q'`
30194       test -d "$as_dir" && break
30195     done
30196     test -z "$as_dirs" || eval "mkdir $as_dirs"
30197   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
30198 echo "$as_me: error: cannot create directory $as_dir" >&2;}
30199    { (exit 1); exit 1; }; }; }
30200     # echo "creating $dirpart/$file"
30201     echo '# dummy' > "$dirpart/$file"
30202   done
30203 done
30204  ;;
30205
30206   esac
30207 done # for ac_tag
30208
30209
30210 { (exit 0); exit 0; }
30211 _ACEOF
30212 chmod +x $CONFIG_STATUS
30213 ac_clean_files=$ac_clean_files_save
30214
30215
30216 # configure is writing to config.log, and then calls config.status.
30217 # config.status does its own redirection, appending to config.log.
30218 # Unfortunately, on DOS this fails, as config.log is still kept open
30219 # by configure, so config.status won't be able to write to it; its
30220 # output is simply discarded.  So we exec the FD to /dev/null,
30221 # effectively closing config.log, so it can be properly (re)opened and
30222 # appended to by config.status.  When coming back to configure, we
30223 # need to make the FD available again.
30224 if test "$no_create" != yes; then
30225   ac_cs_success=:
30226   ac_config_status_args=
30227   test "$silent" = yes &&
30228     ac_config_status_args="$ac_config_status_args --quiet"
30229   exec 5>/dev/null
30230   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
30231   exec 5>>config.log
30232   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
30233   # would make configure fail if this is the last instruction.
30234   $ac_cs_success || { (exit 1); exit 1; }
30235 fi
30236
30237