]> git.decadent.org.uk Git - nfs-utils.git/blob - configure
Imported Upstream version 1.1.2
[nfs-utils.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61 for linux nfs-utils 1.1.2.
4 #
5 # Report bugs to <linux-nfs@vger.kernel.org>.
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 LIBOBJS=
722 cross_compiling=no
723 subdirs=
724 MFLAGS=
725 MAKEFLAGS=
726 SHELL=${CONFIG_SHELL-/bin/sh}
727
728 # Identity of this package.
729 PACKAGE_NAME='linux nfs-utils'
730 PACKAGE_TARNAME='nfs-utils'
731 PACKAGE_VERSION='1.1.2'
732 PACKAGE_STRING='linux nfs-utils 1.1.2'
733 PACKAGE_BUGREPORT='linux-nfs@vger.kernel.org'
734
735 ac_default_prefix=/usr
736 ac_unique_file="support/include/config.h.in"
737 # Factoring default headers for most tests.
738 ac_includes_default="\
739 #include <stdio.h>
740 #ifdef HAVE_SYS_TYPES_H
741 # include <sys/types.h>
742 #endif
743 #ifdef HAVE_SYS_STAT_H
744 # include <sys/stat.h>
745 #endif
746 #ifdef STDC_HEADERS
747 # include <stdlib.h>
748 # include <stddef.h>
749 #else
750 # ifdef HAVE_STDLIB_H
751 #  include <stdlib.h>
752 # endif
753 #endif
754 #ifdef HAVE_STRING_H
755 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
756 #  include <memory.h>
757 # endif
758 # include <string.h>
759 #endif
760 #ifdef HAVE_STRINGS_H
761 # include <strings.h>
762 #endif
763 #ifdef HAVE_INTTYPES_H
764 # include <inttypes.h>
765 #endif
766 #ifdef HAVE_STDINT_H
767 # include <stdint.h>
768 #endif
769 #ifdef HAVE_UNISTD_H
770 # include <unistd.h>
771 #endif"
772
773 ac_subst_vars='SHELL
774 PATH_SEPARATOR
775 PACKAGE_NAME
776 PACKAGE_TARNAME
777 PACKAGE_VERSION
778 PACKAGE_STRING
779 PACKAGE_BUGREPORT
780 exec_prefix
781 prefix
782 program_transform_name
783 bindir
784 sbindir
785 libexecdir
786 datarootdir
787 datadir
788 sysconfdir
789 sharedstatedir
790 localstatedir
791 includedir
792 oldincludedir
793 docdir
794 infodir
795 htmldir
796 dvidir
797 pdfdir
798 psdir
799 libdir
800 localedir
801 mandir
802 DEFS
803 ECHO_C
804 ECHO_N
805 ECHO_T
806 LIBS
807 build_alias
808 host_alias
809 target_alias
810 build
811 build_cpu
812 build_vendor
813 build_os
814 host
815 host_cpu
816 host_vendor
817 host_os
818 INSTALL_PROGRAM
819 INSTALL_SCRIPT
820 INSTALL_DATA
821 am__isrc
822 CYGPATH_W
823 PACKAGE
824 VERSION
825 ACLOCAL
826 AUTOCONF
827 AUTOMAKE
828 AUTOHEADER
829 MAKEINFO
830 install_sh
831 STRIP
832 INSTALL_STRIP_PROGRAM
833 mkdir_p
834 AWK
835 SET_MAKE
836 am__leading_dot
837 AMTAR
838 am__tar
839 am__untar
840 MAINTAINER_MODE_TRUE
841 MAINTAINER_MODE_FALSE
842 MAINT
843 RELEASE
844 statedir
845 statduser
846 startstatd
847 enable_nfsv3
848 IDMAPD
849 enable_nfsv4
850 CONFIG_NFSV4_TRUE
851 CONFIG_NFSV4_FALSE
852 GSSD
853 SVCGSSD
854 enable_gss
855 CONFIG_GSS_TRUE
856 CONFIG_GSS_FALSE
857 kprefix
858 secure_statd
859 RPCGEN_PATH
860 CONFIG_RPCGEN_TRUE
861 CONFIG_RPCGEN_FALSE
862 CONFIG_MOUNT_TRUE
863 CONFIG_MOUNT_FALSE
864 CC
865 CFLAGS
866 LDFLAGS
867 CPPFLAGS
868 ac_ct_CC
869 EXEEXT
870 OBJEXT
871 DEPDIR
872 am__include
873 am__quote
874 AMDEP_TRUE
875 AMDEP_FALSE
876 AMDEPBACKSLASH
877 CCDEPMODE
878 am__fastdepCC_TRUE
879 am__fastdepCC_FALSE
880 LIBWRAP
881 HAVE_LIBWRAP
882 HAVE_TCP_WRAPPER
883 CXX
884 CXXFLAGS
885 ac_ct_CXX
886 CXXDEPMODE
887 am__fastdepCXX_TRUE
888 am__fastdepCXX_FALSE
889 CPP
890 LN_S
891 SED
892 GREP
893 EGREP
894 ECHO
895 AR
896 RANLIB
897 CXXCPP
898 F77
899 FFLAGS
900 ac_ct_F77
901 LIBTOOL
902 CC_FOR_BUILD
903 LD
904 LIBNSL
905 PKG_CONFIG
906 RPCSECGSS_CFLAGS
907 RPCSECGSS_LIBS
908 GSSGLUE_CFLAGS
909 GSSGLUE_LIBS
910 LIBSOCKET
911 LIBCRYPT
912 LIBBSD
913 LIBBLKID
914 KRBDIR
915 KRBLIBS
916 KRBCFLAGS
917 KRBLDFLAGS
918 K5VERS
919 ALLOCA
920 LIBOBJS
921 CFLAGS_FOR_BUILD
922 CXXFLAGS_FOR_BUILD
923 CPPFLAGS_FOR_BUILD
924 LDFLAGS_FOR_BUILD
925 AM_CPPFLAGS
926 AM_CFLAGS
927 ACLOCAL_AMFLAGS
928 LTLIBOBJS'
929 ac_subst_files=''
930       ac_precious_vars='build_alias
931 host_alias
932 target_alias
933 CC
934 CFLAGS
935 LDFLAGS
936 LIBS
937 CPPFLAGS
938 CXX
939 CXXFLAGS
940 CCC
941 CPP
942 CXXCPP
943 F77
944 FFLAGS
945 PKG_CONFIG
946 RPCSECGSS_CFLAGS
947 RPCSECGSS_LIBS
948 GSSGLUE_CFLAGS
949 GSSGLUE_LIBS'
950
951
952 # Initialize some variables set by options.
953 ac_init_help=
954 ac_init_version=false
955 # The variables have the same names as the options, with
956 # dashes changed to underlines.
957 cache_file=/dev/null
958 exec_prefix=NONE
959 no_create=
960 no_recursion=
961 prefix=NONE
962 program_prefix=NONE
963 program_suffix=NONE
964 program_transform_name=s,x,x,
965 silent=
966 site=
967 srcdir=
968 verbose=
969 x_includes=NONE
970 x_libraries=NONE
971
972 # Installation directory options.
973 # These are left unexpanded so users can "make install exec_prefix=/foo"
974 # and all the variables that are supposed to be based on exec_prefix
975 # by default will actually change.
976 # Use braces instead of parens because sh, perl, etc. also accept them.
977 # (The list follows the same order as the GNU Coding Standards.)
978 bindir='${exec_prefix}/bin'
979 sbindir='${exec_prefix}/sbin'
980 libexecdir='${exec_prefix}/libexec'
981 datarootdir='${prefix}/share'
982 datadir='${datarootdir}'
983 sysconfdir='${prefix}/etc'
984 sharedstatedir='${prefix}/com'
985 localstatedir='${prefix}/var'
986 includedir='${prefix}/include'
987 oldincludedir='/usr/include'
988 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
989 infodir='${datarootdir}/info'
990 htmldir='${docdir}'
991 dvidir='${docdir}'
992 pdfdir='${docdir}'
993 psdir='${docdir}'
994 libdir='${exec_prefix}/lib'
995 localedir='${datarootdir}/locale'
996 mandir='${datarootdir}/man'
997
998 ac_prev=
999 ac_dashdash=
1000 for ac_option
1001 do
1002   # If the previous option needs an argument, assign it.
1003   if test -n "$ac_prev"; then
1004     eval $ac_prev=\$ac_option
1005     ac_prev=
1006     continue
1007   fi
1008
1009   case $ac_option in
1010   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1011   *)    ac_optarg=yes ;;
1012   esac
1013
1014   # Accept the important Cygnus configure options, so we can diagnose typos.
1015
1016   case $ac_dashdash$ac_option in
1017   --)
1018     ac_dashdash=yes ;;
1019
1020   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1021     ac_prev=bindir ;;
1022   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1023     bindir=$ac_optarg ;;
1024
1025   -build | --build | --buil | --bui | --bu)
1026     ac_prev=build_alias ;;
1027   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1028     build_alias=$ac_optarg ;;
1029
1030   -cache-file | --cache-file | --cache-fil | --cache-fi \
1031   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1032     ac_prev=cache_file ;;
1033   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1034   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1035     cache_file=$ac_optarg ;;
1036
1037   --config-cache | -C)
1038     cache_file=config.cache ;;
1039
1040   -datadir | --datadir | --datadi | --datad)
1041     ac_prev=datadir ;;
1042   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1043     datadir=$ac_optarg ;;
1044
1045   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1046   | --dataroo | --dataro | --datar)
1047     ac_prev=datarootdir ;;
1048   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1049   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1050     datarootdir=$ac_optarg ;;
1051
1052   -disable-* | --disable-*)
1053     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1054     # Reject names that are not valid shell variable names.
1055     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1056       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1057    { (exit 1); exit 1; }; }
1058     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1059     eval enable_$ac_feature=no ;;
1060
1061   -docdir | --docdir | --docdi | --doc | --do)
1062     ac_prev=docdir ;;
1063   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1064     docdir=$ac_optarg ;;
1065
1066   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1067     ac_prev=dvidir ;;
1068   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1069     dvidir=$ac_optarg ;;
1070
1071   -enable-* | --enable-*)
1072     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1073     # Reject names that are not valid shell variable names.
1074     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1075       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1076    { (exit 1); exit 1; }; }
1077     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1078     eval enable_$ac_feature=\$ac_optarg ;;
1079
1080   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1081   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1082   | --exec | --exe | --ex)
1083     ac_prev=exec_prefix ;;
1084   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1085   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1086   | --exec=* | --exe=* | --ex=*)
1087     exec_prefix=$ac_optarg ;;
1088
1089   -gas | --gas | --ga | --g)
1090     # Obsolete; use --with-gas.
1091     with_gas=yes ;;
1092
1093   -help | --help | --hel | --he | -h)
1094     ac_init_help=long ;;
1095   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1096     ac_init_help=recursive ;;
1097   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1098     ac_init_help=short ;;
1099
1100   -host | --host | --hos | --ho)
1101     ac_prev=host_alias ;;
1102   -host=* | --host=* | --hos=* | --ho=*)
1103     host_alias=$ac_optarg ;;
1104
1105   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1106     ac_prev=htmldir ;;
1107   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1108   | --ht=*)
1109     htmldir=$ac_optarg ;;
1110
1111   -includedir | --includedir | --includedi | --included | --include \
1112   | --includ | --inclu | --incl | --inc)
1113     ac_prev=includedir ;;
1114   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1115   | --includ=* | --inclu=* | --incl=* | --inc=*)
1116     includedir=$ac_optarg ;;
1117
1118   -infodir | --infodir | --infodi | --infod | --info | --inf)
1119     ac_prev=infodir ;;
1120   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1121     infodir=$ac_optarg ;;
1122
1123   -libdir | --libdir | --libdi | --libd)
1124     ac_prev=libdir ;;
1125   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1126     libdir=$ac_optarg ;;
1127
1128   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1129   | --libexe | --libex | --libe)
1130     ac_prev=libexecdir ;;
1131   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1132   | --libexe=* | --libex=* | --libe=*)
1133     libexecdir=$ac_optarg ;;
1134
1135   -localedir | --localedir | --localedi | --localed | --locale)
1136     ac_prev=localedir ;;
1137   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1138     localedir=$ac_optarg ;;
1139
1140   -localstatedir | --localstatedir | --localstatedi | --localstated \
1141   | --localstate | --localstat | --localsta | --localst | --locals)
1142     ac_prev=localstatedir ;;
1143   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1144   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1145     localstatedir=$ac_optarg ;;
1146
1147   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1148     ac_prev=mandir ;;
1149   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1150     mandir=$ac_optarg ;;
1151
1152   -nfp | --nfp | --nf)
1153     # Obsolete; use --without-fp.
1154     with_fp=no ;;
1155
1156   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1157   | --no-cr | --no-c | -n)
1158     no_create=yes ;;
1159
1160   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1161   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1162     no_recursion=yes ;;
1163
1164   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1165   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1166   | --oldin | --oldi | --old | --ol | --o)
1167     ac_prev=oldincludedir ;;
1168   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1169   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1170   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1171     oldincludedir=$ac_optarg ;;
1172
1173   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1174     ac_prev=prefix ;;
1175   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1176     prefix=$ac_optarg ;;
1177
1178   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1179   | --program-pre | --program-pr | --program-p)
1180     ac_prev=program_prefix ;;
1181   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1182   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1183     program_prefix=$ac_optarg ;;
1184
1185   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1186   | --program-suf | --program-su | --program-s)
1187     ac_prev=program_suffix ;;
1188   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1189   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1190     program_suffix=$ac_optarg ;;
1191
1192   -program-transform-name | --program-transform-name \
1193   | --program-transform-nam | --program-transform-na \
1194   | --program-transform-n | --program-transform- \
1195   | --program-transform | --program-transfor \
1196   | --program-transfo | --program-transf \
1197   | --program-trans | --program-tran \
1198   | --progr-tra | --program-tr | --program-t)
1199     ac_prev=program_transform_name ;;
1200   -program-transform-name=* | --program-transform-name=* \
1201   | --program-transform-nam=* | --program-transform-na=* \
1202   | --program-transform-n=* | --program-transform-=* \
1203   | --program-transform=* | --program-transfor=* \
1204   | --program-transfo=* | --program-transf=* \
1205   | --program-trans=* | --program-tran=* \
1206   | --progr-tra=* | --program-tr=* | --program-t=*)
1207     program_transform_name=$ac_optarg ;;
1208
1209   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1210     ac_prev=pdfdir ;;
1211   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1212     pdfdir=$ac_optarg ;;
1213
1214   -psdir | --psdir | --psdi | --psd | --ps)
1215     ac_prev=psdir ;;
1216   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1217     psdir=$ac_optarg ;;
1218
1219   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1220   | -silent | --silent | --silen | --sile | --sil)
1221     silent=yes ;;
1222
1223   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1224     ac_prev=sbindir ;;
1225   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1226   | --sbi=* | --sb=*)
1227     sbindir=$ac_optarg ;;
1228
1229   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1230   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1231   | --sharedst | --shareds | --shared | --share | --shar \
1232   | --sha | --sh)
1233     ac_prev=sharedstatedir ;;
1234   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1235   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1236   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1237   | --sha=* | --sh=*)
1238     sharedstatedir=$ac_optarg ;;
1239
1240   -site | --site | --sit)
1241     ac_prev=site ;;
1242   -site=* | --site=* | --sit=*)
1243     site=$ac_optarg ;;
1244
1245   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1246     ac_prev=srcdir ;;
1247   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1248     srcdir=$ac_optarg ;;
1249
1250   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1251   | --syscon | --sysco | --sysc | --sys | --sy)
1252     ac_prev=sysconfdir ;;
1253   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1254   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1255     sysconfdir=$ac_optarg ;;
1256
1257   -target | --target | --targe | --targ | --tar | --ta | --t)
1258     ac_prev=target_alias ;;
1259   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1260     target_alias=$ac_optarg ;;
1261
1262   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1263     verbose=yes ;;
1264
1265   -version | --version | --versio | --versi | --vers | -V)
1266     ac_init_version=: ;;
1267
1268   -with-* | --with-*)
1269     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
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=\$ac_optarg ;;
1276
1277   -without-* | --without-*)
1278     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1279     # Reject names that are not valid shell variable names.
1280     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1281       { echo "$as_me: error: invalid package name: $ac_package" >&2
1282    { (exit 1); exit 1; }; }
1283     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1284     eval with_$ac_package=no ;;
1285
1286   --x)
1287     # Obsolete; use --with-x.
1288     with_x=yes ;;
1289
1290   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1291   | --x-incl | --x-inc | --x-in | --x-i)
1292     ac_prev=x_includes ;;
1293   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1294   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1295     x_includes=$ac_optarg ;;
1296
1297   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1298   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1299     ac_prev=x_libraries ;;
1300   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1301   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1302     x_libraries=$ac_optarg ;;
1303
1304   -*) { echo "$as_me: error: unrecognized option: $ac_option
1305 Try \`$0 --help' for more information." >&2
1306    { (exit 1); exit 1; }; }
1307     ;;
1308
1309   *=*)
1310     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1311     # Reject names that are not valid shell variable names.
1312     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1313       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1314    { (exit 1); exit 1; }; }
1315     eval $ac_envvar=\$ac_optarg
1316     export $ac_envvar ;;
1317
1318   *)
1319     # FIXME: should be removed in autoconf 3.0.
1320     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1321     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1322       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1323     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1324     ;;
1325
1326   esac
1327 done
1328
1329 if test -n "$ac_prev"; then
1330   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1331   { echo "$as_me: error: missing argument to $ac_option" >&2
1332    { (exit 1); exit 1; }; }
1333 fi
1334
1335 # Be sure to have absolute directory names.
1336 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1337                 datadir sysconfdir sharedstatedir localstatedir includedir \
1338                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1339                 libdir localedir mandir
1340 do
1341   eval ac_val=\$$ac_var
1342   case $ac_val in
1343     [\\/$]* | ?:[\\/]* )  continue;;
1344     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1345   esac
1346   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1347    { (exit 1); exit 1; }; }
1348 done
1349
1350 # There might be people who depend on the old broken behavior: `$host'
1351 # used to hold the argument of --host etc.
1352 # FIXME: To remove some day.
1353 build=$build_alias
1354 host=$host_alias
1355 target=$target_alias
1356
1357 # FIXME: To remove some day.
1358 if test "x$host_alias" != x; then
1359   if test "x$build_alias" = x; then
1360     cross_compiling=maybe
1361     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1362     If a cross compiler is detected then cross compile mode will be used." >&2
1363   elif test "x$build_alias" != "x$host_alias"; then
1364     cross_compiling=yes
1365   fi
1366 fi
1367
1368 ac_tool_prefix=
1369 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1370
1371 test "$silent" = yes && exec 6>/dev/null
1372
1373
1374 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1375 ac_ls_di=`ls -di .` &&
1376 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1377   { echo "$as_me: error: Working directory cannot be determined" >&2
1378    { (exit 1); exit 1; }; }
1379 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1380   { echo "$as_me: error: pwd does not report name of working directory" >&2
1381    { (exit 1); exit 1; }; }
1382
1383
1384 # Find the source files, if location was not specified.
1385 if test -z "$srcdir"; then
1386   ac_srcdir_defaulted=yes
1387   # Try the directory containing this script, then the parent directory.
1388   ac_confdir=`$as_dirname -- "$0" ||
1389 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1390          X"$0" : 'X\(//\)[^/]' \| \
1391          X"$0" : 'X\(//\)$' \| \
1392          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1393 echo X"$0" |
1394     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1395             s//\1/
1396             q
1397           }
1398           /^X\(\/\/\)[^/].*/{
1399             s//\1/
1400             q
1401           }
1402           /^X\(\/\/\)$/{
1403             s//\1/
1404             q
1405           }
1406           /^X\(\/\).*/{
1407             s//\1/
1408             q
1409           }
1410           s/.*/./; q'`
1411   srcdir=$ac_confdir
1412   if test ! -r "$srcdir/$ac_unique_file"; then
1413     srcdir=..
1414   fi
1415 else
1416   ac_srcdir_defaulted=no
1417 fi
1418 if test ! -r "$srcdir/$ac_unique_file"; then
1419   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1420   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1421    { (exit 1); exit 1; }; }
1422 fi
1423 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1424 ac_abs_confdir=`(
1425         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1426    { (exit 1); exit 1; }; }
1427         pwd)`
1428 # When building in place, set srcdir=.
1429 if test "$ac_abs_confdir" = "$ac_pwd"; then
1430   srcdir=.
1431 fi
1432 # Remove unnecessary trailing slashes from srcdir.
1433 # Double slashes in file names in object file debugging info
1434 # mess up M-x gdb in Emacs.
1435 case $srcdir in
1436 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1437 esac
1438 for ac_var in $ac_precious_vars; do
1439   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1440   eval ac_env_${ac_var}_value=\$${ac_var}
1441   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1442   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1443 done
1444
1445 #
1446 # Report the --help message.
1447 #
1448 if test "$ac_init_help" = "long"; then
1449   # Omit some internal or obsolete options to make the list less imposing.
1450   # This message is too long to be a string in the A/UX 3.1 sh.
1451   cat <<_ACEOF
1452 \`configure' configures linux nfs-utils 1.1.2 to adapt to many kinds of systems.
1453
1454 Usage: $0 [OPTION]... [VAR=VALUE]...
1455
1456 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1457 VAR=VALUE.  See below for descriptions of some of the useful variables.
1458
1459 Defaults for the options are specified in brackets.
1460
1461 Configuration:
1462   -h, --help              display this help and exit
1463       --help=short        display options specific to this package
1464       --help=recursive    display the short help of all the included packages
1465   -V, --version           display version information and exit
1466   -q, --quiet, --silent   do not print \`checking...' messages
1467       --cache-file=FILE   cache test results in FILE [disabled]
1468   -C, --config-cache      alias for \`--cache-file=config.cache'
1469   -n, --no-create         do not create output files
1470       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1471
1472 Installation directories:
1473   --prefix=PREFIX         install architecture-independent files in PREFIX
1474                           [$ac_default_prefix]
1475   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1476                           [PREFIX]
1477
1478 By default, \`make install' will install all the files in
1479 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1480 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1481 for instance \`--prefix=\$HOME'.
1482
1483 For better control, use the options below.
1484
1485 Fine tuning of the installation directories:
1486   --bindir=DIR           user executables [EPREFIX/bin]
1487   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1488   --libexecdir=DIR       program executables [EPREFIX/libexec]
1489   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1490   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1491   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1492   --libdir=DIR           object code libraries [EPREFIX/lib]
1493   --includedir=DIR       C header files [PREFIX/include]
1494   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1495   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1496   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1497   --infodir=DIR          info documentation [DATAROOTDIR/info]
1498   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1499   --mandir=DIR           man documentation [DATAROOTDIR/man]
1500   --docdir=DIR           documentation root [DATAROOTDIR/doc/nfs-utils]
1501   --htmldir=DIR          html documentation [DOCDIR]
1502   --dvidir=DIR           dvi documentation [DOCDIR]
1503   --pdfdir=DIR           pdf documentation [DOCDIR]
1504   --psdir=DIR            ps documentation [DOCDIR]
1505 _ACEOF
1506
1507   cat <<\_ACEOF
1508
1509 Program names:
1510   --program-prefix=PREFIX            prepend PREFIX to installed program names
1511   --program-suffix=SUFFIX            append SUFFIX to installed program names
1512   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1513
1514 System types:
1515   --build=BUILD     configure for building on BUILD [guessed]
1516   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1517 _ACEOF
1518 fi
1519
1520 if test -n "$ac_init_help"; then
1521   case $ac_init_help in
1522      short | recursive ) echo "Configuration of linux nfs-utils 1.1.2:";;
1523    esac
1524   cat <<\_ACEOF
1525
1526 Optional Features:
1527   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1528   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1529   --enable-maintainer-mode  enable make rules and dependencies not useful
1530                           (and sometimes confusing) to the casual installer
1531   --enable-nfsv3          enable support for NFSv3 [default=yes]
1532   --enable-nfsv4          enable support for NFSv4 [default=yes]
1533   --enable-gss            enable support for rpcsec_gss [default=yes]
1534   --enable-kprefix        install progs as rpc.knfsd etc
1535   --enable-secure-statd   Only lockd can use statd (security)
1536   --without-uuid          Exclude uuid support and so avoid possibly buggy
1537                           libblkid
1538   --enable-mount          Create mount.nfs and don't use the util-linux
1539                           mount(8) functionality. [default=yes]
1540   --disable-dependency-tracking  speeds up one-time build
1541   --enable-dependency-tracking   do not reject slow dependency extractors
1542   --disable-largefile     omit support for large files
1543   --enable-shared[=PKGS]  build shared libraries [default=yes]
1544   --enable-static[=PKGS]  build static libraries [default=yes]
1545   --enable-fast-install[=PKGS]
1546                           optimize for fast installation [default=yes]
1547   --disable-libtool-lock  avoid locking (might break parallel builds)
1548
1549 Optional Packages:
1550   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1551   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1552   --with-release=XXX      set release to XXX [1]
1553   --with-statedir=/foo    use state dir /foo /var/lib/nfs
1554   --with-statduser=rpcuser
1555                           statd to run under [rpcuser or nobody]
1556   --with-start-statd=scriptname
1557                           When an nfs filesystems is mounted with locking, run
1558                           this script
1559   --with-rpcgen=internal  use internal rpcgen instead of system one
1560   --with-tcp-wrappers[=PATH]      Enable tcpwrappers support
1561                  (optionally in PATH)
1562   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1563   --with-pic              try to use only PIC/non-PIC objects [default=use
1564                           both]
1565   --with-tags[=TAGS]      include additional configurations [automatic]
1566   --with-krb5=DIR         use Kerberos v5 installation in DIR
1567
1568 Some influential environment variables:
1569   CC          C compiler command
1570   CFLAGS      C compiler flags
1571   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1572               nonstandard directory <lib dir>
1573   LIBS        libraries to pass to the linker, e.g. -l<library>
1574   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1575               you have headers in a nonstandard directory <include dir>
1576   CXX         C++ compiler command
1577   CXXFLAGS    C++ compiler flags
1578   CPP         C preprocessor
1579   CXXCPP      C++ preprocessor
1580   F77         Fortran 77 compiler command
1581   FFLAGS      Fortran 77 compiler flags
1582   PKG_CONFIG  path to pkg-config utility
1583   RPCSECGSS_CFLAGS
1584               C compiler flags for RPCSECGSS, overriding pkg-config
1585   RPCSECGSS_LIBS
1586               linker flags for RPCSECGSS, overriding pkg-config
1587   GSSGLUE_CFLAGS
1588               C compiler flags for GSSGLUE, overriding pkg-config
1589   GSSGLUE_LIBS
1590               linker flags for GSSGLUE, overriding pkg-config
1591
1592 Use these variables to override the choices made by `configure' or to help
1593 it to find libraries and programs with nonstandard names/locations.
1594
1595 Report bugs to <linux-nfs@vger.kernel.org>.
1596 _ACEOF
1597 ac_status=$?
1598 fi
1599
1600 if test "$ac_init_help" = "recursive"; then
1601   # If there are subdirs, report their specific --help.
1602   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1603     test -d "$ac_dir" || continue
1604     ac_builddir=.
1605
1606 case "$ac_dir" in
1607 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1608 *)
1609   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1610   # A ".." for each directory in $ac_dir_suffix.
1611   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1612   case $ac_top_builddir_sub in
1613   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1614   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1615   esac ;;
1616 esac
1617 ac_abs_top_builddir=$ac_pwd
1618 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1619 # for backward compatibility:
1620 ac_top_builddir=$ac_top_build_prefix
1621
1622 case $srcdir in
1623   .)  # We are building in place.
1624     ac_srcdir=.
1625     ac_top_srcdir=$ac_top_builddir_sub
1626     ac_abs_top_srcdir=$ac_pwd ;;
1627   [\\/]* | ?:[\\/]* )  # Absolute name.
1628     ac_srcdir=$srcdir$ac_dir_suffix;
1629     ac_top_srcdir=$srcdir
1630     ac_abs_top_srcdir=$srcdir ;;
1631   *) # Relative name.
1632     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1633     ac_top_srcdir=$ac_top_build_prefix$srcdir
1634     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1635 esac
1636 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1637
1638     cd "$ac_dir" || { ac_status=$?; continue; }
1639     # Check for guested configure.
1640     if test -f "$ac_srcdir/configure.gnu"; then
1641       echo &&
1642       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1643     elif test -f "$ac_srcdir/configure"; then
1644       echo &&
1645       $SHELL "$ac_srcdir/configure" --help=recursive
1646     else
1647       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1648     fi || ac_status=$?
1649     cd "$ac_pwd" || { ac_status=$?; break; }
1650   done
1651 fi
1652
1653 test -n "$ac_init_help" && exit $ac_status
1654 if $ac_init_version; then
1655   cat <<\_ACEOF
1656 linux nfs-utils configure 1.1.2
1657 generated by GNU Autoconf 2.61
1658
1659 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1660 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1661 This configure script is free software; the Free Software Foundation
1662 gives unlimited permission to copy, distribute and modify it.
1663 _ACEOF
1664   exit
1665 fi
1666 cat >config.log <<_ACEOF
1667 This file contains any messages produced by compilers while
1668 running configure, to aid debugging if configure makes a mistake.
1669
1670 It was created by linux nfs-utils $as_me 1.1.2, which was
1671 generated by GNU Autoconf 2.61.  Invocation command line was
1672
1673   $ $0 $@
1674
1675 _ACEOF
1676 exec 5>>config.log
1677 {
1678 cat <<_ASUNAME
1679 ## --------- ##
1680 ## Platform. ##
1681 ## --------- ##
1682
1683 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1684 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1685 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1686 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1687 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1688
1689 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1690 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1691
1692 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1693 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1694 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1695 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1696 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1697 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1698 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1699
1700 _ASUNAME
1701
1702 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1703 for as_dir in $PATH
1704 do
1705   IFS=$as_save_IFS
1706   test -z "$as_dir" && as_dir=.
1707   echo "PATH: $as_dir"
1708 done
1709 IFS=$as_save_IFS
1710
1711 } >&5
1712
1713 cat >&5 <<_ACEOF
1714
1715
1716 ## ----------- ##
1717 ## Core tests. ##
1718 ## ----------- ##
1719
1720 _ACEOF
1721
1722
1723 # Keep a trace of the command line.
1724 # Strip out --no-create and --no-recursion so they do not pile up.
1725 # Strip out --silent because we don't want to record it for future runs.
1726 # Also quote any args containing shell meta-characters.
1727 # Make two passes to allow for proper duplicate-argument suppression.
1728 ac_configure_args=
1729 ac_configure_args0=
1730 ac_configure_args1=
1731 ac_must_keep_next=false
1732 for ac_pass in 1 2
1733 do
1734   for ac_arg
1735   do
1736     case $ac_arg in
1737     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1738     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1739     | -silent | --silent | --silen | --sile | --sil)
1740       continue ;;
1741     *\'*)
1742       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1743     esac
1744     case $ac_pass in
1745     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1746     2)
1747       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1748       if test $ac_must_keep_next = true; then
1749         ac_must_keep_next=false # Got value, back to normal.
1750       else
1751         case $ac_arg in
1752           *=* | --config-cache | -C | -disable-* | --disable-* \
1753           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1754           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1755           | -with-* | --with-* | -without-* | --without-* | --x)
1756             case "$ac_configure_args0 " in
1757               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1758             esac
1759             ;;
1760           -* ) ac_must_keep_next=true ;;
1761         esac
1762       fi
1763       ac_configure_args="$ac_configure_args '$ac_arg'"
1764       ;;
1765     esac
1766   done
1767 done
1768 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1769 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1770
1771 # When interrupted or exit'd, cleanup temporary files, and complete
1772 # config.log.  We remove comments because anyway the quotes in there
1773 # would cause problems or look ugly.
1774 # WARNING: Use '\'' to represent an apostrophe within the trap.
1775 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1776 trap 'exit_status=$?
1777   # Save into config.log some information that might help in debugging.
1778   {
1779     echo
1780
1781     cat <<\_ASBOX
1782 ## ---------------- ##
1783 ## Cache variables. ##
1784 ## ---------------- ##
1785 _ASBOX
1786     echo
1787     # The following way of writing the cache mishandles newlines in values,
1788 (
1789   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1790     eval ac_val=\$$ac_var
1791     case $ac_val in #(
1792     *${as_nl}*)
1793       case $ac_var in #(
1794       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1795 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1796       esac
1797       case $ac_var in #(
1798       _ | IFS | as_nl) ;; #(
1799       *) $as_unset $ac_var ;;
1800       esac ;;
1801     esac
1802   done
1803   (set) 2>&1 |
1804     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1805     *${as_nl}ac_space=\ *)
1806       sed -n \
1807         "s/'\''/'\''\\\\'\'''\''/g;
1808           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1809       ;; #(
1810     *)
1811       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1812       ;;
1813     esac |
1814     sort
1815 )
1816     echo
1817
1818     cat <<\_ASBOX
1819 ## ----------------- ##
1820 ## Output variables. ##
1821 ## ----------------- ##
1822 _ASBOX
1823     echo
1824     for ac_var in $ac_subst_vars
1825     do
1826       eval ac_val=\$$ac_var
1827       case $ac_val in
1828       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1829       esac
1830       echo "$ac_var='\''$ac_val'\''"
1831     done | sort
1832     echo
1833
1834     if test -n "$ac_subst_files"; then
1835       cat <<\_ASBOX
1836 ## ------------------- ##
1837 ## File substitutions. ##
1838 ## ------------------- ##
1839 _ASBOX
1840       echo
1841       for ac_var in $ac_subst_files
1842       do
1843         eval ac_val=\$$ac_var
1844         case $ac_val in
1845         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1846         esac
1847         echo "$ac_var='\''$ac_val'\''"
1848       done | sort
1849       echo
1850     fi
1851
1852     if test -s confdefs.h; then
1853       cat <<\_ASBOX
1854 ## ----------- ##
1855 ## confdefs.h. ##
1856 ## ----------- ##
1857 _ASBOX
1858       echo
1859       cat confdefs.h
1860       echo
1861     fi
1862     test "$ac_signal" != 0 &&
1863       echo "$as_me: caught signal $ac_signal"
1864     echo "$as_me: exit $exit_status"
1865   } >&5
1866   rm -f core *.core core.conftest.* &&
1867     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1868     exit $exit_status
1869 ' 0
1870 for ac_signal in 1 2 13 15; do
1871   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1872 done
1873 ac_signal=0
1874
1875 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1876 rm -f -r conftest* confdefs.h
1877
1878 # Predefined preprocessor variables.
1879
1880 cat >>confdefs.h <<_ACEOF
1881 #define PACKAGE_NAME "$PACKAGE_NAME"
1882 _ACEOF
1883
1884
1885 cat >>confdefs.h <<_ACEOF
1886 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1887 _ACEOF
1888
1889
1890 cat >>confdefs.h <<_ACEOF
1891 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1892 _ACEOF
1893
1894
1895 cat >>confdefs.h <<_ACEOF
1896 #define PACKAGE_STRING "$PACKAGE_STRING"
1897 _ACEOF
1898
1899
1900 cat >>confdefs.h <<_ACEOF
1901 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1902 _ACEOF
1903
1904
1905 # Let the site file select an alternate cache file if it wants to.
1906 # Prefer explicitly selected file to automatically selected ones.
1907 if test -n "$CONFIG_SITE"; then
1908   set x "$CONFIG_SITE"
1909 elif test "x$prefix" != xNONE; then
1910   set x "$prefix/share/config.site" "$prefix/etc/config.site"
1911 else
1912   set x "$ac_default_prefix/share/config.site" \
1913         "$ac_default_prefix/etc/config.site"
1914 fi
1915 shift
1916 for ac_site_file
1917 do
1918   if test -r "$ac_site_file"; then
1919     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1920 echo "$as_me: loading site script $ac_site_file" >&6;}
1921     sed 's/^/| /' "$ac_site_file" >&5
1922     . "$ac_site_file"
1923   fi
1924 done
1925
1926 if test -r "$cache_file"; then
1927   # Some versions of bash will fail to source /dev/null (special
1928   # files actually), so we avoid doing that.
1929   if test -f "$cache_file"; then
1930     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1931 echo "$as_me: loading cache $cache_file" >&6;}
1932     case $cache_file in
1933       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1934       *)                      . "./$cache_file";;
1935     esac
1936   fi
1937 else
1938   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1939 echo "$as_me: creating cache $cache_file" >&6;}
1940   >$cache_file
1941 fi
1942
1943 # Check that the precious variables saved in the cache have kept the same
1944 # value.
1945 ac_cache_corrupted=false
1946 for ac_var in $ac_precious_vars; do
1947   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1948   eval ac_new_set=\$ac_env_${ac_var}_set
1949   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1950   eval ac_new_val=\$ac_env_${ac_var}_value
1951   case $ac_old_set,$ac_new_set in
1952     set,)
1953       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1954 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1955       ac_cache_corrupted=: ;;
1956     ,set)
1957       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1958 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1959       ac_cache_corrupted=: ;;
1960     ,);;
1961     *)
1962       if test "x$ac_old_val" != "x$ac_new_val"; then
1963         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1964 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1965         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1966 echo "$as_me:   former value:  $ac_old_val" >&2;}
1967         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1968 echo "$as_me:   current value: $ac_new_val" >&2;}
1969         ac_cache_corrupted=:
1970       fi;;
1971   esac
1972   # Pass precious variables to config.status.
1973   if test "$ac_new_set" = set; then
1974     case $ac_new_val in
1975     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1976     *) ac_arg=$ac_var=$ac_new_val ;;
1977     esac
1978     case " $ac_configure_args " in
1979       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1980       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1981     esac
1982   fi
1983 done
1984 if $ac_cache_corrupted; then
1985   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1986 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1987   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1988 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1989    { (exit 1); exit 1; }; }
1990 fi
1991
1992
1993
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016 ac_ext=c
2017 ac_cpp='$CPP $CPPFLAGS'
2018 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2019 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2020 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2021
2022
2023 ac_aux_dir=
2024 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2025   if test -f "$ac_dir/install-sh"; then
2026     ac_aux_dir=$ac_dir
2027     ac_install_sh="$ac_aux_dir/install-sh -c"
2028     break
2029   elif test -f "$ac_dir/install.sh"; then
2030     ac_aux_dir=$ac_dir
2031     ac_install_sh="$ac_aux_dir/install.sh -c"
2032     break
2033   elif test -f "$ac_dir/shtool"; then
2034     ac_aux_dir=$ac_dir
2035     ac_install_sh="$ac_aux_dir/shtool install -c"
2036     break
2037   fi
2038 done
2039 if test -z "$ac_aux_dir"; then
2040   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2041 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2042    { (exit 1); exit 1; }; }
2043 fi
2044
2045 # These three variables are undocumented and unsupported,
2046 # and are intended to be withdrawn in a future Autoconf release.
2047 # They can cause serious problems if a builder's source tree is in a directory
2048 # whose full name contains unusual characters.
2049 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2050 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2051 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2052
2053
2054 # Make sure we can run config.sub.
2055 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2056   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2057 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2058    { (exit 1); exit 1; }; }
2059
2060 { echo "$as_me:$LINENO: checking build system type" >&5
2061 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2062 if test "${ac_cv_build+set}" = set; then
2063   echo $ECHO_N "(cached) $ECHO_C" >&6
2064 else
2065   ac_build_alias=$build_alias
2066 test "x$ac_build_alias" = x &&
2067   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2068 test "x$ac_build_alias" = x &&
2069   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2070 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2071    { (exit 1); exit 1; }; }
2072 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2073   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2074 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2075    { (exit 1); exit 1; }; }
2076
2077 fi
2078 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2079 echo "${ECHO_T}$ac_cv_build" >&6; }
2080 case $ac_cv_build in
2081 *-*-*) ;;
2082 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2083 echo "$as_me: error: invalid value of canonical build" >&2;}
2084    { (exit 1); exit 1; }; };;
2085 esac
2086 build=$ac_cv_build
2087 ac_save_IFS=$IFS; IFS='-'
2088 set x $ac_cv_build
2089 shift
2090 build_cpu=$1
2091 build_vendor=$2
2092 shift; shift
2093 # Remember, the first character of IFS is used to create $*,
2094 # except with old shells:
2095 build_os=$*
2096 IFS=$ac_save_IFS
2097 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2098
2099
2100 { echo "$as_me:$LINENO: checking host system type" >&5
2101 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2102 if test "${ac_cv_host+set}" = set; then
2103   echo $ECHO_N "(cached) $ECHO_C" >&6
2104 else
2105   if test "x$host_alias" = x; then
2106   ac_cv_host=$ac_cv_build
2107 else
2108   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2109     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2110 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2111    { (exit 1); exit 1; }; }
2112 fi
2113
2114 fi
2115 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2116 echo "${ECHO_T}$ac_cv_host" >&6; }
2117 case $ac_cv_host in
2118 *-*-*) ;;
2119 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2120 echo "$as_me: error: invalid value of canonical host" >&2;}
2121    { (exit 1); exit 1; }; };;
2122 esac
2123 host=$ac_cv_host
2124 ac_save_IFS=$IFS; IFS='-'
2125 set x $ac_cv_host
2126 shift
2127 host_cpu=$1
2128 host_vendor=$2
2129 shift; shift
2130 # Remember, the first character of IFS is used to create $*,
2131 # except with old shells:
2132 host_os=$*
2133 IFS=$ac_save_IFS
2134 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2135
2136
2137
2138 am__api_version='1.10'
2139
2140 # Find a good install program.  We prefer a C program (faster),
2141 # so one script is as good as another.  But avoid the broken or
2142 # incompatible versions:
2143 # SysV /etc/install, /usr/sbin/install
2144 # SunOS /usr/etc/install
2145 # IRIX /sbin/install
2146 # AIX /bin/install
2147 # AmigaOS /C/install, which installs bootblocks on floppy discs
2148 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2149 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2150 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2151 # OS/2's system install, which has a completely different semantic
2152 # ./install, which can be erroneously created by make from ./install.sh.
2153 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2154 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
2155 if test -z "$INSTALL"; then
2156 if test "${ac_cv_path_install+set}" = set; then
2157   echo $ECHO_N "(cached) $ECHO_C" >&6
2158 else
2159   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2160 for as_dir in $PATH
2161 do
2162   IFS=$as_save_IFS
2163   test -z "$as_dir" && as_dir=.
2164   # Account for people who put trailing slashes in PATH elements.
2165 case $as_dir/ in
2166   ./ | .// | /cC/* | \
2167   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2168   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2169   /usr/ucb/* ) ;;
2170   *)
2171     # OSF1 and SCO ODT 3.0 have their own names for install.
2172     # Don't use installbsd from OSF since it installs stuff as root
2173     # by default.
2174     for ac_prog in ginstall scoinst install; do
2175       for ac_exec_ext in '' $ac_executable_extensions; do
2176         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2177           if test $ac_prog = install &&
2178             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2179             # AIX install.  It has an incompatible calling convention.
2180             :
2181           elif test $ac_prog = install &&
2182             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2183             # program-specific install script used by HP pwplus--don't use.
2184             :
2185           else
2186             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2187             break 3
2188           fi
2189         fi
2190       done
2191     done
2192     ;;
2193 esac
2194 done
2195 IFS=$as_save_IFS
2196
2197
2198 fi
2199   if test "${ac_cv_path_install+set}" = set; then
2200     INSTALL=$ac_cv_path_install
2201   else
2202     # As a last resort, use the slow shell script.  Don't cache a
2203     # value for INSTALL within a source directory, because that will
2204     # break other packages using the cache if that directory is
2205     # removed, or if the value is a relative name.
2206     INSTALL=$ac_install_sh
2207   fi
2208 fi
2209 { echo "$as_me:$LINENO: result: $INSTALL" >&5
2210 echo "${ECHO_T}$INSTALL" >&6; }
2211
2212 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2213 # It thinks the first close brace ends the variable substitution.
2214 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2215
2216 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2217
2218 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2219
2220 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2221 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2222 # Just in case
2223 sleep 1
2224 echo timestamp > conftest.file
2225 # Do `set' in a subshell so we don't clobber the current shell's
2226 # arguments.  Must try -L first in case configure is actually a
2227 # symlink; some systems play weird games with the mod time of symlinks
2228 # (eg FreeBSD returns the mod time of the symlink's containing
2229 # directory).
2230 if (
2231    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2232    if test "$*" = "X"; then
2233       # -L didn't work.
2234       set X `ls -t $srcdir/configure conftest.file`
2235    fi
2236    rm -f conftest.file
2237    if test "$*" != "X $srcdir/configure conftest.file" \
2238       && test "$*" != "X conftest.file $srcdir/configure"; then
2239
2240       # If neither matched, then we have a broken ls.  This can happen
2241       # if, for instance, CONFIG_SHELL is bash and it inherits a
2242       # broken ls alias from the environment.  This has actually
2243       # happened.  Such a system could not be considered "sane".
2244       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
2245 alias in your environment" >&5
2246 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
2247 alias in your environment" >&2;}
2248    { (exit 1); exit 1; }; }
2249    fi
2250
2251    test "$2" = conftest.file
2252    )
2253 then
2254    # Ok.
2255    :
2256 else
2257    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2258 Check your system clock" >&5
2259 echo "$as_me: error: newly created file is older than distributed files!
2260 Check your system clock" >&2;}
2261    { (exit 1); exit 1; }; }
2262 fi
2263 { echo "$as_me:$LINENO: result: yes" >&5
2264 echo "${ECHO_T}yes" >&6; }
2265 test "$program_prefix" != NONE &&
2266   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2267 # Use a double $ so make ignores it.
2268 test "$program_suffix" != NONE &&
2269   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2270 # Double any \ or $.  echo might interpret backslashes.
2271 # By default was `s,x,x', remove it if useless.
2272 cat <<\_ACEOF >conftest.sed
2273 s/[\\$]/&&/g;s/;s,x,x,$//
2274 _ACEOF
2275 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2276 rm -f conftest.sed
2277
2278 # expand $ac_aux_dir to an absolute path
2279 am_aux_dir=`cd $ac_aux_dir && pwd`
2280
2281 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2282 # Use eval to expand $SHELL
2283 if eval "$MISSING --run true"; then
2284   am_missing_run="$MISSING --run "
2285 else
2286   am_missing_run=
2287   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2288 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2289 fi
2290
2291 { echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2292 echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
2293 if test -z "$MKDIR_P"; then
2294   if test "${ac_cv_path_mkdir+set}" = set; then
2295   echo $ECHO_N "(cached) $ECHO_C" >&6
2296 else
2297   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2298 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2299 do
2300   IFS=$as_save_IFS
2301   test -z "$as_dir" && as_dir=.
2302   for ac_prog in mkdir gmkdir; do
2303          for ac_exec_ext in '' $ac_executable_extensions; do
2304            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2305            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2306              'mkdir (GNU coreutils) '* | \
2307              'mkdir (coreutils) '* | \
2308              'mkdir (fileutils) '4.1*)
2309                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2310                break 3;;
2311            esac
2312          done
2313        done
2314 done
2315 IFS=$as_save_IFS
2316
2317 fi
2318
2319   if test "${ac_cv_path_mkdir+set}" = set; then
2320     MKDIR_P="$ac_cv_path_mkdir -p"
2321   else
2322     # As a last resort, use the slow shell script.  Don't cache a
2323     # value for MKDIR_P within a source directory, because that will
2324     # break other packages using the cache if that directory is
2325     # removed, or if the value is a relative name.
2326     test -d ./--version && rmdir ./--version
2327     MKDIR_P="$ac_install_sh -d"
2328   fi
2329 fi
2330 { echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2331 echo "${ECHO_T}$MKDIR_P" >&6; }
2332
2333 mkdir_p="$MKDIR_P"
2334 case $mkdir_p in
2335   [\\/$]* | ?:[\\/]*) ;;
2336   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2337 esac
2338
2339 for ac_prog in gawk mawk nawk awk
2340 do
2341   # Extract the first word of "$ac_prog", so it can be a program name with args.
2342 set dummy $ac_prog; ac_word=$2
2343 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2344 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2345 if test "${ac_cv_prog_AWK+set}" = set; then
2346   echo $ECHO_N "(cached) $ECHO_C" >&6
2347 else
2348   if test -n "$AWK"; then
2349   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2350 else
2351 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2352 for as_dir in $PATH
2353 do
2354   IFS=$as_save_IFS
2355   test -z "$as_dir" && as_dir=.
2356   for ac_exec_ext in '' $ac_executable_extensions; do
2357   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2358     ac_cv_prog_AWK="$ac_prog"
2359     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2360     break 2
2361   fi
2362 done
2363 done
2364 IFS=$as_save_IFS
2365
2366 fi
2367 fi
2368 AWK=$ac_cv_prog_AWK
2369 if test -n "$AWK"; then
2370   { echo "$as_me:$LINENO: result: $AWK" >&5
2371 echo "${ECHO_T}$AWK" >&6; }
2372 else
2373   { echo "$as_me:$LINENO: result: no" >&5
2374 echo "${ECHO_T}no" >&6; }
2375 fi
2376
2377
2378   test -n "$AWK" && break
2379 done
2380
2381 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2382 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2383 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2384 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2385   echo $ECHO_N "(cached) $ECHO_C" >&6
2386 else
2387   cat >conftest.make <<\_ACEOF
2388 SHELL = /bin/sh
2389 all:
2390         @echo '@@@%%%=$(MAKE)=@@@%%%'
2391 _ACEOF
2392 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2393 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2394   *@@@%%%=?*=@@@%%%*)
2395     eval ac_cv_prog_make_${ac_make}_set=yes;;
2396   *)
2397     eval ac_cv_prog_make_${ac_make}_set=no;;
2398 esac
2399 rm -f conftest.make
2400 fi
2401 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2402   { echo "$as_me:$LINENO: result: yes" >&5
2403 echo "${ECHO_T}yes" >&6; }
2404   SET_MAKE=
2405 else
2406   { echo "$as_me:$LINENO: result: no" >&5
2407 echo "${ECHO_T}no" >&6; }
2408   SET_MAKE="MAKE=${MAKE-make}"
2409 fi
2410
2411 rm -rf .tst 2>/dev/null
2412 mkdir .tst 2>/dev/null
2413 if test -d .tst; then
2414   am__leading_dot=.
2415 else
2416   am__leading_dot=_
2417 fi
2418 rmdir .tst 2>/dev/null
2419
2420 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2421   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2422   # is not polluted with repeated "-I."
2423   am__isrc=' -I$(srcdir)'
2424   # test to see if srcdir already configured
2425   if test -f $srcdir/config.status; then
2426     { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2427 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2428    { (exit 1); exit 1; }; }
2429   fi
2430 fi
2431
2432 # test whether we have cygpath
2433 if test -z "$CYGPATH_W"; then
2434   if (cygpath --version) >/dev/null 2>/dev/null; then
2435     CYGPATH_W='cygpath -w'
2436   else
2437     CYGPATH_W=echo
2438   fi
2439 fi
2440
2441
2442 # Define the identity of the package.
2443  PACKAGE='nfs-utils'
2444  VERSION='1.1.2'
2445
2446
2447 cat >>confdefs.h <<_ACEOF
2448 #define PACKAGE "$PACKAGE"
2449 _ACEOF
2450
2451
2452 cat >>confdefs.h <<_ACEOF
2453 #define VERSION "$VERSION"
2454 _ACEOF
2455
2456 # Some tools Automake needs.
2457
2458 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2459
2460
2461 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2462
2463
2464 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2465
2466
2467 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2468
2469
2470 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2471
2472 install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2473
2474 # Installed binaries are usually stripped using `strip' when the user
2475 # run `make install-strip'.  However `strip' might not be the right
2476 # tool to use in cross-compilation environments, therefore Automake
2477 # will honor the `STRIP' environment variable to overrule this program.
2478 if test "$cross_compiling" != no; then
2479   if test -n "$ac_tool_prefix"; then
2480   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2481 set dummy ${ac_tool_prefix}strip; ac_word=$2
2482 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2483 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2484 if test "${ac_cv_prog_STRIP+set}" = set; then
2485   echo $ECHO_N "(cached) $ECHO_C" >&6
2486 else
2487   if test -n "$STRIP"; then
2488   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2489 else
2490 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2491 for as_dir in $PATH
2492 do
2493   IFS=$as_save_IFS
2494   test -z "$as_dir" && as_dir=.
2495   for ac_exec_ext in '' $ac_executable_extensions; do
2496   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2497     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2498     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2499     break 2
2500   fi
2501 done
2502 done
2503 IFS=$as_save_IFS
2504
2505 fi
2506 fi
2507 STRIP=$ac_cv_prog_STRIP
2508 if test -n "$STRIP"; then
2509   { echo "$as_me:$LINENO: result: $STRIP" >&5
2510 echo "${ECHO_T}$STRIP" >&6; }
2511 else
2512   { echo "$as_me:$LINENO: result: no" >&5
2513 echo "${ECHO_T}no" >&6; }
2514 fi
2515
2516
2517 fi
2518 if test -z "$ac_cv_prog_STRIP"; then
2519   ac_ct_STRIP=$STRIP
2520   # Extract the first word of "strip", so it can be a program name with args.
2521 set dummy strip; ac_word=$2
2522 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2523 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2524 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2525   echo $ECHO_N "(cached) $ECHO_C" >&6
2526 else
2527   if test -n "$ac_ct_STRIP"; then
2528   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2529 else
2530 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2531 for as_dir in $PATH
2532 do
2533   IFS=$as_save_IFS
2534   test -z "$as_dir" && as_dir=.
2535   for ac_exec_ext in '' $ac_executable_extensions; do
2536   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2537     ac_cv_prog_ac_ct_STRIP="strip"
2538     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2539     break 2
2540   fi
2541 done
2542 done
2543 IFS=$as_save_IFS
2544
2545 fi
2546 fi
2547 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2548 if test -n "$ac_ct_STRIP"; then
2549   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2550 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2551 else
2552   { echo "$as_me:$LINENO: result: no" >&5
2553 echo "${ECHO_T}no" >&6; }
2554 fi
2555
2556   if test "x$ac_ct_STRIP" = x; then
2557     STRIP=":"
2558   else
2559     case $cross_compiling:$ac_tool_warned in
2560 yes:)
2561 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2562 whose name does not start with the host triplet.  If you think this
2563 configuration is useful to you, please write to autoconf@gnu.org." >&5
2564 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2565 whose name does not start with the host triplet.  If you think this
2566 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2567 ac_tool_warned=yes ;;
2568 esac
2569     STRIP=$ac_ct_STRIP
2570   fi
2571 else
2572   STRIP="$ac_cv_prog_STRIP"
2573 fi
2574
2575 fi
2576 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2577
2578 # We need awk for the "check" target.  The system "awk" is bad on
2579 # some platforms.
2580 # Always define AMTAR for backward compatibility.
2581
2582 AMTAR=${AMTAR-"${am_missing_run}tar"}
2583
2584 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2585
2586
2587
2588
2589
2590
2591
2592 { echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
2593 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6; }
2594     # Check whether --enable-maintainer-mode was given.
2595 if test "${enable_maintainer_mode+set}" = set; then
2596   enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2597 else
2598   USE_MAINTAINER_MODE=no
2599 fi
2600
2601   { echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
2602 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6; }
2603    if test $USE_MAINTAINER_MODE = yes; then
2604   MAINTAINER_MODE_TRUE=
2605   MAINTAINER_MODE_FALSE='#'
2606 else
2607   MAINTAINER_MODE_TRUE='#'
2608   MAINTAINER_MODE_FALSE=
2609 fi
2610
2611   MAINT=$MAINTAINER_MODE_TRUE
2612
2613
2614
2615
2616 # Check whether --with-release was given.
2617 if test "${with_release+set}" = set; then
2618   withval=$with_release; RELEASE=$withval
2619 else
2620   RELEASE=1
2621 fi
2622
2623
2624
2625 # Check whether --with-statedir was given.
2626 if test "${with_statedir+set}" = set; then
2627   withval=$with_statedir; statedir=$withval
2628 else
2629   statedir=/var/lib/nfs
2630 fi
2631
2632
2633
2634 # Check whether --with-statduser was given.
2635 if test "${with_statduser+set}" = set; then
2636   withval=$with_statduser; statduser=$withval
2637 else
2638   if test "x$cross_compiling" = "xno"; then
2639                 if grep -s '^rpcuser:' /etc/passwd > /dev/null; then
2640                         statduser=rpcuser
2641                 else
2642                         statduser=nobody
2643                 fi
2644         else
2645                 statduser=nobody
2646         fi
2647 fi
2648
2649
2650
2651 # Check whether --with-start-statd was given.
2652 if test "${with_start_statd+set}" = set; then
2653   withval=$with_start_statd; startstatd=$withval
2654 else
2655   startstatd=/usr/sbin/start-statd
2656
2657 fi
2658
2659
2660
2661 cat >>confdefs.h <<_ACEOF
2662 #define START_STATD "$startstatd"
2663 _ACEOF
2664
2665 # Check whether --enable-nfsv3 was given.
2666 if test "${enable_nfsv3+set}" = set; then
2667   enableval=$enable_nfsv3; enable_nfsv3=$enableval
2668 else
2669   enable_nfsv3=yes
2670 fi
2671
2672         if test "$enable_nfsv3" = yes; then
2673
2674 cat >>confdefs.h <<\_ACEOF
2675 #define NFS3_SUPPORTED 1
2676 _ACEOF
2677
2678         else
2679                 enable_nfsv3=
2680         fi
2681
2682 # Check whether --enable-nfsv4 was given.
2683 if test "${enable_nfsv4+set}" = set; then
2684   enableval=$enable_nfsv4; enable_nfsv4=$enableval
2685 else
2686   enable_nfsv4=yes
2687 fi
2688
2689         if test "$enable_nfsv4" = yes; then
2690
2691 cat >>confdefs.h <<\_ACEOF
2692 #define NFS4_SUPPORTED 1
2693 _ACEOF
2694
2695                 IDMAPD=idmapd
2696         else
2697                 enable_nfsv4=
2698                 IDMAPD=
2699         fi
2700
2701
2702          if test "$enable_nfsv4" = "yes"; then
2703   CONFIG_NFSV4_TRUE=
2704   CONFIG_NFSV4_FALSE='#'
2705 else
2706   CONFIG_NFSV4_TRUE='#'
2707   CONFIG_NFSV4_FALSE=
2708 fi
2709
2710 # Check whether --enable-gss was given.
2711 if test "${enable_gss+set}" = set; then
2712   enableval=$enable_gss; enable_gss=$enableval
2713 else
2714   enable_gss=yes
2715 fi
2716
2717         if test "$enable_gss" = yes; then
2718
2719 cat >>confdefs.h <<\_ACEOF
2720 #define GSS_SUPPORTED 1
2721 _ACEOF
2722
2723                 GSSD=gssd
2724                 SVCGSSD=svcgssd
2725         else
2726                 enable_gss=
2727                 GSSD=
2728                 SVCGSSD=
2729         fi
2730
2731
2732
2733          if test "$enable_gss" = "yes"; then
2734   CONFIG_GSS_TRUE=
2735   CONFIG_GSS_FALSE='#'
2736 else
2737   CONFIG_GSS_TRUE='#'
2738   CONFIG_GSS_FALSE=
2739 fi
2740
2741 # Check whether --enable-kprefix was given.
2742 if test "${enable_kprefix+set}" = set; then
2743   enableval=$enable_kprefix; test "$enableval" = "yes" && kprefix=k
2744 else
2745   kprefix=
2746 fi
2747
2748
2749 # Check whether --enable-secure-statd was given.
2750 if test "${enable_secure_statd+set}" = set; then
2751   enableval=$enable_secure_statd; test "$enableval" = "yes" && secure_statd=yes
2752 else
2753   secure_statd=yes
2754 fi
2755
2756         if test "$secure_statd" = yes; then
2757
2758 cat >>confdefs.h <<\_ACEOF
2759 #define RESTRICTED_STATD 1
2760 _ACEOF
2761
2762         fi
2763
2764
2765 # Check whether --with-rpcgen was given.
2766 if test "${with_rpcgen+set}" = set; then
2767   withval=$with_rpcgen; rpcgen_path=$withval
2768 else
2769   rpcgen_path=yes
2770 fi
2771
2772         RPCGEN_PATH=
2773         if test "$rpcgen_path" == "yes"; then
2774             for p in /usr/local/bin/rpcgen /usr/bin/rpcgen /bin/rpcgen
2775             do if test -f $p ; then RPCGEN_PATH=$p ; break; fi ; done
2776         elif test "$rpcgen_path" != "internal"; then
2777             RPCGEN_PATH=$rpcgen_path
2778         fi
2779
2780          if test "$RPCGEN_PATH" == ""; then
2781   CONFIG_RPCGEN_TRUE=
2782   CONFIG_RPCGEN_FALSE='#'
2783 else
2784   CONFIG_RPCGEN_TRUE='#'
2785   CONFIG_RPCGEN_FALSE=
2786 fi
2787
2788 # Check whether --enable-uuid was given.
2789 if test "${enable_uuid+set}" = set; then
2790   enableval=$enable_uuid; if test "$enableval" = "yes" ; then choose_blkid=yes; else choose_blkid=no; fi
2791 else
2792   choose_blkid=default
2793 fi
2794
2795 # Check whether --enable-mount was given.
2796 if test "${enable_mount+set}" = set; then
2797   enableval=$enable_mount; enable_mount=$enableval
2798 else
2799   enable_mount=yes
2800 fi
2801
2802          if test "$enable_mount" = "yes"; then
2803   CONFIG_MOUNT_TRUE=
2804   CONFIG_MOUNT_FALSE='#'
2805 else
2806   CONFIG_MOUNT_TRUE='#'
2807   CONFIG_MOUNT_FALSE=
2808 fi
2809
2810
2811 # Check whether user wants TCP wrappers support
2812 DEPDIR="${am__leading_dot}deps"
2813
2814 ac_config_commands="$ac_config_commands depfiles"
2815
2816
2817 am_make=${MAKE-make}
2818 cat > confinc << 'END'
2819 am__doit:
2820         @echo done
2821 .PHONY: am__doit
2822 END
2823 # If we don't find an include directive, just comment out the code.
2824 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2825 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
2826 am__include="#"
2827 am__quote=
2828 _am_result=none
2829 # First try GNU make style include.
2830 echo "include confinc" > confmf
2831 # We grep out `Entering directory' and `Leaving directory'
2832 # messages which can occur if `w' ends up in MAKEFLAGS.
2833 # In particular we don't look at `^make:' because GNU make might
2834 # be invoked under some other name (usually "gmake"), in which
2835 # case it prints its new name instead of `make'.
2836 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2837    am__include=include
2838    am__quote=
2839    _am_result=GNU
2840 fi
2841 # Now try BSD make style include.
2842 if test "$am__include" = "#"; then
2843    echo '.include "confinc"' > confmf
2844    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2845       am__include=.include
2846       am__quote="\""
2847       _am_result=BSD
2848    fi
2849 fi
2850
2851
2852 { echo "$as_me:$LINENO: result: $_am_result" >&5
2853 echo "${ECHO_T}$_am_result" >&6; }
2854 rm -f confinc confmf
2855
2856 # Check whether --enable-dependency-tracking was given.
2857 if test "${enable_dependency_tracking+set}" = set; then
2858   enableval=$enable_dependency_tracking;
2859 fi
2860
2861 if test "x$enable_dependency_tracking" != xno; then
2862   am_depcomp="$ac_aux_dir/depcomp"
2863   AMDEPBACKSLASH='\'
2864 fi
2865  if test "x$enable_dependency_tracking" != xno; then
2866   AMDEP_TRUE=
2867   AMDEP_FALSE='#'
2868 else
2869   AMDEP_TRUE='#'
2870   AMDEP_FALSE=
2871 fi
2872
2873
2874 ac_ext=c
2875 ac_cpp='$CPP $CPPFLAGS'
2876 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2877 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2878 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2879 if test -n "$ac_tool_prefix"; then
2880   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2881 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2882 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2883 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2884 if test "${ac_cv_prog_CC+set}" = set; then
2885   echo $ECHO_N "(cached) $ECHO_C" >&6
2886 else
2887   if test -n "$CC"; then
2888   ac_cv_prog_CC="$CC" # Let the user override the test.
2889 else
2890 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2891 for as_dir in $PATH
2892 do
2893   IFS=$as_save_IFS
2894   test -z "$as_dir" && as_dir=.
2895   for ac_exec_ext in '' $ac_executable_extensions; do
2896   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2897     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2898     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2899     break 2
2900   fi
2901 done
2902 done
2903 IFS=$as_save_IFS
2904
2905 fi
2906 fi
2907 CC=$ac_cv_prog_CC
2908 if test -n "$CC"; then
2909   { echo "$as_me:$LINENO: result: $CC" >&5
2910 echo "${ECHO_T}$CC" >&6; }
2911 else
2912   { echo "$as_me:$LINENO: result: no" >&5
2913 echo "${ECHO_T}no" >&6; }
2914 fi
2915
2916
2917 fi
2918 if test -z "$ac_cv_prog_CC"; then
2919   ac_ct_CC=$CC
2920   # Extract the first word of "gcc", so it can be a program name with args.
2921 set dummy gcc; ac_word=$2
2922 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2923 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2924 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2925   echo $ECHO_N "(cached) $ECHO_C" >&6
2926 else
2927   if test -n "$ac_ct_CC"; then
2928   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2929 else
2930 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2931 for as_dir in $PATH
2932 do
2933   IFS=$as_save_IFS
2934   test -z "$as_dir" && as_dir=.
2935   for ac_exec_ext in '' $ac_executable_extensions; do
2936   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2937     ac_cv_prog_ac_ct_CC="gcc"
2938     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2939     break 2
2940   fi
2941 done
2942 done
2943 IFS=$as_save_IFS
2944
2945 fi
2946 fi
2947 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2948 if test -n "$ac_ct_CC"; then
2949   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2950 echo "${ECHO_T}$ac_ct_CC" >&6; }
2951 else
2952   { echo "$as_me:$LINENO: result: no" >&5
2953 echo "${ECHO_T}no" >&6; }
2954 fi
2955
2956   if test "x$ac_ct_CC" = x; then
2957     CC=""
2958   else
2959     case $cross_compiling:$ac_tool_warned in
2960 yes:)
2961 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2962 whose name does not start with the host triplet.  If you think this
2963 configuration is useful to you, please write to autoconf@gnu.org." >&5
2964 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2965 whose name does not start with the host triplet.  If you think this
2966 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2967 ac_tool_warned=yes ;;
2968 esac
2969     CC=$ac_ct_CC
2970   fi
2971 else
2972   CC="$ac_cv_prog_CC"
2973 fi
2974
2975 if test -z "$CC"; then
2976           if test -n "$ac_tool_prefix"; then
2977     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2978 set dummy ${ac_tool_prefix}cc; ac_word=$2
2979 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2980 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2981 if test "${ac_cv_prog_CC+set}" = set; then
2982   echo $ECHO_N "(cached) $ECHO_C" >&6
2983 else
2984   if test -n "$CC"; then
2985   ac_cv_prog_CC="$CC" # Let the user override the test.
2986 else
2987 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2988 for as_dir in $PATH
2989 do
2990   IFS=$as_save_IFS
2991   test -z "$as_dir" && as_dir=.
2992   for ac_exec_ext in '' $ac_executable_extensions; do
2993   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2994     ac_cv_prog_CC="${ac_tool_prefix}cc"
2995     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2996     break 2
2997   fi
2998 done
2999 done
3000 IFS=$as_save_IFS
3001
3002 fi
3003 fi
3004 CC=$ac_cv_prog_CC
3005 if test -n "$CC"; then
3006   { echo "$as_me:$LINENO: result: $CC" >&5
3007 echo "${ECHO_T}$CC" >&6; }
3008 else
3009   { echo "$as_me:$LINENO: result: no" >&5
3010 echo "${ECHO_T}no" >&6; }
3011 fi
3012
3013
3014   fi
3015 fi
3016 if test -z "$CC"; then
3017   # Extract the first word of "cc", so it can be a program name with args.
3018 set dummy cc; ac_word=$2
3019 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3020 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3021 if test "${ac_cv_prog_CC+set}" = set; then
3022   echo $ECHO_N "(cached) $ECHO_C" >&6
3023 else
3024   if test -n "$CC"; then
3025   ac_cv_prog_CC="$CC" # Let the user override the test.
3026 else
3027   ac_prog_rejected=no
3028 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3029 for as_dir in $PATH
3030 do
3031   IFS=$as_save_IFS
3032   test -z "$as_dir" && as_dir=.
3033   for ac_exec_ext in '' $ac_executable_extensions; do
3034   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3035     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3036        ac_prog_rejected=yes
3037        continue
3038      fi
3039     ac_cv_prog_CC="cc"
3040     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3041     break 2
3042   fi
3043 done
3044 done
3045 IFS=$as_save_IFS
3046
3047 if test $ac_prog_rejected = yes; then
3048   # We found a bogon in the path, so make sure we never use it.
3049   set dummy $ac_cv_prog_CC
3050   shift
3051   if test $# != 0; then
3052     # We chose a different compiler from the bogus one.
3053     # However, it has the same basename, so the bogon will be chosen
3054     # first if we set CC to just the basename; use the full file name.
3055     shift
3056     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3057   fi
3058 fi
3059 fi
3060 fi
3061 CC=$ac_cv_prog_CC
3062 if test -n "$CC"; then
3063   { echo "$as_me:$LINENO: result: $CC" >&5
3064 echo "${ECHO_T}$CC" >&6; }
3065 else
3066   { echo "$as_me:$LINENO: result: no" >&5
3067 echo "${ECHO_T}no" >&6; }
3068 fi
3069
3070
3071 fi
3072 if test -z "$CC"; then
3073   if test -n "$ac_tool_prefix"; then
3074   for ac_prog in cl.exe
3075   do
3076     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3077 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3078 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3079 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3080 if test "${ac_cv_prog_CC+set}" = set; then
3081   echo $ECHO_N "(cached) $ECHO_C" >&6
3082 else
3083   if test -n "$CC"; then
3084   ac_cv_prog_CC="$CC" # Let the user override the test.
3085 else
3086 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3087 for as_dir in $PATH
3088 do
3089   IFS=$as_save_IFS
3090   test -z "$as_dir" && as_dir=.
3091   for ac_exec_ext in '' $ac_executable_extensions; do
3092   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3093     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3094     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3095     break 2
3096   fi
3097 done
3098 done
3099 IFS=$as_save_IFS
3100
3101 fi
3102 fi
3103 CC=$ac_cv_prog_CC
3104 if test -n "$CC"; then
3105   { echo "$as_me:$LINENO: result: $CC" >&5
3106 echo "${ECHO_T}$CC" >&6; }
3107 else
3108   { echo "$as_me:$LINENO: result: no" >&5
3109 echo "${ECHO_T}no" >&6; }
3110 fi
3111
3112
3113     test -n "$CC" && break
3114   done
3115 fi
3116 if test -z "$CC"; then
3117   ac_ct_CC=$CC
3118   for ac_prog in cl.exe
3119 do
3120   # Extract the first word of "$ac_prog", so it can be a program name with args.
3121 set dummy $ac_prog; ac_word=$2
3122 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3123 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3124 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3125   echo $ECHO_N "(cached) $ECHO_C" >&6
3126 else
3127   if test -n "$ac_ct_CC"; then
3128   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3129 else
3130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3131 for as_dir in $PATH
3132 do
3133   IFS=$as_save_IFS
3134   test -z "$as_dir" && as_dir=.
3135   for ac_exec_ext in '' $ac_executable_extensions; do
3136   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3137     ac_cv_prog_ac_ct_CC="$ac_prog"
3138     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3139     break 2
3140   fi
3141 done
3142 done
3143 IFS=$as_save_IFS
3144
3145 fi
3146 fi
3147 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3148 if test -n "$ac_ct_CC"; then
3149   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3150 echo "${ECHO_T}$ac_ct_CC" >&6; }
3151 else
3152   { echo "$as_me:$LINENO: result: no" >&5
3153 echo "${ECHO_T}no" >&6; }
3154 fi
3155
3156
3157   test -n "$ac_ct_CC" && break
3158 done
3159
3160   if test "x$ac_ct_CC" = x; then
3161     CC=""
3162   else
3163     case $cross_compiling:$ac_tool_warned in
3164 yes:)
3165 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3166 whose name does not start with the host triplet.  If you think this
3167 configuration is useful to you, please write to autoconf@gnu.org." >&5
3168 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3169 whose name does not start with the host triplet.  If you think this
3170 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3171 ac_tool_warned=yes ;;
3172 esac
3173     CC=$ac_ct_CC
3174   fi
3175 fi
3176
3177 fi
3178
3179
3180 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3181 See \`config.log' for more details." >&5
3182 echo "$as_me: error: no acceptable C compiler found in \$PATH
3183 See \`config.log' for more details." >&2;}
3184    { (exit 1); exit 1; }; }
3185
3186 # Provide some information about the compiler.
3187 echo "$as_me:$LINENO: checking for C compiler version" >&5
3188 ac_compiler=`set X $ac_compile; echo $2`
3189 { (ac_try="$ac_compiler --version >&5"
3190 case "(($ac_try" in
3191   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3192   *) ac_try_echo=$ac_try;;
3193 esac
3194 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3195   (eval "$ac_compiler --version >&5") 2>&5
3196   ac_status=$?
3197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3198   (exit $ac_status); }
3199 { (ac_try="$ac_compiler -v >&5"
3200 case "(($ac_try" in
3201   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3202   *) ac_try_echo=$ac_try;;
3203 esac
3204 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3205   (eval "$ac_compiler -v >&5") 2>&5
3206   ac_status=$?
3207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3208   (exit $ac_status); }
3209 { (ac_try="$ac_compiler -V >&5"
3210 case "(($ac_try" in
3211   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3212   *) ac_try_echo=$ac_try;;
3213 esac
3214 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3215   (eval "$ac_compiler -V >&5") 2>&5
3216   ac_status=$?
3217   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3218   (exit $ac_status); }
3219
3220 cat >conftest.$ac_ext <<_ACEOF
3221 /* confdefs.h.  */
3222 _ACEOF
3223 cat confdefs.h >>conftest.$ac_ext
3224 cat >>conftest.$ac_ext <<_ACEOF
3225 /* end confdefs.h.  */
3226
3227 int
3228 main ()
3229 {
3230
3231   ;
3232   return 0;
3233 }
3234 _ACEOF
3235 ac_clean_files_save=$ac_clean_files
3236 ac_clean_files="$ac_clean_files a.out a.exe b.out"
3237 # Try to create an executable without -o first, disregard a.out.
3238 # It will help us diagnose broken compilers, and finding out an intuition
3239 # of exeext.
3240 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3241 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
3242 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3243 #
3244 # List of possible output files, starting from the most likely.
3245 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
3246 # only as a last resort.  b.out is created by i960 compilers.
3247 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
3248 #
3249 # The IRIX 6 linker writes into existing files which may not be
3250 # executable, retaining their permissions.  Remove them first so a
3251 # subsequent execution test works.
3252 ac_rmfiles=
3253 for ac_file in $ac_files
3254 do
3255   case $ac_file in
3256     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3257     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3258   esac
3259 done
3260 rm -f $ac_rmfiles
3261
3262 if { (ac_try="$ac_link_default"
3263 case "(($ac_try" in
3264   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3265   *) ac_try_echo=$ac_try;;
3266 esac
3267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3268   (eval "$ac_link_default") 2>&5
3269   ac_status=$?
3270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3271   (exit $ac_status); }; then
3272   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3273 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3274 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3275 # so that the user can short-circuit this test for compilers unknown to
3276 # Autoconf.
3277 for ac_file in $ac_files ''
3278 do
3279   test -f "$ac_file" || continue
3280   case $ac_file in
3281     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
3282         ;;
3283     [ab].out )
3284         # We found the default executable, but exeext='' is most
3285         # certainly right.
3286         break;;
3287     *.* )
3288         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3289         then :; else
3290            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3291         fi
3292         # We set ac_cv_exeext here because the later test for it is not
3293         # safe: cross compilers may not add the suffix if given an `-o'
3294         # argument, so we may need to know it at that point already.
3295         # Even if this section looks crufty: it has the advantage of
3296         # actually working.
3297         break;;
3298     * )
3299         break;;
3300   esac
3301 done
3302 test "$ac_cv_exeext" = no && ac_cv_exeext=
3303
3304 else
3305   ac_file=''
3306 fi
3307
3308 { echo "$as_me:$LINENO: result: $ac_file" >&5
3309 echo "${ECHO_T}$ac_file" >&6; }
3310 if test -z "$ac_file"; then
3311   echo "$as_me: failed program was:" >&5
3312 sed 's/^/| /' conftest.$ac_ext >&5
3313
3314 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3315 See \`config.log' for more details." >&5
3316 echo "$as_me: error: C compiler cannot create executables
3317 See \`config.log' for more details." >&2;}
3318    { (exit 77); exit 77; }; }
3319 fi
3320
3321 ac_exeext=$ac_cv_exeext
3322
3323 # Check that the compiler produces executables we can run.  If not, either
3324 # the compiler is broken, or we cross compile.
3325 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3326 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3327 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3328 # If not cross compiling, check that we can run a simple program.
3329 if test "$cross_compiling" != yes; then
3330   if { ac_try='./$ac_file'
3331   { (case "(($ac_try" in
3332   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3333   *) ac_try_echo=$ac_try;;
3334 esac
3335 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3336   (eval "$ac_try") 2>&5
3337   ac_status=$?
3338   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3339   (exit $ac_status); }; }; then
3340     cross_compiling=no
3341   else
3342     if test "$cross_compiling" = maybe; then
3343         cross_compiling=yes
3344     else
3345         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3346 If you meant to cross compile, use \`--host'.
3347 See \`config.log' for more details." >&5
3348 echo "$as_me: error: cannot run C compiled programs.
3349 If you meant to cross compile, use \`--host'.
3350 See \`config.log' for more details." >&2;}
3351    { (exit 1); exit 1; }; }
3352     fi
3353   fi
3354 fi
3355 { echo "$as_me:$LINENO: result: yes" >&5
3356 echo "${ECHO_T}yes" >&6; }
3357
3358 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3359 ac_clean_files=$ac_clean_files_save
3360 # Check that the compiler produces executables we can run.  If not, either
3361 # the compiler is broken, or we cross compile.
3362 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3363 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3364 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
3365 echo "${ECHO_T}$cross_compiling" >&6; }
3366
3367 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
3368 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3369 if { (ac_try="$ac_link"
3370 case "(($ac_try" in
3371   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3372   *) ac_try_echo=$ac_try;;
3373 esac
3374 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3375   (eval "$ac_link") 2>&5
3376   ac_status=$?
3377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3378   (exit $ac_status); }; then
3379   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3380 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3381 # work properly (i.e., refer to `conftest.exe'), while it won't with
3382 # `rm'.
3383 for ac_file in conftest.exe conftest conftest.*; do
3384   test -f "$ac_file" || continue
3385   case $ac_file in
3386     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3387     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3388           break;;
3389     * ) break;;
3390   esac
3391 done
3392 else
3393   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3394 See \`config.log' for more details." >&5
3395 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3396 See \`config.log' for more details." >&2;}
3397    { (exit 1); exit 1; }; }
3398 fi
3399
3400 rm -f conftest$ac_cv_exeext
3401 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3402 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3403
3404 rm -f conftest.$ac_ext
3405 EXEEXT=$ac_cv_exeext
3406 ac_exeext=$EXEEXT
3407 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3408 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3409 if test "${ac_cv_objext+set}" = set; then
3410   echo $ECHO_N "(cached) $ECHO_C" >&6
3411 else
3412   cat >conftest.$ac_ext <<_ACEOF
3413 /* confdefs.h.  */
3414 _ACEOF
3415 cat confdefs.h >>conftest.$ac_ext
3416 cat >>conftest.$ac_ext <<_ACEOF
3417 /* end confdefs.h.  */
3418
3419 int
3420 main ()
3421 {
3422
3423   ;
3424   return 0;
3425 }
3426 _ACEOF
3427 rm -f conftest.o conftest.obj
3428 if { (ac_try="$ac_compile"
3429 case "(($ac_try" in
3430   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3431   *) ac_try_echo=$ac_try;;
3432 esac
3433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3434   (eval "$ac_compile") 2>&5
3435   ac_status=$?
3436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3437   (exit $ac_status); }; then
3438   for ac_file in conftest.o conftest.obj conftest.*; do
3439   test -f "$ac_file" || continue;
3440   case $ac_file in
3441     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3442     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3443        break;;
3444   esac
3445 done
3446 else
3447   echo "$as_me: failed program was:" >&5
3448 sed 's/^/| /' conftest.$ac_ext >&5
3449
3450 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3451 See \`config.log' for more details." >&5
3452 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3453 See \`config.log' for more details." >&2;}
3454    { (exit 1); exit 1; }; }
3455 fi
3456
3457 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3458 fi
3459 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3460 echo "${ECHO_T}$ac_cv_objext" >&6; }
3461 OBJEXT=$ac_cv_objext
3462 ac_objext=$OBJEXT
3463 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3464 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3465 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3466   echo $ECHO_N "(cached) $ECHO_C" >&6
3467 else
3468   cat >conftest.$ac_ext <<_ACEOF
3469 /* confdefs.h.  */
3470 _ACEOF
3471 cat confdefs.h >>conftest.$ac_ext
3472 cat >>conftest.$ac_ext <<_ACEOF
3473 /* end confdefs.h.  */
3474
3475 int
3476 main ()
3477 {
3478 #ifndef __GNUC__
3479        choke me
3480 #endif
3481
3482   ;
3483   return 0;
3484 }
3485 _ACEOF
3486 rm -f conftest.$ac_objext
3487 if { (ac_try="$ac_compile"
3488 case "(($ac_try" in
3489   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3490   *) ac_try_echo=$ac_try;;
3491 esac
3492 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3493   (eval "$ac_compile") 2>conftest.er1
3494   ac_status=$?
3495   grep -v '^ *+' conftest.er1 >conftest.err
3496   rm -f conftest.er1
3497   cat conftest.err >&5
3498   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3499   (exit $ac_status); } && {
3500          test -z "$ac_c_werror_flag" ||
3501          test ! -s conftest.err
3502        } && test -s conftest.$ac_objext; then
3503   ac_compiler_gnu=yes
3504 else
3505   echo "$as_me: failed program was:" >&5
3506 sed 's/^/| /' conftest.$ac_ext >&5
3507
3508         ac_compiler_gnu=no
3509 fi
3510
3511 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3512 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3513
3514 fi
3515 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3516 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3517 GCC=`test $ac_compiler_gnu = yes && echo yes`
3518 ac_test_CFLAGS=${CFLAGS+set}
3519 ac_save_CFLAGS=$CFLAGS
3520 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3521 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3522 if test "${ac_cv_prog_cc_g+set}" = set; then
3523   echo $ECHO_N "(cached) $ECHO_C" >&6
3524 else
3525   ac_save_c_werror_flag=$ac_c_werror_flag
3526    ac_c_werror_flag=yes
3527    ac_cv_prog_cc_g=no
3528    CFLAGS="-g"
3529    cat >conftest.$ac_ext <<_ACEOF
3530 /* confdefs.h.  */
3531 _ACEOF
3532 cat confdefs.h >>conftest.$ac_ext
3533 cat >>conftest.$ac_ext <<_ACEOF
3534 /* end confdefs.h.  */
3535
3536 int
3537 main ()
3538 {
3539
3540   ;
3541   return 0;
3542 }
3543 _ACEOF
3544 rm -f conftest.$ac_objext
3545 if { (ac_try="$ac_compile"
3546 case "(($ac_try" in
3547   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3548   *) ac_try_echo=$ac_try;;
3549 esac
3550 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3551   (eval "$ac_compile") 2>conftest.er1
3552   ac_status=$?
3553   grep -v '^ *+' conftest.er1 >conftest.err
3554   rm -f conftest.er1
3555   cat conftest.err >&5
3556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3557   (exit $ac_status); } && {
3558          test -z "$ac_c_werror_flag" ||
3559          test ! -s conftest.err
3560        } && test -s conftest.$ac_objext; then
3561   ac_cv_prog_cc_g=yes
3562 else
3563   echo "$as_me: failed program was:" >&5
3564 sed 's/^/| /' conftest.$ac_ext >&5
3565
3566         CFLAGS=""
3567       cat >conftest.$ac_ext <<_ACEOF
3568 /* confdefs.h.  */
3569 _ACEOF
3570 cat confdefs.h >>conftest.$ac_ext
3571 cat >>conftest.$ac_ext <<_ACEOF
3572 /* end confdefs.h.  */
3573
3574 int
3575 main ()
3576 {
3577
3578   ;
3579   return 0;
3580 }
3581 _ACEOF
3582 rm -f conftest.$ac_objext
3583 if { (ac_try="$ac_compile"
3584 case "(($ac_try" in
3585   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3586   *) ac_try_echo=$ac_try;;
3587 esac
3588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3589   (eval "$ac_compile") 2>conftest.er1
3590   ac_status=$?
3591   grep -v '^ *+' conftest.er1 >conftest.err
3592   rm -f conftest.er1
3593   cat conftest.err >&5
3594   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3595   (exit $ac_status); } && {
3596          test -z "$ac_c_werror_flag" ||
3597          test ! -s conftest.err
3598        } && test -s conftest.$ac_objext; then
3599   :
3600 else
3601   echo "$as_me: failed program was:" >&5
3602 sed 's/^/| /' conftest.$ac_ext >&5
3603
3604         ac_c_werror_flag=$ac_save_c_werror_flag
3605          CFLAGS="-g"
3606          cat >conftest.$ac_ext <<_ACEOF
3607 /* confdefs.h.  */
3608 _ACEOF
3609 cat confdefs.h >>conftest.$ac_ext
3610 cat >>conftest.$ac_ext <<_ACEOF
3611 /* end confdefs.h.  */
3612
3613 int
3614 main ()
3615 {
3616
3617   ;
3618   return 0;
3619 }
3620 _ACEOF
3621 rm -f conftest.$ac_objext
3622 if { (ac_try="$ac_compile"
3623 case "(($ac_try" in
3624   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3625   *) ac_try_echo=$ac_try;;
3626 esac
3627 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3628   (eval "$ac_compile") 2>conftest.er1
3629   ac_status=$?
3630   grep -v '^ *+' conftest.er1 >conftest.err
3631   rm -f conftest.er1
3632   cat conftest.err >&5
3633   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3634   (exit $ac_status); } && {
3635          test -z "$ac_c_werror_flag" ||
3636          test ! -s conftest.err
3637        } && test -s conftest.$ac_objext; then
3638   ac_cv_prog_cc_g=yes
3639 else
3640   echo "$as_me: failed program was:" >&5
3641 sed 's/^/| /' conftest.$ac_ext >&5
3642
3643
3644 fi
3645
3646 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3647 fi
3648
3649 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3650 fi
3651
3652 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3653    ac_c_werror_flag=$ac_save_c_werror_flag
3654 fi
3655 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3656 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3657 if test "$ac_test_CFLAGS" = set; then
3658   CFLAGS=$ac_save_CFLAGS
3659 elif test $ac_cv_prog_cc_g = yes; then
3660   if test "$GCC" = yes; then
3661     CFLAGS="-g -O2"
3662   else
3663     CFLAGS="-g"
3664   fi
3665 else
3666   if test "$GCC" = yes; then
3667     CFLAGS="-O2"
3668   else
3669     CFLAGS=
3670   fi
3671 fi
3672 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3673 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3674 if test "${ac_cv_prog_cc_c89+set}" = set; then
3675   echo $ECHO_N "(cached) $ECHO_C" >&6
3676 else
3677   ac_cv_prog_cc_c89=no
3678 ac_save_CC=$CC
3679 cat >conftest.$ac_ext <<_ACEOF
3680 /* confdefs.h.  */
3681 _ACEOF
3682 cat confdefs.h >>conftest.$ac_ext
3683 cat >>conftest.$ac_ext <<_ACEOF
3684 /* end confdefs.h.  */
3685 #include <stdarg.h>
3686 #include <stdio.h>
3687 #include <sys/types.h>
3688 #include <sys/stat.h>
3689 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3690 struct buf { int x; };
3691 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3692 static char *e (p, i)
3693      char **p;
3694      int i;
3695 {
3696   return p[i];
3697 }
3698 static char *f (char * (*g) (char **, int), char **p, ...)
3699 {
3700   char *s;
3701   va_list v;
3702   va_start (v,p);
3703   s = g (p, va_arg (v,int));
3704   va_end (v);
3705   return s;
3706 }
3707
3708 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3709    function prototypes and stuff, but not '\xHH' hex character constants.
3710    These don't provoke an error unfortunately, instead are silently treated
3711    as 'x'.  The following induces an error, until -std is added to get
3712    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3713    array size at least.  It's necessary to write '\x00'==0 to get something
3714    that's true only with -std.  */
3715 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3716
3717 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3718    inside strings and character constants.  */
3719 #define FOO(x) 'x'
3720 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3721
3722 int test (int i, double x);
3723 struct s1 {int (*f) (int a);};
3724 struct s2 {int (*f) (double a);};
3725 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3726 int argc;
3727 char **argv;
3728 int
3729 main ()
3730 {
3731 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3732   ;
3733   return 0;
3734 }
3735 _ACEOF
3736 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3737         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3738 do
3739   CC="$ac_save_CC $ac_arg"
3740   rm -f conftest.$ac_objext
3741 if { (ac_try="$ac_compile"
3742 case "(($ac_try" in
3743   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3744   *) ac_try_echo=$ac_try;;
3745 esac
3746 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3747   (eval "$ac_compile") 2>conftest.er1
3748   ac_status=$?
3749   grep -v '^ *+' conftest.er1 >conftest.err
3750   rm -f conftest.er1
3751   cat conftest.err >&5
3752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3753   (exit $ac_status); } && {
3754          test -z "$ac_c_werror_flag" ||
3755          test ! -s conftest.err
3756        } && test -s conftest.$ac_objext; then
3757   ac_cv_prog_cc_c89=$ac_arg
3758 else
3759   echo "$as_me: failed program was:" >&5
3760 sed 's/^/| /' conftest.$ac_ext >&5
3761
3762
3763 fi
3764
3765 rm -f core conftest.err conftest.$ac_objext
3766   test "x$ac_cv_prog_cc_c89" != "xno" && break
3767 done
3768 rm -f conftest.$ac_ext
3769 CC=$ac_save_CC
3770
3771 fi
3772 # AC_CACHE_VAL
3773 case "x$ac_cv_prog_cc_c89" in
3774   x)
3775     { echo "$as_me:$LINENO: result: none needed" >&5
3776 echo "${ECHO_T}none needed" >&6; } ;;
3777   xno)
3778     { echo "$as_me:$LINENO: result: unsupported" >&5
3779 echo "${ECHO_T}unsupported" >&6; } ;;
3780   *)
3781     CC="$CC $ac_cv_prog_cc_c89"
3782     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3783 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3784 esac
3785
3786
3787 ac_ext=c
3788 ac_cpp='$CPP $CPPFLAGS'
3789 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3790 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3791 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3792
3793 depcc="$CC"   am_compiler_list=
3794
3795 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3796 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3797 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3798   echo $ECHO_N "(cached) $ECHO_C" >&6
3799 else
3800   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3801   # We make a subdir and do the tests there.  Otherwise we can end up
3802   # making bogus files that we don't know about and never remove.  For
3803   # instance it was reported that on HP-UX the gcc test will end up
3804   # making a dummy file named `D' -- because `-MD' means `put the output
3805   # in D'.
3806   mkdir conftest.dir
3807   # Copy depcomp to subdir because otherwise we won't find it if we're
3808   # using a relative directory.
3809   cp "$am_depcomp" conftest.dir
3810   cd conftest.dir
3811   # We will build objects and dependencies in a subdirectory because
3812   # it helps to detect inapplicable dependency modes.  For instance
3813   # both Tru64's cc and ICC support -MD to output dependencies as a
3814   # side effect of compilation, but ICC will put the dependencies in
3815   # the current directory while Tru64 will put them in the object
3816   # directory.
3817   mkdir sub
3818
3819   am_cv_CC_dependencies_compiler_type=none
3820   if test "$am_compiler_list" = ""; then
3821      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3822   fi
3823   for depmode in $am_compiler_list; do
3824     # Setup a source with many dependencies, because some compilers
3825     # like to wrap large dependency lists on column 80 (with \), and
3826     # we should not choose a depcomp mode which is confused by this.
3827     #
3828     # We need to recreate these files for each test, as the compiler may
3829     # overwrite some of them when testing with obscure command lines.
3830     # This happens at least with the AIX C compiler.
3831     : > sub/conftest.c
3832     for i in 1 2 3 4 5 6; do
3833       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3834       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3835       # Solaris 8's {/usr,}/bin/sh.
3836       touch sub/conftst$i.h
3837     done
3838     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3839
3840     case $depmode in
3841     nosideeffect)
3842       # after this tag, mechanisms are not by side-effect, so they'll
3843       # only be used when explicitly requested
3844       if test "x$enable_dependency_tracking" = xyes; then
3845         continue
3846       else
3847         break
3848       fi
3849       ;;
3850     none) break ;;
3851     esac
3852     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3853     # mode.  It turns out that the SunPro C++ compiler does not properly
3854     # handle `-M -o', and we need to detect this.
3855     if depmode=$depmode \
3856        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3857        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3858        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3859          >/dev/null 2>conftest.err &&
3860        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3861        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3862        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3863        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3864       # icc doesn't choke on unknown options, it will just issue warnings
3865       # or remarks (even with -Werror).  So we grep stderr for any message
3866       # that says an option was ignored or not supported.
3867       # When given -MP, icc 7.0 and 7.1 complain thusly:
3868       #   icc: Command line warning: ignoring option '-M'; no argument required
3869       # The diagnosis changed in icc 8.0:
3870       #   icc: Command line remark: option '-MP' not supported
3871       if (grep 'ignoring option' conftest.err ||
3872           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3873         am_cv_CC_dependencies_compiler_type=$depmode
3874         break
3875       fi
3876     fi
3877   done
3878
3879   cd ..
3880   rm -rf conftest.dir
3881 else
3882   am_cv_CC_dependencies_compiler_type=none
3883 fi
3884
3885 fi
3886 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3887 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3888 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3889
3890  if
3891   test "x$enable_dependency_tracking" != xno \
3892   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3893   am__fastdepCC_TRUE=
3894   am__fastdepCC_FALSE='#'
3895 else
3896   am__fastdepCC_TRUE='#'
3897   am__fastdepCC_FALSE=
3898 fi
3899
3900
3901
3902
3903   TCPW_MSG="no"
3904
3905 # Check whether --with-tcp-wrappers was given.
3906 if test "${with_tcp_wrappers+set}" = set; then
3907   withval=$with_tcp_wrappers; with_tcpw=$withval
3908 else
3909   with_tcpw=yes
3910 fi
3911
3912         if test "x$with_tcpw" != "xno" ; then
3913             saved_LIBS="$LIBS"
3914             saved_LDFLAGS="$LDFLAGS"
3915             saved_CPPFLAGS="$CPPFLAGS"
3916             if test -n "${with_tcpw}" -a "${with_tcpw}" != "yes"; then
3917                 if test -d "${with_tcpw}/lib"; then
3918                     if test -n "${need_dash_r}"; then
3919                         LDFLAGS="-L${with_tcpw}/lib -R${with_tcpw}/lib ${LDFLAGS}"
3920                     else
3921                         LDFLAGS="-L${with_tcpw}/lib ${LDFLAGS}"
3922                     fi
3923                 else
3924                     if test -n "${need_dash_r}"; then
3925                         LDFLAGS="-L${with_tcpw} -R${with_tcpw} ${LDFLAGS}"
3926                     else
3927                         LDFLAGS="-L${with_tcpw} ${LDFLAGS}"
3928                     fi
3929                 fi
3930                 if test -d "${with_tcpw}/include"; then
3931                     CPPFLAGS="-I${with_tcpw}/include ${CPPFLAGS}"
3932                 else
3933                     CPPFLAGS="-I${with_tcpw} ${CPPFLAGS}"
3934                 fi
3935             fi
3936             LIBWRAP="-lwrap"
3937             LIBS="$LIBWRAP $LIBS"
3938             { echo "$as_me:$LINENO: checking for libwrap" >&5
3939 echo $ECHO_N "checking for libwrap... $ECHO_C" >&6; }
3940             cat >conftest.$ac_ext <<_ACEOF
3941 /* confdefs.h.  */
3942 _ACEOF
3943 cat confdefs.h >>conftest.$ac_ext
3944 cat >>conftest.$ac_ext <<_ACEOF
3945 /* end confdefs.h.  */
3946
3947                 #include <tcpd.h>
3948                 int deny_severity = 0, allow_severity = 0;
3949
3950 int
3951 main ()
3952 {
3953 hosts_access(0);
3954   ;
3955   return 0;
3956 }
3957 _ACEOF
3958 rm -f conftest.$ac_objext conftest$ac_exeext
3959 if { (ac_try="$ac_link"
3960 case "(($ac_try" in
3961   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3962   *) ac_try_echo=$ac_try;;
3963 esac
3964 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3965   (eval "$ac_link") 2>conftest.er1
3966   ac_status=$?
3967   grep -v '^ *+' conftest.er1 >conftest.err
3968   rm -f conftest.er1
3969   cat conftest.err >&5
3970   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3971   (exit $ac_status); } && {
3972          test -z "$ac_c_werror_flag" ||
3973          test ! -s conftest.err
3974        } && test -s conftest$ac_exeext &&
3975        $as_test_x conftest$ac_exeext; then
3976
3977                 { echo "$as_me:$LINENO: result: yes" >&5
3978 echo "${ECHO_T}yes" >&6; }
3979
3980
3981 cat >>confdefs.h <<\_ACEOF
3982 #define LIBWRAP 1
3983 _ACEOF
3984
3985
3986 cat >>confdefs.h <<\_ACEOF
3987 #define HAVE_LIBWRAP 1
3988 _ACEOF
3989
3990
3991 cat >>confdefs.h <<\_ACEOF
3992 #define HAVE_TCP_WRAPPER 1
3993 _ACEOF
3994
3995                 TCPW_MSG="yes"
3996
3997 else
3998   echo "$as_me: failed program was:" >&5
3999 sed 's/^/| /' conftest.$ac_ext >&5
4000
4001
4002                 { { echo "$as_me:$LINENO: error: *** libwrap missing" >&5
4003 echo "$as_me: error: *** libwrap missing" >&2;}
4004    { (exit 1); exit 1; }; }
4005
4006
4007 fi
4008
4009 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4010       conftest$ac_exeext conftest.$ac_ext
4011             LIBS="$saved_LIBS"
4012         fi
4013
4014
4015
4016
4017
4018 # Arrange for large-file support
4019 # Check whether --enable-largefile was given.
4020 if test "${enable_largefile+set}" = set; then
4021   enableval=$enable_largefile;
4022 fi
4023
4024 if test "$enable_largefile" != no; then
4025
4026   { echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
4027 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6; }
4028 if test "${ac_cv_sys_largefile_CC+set}" = set; then
4029   echo $ECHO_N "(cached) $ECHO_C" >&6
4030 else
4031   ac_cv_sys_largefile_CC=no
4032      if test "$GCC" != yes; then
4033        ac_save_CC=$CC
4034        while :; do
4035          # IRIX 6.2 and later do not support large files by default,
4036          # so use the C compiler's -n32 option if that helps.
4037          cat >conftest.$ac_ext <<_ACEOF
4038 /* confdefs.h.  */
4039 _ACEOF
4040 cat confdefs.h >>conftest.$ac_ext
4041 cat >>conftest.$ac_ext <<_ACEOF
4042 /* end confdefs.h.  */
4043 #include <sys/types.h>
4044  /* Check that off_t can represent 2**63 - 1 correctly.
4045     We can't simply define LARGE_OFF_T to be 9223372036854775807,
4046     since some C++ compilers masquerading as C compilers
4047     incorrectly reject 9223372036854775807.  */
4048 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4049   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4050                        && LARGE_OFF_T % 2147483647 == 1)
4051                       ? 1 : -1];
4052 int
4053 main ()
4054 {
4055
4056   ;
4057   return 0;
4058 }
4059 _ACEOF
4060          rm -f conftest.$ac_objext
4061 if { (ac_try="$ac_compile"
4062 case "(($ac_try" in
4063   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4064   *) ac_try_echo=$ac_try;;
4065 esac
4066 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4067   (eval "$ac_compile") 2>conftest.er1
4068   ac_status=$?
4069   grep -v '^ *+' conftest.er1 >conftest.err
4070   rm -f conftest.er1
4071   cat conftest.err >&5
4072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4073   (exit $ac_status); } && {
4074          test -z "$ac_c_werror_flag" ||
4075          test ! -s conftest.err
4076        } && test -s conftest.$ac_objext; then
4077   break
4078 else
4079   echo "$as_me: failed program was:" >&5
4080 sed 's/^/| /' conftest.$ac_ext >&5
4081
4082
4083 fi
4084
4085 rm -f core conftest.err conftest.$ac_objext
4086          CC="$CC -n32"
4087          rm -f conftest.$ac_objext
4088 if { (ac_try="$ac_compile"
4089 case "(($ac_try" in
4090   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4091   *) ac_try_echo=$ac_try;;
4092 esac
4093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4094   (eval "$ac_compile") 2>conftest.er1
4095   ac_status=$?
4096   grep -v '^ *+' conftest.er1 >conftest.err
4097   rm -f conftest.er1
4098   cat conftest.err >&5
4099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4100   (exit $ac_status); } && {
4101          test -z "$ac_c_werror_flag" ||
4102          test ! -s conftest.err
4103        } && test -s conftest.$ac_objext; then
4104   ac_cv_sys_largefile_CC=' -n32'; break
4105 else
4106   echo "$as_me: failed program was:" >&5
4107 sed 's/^/| /' conftest.$ac_ext >&5
4108
4109
4110 fi
4111
4112 rm -f core conftest.err conftest.$ac_objext
4113          break
4114        done
4115        CC=$ac_save_CC
4116        rm -f conftest.$ac_ext
4117     fi
4118 fi
4119 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
4120 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; }
4121   if test "$ac_cv_sys_largefile_CC" != no; then
4122     CC=$CC$ac_cv_sys_largefile_CC
4123   fi
4124
4125   { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4126 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
4127 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
4128   echo $ECHO_N "(cached) $ECHO_C" >&6
4129 else
4130   while :; do
4131   cat >conftest.$ac_ext <<_ACEOF
4132 /* confdefs.h.  */
4133 _ACEOF
4134 cat confdefs.h >>conftest.$ac_ext
4135 cat >>conftest.$ac_ext <<_ACEOF
4136 /* end confdefs.h.  */
4137 #include <sys/types.h>
4138  /* Check that off_t can represent 2**63 - 1 correctly.
4139     We can't simply define LARGE_OFF_T to be 9223372036854775807,
4140     since some C++ compilers masquerading as C compilers
4141     incorrectly reject 9223372036854775807.  */
4142 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4143   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4144                        && LARGE_OFF_T % 2147483647 == 1)
4145                       ? 1 : -1];
4146 int
4147 main ()
4148 {
4149
4150   ;
4151   return 0;
4152 }
4153 _ACEOF
4154 rm -f conftest.$ac_objext
4155 if { (ac_try="$ac_compile"
4156 case "(($ac_try" in
4157   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4158   *) ac_try_echo=$ac_try;;
4159 esac
4160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4161   (eval "$ac_compile") 2>conftest.er1
4162   ac_status=$?
4163   grep -v '^ *+' conftest.er1 >conftest.err
4164   rm -f conftest.er1
4165   cat conftest.err >&5
4166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4167   (exit $ac_status); } && {
4168          test -z "$ac_c_werror_flag" ||
4169          test ! -s conftest.err
4170        } && test -s conftest.$ac_objext; then
4171   ac_cv_sys_file_offset_bits=no; break
4172 else
4173   echo "$as_me: failed program was:" >&5
4174 sed 's/^/| /' conftest.$ac_ext >&5
4175
4176
4177 fi
4178
4179 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4180   cat >conftest.$ac_ext <<_ACEOF
4181 /* confdefs.h.  */
4182 _ACEOF
4183 cat confdefs.h >>conftest.$ac_ext
4184 cat >>conftest.$ac_ext <<_ACEOF
4185 /* end confdefs.h.  */
4186 #define _FILE_OFFSET_BITS 64
4187 #include <sys/types.h>
4188  /* Check that off_t can represent 2**63 - 1 correctly.
4189     We can't simply define LARGE_OFF_T to be 9223372036854775807,
4190     since some C++ compilers masquerading as C compilers
4191     incorrectly reject 9223372036854775807.  */
4192 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4193   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4194                        && LARGE_OFF_T % 2147483647 == 1)
4195                       ? 1 : -1];
4196 int
4197 main ()
4198 {
4199
4200   ;
4201   return 0;
4202 }
4203 _ACEOF
4204 rm -f conftest.$ac_objext
4205 if { (ac_try="$ac_compile"
4206 case "(($ac_try" in
4207   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4208   *) ac_try_echo=$ac_try;;
4209 esac
4210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4211   (eval "$ac_compile") 2>conftest.er1
4212   ac_status=$?
4213   grep -v '^ *+' conftest.er1 >conftest.err
4214   rm -f conftest.er1
4215   cat conftest.err >&5
4216   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4217   (exit $ac_status); } && {
4218          test -z "$ac_c_werror_flag" ||
4219          test ! -s conftest.err
4220        } && test -s conftest.$ac_objext; then
4221   ac_cv_sys_file_offset_bits=64; break
4222 else
4223   echo "$as_me: failed program was:" >&5
4224 sed 's/^/| /' conftest.$ac_ext >&5
4225
4226
4227 fi
4228
4229 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4230   ac_cv_sys_file_offset_bits=unknown
4231   break
4232 done
4233 fi
4234 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
4235 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
4236 case $ac_cv_sys_file_offset_bits in #(
4237   no | unknown) ;;
4238   *)
4239 cat >>confdefs.h <<_ACEOF
4240 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4241 _ACEOF
4242 ;;
4243 esac
4244 rm -f conftest*
4245   if test $ac_cv_sys_file_offset_bits = unknown; then
4246     { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
4247 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
4248 if test "${ac_cv_sys_large_files+set}" = set; then
4249   echo $ECHO_N "(cached) $ECHO_C" >&6
4250 else
4251   while :; do
4252   cat >conftest.$ac_ext <<_ACEOF
4253 /* confdefs.h.  */
4254 _ACEOF
4255 cat confdefs.h >>conftest.$ac_ext
4256 cat >>conftest.$ac_ext <<_ACEOF
4257 /* end confdefs.h.  */
4258 #include <sys/types.h>
4259  /* Check that off_t can represent 2**63 - 1 correctly.
4260     We can't simply define LARGE_OFF_T to be 9223372036854775807,
4261     since some C++ compilers masquerading as C compilers
4262     incorrectly reject 9223372036854775807.  */
4263 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4264   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4265                        && LARGE_OFF_T % 2147483647 == 1)
4266                       ? 1 : -1];
4267 int
4268 main ()
4269 {
4270
4271   ;
4272   return 0;
4273 }
4274 _ACEOF
4275 rm -f conftest.$ac_objext
4276 if { (ac_try="$ac_compile"
4277 case "(($ac_try" in
4278   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4279   *) ac_try_echo=$ac_try;;
4280 esac
4281 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4282   (eval "$ac_compile") 2>conftest.er1
4283   ac_status=$?
4284   grep -v '^ *+' conftest.er1 >conftest.err
4285   rm -f conftest.er1
4286   cat conftest.err >&5
4287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4288   (exit $ac_status); } && {
4289          test -z "$ac_c_werror_flag" ||
4290          test ! -s conftest.err
4291        } && test -s conftest.$ac_objext; then
4292   ac_cv_sys_large_files=no; break
4293 else
4294   echo "$as_me: failed program was:" >&5
4295 sed 's/^/| /' conftest.$ac_ext >&5
4296
4297
4298 fi
4299
4300 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4301   cat >conftest.$ac_ext <<_ACEOF
4302 /* confdefs.h.  */
4303 _ACEOF
4304 cat confdefs.h >>conftest.$ac_ext
4305 cat >>conftest.$ac_ext <<_ACEOF
4306 /* end confdefs.h.  */
4307 #define _LARGE_FILES 1
4308 #include <sys/types.h>
4309  /* Check that off_t can represent 2**63 - 1 correctly.
4310     We can't simply define LARGE_OFF_T to be 9223372036854775807,
4311     since some C++ compilers masquerading as C compilers
4312     incorrectly reject 9223372036854775807.  */
4313 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4314   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4315                        && LARGE_OFF_T % 2147483647 == 1)
4316                       ? 1 : -1];
4317 int
4318 main ()
4319 {
4320
4321   ;
4322   return 0;
4323 }
4324 _ACEOF
4325 rm -f conftest.$ac_objext
4326 if { (ac_try="$ac_compile"
4327 case "(($ac_try" in
4328   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4329   *) ac_try_echo=$ac_try;;
4330 esac
4331 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4332   (eval "$ac_compile") 2>conftest.er1
4333   ac_status=$?
4334   grep -v '^ *+' conftest.er1 >conftest.err
4335   rm -f conftest.er1
4336   cat conftest.err >&5
4337   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4338   (exit $ac_status); } && {
4339          test -z "$ac_c_werror_flag" ||
4340          test ! -s conftest.err
4341        } && test -s conftest.$ac_objext; then
4342   ac_cv_sys_large_files=1; break
4343 else
4344   echo "$as_me: failed program was:" >&5
4345 sed 's/^/| /' conftest.$ac_ext >&5
4346
4347
4348 fi
4349
4350 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4351   ac_cv_sys_large_files=unknown
4352   break
4353 done
4354 fi
4355 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
4356 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
4357 case $ac_cv_sys_large_files in #(
4358   no | unknown) ;;
4359   *)
4360 cat >>confdefs.h <<_ACEOF
4361 #define _LARGE_FILES $ac_cv_sys_large_files
4362 _ACEOF
4363 ;;
4364 esac
4365 rm -f conftest*
4366   fi
4367 fi
4368
4369
4370
4371 ac_config_headers="$ac_config_headers support/include/config.h"
4372
4373
4374 # Checks for programs.
4375 ac_ext=cpp
4376 ac_cpp='$CXXCPP $CPPFLAGS'
4377 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4378 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4379 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4380 if test -z "$CXX"; then
4381   if test -n "$CCC"; then
4382     CXX=$CCC
4383   else
4384     if test -n "$ac_tool_prefix"; then
4385   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4386   do
4387     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4388 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4389 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4390 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4391 if test "${ac_cv_prog_CXX+set}" = set; then
4392   echo $ECHO_N "(cached) $ECHO_C" >&6
4393 else
4394   if test -n "$CXX"; then
4395   ac_cv_prog_CXX="$CXX" # Let the user override the test.
4396 else
4397 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4398 for as_dir in $PATH
4399 do
4400   IFS=$as_save_IFS
4401   test -z "$as_dir" && as_dir=.
4402   for ac_exec_ext in '' $ac_executable_extensions; do
4403   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4404     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4405     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4406     break 2
4407   fi
4408 done
4409 done
4410 IFS=$as_save_IFS
4411
4412 fi
4413 fi
4414 CXX=$ac_cv_prog_CXX
4415 if test -n "$CXX"; then
4416   { echo "$as_me:$LINENO: result: $CXX" >&5
4417 echo "${ECHO_T}$CXX" >&6; }
4418 else
4419   { echo "$as_me:$LINENO: result: no" >&5
4420 echo "${ECHO_T}no" >&6; }
4421 fi
4422
4423
4424     test -n "$CXX" && break
4425   done
4426 fi
4427 if test -z "$CXX"; then
4428   ac_ct_CXX=$CXX
4429   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4430 do
4431   # Extract the first word of "$ac_prog", so it can be a program name with args.
4432 set dummy $ac_prog; ac_word=$2
4433 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4434 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4435 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
4436   echo $ECHO_N "(cached) $ECHO_C" >&6
4437 else
4438   if test -n "$ac_ct_CXX"; then
4439   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4440 else
4441 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4442 for as_dir in $PATH
4443 do
4444   IFS=$as_save_IFS
4445   test -z "$as_dir" && as_dir=.
4446   for ac_exec_ext in '' $ac_executable_extensions; do
4447   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4448     ac_cv_prog_ac_ct_CXX="$ac_prog"
4449     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4450     break 2
4451   fi
4452 done
4453 done
4454 IFS=$as_save_IFS
4455
4456 fi
4457 fi
4458 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4459 if test -n "$ac_ct_CXX"; then
4460   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
4461 echo "${ECHO_T}$ac_ct_CXX" >&6; }
4462 else
4463   { echo "$as_me:$LINENO: result: no" >&5
4464 echo "${ECHO_T}no" >&6; }
4465 fi
4466
4467
4468   test -n "$ac_ct_CXX" && break
4469 done
4470
4471   if test "x$ac_ct_CXX" = x; then
4472     CXX="g++"
4473   else
4474     case $cross_compiling:$ac_tool_warned in
4475 yes:)
4476 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4477 whose name does not start with the host triplet.  If you think this
4478 configuration is useful to you, please write to autoconf@gnu.org." >&5
4479 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4480 whose name does not start with the host triplet.  If you think this
4481 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4482 ac_tool_warned=yes ;;
4483 esac
4484     CXX=$ac_ct_CXX
4485   fi
4486 fi
4487
4488   fi
4489 fi
4490 # Provide some information about the compiler.
4491 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
4492 ac_compiler=`set X $ac_compile; echo $2`
4493 { (ac_try="$ac_compiler --version >&5"
4494 case "(($ac_try" in
4495   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4496   *) ac_try_echo=$ac_try;;
4497 esac
4498 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4499   (eval "$ac_compiler --version >&5") 2>&5
4500   ac_status=$?
4501   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4502   (exit $ac_status); }
4503 { (ac_try="$ac_compiler -v >&5"
4504 case "(($ac_try" in
4505   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4506   *) ac_try_echo=$ac_try;;
4507 esac
4508 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4509   (eval "$ac_compiler -v >&5") 2>&5
4510   ac_status=$?
4511   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4512   (exit $ac_status); }
4513 { (ac_try="$ac_compiler -V >&5"
4514 case "(($ac_try" in
4515   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4516   *) ac_try_echo=$ac_try;;
4517 esac
4518 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4519   (eval "$ac_compiler -V >&5") 2>&5
4520   ac_status=$?
4521   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4522   (exit $ac_status); }
4523
4524 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
4525 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
4526 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
4527   echo $ECHO_N "(cached) $ECHO_C" >&6
4528 else
4529   cat >conftest.$ac_ext <<_ACEOF
4530 /* confdefs.h.  */
4531 _ACEOF
4532 cat confdefs.h >>conftest.$ac_ext
4533 cat >>conftest.$ac_ext <<_ACEOF
4534 /* end confdefs.h.  */
4535
4536 int
4537 main ()
4538 {
4539 #ifndef __GNUC__
4540        choke me
4541 #endif
4542
4543   ;
4544   return 0;
4545 }
4546 _ACEOF
4547 rm -f conftest.$ac_objext
4548 if { (ac_try="$ac_compile"
4549 case "(($ac_try" in
4550   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4551   *) ac_try_echo=$ac_try;;
4552 esac
4553 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4554   (eval "$ac_compile") 2>conftest.er1
4555   ac_status=$?
4556   grep -v '^ *+' conftest.er1 >conftest.err
4557   rm -f conftest.er1
4558   cat conftest.err >&5
4559   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4560   (exit $ac_status); } && {
4561          test -z "$ac_cxx_werror_flag" ||
4562          test ! -s conftest.err
4563        } && test -s conftest.$ac_objext; then
4564   ac_compiler_gnu=yes
4565 else
4566   echo "$as_me: failed program was:" >&5
4567 sed 's/^/| /' conftest.$ac_ext >&5
4568
4569         ac_compiler_gnu=no
4570 fi
4571
4572 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4573 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4574
4575 fi
4576 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4577 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
4578 GXX=`test $ac_compiler_gnu = yes && echo yes`
4579 ac_test_CXXFLAGS=${CXXFLAGS+set}
4580 ac_save_CXXFLAGS=$CXXFLAGS
4581 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4582 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
4583 if test "${ac_cv_prog_cxx_g+set}" = set; then
4584   echo $ECHO_N "(cached) $ECHO_C" >&6
4585 else
4586   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4587    ac_cxx_werror_flag=yes
4588    ac_cv_prog_cxx_g=no
4589    CXXFLAGS="-g"
4590    cat >conftest.$ac_ext <<_ACEOF
4591 /* confdefs.h.  */
4592 _ACEOF
4593 cat confdefs.h >>conftest.$ac_ext
4594 cat >>conftest.$ac_ext <<_ACEOF
4595 /* end confdefs.h.  */
4596
4597 int
4598 main ()
4599 {
4600
4601   ;
4602   return 0;
4603 }
4604 _ACEOF
4605 rm -f conftest.$ac_objext
4606 if { (ac_try="$ac_compile"
4607 case "(($ac_try" in
4608   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4609   *) ac_try_echo=$ac_try;;
4610 esac
4611 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4612   (eval "$ac_compile") 2>conftest.er1
4613   ac_status=$?
4614   grep -v '^ *+' conftest.er1 >conftest.err
4615   rm -f conftest.er1
4616   cat conftest.err >&5
4617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4618   (exit $ac_status); } && {
4619          test -z "$ac_cxx_werror_flag" ||
4620          test ! -s conftest.err
4621        } && test -s conftest.$ac_objext; then
4622   ac_cv_prog_cxx_g=yes
4623 else
4624   echo "$as_me: failed program was:" >&5
4625 sed 's/^/| /' conftest.$ac_ext >&5
4626
4627         CXXFLAGS=""
4628       cat >conftest.$ac_ext <<_ACEOF
4629 /* confdefs.h.  */
4630 _ACEOF
4631 cat confdefs.h >>conftest.$ac_ext
4632 cat >>conftest.$ac_ext <<_ACEOF
4633 /* end confdefs.h.  */
4634
4635 int
4636 main ()
4637 {
4638
4639   ;
4640   return 0;
4641 }
4642 _ACEOF
4643 rm -f conftest.$ac_objext
4644 if { (ac_try="$ac_compile"
4645 case "(($ac_try" in
4646   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4647   *) ac_try_echo=$ac_try;;
4648 esac
4649 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4650   (eval "$ac_compile") 2>conftest.er1
4651   ac_status=$?
4652   grep -v '^ *+' conftest.er1 >conftest.err
4653   rm -f conftest.er1
4654   cat conftest.err >&5
4655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4656   (exit $ac_status); } && {
4657          test -z "$ac_cxx_werror_flag" ||
4658          test ! -s conftest.err
4659        } && test -s conftest.$ac_objext; then
4660   :
4661 else
4662   echo "$as_me: failed program was:" >&5
4663 sed 's/^/| /' conftest.$ac_ext >&5
4664
4665         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4666          CXXFLAGS="-g"
4667          cat >conftest.$ac_ext <<_ACEOF
4668 /* confdefs.h.  */
4669 _ACEOF
4670 cat confdefs.h >>conftest.$ac_ext
4671 cat >>conftest.$ac_ext <<_ACEOF
4672 /* end confdefs.h.  */
4673
4674 int
4675 main ()
4676 {
4677
4678   ;
4679   return 0;
4680 }
4681 _ACEOF
4682 rm -f conftest.$ac_objext
4683 if { (ac_try="$ac_compile"
4684 case "(($ac_try" in
4685   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4686   *) ac_try_echo=$ac_try;;
4687 esac
4688 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4689   (eval "$ac_compile") 2>conftest.er1
4690   ac_status=$?
4691   grep -v '^ *+' conftest.er1 >conftest.err
4692   rm -f conftest.er1
4693   cat conftest.err >&5
4694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4695   (exit $ac_status); } && {
4696          test -z "$ac_cxx_werror_flag" ||
4697          test ! -s conftest.err
4698        } && test -s conftest.$ac_objext; then
4699   ac_cv_prog_cxx_g=yes
4700 else
4701   echo "$as_me: failed program was:" >&5
4702 sed 's/^/| /' conftest.$ac_ext >&5
4703
4704
4705 fi
4706
4707 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4708 fi
4709
4710 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4711 fi
4712
4713 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4714    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4715 fi
4716 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4717 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
4718 if test "$ac_test_CXXFLAGS" = set; then
4719   CXXFLAGS=$ac_save_CXXFLAGS
4720 elif test $ac_cv_prog_cxx_g = yes; then
4721   if test "$GXX" = yes; then
4722     CXXFLAGS="-g -O2"
4723   else
4724     CXXFLAGS="-g"
4725   fi
4726 else
4727   if test "$GXX" = yes; then
4728     CXXFLAGS="-O2"
4729   else
4730     CXXFLAGS=
4731   fi
4732 fi
4733 ac_ext=c
4734 ac_cpp='$CPP $CPPFLAGS'
4735 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4736 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4737 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4738
4739 depcc="$CXX"  am_compiler_list=
4740
4741 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4742 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
4743 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
4744   echo $ECHO_N "(cached) $ECHO_C" >&6
4745 else
4746   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4747   # We make a subdir and do the tests there.  Otherwise we can end up
4748   # making bogus files that we don't know about and never remove.  For
4749   # instance it was reported that on HP-UX the gcc test will end up
4750   # making a dummy file named `D' -- because `-MD' means `put the output
4751   # in D'.
4752   mkdir conftest.dir
4753   # Copy depcomp to subdir because otherwise we won't find it if we're
4754   # using a relative directory.
4755   cp "$am_depcomp" conftest.dir
4756   cd conftest.dir
4757   # We will build objects and dependencies in a subdirectory because
4758   # it helps to detect inapplicable dependency modes.  For instance
4759   # both Tru64's cc and ICC support -MD to output dependencies as a
4760   # side effect of compilation, but ICC will put the dependencies in
4761   # the current directory while Tru64 will put them in the object
4762   # directory.
4763   mkdir sub
4764
4765   am_cv_CXX_dependencies_compiler_type=none
4766   if test "$am_compiler_list" = ""; then
4767      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4768   fi
4769   for depmode in $am_compiler_list; do
4770     # Setup a source with many dependencies, because some compilers
4771     # like to wrap large dependency lists on column 80 (with \), and
4772     # we should not choose a depcomp mode which is confused by this.
4773     #
4774     # We need to recreate these files for each test, as the compiler may
4775     # overwrite some of them when testing with obscure command lines.
4776     # This happens at least with the AIX C compiler.
4777     : > sub/conftest.c
4778     for i in 1 2 3 4 5 6; do
4779       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4780       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4781       # Solaris 8's {/usr,}/bin/sh.
4782       touch sub/conftst$i.h
4783     done
4784     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4785
4786     case $depmode in
4787     nosideeffect)
4788       # after this tag, mechanisms are not by side-effect, so they'll
4789       # only be used when explicitly requested
4790       if test "x$enable_dependency_tracking" = xyes; then
4791         continue
4792       else
4793         break
4794       fi
4795       ;;
4796     none) break ;;
4797     esac
4798     # We check with `-c' and `-o' for the sake of the "dashmstdout"
4799     # mode.  It turns out that the SunPro C++ compiler does not properly
4800     # handle `-M -o', and we need to detect this.
4801     if depmode=$depmode \
4802        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4803        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4804        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4805          >/dev/null 2>conftest.err &&
4806        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4807        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4808        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4809        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4810       # icc doesn't choke on unknown options, it will just issue warnings
4811       # or remarks (even with -Werror).  So we grep stderr for any message
4812       # that says an option was ignored or not supported.
4813       # When given -MP, icc 7.0 and 7.1 complain thusly:
4814       #   icc: Command line warning: ignoring option '-M'; no argument required
4815       # The diagnosis changed in icc 8.0:
4816       #   icc: Command line remark: option '-MP' not supported
4817       if (grep 'ignoring option' conftest.err ||
4818           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4819         am_cv_CXX_dependencies_compiler_type=$depmode
4820         break
4821       fi
4822     fi
4823   done
4824
4825   cd ..
4826   rm -rf conftest.dir
4827 else
4828   am_cv_CXX_dependencies_compiler_type=none
4829 fi
4830
4831 fi
4832 { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
4833 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
4834 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4835
4836  if
4837   test "x$enable_dependency_tracking" != xno \
4838   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4839   am__fastdepCXX_TRUE=
4840   am__fastdepCXX_FALSE='#'
4841 else
4842   am__fastdepCXX_TRUE='#'
4843   am__fastdepCXX_FALSE=
4844 fi
4845
4846
4847 ac_ext=c
4848 ac_cpp='$CPP $CPPFLAGS'
4849 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4850 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4851 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4852 if test -n "$ac_tool_prefix"; then
4853   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4854 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4855 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4856 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4857 if test "${ac_cv_prog_CC+set}" = set; then
4858   echo $ECHO_N "(cached) $ECHO_C" >&6
4859 else
4860   if test -n "$CC"; then
4861   ac_cv_prog_CC="$CC" # Let the user override the test.
4862 else
4863 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4864 for as_dir in $PATH
4865 do
4866   IFS=$as_save_IFS
4867   test -z "$as_dir" && as_dir=.
4868   for ac_exec_ext in '' $ac_executable_extensions; do
4869   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4870     ac_cv_prog_CC="${ac_tool_prefix}gcc"
4871     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4872     break 2
4873   fi
4874 done
4875 done
4876 IFS=$as_save_IFS
4877
4878 fi
4879 fi
4880 CC=$ac_cv_prog_CC
4881 if test -n "$CC"; then
4882   { echo "$as_me:$LINENO: result: $CC" >&5
4883 echo "${ECHO_T}$CC" >&6; }
4884 else
4885   { echo "$as_me:$LINENO: result: no" >&5
4886 echo "${ECHO_T}no" >&6; }
4887 fi
4888
4889
4890 fi
4891 if test -z "$ac_cv_prog_CC"; then
4892   ac_ct_CC=$CC
4893   # Extract the first word of "gcc", so it can be a program name with args.
4894 set dummy gcc; ac_word=$2
4895 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4896 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4897 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4898   echo $ECHO_N "(cached) $ECHO_C" >&6
4899 else
4900   if test -n "$ac_ct_CC"; then
4901   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4902 else
4903 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4904 for as_dir in $PATH
4905 do
4906   IFS=$as_save_IFS
4907   test -z "$as_dir" && as_dir=.
4908   for ac_exec_ext in '' $ac_executable_extensions; do
4909   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4910     ac_cv_prog_ac_ct_CC="gcc"
4911     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4912     break 2
4913   fi
4914 done
4915 done
4916 IFS=$as_save_IFS
4917
4918 fi
4919 fi
4920 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4921 if test -n "$ac_ct_CC"; then
4922   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4923 echo "${ECHO_T}$ac_ct_CC" >&6; }
4924 else
4925   { echo "$as_me:$LINENO: result: no" >&5
4926 echo "${ECHO_T}no" >&6; }
4927 fi
4928
4929   if test "x$ac_ct_CC" = x; then
4930     CC=""
4931   else
4932     case $cross_compiling:$ac_tool_warned in
4933 yes:)
4934 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4935 whose name does not start with the host triplet.  If you think this
4936 configuration is useful to you, please write to autoconf@gnu.org." >&5
4937 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4938 whose name does not start with the host triplet.  If you think this
4939 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4940 ac_tool_warned=yes ;;
4941 esac
4942     CC=$ac_ct_CC
4943   fi
4944 else
4945   CC="$ac_cv_prog_CC"
4946 fi
4947
4948 if test -z "$CC"; then
4949           if test -n "$ac_tool_prefix"; then
4950     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4951 set dummy ${ac_tool_prefix}cc; ac_word=$2
4952 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4953 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4954 if test "${ac_cv_prog_CC+set}" = set; then
4955   echo $ECHO_N "(cached) $ECHO_C" >&6
4956 else
4957   if test -n "$CC"; then
4958   ac_cv_prog_CC="$CC" # Let the user override the test.
4959 else
4960 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4961 for as_dir in $PATH
4962 do
4963   IFS=$as_save_IFS
4964   test -z "$as_dir" && as_dir=.
4965   for ac_exec_ext in '' $ac_executable_extensions; do
4966   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4967     ac_cv_prog_CC="${ac_tool_prefix}cc"
4968     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4969     break 2
4970   fi
4971 done
4972 done
4973 IFS=$as_save_IFS
4974
4975 fi
4976 fi
4977 CC=$ac_cv_prog_CC
4978 if test -n "$CC"; then
4979   { echo "$as_me:$LINENO: result: $CC" >&5
4980 echo "${ECHO_T}$CC" >&6; }
4981 else
4982   { echo "$as_me:$LINENO: result: no" >&5
4983 echo "${ECHO_T}no" >&6; }
4984 fi
4985
4986
4987   fi
4988 fi
4989 if test -z "$CC"; then
4990   # Extract the first word of "cc", so it can be a program name with args.
4991 set dummy cc; ac_word=$2
4992 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4993 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4994 if test "${ac_cv_prog_CC+set}" = set; then
4995   echo $ECHO_N "(cached) $ECHO_C" >&6
4996 else
4997   if test -n "$CC"; then
4998   ac_cv_prog_CC="$CC" # Let the user override the test.
4999 else
5000   ac_prog_rejected=no
5001 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5002 for as_dir in $PATH
5003 do
5004   IFS=$as_save_IFS
5005   test -z "$as_dir" && as_dir=.
5006   for ac_exec_ext in '' $ac_executable_extensions; do
5007   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5008     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5009        ac_prog_rejected=yes
5010        continue
5011      fi
5012     ac_cv_prog_CC="cc"
5013     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5014     break 2
5015   fi
5016 done
5017 done
5018 IFS=$as_save_IFS
5019
5020 if test $ac_prog_rejected = yes; then
5021   # We found a bogon in the path, so make sure we never use it.
5022   set dummy $ac_cv_prog_CC
5023   shift
5024   if test $# != 0; then
5025     # We chose a different compiler from the bogus one.
5026     # However, it has the same basename, so the bogon will be chosen
5027     # first if we set CC to just the basename; use the full file name.
5028     shift
5029     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
5030   fi
5031 fi
5032 fi
5033 fi
5034 CC=$ac_cv_prog_CC
5035 if test -n "$CC"; then
5036   { echo "$as_me:$LINENO: result: $CC" >&5
5037 echo "${ECHO_T}$CC" >&6; }
5038 else
5039   { echo "$as_me:$LINENO: result: no" >&5
5040 echo "${ECHO_T}no" >&6; }
5041 fi
5042
5043
5044 fi
5045 if test -z "$CC"; then
5046   if test -n "$ac_tool_prefix"; then
5047   for ac_prog in cl.exe
5048   do
5049     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5050 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5051 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5052 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5053 if test "${ac_cv_prog_CC+set}" = set; then
5054   echo $ECHO_N "(cached) $ECHO_C" >&6
5055 else
5056   if test -n "$CC"; then
5057   ac_cv_prog_CC="$CC" # Let the user override the test.
5058 else
5059 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5060 for as_dir in $PATH
5061 do
5062   IFS=$as_save_IFS
5063   test -z "$as_dir" && as_dir=.
5064   for ac_exec_ext in '' $ac_executable_extensions; do
5065   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5066     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5067     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5068     break 2
5069   fi
5070 done
5071 done
5072 IFS=$as_save_IFS
5073
5074 fi
5075 fi
5076 CC=$ac_cv_prog_CC
5077 if test -n "$CC"; then
5078   { echo "$as_me:$LINENO: result: $CC" >&5
5079 echo "${ECHO_T}$CC" >&6; }
5080 else
5081   { echo "$as_me:$LINENO: result: no" >&5
5082 echo "${ECHO_T}no" >&6; }
5083 fi
5084
5085
5086     test -n "$CC" && break
5087   done
5088 fi
5089 if test -z "$CC"; then
5090   ac_ct_CC=$CC
5091   for ac_prog in cl.exe
5092 do
5093   # Extract the first word of "$ac_prog", so it can be a program name with args.
5094 set dummy $ac_prog; ac_word=$2
5095 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5096 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5097 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5098   echo $ECHO_N "(cached) $ECHO_C" >&6
5099 else
5100   if test -n "$ac_ct_CC"; then
5101   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5102 else
5103 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5104 for as_dir in $PATH
5105 do
5106   IFS=$as_save_IFS
5107   test -z "$as_dir" && as_dir=.
5108   for ac_exec_ext in '' $ac_executable_extensions; do
5109   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5110     ac_cv_prog_ac_ct_CC="$ac_prog"
5111     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5112     break 2
5113   fi
5114 done
5115 done
5116 IFS=$as_save_IFS
5117
5118 fi
5119 fi
5120 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5121 if test -n "$ac_ct_CC"; then
5122   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5123 echo "${ECHO_T}$ac_ct_CC" >&6; }
5124 else
5125   { echo "$as_me:$LINENO: result: no" >&5
5126 echo "${ECHO_T}no" >&6; }
5127 fi
5128
5129
5130   test -n "$ac_ct_CC" && break
5131 done
5132
5133   if test "x$ac_ct_CC" = x; then
5134     CC=""
5135   else
5136     case $cross_compiling:$ac_tool_warned in
5137 yes:)
5138 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5139 whose name does not start with the host triplet.  If you think this
5140 configuration is useful to you, please write to autoconf@gnu.org." >&5
5141 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5142 whose name does not start with the host triplet.  If you think this
5143 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5144 ac_tool_warned=yes ;;
5145 esac
5146     CC=$ac_ct_CC
5147   fi
5148 fi
5149
5150 fi
5151
5152
5153 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
5154 See \`config.log' for more details." >&5
5155 echo "$as_me: error: no acceptable C compiler found in \$PATH
5156 See \`config.log' for more details." >&2;}
5157    { (exit 1); exit 1; }; }
5158
5159 # Provide some information about the compiler.
5160 echo "$as_me:$LINENO: checking for C compiler version" >&5
5161 ac_compiler=`set X $ac_compile; echo $2`
5162 { (ac_try="$ac_compiler --version >&5"
5163 case "(($ac_try" in
5164   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5165   *) ac_try_echo=$ac_try;;
5166 esac
5167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5168   (eval "$ac_compiler --version >&5") 2>&5
5169   ac_status=$?
5170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5171   (exit $ac_status); }
5172 { (ac_try="$ac_compiler -v >&5"
5173 case "(($ac_try" in
5174   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5175   *) ac_try_echo=$ac_try;;
5176 esac
5177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5178   (eval "$ac_compiler -v >&5") 2>&5
5179   ac_status=$?
5180   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5181   (exit $ac_status); }
5182 { (ac_try="$ac_compiler -V >&5"
5183 case "(($ac_try" in
5184   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5185   *) ac_try_echo=$ac_try;;
5186 esac
5187 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5188   (eval "$ac_compiler -V >&5") 2>&5
5189   ac_status=$?
5190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5191   (exit $ac_status); }
5192
5193 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
5194 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
5195 if test "${ac_cv_c_compiler_gnu+set}" = set; then
5196   echo $ECHO_N "(cached) $ECHO_C" >&6
5197 else
5198   cat >conftest.$ac_ext <<_ACEOF
5199 /* confdefs.h.  */
5200 _ACEOF
5201 cat confdefs.h >>conftest.$ac_ext
5202 cat >>conftest.$ac_ext <<_ACEOF
5203 /* end confdefs.h.  */
5204
5205 int
5206 main ()
5207 {
5208 #ifndef __GNUC__
5209        choke me
5210 #endif
5211
5212   ;
5213   return 0;
5214 }
5215 _ACEOF
5216 rm -f conftest.$ac_objext
5217 if { (ac_try="$ac_compile"
5218 case "(($ac_try" in
5219   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5220   *) ac_try_echo=$ac_try;;
5221 esac
5222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5223   (eval "$ac_compile") 2>conftest.er1
5224   ac_status=$?
5225   grep -v '^ *+' conftest.er1 >conftest.err
5226   rm -f conftest.er1
5227   cat conftest.err >&5
5228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5229   (exit $ac_status); } && {
5230          test -z "$ac_c_werror_flag" ||
5231          test ! -s conftest.err
5232        } && test -s conftest.$ac_objext; then
5233   ac_compiler_gnu=yes
5234 else
5235   echo "$as_me: failed program was:" >&5
5236 sed 's/^/| /' conftest.$ac_ext >&5
5237
5238         ac_compiler_gnu=no
5239 fi
5240
5241 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5242 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5243
5244 fi
5245 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
5246 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
5247 GCC=`test $ac_compiler_gnu = yes && echo yes`
5248 ac_test_CFLAGS=${CFLAGS+set}
5249 ac_save_CFLAGS=$CFLAGS
5250 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
5251 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
5252 if test "${ac_cv_prog_cc_g+set}" = set; then
5253   echo $ECHO_N "(cached) $ECHO_C" >&6
5254 else
5255   ac_save_c_werror_flag=$ac_c_werror_flag
5256    ac_c_werror_flag=yes
5257    ac_cv_prog_cc_g=no
5258    CFLAGS="-g"
5259    cat >conftest.$ac_ext <<_ACEOF
5260 /* confdefs.h.  */
5261 _ACEOF
5262 cat confdefs.h >>conftest.$ac_ext
5263 cat >>conftest.$ac_ext <<_ACEOF
5264 /* end confdefs.h.  */
5265
5266 int
5267 main ()
5268 {
5269
5270   ;
5271   return 0;
5272 }
5273 _ACEOF
5274 rm -f conftest.$ac_objext
5275 if { (ac_try="$ac_compile"
5276 case "(($ac_try" in
5277   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5278   *) ac_try_echo=$ac_try;;
5279 esac
5280 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5281   (eval "$ac_compile") 2>conftest.er1
5282   ac_status=$?
5283   grep -v '^ *+' conftest.er1 >conftest.err
5284   rm -f conftest.er1
5285   cat conftest.err >&5
5286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5287   (exit $ac_status); } && {
5288          test -z "$ac_c_werror_flag" ||
5289          test ! -s conftest.err
5290        } && test -s conftest.$ac_objext; then
5291   ac_cv_prog_cc_g=yes
5292 else
5293   echo "$as_me: failed program was:" >&5
5294 sed 's/^/| /' conftest.$ac_ext >&5
5295
5296         CFLAGS=""
5297       cat >conftest.$ac_ext <<_ACEOF
5298 /* confdefs.h.  */
5299 _ACEOF
5300 cat confdefs.h >>conftest.$ac_ext
5301 cat >>conftest.$ac_ext <<_ACEOF
5302 /* end confdefs.h.  */
5303
5304 int
5305 main ()
5306 {
5307
5308   ;
5309   return 0;
5310 }
5311 _ACEOF
5312 rm -f conftest.$ac_objext
5313 if { (ac_try="$ac_compile"
5314 case "(($ac_try" in
5315   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5316   *) ac_try_echo=$ac_try;;
5317 esac
5318 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5319   (eval "$ac_compile") 2>conftest.er1
5320   ac_status=$?
5321   grep -v '^ *+' conftest.er1 >conftest.err
5322   rm -f conftest.er1
5323   cat conftest.err >&5
5324   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5325   (exit $ac_status); } && {
5326          test -z "$ac_c_werror_flag" ||
5327          test ! -s conftest.err
5328        } && test -s conftest.$ac_objext; then
5329   :
5330 else
5331   echo "$as_me: failed program was:" >&5
5332 sed 's/^/| /' conftest.$ac_ext >&5
5333
5334         ac_c_werror_flag=$ac_save_c_werror_flag
5335          CFLAGS="-g"
5336          cat >conftest.$ac_ext <<_ACEOF
5337 /* confdefs.h.  */
5338 _ACEOF
5339 cat confdefs.h >>conftest.$ac_ext
5340 cat >>conftest.$ac_ext <<_ACEOF
5341 /* end confdefs.h.  */
5342
5343 int
5344 main ()
5345 {
5346
5347   ;
5348   return 0;
5349 }
5350 _ACEOF
5351 rm -f conftest.$ac_objext
5352 if { (ac_try="$ac_compile"
5353 case "(($ac_try" in
5354   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5355   *) ac_try_echo=$ac_try;;
5356 esac
5357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5358   (eval "$ac_compile") 2>conftest.er1
5359   ac_status=$?
5360   grep -v '^ *+' conftest.er1 >conftest.err
5361   rm -f conftest.er1
5362   cat conftest.err >&5
5363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5364   (exit $ac_status); } && {
5365          test -z "$ac_c_werror_flag" ||
5366          test ! -s conftest.err
5367        } && test -s conftest.$ac_objext; then
5368   ac_cv_prog_cc_g=yes
5369 else
5370   echo "$as_me: failed program was:" >&5
5371 sed 's/^/| /' conftest.$ac_ext >&5
5372
5373
5374 fi
5375
5376 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5377 fi
5378
5379 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5380 fi
5381
5382 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5383    ac_c_werror_flag=$ac_save_c_werror_flag
5384 fi
5385 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
5386 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
5387 if test "$ac_test_CFLAGS" = set; then
5388   CFLAGS=$ac_save_CFLAGS
5389 elif test $ac_cv_prog_cc_g = yes; then
5390   if test "$GCC" = yes; then
5391     CFLAGS="-g -O2"
5392   else
5393     CFLAGS="-g"
5394   fi
5395 else
5396   if test "$GCC" = yes; then
5397     CFLAGS="-O2"
5398   else
5399     CFLAGS=
5400   fi
5401 fi
5402 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
5403 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
5404 if test "${ac_cv_prog_cc_c89+set}" = set; then
5405   echo $ECHO_N "(cached) $ECHO_C" >&6
5406 else
5407   ac_cv_prog_cc_c89=no
5408 ac_save_CC=$CC
5409 cat >conftest.$ac_ext <<_ACEOF
5410 /* confdefs.h.  */
5411 _ACEOF
5412 cat confdefs.h >>conftest.$ac_ext
5413 cat >>conftest.$ac_ext <<_ACEOF
5414 /* end confdefs.h.  */
5415 #include <stdarg.h>
5416 #include <stdio.h>
5417 #include <sys/types.h>
5418 #include <sys/stat.h>
5419 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
5420 struct buf { int x; };
5421 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5422 static char *e (p, i)
5423      char **p;
5424      int i;
5425 {
5426   return p[i];
5427 }
5428 static char *f (char * (*g) (char **, int), char **p, ...)
5429 {
5430   char *s;
5431   va_list v;
5432   va_start (v,p);
5433   s = g (p, va_arg (v,int));
5434   va_end (v);
5435   return s;
5436 }
5437
5438 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
5439    function prototypes and stuff, but not '\xHH' hex character constants.
5440    These don't provoke an error unfortunately, instead are silently treated
5441    as 'x'.  The following induces an error, until -std is added to get
5442    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
5443    array size at least.  It's necessary to write '\x00'==0 to get something
5444    that's true only with -std.  */
5445 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5446
5447 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5448    inside strings and character constants.  */
5449 #define FOO(x) 'x'
5450 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5451
5452 int test (int i, double x);
5453 struct s1 {int (*f) (int a);};
5454 struct s2 {int (*f) (double a);};
5455 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5456 int argc;
5457 char **argv;
5458 int
5459 main ()
5460 {
5461 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
5462   ;
5463   return 0;
5464 }
5465 _ACEOF
5466 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5467         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5468 do
5469   CC="$ac_save_CC $ac_arg"
5470   rm -f conftest.$ac_objext
5471 if { (ac_try="$ac_compile"
5472 case "(($ac_try" in
5473   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5474   *) ac_try_echo=$ac_try;;
5475 esac
5476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5477   (eval "$ac_compile") 2>conftest.er1
5478   ac_status=$?
5479   grep -v '^ *+' conftest.er1 >conftest.err
5480   rm -f conftest.er1
5481   cat conftest.err >&5
5482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5483   (exit $ac_status); } && {
5484          test -z "$ac_c_werror_flag" ||
5485          test ! -s conftest.err
5486        } && test -s conftest.$ac_objext; then
5487   ac_cv_prog_cc_c89=$ac_arg
5488 else
5489   echo "$as_me: failed program was:" >&5
5490 sed 's/^/| /' conftest.$ac_ext >&5
5491
5492
5493 fi
5494
5495 rm -f core conftest.err conftest.$ac_objext
5496   test "x$ac_cv_prog_cc_c89" != "xno" && break
5497 done
5498 rm -f conftest.$ac_ext
5499 CC=$ac_save_CC
5500
5501 fi
5502 # AC_CACHE_VAL
5503 case "x$ac_cv_prog_cc_c89" in
5504   x)
5505     { echo "$as_me:$LINENO: result: none needed" >&5
5506 echo "${ECHO_T}none needed" >&6; } ;;
5507   xno)
5508     { echo "$as_me:$LINENO: result: unsupported" >&5
5509 echo "${ECHO_T}unsupported" >&6; } ;;
5510   *)
5511     CC="$CC $ac_cv_prog_cc_c89"
5512     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
5513 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
5514 esac
5515
5516
5517 ac_ext=c
5518 ac_cpp='$CPP $CPPFLAGS'
5519 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5520 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5521 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5522
5523 depcc="$CC"   am_compiler_list=
5524
5525 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5526 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
5527 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
5528   echo $ECHO_N "(cached) $ECHO_C" >&6
5529 else
5530   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5531   # We make a subdir and do the tests there.  Otherwise we can end up
5532   # making bogus files that we don't know about and never remove.  For
5533   # instance it was reported that on HP-UX the gcc test will end up
5534   # making a dummy file named `D' -- because `-MD' means `put the output
5535   # in D'.
5536   mkdir conftest.dir
5537   # Copy depcomp to subdir because otherwise we won't find it if we're
5538   # using a relative directory.
5539   cp "$am_depcomp" conftest.dir
5540   cd conftest.dir
5541   # We will build objects and dependencies in a subdirectory because
5542   # it helps to detect inapplicable dependency modes.  For instance
5543   # both Tru64's cc and ICC support -MD to output dependencies as a
5544   # side effect of compilation, but ICC will put the dependencies in
5545   # the current directory while Tru64 will put them in the object
5546   # directory.
5547   mkdir sub
5548
5549   am_cv_CC_dependencies_compiler_type=none
5550   if test "$am_compiler_list" = ""; then
5551      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5552   fi
5553   for depmode in $am_compiler_list; do
5554     # Setup a source with many dependencies, because some compilers
5555     # like to wrap large dependency lists on column 80 (with \), and
5556     # we should not choose a depcomp mode which is confused by this.
5557     #
5558     # We need to recreate these files for each test, as the compiler may
5559     # overwrite some of them when testing with obscure command lines.
5560     # This happens at least with the AIX C compiler.
5561     : > sub/conftest.c
5562     for i in 1 2 3 4 5 6; do
5563       echo '#include "conftst'$i'.h"' >> sub/conftest.c
5564       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5565       # Solaris 8's {/usr,}/bin/sh.
5566       touch sub/conftst$i.h
5567     done
5568     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5569
5570     case $depmode in
5571     nosideeffect)
5572       # after this tag, mechanisms are not by side-effect, so they'll
5573       # only be used when explicitly requested
5574       if test "x$enable_dependency_tracking" = xyes; then
5575         continue
5576       else
5577         break
5578       fi
5579       ;;
5580     none) break ;;
5581     esac
5582     # We check with `-c' and `-o' for the sake of the "dashmstdout"
5583     # mode.  It turns out that the SunPro C++ compiler does not properly
5584     # handle `-M -o', and we need to detect this.
5585     if depmode=$depmode \
5586        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5587        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5588        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5589          >/dev/null 2>conftest.err &&
5590        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5591        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5592        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5593        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5594       # icc doesn't choke on unknown options, it will just issue warnings
5595       # or remarks (even with -Werror).  So we grep stderr for any message
5596       # that says an option was ignored or not supported.
5597       # When given -MP, icc 7.0 and 7.1 complain thusly:
5598       #   icc: Command line warning: ignoring option '-M'; no argument required
5599       # The diagnosis changed in icc 8.0:
5600       #   icc: Command line remark: option '-MP' not supported
5601       if (grep 'ignoring option' conftest.err ||
5602           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5603         am_cv_CC_dependencies_compiler_type=$depmode
5604         break
5605       fi
5606     fi
5607   done
5608
5609   cd ..
5610   rm -rf conftest.dir
5611 else
5612   am_cv_CC_dependencies_compiler_type=none
5613 fi
5614
5615 fi
5616 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
5617 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
5618 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5619
5620  if
5621   test "x$enable_dependency_tracking" != xno \
5622   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5623   am__fastdepCC_TRUE=
5624   am__fastdepCC_FALSE='#'
5625 else
5626   am__fastdepCC_TRUE='#'
5627   am__fastdepCC_FALSE=
5628 fi
5629
5630
5631 ac_ext=c
5632 ac_cpp='$CPP $CPPFLAGS'
5633 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5634 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5635 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5636 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5637 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
5638 # On Suns, sometimes $CPP names a directory.
5639 if test -n "$CPP" && test -d "$CPP"; then
5640   CPP=
5641 fi
5642 if test -z "$CPP"; then
5643   if test "${ac_cv_prog_CPP+set}" = set; then
5644   echo $ECHO_N "(cached) $ECHO_C" >&6
5645 else
5646       # Double quotes because CPP needs to be expanded
5647     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5648     do
5649       ac_preproc_ok=false
5650 for ac_c_preproc_warn_flag in '' yes
5651 do
5652   # Use a header file that comes with gcc, so configuring glibc
5653   # with a fresh cross-compiler works.
5654   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5655   # <limits.h> exists even on freestanding compilers.
5656   # On the NeXT, cc -E runs the code through the compiler's parser,
5657   # not just through cpp. "Syntax error" is here to catch this case.
5658   cat >conftest.$ac_ext <<_ACEOF
5659 /* confdefs.h.  */
5660 _ACEOF
5661 cat confdefs.h >>conftest.$ac_ext
5662 cat >>conftest.$ac_ext <<_ACEOF
5663 /* end confdefs.h.  */
5664 #ifdef __STDC__
5665 # include <limits.h>
5666 #else
5667 # include <assert.h>
5668 #endif
5669                      Syntax error
5670 _ACEOF
5671 if { (ac_try="$ac_cpp conftest.$ac_ext"
5672 case "(($ac_try" in
5673   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5674   *) ac_try_echo=$ac_try;;
5675 esac
5676 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5677   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5678   ac_status=$?
5679   grep -v '^ *+' conftest.er1 >conftest.err
5680   rm -f conftest.er1
5681   cat conftest.err >&5
5682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5683   (exit $ac_status); } >/dev/null && {
5684          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5685          test ! -s conftest.err
5686        }; then
5687   :
5688 else
5689   echo "$as_me: failed program was:" >&5
5690 sed 's/^/| /' conftest.$ac_ext >&5
5691
5692   # Broken: fails on valid input.
5693 continue
5694 fi
5695
5696 rm -f conftest.err conftest.$ac_ext
5697
5698   # OK, works on sane cases.  Now check whether nonexistent headers
5699   # can be detected and how.
5700   cat >conftest.$ac_ext <<_ACEOF
5701 /* confdefs.h.  */
5702 _ACEOF
5703 cat confdefs.h >>conftest.$ac_ext
5704 cat >>conftest.$ac_ext <<_ACEOF
5705 /* end confdefs.h.  */
5706 #include <ac_nonexistent.h>
5707 _ACEOF
5708 if { (ac_try="$ac_cpp conftest.$ac_ext"
5709 case "(($ac_try" in
5710   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5711   *) ac_try_echo=$ac_try;;
5712 esac
5713 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5714   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5715   ac_status=$?
5716   grep -v '^ *+' conftest.er1 >conftest.err
5717   rm -f conftest.er1
5718   cat conftest.err >&5
5719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5720   (exit $ac_status); } >/dev/null && {
5721          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5722          test ! -s conftest.err
5723        }; then
5724   # Broken: success on invalid input.
5725 continue
5726 else
5727   echo "$as_me: failed program was:" >&5
5728 sed 's/^/| /' conftest.$ac_ext >&5
5729
5730   # Passes both tests.
5731 ac_preproc_ok=:
5732 break
5733 fi
5734
5735 rm -f conftest.err conftest.$ac_ext
5736
5737 done
5738 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5739 rm -f conftest.err conftest.$ac_ext
5740 if $ac_preproc_ok; then
5741   break
5742 fi
5743
5744     done
5745     ac_cv_prog_CPP=$CPP
5746
5747 fi
5748   CPP=$ac_cv_prog_CPP
5749 else
5750   ac_cv_prog_CPP=$CPP
5751 fi
5752 { echo "$as_me:$LINENO: result: $CPP" >&5
5753 echo "${ECHO_T}$CPP" >&6; }
5754 ac_preproc_ok=false
5755 for ac_c_preproc_warn_flag in '' yes
5756 do
5757   # Use a header file that comes with gcc, so configuring glibc
5758   # with a fresh cross-compiler works.
5759   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5760   # <limits.h> exists even on freestanding compilers.
5761   # On the NeXT, cc -E runs the code through the compiler's parser,
5762   # not just through cpp. "Syntax error" is here to catch this case.
5763   cat >conftest.$ac_ext <<_ACEOF
5764 /* confdefs.h.  */
5765 _ACEOF
5766 cat confdefs.h >>conftest.$ac_ext
5767 cat >>conftest.$ac_ext <<_ACEOF
5768 /* end confdefs.h.  */
5769 #ifdef __STDC__
5770 # include <limits.h>
5771 #else
5772 # include <assert.h>
5773 #endif
5774                      Syntax error
5775 _ACEOF
5776 if { (ac_try="$ac_cpp conftest.$ac_ext"
5777 case "(($ac_try" in
5778   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5779   *) ac_try_echo=$ac_try;;
5780 esac
5781 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5782   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5783   ac_status=$?
5784   grep -v '^ *+' conftest.er1 >conftest.err
5785   rm -f conftest.er1
5786   cat conftest.err >&5
5787   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5788   (exit $ac_status); } >/dev/null && {
5789          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5790          test ! -s conftest.err
5791        }; then
5792   :
5793 else
5794   echo "$as_me: failed program was:" >&5
5795 sed 's/^/| /' conftest.$ac_ext >&5
5796
5797   # Broken: fails on valid input.
5798 continue
5799 fi
5800
5801 rm -f conftest.err conftest.$ac_ext
5802
5803   # OK, works on sane cases.  Now check whether nonexistent headers
5804   # can be detected and how.
5805   cat >conftest.$ac_ext <<_ACEOF
5806 /* confdefs.h.  */
5807 _ACEOF
5808 cat confdefs.h >>conftest.$ac_ext
5809 cat >>conftest.$ac_ext <<_ACEOF
5810 /* end confdefs.h.  */
5811 #include <ac_nonexistent.h>
5812 _ACEOF
5813 if { (ac_try="$ac_cpp conftest.$ac_ext"
5814 case "(($ac_try" in
5815   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5816   *) ac_try_echo=$ac_try;;
5817 esac
5818 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5819   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5820   ac_status=$?
5821   grep -v '^ *+' conftest.er1 >conftest.err
5822   rm -f conftest.er1
5823   cat conftest.err >&5
5824   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5825   (exit $ac_status); } >/dev/null && {
5826          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5827          test ! -s conftest.err
5828        }; then
5829   # Broken: success on invalid input.
5830 continue
5831 else
5832   echo "$as_me: failed program was:" >&5
5833 sed 's/^/| /' conftest.$ac_ext >&5
5834
5835   # Passes both tests.
5836 ac_preproc_ok=:
5837 break
5838 fi
5839
5840 rm -f conftest.err conftest.$ac_ext
5841
5842 done
5843 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5844 rm -f conftest.err conftest.$ac_ext
5845 if $ac_preproc_ok; then
5846   :
5847 else
5848   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5849 See \`config.log' for more details." >&5
5850 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5851 See \`config.log' for more details." >&2;}
5852    { (exit 1); exit 1; }; }
5853 fi
5854
5855 ac_ext=c
5856 ac_cpp='$CPP $CPPFLAGS'
5857 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5858 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5859 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5860
5861 # Find a good install program.  We prefer a C program (faster),
5862 # so one script is as good as another.  But avoid the broken or
5863 # incompatible versions:
5864 # SysV /etc/install, /usr/sbin/install
5865 # SunOS /usr/etc/install
5866 # IRIX /sbin/install
5867 # AIX /bin/install
5868 # AmigaOS /C/install, which installs bootblocks on floppy discs
5869 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5870 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5871 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5872 # OS/2's system install, which has a completely different semantic
5873 # ./install, which can be erroneously created by make from ./install.sh.
5874 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
5875 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
5876 if test -z "$INSTALL"; then
5877 if test "${ac_cv_path_install+set}" = set; then
5878   echo $ECHO_N "(cached) $ECHO_C" >&6
5879 else
5880   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5881 for as_dir in $PATH
5882 do
5883   IFS=$as_save_IFS
5884   test -z "$as_dir" && as_dir=.
5885   # Account for people who put trailing slashes in PATH elements.
5886 case $as_dir/ in
5887   ./ | .// | /cC/* | \
5888   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5889   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
5890   /usr/ucb/* ) ;;
5891   *)
5892     # OSF1 and SCO ODT 3.0 have their own names for install.
5893     # Don't use installbsd from OSF since it installs stuff as root
5894     # by default.
5895     for ac_prog in ginstall scoinst install; do
5896       for ac_exec_ext in '' $ac_executable_extensions; do
5897         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
5898           if test $ac_prog = install &&
5899             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5900             # AIX install.  It has an incompatible calling convention.
5901             :
5902           elif test $ac_prog = install &&
5903             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5904             # program-specific install script used by HP pwplus--don't use.
5905             :
5906           else
5907             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5908             break 3
5909           fi
5910         fi
5911       done
5912     done
5913     ;;
5914 esac
5915 done
5916 IFS=$as_save_IFS
5917
5918
5919 fi
5920   if test "${ac_cv_path_install+set}" = set; then
5921     INSTALL=$ac_cv_path_install
5922   else
5923     # As a last resort, use the slow shell script.  Don't cache a
5924     # value for INSTALL within a source directory, because that will
5925     # break other packages using the cache if that directory is
5926     # removed, or if the value is a relative name.
5927     INSTALL=$ac_install_sh
5928   fi
5929 fi
5930 { echo "$as_me:$LINENO: result: $INSTALL" >&5
5931 echo "${ECHO_T}$INSTALL" >&6; }
5932
5933 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5934 # It thinks the first close brace ends the variable substitution.
5935 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5936
5937 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5938
5939 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5940
5941 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
5942 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
5943 LN_S=$as_ln_s
5944 if test "$LN_S" = "ln -s"; then
5945   { echo "$as_me:$LINENO: result: yes" >&5
5946 echo "${ECHO_T}yes" >&6; }
5947 else
5948   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5949 echo "${ECHO_T}no, using $LN_S" >&6; }
5950 fi
5951
5952 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5953 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
5954 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
5955 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
5956   echo $ECHO_N "(cached) $ECHO_C" >&6
5957 else
5958   cat >conftest.make <<\_ACEOF
5959 SHELL = /bin/sh
5960 all:
5961         @echo '@@@%%%=$(MAKE)=@@@%%%'
5962 _ACEOF
5963 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5964 case `${MAKE-make} -f conftest.make 2>/dev/null` in
5965   *@@@%%%=?*=@@@%%%*)
5966     eval ac_cv_prog_make_${ac_make}_set=yes;;
5967   *)
5968     eval ac_cv_prog_make_${ac_make}_set=no;;
5969 esac
5970 rm -f conftest.make
5971 fi
5972 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
5973   { echo "$as_me:$LINENO: result: yes" >&5
5974 echo "${ECHO_T}yes" >&6; }
5975   SET_MAKE=
5976 else
5977   { echo "$as_me:$LINENO: result: no" >&5
5978 echo "${ECHO_T}no" >&6; }
5979   SET_MAKE="MAKE=${MAKE-make}"
5980 fi
5981
5982 # Check whether --enable-shared was given.
5983 if test "${enable_shared+set}" = set; then
5984   enableval=$enable_shared; p=${PACKAGE-default}
5985     case $enableval in
5986     yes) enable_shared=yes ;;
5987     no) enable_shared=no ;;
5988     *)
5989       enable_shared=no
5990       # Look at the argument we got.  We use all the common list separators.
5991       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5992       for pkg in $enableval; do
5993         IFS="$lt_save_ifs"
5994         if test "X$pkg" = "X$p"; then
5995           enable_shared=yes
5996         fi
5997       done
5998       IFS="$lt_save_ifs"
5999       ;;
6000     esac
6001 else
6002   enable_shared=yes
6003 fi
6004
6005
6006 # Check whether --enable-static was given.
6007 if test "${enable_static+set}" = set; then
6008   enableval=$enable_static; p=${PACKAGE-default}
6009     case $enableval in
6010     yes) enable_static=yes ;;
6011     no) enable_static=no ;;
6012     *)
6013      enable_static=no
6014       # Look at the argument we got.  We use all the common list separators.
6015       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6016       for pkg in $enableval; do
6017         IFS="$lt_save_ifs"
6018         if test "X$pkg" = "X$p"; then
6019           enable_static=yes
6020         fi
6021       done
6022       IFS="$lt_save_ifs"
6023       ;;
6024     esac
6025 else
6026   enable_static=yes
6027 fi
6028
6029
6030 # Check whether --enable-fast-install was given.
6031 if test "${enable_fast_install+set}" = set; then
6032   enableval=$enable_fast_install; p=${PACKAGE-default}
6033     case $enableval in
6034     yes) enable_fast_install=yes ;;
6035     no) enable_fast_install=no ;;
6036     *)
6037       enable_fast_install=no
6038       # Look at the argument we got.  We use all the common list separators.
6039       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6040       for pkg in $enableval; do
6041         IFS="$lt_save_ifs"
6042         if test "X$pkg" = "X$p"; then
6043           enable_fast_install=yes
6044         fi
6045       done
6046       IFS="$lt_save_ifs"
6047       ;;
6048     esac
6049 else
6050   enable_fast_install=yes
6051 fi
6052
6053
6054 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
6055 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
6056 if test "${lt_cv_path_SED+set}" = set; then
6057   echo $ECHO_N "(cached) $ECHO_C" >&6
6058 else
6059   # Loop through the user's path and test for sed and gsed.
6060 # Then use that list of sed's as ones to test for truncation.
6061 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6062 for as_dir in $PATH
6063 do
6064   IFS=$as_save_IFS
6065   test -z "$as_dir" && as_dir=.
6066   for lt_ac_prog in sed gsed; do
6067     for ac_exec_ext in '' $ac_executable_extensions; do
6068       if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then
6069         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
6070       fi
6071     done
6072   done
6073 done
6074 IFS=$as_save_IFS
6075 lt_ac_max=0
6076 lt_ac_count=0
6077 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
6078 # along with /bin/sed that truncates output.
6079 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
6080   test ! -f $lt_ac_sed && continue
6081   cat /dev/null > conftest.in
6082   lt_ac_count=0
6083   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
6084   # Check for GNU sed and select it if it is found.
6085   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
6086     lt_cv_path_SED=$lt_ac_sed
6087     break
6088   fi
6089   while true; do
6090     cat conftest.in conftest.in >conftest.tmp
6091     mv conftest.tmp conftest.in
6092     cp conftest.in conftest.nl
6093     echo >>conftest.nl
6094     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
6095     cmp -s conftest.out conftest.nl || break
6096     # 10000 chars as input seems more than enough
6097     test $lt_ac_count -gt 10 && break
6098     lt_ac_count=`expr $lt_ac_count + 1`
6099     if test $lt_ac_count -gt $lt_ac_max; then
6100       lt_ac_max=$lt_ac_count
6101       lt_cv_path_SED=$lt_ac_sed
6102     fi
6103   done
6104 done
6105
6106 fi
6107
6108 SED=$lt_cv_path_SED
6109
6110 { echo "$as_me:$LINENO: result: $SED" >&5
6111 echo "${ECHO_T}$SED" >&6; }
6112
6113 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
6114 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
6115 if test "${ac_cv_path_GREP+set}" = set; then
6116   echo $ECHO_N "(cached) $ECHO_C" >&6
6117 else
6118   # Extract the first word of "grep ggrep" to use in msg output
6119 if test -z "$GREP"; then
6120 set dummy grep ggrep; ac_prog_name=$2
6121 if test "${ac_cv_path_GREP+set}" = set; then
6122   echo $ECHO_N "(cached) $ECHO_C" >&6
6123 else
6124   ac_path_GREP_found=false
6125 # Loop through the user's path and test for each of PROGNAME-LIST
6126 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6127 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6128 do
6129   IFS=$as_save_IFS
6130   test -z "$as_dir" && as_dir=.
6131   for ac_prog in grep ggrep; do
6132   for ac_exec_ext in '' $ac_executable_extensions; do
6133     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
6134     { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
6135     # Check for GNU ac_path_GREP and select it if it is found.
6136   # Check for GNU $ac_path_GREP
6137 case `"$ac_path_GREP" --version 2>&1` in
6138 *GNU*)
6139   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
6140 *)
6141   ac_count=0
6142   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
6143   while :
6144   do
6145     cat "conftest.in" "conftest.in" >"conftest.tmp"
6146     mv "conftest.tmp" "conftest.in"
6147     cp "conftest.in" "conftest.nl"
6148     echo 'GREP' >> "conftest.nl"
6149     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6150     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6151     ac_count=`expr $ac_count + 1`
6152     if test $ac_count -gt ${ac_path_GREP_max-0}; then
6153       # Best one so far, save it but keep looking for a better one
6154       ac_cv_path_GREP="$ac_path_GREP"
6155       ac_path_GREP_max=$ac_count
6156     fi
6157     # 10*(2^10) chars as input seems more than enough
6158     test $ac_count -gt 10 && break
6159   done
6160   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6161 esac
6162
6163
6164     $ac_path_GREP_found && break 3
6165   done
6166 done
6167
6168 done
6169 IFS=$as_save_IFS
6170
6171
6172 fi
6173
6174 GREP="$ac_cv_path_GREP"
6175 if test -z "$GREP"; then
6176   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
6177 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
6178    { (exit 1); exit 1; }; }
6179 fi
6180
6181 else
6182   ac_cv_path_GREP=$GREP
6183 fi
6184
6185
6186 fi
6187 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
6188 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
6189  GREP="$ac_cv_path_GREP"
6190
6191
6192 { echo "$as_me:$LINENO: checking for egrep" >&5
6193 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
6194 if test "${ac_cv_path_EGREP+set}" = set; then
6195   echo $ECHO_N "(cached) $ECHO_C" >&6
6196 else
6197   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
6198    then ac_cv_path_EGREP="$GREP -E"
6199    else
6200      # Extract the first word of "egrep" to use in msg output
6201 if test -z "$EGREP"; then
6202 set dummy egrep; ac_prog_name=$2
6203 if test "${ac_cv_path_EGREP+set}" = set; then
6204   echo $ECHO_N "(cached) $ECHO_C" >&6
6205 else
6206   ac_path_EGREP_found=false
6207 # Loop through the user's path and test for each of PROGNAME-LIST
6208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6209 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6210 do
6211   IFS=$as_save_IFS
6212   test -z "$as_dir" && as_dir=.
6213   for ac_prog in egrep; do
6214   for ac_exec_ext in '' $ac_executable_extensions; do
6215     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
6216     { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
6217     # Check for GNU ac_path_EGREP and select it if it is found.
6218   # Check for GNU $ac_path_EGREP
6219 case `"$ac_path_EGREP" --version 2>&1` in
6220 *GNU*)
6221   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6222 *)
6223   ac_count=0
6224   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
6225   while :
6226   do
6227     cat "conftest.in" "conftest.in" >"conftest.tmp"
6228     mv "conftest.tmp" "conftest.in"
6229     cp "conftest.in" "conftest.nl"
6230     echo 'EGREP' >> "conftest.nl"
6231     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6232     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6233     ac_count=`expr $ac_count + 1`
6234     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6235       # Best one so far, save it but keep looking for a better one
6236       ac_cv_path_EGREP="$ac_path_EGREP"
6237       ac_path_EGREP_max=$ac_count
6238     fi
6239     # 10*(2^10) chars as input seems more than enough
6240     test $ac_count -gt 10 && break
6241   done
6242   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6243 esac
6244
6245
6246     $ac_path_EGREP_found && break 3
6247   done
6248 done
6249
6250 done
6251 IFS=$as_save_IFS
6252
6253
6254 fi
6255
6256 EGREP="$ac_cv_path_EGREP"
6257 if test -z "$EGREP"; then
6258   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
6259 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
6260    { (exit 1); exit 1; }; }
6261 fi
6262
6263 else
6264   ac_cv_path_EGREP=$EGREP
6265 fi
6266
6267
6268    fi
6269 fi
6270 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
6271 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
6272  EGREP="$ac_cv_path_EGREP"
6273
6274
6275
6276 # Check whether --with-gnu-ld was given.
6277 if test "${with_gnu_ld+set}" = set; then
6278   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6279 else
6280   with_gnu_ld=no
6281 fi
6282
6283 ac_prog=ld
6284 if test "$GCC" = yes; then
6285   # Check if gcc -print-prog-name=ld gives a path.
6286   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
6287 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
6288   case $host in
6289   *-*-mingw*)
6290     # gcc leaves a trailing carriage return which upsets mingw
6291     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6292   *)
6293     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6294   esac
6295   case $ac_prog in
6296     # Accept absolute paths.
6297     [\\/]* | ?:[\\/]*)
6298       re_direlt='/[^/][^/]*/\.\./'
6299       # Canonicalize the pathname of ld
6300       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
6301       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
6302         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
6303       done
6304       test -z "$LD" && LD="$ac_prog"
6305       ;;
6306   "")
6307     # If it fails, then pretend we aren't using GCC.
6308     ac_prog=ld
6309     ;;
6310   *)
6311     # If it is relative, then search for the first ld in PATH.
6312     with_gnu_ld=unknown
6313     ;;
6314   esac
6315 elif test "$with_gnu_ld" = yes; then
6316   { echo "$as_me:$LINENO: checking for GNU ld" >&5
6317 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
6318 else
6319   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
6320 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
6321 fi
6322 if test "${lt_cv_path_LD+set}" = set; then
6323   echo $ECHO_N "(cached) $ECHO_C" >&6
6324 else
6325   if test -z "$LD"; then
6326   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6327   for ac_dir in $PATH; do
6328     IFS="$lt_save_ifs"
6329     test -z "$ac_dir" && ac_dir=.
6330     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6331       lt_cv_path_LD="$ac_dir/$ac_prog"
6332       # Check to see if the program is GNU ld.  I'd rather use --version,
6333       # but apparently some variants of GNU ld only accept -v.
6334       # Break only if it was the GNU/non-GNU ld that we prefer.
6335       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6336       *GNU* | *'with BFD'*)
6337         test "$with_gnu_ld" != no && break
6338         ;;
6339       *)
6340         test "$with_gnu_ld" != yes && break
6341         ;;
6342       esac
6343     fi
6344   done
6345   IFS="$lt_save_ifs"
6346 else
6347   lt_cv_path_LD="$LD" # Let the user override the test with a path.
6348 fi
6349 fi
6350
6351 LD="$lt_cv_path_LD"
6352 if test -n "$LD"; then
6353   { echo "$as_me:$LINENO: result: $LD" >&5
6354 echo "${ECHO_T}$LD" >&6; }
6355 else
6356   { echo "$as_me:$LINENO: result: no" >&5
6357 echo "${ECHO_T}no" >&6; }
6358 fi
6359 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
6360 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
6361    { (exit 1); exit 1; }; }
6362 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
6363 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
6364 if test "${lt_cv_prog_gnu_ld+set}" = set; then
6365   echo $ECHO_N "(cached) $ECHO_C" >&6
6366 else
6367   # I'd rather use --version here, but apparently some GNU lds only accept -v.
6368 case `$LD -v 2>&1 </dev/null` in
6369 *GNU* | *'with BFD'*)
6370   lt_cv_prog_gnu_ld=yes
6371   ;;
6372 *)
6373   lt_cv_prog_gnu_ld=no
6374   ;;
6375 esac
6376 fi
6377 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
6378 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
6379 with_gnu_ld=$lt_cv_prog_gnu_ld
6380
6381
6382 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
6383 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
6384 if test "${lt_cv_ld_reload_flag+set}" = set; then
6385   echo $ECHO_N "(cached) $ECHO_C" >&6
6386 else
6387   lt_cv_ld_reload_flag='-r'
6388 fi
6389 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
6390 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
6391 reload_flag=$lt_cv_ld_reload_flag
6392 case $reload_flag in
6393 "" | " "*) ;;
6394 *) reload_flag=" $reload_flag" ;;
6395 esac
6396 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6397 case $host_os in
6398   darwin*)
6399     if test "$GCC" = yes; then
6400       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6401     else
6402       reload_cmds='$LD$reload_flag -o $output$reload_objs'
6403     fi
6404     ;;
6405 esac
6406
6407 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6408 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
6409 if test "${lt_cv_path_NM+set}" = set; then
6410   echo $ECHO_N "(cached) $ECHO_C" >&6
6411 else
6412   if test -n "$NM"; then
6413   # Let the user override the test.
6414   lt_cv_path_NM="$NM"
6415 else
6416   lt_nm_to_check="${ac_tool_prefix}nm"
6417   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6418     lt_nm_to_check="$lt_nm_to_check nm"
6419   fi
6420   for lt_tmp_nm in $lt_nm_to_check; do
6421     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6422     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6423       IFS="$lt_save_ifs"
6424       test -z "$ac_dir" && ac_dir=.
6425       tmp_nm="$ac_dir/$lt_tmp_nm"
6426       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6427         # Check to see if the nm accepts a BSD-compat flag.
6428         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6429         #   nm: unknown option "B" ignored
6430         # Tru64's nm complains that /dev/null is an invalid object file
6431         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6432         */dev/null* | *'Invalid file or object type'*)
6433           lt_cv_path_NM="$tmp_nm -B"
6434           break
6435           ;;
6436         *)
6437           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6438           */dev/null*)
6439             lt_cv_path_NM="$tmp_nm -p"
6440             break
6441             ;;
6442           *)
6443             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6444             continue # so that we can try to find one that supports BSD flags
6445             ;;
6446           esac
6447           ;;
6448         esac
6449       fi
6450     done
6451     IFS="$lt_save_ifs"
6452   done
6453   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6454 fi
6455 fi
6456 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6457 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
6458 NM="$lt_cv_path_NM"
6459
6460 { echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
6461 echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; }
6462 if test "${lt_cv_deplibs_check_method+set}" = set; then
6463   echo $ECHO_N "(cached) $ECHO_C" >&6
6464 else
6465   lt_cv_file_magic_cmd='$MAGIC_CMD'
6466 lt_cv_file_magic_test_file=
6467 lt_cv_deplibs_check_method='unknown'
6468 # Need to set the preceding variable on all platforms that support
6469 # interlibrary dependencies.
6470 # 'none' -- dependencies not supported.
6471 # `unknown' -- same as none, but documents that we really don't know.
6472 # 'pass_all' -- all dependencies passed with no checks.
6473 # 'test_compile' -- check by making test program.
6474 # 'file_magic [[regex]]' -- check by looking for files in library path
6475 # which responds to the $file_magic_cmd with a given extended regex.
6476 # If you have `file' or equivalent on your system and you're not sure
6477 # whether `pass_all' will *always* work, you probably want this one.
6478
6479 case $host_os in
6480 aix4* | aix5*)
6481   lt_cv_deplibs_check_method=pass_all
6482   ;;
6483
6484 beos*)
6485   lt_cv_deplibs_check_method=pass_all
6486   ;;
6487
6488 bsdi[45]*)
6489   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6490   lt_cv_file_magic_cmd='/usr/bin/file -L'
6491   lt_cv_file_magic_test_file=/shlib/libc.so
6492   ;;
6493
6494 cygwin*)
6495   # func_win32_libid is a shell function defined in ltmain.sh
6496   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6497   lt_cv_file_magic_cmd='func_win32_libid'
6498   ;;
6499
6500 mingw* | pw32*)
6501   # Base MSYS/MinGW do not provide the 'file' command needed by
6502   # func_win32_libid shell function, so use a weaker test based on 'objdump',
6503   # unless we find 'file', for example because we are cross-compiling.
6504   if ( file / ) >/dev/null 2>&1; then
6505     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6506     lt_cv_file_magic_cmd='func_win32_libid'
6507   else
6508     lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6509     lt_cv_file_magic_cmd='$OBJDUMP -f'
6510   fi
6511   ;;
6512
6513 darwin* | rhapsody*)
6514   lt_cv_deplibs_check_method=pass_all
6515   ;;
6516
6517 freebsd* | dragonfly*)
6518   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
6519     case $host_cpu in
6520     i*86 )
6521       # Not sure whether the presence of OpenBSD here was a mistake.
6522       # Let's accept both of them until this is cleared up.
6523       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6524       lt_cv_file_magic_cmd=/usr/bin/file
6525       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6526       ;;
6527     esac
6528   else
6529     lt_cv_deplibs_check_method=pass_all
6530   fi
6531   ;;
6532
6533 gnu*)
6534   lt_cv_deplibs_check_method=pass_all
6535   ;;
6536
6537 hpux10.20* | hpux11*)
6538   lt_cv_file_magic_cmd=/usr/bin/file
6539   case $host_cpu in
6540   ia64*)
6541     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6542     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6543     ;;
6544   hppa*64*)
6545     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]'
6546     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6547     ;;
6548   *)
6549     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
6550     lt_cv_file_magic_test_file=/usr/lib/libc.sl
6551     ;;
6552   esac
6553   ;;
6554
6555 interix[3-9]*)
6556   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6557   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6558   ;;
6559
6560 irix5* | irix6* | nonstopux*)
6561   case $LD in
6562   *-32|*"-32 ") libmagic=32-bit;;
6563   *-n32|*"-n32 ") libmagic=N32;;
6564   *-64|*"-64 ") libmagic=64-bit;;
6565   *) libmagic=never-match;;
6566   esac
6567   lt_cv_deplibs_check_method=pass_all
6568   ;;
6569
6570 # This must be Linux ELF.
6571 linux* | k*bsd*-gnu)
6572   lt_cv_deplibs_check_method=pass_all
6573   ;;
6574
6575 netbsd*)
6576   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
6577     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6578   else
6579     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6580   fi
6581   ;;
6582
6583 newos6*)
6584   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6585   lt_cv_file_magic_cmd=/usr/bin/file
6586   lt_cv_file_magic_test_file=/usr/lib/libnls.so
6587   ;;
6588
6589 nto-qnx*)
6590   lt_cv_deplibs_check_method=unknown
6591   ;;
6592
6593 openbsd*)
6594   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6595     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6596   else
6597     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6598   fi
6599   ;;
6600
6601 osf3* | osf4* | osf5*)
6602   lt_cv_deplibs_check_method=pass_all
6603   ;;
6604
6605 rdos*)
6606   lt_cv_deplibs_check_method=pass_all
6607   ;;
6608
6609 solaris*)
6610   lt_cv_deplibs_check_method=pass_all
6611   ;;
6612
6613 sysv4 | sysv4.3*)
6614   case $host_vendor in
6615   motorola)
6616     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]'
6617     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6618     ;;
6619   ncr)
6620     lt_cv_deplibs_check_method=pass_all
6621     ;;
6622   sequent)
6623     lt_cv_file_magic_cmd='/bin/file'
6624     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6625     ;;
6626   sni)
6627     lt_cv_file_magic_cmd='/bin/file'
6628     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6629     lt_cv_file_magic_test_file=/lib/libc.so
6630     ;;
6631   siemens)
6632     lt_cv_deplibs_check_method=pass_all
6633     ;;
6634   pc)
6635     lt_cv_deplibs_check_method=pass_all
6636     ;;
6637   esac
6638   ;;
6639
6640 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6641   lt_cv_deplibs_check_method=pass_all
6642   ;;
6643 esac
6644
6645 fi
6646 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
6647 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
6648 file_magic_cmd=$lt_cv_file_magic_cmd
6649 deplibs_check_method=$lt_cv_deplibs_check_method
6650 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6651
6652
6653
6654
6655 # If no C compiler was specified, use CC.
6656 LTCC=${LTCC-"$CC"}
6657
6658 # If no C compiler flags were specified, use CFLAGS.
6659 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6660
6661 # Allow CC to be a program name with arguments.
6662 compiler=$CC
6663
6664 # Check whether --enable-libtool-lock was given.
6665 if test "${enable_libtool_lock+set}" = set; then
6666   enableval=$enable_libtool_lock;
6667 fi
6668
6669 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6670
6671 # Some flags need to be propagated to the compiler or linker for good
6672 # libtool support.
6673 case $host in
6674 ia64-*-hpux*)
6675   # Find out which ABI we are using.
6676   echo 'int i;' > conftest.$ac_ext
6677   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6678   (eval $ac_compile) 2>&5
6679   ac_status=$?
6680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6681   (exit $ac_status); }; then
6682     case `/usr/bin/file conftest.$ac_objext` in
6683     *ELF-32*)
6684       HPUX_IA64_MODE="32"
6685       ;;
6686     *ELF-64*)
6687       HPUX_IA64_MODE="64"
6688       ;;
6689     esac
6690   fi
6691   rm -rf conftest*
6692   ;;
6693 *-*-irix6*)
6694   # Find out which ABI we are using.
6695   echo '#line 6695 "configure"' > conftest.$ac_ext
6696   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6697   (eval $ac_compile) 2>&5
6698   ac_status=$?
6699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6700   (exit $ac_status); }; then
6701    if test "$lt_cv_prog_gnu_ld" = yes; then
6702     case `/usr/bin/file conftest.$ac_objext` in
6703     *32-bit*)
6704       LD="${LD-ld} -melf32bsmip"
6705       ;;
6706     *N32*)
6707       LD="${LD-ld} -melf32bmipn32"
6708       ;;
6709     *64-bit*)
6710       LD="${LD-ld} -melf64bmip"
6711       ;;
6712     esac
6713    else
6714     case `/usr/bin/file conftest.$ac_objext` in
6715     *32-bit*)
6716       LD="${LD-ld} -32"
6717       ;;
6718     *N32*)
6719       LD="${LD-ld} -n32"
6720       ;;
6721     *64-bit*)
6722       LD="${LD-ld} -64"
6723       ;;
6724     esac
6725    fi
6726   fi
6727   rm -rf conftest*
6728   ;;
6729
6730 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6731 s390*-*linux*|sparc*-*linux*)
6732   # Find out which ABI we are using.
6733   echo 'int i;' > conftest.$ac_ext
6734   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6735   (eval $ac_compile) 2>&5
6736   ac_status=$?
6737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6738   (exit $ac_status); }; then
6739     case `/usr/bin/file conftest.o` in
6740     *32-bit*)
6741       case $host in
6742         x86_64-*kfreebsd*-gnu)
6743           LD="${LD-ld} -m elf_i386_fbsd"
6744           ;;
6745         x86_64-*linux*)
6746           LD="${LD-ld} -m elf_i386"
6747           ;;
6748         ppc64-*linux*|powerpc64-*linux*)
6749           LD="${LD-ld} -m elf32ppclinux"
6750           ;;
6751         s390x-*linux*)
6752           LD="${LD-ld} -m elf_s390"
6753           ;;
6754         sparc64-*linux*)
6755           LD="${LD-ld} -m elf32_sparc"
6756           ;;
6757       esac
6758       ;;
6759     *64-bit*)
6760       libsuff=64
6761       case $host in
6762         x86_64-*kfreebsd*-gnu)
6763           LD="${LD-ld} -m elf_x86_64_fbsd"
6764           ;;
6765         x86_64-*linux*)
6766           LD="${LD-ld} -m elf_x86_64"
6767           ;;
6768         ppc*-*linux*|powerpc*-*linux*)
6769           LD="${LD-ld} -m elf64ppc"
6770           ;;
6771         s390*-*linux*)
6772           LD="${LD-ld} -m elf64_s390"
6773           ;;
6774         sparc*-*linux*)
6775           LD="${LD-ld} -m elf64_sparc"
6776           ;;
6777       esac
6778       ;;
6779     esac
6780   fi
6781   rm -rf conftest*
6782   ;;
6783
6784 *-*-sco3.2v5*)
6785   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6786   SAVE_CFLAGS="$CFLAGS"
6787   CFLAGS="$CFLAGS -belf"
6788   { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
6789 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
6790 if test "${lt_cv_cc_needs_belf+set}" = set; then
6791   echo $ECHO_N "(cached) $ECHO_C" >&6
6792 else
6793   ac_ext=c
6794 ac_cpp='$CPP $CPPFLAGS'
6795 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6796 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6797 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6798
6799      cat >conftest.$ac_ext <<_ACEOF
6800 /* confdefs.h.  */
6801 _ACEOF
6802 cat confdefs.h >>conftest.$ac_ext
6803 cat >>conftest.$ac_ext <<_ACEOF
6804 /* end confdefs.h.  */
6805
6806 int
6807 main ()
6808 {
6809
6810   ;
6811   return 0;
6812 }
6813 _ACEOF
6814 rm -f conftest.$ac_objext conftest$ac_exeext
6815 if { (ac_try="$ac_link"
6816 case "(($ac_try" in
6817   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6818   *) ac_try_echo=$ac_try;;
6819 esac
6820 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6821   (eval "$ac_link") 2>conftest.er1
6822   ac_status=$?
6823   grep -v '^ *+' conftest.er1 >conftest.err
6824   rm -f conftest.er1
6825   cat conftest.err >&5
6826   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6827   (exit $ac_status); } && {
6828          test -z "$ac_c_werror_flag" ||
6829          test ! -s conftest.err
6830        } && test -s conftest$ac_exeext &&
6831        $as_test_x conftest$ac_exeext; then
6832   lt_cv_cc_needs_belf=yes
6833 else
6834   echo "$as_me: failed program was:" >&5
6835 sed 's/^/| /' conftest.$ac_ext >&5
6836
6837         lt_cv_cc_needs_belf=no
6838 fi
6839
6840 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6841       conftest$ac_exeext conftest.$ac_ext
6842      ac_ext=c
6843 ac_cpp='$CPP $CPPFLAGS'
6844 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6845 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6846 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6847
6848 fi
6849 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
6850 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
6851   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6852     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6853     CFLAGS="$SAVE_CFLAGS"
6854   fi
6855   ;;
6856 sparc*-*solaris*)
6857   # Find out which ABI we are using.
6858   echo 'int i;' > conftest.$ac_ext
6859   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6860   (eval $ac_compile) 2>&5
6861   ac_status=$?
6862   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6863   (exit $ac_status); }; then
6864     case `/usr/bin/file conftest.o` in
6865     *64-bit*)
6866       case $lt_cv_prog_gnu_ld in
6867       yes*) LD="${LD-ld} -m elf64_sparc" ;;
6868       *)    LD="${LD-ld} -64" ;;
6869       esac
6870       ;;
6871     esac
6872   fi
6873   rm -rf conftest*
6874   ;;
6875
6876
6877 esac
6878
6879 need_locks="$enable_libtool_lock"
6880
6881
6882
6883 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6884 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
6885 if test "${ac_cv_header_stdc+set}" = set; then
6886   echo $ECHO_N "(cached) $ECHO_C" >&6
6887 else
6888   cat >conftest.$ac_ext <<_ACEOF
6889 /* confdefs.h.  */
6890 _ACEOF
6891 cat confdefs.h >>conftest.$ac_ext
6892 cat >>conftest.$ac_ext <<_ACEOF
6893 /* end confdefs.h.  */
6894 #include <stdlib.h>
6895 #include <stdarg.h>
6896 #include <string.h>
6897 #include <float.h>
6898
6899 int
6900 main ()
6901 {
6902
6903   ;
6904   return 0;
6905 }
6906 _ACEOF
6907 rm -f conftest.$ac_objext
6908 if { (ac_try="$ac_compile"
6909 case "(($ac_try" in
6910   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6911   *) ac_try_echo=$ac_try;;
6912 esac
6913 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6914   (eval "$ac_compile") 2>conftest.er1
6915   ac_status=$?
6916   grep -v '^ *+' conftest.er1 >conftest.err
6917   rm -f conftest.er1
6918   cat conftest.err >&5
6919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6920   (exit $ac_status); } && {
6921          test -z "$ac_c_werror_flag" ||
6922          test ! -s conftest.err
6923        } && test -s conftest.$ac_objext; then
6924   ac_cv_header_stdc=yes
6925 else
6926   echo "$as_me: failed program was:" >&5
6927 sed 's/^/| /' conftest.$ac_ext >&5
6928
6929         ac_cv_header_stdc=no
6930 fi
6931
6932 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6933
6934 if test $ac_cv_header_stdc = yes; then
6935   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6936   cat >conftest.$ac_ext <<_ACEOF
6937 /* confdefs.h.  */
6938 _ACEOF
6939 cat confdefs.h >>conftest.$ac_ext
6940 cat >>conftest.$ac_ext <<_ACEOF
6941 /* end confdefs.h.  */
6942 #include <string.h>
6943
6944 _ACEOF
6945 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6946   $EGREP "memchr" >/dev/null 2>&1; then
6947   :
6948 else
6949   ac_cv_header_stdc=no
6950 fi
6951 rm -f conftest*
6952
6953 fi
6954
6955 if test $ac_cv_header_stdc = yes; then
6956   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6957   cat >conftest.$ac_ext <<_ACEOF
6958 /* confdefs.h.  */
6959 _ACEOF
6960 cat confdefs.h >>conftest.$ac_ext
6961 cat >>conftest.$ac_ext <<_ACEOF
6962 /* end confdefs.h.  */
6963 #include <stdlib.h>
6964
6965 _ACEOF
6966 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6967   $EGREP "free" >/dev/null 2>&1; then
6968   :
6969 else
6970   ac_cv_header_stdc=no
6971 fi
6972 rm -f conftest*
6973
6974 fi
6975
6976 if test $ac_cv_header_stdc = yes; then
6977   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6978   if test "$cross_compiling" = yes; then
6979   :
6980 else
6981   cat >conftest.$ac_ext <<_ACEOF
6982 /* confdefs.h.  */
6983 _ACEOF
6984 cat confdefs.h >>conftest.$ac_ext
6985 cat >>conftest.$ac_ext <<_ACEOF
6986 /* end confdefs.h.  */
6987 #include <ctype.h>
6988 #include <stdlib.h>
6989 #if ((' ' & 0x0FF) == 0x020)
6990 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6991 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6992 #else
6993 # define ISLOWER(c) \
6994                    (('a' <= (c) && (c) <= 'i') \
6995                      || ('j' <= (c) && (c) <= 'r') \
6996                      || ('s' <= (c) && (c) <= 'z'))
6997 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6998 #endif
6999
7000 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7001 int
7002 main ()
7003 {
7004   int i;
7005   for (i = 0; i < 256; i++)
7006     if (XOR (islower (i), ISLOWER (i))
7007         || toupper (i) != TOUPPER (i))
7008       return 2;
7009   return 0;
7010 }
7011 _ACEOF
7012 rm -f conftest$ac_exeext
7013 if { (ac_try="$ac_link"
7014 case "(($ac_try" in
7015   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7016   *) ac_try_echo=$ac_try;;
7017 esac
7018 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7019   (eval "$ac_link") 2>&5
7020   ac_status=$?
7021   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7022   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7023   { (case "(($ac_try" in
7024   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7025   *) ac_try_echo=$ac_try;;
7026 esac
7027 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7028   (eval "$ac_try") 2>&5
7029   ac_status=$?
7030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7031   (exit $ac_status); }; }; then
7032   :
7033 else
7034   echo "$as_me: program exited with status $ac_status" >&5
7035 echo "$as_me: failed program was:" >&5
7036 sed 's/^/| /' conftest.$ac_ext >&5
7037
7038 ( exit $ac_status )
7039 ac_cv_header_stdc=no
7040 fi
7041 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7042 fi
7043
7044
7045 fi
7046 fi
7047 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7048 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
7049 if test $ac_cv_header_stdc = yes; then
7050
7051 cat >>confdefs.h <<\_ACEOF
7052 #define STDC_HEADERS 1
7053 _ACEOF
7054
7055 fi
7056
7057 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7058
7059
7060
7061
7062
7063
7064
7065
7066
7067 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7068                   inttypes.h stdint.h unistd.h
7069 do
7070 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7071 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7072 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7073 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7074   echo $ECHO_N "(cached) $ECHO_C" >&6
7075 else
7076   cat >conftest.$ac_ext <<_ACEOF
7077 /* confdefs.h.  */
7078 _ACEOF
7079 cat confdefs.h >>conftest.$ac_ext
7080 cat >>conftest.$ac_ext <<_ACEOF
7081 /* end confdefs.h.  */
7082 $ac_includes_default
7083
7084 #include <$ac_header>
7085 _ACEOF
7086 rm -f conftest.$ac_objext
7087 if { (ac_try="$ac_compile"
7088 case "(($ac_try" in
7089   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7090   *) ac_try_echo=$ac_try;;
7091 esac
7092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7093   (eval "$ac_compile") 2>conftest.er1
7094   ac_status=$?
7095   grep -v '^ *+' conftest.er1 >conftest.err
7096   rm -f conftest.er1
7097   cat conftest.err >&5
7098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7099   (exit $ac_status); } && {
7100          test -z "$ac_c_werror_flag" ||
7101          test ! -s conftest.err
7102        } && test -s conftest.$ac_objext; then
7103   eval "$as_ac_Header=yes"
7104 else
7105   echo "$as_me: failed program was:" >&5
7106 sed 's/^/| /' conftest.$ac_ext >&5
7107
7108         eval "$as_ac_Header=no"
7109 fi
7110
7111 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7112 fi
7113 ac_res=`eval echo '${'$as_ac_Header'}'`
7114                { echo "$as_me:$LINENO: result: $ac_res" >&5
7115 echo "${ECHO_T}$ac_res" >&6; }
7116 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7117   cat >>confdefs.h <<_ACEOF
7118 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7119 _ACEOF
7120
7121 fi
7122
7123 done
7124
7125
7126
7127 for ac_header in dlfcn.h
7128 do
7129 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7130 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7131   { echo "$as_me:$LINENO: checking for $ac_header" >&5
7132 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7133 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7134   echo $ECHO_N "(cached) $ECHO_C" >&6
7135 fi
7136 ac_res=`eval echo '${'$as_ac_Header'}'`
7137                { echo "$as_me:$LINENO: result: $ac_res" >&5
7138 echo "${ECHO_T}$ac_res" >&6; }
7139 else
7140   # Is the header compilable?
7141 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
7142 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
7143 cat >conftest.$ac_ext <<_ACEOF
7144 /* confdefs.h.  */
7145 _ACEOF
7146 cat confdefs.h >>conftest.$ac_ext
7147 cat >>conftest.$ac_ext <<_ACEOF
7148 /* end confdefs.h.  */
7149 $ac_includes_default
7150 #include <$ac_header>
7151 _ACEOF
7152 rm -f conftest.$ac_objext
7153 if { (ac_try="$ac_compile"
7154 case "(($ac_try" in
7155   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7156   *) ac_try_echo=$ac_try;;
7157 esac
7158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7159   (eval "$ac_compile") 2>conftest.er1
7160   ac_status=$?
7161   grep -v '^ *+' conftest.er1 >conftest.err
7162   rm -f conftest.er1
7163   cat conftest.err >&5
7164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7165   (exit $ac_status); } && {
7166          test -z "$ac_c_werror_flag" ||
7167          test ! -s conftest.err
7168        } && test -s conftest.$ac_objext; then
7169   ac_header_compiler=yes
7170 else
7171   echo "$as_me: failed program was:" >&5
7172 sed 's/^/| /' conftest.$ac_ext >&5
7173
7174         ac_header_compiler=no
7175 fi
7176
7177 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7178 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7179 echo "${ECHO_T}$ac_header_compiler" >&6; }
7180
7181 # Is the header present?
7182 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
7183 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
7184 cat >conftest.$ac_ext <<_ACEOF
7185 /* confdefs.h.  */
7186 _ACEOF
7187 cat confdefs.h >>conftest.$ac_ext
7188 cat >>conftest.$ac_ext <<_ACEOF
7189 /* end confdefs.h.  */
7190 #include <$ac_header>
7191 _ACEOF
7192 if { (ac_try="$ac_cpp conftest.$ac_ext"
7193 case "(($ac_try" in
7194   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7195   *) ac_try_echo=$ac_try;;
7196 esac
7197 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7198   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7199   ac_status=$?
7200   grep -v '^ *+' conftest.er1 >conftest.err
7201   rm -f conftest.er1
7202   cat conftest.err >&5
7203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7204   (exit $ac_status); } >/dev/null && {
7205          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7206          test ! -s conftest.err
7207        }; then
7208   ac_header_preproc=yes
7209 else
7210   echo "$as_me: failed program was:" >&5
7211 sed 's/^/| /' conftest.$ac_ext >&5
7212
7213   ac_header_preproc=no
7214 fi
7215
7216 rm -f conftest.err conftest.$ac_ext
7217 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7218 echo "${ECHO_T}$ac_header_preproc" >&6; }
7219
7220 # So?  What about this header?
7221 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7222   yes:no: )
7223     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7224 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7225     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7226 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7227     ac_header_preproc=yes
7228     ;;
7229   no:yes:* )
7230     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7231 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7232     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
7233 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
7234     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7235 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7236     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
7237 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
7238     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7239 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7240     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7241 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7242     ( cat <<\_ASBOX
7243 ## ---------------------------------------- ##
7244 ## Report this to linux-nfs@vger.kernel.org ##
7245 ## ---------------------------------------- ##
7246 _ASBOX
7247      ) | sed "s/^/$as_me: WARNING:     /" >&2
7248     ;;
7249 esac
7250 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7251 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7252 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7253   echo $ECHO_N "(cached) $ECHO_C" >&6
7254 else
7255   eval "$as_ac_Header=\$ac_header_preproc"
7256 fi
7257 ac_res=`eval echo '${'$as_ac_Header'}'`
7258                { echo "$as_me:$LINENO: result: $ac_res" >&5
7259 echo "${ECHO_T}$ac_res" >&6; }
7260
7261 fi
7262 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7263   cat >>confdefs.h <<_ACEOF
7264 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7265 _ACEOF
7266
7267 fi
7268
7269 done
7270
7271
7272
7273 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
7274     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
7275     (test "X$CXX" != "Xg++"))) ; then
7276   ac_ext=cpp
7277 ac_cpp='$CXXCPP $CPPFLAGS'
7278 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7279 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7280 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7281 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
7282 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
7283 if test -z "$CXXCPP"; then
7284   if test "${ac_cv_prog_CXXCPP+set}" = set; then
7285   echo $ECHO_N "(cached) $ECHO_C" >&6
7286 else
7287       # Double quotes because CXXCPP needs to be expanded
7288     for CXXCPP in "$CXX -E" "/lib/cpp"
7289     do
7290       ac_preproc_ok=false
7291 for ac_cxx_preproc_warn_flag in '' yes
7292 do
7293   # Use a header file that comes with gcc, so configuring glibc
7294   # with a fresh cross-compiler works.
7295   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7296   # <limits.h> exists even on freestanding compilers.
7297   # On the NeXT, cc -E runs the code through the compiler's parser,
7298   # not just through cpp. "Syntax error" is here to catch this case.
7299   cat >conftest.$ac_ext <<_ACEOF
7300 /* confdefs.h.  */
7301 _ACEOF
7302 cat confdefs.h >>conftest.$ac_ext
7303 cat >>conftest.$ac_ext <<_ACEOF
7304 /* end confdefs.h.  */
7305 #ifdef __STDC__
7306 # include <limits.h>
7307 #else
7308 # include <assert.h>
7309 #endif
7310                      Syntax error
7311 _ACEOF
7312 if { (ac_try="$ac_cpp conftest.$ac_ext"
7313 case "(($ac_try" in
7314   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7315   *) ac_try_echo=$ac_try;;
7316 esac
7317 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7318   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7319   ac_status=$?
7320   grep -v '^ *+' conftest.er1 >conftest.err
7321   rm -f conftest.er1
7322   cat conftest.err >&5
7323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7324   (exit $ac_status); } >/dev/null && {
7325          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
7326          test ! -s conftest.err
7327        }; then
7328   :
7329 else
7330   echo "$as_me: failed program was:" >&5
7331 sed 's/^/| /' conftest.$ac_ext >&5
7332
7333   # Broken: fails on valid input.
7334 continue
7335 fi
7336
7337 rm -f conftest.err conftest.$ac_ext
7338
7339   # OK, works on sane cases.  Now check whether nonexistent headers
7340   # can be detected and how.
7341   cat >conftest.$ac_ext <<_ACEOF
7342 /* confdefs.h.  */
7343 _ACEOF
7344 cat confdefs.h >>conftest.$ac_ext
7345 cat >>conftest.$ac_ext <<_ACEOF
7346 /* end confdefs.h.  */
7347 #include <ac_nonexistent.h>
7348 _ACEOF
7349 if { (ac_try="$ac_cpp conftest.$ac_ext"
7350 case "(($ac_try" in
7351   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7352   *) ac_try_echo=$ac_try;;
7353 esac
7354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7355   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7356   ac_status=$?
7357   grep -v '^ *+' conftest.er1 >conftest.err
7358   rm -f conftest.er1
7359   cat conftest.err >&5
7360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7361   (exit $ac_status); } >/dev/null && {
7362          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
7363          test ! -s conftest.err
7364        }; then
7365   # Broken: success on invalid input.
7366 continue
7367 else
7368   echo "$as_me: failed program was:" >&5
7369 sed 's/^/| /' conftest.$ac_ext >&5
7370
7371   # Passes both tests.
7372 ac_preproc_ok=:
7373 break
7374 fi
7375
7376 rm -f conftest.err conftest.$ac_ext
7377
7378 done
7379 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7380 rm -f conftest.err conftest.$ac_ext
7381 if $ac_preproc_ok; then
7382   break
7383 fi
7384
7385     done
7386     ac_cv_prog_CXXCPP=$CXXCPP
7387
7388 fi
7389   CXXCPP=$ac_cv_prog_CXXCPP
7390 else
7391   ac_cv_prog_CXXCPP=$CXXCPP
7392 fi
7393 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
7394 echo "${ECHO_T}$CXXCPP" >&6; }
7395 ac_preproc_ok=false
7396 for ac_cxx_preproc_warn_flag in '' yes
7397 do
7398   # Use a header file that comes with gcc, so configuring glibc
7399   # with a fresh cross-compiler works.
7400   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7401   # <limits.h> exists even on freestanding compilers.
7402   # On the NeXT, cc -E runs the code through the compiler's parser,
7403   # not just through cpp. "Syntax error" is here to catch this case.
7404   cat >conftest.$ac_ext <<_ACEOF
7405 /* confdefs.h.  */
7406 _ACEOF
7407 cat confdefs.h >>conftest.$ac_ext
7408 cat >>conftest.$ac_ext <<_ACEOF
7409 /* end confdefs.h.  */
7410 #ifdef __STDC__
7411 # include <limits.h>
7412 #else
7413 # include <assert.h>
7414 #endif
7415                      Syntax error
7416 _ACEOF
7417 if { (ac_try="$ac_cpp conftest.$ac_ext"
7418 case "(($ac_try" in
7419   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7420   *) ac_try_echo=$ac_try;;
7421 esac
7422 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7423   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7424   ac_status=$?
7425   grep -v '^ *+' conftest.er1 >conftest.err
7426   rm -f conftest.er1
7427   cat conftest.err >&5
7428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7429   (exit $ac_status); } >/dev/null && {
7430          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
7431          test ! -s conftest.err
7432        }; then
7433   :
7434 else
7435   echo "$as_me: failed program was:" >&5
7436 sed 's/^/| /' conftest.$ac_ext >&5
7437
7438   # Broken: fails on valid input.
7439 continue
7440 fi
7441
7442 rm -f conftest.err conftest.$ac_ext
7443
7444   # OK, works on sane cases.  Now check whether nonexistent headers
7445   # can be detected and how.
7446   cat >conftest.$ac_ext <<_ACEOF
7447 /* confdefs.h.  */
7448 _ACEOF
7449 cat confdefs.h >>conftest.$ac_ext
7450 cat >>conftest.$ac_ext <<_ACEOF
7451 /* end confdefs.h.  */
7452 #include <ac_nonexistent.h>
7453 _ACEOF
7454 if { (ac_try="$ac_cpp conftest.$ac_ext"
7455 case "(($ac_try" in
7456   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7457   *) ac_try_echo=$ac_try;;
7458 esac
7459 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7460   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7461   ac_status=$?
7462   grep -v '^ *+' conftest.er1 >conftest.err
7463   rm -f conftest.er1
7464   cat conftest.err >&5
7465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7466   (exit $ac_status); } >/dev/null && {
7467          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
7468          test ! -s conftest.err
7469        }; then
7470   # Broken: success on invalid input.
7471 continue
7472 else
7473   echo "$as_me: failed program was:" >&5
7474 sed 's/^/| /' conftest.$ac_ext >&5
7475
7476   # Passes both tests.
7477 ac_preproc_ok=:
7478 break
7479 fi
7480
7481 rm -f conftest.err conftest.$ac_ext
7482
7483 done
7484 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7485 rm -f conftest.err conftest.$ac_ext
7486 if $ac_preproc_ok; then
7487   :
7488 else
7489   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
7490 See \`config.log' for more details." >&5
7491 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
7492 See \`config.log' for more details." >&2;}
7493    { (exit 1); exit 1; }; }
7494 fi
7495
7496 ac_ext=cpp
7497 ac_cpp='$CXXCPP $CPPFLAGS'
7498 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7499 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7500 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7501
7502 fi
7503
7504
7505 ac_ext=f
7506 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
7507 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7508 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
7509 if test -n "$ac_tool_prefix"; then
7510   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
7511   do
7512     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7513 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7514 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7515 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7516 if test "${ac_cv_prog_F77+set}" = set; then
7517   echo $ECHO_N "(cached) $ECHO_C" >&6
7518 else
7519   if test -n "$F77"; then
7520   ac_cv_prog_F77="$F77" # Let the user override the test.
7521 else
7522 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7523 for as_dir in $PATH
7524 do
7525   IFS=$as_save_IFS
7526   test -z "$as_dir" && as_dir=.
7527   for ac_exec_ext in '' $ac_executable_extensions; do
7528   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7529     ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
7530     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7531     break 2
7532   fi
7533 done
7534 done
7535 IFS=$as_save_IFS
7536
7537 fi
7538 fi
7539 F77=$ac_cv_prog_F77
7540 if test -n "$F77"; then
7541   { echo "$as_me:$LINENO: result: $F77" >&5
7542 echo "${ECHO_T}$F77" >&6; }
7543 else
7544   { echo "$as_me:$LINENO: result: no" >&5
7545 echo "${ECHO_T}no" >&6; }
7546 fi
7547
7548
7549     test -n "$F77" && break
7550   done
7551 fi
7552 if test -z "$F77"; then
7553   ac_ct_F77=$F77
7554   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
7555 do
7556   # Extract the first word of "$ac_prog", so it can be a program name with args.
7557 set dummy $ac_prog; ac_word=$2
7558 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7559 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7560 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
7561   echo $ECHO_N "(cached) $ECHO_C" >&6
7562 else
7563   if test -n "$ac_ct_F77"; then
7564   ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
7565 else
7566 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7567 for as_dir in $PATH
7568 do
7569   IFS=$as_save_IFS
7570   test -z "$as_dir" && as_dir=.
7571   for ac_exec_ext in '' $ac_executable_extensions; do
7572   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7573     ac_cv_prog_ac_ct_F77="$ac_prog"
7574     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7575     break 2
7576   fi
7577 done
7578 done
7579 IFS=$as_save_IFS
7580
7581 fi
7582 fi
7583 ac_ct_F77=$ac_cv_prog_ac_ct_F77
7584 if test -n "$ac_ct_F77"; then
7585   { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
7586 echo "${ECHO_T}$ac_ct_F77" >&6; }
7587 else
7588   { echo "$as_me:$LINENO: result: no" >&5
7589 echo "${ECHO_T}no" >&6; }
7590 fi
7591
7592
7593   test -n "$ac_ct_F77" && break
7594 done
7595
7596   if test "x$ac_ct_F77" = x; then
7597     F77=""
7598   else
7599     case $cross_compiling:$ac_tool_warned in
7600 yes:)
7601 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7602 whose name does not start with the host triplet.  If you think this
7603 configuration is useful to you, please write to autoconf@gnu.org." >&5
7604 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7605 whose name does not start with the host triplet.  If you think this
7606 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7607 ac_tool_warned=yes ;;
7608 esac
7609     F77=$ac_ct_F77
7610   fi
7611 fi
7612
7613
7614 # Provide some information about the compiler.
7615 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
7616 ac_compiler=`set X $ac_compile; echo $2`
7617 { (ac_try="$ac_compiler --version >&5"
7618 case "(($ac_try" in
7619   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7620   *) ac_try_echo=$ac_try;;
7621 esac
7622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7623   (eval "$ac_compiler --version >&5") 2>&5
7624   ac_status=$?
7625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7626   (exit $ac_status); }
7627 { (ac_try="$ac_compiler -v >&5"
7628 case "(($ac_try" in
7629   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7630   *) ac_try_echo=$ac_try;;
7631 esac
7632 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7633   (eval "$ac_compiler -v >&5") 2>&5
7634   ac_status=$?
7635   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7636   (exit $ac_status); }
7637 { (ac_try="$ac_compiler -V >&5"
7638 case "(($ac_try" in
7639   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7640   *) ac_try_echo=$ac_try;;
7641 esac
7642 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7643   (eval "$ac_compiler -V >&5") 2>&5
7644   ac_status=$?
7645   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7646   (exit $ac_status); }
7647 rm -f a.out
7648
7649 # If we don't use `.F' as extension, the preprocessor is not run on the
7650 # input file.  (Note that this only needs to work for GNU compilers.)
7651 ac_save_ext=$ac_ext
7652 ac_ext=F
7653 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
7654 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
7655 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
7656   echo $ECHO_N "(cached) $ECHO_C" >&6
7657 else
7658   cat >conftest.$ac_ext <<_ACEOF
7659       program main
7660 #ifndef __GNUC__
7661        choke me
7662 #endif
7663
7664       end
7665 _ACEOF
7666 rm -f conftest.$ac_objext
7667 if { (ac_try="$ac_compile"
7668 case "(($ac_try" in
7669   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7670   *) ac_try_echo=$ac_try;;
7671 esac
7672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7673   (eval "$ac_compile") 2>conftest.er1
7674   ac_status=$?
7675   grep -v '^ *+' conftest.er1 >conftest.err
7676   rm -f conftest.er1
7677   cat conftest.err >&5
7678   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7679   (exit $ac_status); } && {
7680          test -z "$ac_f77_werror_flag" ||
7681          test ! -s conftest.err
7682        } && test -s conftest.$ac_objext; then
7683   ac_compiler_gnu=yes
7684 else
7685   echo "$as_me: failed program was:" >&5
7686 sed 's/^/| /' conftest.$ac_ext >&5
7687
7688         ac_compiler_gnu=no
7689 fi
7690
7691 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7692 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
7693
7694 fi
7695 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
7696 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
7697 ac_ext=$ac_save_ext
7698 ac_test_FFLAGS=${FFLAGS+set}
7699 ac_save_FFLAGS=$FFLAGS
7700 FFLAGS=
7701 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
7702 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
7703 if test "${ac_cv_prog_f77_g+set}" = set; then
7704   echo $ECHO_N "(cached) $ECHO_C" >&6
7705 else
7706   FFLAGS=-g
7707 cat >conftest.$ac_ext <<_ACEOF
7708       program main
7709
7710       end
7711 _ACEOF
7712 rm -f conftest.$ac_objext
7713 if { (ac_try="$ac_compile"
7714 case "(($ac_try" in
7715   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7716   *) ac_try_echo=$ac_try;;
7717 esac
7718 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7719   (eval "$ac_compile") 2>conftest.er1
7720   ac_status=$?
7721   grep -v '^ *+' conftest.er1 >conftest.err
7722   rm -f conftest.er1
7723   cat conftest.err >&5
7724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7725   (exit $ac_status); } && {
7726          test -z "$ac_f77_werror_flag" ||
7727          test ! -s conftest.err
7728        } && test -s conftest.$ac_objext; then
7729   ac_cv_prog_f77_g=yes
7730 else
7731   echo "$as_me: failed program was:" >&5
7732 sed 's/^/| /' conftest.$ac_ext >&5
7733
7734         ac_cv_prog_f77_g=no
7735 fi
7736
7737 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7738
7739 fi
7740 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
7741 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
7742 if test "$ac_test_FFLAGS" = set; then
7743   FFLAGS=$ac_save_FFLAGS
7744 elif test $ac_cv_prog_f77_g = yes; then
7745   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
7746     FFLAGS="-g -O2"
7747   else
7748     FFLAGS="-g"
7749   fi
7750 else
7751   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
7752     FFLAGS="-O2"
7753   else
7754     FFLAGS=
7755   fi
7756 fi
7757
7758 G77=`test $ac_compiler_gnu = yes && echo yes`
7759 ac_ext=c
7760 ac_cpp='$CPP $CPPFLAGS'
7761 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7762 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7763 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7764
7765
7766
7767 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
7768
7769 # find the maximum length of command line arguments
7770 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
7771 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
7772 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
7773   echo $ECHO_N "(cached) $ECHO_C" >&6
7774 else
7775     i=0
7776   teststring="ABCD"
7777
7778   case $build_os in
7779   msdosdjgpp*)
7780     # On DJGPP, this test can blow up pretty badly due to problems in libc
7781     # (any single argument exceeding 2000 bytes causes a buffer overrun
7782     # during glob expansion).  Even if it were fixed, the result of this
7783     # check would be larger than it should be.
7784     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
7785     ;;
7786
7787   gnu*)
7788     # Under GNU Hurd, this test is not required because there is
7789     # no limit to the length of command line arguments.
7790     # Libtool will interpret -1 as no limit whatsoever
7791     lt_cv_sys_max_cmd_len=-1;
7792     ;;
7793
7794   cygwin* | mingw*)
7795     # On Win9x/ME, this test blows up -- it succeeds, but takes
7796     # about 5 minutes as the teststring grows exponentially.
7797     # Worse, since 9x/ME are not pre-emptively multitasking,
7798     # you end up with a "frozen" computer, even though with patience
7799     # the test eventually succeeds (with a max line length of 256k).
7800     # Instead, let's just punt: use the minimum linelength reported by
7801     # all of the supported platforms: 8192 (on NT/2K/XP).
7802     lt_cv_sys_max_cmd_len=8192;
7803     ;;
7804
7805   amigaos*)
7806     # On AmigaOS with pdksh, this test takes hours, literally.
7807     # So we just punt and use a minimum line length of 8192.
7808     lt_cv_sys_max_cmd_len=8192;
7809     ;;
7810
7811   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
7812     # This has been around since 386BSD, at least.  Likely further.
7813     if test -x /sbin/sysctl; then
7814       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7815     elif test -x /usr/sbin/sysctl; then
7816       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7817     else
7818       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
7819     fi
7820     # And add a safety zone
7821     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7822     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7823     ;;
7824
7825   interix*)
7826     # We know the value 262144 and hardcode it with a safety zone (like BSD)
7827     lt_cv_sys_max_cmd_len=196608
7828     ;;
7829
7830   osf*)
7831     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7832     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7833     # nice to cause kernel panics so lets avoid the loop below.
7834     # First set a reasonable default.
7835     lt_cv_sys_max_cmd_len=16384
7836     #
7837     if test -x /sbin/sysconfig; then
7838       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7839         *1*) lt_cv_sys_max_cmd_len=-1 ;;
7840       esac
7841     fi
7842     ;;
7843   sco3.2v5*)
7844     lt_cv_sys_max_cmd_len=102400
7845     ;;
7846   sysv5* | sco5v6* | sysv4.2uw2*)
7847     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
7848     if test -n "$kargmax"; then
7849       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
7850     else
7851       lt_cv_sys_max_cmd_len=32768
7852     fi
7853     ;;
7854   *)
7855     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
7856     if test -n "$lt_cv_sys_max_cmd_len"; then
7857       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7858       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7859     else
7860       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7861       while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
7862                = "XX$teststring") >/dev/null 2>&1 &&
7863               new_result=`expr "X$teststring" : ".*" 2>&1` &&
7864               lt_cv_sys_max_cmd_len=$new_result &&
7865               test $i != 17 # 1/2 MB should be enough
7866       do
7867         i=`expr $i + 1`
7868         teststring=$teststring$teststring
7869       done
7870       teststring=
7871       # Add a significant safety factor because C++ compilers can tack on massive
7872       # amounts of additional arguments before passing them to the linker.
7873       # It appears as though 1/2 is a usable value.
7874       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7875     fi
7876     ;;
7877   esac
7878
7879 fi
7880
7881 if test -n $lt_cv_sys_max_cmd_len ; then
7882   { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
7883 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
7884 else
7885   { echo "$as_me:$LINENO: result: none" >&5
7886 echo "${ECHO_T}none" >&6; }
7887 fi
7888
7889
7890
7891
7892
7893 # Check for command to grab the raw symbol name followed by C symbol from nm.
7894 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
7895 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
7896 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
7897   echo $ECHO_N "(cached) $ECHO_C" >&6
7898 else
7899
7900 # These are sane defaults that work on at least a few old systems.
7901 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
7902
7903 # Character class describing NM global symbol codes.
7904 symcode='[BCDEGRST]'
7905
7906 # Regexp to match symbols that can be accessed directly from C.
7907 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7908
7909 # Transform an extracted symbol line into a proper C declaration
7910 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
7911
7912 # Transform an extracted symbol line into symbol name and symbol address
7913 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'"
7914
7915 # Define system-specific variables.
7916 case $host_os in
7917 aix*)
7918   symcode='[BCDT]'
7919   ;;
7920 cygwin* | mingw* | pw32*)
7921   symcode='[ABCDGISTW]'
7922   ;;
7923 hpux*) # Its linker distinguishes data from code symbols
7924   if test "$host_cpu" = ia64; then
7925     symcode='[ABCDEGRST]'
7926   fi
7927   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7928   lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
7929   ;;
7930 linux* | k*bsd*-gnu)
7931   if test "$host_cpu" = ia64; then
7932     symcode='[ABCDGIRSTW]'
7933     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7934     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'"
7935   fi
7936   ;;
7937 irix* | nonstopux*)
7938   symcode='[BCDEGRST]'
7939   ;;
7940 osf*)
7941   symcode='[BCDEGQRST]'
7942   ;;
7943 solaris*)
7944   symcode='[BDRT]'
7945   ;;
7946 sco3.2v5*)
7947   symcode='[DT]'
7948   ;;
7949 sysv4.2uw2*)
7950   symcode='[DT]'
7951   ;;
7952 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7953   symcode='[ABDT]'
7954   ;;
7955 sysv4)
7956   symcode='[DFNSTU]'
7957   ;;
7958 esac
7959
7960 # Handle CRLF in mingw tool chain
7961 opt_cr=
7962 case $build_os in
7963 mingw*)
7964   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7965   ;;
7966 esac
7967
7968 # If we're using GNU nm, then use its standard symbol codes.
7969 case `$NM -V 2>&1` in
7970 *GNU* | *'with BFD'*)
7971   symcode='[ABCDGIRSTW]' ;;
7972 esac
7973
7974 # Try without a prefix undercore, then with it.
7975 for ac_symprfx in "" "_"; do
7976
7977   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7978   symxfrm="\\1 $ac_symprfx\\2 \\2"
7979
7980   # Write the raw and C identifiers.
7981   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7982
7983   # Check to see that the pipe works correctly.
7984   pipe_works=no
7985
7986   rm -f conftest*
7987   cat > conftest.$ac_ext <<EOF
7988 #ifdef __cplusplus
7989 extern "C" {
7990 #endif
7991 char nm_test_var;
7992 void nm_test_func(){}
7993 #ifdef __cplusplus
7994 }
7995 #endif
7996 int main(){nm_test_var='a';nm_test_func();return(0);}
7997 EOF
7998
7999   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8000   (eval $ac_compile) 2>&5
8001   ac_status=$?
8002   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8003   (exit $ac_status); }; then
8004     # Now try to grab the symbols.
8005     nlist=conftest.nm
8006     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
8007   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
8008   ac_status=$?
8009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8010   (exit $ac_status); } && test -s "$nlist"; then
8011       # Try sorting and uniquifying the output.
8012       if sort "$nlist" | uniq > "$nlist"T; then
8013         mv -f "$nlist"T "$nlist"
8014       else
8015         rm -f "$nlist"T
8016       fi
8017
8018       # Make sure that we snagged all the symbols we need.
8019       if grep ' nm_test_var$' "$nlist" >/dev/null; then
8020         if grep ' nm_test_func$' "$nlist" >/dev/null; then
8021           cat <<EOF > conftest.$ac_ext
8022 #ifdef __cplusplus
8023 extern "C" {
8024 #endif
8025
8026 EOF
8027           # Now generate the symbol file.
8028           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
8029
8030           cat <<EOF >> conftest.$ac_ext
8031 #if defined (__STDC__) && __STDC__
8032 # define lt_ptr_t void *
8033 #else
8034 # define lt_ptr_t char *
8035 # define const
8036 #endif
8037
8038 /* The mapping between symbol names and symbols. */
8039 const struct {
8040   const char *name;
8041   lt_ptr_t address;
8042 }
8043 lt_preloaded_symbols[] =
8044 {
8045 EOF
8046           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
8047           cat <<\EOF >> conftest.$ac_ext
8048   {0, (lt_ptr_t) 0}
8049 };
8050
8051 #ifdef __cplusplus
8052 }
8053 #endif
8054 EOF
8055           # Now try linking the two files.
8056           mv conftest.$ac_objext conftstm.$ac_objext
8057           lt_save_LIBS="$LIBS"
8058           lt_save_CFLAGS="$CFLAGS"
8059           LIBS="conftstm.$ac_objext"
8060           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
8061           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8062   (eval $ac_link) 2>&5
8063   ac_status=$?
8064   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8065   (exit $ac_status); } && test -s conftest${ac_exeext}; then
8066             pipe_works=yes
8067           fi
8068           LIBS="$lt_save_LIBS"
8069           CFLAGS="$lt_save_CFLAGS"
8070         else
8071           echo "cannot find nm_test_func in $nlist" >&5
8072         fi
8073       else
8074         echo "cannot find nm_test_var in $nlist" >&5
8075       fi
8076     else
8077       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
8078     fi
8079   else
8080     echo "$progname: failed program was:" >&5
8081     cat conftest.$ac_ext >&5
8082   fi
8083   rm -f conftest* conftst*
8084
8085   # Do not use the global_symbol_pipe unless it works.
8086   if test "$pipe_works" = yes; then
8087     break
8088   else
8089     lt_cv_sys_global_symbol_pipe=
8090   fi
8091 done
8092
8093 fi
8094
8095 if test -z "$lt_cv_sys_global_symbol_pipe"; then
8096   lt_cv_sys_global_symbol_to_cdecl=
8097 fi
8098 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
8099   { echo "$as_me:$LINENO: result: failed" >&5
8100 echo "${ECHO_T}failed" >&6; }
8101 else
8102   { echo "$as_me:$LINENO: result: ok" >&5
8103 echo "${ECHO_T}ok" >&6; }
8104 fi
8105
8106 { echo "$as_me:$LINENO: checking for objdir" >&5
8107 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
8108 if test "${lt_cv_objdir+set}" = set; then
8109   echo $ECHO_N "(cached) $ECHO_C" >&6
8110 else
8111   rm -f .libs 2>/dev/null
8112 mkdir .libs 2>/dev/null
8113 if test -d .libs; then
8114   lt_cv_objdir=.libs
8115 else
8116   # MS-DOS does not allow filenames that begin with a dot.
8117   lt_cv_objdir=_libs
8118 fi
8119 rmdir .libs 2>/dev/null
8120 fi
8121 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
8122 echo "${ECHO_T}$lt_cv_objdir" >&6; }
8123 objdir=$lt_cv_objdir
8124
8125
8126
8127
8128
8129 case $host_os in
8130 aix3*)
8131   # AIX sometimes has problems with the GCC collect2 program.  For some
8132   # reason, if we set the COLLECT_NAMES environment variable, the problems
8133   # vanish in a puff of smoke.
8134   if test "X${COLLECT_NAMES+set}" != Xset; then
8135     COLLECT_NAMES=
8136     export COLLECT_NAMES
8137   fi
8138   ;;
8139 esac
8140
8141 # Sed substitution that helps us do robust quoting.  It backslashifies
8142 # metacharacters that are still active within double-quoted strings.
8143 Xsed='sed -e 1s/^X//'
8144 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
8145
8146 # Same as above, but do not quote variable references.
8147 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
8148
8149 # Sed substitution to delay expansion of an escaped shell variable in a
8150 # double_quote_subst'ed string.
8151 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
8152
8153 # Sed substitution to avoid accidental globbing in evaled expressions
8154 no_glob_subst='s/\*/\\\*/g'
8155
8156 # Constants:
8157 rm="rm -f"
8158
8159 # Global variables:
8160 default_ofile=libtool
8161 can_build_shared=yes
8162
8163 # All known linkers require a `.a' archive for static linking (except MSVC,
8164 # which needs '.lib').
8165 libext=a
8166 ltmain="$ac_aux_dir/ltmain.sh"
8167 ofile="$default_ofile"
8168 with_gnu_ld="$lt_cv_prog_gnu_ld"
8169
8170 if test -n "$ac_tool_prefix"; then
8171   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
8172 set dummy ${ac_tool_prefix}ar; ac_word=$2
8173 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8174 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8175 if test "${ac_cv_prog_AR+set}" = set; then
8176   echo $ECHO_N "(cached) $ECHO_C" >&6
8177 else
8178   if test -n "$AR"; then
8179   ac_cv_prog_AR="$AR" # Let the user override the test.
8180 else
8181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8182 for as_dir in $PATH
8183 do
8184   IFS=$as_save_IFS
8185   test -z "$as_dir" && as_dir=.
8186   for ac_exec_ext in '' $ac_executable_extensions; do
8187   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8188     ac_cv_prog_AR="${ac_tool_prefix}ar"
8189     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8190     break 2
8191   fi
8192 done
8193 done
8194 IFS=$as_save_IFS
8195
8196 fi
8197 fi
8198 AR=$ac_cv_prog_AR
8199 if test -n "$AR"; then
8200   { echo "$as_me:$LINENO: result: $AR" >&5
8201 echo "${ECHO_T}$AR" >&6; }
8202 else
8203   { echo "$as_me:$LINENO: result: no" >&5
8204 echo "${ECHO_T}no" >&6; }
8205 fi
8206
8207
8208 fi
8209 if test -z "$ac_cv_prog_AR"; then
8210   ac_ct_AR=$AR
8211   # Extract the first word of "ar", so it can be a program name with args.
8212 set dummy ar; ac_word=$2
8213 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8214 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8215 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
8216   echo $ECHO_N "(cached) $ECHO_C" >&6
8217 else
8218   if test -n "$ac_ct_AR"; then
8219   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
8220 else
8221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8222 for as_dir in $PATH
8223 do
8224   IFS=$as_save_IFS
8225   test -z "$as_dir" && as_dir=.
8226   for ac_exec_ext in '' $ac_executable_extensions; do
8227   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8228     ac_cv_prog_ac_ct_AR="ar"
8229     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8230     break 2
8231   fi
8232 done
8233 done
8234 IFS=$as_save_IFS
8235
8236 fi
8237 fi
8238 ac_ct_AR=$ac_cv_prog_ac_ct_AR
8239 if test -n "$ac_ct_AR"; then
8240   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
8241 echo "${ECHO_T}$ac_ct_AR" >&6; }
8242 else
8243   { echo "$as_me:$LINENO: result: no" >&5
8244 echo "${ECHO_T}no" >&6; }
8245 fi
8246
8247   if test "x$ac_ct_AR" = x; then
8248     AR="false"
8249   else
8250     case $cross_compiling:$ac_tool_warned in
8251 yes:)
8252 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
8253 whose name does not start with the host triplet.  If you think this
8254 configuration is useful to you, please write to autoconf@gnu.org." >&5
8255 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
8256 whose name does not start with the host triplet.  If you think this
8257 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
8258 ac_tool_warned=yes ;;
8259 esac
8260     AR=$ac_ct_AR
8261   fi
8262 else
8263   AR="$ac_cv_prog_AR"
8264 fi
8265
8266 if test -n "$ac_tool_prefix"; then
8267   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8268 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8269 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8270 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8271 if test "${ac_cv_prog_RANLIB+set}" = set; then
8272   echo $ECHO_N "(cached) $ECHO_C" >&6
8273 else
8274   if test -n "$RANLIB"; then
8275   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8276 else
8277 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8278 for as_dir in $PATH
8279 do
8280   IFS=$as_save_IFS
8281   test -z "$as_dir" && as_dir=.
8282   for ac_exec_ext in '' $ac_executable_extensions; do
8283   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8284     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8285     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8286     break 2
8287   fi
8288 done
8289 done
8290 IFS=$as_save_IFS
8291
8292 fi
8293 fi
8294 RANLIB=$ac_cv_prog_RANLIB
8295 if test -n "$RANLIB"; then
8296   { echo "$as_me:$LINENO: result: $RANLIB" >&5
8297 echo "${ECHO_T}$RANLIB" >&6; }
8298 else
8299   { echo "$as_me:$LINENO: result: no" >&5
8300 echo "${ECHO_T}no" >&6; }
8301 fi
8302
8303
8304 fi
8305 if test -z "$ac_cv_prog_RANLIB"; then
8306   ac_ct_RANLIB=$RANLIB
8307   # Extract the first word of "ranlib", so it can be a program name with args.
8308 set dummy ranlib; ac_word=$2
8309 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8310 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8311 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
8312   echo $ECHO_N "(cached) $ECHO_C" >&6
8313 else
8314   if test -n "$ac_ct_RANLIB"; then
8315   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8316 else
8317 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8318 for as_dir in $PATH
8319 do
8320   IFS=$as_save_IFS
8321   test -z "$as_dir" && as_dir=.
8322   for ac_exec_ext in '' $ac_executable_extensions; do
8323   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8324     ac_cv_prog_ac_ct_RANLIB="ranlib"
8325     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8326     break 2
8327   fi
8328 done
8329 done
8330 IFS=$as_save_IFS
8331
8332 fi
8333 fi
8334 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8335 if test -n "$ac_ct_RANLIB"; then
8336   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
8337 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
8338 else
8339   { echo "$as_me:$LINENO: result: no" >&5
8340 echo "${ECHO_T}no" >&6; }
8341 fi
8342
8343   if test "x$ac_ct_RANLIB" = x; then
8344     RANLIB=":"
8345   else
8346     case $cross_compiling:$ac_tool_warned in
8347 yes:)
8348 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
8349 whose name does not start with the host triplet.  If you think this
8350 configuration is useful to you, please write to autoconf@gnu.org." >&5
8351 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
8352 whose name does not start with the host triplet.  If you think this
8353 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
8354 ac_tool_warned=yes ;;
8355 esac
8356     RANLIB=$ac_ct_RANLIB
8357   fi
8358 else
8359   RANLIB="$ac_cv_prog_RANLIB"
8360 fi
8361
8362 if test -n "$ac_tool_prefix"; then
8363   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
8364 set dummy ${ac_tool_prefix}strip; ac_word=$2
8365 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8366 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8367 if test "${ac_cv_prog_STRIP+set}" = set; then
8368   echo $ECHO_N "(cached) $ECHO_C" >&6
8369 else
8370   if test -n "$STRIP"; then
8371   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8372 else
8373 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8374 for as_dir in $PATH
8375 do
8376   IFS=$as_save_IFS
8377   test -z "$as_dir" && as_dir=.
8378   for ac_exec_ext in '' $ac_executable_extensions; do
8379   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8380     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
8381     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8382     break 2
8383   fi
8384 done
8385 done
8386 IFS=$as_save_IFS
8387
8388 fi
8389 fi
8390 STRIP=$ac_cv_prog_STRIP
8391 if test -n "$STRIP"; then
8392   { echo "$as_me:$LINENO: result: $STRIP" >&5
8393 echo "${ECHO_T}$STRIP" >&6; }
8394 else
8395   { echo "$as_me:$LINENO: result: no" >&5
8396 echo "${ECHO_T}no" >&6; }
8397 fi
8398
8399
8400 fi
8401 if test -z "$ac_cv_prog_STRIP"; then
8402   ac_ct_STRIP=$STRIP
8403   # Extract the first word of "strip", so it can be a program name with args.
8404 set dummy strip; ac_word=$2
8405 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8406 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8407 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
8408   echo $ECHO_N "(cached) $ECHO_C" >&6
8409 else
8410   if test -n "$ac_ct_STRIP"; then
8411   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
8412 else
8413 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8414 for as_dir in $PATH
8415 do
8416   IFS=$as_save_IFS
8417   test -z "$as_dir" && as_dir=.
8418   for ac_exec_ext in '' $ac_executable_extensions; do
8419   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8420     ac_cv_prog_ac_ct_STRIP="strip"
8421     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8422     break 2
8423   fi
8424 done
8425 done
8426 IFS=$as_save_IFS
8427
8428 fi
8429 fi
8430 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
8431 if test -n "$ac_ct_STRIP"; then
8432   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
8433 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
8434 else
8435   { echo "$as_me:$LINENO: result: no" >&5
8436 echo "${ECHO_T}no" >&6; }
8437 fi
8438
8439   if test "x$ac_ct_STRIP" = x; then
8440     STRIP=":"
8441   else
8442     case $cross_compiling:$ac_tool_warned in
8443 yes:)
8444 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
8445 whose name does not start with the host triplet.  If you think this
8446 configuration is useful to you, please write to autoconf@gnu.org." >&5
8447 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
8448 whose name does not start with the host triplet.  If you think this
8449 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
8450 ac_tool_warned=yes ;;
8451 esac
8452     STRIP=$ac_ct_STRIP
8453   fi
8454 else
8455   STRIP="$ac_cv_prog_STRIP"
8456 fi
8457
8458
8459 old_CC="$CC"
8460 old_CFLAGS="$CFLAGS"
8461
8462 # Set sane defaults for various variables
8463 test -z "$AR" && AR=ar
8464 test -z "$AR_FLAGS" && AR_FLAGS=cru
8465 test -z "$AS" && AS=as
8466 test -z "$CC" && CC=cc
8467 test -z "$LTCC" && LTCC=$CC
8468 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8469 test -z "$DLLTOOL" && DLLTOOL=dlltool
8470 test -z "$LD" && LD=ld
8471 test -z "$LN_S" && LN_S="ln -s"
8472 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8473 test -z "$NM" && NM=nm
8474 test -z "$SED" && SED=sed
8475 test -z "$OBJDUMP" && OBJDUMP=objdump
8476 test -z "$RANLIB" && RANLIB=:
8477 test -z "$STRIP" && STRIP=:
8478 test -z "$ac_objext" && ac_objext=o
8479
8480 # Determine commands to create old-style static archives.
8481 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
8482 old_postinstall_cmds='chmod 644 $oldlib'
8483 old_postuninstall_cmds=
8484
8485 if test -n "$RANLIB"; then
8486   case $host_os in
8487   openbsd*)
8488     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
8489     ;;
8490   *)
8491     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
8492     ;;
8493   esac
8494   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
8495 fi
8496
8497 for cc_temp in $compiler""; do
8498   case $cc_temp in
8499     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8500     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8501     \-*) ;;
8502     *) break;;
8503   esac
8504 done
8505 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8506
8507
8508 # Only perform the check for file, if the check method requires it
8509 case $deplibs_check_method in
8510 file_magic*)
8511   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8512     { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
8513 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
8514 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8515   echo $ECHO_N "(cached) $ECHO_C" >&6
8516 else
8517   case $MAGIC_CMD in
8518 [\\/*] |  ?:[\\/]*)
8519   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8520   ;;
8521 *)
8522   lt_save_MAGIC_CMD="$MAGIC_CMD"
8523   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8524   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8525   for ac_dir in $ac_dummy; do
8526     IFS="$lt_save_ifs"
8527     test -z "$ac_dir" && ac_dir=.
8528     if test -f $ac_dir/${ac_tool_prefix}file; then
8529       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8530       if test -n "$file_magic_test_file"; then
8531         case $deplibs_check_method in
8532         "file_magic "*)
8533           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8534           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8535           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8536             $EGREP "$file_magic_regex" > /dev/null; then
8537             :
8538           else
8539             cat <<EOF 1>&2
8540
8541 *** Warning: the command libtool uses to detect shared libraries,
8542 *** $file_magic_cmd, produces output that libtool cannot recognize.
8543 *** The result is that libtool may fail to recognize shared libraries
8544 *** as such.  This will affect the creation of libtool libraries that
8545 *** depend on shared libraries, but programs linked with such libtool
8546 *** libraries will work regardless of this problem.  Nevertheless, you
8547 *** may want to report the problem to your system manager and/or to
8548 *** bug-libtool@gnu.org
8549
8550 EOF
8551           fi ;;
8552         esac
8553       fi
8554       break
8555     fi
8556   done
8557   IFS="$lt_save_ifs"
8558   MAGIC_CMD="$lt_save_MAGIC_CMD"
8559   ;;
8560 esac
8561 fi
8562
8563 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8564 if test -n "$MAGIC_CMD"; then
8565   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8566 echo "${ECHO_T}$MAGIC_CMD" >&6; }
8567 else
8568   { echo "$as_me:$LINENO: result: no" >&5
8569 echo "${ECHO_T}no" >&6; }
8570 fi
8571
8572 if test -z "$lt_cv_path_MAGIC_CMD"; then
8573   if test -n "$ac_tool_prefix"; then
8574     { echo "$as_me:$LINENO: checking for file" >&5
8575 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
8576 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8577   echo $ECHO_N "(cached) $ECHO_C" >&6
8578 else
8579   case $MAGIC_CMD in
8580 [\\/*] |  ?:[\\/]*)
8581   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8582   ;;
8583 *)
8584   lt_save_MAGIC_CMD="$MAGIC_CMD"
8585   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8586   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8587   for ac_dir in $ac_dummy; do
8588     IFS="$lt_save_ifs"
8589     test -z "$ac_dir" && ac_dir=.
8590     if test -f $ac_dir/file; then
8591       lt_cv_path_MAGIC_CMD="$ac_dir/file"
8592       if test -n "$file_magic_test_file"; then
8593         case $deplibs_check_method in
8594         "file_magic "*)
8595           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8596           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8597           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8598             $EGREP "$file_magic_regex" > /dev/null; then
8599             :
8600           else
8601             cat <<EOF 1>&2
8602
8603 *** Warning: the command libtool uses to detect shared libraries,
8604 *** $file_magic_cmd, produces output that libtool cannot recognize.
8605 *** The result is that libtool may fail to recognize shared libraries
8606 *** as such.  This will affect the creation of libtool libraries that
8607 *** depend on shared libraries, but programs linked with such libtool
8608 *** libraries will work regardless of this problem.  Nevertheless, you
8609 *** may want to report the problem to your system manager and/or to
8610 *** bug-libtool@gnu.org
8611
8612 EOF
8613           fi ;;
8614         esac
8615       fi
8616       break
8617     fi
8618   done
8619   IFS="$lt_save_ifs"
8620   MAGIC_CMD="$lt_save_MAGIC_CMD"
8621   ;;
8622 esac
8623 fi
8624
8625 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8626 if test -n "$MAGIC_CMD"; then
8627   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8628 echo "${ECHO_T}$MAGIC_CMD" >&6; }
8629 else
8630   { echo "$as_me:$LINENO: result: no" >&5
8631 echo "${ECHO_T}no" >&6; }
8632 fi
8633
8634   else
8635     MAGIC_CMD=:
8636   fi
8637 fi
8638
8639   fi
8640   ;;
8641 esac
8642
8643 enable_dlopen=no
8644 enable_win32_dll=no
8645
8646 # Check whether --enable-libtool-lock was given.
8647 if test "${enable_libtool_lock+set}" = set; then
8648   enableval=$enable_libtool_lock;
8649 fi
8650
8651 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8652
8653
8654 # Check whether --with-pic was given.
8655 if test "${with_pic+set}" = set; then
8656   withval=$with_pic; pic_mode="$withval"
8657 else
8658   pic_mode=default
8659 fi
8660
8661 test -z "$pic_mode" && pic_mode=default
8662
8663 # Use C for the default configuration in the libtool script
8664 tagname=
8665 lt_save_CC="$CC"
8666 ac_ext=c
8667 ac_cpp='$CPP $CPPFLAGS'
8668 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8669 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8670 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8671
8672
8673 # Source file extension for C test sources.
8674 ac_ext=c
8675
8676 # Object file extension for compiled C test sources.
8677 objext=o
8678 objext=$objext
8679
8680 # Code to be used in simple compile tests
8681 lt_simple_compile_test_code="int some_variable = 0;"
8682
8683 # Code to be used in simple link tests
8684 lt_simple_link_test_code='int main(){return(0);}'
8685
8686
8687 # If no C compiler was specified, use CC.
8688 LTCC=${LTCC-"$CC"}
8689
8690 # If no C compiler flags were specified, use CFLAGS.
8691 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8692
8693 # Allow CC to be a program name with arguments.
8694 compiler=$CC
8695
8696
8697 # save warnings/boilerplate of simple test code
8698 ac_outfile=conftest.$ac_objext
8699 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8700 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8701 _lt_compiler_boilerplate=`cat conftest.err`
8702 $rm conftest*
8703
8704 ac_outfile=conftest.$ac_objext
8705 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8706 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8707 _lt_linker_boilerplate=`cat conftest.err`
8708 $rm conftest*
8709
8710
8711
8712 lt_prog_compiler_no_builtin_flag=
8713
8714 if test "$GCC" = yes; then
8715   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
8716
8717
8718 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8719 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
8720 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
8721   echo $ECHO_N "(cached) $ECHO_C" >&6
8722 else
8723   lt_cv_prog_compiler_rtti_exceptions=no
8724   ac_outfile=conftest.$ac_objext
8725    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8726    lt_compiler_flag="-fno-rtti -fno-exceptions"
8727    # Insert the option either (1) after the last *FLAGS variable, or
8728    # (2) before a word containing "conftest.", or (3) at the end.
8729    # Note that $ac_compile itself does not contain backslashes and begins
8730    # with a dollar sign (not a hyphen), so the echo should work correctly.
8731    # The option is referenced via a variable to avoid confusing sed.
8732    lt_compile=`echo "$ac_compile" | $SED \
8733    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8734    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8735    -e 's:$: $lt_compiler_flag:'`
8736    (eval echo "\"\$as_me:8736: $lt_compile\"" >&5)
8737    (eval "$lt_compile" 2>conftest.err)
8738    ac_status=$?
8739    cat conftest.err >&5
8740    echo "$as_me:8740: \$? = $ac_status" >&5
8741    if (exit $ac_status) && test -s "$ac_outfile"; then
8742      # The compiler can only warn and ignore the option if not recognized
8743      # So say no if there are warnings other than the usual output.
8744      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8745      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8746      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8747        lt_cv_prog_compiler_rtti_exceptions=yes
8748      fi
8749    fi
8750    $rm conftest*
8751
8752 fi
8753 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8754 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8755
8756 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8757     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8758 else
8759     :
8760 fi
8761
8762 fi
8763
8764 lt_prog_compiler_wl=
8765 lt_prog_compiler_pic=
8766 lt_prog_compiler_static=
8767
8768 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
8769 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
8770
8771   if test "$GCC" = yes; then
8772     lt_prog_compiler_wl='-Wl,'
8773     lt_prog_compiler_static='-static'
8774
8775     case $host_os in
8776       aix*)
8777       # All AIX code is PIC.
8778       if test "$host_cpu" = ia64; then
8779         # AIX 5 now supports IA64 processor
8780         lt_prog_compiler_static='-Bstatic'
8781       fi
8782       ;;
8783
8784     amigaos*)
8785       # FIXME: we need at least 68020 code to build shared libraries, but
8786       # adding the `-m68020' flag to GCC prevents building anything better,
8787       # like `-m68040'.
8788       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8789       ;;
8790
8791     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8792       # PIC is the default for these OSes.
8793       ;;
8794
8795     mingw* | cygwin* | pw32* | os2*)
8796       # This hack is so that the source file can tell whether it is being
8797       # built for inclusion in a dll (and should export symbols for example).
8798       # Although the cygwin gcc ignores -fPIC, still need this for old-style
8799       # (--disable-auto-import) libraries
8800       lt_prog_compiler_pic='-DDLL_EXPORT'
8801       ;;
8802
8803     darwin* | rhapsody*)
8804       # PIC is the default on this platform
8805       # Common symbols not allowed in MH_DYLIB files
8806       lt_prog_compiler_pic='-fno-common'
8807       ;;
8808
8809     interix[3-9]*)
8810       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8811       # Instead, we relocate shared libraries at runtime.
8812       ;;
8813
8814     msdosdjgpp*)
8815       # Just because we use GCC doesn't mean we suddenly get shared libraries
8816       # on systems that don't support them.
8817       lt_prog_compiler_can_build_shared=no
8818       enable_shared=no
8819       ;;
8820
8821     sysv4*MP*)
8822       if test -d /usr/nec; then
8823         lt_prog_compiler_pic=-Kconform_pic
8824       fi
8825       ;;
8826
8827     hpux*)
8828       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8829       # not for PA HP-UX.
8830       case $host_cpu in
8831       hppa*64*|ia64*)
8832         # +Z the default
8833         ;;
8834       *)
8835         lt_prog_compiler_pic='-fPIC'
8836         ;;
8837       esac
8838       ;;
8839
8840     *)
8841       lt_prog_compiler_pic='-fPIC'
8842       ;;
8843     esac
8844   else
8845     # PORTME Check for flag to pass linker flags through the system compiler.
8846     case $host_os in
8847     aix*)
8848       lt_prog_compiler_wl='-Wl,'
8849       if test "$host_cpu" = ia64; then
8850         # AIX 5 now supports IA64 processor
8851         lt_prog_compiler_static='-Bstatic'
8852       else
8853         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8854       fi
8855       ;;
8856       darwin*)
8857         # PIC is the default on this platform
8858         # Common symbols not allowed in MH_DYLIB files
8859        case $cc_basename in
8860          xlc*)
8861          lt_prog_compiler_pic='-qnocommon'
8862          lt_prog_compiler_wl='-Wl,'
8863          ;;
8864        esac
8865        ;;
8866
8867     mingw* | cygwin* | pw32* | os2*)
8868       # This hack is so that the source file can tell whether it is being
8869       # built for inclusion in a dll (and should export symbols for example).
8870       lt_prog_compiler_pic='-DDLL_EXPORT'
8871       ;;
8872
8873     hpux9* | hpux10* | hpux11*)
8874       lt_prog_compiler_wl='-Wl,'
8875       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8876       # not for PA HP-UX.
8877       case $host_cpu in
8878       hppa*64*|ia64*)
8879         # +Z the default
8880         ;;
8881       *)
8882         lt_prog_compiler_pic='+Z'
8883         ;;
8884       esac
8885       # Is there a better lt_prog_compiler_static that works with the bundled CC?
8886       lt_prog_compiler_static='${wl}-a ${wl}archive'
8887       ;;
8888
8889     irix5* | irix6* | nonstopux*)
8890       lt_prog_compiler_wl='-Wl,'
8891       # PIC (with -KPIC) is the default.
8892       lt_prog_compiler_static='-non_shared'
8893       ;;
8894
8895     newsos6)
8896       lt_prog_compiler_pic='-KPIC'
8897       lt_prog_compiler_static='-Bstatic'
8898       ;;
8899
8900     linux* | k*bsd*-gnu)
8901       case $cc_basename in
8902       icc* | ecc*)
8903         lt_prog_compiler_wl='-Wl,'
8904         lt_prog_compiler_pic='-KPIC'
8905         lt_prog_compiler_static='-static'
8906         ;;
8907       pgcc* | pgf77* | pgf90* | pgf95*)
8908         # Portland Group compilers (*not* the Pentium gcc compiler,
8909         # which looks to be a dead project)
8910         lt_prog_compiler_wl='-Wl,'
8911         lt_prog_compiler_pic='-fpic'
8912         lt_prog_compiler_static='-Bstatic'
8913         ;;
8914       ccc*)
8915         lt_prog_compiler_wl='-Wl,'
8916         # All Alpha code is PIC.
8917         lt_prog_compiler_static='-non_shared'
8918         ;;
8919       *)
8920         case `$CC -V 2>&1 | sed 5q` in
8921         *Sun\ C*)
8922           # Sun C 5.9
8923           lt_prog_compiler_pic='-KPIC'
8924           lt_prog_compiler_static='-Bstatic'
8925           lt_prog_compiler_wl='-Wl,'
8926           ;;
8927         *Sun\ F*)
8928           # Sun Fortran 8.3 passes all unrecognized flags to the linker
8929           lt_prog_compiler_pic='-KPIC'
8930           lt_prog_compiler_static='-Bstatic'
8931           lt_prog_compiler_wl=''
8932           ;;
8933         esac
8934         ;;
8935       esac
8936       ;;
8937
8938     osf3* | osf4* | osf5*)
8939       lt_prog_compiler_wl='-Wl,'
8940       # All OSF/1 code is PIC.
8941       lt_prog_compiler_static='-non_shared'
8942       ;;
8943
8944     rdos*)
8945       lt_prog_compiler_static='-non_shared'
8946       ;;
8947
8948     solaris*)
8949       lt_prog_compiler_pic='-KPIC'
8950       lt_prog_compiler_static='-Bstatic'
8951       case $cc_basename in
8952       f77* | f90* | f95*)
8953         lt_prog_compiler_wl='-Qoption ld ';;
8954       *)
8955         lt_prog_compiler_wl='-Wl,';;
8956       esac
8957       ;;
8958
8959     sunos4*)
8960       lt_prog_compiler_wl='-Qoption ld '
8961       lt_prog_compiler_pic='-PIC'
8962       lt_prog_compiler_static='-Bstatic'
8963       ;;
8964
8965     sysv4 | sysv4.2uw2* | sysv4.3*)
8966       lt_prog_compiler_wl='-Wl,'
8967       lt_prog_compiler_pic='-KPIC'
8968       lt_prog_compiler_static='-Bstatic'
8969       ;;
8970
8971     sysv4*MP*)
8972       if test -d /usr/nec ;then
8973         lt_prog_compiler_pic='-Kconform_pic'
8974         lt_prog_compiler_static='-Bstatic'
8975       fi
8976       ;;
8977
8978     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8979       lt_prog_compiler_wl='-Wl,'
8980       lt_prog_compiler_pic='-KPIC'
8981       lt_prog_compiler_static='-Bstatic'
8982       ;;
8983
8984     unicos*)
8985       lt_prog_compiler_wl='-Wl,'
8986       lt_prog_compiler_can_build_shared=no
8987       ;;
8988
8989     uts4*)
8990       lt_prog_compiler_pic='-pic'
8991       lt_prog_compiler_static='-Bstatic'
8992       ;;
8993
8994     *)
8995       lt_prog_compiler_can_build_shared=no
8996       ;;
8997     esac
8998   fi
8999
9000 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
9001 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
9002
9003 #
9004 # Check to make sure the PIC flag actually works.
9005 #
9006 if test -n "$lt_prog_compiler_pic"; then
9007
9008 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9009 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
9010 if test "${lt_prog_compiler_pic_works+set}" = set; then
9011   echo $ECHO_N "(cached) $ECHO_C" >&6
9012 else
9013   lt_prog_compiler_pic_works=no
9014   ac_outfile=conftest.$ac_objext
9015    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9016    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9017    # Insert the option either (1) after the last *FLAGS variable, or
9018    # (2) before a word containing "conftest.", or (3) at the end.
9019    # Note that $ac_compile itself does not contain backslashes and begins
9020    # with a dollar sign (not a hyphen), so the echo should work correctly.
9021    # The option is referenced via a variable to avoid confusing sed.
9022    lt_compile=`echo "$ac_compile" | $SED \
9023    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9024    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9025    -e 's:$: $lt_compiler_flag:'`
9026    (eval echo "\"\$as_me:9026: $lt_compile\"" >&5)
9027    (eval "$lt_compile" 2>conftest.err)
9028    ac_status=$?
9029    cat conftest.err >&5
9030    echo "$as_me:9030: \$? = $ac_status" >&5
9031    if (exit $ac_status) && test -s "$ac_outfile"; then
9032      # The compiler can only warn and ignore the option if not recognized
9033      # So say no if there are warnings other than the usual output.
9034      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9035      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9036      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9037        lt_prog_compiler_pic_works=yes
9038      fi
9039    fi
9040    $rm conftest*
9041
9042 fi
9043 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
9044 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
9045
9046 if test x"$lt_prog_compiler_pic_works" = xyes; then
9047     case $lt_prog_compiler_pic in
9048      "" | " "*) ;;
9049      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9050      esac
9051 else
9052     lt_prog_compiler_pic=
9053      lt_prog_compiler_can_build_shared=no
9054 fi
9055
9056 fi
9057 case $host_os in
9058   # For platforms which do not support PIC, -DPIC is meaningless:
9059   *djgpp*)
9060     lt_prog_compiler_pic=
9061     ;;
9062   *)
9063     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9064     ;;
9065 esac
9066
9067 #
9068 # Check to make sure the static flag actually works.
9069 #
9070 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9071 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9072 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
9073 if test "${lt_prog_compiler_static_works+set}" = set; then
9074   echo $ECHO_N "(cached) $ECHO_C" >&6
9075 else
9076   lt_prog_compiler_static_works=no
9077    save_LDFLAGS="$LDFLAGS"
9078    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9079    echo "$lt_simple_link_test_code" > conftest.$ac_ext
9080    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9081      # The linker can only warn and ignore the option if not recognized
9082      # So say no if there are warnings
9083      if test -s conftest.err; then
9084        # Append any errors to the config.log.
9085        cat conftest.err 1>&5
9086        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
9087        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9088        if diff conftest.exp conftest.er2 >/dev/null; then
9089          lt_prog_compiler_static_works=yes
9090        fi
9091      else
9092        lt_prog_compiler_static_works=yes
9093      fi
9094    fi
9095    $rm conftest*
9096    LDFLAGS="$save_LDFLAGS"
9097
9098 fi
9099 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
9100 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
9101
9102 if test x"$lt_prog_compiler_static_works" = xyes; then
9103     :
9104 else
9105     lt_prog_compiler_static=
9106 fi
9107
9108
9109 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
9110 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
9111 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
9112   echo $ECHO_N "(cached) $ECHO_C" >&6
9113 else
9114   lt_cv_prog_compiler_c_o=no
9115    $rm -r conftest 2>/dev/null
9116    mkdir conftest
9117    cd conftest
9118    mkdir out
9119    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9120
9121    lt_compiler_flag="-o out/conftest2.$ac_objext"
9122    # Insert the option either (1) after the last *FLAGS variable, or
9123    # (2) before a word containing "conftest.", or (3) at the end.
9124    # Note that $ac_compile itself does not contain backslashes and begins
9125    # with a dollar sign (not a hyphen), so the echo should work correctly.
9126    lt_compile=`echo "$ac_compile" | $SED \
9127    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9128    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9129    -e 's:$: $lt_compiler_flag:'`
9130    (eval echo "\"\$as_me:9130: $lt_compile\"" >&5)
9131    (eval "$lt_compile" 2>out/conftest.err)
9132    ac_status=$?
9133    cat out/conftest.err >&5
9134    echo "$as_me:9134: \$? = $ac_status" >&5
9135    if (exit $ac_status) && test -s out/conftest2.$ac_objext
9136    then
9137      # The compiler can only warn and ignore the option if not recognized
9138      # So say no if there are warnings
9139      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9140      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9141      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9142        lt_cv_prog_compiler_c_o=yes
9143      fi
9144    fi
9145    chmod u+w . 2>&5
9146    $rm conftest*
9147    # SGI C++ compiler will create directory out/ii_files/ for
9148    # template instantiation
9149    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
9150    $rm out/* && rmdir out
9151    cd ..
9152    rmdir conftest
9153    $rm conftest*
9154
9155 fi
9156 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
9157 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
9158
9159
9160 hard_links="nottested"
9161 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9162   # do not overwrite the value of need_locks provided by the user
9163   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
9164 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
9165   hard_links=yes
9166   $rm conftest*
9167   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9168   touch conftest.a
9169   ln conftest.a conftest.b 2>&5 || hard_links=no
9170   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9171   { echo "$as_me:$LINENO: result: $hard_links" >&5
9172 echo "${ECHO_T}$hard_links" >&6; }
9173   if test "$hard_links" = no; then
9174     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9175 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9176     need_locks=warn
9177   fi
9178 else
9179   need_locks=no
9180 fi
9181
9182 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9183 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
9184
9185   runpath_var=
9186   allow_undefined_flag=
9187   enable_shared_with_static_runtimes=no
9188   archive_cmds=
9189   archive_expsym_cmds=
9190   old_archive_From_new_cmds=
9191   old_archive_from_expsyms_cmds=
9192   export_dynamic_flag_spec=
9193   whole_archive_flag_spec=
9194   thread_safe_flag_spec=
9195   hardcode_libdir_flag_spec=
9196   hardcode_libdir_flag_spec_ld=
9197   hardcode_libdir_separator=
9198   hardcode_direct=no
9199   hardcode_minus_L=no
9200   hardcode_shlibpath_var=unsupported
9201   link_all_deplibs=unknown
9202   hardcode_automatic=no
9203   module_cmds=
9204   module_expsym_cmds=
9205   always_export_symbols=no
9206   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9207   # include_expsyms should be a list of space-separated symbols to be *always*
9208   # included in the symbol list
9209   include_expsyms=
9210   # exclude_expsyms can be an extended regexp of symbols to exclude
9211   # it will be wrapped by ` (' and `)$', so one must not match beginning or
9212   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9213   # as well as any symbol that contains `d'.
9214   exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
9215   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9216   # platforms (ab)use it in PIC code, but their linkers get confused if
9217   # the symbol is explicitly referenced.  Since portable code cannot
9218   # rely on this symbol name, it's probably fine to never include it in
9219   # preloaded symbol tables.
9220   extract_expsyms_cmds=
9221   # Just being paranoid about ensuring that cc_basename is set.
9222   for cc_temp in $compiler""; do
9223   case $cc_temp in
9224     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9225     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9226     \-*) ;;
9227     *) break;;
9228   esac
9229 done
9230 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
9231
9232   case $host_os in
9233   cygwin* | mingw* | pw32*)
9234     # FIXME: the MSVC++ port hasn't been tested in a loooong time
9235     # When not using gcc, we currently assume that we are using
9236     # Microsoft Visual C++.
9237     if test "$GCC" != yes; then
9238       with_gnu_ld=no
9239     fi
9240     ;;
9241   interix*)
9242     # we just hope/assume this is gcc and not c89 (= MSVC++)
9243     with_gnu_ld=yes
9244     ;;
9245   openbsd*)
9246     with_gnu_ld=no
9247     ;;
9248   esac
9249
9250   ld_shlibs=yes
9251   if test "$with_gnu_ld" = yes; then
9252     # If archive_cmds runs LD, not CC, wlarc should be empty
9253     wlarc='${wl}'
9254
9255     # Set some defaults for GNU ld with shared library support. These
9256     # are reset later if shared libraries are not supported. Putting them
9257     # here allows them to be overridden if necessary.
9258     runpath_var=LD_RUN_PATH
9259     hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
9260     export_dynamic_flag_spec='${wl}--export-dynamic'
9261     # ancient GNU ld didn't support --whole-archive et. al.
9262     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
9263         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9264       else
9265         whole_archive_flag_spec=
9266     fi
9267     supports_anon_versioning=no
9268     case `$LD -v 2>/dev/null` in
9269       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9270       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9271       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9272       *\ 2.11.*) ;; # other 2.11 versions
9273       *) supports_anon_versioning=yes ;;
9274     esac
9275
9276     # See if GNU ld supports shared libraries.
9277     case $host_os in
9278     aix3* | aix4* | aix5*)
9279       # On AIX/PPC, the GNU linker is very broken
9280       if test "$host_cpu" != ia64; then
9281         ld_shlibs=no
9282         cat <<EOF 1>&2
9283
9284 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
9285 *** to be unable to reliably create shared libraries on AIX.
9286 *** Therefore, libtool is disabling shared libraries support.  If you
9287 *** really care for shared libraries, you may want to modify your PATH
9288 *** so that a non-GNU linker is found, and then restart.
9289
9290 EOF
9291       fi
9292       ;;
9293
9294     amigaos*)
9295       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)'
9296       hardcode_libdir_flag_spec='-L$libdir'
9297       hardcode_minus_L=yes
9298
9299       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
9300       # that the semantics of dynamic libraries on AmigaOS, at least up
9301       # to version 4, is to share data among multiple programs linked
9302       # with the same dynamic library.  Since this doesn't match the
9303       # behavior of shared libraries on other platforms, we can't use
9304       # them.
9305       ld_shlibs=no
9306       ;;
9307
9308     beos*)
9309       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9310         allow_undefined_flag=unsupported
9311         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9312         # support --undefined.  This deserves some investigation.  FIXME
9313         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9314       else
9315         ld_shlibs=no
9316       fi
9317       ;;
9318
9319     cygwin* | mingw* | pw32*)
9320       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9321       # as there is no search path for DLLs.
9322       hardcode_libdir_flag_spec='-L$libdir'
9323       allow_undefined_flag=unsupported
9324       always_export_symbols=no
9325       enable_shared_with_static_runtimes=yes
9326       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9327
9328       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
9329         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9330         # If the export-symbols file already is a .def file (1st line
9331         # is EXPORTS), use it as is; otherwise, prepend...
9332         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9333           cp $export_symbols $output_objdir/$soname.def;
9334         else
9335           echo EXPORTS > $output_objdir/$soname.def;
9336           cat $export_symbols >> $output_objdir/$soname.def;
9337         fi~
9338         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9339       else
9340         ld_shlibs=no
9341       fi
9342       ;;
9343
9344     interix[3-9]*)
9345       hardcode_direct=no
9346       hardcode_shlibpath_var=no
9347       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9348       export_dynamic_flag_spec='${wl}-E'
9349       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9350       # Instead, shared libraries are loaded at an image base (0x10000000 by
9351       # default) and relocated if they conflict, which is a slow very memory
9352       # consuming and fragmenting process.  To avoid this, we pick a random,
9353       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9354       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9355       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9356       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'
9357       ;;
9358
9359     gnu* | linux* | k*bsd*-gnu)
9360       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9361         tmp_addflag=
9362         case $cc_basename,$host_cpu in
9363         pgcc*)                          # Portland Group C compiler
9364           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'
9365           tmp_addflag=' $pic_flag'
9366           ;;
9367         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
9368           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'
9369           tmp_addflag=' $pic_flag -Mnomain' ;;
9370         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
9371           tmp_addflag=' -i_dynamic' ;;
9372         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
9373           tmp_addflag=' -i_dynamic -nofor_main' ;;
9374         ifc* | ifort*)                  # Intel Fortran compiler
9375           tmp_addflag=' -nofor_main' ;;
9376         esac
9377         case `$CC -V 2>&1 | sed 5q` in
9378         *Sun\ C*)                       # Sun C 5.9
9379           whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
9380           tmp_sharedflag='-G' ;;
9381         *Sun\ F*)                       # Sun Fortran 8.3
9382           tmp_sharedflag='-G' ;;
9383         *)
9384           tmp_sharedflag='-shared' ;;
9385         esac
9386         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9387
9388         if test $supports_anon_versioning = yes; then
9389           archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
9390   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9391   $echo "local: *; };" >> $output_objdir/$libname.ver~
9392           $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9393         fi
9394       else
9395         ld_shlibs=no
9396       fi
9397       ;;
9398
9399     netbsd*)
9400       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9401         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9402         wlarc=
9403       else
9404         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9405         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9406       fi
9407       ;;
9408
9409     solaris*)
9410       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
9411         ld_shlibs=no
9412         cat <<EOF 1>&2
9413
9414 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9415 *** create shared libraries on Solaris systems.  Therefore, libtool
9416 *** is disabling shared libraries support.  We urge you to upgrade GNU
9417 *** binutils to release 2.9.1 or newer.  Another option is to modify
9418 *** your PATH or compiler configuration so that the native linker is
9419 *** used, and then restart.
9420
9421 EOF
9422       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9423         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9424         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9425       else
9426         ld_shlibs=no
9427       fi
9428       ;;
9429
9430     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9431       case `$LD -v 2>&1` in
9432         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9433         ld_shlibs=no
9434         cat <<_LT_EOF 1>&2
9435
9436 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9437 *** reliably create shared libraries on SCO systems.  Therefore, libtool
9438 *** is disabling shared libraries support.  We urge you to upgrade GNU
9439 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9440 *** your PATH or compiler configuration so that the native linker is
9441 *** used, and then restart.
9442
9443 _LT_EOF
9444         ;;
9445         *)
9446           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9447             hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
9448             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
9449             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
9450           else
9451             ld_shlibs=no
9452           fi
9453         ;;
9454       esac
9455       ;;
9456
9457     sunos4*)
9458       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9459       wlarc=
9460       hardcode_direct=yes
9461       hardcode_shlibpath_var=no
9462       ;;
9463
9464     *)
9465       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9466         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9467         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9468       else
9469         ld_shlibs=no
9470       fi
9471       ;;
9472     esac
9473
9474     if test "$ld_shlibs" = no; then
9475       runpath_var=
9476       hardcode_libdir_flag_spec=
9477       export_dynamic_flag_spec=
9478       whole_archive_flag_spec=
9479     fi
9480   else
9481     # PORTME fill in a description of your system's linker (not GNU ld)
9482     case $host_os in
9483     aix3*)
9484       allow_undefined_flag=unsupported
9485       always_export_symbols=yes
9486       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'
9487       # Note: this linker hardcodes the directories in LIBPATH if there
9488       # are no directories specified by -L.
9489       hardcode_minus_L=yes
9490       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9491         # Neither direct hardcoding nor static linking is supported with a
9492         # broken collect2.
9493         hardcode_direct=unsupported
9494       fi
9495       ;;
9496
9497     aix4* | aix5*)
9498       if test "$host_cpu" = ia64; then
9499         # On IA64, the linker does run time linking by default, so we don't
9500         # have to do anything special.
9501         aix_use_runtimelinking=no
9502         exp_sym_flag='-Bexport'
9503         no_entry_flag=""
9504       else
9505         # If we're using GNU nm, then we don't want the "-C" option.
9506         # -C means demangle to AIX nm, but means don't demangle with GNU nm
9507         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
9508           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'
9509         else
9510           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'
9511         fi
9512         aix_use_runtimelinking=no
9513
9514         # Test if we are trying to use run time linking or normal
9515         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9516         # need to do runtime linking.
9517         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9518           for ld_flag in $LDFLAGS; do
9519           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9520             aix_use_runtimelinking=yes
9521             break
9522           fi
9523           done
9524           ;;
9525         esac
9526
9527         exp_sym_flag='-bexport'
9528         no_entry_flag='-bnoentry'
9529       fi
9530
9531       # When large executables or shared objects are built, AIX ld can
9532       # have problems creating the table of contents.  If linking a library
9533       # or program results in "error TOC overflow" add -mminimal-toc to
9534       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9535       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9536
9537       archive_cmds=''
9538       hardcode_direct=yes
9539       hardcode_libdir_separator=':'
9540       link_all_deplibs=yes
9541
9542       if test "$GCC" = yes; then
9543         case $host_os in aix4.[012]|aix4.[012].*)
9544         # We only want to do this on AIX 4.2 and lower, the check
9545         # below for broken collect2 doesn't work under 4.3+
9546           collect2name=`${CC} -print-prog-name=collect2`
9547           if test -f "$collect2name" && \
9548            strings "$collect2name" | grep resolve_lib_name >/dev/null
9549           then
9550           # We have reworked collect2
9551           :
9552           else
9553           # We have old collect2
9554           hardcode_direct=unsupported
9555           # It fails to find uninstalled libraries when the uninstalled
9556           # path is not listed in the libpath.  Setting hardcode_minus_L
9557           # to unsupported forces relinking
9558           hardcode_minus_L=yes
9559           hardcode_libdir_flag_spec='-L$libdir'
9560           hardcode_libdir_separator=
9561           fi
9562           ;;
9563         esac
9564         shared_flag='-shared'
9565         if test "$aix_use_runtimelinking" = yes; then
9566           shared_flag="$shared_flag "'${wl}-G'
9567         fi
9568       else
9569         # not using gcc
9570         if test "$host_cpu" = ia64; then
9571         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9572         # chokes on -Wl,-G. The following line is correct:
9573           shared_flag='-G'
9574         else
9575           if test "$aix_use_runtimelinking" = yes; then
9576             shared_flag='${wl}-G'
9577           else
9578             shared_flag='${wl}-bM:SRE'
9579           fi
9580         fi
9581       fi
9582
9583       # It seems that -bexpall does not export symbols beginning with
9584       # underscore (_), so it is better to generate a list of symbols to export.
9585       always_export_symbols=yes
9586       if test "$aix_use_runtimelinking" = yes; then
9587         # Warning - without using the other runtime loading flags (-brtl),
9588         # -berok will link without error, but may produce a broken library.
9589         allow_undefined_flag='-berok'
9590        # Determine the default libpath from the value encoded in an empty executable.
9591        cat >conftest.$ac_ext <<_ACEOF
9592 /* confdefs.h.  */
9593 _ACEOF
9594 cat confdefs.h >>conftest.$ac_ext
9595 cat >>conftest.$ac_ext <<_ACEOF
9596 /* end confdefs.h.  */
9597
9598 int
9599 main ()
9600 {
9601
9602   ;
9603   return 0;
9604 }
9605 _ACEOF
9606 rm -f conftest.$ac_objext conftest$ac_exeext
9607 if { (ac_try="$ac_link"
9608 case "(($ac_try" in
9609   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9610   *) ac_try_echo=$ac_try;;
9611 esac
9612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9613   (eval "$ac_link") 2>conftest.er1
9614   ac_status=$?
9615   grep -v '^ *+' conftest.er1 >conftest.err
9616   rm -f conftest.er1
9617   cat conftest.err >&5
9618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9619   (exit $ac_status); } && {
9620          test -z "$ac_c_werror_flag" ||
9621          test ! -s conftest.err
9622        } && test -s conftest$ac_exeext &&
9623        $as_test_x conftest$ac_exeext; then
9624
9625 lt_aix_libpath_sed='
9626     /Import File Strings/,/^$/ {
9627         /^0/ {
9628             s/^0  *\(.*\)$/\1/
9629             p
9630         }
9631     }'
9632 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9633 # Check for a 64-bit object if we didn't find anything.
9634 if test -z "$aix_libpath"; then
9635   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9636 fi
9637 else
9638   echo "$as_me: failed program was:" >&5
9639 sed 's/^/| /' conftest.$ac_ext >&5
9640
9641
9642 fi
9643
9644 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9645       conftest$ac_exeext conftest.$ac_ext
9646 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9647
9648        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9649         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"
9650        else
9651         if test "$host_cpu" = ia64; then
9652           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9653           allow_undefined_flag="-z nodefs"
9654           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"
9655         else
9656          # Determine the default libpath from the value encoded in an empty executable.
9657          cat >conftest.$ac_ext <<_ACEOF
9658 /* confdefs.h.  */
9659 _ACEOF
9660 cat confdefs.h >>conftest.$ac_ext
9661 cat >>conftest.$ac_ext <<_ACEOF
9662 /* end confdefs.h.  */
9663
9664 int
9665 main ()
9666 {
9667
9668   ;
9669   return 0;
9670 }
9671 _ACEOF
9672 rm -f conftest.$ac_objext conftest$ac_exeext
9673 if { (ac_try="$ac_link"
9674 case "(($ac_try" in
9675   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9676   *) ac_try_echo=$ac_try;;
9677 esac
9678 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9679   (eval "$ac_link") 2>conftest.er1
9680   ac_status=$?
9681   grep -v '^ *+' conftest.er1 >conftest.err
9682   rm -f conftest.er1
9683   cat conftest.err >&5
9684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9685   (exit $ac_status); } && {
9686          test -z "$ac_c_werror_flag" ||
9687          test ! -s conftest.err
9688        } && test -s conftest$ac_exeext &&
9689        $as_test_x conftest$ac_exeext; then
9690
9691 lt_aix_libpath_sed='
9692     /Import File Strings/,/^$/ {
9693         /^0/ {
9694             s/^0  *\(.*\)$/\1/
9695             p
9696         }
9697     }'
9698 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9699 # Check for a 64-bit object if we didn't find anything.
9700 if test -z "$aix_libpath"; then
9701   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9702 fi
9703 else
9704   echo "$as_me: failed program was:" >&5
9705 sed 's/^/| /' conftest.$ac_ext >&5
9706
9707
9708 fi
9709
9710 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9711       conftest$ac_exeext conftest.$ac_ext
9712 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9713
9714          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9715           # Warning - without using the other run time loading flags,
9716           # -berok will link without error, but may produce a broken library.
9717           no_undefined_flag=' ${wl}-bernotok'
9718           allow_undefined_flag=' ${wl}-berok'
9719           # Exported symbols can be pulled into shared objects from archives
9720           whole_archive_flag_spec='$convenience'
9721           archive_cmds_need_lc=yes
9722           # This is similar to how AIX traditionally builds its shared libraries.
9723           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'
9724         fi
9725       fi
9726       ;;
9727
9728     amigaos*)
9729       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)'
9730       hardcode_libdir_flag_spec='-L$libdir'
9731       hardcode_minus_L=yes
9732       # see comment about different semantics on the GNU ld section
9733       ld_shlibs=no
9734       ;;
9735
9736     bsdi[45]*)
9737       export_dynamic_flag_spec=-rdynamic
9738       ;;
9739
9740     cygwin* | mingw* | pw32*)
9741       # When not using gcc, we currently assume that we are using
9742       # Microsoft Visual C++.
9743       # hardcode_libdir_flag_spec is actually meaningless, as there is
9744       # no search path for DLLs.
9745       hardcode_libdir_flag_spec=' '
9746       allow_undefined_flag=unsupported
9747       # Tell ltmain to make .lib files, not .a files.
9748       libext=lib
9749       # Tell ltmain to make .dll files, not .so files.
9750       shrext_cmds=".dll"
9751       # FIXME: Setting linknames here is a bad hack.
9752       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
9753       # The linker will automatically build a .lib file if we build a DLL.
9754       old_archive_From_new_cmds='true'
9755       # FIXME: Should let the user specify the lib program.
9756       old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9757       fix_srcfile_path='`cygpath -w "$srcfile"`'
9758       enable_shared_with_static_runtimes=yes
9759       ;;
9760
9761     darwin* | rhapsody*)
9762       case $host_os in
9763         rhapsody* | darwin1.[012])
9764          allow_undefined_flag='${wl}-undefined ${wl}suppress'
9765          ;;
9766        *) # Darwin 1.3 on
9767          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
9768            allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9769          else
9770            case ${MACOSX_DEPLOYMENT_TARGET} in
9771              10.[012])
9772                allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9773                ;;
9774              10.*)
9775                allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
9776                ;;
9777            esac
9778          fi
9779          ;;
9780       esac
9781       archive_cmds_need_lc=no
9782       hardcode_direct=no
9783       hardcode_automatic=yes
9784       hardcode_shlibpath_var=unsupported
9785       whole_archive_flag_spec=''
9786       link_all_deplibs=yes
9787     if test "$GCC" = yes ; then
9788         output_verbose_link_cmd='echo'
9789         archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9790       module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9791       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
9792       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}'
9793       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}'
9794     else
9795       case $cc_basename in
9796         xlc*)
9797          output_verbose_link_cmd='echo'
9798          archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
9799          module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9800           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
9801          archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
9802           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}'
9803           ;;
9804        *)
9805          ld_shlibs=no
9806           ;;
9807       esac
9808     fi
9809       ;;
9810
9811     dgux*)
9812       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9813       hardcode_libdir_flag_spec='-L$libdir'
9814       hardcode_shlibpath_var=no
9815       ;;
9816
9817     freebsd1*)
9818       ld_shlibs=no
9819       ;;
9820
9821     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9822     # support.  Future versions do this automatically, but an explicit c++rt0.o
9823     # does not break anything, and helps significantly (at the cost of a little
9824     # extra space).
9825     freebsd2.2*)
9826       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9827       hardcode_libdir_flag_spec='-R$libdir'
9828       hardcode_direct=yes
9829       hardcode_shlibpath_var=no
9830       ;;
9831
9832     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9833     freebsd2*)
9834       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9835       hardcode_direct=yes
9836       hardcode_minus_L=yes
9837       hardcode_shlibpath_var=no
9838       ;;
9839
9840     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9841     freebsd* | dragonfly*)
9842       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9843       hardcode_libdir_flag_spec='-R$libdir'
9844       hardcode_direct=yes
9845       hardcode_shlibpath_var=no
9846       ;;
9847
9848     hpux9*)
9849       if test "$GCC" = yes; then
9850         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'
9851       else
9852         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'
9853       fi
9854       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9855       hardcode_libdir_separator=:
9856       hardcode_direct=yes
9857
9858       # hardcode_minus_L: Not really in the search PATH,
9859       # but as the default location of the library.
9860       hardcode_minus_L=yes
9861       export_dynamic_flag_spec='${wl}-E'
9862       ;;
9863
9864     hpux10*)
9865       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9866         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9867       else
9868         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9869       fi
9870       if test "$with_gnu_ld" = no; then
9871         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9872         hardcode_libdir_separator=:
9873
9874         hardcode_direct=yes
9875         export_dynamic_flag_spec='${wl}-E'
9876
9877         # hardcode_minus_L: Not really in the search PATH,
9878         # but as the default location of the library.
9879         hardcode_minus_L=yes
9880       fi
9881       ;;
9882
9883     hpux11*)
9884       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9885         case $host_cpu in
9886         hppa*64*)
9887           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9888           ;;
9889         ia64*)
9890           archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9891           ;;
9892         *)
9893           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9894           ;;
9895         esac
9896       else
9897         case $host_cpu in
9898         hppa*64*)
9899           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9900           ;;
9901         ia64*)
9902           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9903           ;;
9904         *)
9905           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9906           ;;
9907         esac
9908       fi
9909       if test "$with_gnu_ld" = no; then
9910         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9911         hardcode_libdir_separator=:
9912
9913         case $host_cpu in
9914         hppa*64*|ia64*)
9915           hardcode_libdir_flag_spec_ld='+b $libdir'
9916           hardcode_direct=no
9917           hardcode_shlibpath_var=no
9918           ;;
9919         *)
9920           hardcode_direct=yes
9921           export_dynamic_flag_spec='${wl}-E'
9922
9923           # hardcode_minus_L: Not really in the search PATH,
9924           # but as the default location of the library.
9925           hardcode_minus_L=yes
9926           ;;
9927         esac
9928       fi
9929       ;;
9930
9931     irix5* | irix6* | nonstopux*)
9932       if test "$GCC" = yes; then
9933         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'
9934       else
9935         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'
9936         hardcode_libdir_flag_spec_ld='-rpath $libdir'
9937       fi
9938       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9939       hardcode_libdir_separator=:
9940       link_all_deplibs=yes
9941       ;;
9942
9943     netbsd*)
9944       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9945         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9946       else
9947         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9948       fi
9949       hardcode_libdir_flag_spec='-R$libdir'
9950       hardcode_direct=yes
9951       hardcode_shlibpath_var=no
9952       ;;
9953
9954     newsos6)
9955       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9956       hardcode_direct=yes
9957       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9958       hardcode_libdir_separator=:
9959       hardcode_shlibpath_var=no
9960       ;;
9961
9962     openbsd*)
9963       if test -f /usr/libexec/ld.so; then
9964         hardcode_direct=yes
9965         hardcode_shlibpath_var=no
9966         if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9967           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9968           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9969           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9970           export_dynamic_flag_spec='${wl}-E'
9971         else
9972           case $host_os in
9973            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9974              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9975              hardcode_libdir_flag_spec='-R$libdir'
9976              ;;
9977            *)
9978              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9979              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9980              ;;
9981           esac
9982         fi
9983       else
9984         ld_shlibs=no
9985       fi
9986       ;;
9987
9988     os2*)
9989       hardcode_libdir_flag_spec='-L$libdir'
9990       hardcode_minus_L=yes
9991       allow_undefined_flag=unsupported
9992       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'
9993       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9994       ;;
9995
9996     osf3*)
9997       if test "$GCC" = yes; then
9998         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9999         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'
10000       else
10001         allow_undefined_flag=' -expect_unresolved \*'
10002         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'
10003       fi
10004       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10005       hardcode_libdir_separator=:
10006       ;;
10007
10008     osf4* | osf5*)      # as osf3* with the addition of -msym flag
10009       if test "$GCC" = yes; then
10010         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10011         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'
10012         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10013       else
10014         allow_undefined_flag=' -expect_unresolved \*'
10015         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'
10016         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
10017         $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'
10018
10019         # Both c and cxx compiler support -rpath directly
10020         hardcode_libdir_flag_spec='-rpath $libdir'
10021       fi
10022       hardcode_libdir_separator=:
10023       ;;
10024
10025     solaris*)
10026       no_undefined_flag=' -z text'
10027       if test "$GCC" = yes; then
10028         wlarc='${wl}'
10029         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10030         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10031           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
10032       else
10033         wlarc=''
10034         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10035         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10036         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
10037       fi
10038       hardcode_libdir_flag_spec='-R$libdir'
10039       hardcode_shlibpath_var=no
10040       case $host_os in
10041       solaris2.[0-5] | solaris2.[0-5].*) ;;
10042       *)
10043         # The compiler driver will combine and reorder linker options,
10044         # but understands `-z linker_flag'.  GCC discards it without `$wl',
10045         # but is careful enough not to reorder.
10046         # Supported since Solaris 2.6 (maybe 2.5.1?)
10047         if test "$GCC" = yes; then
10048           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10049         else
10050           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10051         fi
10052         ;;
10053       esac
10054       link_all_deplibs=yes
10055       ;;
10056
10057     sunos4*)
10058       if test "x$host_vendor" = xsequent; then
10059         # Use $CC to link under sequent, because it throws in some extra .o
10060         # files that make .init and .fini sections work.
10061         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10062       else
10063         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10064       fi
10065       hardcode_libdir_flag_spec='-L$libdir'
10066       hardcode_direct=yes
10067       hardcode_minus_L=yes
10068       hardcode_shlibpath_var=no
10069       ;;
10070
10071     sysv4)
10072       case $host_vendor in
10073         sni)
10074           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10075           hardcode_direct=yes # is this really true???
10076         ;;
10077         siemens)
10078           ## LD is ld it makes a PLAMLIB
10079           ## CC just makes a GrossModule.
10080           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10081           reload_cmds='$CC -r -o $output$reload_objs'
10082           hardcode_direct=no
10083         ;;
10084         motorola)
10085           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10086           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10087         ;;
10088       esac
10089       runpath_var='LD_RUN_PATH'
10090       hardcode_shlibpath_var=no
10091       ;;
10092
10093     sysv4.3*)
10094       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10095       hardcode_shlibpath_var=no
10096       export_dynamic_flag_spec='-Bexport'
10097       ;;
10098
10099     sysv4*MP*)
10100       if test -d /usr/nec; then
10101         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10102         hardcode_shlibpath_var=no
10103         runpath_var=LD_RUN_PATH
10104         hardcode_runpath_var=yes
10105         ld_shlibs=yes
10106       fi
10107       ;;
10108
10109     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10110       no_undefined_flag='${wl}-z,text'
10111       archive_cmds_need_lc=no
10112       hardcode_shlibpath_var=no
10113       runpath_var='LD_RUN_PATH'
10114
10115       if test "$GCC" = yes; then
10116         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10117         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10118       else
10119         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10120         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10121       fi
10122       ;;
10123
10124     sysv5* | sco3.2v5* | sco5v6*)
10125       # Note: We can NOT use -z defs as we might desire, because we do not
10126       # link with -lc, and that would cause any symbols used from libc to
10127       # always be unresolved, which means just about no library would
10128       # ever link correctly.  If we're not using GNU ld we use -z text
10129       # though, which does catch some bad symbols but isn't as heavy-handed
10130       # as -z defs.
10131       no_undefined_flag='${wl}-z,text'
10132       allow_undefined_flag='${wl}-z,nodefs'
10133       archive_cmds_need_lc=no
10134       hardcode_shlibpath_var=no
10135       hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
10136       hardcode_libdir_separator=':'
10137       link_all_deplibs=yes
10138       export_dynamic_flag_spec='${wl}-Bexport'
10139       runpath_var='LD_RUN_PATH'
10140
10141       if test "$GCC" = yes; then
10142         archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10143         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10144       else
10145         archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10146         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10147       fi
10148       ;;
10149
10150     uts4*)
10151       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10152       hardcode_libdir_flag_spec='-L$libdir'
10153       hardcode_shlibpath_var=no
10154       ;;
10155
10156     *)
10157       ld_shlibs=no
10158       ;;
10159     esac
10160   fi
10161
10162 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
10163 echo "${ECHO_T}$ld_shlibs" >&6; }
10164 test "$ld_shlibs" = no && can_build_shared=no
10165
10166 #
10167 # Do we need to explicitly link libc?
10168 #
10169 case "x$archive_cmds_need_lc" in
10170 x|xyes)
10171   # Assume -lc should be added
10172   archive_cmds_need_lc=yes
10173
10174   if test "$enable_shared" = yes && test "$GCC" = yes; then
10175     case $archive_cmds in
10176     *'~'*)
10177       # FIXME: we may have to deal with multi-command sequences.
10178       ;;
10179     '$CC '*)
10180       # Test whether the compiler implicitly links with -lc since on some
10181       # systems, -lgcc has to come before -lc. If gcc already passes -lc
10182       # to ld, don't add -lc before -lgcc.
10183       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
10184 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
10185       $rm conftest*
10186       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10187
10188       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10189   (eval $ac_compile) 2>&5
10190   ac_status=$?
10191   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10192   (exit $ac_status); } 2>conftest.err; then
10193         soname=conftest
10194         lib=conftest
10195         libobjs=conftest.$ac_objext
10196         deplibs=
10197         wl=$lt_prog_compiler_wl
10198         pic_flag=$lt_prog_compiler_pic
10199         compiler_flags=-v
10200         linker_flags=-v
10201         verstring=
10202         output_objdir=.
10203         libname=conftest
10204         lt_save_allow_undefined_flag=$allow_undefined_flag
10205         allow_undefined_flag=
10206         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
10207   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
10208   ac_status=$?
10209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10210   (exit $ac_status); }
10211         then
10212           archive_cmds_need_lc=no
10213         else
10214           archive_cmds_need_lc=yes
10215         fi
10216         allow_undefined_flag=$lt_save_allow_undefined_flag
10217       else
10218         cat conftest.err 1>&5
10219       fi
10220       $rm conftest*
10221       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
10222 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
10223       ;;
10224     esac
10225   fi
10226   ;;
10227 esac
10228
10229 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
10230 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
10231 library_names_spec=
10232 libname_spec='lib$name'
10233 soname_spec=
10234 shrext_cmds=".so"
10235 postinstall_cmds=
10236 postuninstall_cmds=
10237 finish_cmds=
10238 finish_eval=
10239 shlibpath_var=
10240 shlibpath_overrides_runpath=unknown
10241 version_type=none
10242 dynamic_linker="$host_os ld.so"
10243 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10244
10245 if test "$GCC" = yes; then
10246   case $host_os in
10247     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10248     *) lt_awk_arg="/^libraries:/" ;;
10249   esac
10250   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10251   if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
10252     # if the path contains ";" then we assume it to be the separator
10253     # otherwise default to the standard path separator (i.e. ":") - it is
10254     # assumed that no part of a normal pathname contains ";" but that should
10255     # okay in the real world where ";" in dirpaths is itself problematic.
10256     lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
10257   else
10258     lt_search_path_spec=`echo "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
10259   fi
10260   # Ok, now we have the path, separated by spaces, we can step through it
10261   # and add multilib dir if necessary.
10262   lt_tmp_lt_search_path_spec=
10263   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10264   for lt_sys_path in $lt_search_path_spec; do
10265     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10266       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10267     else
10268       test -d "$lt_sys_path" && \
10269         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10270     fi
10271   done
10272   lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
10273 BEGIN {RS=" "; FS="/|\n";} {
10274   lt_foo="";
10275   lt_count=0;
10276   for (lt_i = NF; lt_i > 0; lt_i--) {
10277     if ($lt_i != "" && $lt_i != ".") {
10278       if ($lt_i == "..") {
10279         lt_count++;
10280       } else {
10281         if (lt_count == 0) {
10282           lt_foo="/" $lt_i lt_foo;
10283         } else {
10284           lt_count--;
10285         }
10286       }
10287     }
10288   }
10289   if (lt_foo != "") { lt_freq[lt_foo]++; }
10290   if (lt_freq[lt_foo] == 1) { print lt_foo; }
10291 }'`
10292   sys_lib_search_path_spec=`echo $lt_search_path_spec`
10293 else
10294   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10295 fi
10296 need_lib_prefix=unknown
10297 hardcode_into_libs=no
10298
10299 # when you set need_version to no, make sure it does not cause -set_version
10300 # flags to be left without arguments
10301 need_version=unknown
10302
10303 case $host_os in
10304 aix3*)
10305   version_type=linux
10306   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10307   shlibpath_var=LIBPATH
10308
10309   # AIX 3 has no versioning support, so we append a major version to the name.
10310   soname_spec='${libname}${release}${shared_ext}$major'
10311   ;;
10312
10313 aix4* | aix5*)
10314   version_type=linux
10315   need_lib_prefix=no
10316   need_version=no
10317   hardcode_into_libs=yes
10318   if test "$host_cpu" = ia64; then
10319     # AIX 5 supports IA64
10320     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10321     shlibpath_var=LD_LIBRARY_PATH
10322   else
10323     # With GCC up to 2.95.x, collect2 would create an import file
10324     # for dependence libraries.  The import file would start with
10325     # the line `#! .'.  This would cause the generated library to
10326     # depend on `.', always an invalid library.  This was fixed in
10327     # development snapshots of GCC prior to 3.0.
10328     case $host_os in
10329       aix4 | aix4.[01] | aix4.[01].*)
10330       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10331            echo ' yes '
10332            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
10333         :
10334       else
10335         can_build_shared=no
10336       fi
10337       ;;
10338     esac
10339     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10340     # soname into executable. Probably we can add versioning support to
10341     # collect2, so additional links can be useful in future.
10342     if test "$aix_use_runtimelinking" = yes; then
10343       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10344       # instead of lib<name>.a to let people know that these are not
10345       # typical AIX shared libraries.
10346       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10347     else
10348       # We preserve .a as extension for shared libraries through AIX4.2
10349       # and later when we are not doing run time linking.
10350       library_names_spec='${libname}${release}.a $libname.a'
10351       soname_spec='${libname}${release}${shared_ext}$major'
10352     fi
10353     shlibpath_var=LIBPATH
10354   fi
10355   ;;
10356
10357 amigaos*)
10358   library_names_spec='$libname.ixlibrary $libname.a'
10359   # Create ${libname}_ixlibrary.a entries in /sys/libs.
10360   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'
10361   ;;
10362
10363 beos*)
10364   library_names_spec='${libname}${shared_ext}'
10365   dynamic_linker="$host_os ld.so"
10366   shlibpath_var=LIBRARY_PATH
10367   ;;
10368
10369 bsdi[45]*)
10370   version_type=linux
10371   need_version=no
10372   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10373   soname_spec='${libname}${release}${shared_ext}$major'
10374   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10375   shlibpath_var=LD_LIBRARY_PATH
10376   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10377   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10378   # the default ld.so.conf also contains /usr/contrib/lib and
10379   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10380   # libtool to hard-code these into programs
10381   ;;
10382
10383 cygwin* | mingw* | pw32*)
10384   version_type=windows
10385   shrext_cmds=".dll"
10386   need_version=no
10387   need_lib_prefix=no
10388
10389   case $GCC,$host_os in
10390   yes,cygwin* | yes,mingw* | yes,pw32*)
10391     library_names_spec='$libname.dll.a'
10392     # DLL is installed to $(libdir)/../bin by postinstall_cmds
10393     postinstall_cmds='base_file=`basename \${file}`~
10394       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
10395       dldir=$destdir/`dirname \$dlpath`~
10396       test -d \$dldir || mkdir -p \$dldir~
10397       $install_prog $dir/$dlname \$dldir/$dlname~
10398       chmod a+x \$dldir/$dlname'
10399     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10400       dlpath=$dir/\$dldll~
10401        $rm \$dlpath'
10402     shlibpath_overrides_runpath=yes
10403
10404     case $host_os in
10405     cygwin*)
10406       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10407       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10408       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
10409       ;;
10410     mingw*)
10411       # MinGW DLLs use traditional 'lib' prefix
10412       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10413       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10414       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
10415         # It is most probably a Windows format PATH printed by
10416         # mingw gcc, but we are running on Cygwin. Gcc prints its search
10417         # path with ; separators, and with drive letters. We can handle the
10418         # drive letters (cygwin fileutils understands them), so leave them,
10419         # especially as we might pass files found there to a mingw objdump,
10420         # which wouldn't understand a cygwinified path. Ahh.
10421         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10422       else
10423         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
10424       fi
10425       ;;
10426     pw32*)
10427       # pw32 DLLs use 'pw' prefix rather than 'lib'
10428       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10429       ;;
10430     esac
10431     ;;
10432
10433   *)
10434     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10435     ;;
10436   esac
10437   dynamic_linker='Win32 ld.exe'
10438   # FIXME: first we should search . and the directory the executable is in
10439   shlibpath_var=PATH
10440   ;;
10441
10442 darwin* | rhapsody*)
10443   dynamic_linker="$host_os dyld"
10444   version_type=darwin
10445   need_lib_prefix=no
10446   need_version=no
10447   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10448   soname_spec='${libname}${release}${major}$shared_ext'
10449   shlibpath_overrides_runpath=yes
10450   shlibpath_var=DYLD_LIBRARY_PATH
10451   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10452
10453   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10454   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10455   ;;
10456
10457 dgux*)
10458   version_type=linux
10459   need_lib_prefix=no
10460   need_version=no
10461   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10462   soname_spec='${libname}${release}${shared_ext}$major'
10463   shlibpath_var=LD_LIBRARY_PATH
10464   ;;
10465
10466 freebsd1*)
10467   dynamic_linker=no
10468   ;;
10469
10470 freebsd* | dragonfly*)
10471   # DragonFly does not have aout.  When/if they implement a new
10472   # versioning mechanism, adjust this.
10473   if test -x /usr/bin/objformat; then
10474     objformat=`/usr/bin/objformat`
10475   else
10476     case $host_os in
10477     freebsd[123]*) objformat=aout ;;
10478     *) objformat=elf ;;
10479     esac
10480   fi
10481   version_type=freebsd-$objformat
10482   case $version_type in
10483     freebsd-elf*)
10484       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10485       need_version=no
10486       need_lib_prefix=no
10487       ;;
10488     freebsd-*)
10489       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10490       need_version=yes
10491       ;;
10492   esac
10493   shlibpath_var=LD_LIBRARY_PATH
10494   case $host_os in
10495   freebsd2*)
10496     shlibpath_overrides_runpath=yes
10497     ;;
10498   freebsd3.[01]* | freebsdelf3.[01]*)
10499     shlibpath_overrides_runpath=yes
10500     hardcode_into_libs=yes
10501     ;;
10502   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10503   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10504     shlibpath_overrides_runpath=no
10505     hardcode_into_libs=yes
10506     ;;
10507   *) # from 4.6 on, and DragonFly
10508     shlibpath_overrides_runpath=yes
10509     hardcode_into_libs=yes
10510     ;;
10511   esac
10512   ;;
10513
10514 gnu*)
10515   version_type=linux
10516   need_lib_prefix=no
10517   need_version=no
10518   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10519   soname_spec='${libname}${release}${shared_ext}$major'
10520   shlibpath_var=LD_LIBRARY_PATH
10521   hardcode_into_libs=yes
10522   ;;
10523
10524 hpux9* | hpux10* | hpux11*)
10525   # Give a soname corresponding to the major version so that dld.sl refuses to
10526   # link against other versions.
10527   version_type=sunos
10528   need_lib_prefix=no
10529   need_version=no
10530   case $host_cpu in
10531   ia64*)
10532     shrext_cmds='.so'
10533     hardcode_into_libs=yes
10534     dynamic_linker="$host_os dld.so"
10535     shlibpath_var=LD_LIBRARY_PATH
10536     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10537     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10538     soname_spec='${libname}${release}${shared_ext}$major'
10539     if test "X$HPUX_IA64_MODE" = X32; then
10540       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10541     else
10542       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10543     fi
10544     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10545     ;;
10546    hppa*64*)
10547      shrext_cmds='.sl'
10548      hardcode_into_libs=yes
10549      dynamic_linker="$host_os dld.sl"
10550      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10551      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10552      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10553      soname_spec='${libname}${release}${shared_ext}$major'
10554      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10555      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10556      ;;
10557    *)
10558     shrext_cmds='.sl'
10559     dynamic_linker="$host_os dld.sl"
10560     shlibpath_var=SHLIB_PATH
10561     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10562     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10563     soname_spec='${libname}${release}${shared_ext}$major'
10564     ;;
10565   esac
10566   # HP-UX runs *really* slowly unless shared libraries are mode 555.
10567   postinstall_cmds='chmod 555 $lib'
10568   ;;
10569
10570 interix[3-9]*)
10571   version_type=linux
10572   need_lib_prefix=no
10573   need_version=no
10574   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10575   soname_spec='${libname}${release}${shared_ext}$major'
10576   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10577   shlibpath_var=LD_LIBRARY_PATH
10578   shlibpath_overrides_runpath=no
10579   hardcode_into_libs=yes
10580   ;;
10581
10582 irix5* | irix6* | nonstopux*)
10583   case $host_os in
10584     nonstopux*) version_type=nonstopux ;;
10585     *)
10586         if test "$lt_cv_prog_gnu_ld" = yes; then
10587                 version_type=linux
10588         else
10589                 version_type=irix
10590         fi ;;
10591   esac
10592   need_lib_prefix=no
10593   need_version=no
10594   soname_spec='${libname}${release}${shared_ext}$major'
10595   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10596   case $host_os in
10597   irix5* | nonstopux*)
10598     libsuff= shlibsuff=
10599     ;;
10600   *)
10601     case $LD in # libtool.m4 will add one of these switches to LD
10602     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10603       libsuff= shlibsuff= libmagic=32-bit;;
10604     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10605       libsuff=32 shlibsuff=N32 libmagic=N32;;
10606     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10607       libsuff=64 shlibsuff=64 libmagic=64-bit;;
10608     *) libsuff= shlibsuff= libmagic=never-match;;
10609     esac
10610     ;;
10611   esac
10612   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10613   shlibpath_overrides_runpath=no
10614   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10615   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10616   hardcode_into_libs=yes
10617   ;;
10618
10619 # No shared lib support for Linux oldld, aout, or coff.
10620 linux*oldld* | linux*aout* | linux*coff*)
10621   dynamic_linker=no
10622   ;;
10623
10624 # This must be Linux ELF.
10625 linux* | k*bsd*-gnu)
10626   version_type=linux
10627   need_lib_prefix=no
10628   need_version=no
10629   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10630   soname_spec='${libname}${release}${shared_ext}$major'
10631   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10632   shlibpath_var=LD_LIBRARY_PATH
10633   shlibpath_overrides_runpath=no
10634   # This implies no fast_install, which is unacceptable.
10635   # Some rework will be needed to allow for fast_install
10636   # before this can be enabled.
10637   hardcode_into_libs=yes
10638   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10639   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10640
10641   # Append ld.so.conf contents to the search path
10642   if test -f /etc/ld.so.conf; then
10643     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[      ]*hwcap[        ]/d;s/[:,       ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
10644     sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
10645   fi
10646
10647   # We used to test for /lib/ld.so.1 and disable shared libraries on
10648   # powerpc, because MkLinux only supported shared libraries with the
10649   # GNU dynamic linker.  Since this was broken with cross compilers,
10650   # most powerpc-linux boxes support dynamic linking these days and
10651   # people can always --disable-shared, the test was removed, and we
10652   # assume the GNU/Linux dynamic linker is in use.
10653   dynamic_linker='GNU/Linux ld.so'
10654   ;;
10655
10656 netbsd*)
10657   version_type=sunos
10658   need_lib_prefix=no
10659   need_version=no
10660   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10661     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10662     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10663     dynamic_linker='NetBSD (a.out) ld.so'
10664   else
10665     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10666     soname_spec='${libname}${release}${shared_ext}$major'
10667     dynamic_linker='NetBSD ld.elf_so'
10668   fi
10669   shlibpath_var=LD_LIBRARY_PATH
10670   shlibpath_overrides_runpath=yes
10671   hardcode_into_libs=yes
10672   ;;
10673
10674 newsos6)
10675   version_type=linux
10676   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10677   shlibpath_var=LD_LIBRARY_PATH
10678   shlibpath_overrides_runpath=yes
10679   ;;
10680
10681 nto-qnx*)
10682   version_type=linux
10683   need_lib_prefix=no
10684   need_version=no
10685   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10686   soname_spec='${libname}${release}${shared_ext}$major'
10687   shlibpath_var=LD_LIBRARY_PATH
10688   shlibpath_overrides_runpath=yes
10689   ;;
10690
10691 openbsd*)
10692   version_type=sunos
10693   sys_lib_dlsearch_path_spec="/usr/lib"
10694   need_lib_prefix=no
10695   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10696   case $host_os in
10697     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10698     *)                         need_version=no  ;;
10699   esac
10700   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10701   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10702   shlibpath_var=LD_LIBRARY_PATH
10703   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10704     case $host_os in
10705       openbsd2.[89] | openbsd2.[89].*)
10706         shlibpath_overrides_runpath=no
10707         ;;
10708       *)
10709         shlibpath_overrides_runpath=yes
10710         ;;
10711       esac
10712   else
10713     shlibpath_overrides_runpath=yes
10714   fi
10715   ;;
10716
10717 os2*)
10718   libname_spec='$name'
10719   shrext_cmds=".dll"
10720   need_lib_prefix=no
10721   library_names_spec='$libname${shared_ext} $libname.a'
10722   dynamic_linker='OS/2 ld.exe'
10723   shlibpath_var=LIBPATH
10724   ;;
10725
10726 osf3* | osf4* | osf5*)
10727   version_type=osf
10728   need_lib_prefix=no
10729   need_version=no
10730   soname_spec='${libname}${release}${shared_ext}$major'
10731   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10732   shlibpath_var=LD_LIBRARY_PATH
10733   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10734   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10735   ;;
10736
10737 rdos*)
10738   dynamic_linker=no
10739   ;;
10740
10741 solaris*)
10742   version_type=linux
10743   need_lib_prefix=no
10744   need_version=no
10745   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10746   soname_spec='${libname}${release}${shared_ext}$major'
10747   shlibpath_var=LD_LIBRARY_PATH
10748   shlibpath_overrides_runpath=yes
10749   hardcode_into_libs=yes
10750   # ldd complains unless libraries are executable
10751   postinstall_cmds='chmod +x $lib'
10752   ;;
10753
10754 sunos4*)
10755   version_type=sunos
10756   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10757   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10758   shlibpath_var=LD_LIBRARY_PATH
10759   shlibpath_overrides_runpath=yes
10760   if test "$with_gnu_ld" = yes; then
10761     need_lib_prefix=no
10762   fi
10763   need_version=yes
10764   ;;
10765
10766 sysv4 | sysv4.3*)
10767   version_type=linux
10768   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10769   soname_spec='${libname}${release}${shared_ext}$major'
10770   shlibpath_var=LD_LIBRARY_PATH
10771   case $host_vendor in
10772     sni)
10773       shlibpath_overrides_runpath=no
10774       need_lib_prefix=no
10775       export_dynamic_flag_spec='${wl}-Blargedynsym'
10776       runpath_var=LD_RUN_PATH
10777       ;;
10778     siemens)
10779       need_lib_prefix=no
10780       ;;
10781     motorola)
10782       need_lib_prefix=no
10783       need_version=no
10784       shlibpath_overrides_runpath=no
10785       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10786       ;;
10787   esac
10788   ;;
10789
10790 sysv4*MP*)
10791   if test -d /usr/nec ;then
10792     version_type=linux
10793     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10794     soname_spec='$libname${shared_ext}.$major'
10795     shlibpath_var=LD_LIBRARY_PATH
10796   fi
10797   ;;
10798
10799 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10800   version_type=freebsd-elf
10801   need_lib_prefix=no
10802   need_version=no
10803   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10804   soname_spec='${libname}${release}${shared_ext}$major'
10805   shlibpath_var=LD_LIBRARY_PATH
10806   hardcode_into_libs=yes
10807   if test "$with_gnu_ld" = yes; then
10808     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10809     shlibpath_overrides_runpath=no
10810   else
10811     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10812     shlibpath_overrides_runpath=yes
10813     case $host_os in
10814       sco3.2v5*)
10815         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10816         ;;
10817     esac
10818   fi
10819   sys_lib_dlsearch_path_spec='/usr/lib'
10820   ;;
10821
10822 uts4*)
10823   version_type=linux
10824   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10825   soname_spec='${libname}${release}${shared_ext}$major'
10826   shlibpath_var=LD_LIBRARY_PATH
10827   ;;
10828
10829 *)
10830   dynamic_linker=no
10831   ;;
10832 esac
10833 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10834 echo "${ECHO_T}$dynamic_linker" >&6; }
10835 test "$dynamic_linker" = no && can_build_shared=no
10836
10837 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10838 if test "$GCC" = yes; then
10839   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10840 fi
10841
10842 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10843 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
10844 hardcode_action=
10845 if test -n "$hardcode_libdir_flag_spec" || \
10846    test -n "$runpath_var" || \
10847    test "X$hardcode_automatic" = "Xyes" ; then
10848
10849   # We can hardcode non-existant directories.
10850   if test "$hardcode_direct" != no &&
10851      # If the only mechanism to avoid hardcoding is shlibpath_var, we
10852      # have to relink, otherwise we might link with an installed library
10853      # when we should be linking with a yet-to-be-installed one
10854      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
10855      test "$hardcode_minus_L" != no; then
10856     # Linking always hardcodes the temporary library directory.
10857     hardcode_action=relink
10858   else
10859     # We can link without hardcoding, and we can hardcode nonexisting dirs.
10860     hardcode_action=immediate
10861   fi
10862 else
10863   # We cannot hardcode anything, or else we can only hardcode existing
10864   # directories.
10865   hardcode_action=unsupported
10866 fi
10867 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
10868 echo "${ECHO_T}$hardcode_action" >&6; }
10869
10870 if test "$hardcode_action" = relink; then
10871   # Fast installation is not supported
10872   enable_fast_install=no
10873 elif test "$shlibpath_overrides_runpath" = yes ||
10874      test "$enable_shared" = no; then
10875   # Fast installation is not necessary
10876   enable_fast_install=needless
10877 fi
10878
10879 striplib=
10880 old_striplib=
10881 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10882 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
10883 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
10884   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10885   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10886   { echo "$as_me:$LINENO: result: yes" >&5
10887 echo "${ECHO_T}yes" >&6; }
10888 else
10889 # FIXME - insert some real tests, host_os isn't really good enough
10890   case $host_os in
10891    darwin*)
10892        if test -n "$STRIP" ; then
10893          striplib="$STRIP -x"
10894          old_striplib="$STRIP -S"
10895          { echo "$as_me:$LINENO: result: yes" >&5
10896 echo "${ECHO_T}yes" >&6; }
10897        else
10898   { echo "$as_me:$LINENO: result: no" >&5
10899 echo "${ECHO_T}no" >&6; }
10900 fi
10901        ;;
10902    *)
10903   { echo "$as_me:$LINENO: result: no" >&5
10904 echo "${ECHO_T}no" >&6; }
10905     ;;
10906   esac
10907 fi
10908
10909 if test "x$enable_dlopen" != xyes; then
10910   enable_dlopen=unknown
10911   enable_dlopen_self=unknown
10912   enable_dlopen_self_static=unknown
10913 else
10914   lt_cv_dlopen=no
10915   lt_cv_dlopen_libs=
10916
10917   case $host_os in
10918   beos*)
10919     lt_cv_dlopen="load_add_on"
10920     lt_cv_dlopen_libs=
10921     lt_cv_dlopen_self=yes
10922     ;;
10923
10924   mingw* | pw32*)
10925     lt_cv_dlopen="LoadLibrary"
10926     lt_cv_dlopen_libs=
10927    ;;
10928
10929   cygwin*)
10930     lt_cv_dlopen="dlopen"
10931     lt_cv_dlopen_libs=
10932    ;;
10933
10934   darwin*)
10935   # if libdl is installed we need to link against it
10936     { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10937 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10938 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10939   echo $ECHO_N "(cached) $ECHO_C" >&6
10940 else
10941   ac_check_lib_save_LIBS=$LIBS
10942 LIBS="-ldl  $LIBS"
10943 cat >conftest.$ac_ext <<_ACEOF
10944 /* confdefs.h.  */
10945 _ACEOF
10946 cat confdefs.h >>conftest.$ac_ext
10947 cat >>conftest.$ac_ext <<_ACEOF
10948 /* end confdefs.h.  */
10949
10950 /* Override any GCC internal prototype to avoid an error.
10951    Use char because int might match the return type of a GCC
10952    builtin and then its argument prototype would still apply.  */
10953 #ifdef __cplusplus
10954 extern "C"
10955 #endif
10956 char dlopen ();
10957 int
10958 main ()
10959 {
10960 return dlopen ();
10961   ;
10962   return 0;
10963 }
10964 _ACEOF
10965 rm -f conftest.$ac_objext conftest$ac_exeext
10966 if { (ac_try="$ac_link"
10967 case "(($ac_try" in
10968   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10969   *) ac_try_echo=$ac_try;;
10970 esac
10971 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10972   (eval "$ac_link") 2>conftest.er1
10973   ac_status=$?
10974   grep -v '^ *+' conftest.er1 >conftest.err
10975   rm -f conftest.er1
10976   cat conftest.err >&5
10977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10978   (exit $ac_status); } && {
10979          test -z "$ac_c_werror_flag" ||
10980          test ! -s conftest.err
10981        } && test -s conftest$ac_exeext &&
10982        $as_test_x conftest$ac_exeext; then
10983   ac_cv_lib_dl_dlopen=yes
10984 else
10985   echo "$as_me: failed program was:" >&5
10986 sed 's/^/| /' conftest.$ac_ext >&5
10987
10988         ac_cv_lib_dl_dlopen=no
10989 fi
10990
10991 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10992       conftest$ac_exeext conftest.$ac_ext
10993 LIBS=$ac_check_lib_save_LIBS
10994 fi
10995 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10996 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10997 if test $ac_cv_lib_dl_dlopen = yes; then
10998   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10999 else
11000
11001     lt_cv_dlopen="dyld"
11002     lt_cv_dlopen_libs=
11003     lt_cv_dlopen_self=yes
11004
11005 fi
11006
11007    ;;
11008
11009   *)
11010     { echo "$as_me:$LINENO: checking for shl_load" >&5
11011 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
11012 if test "${ac_cv_func_shl_load+set}" = set; then
11013   echo $ECHO_N "(cached) $ECHO_C" >&6
11014 else
11015   cat >conftest.$ac_ext <<_ACEOF
11016 /* confdefs.h.  */
11017 _ACEOF
11018 cat confdefs.h >>conftest.$ac_ext
11019 cat >>conftest.$ac_ext <<_ACEOF
11020 /* end confdefs.h.  */
11021 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
11022    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11023 #define shl_load innocuous_shl_load
11024
11025 /* System header to define __stub macros and hopefully few prototypes,
11026     which can conflict with char shl_load (); below.
11027     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11028     <limits.h> exists even on freestanding compilers.  */
11029
11030 #ifdef __STDC__
11031 # include <limits.h>
11032 #else
11033 # include <assert.h>
11034 #endif
11035
11036 #undef shl_load
11037
11038 /* Override any GCC internal prototype to avoid an error.
11039    Use char because int might match the return type of a GCC
11040    builtin and then its argument prototype would still apply.  */
11041 #ifdef __cplusplus
11042 extern "C"
11043 #endif
11044 char shl_load ();
11045 /* The GNU C library defines this for functions which it implements
11046     to always fail with ENOSYS.  Some functions are actually named
11047     something starting with __ and the normal name is an alias.  */
11048 #if defined __stub_shl_load || defined __stub___shl_load
11049 choke me
11050 #endif
11051
11052 int
11053 main ()
11054 {
11055 return shl_load ();
11056   ;
11057   return 0;
11058 }
11059 _ACEOF
11060 rm -f conftest.$ac_objext conftest$ac_exeext
11061 if { (ac_try="$ac_link"
11062 case "(($ac_try" in
11063   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11064   *) ac_try_echo=$ac_try;;
11065 esac
11066 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11067   (eval "$ac_link") 2>conftest.er1
11068   ac_status=$?
11069   grep -v '^ *+' conftest.er1 >conftest.err
11070   rm -f conftest.er1
11071   cat conftest.err >&5
11072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11073   (exit $ac_status); } && {
11074          test -z "$ac_c_werror_flag" ||
11075          test ! -s conftest.err
11076        } && test -s conftest$ac_exeext &&
11077        $as_test_x conftest$ac_exeext; then
11078   ac_cv_func_shl_load=yes
11079 else
11080   echo "$as_me: failed program was:" >&5
11081 sed 's/^/| /' conftest.$ac_ext >&5
11082
11083         ac_cv_func_shl_load=no
11084 fi
11085
11086 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11087       conftest$ac_exeext conftest.$ac_ext
11088 fi
11089 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
11090 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
11091 if test $ac_cv_func_shl_load = yes; then
11092   lt_cv_dlopen="shl_load"
11093 else
11094   { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
11095 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
11096 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
11097   echo $ECHO_N "(cached) $ECHO_C" >&6
11098 else
11099   ac_check_lib_save_LIBS=$LIBS
11100 LIBS="-ldld  $LIBS"
11101 cat >conftest.$ac_ext <<_ACEOF
11102 /* confdefs.h.  */
11103 _ACEOF
11104 cat confdefs.h >>conftest.$ac_ext
11105 cat >>conftest.$ac_ext <<_ACEOF
11106 /* end confdefs.h.  */
11107
11108 /* Override any GCC internal prototype to avoid an error.
11109    Use char because int might match the return type of a GCC
11110    builtin and then its argument prototype would still apply.  */
11111 #ifdef __cplusplus
11112 extern "C"
11113 #endif
11114 char shl_load ();
11115 int
11116 main ()
11117 {
11118 return shl_load ();
11119   ;
11120   return 0;
11121 }
11122 _ACEOF
11123 rm -f conftest.$ac_objext conftest$ac_exeext
11124 if { (ac_try="$ac_link"
11125 case "(($ac_try" in
11126   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11127   *) ac_try_echo=$ac_try;;
11128 esac
11129 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11130   (eval "$ac_link") 2>conftest.er1
11131   ac_status=$?
11132   grep -v '^ *+' conftest.er1 >conftest.err
11133   rm -f conftest.er1
11134   cat conftest.err >&5
11135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11136   (exit $ac_status); } && {
11137          test -z "$ac_c_werror_flag" ||
11138          test ! -s conftest.err
11139        } && test -s conftest$ac_exeext &&
11140        $as_test_x conftest$ac_exeext; then
11141   ac_cv_lib_dld_shl_load=yes
11142 else
11143   echo "$as_me: failed program was:" >&5
11144 sed 's/^/| /' conftest.$ac_ext >&5
11145
11146         ac_cv_lib_dld_shl_load=no
11147 fi
11148
11149 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11150       conftest$ac_exeext conftest.$ac_ext
11151 LIBS=$ac_check_lib_save_LIBS
11152 fi
11153 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
11154 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
11155 if test $ac_cv_lib_dld_shl_load = yes; then
11156   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
11157 else
11158   { echo "$as_me:$LINENO: checking for dlopen" >&5
11159 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
11160 if test "${ac_cv_func_dlopen+set}" = set; then
11161   echo $ECHO_N "(cached) $ECHO_C" >&6
11162 else
11163   cat >conftest.$ac_ext <<_ACEOF
11164 /* confdefs.h.  */
11165 _ACEOF
11166 cat confdefs.h >>conftest.$ac_ext
11167 cat >>conftest.$ac_ext <<_ACEOF
11168 /* end confdefs.h.  */
11169 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
11170    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11171 #define dlopen innocuous_dlopen
11172
11173 /* System header to define __stub macros and hopefully few prototypes,
11174     which can conflict with char dlopen (); below.
11175     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11176     <limits.h> exists even on freestanding compilers.  */
11177
11178 #ifdef __STDC__
11179 # include <limits.h>
11180 #else
11181 # include <assert.h>
11182 #endif
11183
11184 #undef dlopen
11185
11186 /* Override any GCC internal prototype to avoid an error.
11187    Use char because int might match the return type of a GCC
11188    builtin and then its argument prototype would still apply.  */
11189 #ifdef __cplusplus
11190 extern "C"
11191 #endif
11192 char dlopen ();
11193 /* The GNU C library defines this for functions which it implements
11194     to always fail with ENOSYS.  Some functions are actually named
11195     something starting with __ and the normal name is an alias.  */
11196 #if defined __stub_dlopen || defined __stub___dlopen
11197 choke me
11198 #endif
11199
11200 int
11201 main ()
11202 {
11203 return dlopen ();
11204   ;
11205   return 0;
11206 }
11207 _ACEOF
11208 rm -f conftest.$ac_objext conftest$ac_exeext
11209 if { (ac_try="$ac_link"
11210 case "(($ac_try" in
11211   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11212   *) ac_try_echo=$ac_try;;
11213 esac
11214 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11215   (eval "$ac_link") 2>conftest.er1
11216   ac_status=$?
11217   grep -v '^ *+' conftest.er1 >conftest.err
11218   rm -f conftest.er1
11219   cat conftest.err >&5
11220   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11221   (exit $ac_status); } && {
11222          test -z "$ac_c_werror_flag" ||
11223          test ! -s conftest.err
11224        } && test -s conftest$ac_exeext &&
11225        $as_test_x conftest$ac_exeext; then
11226   ac_cv_func_dlopen=yes
11227 else
11228   echo "$as_me: failed program was:" >&5
11229 sed 's/^/| /' conftest.$ac_ext >&5
11230
11231         ac_cv_func_dlopen=no
11232 fi
11233
11234 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11235       conftest$ac_exeext conftest.$ac_ext
11236 fi
11237 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
11238 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
11239 if test $ac_cv_func_dlopen = yes; then
11240   lt_cv_dlopen="dlopen"
11241 else
11242   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11243 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
11244 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11245   echo $ECHO_N "(cached) $ECHO_C" >&6
11246 else
11247   ac_check_lib_save_LIBS=$LIBS
11248 LIBS="-ldl  $LIBS"
11249 cat >conftest.$ac_ext <<_ACEOF
11250 /* confdefs.h.  */
11251 _ACEOF
11252 cat confdefs.h >>conftest.$ac_ext
11253 cat >>conftest.$ac_ext <<_ACEOF
11254 /* end confdefs.h.  */
11255
11256 /* Override any GCC internal prototype to avoid an error.
11257    Use char because int might match the return type of a GCC
11258    builtin and then its argument prototype would still apply.  */
11259 #ifdef __cplusplus
11260 extern "C"
11261 #endif
11262 char dlopen ();
11263 int
11264 main ()
11265 {
11266 return dlopen ();
11267   ;
11268   return 0;
11269 }
11270 _ACEOF
11271 rm -f conftest.$ac_objext conftest$ac_exeext
11272 if { (ac_try="$ac_link"
11273 case "(($ac_try" in
11274   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11275   *) ac_try_echo=$ac_try;;
11276 esac
11277 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11278   (eval "$ac_link") 2>conftest.er1
11279   ac_status=$?
11280   grep -v '^ *+' conftest.er1 >conftest.err
11281   rm -f conftest.er1
11282   cat conftest.err >&5
11283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11284   (exit $ac_status); } && {
11285          test -z "$ac_c_werror_flag" ||
11286          test ! -s conftest.err
11287        } && test -s conftest$ac_exeext &&
11288        $as_test_x conftest$ac_exeext; then
11289   ac_cv_lib_dl_dlopen=yes
11290 else
11291   echo "$as_me: failed program was:" >&5
11292 sed 's/^/| /' conftest.$ac_ext >&5
11293
11294         ac_cv_lib_dl_dlopen=no
11295 fi
11296
11297 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11298       conftest$ac_exeext conftest.$ac_ext
11299 LIBS=$ac_check_lib_save_LIBS
11300 fi
11301 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11302 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
11303 if test $ac_cv_lib_dl_dlopen = yes; then
11304   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11305 else
11306   { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
11307 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
11308 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
11309   echo $ECHO_N "(cached) $ECHO_C" >&6
11310 else
11311   ac_check_lib_save_LIBS=$LIBS
11312 LIBS="-lsvld  $LIBS"
11313 cat >conftest.$ac_ext <<_ACEOF
11314 /* confdefs.h.  */
11315 _ACEOF
11316 cat confdefs.h >>conftest.$ac_ext
11317 cat >>conftest.$ac_ext <<_ACEOF
11318 /* end confdefs.h.  */
11319
11320 /* Override any GCC internal prototype to avoid an error.
11321    Use char because int might match the return type of a GCC
11322    builtin and then its argument prototype would still apply.  */
11323 #ifdef __cplusplus
11324 extern "C"
11325 #endif
11326 char dlopen ();
11327 int
11328 main ()
11329 {
11330 return dlopen ();
11331   ;
11332   return 0;
11333 }
11334 _ACEOF
11335 rm -f conftest.$ac_objext conftest$ac_exeext
11336 if { (ac_try="$ac_link"
11337 case "(($ac_try" in
11338   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11339   *) ac_try_echo=$ac_try;;
11340 esac
11341 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11342   (eval "$ac_link") 2>conftest.er1
11343   ac_status=$?
11344   grep -v '^ *+' conftest.er1 >conftest.err
11345   rm -f conftest.er1
11346   cat conftest.err >&5
11347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11348   (exit $ac_status); } && {
11349          test -z "$ac_c_werror_flag" ||
11350          test ! -s conftest.err
11351        } && test -s conftest$ac_exeext &&
11352        $as_test_x conftest$ac_exeext; then
11353   ac_cv_lib_svld_dlopen=yes
11354 else
11355   echo "$as_me: failed program was:" >&5
11356 sed 's/^/| /' conftest.$ac_ext >&5
11357
11358         ac_cv_lib_svld_dlopen=no
11359 fi
11360
11361 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11362       conftest$ac_exeext conftest.$ac_ext
11363 LIBS=$ac_check_lib_save_LIBS
11364 fi
11365 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
11366 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
11367 if test $ac_cv_lib_svld_dlopen = yes; then
11368   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11369 else
11370   { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
11371 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
11372 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
11373   echo $ECHO_N "(cached) $ECHO_C" >&6
11374 else
11375   ac_check_lib_save_LIBS=$LIBS
11376 LIBS="-ldld  $LIBS"
11377 cat >conftest.$ac_ext <<_ACEOF
11378 /* confdefs.h.  */
11379 _ACEOF
11380 cat confdefs.h >>conftest.$ac_ext
11381 cat >>conftest.$ac_ext <<_ACEOF
11382 /* end confdefs.h.  */
11383
11384 /* Override any GCC internal prototype to avoid an error.
11385    Use char because int might match the return type of a GCC
11386    builtin and then its argument prototype would still apply.  */
11387 #ifdef __cplusplus
11388 extern "C"
11389 #endif
11390 char dld_link ();
11391 int
11392 main ()
11393 {
11394 return dld_link ();
11395   ;
11396   return 0;
11397 }
11398 _ACEOF
11399 rm -f conftest.$ac_objext conftest$ac_exeext
11400 if { (ac_try="$ac_link"
11401 case "(($ac_try" in
11402   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11403   *) ac_try_echo=$ac_try;;
11404 esac
11405 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11406   (eval "$ac_link") 2>conftest.er1
11407   ac_status=$?
11408   grep -v '^ *+' conftest.er1 >conftest.err
11409   rm -f conftest.er1
11410   cat conftest.err >&5
11411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11412   (exit $ac_status); } && {
11413          test -z "$ac_c_werror_flag" ||
11414          test ! -s conftest.err
11415        } && test -s conftest$ac_exeext &&
11416        $as_test_x conftest$ac_exeext; then
11417   ac_cv_lib_dld_dld_link=yes
11418 else
11419   echo "$as_me: failed program was:" >&5
11420 sed 's/^/| /' conftest.$ac_ext >&5
11421
11422         ac_cv_lib_dld_dld_link=no
11423 fi
11424
11425 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11426       conftest$ac_exeext conftest.$ac_ext
11427 LIBS=$ac_check_lib_save_LIBS
11428 fi
11429 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
11430 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
11431 if test $ac_cv_lib_dld_dld_link = yes; then
11432   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
11433 fi
11434
11435
11436 fi
11437
11438
11439 fi
11440
11441
11442 fi
11443
11444
11445 fi
11446
11447
11448 fi
11449
11450     ;;
11451   esac
11452
11453   if test "x$lt_cv_dlopen" != xno; then
11454     enable_dlopen=yes
11455   else
11456     enable_dlopen=no
11457   fi
11458
11459   case $lt_cv_dlopen in
11460   dlopen)
11461     save_CPPFLAGS="$CPPFLAGS"
11462     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11463
11464     save_LDFLAGS="$LDFLAGS"
11465     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11466
11467     save_LIBS="$LIBS"
11468     LIBS="$lt_cv_dlopen_libs $LIBS"
11469
11470     { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
11471 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
11472 if test "${lt_cv_dlopen_self+set}" = set; then
11473   echo $ECHO_N "(cached) $ECHO_C" >&6
11474 else
11475           if test "$cross_compiling" = yes; then :
11476   lt_cv_dlopen_self=cross
11477 else
11478   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11479   lt_status=$lt_dlunknown
11480   cat > conftest.$ac_ext <<EOF
11481 #line 11481 "configure"
11482 #include "confdefs.h"
11483
11484 #if HAVE_DLFCN_H
11485 #include <dlfcn.h>
11486 #endif
11487
11488 #include <stdio.h>
11489
11490 #ifdef RTLD_GLOBAL
11491 #  define LT_DLGLOBAL           RTLD_GLOBAL
11492 #else
11493 #  ifdef DL_GLOBAL
11494 #    define LT_DLGLOBAL         DL_GLOBAL
11495 #  else
11496 #    define LT_DLGLOBAL         0
11497 #  endif
11498 #endif
11499
11500 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11501    find out it does not work in some platform. */
11502 #ifndef LT_DLLAZY_OR_NOW
11503 #  ifdef RTLD_LAZY
11504 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11505 #  else
11506 #    ifdef DL_LAZY
11507 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11508 #    else
11509 #      ifdef RTLD_NOW
11510 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11511 #      else
11512 #        ifdef DL_NOW
11513 #          define LT_DLLAZY_OR_NOW      DL_NOW
11514 #        else
11515 #          define LT_DLLAZY_OR_NOW      0
11516 #        endif
11517 #      endif
11518 #    endif
11519 #  endif
11520 #endif
11521
11522 #ifdef __cplusplus
11523 extern "C" void exit (int);
11524 #endif
11525
11526 void fnord() { int i=42;}
11527 int main ()
11528 {
11529   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11530   int status = $lt_dlunknown;
11531
11532   if (self)
11533     {
11534       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11535       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11536       /* dlclose (self); */
11537     }
11538   else
11539     puts (dlerror ());
11540
11541     exit (status);
11542 }
11543 EOF
11544   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11545   (eval $ac_link) 2>&5
11546   ac_status=$?
11547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11548   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11549     (./conftest; exit; ) >&5 2>/dev/null
11550     lt_status=$?
11551     case x$lt_status in
11552       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11553       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11554       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11555     esac
11556   else :
11557     # compilation failed
11558     lt_cv_dlopen_self=no
11559   fi
11560 fi
11561 rm -fr conftest*
11562
11563
11564 fi
11565 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
11566 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
11567
11568     if test "x$lt_cv_dlopen_self" = xyes; then
11569       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11570       { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
11571 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
11572 if test "${lt_cv_dlopen_self_static+set}" = set; then
11573   echo $ECHO_N "(cached) $ECHO_C" >&6
11574 else
11575           if test "$cross_compiling" = yes; then :
11576   lt_cv_dlopen_self_static=cross
11577 else
11578   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11579   lt_status=$lt_dlunknown
11580   cat > conftest.$ac_ext <<EOF
11581 #line 11581 "configure"
11582 #include "confdefs.h"
11583
11584 #if HAVE_DLFCN_H
11585 #include <dlfcn.h>
11586 #endif
11587
11588 #include <stdio.h>
11589
11590 #ifdef RTLD_GLOBAL
11591 #  define LT_DLGLOBAL           RTLD_GLOBAL
11592 #else
11593 #  ifdef DL_GLOBAL
11594 #    define LT_DLGLOBAL         DL_GLOBAL
11595 #  else
11596 #    define LT_DLGLOBAL         0
11597 #  endif
11598 #endif
11599
11600 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11601    find out it does not work in some platform. */
11602 #ifndef LT_DLLAZY_OR_NOW
11603 #  ifdef RTLD_LAZY
11604 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11605 #  else
11606 #    ifdef DL_LAZY
11607 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11608 #    else
11609 #      ifdef RTLD_NOW
11610 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11611 #      else
11612 #        ifdef DL_NOW
11613 #          define LT_DLLAZY_OR_NOW      DL_NOW
11614 #        else
11615 #          define LT_DLLAZY_OR_NOW      0
11616 #        endif
11617 #      endif
11618 #    endif
11619 #  endif
11620 #endif
11621
11622 #ifdef __cplusplus
11623 extern "C" void exit (int);
11624 #endif
11625
11626 void fnord() { int i=42;}
11627 int main ()
11628 {
11629   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11630   int status = $lt_dlunknown;
11631
11632   if (self)
11633     {
11634       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11635       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11636       /* dlclose (self); */
11637     }
11638   else
11639     puts (dlerror ());
11640
11641     exit (status);
11642 }
11643 EOF
11644   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11645   (eval $ac_link) 2>&5
11646   ac_status=$?
11647   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11648   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11649     (./conftest; exit; ) >&5 2>/dev/null
11650     lt_status=$?
11651     case x$lt_status in
11652       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11653       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11654       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11655     esac
11656   else :
11657     # compilation failed
11658     lt_cv_dlopen_self_static=no
11659   fi
11660 fi
11661 rm -fr conftest*
11662
11663
11664 fi
11665 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
11666 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
11667     fi
11668
11669     CPPFLAGS="$save_CPPFLAGS"
11670     LDFLAGS="$save_LDFLAGS"
11671     LIBS="$save_LIBS"
11672     ;;
11673   esac
11674
11675   case $lt_cv_dlopen_self in
11676   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11677   *) enable_dlopen_self=unknown ;;
11678   esac
11679
11680   case $lt_cv_dlopen_self_static in
11681   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11682   *) enable_dlopen_self_static=unknown ;;
11683   esac
11684 fi
11685
11686
11687 # Report which library types will actually be built
11688 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
11689 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
11690 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
11691 echo "${ECHO_T}$can_build_shared" >&6; }
11692
11693 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
11694 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
11695 test "$can_build_shared" = "no" && enable_shared=no
11696
11697 # On AIX, shared libraries and static libraries use the same namespace, and
11698 # are all built from PIC.
11699 case $host_os in
11700 aix3*)
11701   test "$enable_shared" = yes && enable_static=no
11702   if test -n "$RANLIB"; then
11703     archive_cmds="$archive_cmds~\$RANLIB \$lib"
11704     postinstall_cmds='$RANLIB $lib'
11705   fi
11706   ;;
11707
11708 aix4* | aix5*)
11709   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11710     test "$enable_shared" = yes && enable_static=no
11711   fi
11712     ;;
11713 esac
11714 { echo "$as_me:$LINENO: result: $enable_shared" >&5
11715 echo "${ECHO_T}$enable_shared" >&6; }
11716
11717 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
11718 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
11719 # Make sure either enable_shared or enable_static is yes.
11720 test "$enable_shared" = yes || enable_static=yes
11721 { echo "$as_me:$LINENO: result: $enable_static" >&5
11722 echo "${ECHO_T}$enable_static" >&6; }
11723
11724 # The else clause should only fire when bootstrapping the
11725 # libtool distribution, otherwise you forgot to ship ltmain.sh
11726 # with your package, and you will get complaints that there are
11727 # no rules to generate ltmain.sh.
11728 if test -f "$ltmain"; then
11729   # See if we are running on zsh, and set the options which allow our commands through
11730   # without removal of \ escapes.
11731   if test -n "${ZSH_VERSION+set}" ; then
11732     setopt NO_GLOB_SUBST
11733   fi
11734   # Now quote all the things that may contain metacharacters while being
11735   # careful not to overquote the AC_SUBSTed values.  We take copies of the
11736   # variables and quote the copies for generation of the libtool script.
11737   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
11738     SED SHELL STRIP \
11739     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
11740     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
11741     deplibs_check_method reload_flag reload_cmds need_locks \
11742     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
11743     lt_cv_sys_global_symbol_to_c_name_address \
11744     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
11745     old_postinstall_cmds old_postuninstall_cmds \
11746     compiler \
11747     CC \
11748     LD \
11749     lt_prog_compiler_wl \
11750     lt_prog_compiler_pic \
11751     lt_prog_compiler_static \
11752     lt_prog_compiler_no_builtin_flag \
11753     export_dynamic_flag_spec \
11754     thread_safe_flag_spec \
11755     whole_archive_flag_spec \
11756     enable_shared_with_static_runtimes \
11757     old_archive_cmds \
11758     old_archive_from_new_cmds \
11759     predep_objects \
11760     postdep_objects \
11761     predeps \
11762     postdeps \
11763     compiler_lib_search_path \
11764     archive_cmds \
11765     archive_expsym_cmds \
11766     postinstall_cmds \
11767     postuninstall_cmds \
11768     old_archive_from_expsyms_cmds \
11769     allow_undefined_flag \
11770     no_undefined_flag \
11771     export_symbols_cmds \
11772     hardcode_libdir_flag_spec \
11773     hardcode_libdir_flag_spec_ld \
11774     hardcode_libdir_separator \
11775     hardcode_automatic \
11776     module_cmds \
11777     module_expsym_cmds \
11778     lt_cv_prog_compiler_c_o \
11779     fix_srcfile_path \
11780     exclude_expsyms \
11781     include_expsyms; do
11782
11783     case $var in
11784     old_archive_cmds | \
11785     old_archive_from_new_cmds | \
11786     archive_cmds | \
11787     archive_expsym_cmds | \
11788     module_cmds | \
11789     module_expsym_cmds | \
11790     old_archive_from_expsyms_cmds | \
11791     export_symbols_cmds | \
11792     extract_expsyms_cmds | reload_cmds | finish_cmds | \
11793     postinstall_cmds | postuninstall_cmds | \
11794     old_postinstall_cmds | old_postuninstall_cmds | \
11795     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
11796       # Double-quote double-evaled strings.
11797       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
11798       ;;
11799     *)
11800       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
11801       ;;
11802     esac
11803   done
11804
11805   case $lt_echo in
11806   *'\$0 --fallback-echo"')
11807     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
11808     ;;
11809   esac
11810
11811 cfgfile="${ofile}T"
11812   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
11813   $rm -f "$cfgfile"
11814   { echo "$as_me:$LINENO: creating $ofile" >&5
11815 echo "$as_me: creating $ofile" >&6;}
11816
11817   cat <<__EOF__ >> "$cfgfile"
11818 #! $SHELL
11819
11820 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
11821 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
11822 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
11823 #
11824 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007
11825 # Free Software Foundation, Inc.
11826 #
11827 # This file is part of GNU Libtool:
11828 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
11829 #
11830 # This program is free software; you can redistribute it and/or modify
11831 # it under the terms of the GNU General Public License as published by
11832 # the Free Software Foundation; either version 2 of the License, or
11833 # (at your option) any later version.
11834 #
11835 # This program is distributed in the hope that it will be useful, but
11836 # WITHOUT ANY WARRANTY; without even the implied warranty of
11837 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
11838 # General Public License for more details.
11839 #
11840 # You should have received a copy of the GNU General Public License
11841 # along with this program; if not, write to the Free Software
11842 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
11843 #
11844 # As a special exception to the GNU General Public License, if you
11845 # distribute this file as part of a program that contains a
11846 # configuration script generated by Autoconf, you may include it under
11847 # the same distribution terms that you use for the rest of that program.
11848
11849 # A sed program that does not truncate output.
11850 SED=$lt_SED
11851
11852 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
11853 Xsed="$SED -e 1s/^X//"
11854
11855 # The HP-UX ksh and POSIX shell print the target directory to stdout
11856 # if CDPATH is set.
11857 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11858
11859 # The names of the tagged configurations supported by this script.
11860 available_tags=
11861
11862 # ### BEGIN LIBTOOL CONFIG
11863
11864 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
11865
11866 # Shell to use when invoking shell scripts.
11867 SHELL=$lt_SHELL
11868
11869 # Whether or not to build shared libraries.
11870 build_libtool_libs=$enable_shared
11871
11872 # Whether or not to build static libraries.
11873 build_old_libs=$enable_static
11874
11875 # Whether or not to add -lc for building shared libraries.
11876 build_libtool_need_lc=$archive_cmds_need_lc
11877
11878 # Whether or not to disallow shared libs when runtime libs are static
11879 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
11880
11881 # Whether or not to optimize for fast installation.
11882 fast_install=$enable_fast_install
11883
11884 # The host system.
11885 host_alias=$host_alias
11886 host=$host
11887 host_os=$host_os
11888
11889 # The build system.
11890 build_alias=$build_alias
11891 build=$build
11892 build_os=$build_os
11893
11894 # An echo program that does not interpret backslashes.
11895 echo=$lt_echo
11896
11897 # The archiver.
11898 AR=$lt_AR
11899 AR_FLAGS=$lt_AR_FLAGS
11900
11901 # A C compiler.
11902 LTCC=$lt_LTCC
11903
11904 # LTCC compiler flags.
11905 LTCFLAGS=$lt_LTCFLAGS
11906
11907 # A language-specific compiler.
11908 CC=$lt_compiler
11909
11910 # Is the compiler the GNU C compiler?
11911 with_gcc=$GCC
11912
11913 # An ERE matcher.
11914 EGREP=$lt_EGREP
11915
11916 # The linker used to build libraries.
11917 LD=$lt_LD
11918
11919 # Whether we need hard or soft links.
11920 LN_S=$lt_LN_S
11921
11922 # A BSD-compatible nm program.
11923 NM=$lt_NM
11924
11925 # A symbol stripping program
11926 STRIP=$lt_STRIP
11927
11928 # Used to examine libraries when file_magic_cmd begins "file"
11929 MAGIC_CMD=$MAGIC_CMD
11930
11931 # Used on cygwin: DLL creation program.
11932 DLLTOOL="$DLLTOOL"
11933
11934 # Used on cygwin: object dumper.
11935 OBJDUMP="$OBJDUMP"
11936
11937 # Used on cygwin: assembler.
11938 AS="$AS"
11939
11940 # The name of the directory that contains temporary libtool files.
11941 objdir=$objdir
11942
11943 # How to create reloadable object files.
11944 reload_flag=$lt_reload_flag
11945 reload_cmds=$lt_reload_cmds
11946
11947 # How to pass a linker flag through the compiler.
11948 wl=$lt_lt_prog_compiler_wl
11949
11950 # Object file suffix (normally "o").
11951 objext="$ac_objext"
11952
11953 # Old archive suffix (normally "a").
11954 libext="$libext"
11955
11956 # Shared library suffix (normally ".so").
11957 shrext_cmds='$shrext_cmds'
11958
11959 # Executable file suffix (normally "").
11960 exeext="$exeext"
11961
11962 # Additional compiler flags for building library objects.
11963 pic_flag=$lt_lt_prog_compiler_pic
11964 pic_mode=$pic_mode
11965
11966 # What is the maximum length of a command?
11967 max_cmd_len=$lt_cv_sys_max_cmd_len
11968
11969 # Does compiler simultaneously support -c and -o options?
11970 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
11971
11972 # Must we lock files when doing compilation?
11973 need_locks=$lt_need_locks
11974
11975 # Do we need the lib prefix for modules?
11976 need_lib_prefix=$need_lib_prefix
11977
11978 # Do we need a version for libraries?
11979 need_version=$need_version
11980
11981 # Whether dlopen is supported.
11982 dlopen_support=$enable_dlopen
11983
11984 # Whether dlopen of programs is supported.
11985 dlopen_self=$enable_dlopen_self
11986
11987 # Whether dlopen of statically linked programs is supported.
11988 dlopen_self_static=$enable_dlopen_self_static
11989
11990 # Compiler flag to prevent dynamic linking.
11991 link_static_flag=$lt_lt_prog_compiler_static
11992
11993 # Compiler flag to turn off builtin functions.
11994 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
11995
11996 # Compiler flag to allow reflexive dlopens.
11997 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
11998
11999 # Compiler flag to generate shared objects directly from archives.
12000 whole_archive_flag_spec=$lt_whole_archive_flag_spec
12001
12002 # Compiler flag to generate thread-safe objects.
12003 thread_safe_flag_spec=$lt_thread_safe_flag_spec
12004
12005 # Library versioning type.
12006 version_type=$version_type
12007
12008 # Format of library name prefix.
12009 libname_spec=$lt_libname_spec
12010
12011 # List of archive names.  First name is the real one, the rest are links.
12012 # The last name is the one that the linker finds with -lNAME.
12013 library_names_spec=$lt_library_names_spec
12014
12015 # The coded name of the library, if different from the real name.
12016 soname_spec=$lt_soname_spec
12017
12018 # Commands used to build and install an old-style archive.
12019 RANLIB=$lt_RANLIB
12020 old_archive_cmds=$lt_old_archive_cmds
12021 old_postinstall_cmds=$lt_old_postinstall_cmds
12022 old_postuninstall_cmds=$lt_old_postuninstall_cmds
12023
12024 # Create an old-style archive from a shared archive.
12025 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
12026
12027 # Create a temporary old-style archive to link instead of a shared archive.
12028 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
12029
12030 # Commands used to build and install a shared archive.
12031 archive_cmds=$lt_archive_cmds
12032 archive_expsym_cmds=$lt_archive_expsym_cmds
12033 postinstall_cmds=$lt_postinstall_cmds
12034 postuninstall_cmds=$lt_postuninstall_cmds
12035
12036 # Commands used to build a loadable module (assumed same as above if empty)
12037 module_cmds=$lt_module_cmds
12038 module_expsym_cmds=$lt_module_expsym_cmds
12039
12040 # Commands to strip libraries.
12041 old_striplib=$lt_old_striplib
12042 striplib=$lt_striplib
12043
12044 # Dependencies to place before the objects being linked to create a
12045 # shared library.
12046 predep_objects=$lt_predep_objects
12047
12048 # Dependencies to place after the objects being linked to create a
12049 # shared library.
12050 postdep_objects=$lt_postdep_objects
12051
12052 # Dependencies to place before the objects being linked to create a
12053 # shared library.
12054 predeps=$lt_predeps
12055
12056 # Dependencies to place after the objects being linked to create a
12057 # shared library.
12058 postdeps=$lt_postdeps
12059
12060 # The library search path used internally by the compiler when linking
12061 # a shared library.
12062 compiler_lib_search_path=$lt_compiler_lib_search_path
12063
12064 # Method to check whether dependent libraries are shared objects.
12065 deplibs_check_method=$lt_deplibs_check_method
12066
12067 # Command to use when deplibs_check_method == file_magic.
12068 file_magic_cmd=$lt_file_magic_cmd
12069
12070 # Flag that allows shared libraries with undefined symbols to be built.
12071 allow_undefined_flag=$lt_allow_undefined_flag
12072
12073 # Flag that forces no undefined symbols.
12074 no_undefined_flag=$lt_no_undefined_flag
12075
12076 # Commands used to finish a libtool library installation in a directory.
12077 finish_cmds=$lt_finish_cmds
12078
12079 # Same as above, but a single script fragment to be evaled but not shown.
12080 finish_eval=$lt_finish_eval
12081
12082 # Take the output of nm and produce a listing of raw symbols and C names.
12083 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12084
12085 # Transform the output of nm in a proper C declaration
12086 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12087
12088 # Transform the output of nm in a C name address pair
12089 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12090
12091 # This is the shared library runtime path variable.
12092 runpath_var=$runpath_var
12093
12094 # This is the shared library path variable.
12095 shlibpath_var=$shlibpath_var
12096
12097 # Is shlibpath searched before the hard-coded library search path?
12098 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12099
12100 # How to hardcode a shared library path into an executable.
12101 hardcode_action=$hardcode_action
12102
12103 # Whether we should hardcode library paths into libraries.
12104 hardcode_into_libs=$hardcode_into_libs
12105
12106 # Flag to hardcode \$libdir into a binary during linking.
12107 # This must work even if \$libdir does not exist.
12108 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
12109
12110 # If ld is used when linking, flag to hardcode \$libdir into
12111 # a binary during linking. This must work even if \$libdir does
12112 # not exist.
12113 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
12114
12115 # Whether we need a single -rpath flag with a separated argument.
12116 hardcode_libdir_separator=$lt_hardcode_libdir_separator
12117
12118 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
12119 # resulting binary.
12120 hardcode_direct=$hardcode_direct
12121
12122 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
12123 # resulting binary.
12124 hardcode_minus_L=$hardcode_minus_L
12125
12126 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
12127 # the resulting binary.
12128 hardcode_shlibpath_var=$hardcode_shlibpath_var
12129
12130 # Set to yes if building a shared library automatically hardcodes DIR into the library
12131 # and all subsequent libraries and executables linked against it.
12132 hardcode_automatic=$hardcode_automatic
12133
12134 # Variables whose values should be saved in libtool wrapper scripts and
12135 # restored at relink time.
12136 variables_saved_for_relink="$variables_saved_for_relink"
12137
12138 # Whether libtool must link a program against all its dependency libraries.
12139 link_all_deplibs=$link_all_deplibs
12140
12141 # Compile-time system search path for libraries
12142 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12143
12144 # Run-time system search path for libraries
12145 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12146
12147 # Fix the shell variable \$srcfile for the compiler.
12148 fix_srcfile_path=$lt_fix_srcfile_path
12149
12150 # Set to yes if exported symbols are required.
12151 always_export_symbols=$always_export_symbols
12152
12153 # The commands to list exported symbols.
12154 export_symbols_cmds=$lt_export_symbols_cmds
12155
12156 # The commands to extract the exported symbol list from a shared archive.
12157 extract_expsyms_cmds=$lt_extract_expsyms_cmds
12158
12159 # Symbols that should not be listed in the preloaded symbols.
12160 exclude_expsyms=$lt_exclude_expsyms
12161
12162 # Symbols that must always be exported.
12163 include_expsyms=$lt_include_expsyms
12164
12165 # ### END LIBTOOL CONFIG
12166
12167 __EOF__
12168
12169
12170   case $host_os in
12171   aix3*)
12172     cat <<\EOF >> "$cfgfile"
12173
12174 # AIX sometimes has problems with the GCC collect2 program.  For some
12175 # reason, if we set the COLLECT_NAMES environment variable, the problems
12176 # vanish in a puff of smoke.
12177 if test "X${COLLECT_NAMES+set}" != Xset; then
12178   COLLECT_NAMES=
12179   export COLLECT_NAMES
12180 fi
12181 EOF
12182     ;;
12183   esac
12184
12185   # We use sed instead of cat because bash on DJGPP gets confused if
12186   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
12187   # text mode, it properly converts lines to CR/LF.  This bash problem
12188   # is reportedly fixed, but why not run on old versions too?
12189   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
12190
12191   mv -f "$cfgfile" "$ofile" || \
12192     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
12193   chmod +x "$ofile"
12194
12195 else
12196   # If there is no Makefile yet, we rely on a make rule to execute
12197   # `config.status --recheck' to rerun these tests and create the
12198   # libtool script then.
12199   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
12200   if test -f "$ltmain_in"; then
12201     test -f Makefile && make "$ltmain"
12202   fi
12203 fi
12204
12205
12206 ac_ext=c
12207 ac_cpp='$CPP $CPPFLAGS'
12208 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12209 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12210 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12211
12212 CC="$lt_save_CC"
12213
12214
12215 # Check whether --with-tags was given.
12216 if test "${with_tags+set}" = set; then
12217   withval=$with_tags; tagnames="$withval"
12218 fi
12219
12220
12221 if test -f "$ltmain" && test -n "$tagnames"; then
12222   if test ! -f "${ofile}"; then
12223     { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
12224 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
12225   fi
12226
12227   if test -z "$LTCC"; then
12228     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
12229     if test -z "$LTCC"; then
12230       { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
12231 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
12232     else
12233       { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
12234 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
12235     fi
12236   fi
12237   if test -z "$LTCFLAGS"; then
12238     eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
12239   fi
12240
12241   # Extract list of available tagged configurations in $ofile.
12242   # Note that this assumes the entire list is on one line.
12243   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
12244
12245   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12246   for tagname in $tagnames; do
12247     IFS="$lt_save_ifs"
12248     # Check whether tagname contains only valid characters
12249     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
12250     "") ;;
12251     *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
12252 echo "$as_me: error: invalid tag name: $tagname" >&2;}
12253    { (exit 1); exit 1; }; }
12254         ;;
12255     esac
12256
12257     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
12258     then
12259       { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
12260 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
12261    { (exit 1); exit 1; }; }
12262     fi
12263
12264     # Update the list of available tags.
12265     if test -n "$tagname"; then
12266       echo appending configuration tag \"$tagname\" to $ofile
12267
12268       case $tagname in
12269       CXX)
12270         if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12271             ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12272             (test "X$CXX" != "Xg++"))) ; then
12273           ac_ext=cpp
12274 ac_cpp='$CXXCPP $CPPFLAGS'
12275 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12276 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12277 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12278
12279
12280
12281
12282 archive_cmds_need_lc_CXX=no
12283 allow_undefined_flag_CXX=
12284 always_export_symbols_CXX=no
12285 archive_expsym_cmds_CXX=
12286 export_dynamic_flag_spec_CXX=
12287 hardcode_direct_CXX=no
12288 hardcode_libdir_flag_spec_CXX=
12289 hardcode_libdir_flag_spec_ld_CXX=
12290 hardcode_libdir_separator_CXX=
12291 hardcode_minus_L_CXX=no
12292 hardcode_shlibpath_var_CXX=unsupported
12293 hardcode_automatic_CXX=no
12294 module_cmds_CXX=
12295 module_expsym_cmds_CXX=
12296 link_all_deplibs_CXX=unknown
12297 old_archive_cmds_CXX=$old_archive_cmds
12298 no_undefined_flag_CXX=
12299 whole_archive_flag_spec_CXX=
12300 enable_shared_with_static_runtimes_CXX=no
12301
12302 # Dependencies to place before and after the object being linked:
12303 predep_objects_CXX=
12304 postdep_objects_CXX=
12305 predeps_CXX=
12306 postdeps_CXX=
12307 compiler_lib_search_path_CXX=
12308
12309 # Source file extension for C++ test sources.
12310 ac_ext=cpp
12311
12312 # Object file extension for compiled C++ test sources.
12313 objext=o
12314 objext_CXX=$objext
12315
12316 # Code to be used in simple compile tests
12317 lt_simple_compile_test_code="int some_variable = 0;"
12318
12319 # Code to be used in simple link tests
12320 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12321
12322 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12323
12324 # If no C compiler was specified, use CC.
12325 LTCC=${LTCC-"$CC"}
12326
12327 # If no C compiler flags were specified, use CFLAGS.
12328 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12329
12330 # Allow CC to be a program name with arguments.
12331 compiler=$CC
12332
12333
12334 # save warnings/boilerplate of simple test code
12335 ac_outfile=conftest.$ac_objext
12336 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12337 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12338 _lt_compiler_boilerplate=`cat conftest.err`
12339 $rm conftest*
12340
12341 ac_outfile=conftest.$ac_objext
12342 echo "$lt_simple_link_test_code" >conftest.$ac_ext
12343 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12344 _lt_linker_boilerplate=`cat conftest.err`
12345 $rm conftest*
12346
12347
12348 # Allow CC to be a program name with arguments.
12349 lt_save_CC=$CC
12350 lt_save_LD=$LD
12351 lt_save_GCC=$GCC
12352 GCC=$GXX
12353 lt_save_with_gnu_ld=$with_gnu_ld
12354 lt_save_path_LD=$lt_cv_path_LD
12355 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12356   lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12357 else
12358   $as_unset lt_cv_prog_gnu_ld
12359 fi
12360 if test -n "${lt_cv_path_LDCXX+set}"; then
12361   lt_cv_path_LD=$lt_cv_path_LDCXX
12362 else
12363   $as_unset lt_cv_path_LD
12364 fi
12365 test -z "${LDCXX+set}" || LD=$LDCXX
12366 CC=${CXX-"c++"}
12367 compiler=$CC
12368 compiler_CXX=$CC
12369 for cc_temp in $compiler""; do
12370   case $cc_temp in
12371     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12372     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12373     \-*) ;;
12374     *) break;;
12375   esac
12376 done
12377 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
12378
12379
12380 # We don't want -fno-exception wen compiling C++ code, so set the
12381 # no_builtin_flag separately
12382 if test "$GXX" = yes; then
12383   lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12384 else
12385   lt_prog_compiler_no_builtin_flag_CXX=
12386 fi
12387
12388 if test "$GXX" = yes; then
12389   # Set up default GNU C++ configuration
12390
12391
12392 # Check whether --with-gnu-ld was given.
12393 if test "${with_gnu_ld+set}" = set; then
12394   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12395 else
12396   with_gnu_ld=no
12397 fi
12398
12399 ac_prog=ld
12400 if test "$GCC" = yes; then
12401   # Check if gcc -print-prog-name=ld gives a path.
12402   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
12403 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
12404   case $host in
12405   *-*-mingw*)
12406     # gcc leaves a trailing carriage return which upsets mingw
12407     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12408   *)
12409     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12410   esac
12411   case $ac_prog in
12412     # Accept absolute paths.
12413     [\\/]* | ?:[\\/]*)
12414       re_direlt='/[^/][^/]*/\.\./'
12415       # Canonicalize the pathname of ld
12416       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
12417       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
12418         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
12419       done
12420       test -z "$LD" && LD="$ac_prog"
12421       ;;
12422   "")
12423     # If it fails, then pretend we aren't using GCC.
12424     ac_prog=ld
12425     ;;
12426   *)
12427     # If it is relative, then search for the first ld in PATH.
12428     with_gnu_ld=unknown
12429     ;;
12430   esac
12431 elif test "$with_gnu_ld" = yes; then
12432   { echo "$as_me:$LINENO: checking for GNU ld" >&5
12433 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
12434 else
12435   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
12436 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
12437 fi
12438 if test "${lt_cv_path_LD+set}" = set; then
12439   echo $ECHO_N "(cached) $ECHO_C" >&6
12440 else
12441   if test -z "$LD"; then
12442   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12443   for ac_dir in $PATH; do
12444     IFS="$lt_save_ifs"
12445     test -z "$ac_dir" && ac_dir=.
12446     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12447       lt_cv_path_LD="$ac_dir/$ac_prog"
12448       # Check to see if the program is GNU ld.  I'd rather use --version,
12449       # but apparently some variants of GNU ld only accept -v.
12450       # Break only if it was the GNU/non-GNU ld that we prefer.
12451       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12452       *GNU* | *'with BFD'*)
12453         test "$with_gnu_ld" != no && break
12454         ;;
12455       *)
12456         test "$with_gnu_ld" != yes && break
12457         ;;
12458       esac
12459     fi
12460   done
12461   IFS="$lt_save_ifs"
12462 else
12463   lt_cv_path_LD="$LD" # Let the user override the test with a path.
12464 fi
12465 fi
12466
12467 LD="$lt_cv_path_LD"
12468 if test -n "$LD"; then
12469   { echo "$as_me:$LINENO: result: $LD" >&5
12470 echo "${ECHO_T}$LD" >&6; }
12471 else
12472   { echo "$as_me:$LINENO: result: no" >&5
12473 echo "${ECHO_T}no" >&6; }
12474 fi
12475 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
12476 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
12477    { (exit 1); exit 1; }; }
12478 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
12479 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
12480 if test "${lt_cv_prog_gnu_ld+set}" = set; then
12481   echo $ECHO_N "(cached) $ECHO_C" >&6
12482 else
12483   # I'd rather use --version here, but apparently some GNU lds only accept -v.
12484 case `$LD -v 2>&1 </dev/null` in
12485 *GNU* | *'with BFD'*)
12486   lt_cv_prog_gnu_ld=yes
12487   ;;
12488 *)
12489   lt_cv_prog_gnu_ld=no
12490   ;;
12491 esac
12492 fi
12493 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
12494 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
12495 with_gnu_ld=$lt_cv_prog_gnu_ld
12496
12497
12498
12499   # Check if GNU C++ uses GNU ld as the underlying linker, since the
12500   # archiving commands below assume that GNU ld is being used.
12501   if test "$with_gnu_ld" = yes; then
12502     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12503     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'
12504
12505     hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12506     export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12507
12508     # If archive_cmds runs LD, not CC, wlarc should be empty
12509     # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12510     #     investigate it a little bit more. (MM)
12511     wlarc='${wl}'
12512
12513     # ancient GNU ld didn't support --whole-archive et. al.
12514     if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
12515         grep 'no-whole-archive' > /dev/null; then
12516       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12517     else
12518       whole_archive_flag_spec_CXX=
12519     fi
12520   else
12521     with_gnu_ld=no
12522     wlarc=
12523
12524     # A generic and very simple default shared library creation
12525     # command for GNU C++ for the case where it uses the native
12526     # linker, instead of GNU ld.  If possible, this setting should
12527     # overridden to take advantage of the native linker features on
12528     # the platform it is being used on.
12529     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12530   fi
12531
12532   # Commands to make compiler produce verbose output that lists
12533   # what "hidden" libraries, object files and flags are used when
12534   # linking a shared library.
12535   output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12536
12537 else
12538   GXX=no
12539   with_gnu_ld=no
12540   wlarc=
12541 fi
12542
12543 # PORTME: fill in a description of your system's C++ link characteristics
12544 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12545 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
12546 ld_shlibs_CXX=yes
12547 case $host_os in
12548   aix3*)
12549     # FIXME: insert proper C++ library support
12550     ld_shlibs_CXX=no
12551     ;;
12552   aix4* | aix5*)
12553     if test "$host_cpu" = ia64; then
12554       # On IA64, the linker does run time linking by default, so we don't
12555       # have to do anything special.
12556       aix_use_runtimelinking=no
12557       exp_sym_flag='-Bexport'
12558       no_entry_flag=""
12559     else
12560       aix_use_runtimelinking=no
12561
12562       # Test if we are trying to use run time linking or normal
12563       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12564       # need to do runtime linking.
12565       case $host_os in aix4.[23]|aix4.[23].*|aix5*)
12566         for ld_flag in $LDFLAGS; do
12567           case $ld_flag in
12568           *-brtl*)
12569             aix_use_runtimelinking=yes
12570             break
12571             ;;
12572           esac
12573         done
12574         ;;
12575       esac
12576
12577       exp_sym_flag='-bexport'
12578       no_entry_flag='-bnoentry'
12579     fi
12580
12581     # When large executables or shared objects are built, AIX ld can
12582     # have problems creating the table of contents.  If linking a library
12583     # or program results in "error TOC overflow" add -mminimal-toc to
12584     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
12585     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12586
12587     archive_cmds_CXX=''
12588     hardcode_direct_CXX=yes
12589     hardcode_libdir_separator_CXX=':'
12590     link_all_deplibs_CXX=yes
12591
12592     if test "$GXX" = yes; then
12593       case $host_os in aix4.[012]|aix4.[012].*)
12594       # We only want to do this on AIX 4.2 and lower, the check
12595       # below for broken collect2 doesn't work under 4.3+
12596         collect2name=`${CC} -print-prog-name=collect2`
12597         if test -f "$collect2name" && \
12598            strings "$collect2name" | grep resolve_lib_name >/dev/null
12599         then
12600           # We have reworked collect2
12601           :
12602         else
12603           # We have old collect2
12604           hardcode_direct_CXX=unsupported
12605           # It fails to find uninstalled libraries when the uninstalled
12606           # path is not listed in the libpath.  Setting hardcode_minus_L
12607           # to unsupported forces relinking
12608           hardcode_minus_L_CXX=yes
12609           hardcode_libdir_flag_spec_CXX='-L$libdir'
12610           hardcode_libdir_separator_CXX=
12611         fi
12612         ;;
12613       esac
12614       shared_flag='-shared'
12615       if test "$aix_use_runtimelinking" = yes; then
12616         shared_flag="$shared_flag "'${wl}-G'
12617       fi
12618     else
12619       # not using gcc
12620       if test "$host_cpu" = ia64; then
12621         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12622         # chokes on -Wl,-G. The following line is correct:
12623         shared_flag='-G'
12624       else
12625         if test "$aix_use_runtimelinking" = yes; then
12626           shared_flag='${wl}-G'
12627         else
12628           shared_flag='${wl}-bM:SRE'
12629         fi
12630       fi
12631     fi
12632
12633     # It seems that -bexpall does not export symbols beginning with
12634     # underscore (_), so it is better to generate a list of symbols to export.
12635     always_export_symbols_CXX=yes
12636     if test "$aix_use_runtimelinking" = yes; then
12637       # Warning - without using the other runtime loading flags (-brtl),
12638       # -berok will link without error, but may produce a broken library.
12639       allow_undefined_flag_CXX='-berok'
12640       # Determine the default libpath from the value encoded in an empty executable.
12641       cat >conftest.$ac_ext <<_ACEOF
12642 /* confdefs.h.  */
12643 _ACEOF
12644 cat confdefs.h >>conftest.$ac_ext
12645 cat >>conftest.$ac_ext <<_ACEOF
12646 /* end confdefs.h.  */
12647
12648 int
12649 main ()
12650 {
12651
12652   ;
12653   return 0;
12654 }
12655 _ACEOF
12656 rm -f conftest.$ac_objext conftest$ac_exeext
12657 if { (ac_try="$ac_link"
12658 case "(($ac_try" in
12659   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12660   *) ac_try_echo=$ac_try;;
12661 esac
12662 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12663   (eval "$ac_link") 2>conftest.er1
12664   ac_status=$?
12665   grep -v '^ *+' conftest.er1 >conftest.err
12666   rm -f conftest.er1
12667   cat conftest.err >&5
12668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12669   (exit $ac_status); } && {
12670          test -z "$ac_cxx_werror_flag" ||
12671          test ! -s conftest.err
12672        } && test -s conftest$ac_exeext &&
12673        $as_test_x conftest$ac_exeext; then
12674
12675 lt_aix_libpath_sed='
12676     /Import File Strings/,/^$/ {
12677         /^0/ {
12678             s/^0  *\(.*\)$/\1/
12679             p
12680         }
12681     }'
12682 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12683 # Check for a 64-bit object if we didn't find anything.
12684 if test -z "$aix_libpath"; then
12685   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12686 fi
12687 else
12688   echo "$as_me: failed program was:" >&5
12689 sed 's/^/| /' conftest.$ac_ext >&5
12690
12691
12692 fi
12693
12694 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12695       conftest$ac_exeext conftest.$ac_ext
12696 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12697
12698       hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12699
12700       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"
12701      else
12702       if test "$host_cpu" = ia64; then
12703         hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12704         allow_undefined_flag_CXX="-z nodefs"
12705         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"
12706       else
12707         # Determine the default libpath from the value encoded in an empty executable.
12708         cat >conftest.$ac_ext <<_ACEOF
12709 /* confdefs.h.  */
12710 _ACEOF
12711 cat confdefs.h >>conftest.$ac_ext
12712 cat >>conftest.$ac_ext <<_ACEOF
12713 /* end confdefs.h.  */
12714
12715 int
12716 main ()
12717 {
12718
12719   ;
12720   return 0;
12721 }
12722 _ACEOF
12723 rm -f conftest.$ac_objext conftest$ac_exeext
12724 if { (ac_try="$ac_link"
12725 case "(($ac_try" in
12726   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12727   *) ac_try_echo=$ac_try;;
12728 esac
12729 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12730   (eval "$ac_link") 2>conftest.er1
12731   ac_status=$?
12732   grep -v '^ *+' conftest.er1 >conftest.err
12733   rm -f conftest.er1
12734   cat conftest.err >&5
12735   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12736   (exit $ac_status); } && {
12737          test -z "$ac_cxx_werror_flag" ||
12738          test ! -s conftest.err
12739        } && test -s conftest$ac_exeext &&
12740        $as_test_x conftest$ac_exeext; then
12741
12742 lt_aix_libpath_sed='
12743     /Import File Strings/,/^$/ {
12744         /^0/ {
12745             s/^0  *\(.*\)$/\1/
12746             p
12747         }
12748     }'
12749 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12750 # Check for a 64-bit object if we didn't find anything.
12751 if test -z "$aix_libpath"; then
12752   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12753 fi
12754 else
12755   echo "$as_me: failed program was:" >&5
12756 sed 's/^/| /' conftest.$ac_ext >&5
12757
12758
12759 fi
12760
12761 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12762       conftest$ac_exeext conftest.$ac_ext
12763 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12764
12765         hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12766         # Warning - without using the other run time loading flags,
12767         # -berok will link without error, but may produce a broken library.
12768         no_undefined_flag_CXX=' ${wl}-bernotok'
12769         allow_undefined_flag_CXX=' ${wl}-berok'
12770         # Exported symbols can be pulled into shared objects from archives
12771         whole_archive_flag_spec_CXX='$convenience'
12772         archive_cmds_need_lc_CXX=yes
12773         # This is similar to how AIX traditionally builds its shared libraries.
12774         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'
12775       fi
12776     fi
12777     ;;
12778
12779   beos*)
12780     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12781       allow_undefined_flag_CXX=unsupported
12782       # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12783       # support --undefined.  This deserves some investigation.  FIXME
12784       archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12785     else
12786       ld_shlibs_CXX=no
12787     fi
12788     ;;
12789
12790   chorus*)
12791     case $cc_basename in
12792       *)
12793         # FIXME: insert proper C++ library support
12794         ld_shlibs_CXX=no
12795         ;;
12796     esac
12797     ;;
12798
12799   cygwin* | mingw* | pw32*)
12800     # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12801     # as there is no search path for DLLs.
12802     hardcode_libdir_flag_spec_CXX='-L$libdir'
12803     allow_undefined_flag_CXX=unsupported
12804     always_export_symbols_CXX=no
12805     enable_shared_with_static_runtimes_CXX=yes
12806
12807     if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
12808       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'
12809       # If the export-symbols file already is a .def file (1st line
12810       # is EXPORTS), use it as is; otherwise, prepend...
12811       archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12812         cp $export_symbols $output_objdir/$soname.def;
12813       else
12814         echo EXPORTS > $output_objdir/$soname.def;
12815         cat $export_symbols >> $output_objdir/$soname.def;
12816       fi~
12817       $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'
12818     else
12819       ld_shlibs_CXX=no
12820     fi
12821   ;;
12822       darwin* | rhapsody*)
12823         case $host_os in
12824         rhapsody* | darwin1.[012])
12825          allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
12826          ;;
12827        *) # Darwin 1.3 on
12828          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
12829            allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
12830          else
12831            case ${MACOSX_DEPLOYMENT_TARGET} in
12832              10.[012])
12833                allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
12834                ;;
12835              10.*)
12836                allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
12837                ;;
12838            esac
12839          fi
12840          ;;
12841         esac
12842       archive_cmds_need_lc_CXX=no
12843       hardcode_direct_CXX=no
12844       hardcode_automatic_CXX=yes
12845       hardcode_shlibpath_var_CXX=unsupported
12846       whole_archive_flag_spec_CXX=''
12847       link_all_deplibs_CXX=yes
12848
12849     if test "$GXX" = yes ; then
12850       lt_int_apple_cc_single_mod=no
12851       output_verbose_link_cmd='echo'
12852       if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
12853        lt_int_apple_cc_single_mod=yes
12854       fi
12855       if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
12856        archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
12857       else
12858           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'
12859         fi
12860         module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12861         # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
12862           if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
12863             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}'
12864           else
12865             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}'
12866           fi
12867             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}'
12868       else
12869       case $cc_basename in
12870         xlc*)
12871          output_verbose_link_cmd='echo'
12872           archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
12873           module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12874           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
12875           archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
12876           module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
12877           ;;
12878        *)
12879          ld_shlibs_CXX=no
12880           ;;
12881       esac
12882       fi
12883         ;;
12884
12885   dgux*)
12886     case $cc_basename in
12887       ec++*)
12888         # FIXME: insert proper C++ library support
12889         ld_shlibs_CXX=no
12890         ;;
12891       ghcx*)
12892         # Green Hills C++ Compiler
12893         # FIXME: insert proper C++ library support
12894         ld_shlibs_CXX=no
12895         ;;
12896       *)
12897         # FIXME: insert proper C++ library support
12898         ld_shlibs_CXX=no
12899         ;;
12900     esac
12901     ;;
12902   freebsd[12]*)
12903     # C++ shared libraries reported to be fairly broken before switch to ELF
12904     ld_shlibs_CXX=no
12905     ;;
12906   freebsd-elf*)
12907     archive_cmds_need_lc_CXX=no
12908     ;;
12909   freebsd* | dragonfly*)
12910     # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12911     # conventions
12912     ld_shlibs_CXX=yes
12913     ;;
12914   gnu*)
12915     ;;
12916   hpux9*)
12917     hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12918     hardcode_libdir_separator_CXX=:
12919     export_dynamic_flag_spec_CXX='${wl}-E'
12920     hardcode_direct_CXX=yes
12921     hardcode_minus_L_CXX=yes # Not in the search PATH,
12922                                 # but as the default
12923                                 # location of the library.
12924
12925     case $cc_basename in
12926     CC*)
12927       # FIXME: insert proper C++ library support
12928       ld_shlibs_CXX=no
12929       ;;
12930     aCC*)
12931       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'
12932       # Commands to make compiler produce verbose output that lists
12933       # what "hidden" libraries, object files and flags are used when
12934       # linking a shared library.
12935       #
12936       # There doesn't appear to be a way to prevent this compiler from
12937       # explicitly linking system object files so we need to strip them
12938       # from the output so that they don't get included in the library
12939       # dependencies.
12940       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'
12941       ;;
12942     *)
12943       if test "$GXX" = yes; then
12944         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'
12945       else
12946         # FIXME: insert proper C++ library support
12947         ld_shlibs_CXX=no
12948       fi
12949       ;;
12950     esac
12951     ;;
12952   hpux10*|hpux11*)
12953     if test $with_gnu_ld = no; then
12954       hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12955       hardcode_libdir_separator_CXX=:
12956
12957       case $host_cpu in
12958       hppa*64*|ia64*) ;;
12959       *)
12960         export_dynamic_flag_spec_CXX='${wl}-E'
12961         ;;
12962       esac
12963     fi
12964     case $host_cpu in
12965     hppa*64*|ia64*)
12966       hardcode_direct_CXX=no
12967       hardcode_shlibpath_var_CXX=no
12968       ;;
12969     *)
12970       hardcode_direct_CXX=yes
12971       hardcode_minus_L_CXX=yes # Not in the search PATH,
12972                                               # but as the default
12973                                               # location of the library.
12974       ;;
12975     esac
12976
12977     case $cc_basename in
12978       CC*)
12979         # FIXME: insert proper C++ library support
12980         ld_shlibs_CXX=no
12981         ;;
12982       aCC*)
12983         case $host_cpu in
12984         hppa*64*)
12985           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12986           ;;
12987         ia64*)
12988           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12989           ;;
12990         *)
12991           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12992           ;;
12993         esac
12994         # Commands to make compiler produce verbose output that lists
12995         # what "hidden" libraries, object files and flags are used when
12996         # linking a shared library.
12997         #
12998         # There doesn't appear to be a way to prevent this compiler from
12999         # explicitly linking system object files so we need to strip them
13000         # from the output so that they don't get included in the library
13001         # dependencies.
13002         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'
13003         ;;
13004       *)
13005         if test "$GXX" = yes; then
13006           if test $with_gnu_ld = no; then
13007             case $host_cpu in
13008             hppa*64*)
13009               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13010               ;;
13011             ia64*)
13012               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13013               ;;
13014             *)
13015               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'
13016               ;;
13017             esac
13018           fi
13019         else
13020           # FIXME: insert proper C++ library support
13021           ld_shlibs_CXX=no
13022         fi
13023         ;;
13024     esac
13025     ;;
13026   interix[3-9]*)
13027     hardcode_direct_CXX=no
13028     hardcode_shlibpath_var_CXX=no
13029     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13030     export_dynamic_flag_spec_CXX='${wl}-E'
13031     # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13032     # Instead, shared libraries are loaded at an image base (0x10000000 by
13033     # default) and relocated if they conflict, which is a slow very memory
13034     # consuming and fragmenting process.  To avoid this, we pick a random,
13035     # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13036     # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
13037     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'
13038     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'
13039     ;;
13040   irix5* | irix6*)
13041     case $cc_basename in
13042       CC*)
13043         # SGI C++
13044         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'
13045
13046         # Archives containing C++ object files must be created using
13047         # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
13048         # necessary to make sure instantiated templates are included
13049         # in the archive.
13050         old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13051         ;;
13052       *)
13053         if test "$GXX" = yes; then
13054           if test "$with_gnu_ld" = no; then
13055             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'
13056           else
13057             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'
13058           fi
13059         fi
13060         link_all_deplibs_CXX=yes
13061         ;;
13062     esac
13063     hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13064     hardcode_libdir_separator_CXX=:
13065     ;;
13066   linux* | k*bsd*-gnu)
13067     case $cc_basename in
13068       KCC*)
13069         # Kuck and Associates, Inc. (KAI) C++ Compiler
13070
13071         # KCC will only create a shared library if the output file
13072         # ends with ".so" (or ".sl" for HP-UX), so rename the library
13073         # to its proper name (with version) after linking.
13074         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'
13075         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'
13076         # Commands to make compiler produce verbose output that lists
13077         # what "hidden" libraries, object files and flags are used when
13078         # linking a shared library.
13079         #
13080         # There doesn't appear to be a way to prevent this compiler from
13081         # explicitly linking system object files so we need to strip them
13082         # from the output so that they don't get included in the library
13083         # dependencies.
13084         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'
13085
13086         hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
13087         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13088
13089         # Archives containing C++ object files must be created using
13090         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13091         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13092         ;;
13093       icpc*)
13094         # Intel C++
13095         with_gnu_ld=yes
13096         # version 8.0 and above of icpc choke on multiply defined symbols
13097         # if we add $predep_objects and $postdep_objects, however 7.1 and
13098         # earlier do not add the objects themselves.
13099         case `$CC -V 2>&1` in
13100         *"Version 7."*)
13101           archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13102           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'
13103           ;;
13104         *)  # Version 8.0 or newer
13105           tmp_idyn=
13106           case $host_cpu in
13107             ia64*) tmp_idyn=' -i_dynamic';;
13108           esac
13109           archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13110           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'
13111           ;;
13112         esac
13113         archive_cmds_need_lc_CXX=no
13114         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13115         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13116         whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13117         ;;
13118       pgCC*)
13119         # Portland Group C++ compiler
13120         archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13121         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'
13122
13123         hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13124         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13125         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'
13126         ;;
13127       cxx*)
13128         # Compaq C++
13129         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13130         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'
13131
13132         runpath_var=LD_RUN_PATH
13133         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13134         hardcode_libdir_separator_CXX=:
13135
13136         # Commands to make compiler produce verbose output that lists
13137         # what "hidden" libraries, object files and flags are used when
13138         # linking a shared library.
13139         #
13140         # There doesn't appear to be a way to prevent this compiler from
13141         # explicitly linking system object files so we need to strip them
13142         # from the output so that they don't get included in the library
13143         # dependencies.
13144         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'
13145         ;;
13146       *)
13147         case `$CC -V 2>&1 | sed 5q` in
13148         *Sun\ C*)
13149           # Sun C++ 5.9
13150           no_undefined_flag_CXX=' -zdefs'
13151           archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13152           archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
13153           hardcode_libdir_flag_spec_CXX='-R$libdir'
13154           whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
13155
13156           # Not sure whether something based on
13157           # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13158           # would be better.
13159           output_verbose_link_cmd='echo'
13160
13161           # Archives containing C++ object files must be created using
13162           # "CC -xar", where "CC" is the Sun C++ compiler.  This is
13163           # necessary to make sure instantiated templates are included
13164           # in the archive.
13165           old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13166           ;;
13167         esac
13168         ;;
13169     esac
13170     ;;
13171   lynxos*)
13172     # FIXME: insert proper C++ library support
13173     ld_shlibs_CXX=no
13174     ;;
13175   m88k*)
13176     # FIXME: insert proper C++ library support
13177     ld_shlibs_CXX=no
13178     ;;
13179   mvs*)
13180     case $cc_basename in
13181       cxx*)
13182         # FIXME: insert proper C++ library support
13183         ld_shlibs_CXX=no
13184         ;;
13185       *)
13186         # FIXME: insert proper C++ library support
13187         ld_shlibs_CXX=no
13188         ;;
13189     esac
13190     ;;
13191   netbsd*)
13192     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13193       archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13194       wlarc=
13195       hardcode_libdir_flag_spec_CXX='-R$libdir'
13196       hardcode_direct_CXX=yes
13197       hardcode_shlibpath_var_CXX=no
13198     fi
13199     # Workaround some broken pre-1.5 toolchains
13200     output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13201     ;;
13202   openbsd2*)
13203     # C++ shared libraries are fairly broken
13204     ld_shlibs_CXX=no
13205     ;;
13206   openbsd*)
13207     if test -f /usr/libexec/ld.so; then
13208       hardcode_direct_CXX=yes
13209       hardcode_shlibpath_var_CXX=no
13210       archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13211       hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13212       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13213         archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13214         export_dynamic_flag_spec_CXX='${wl}-E'
13215         whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13216       fi
13217       output_verbose_link_cmd='echo'
13218     else
13219       ld_shlibs_CXX=no
13220     fi
13221     ;;
13222   osf3*)
13223     case $cc_basename in
13224       KCC*)
13225         # Kuck and Associates, Inc. (KAI) C++ Compiler
13226
13227         # KCC will only create a shared library if the output file
13228         # ends with ".so" (or ".sl" for HP-UX), so rename the library
13229         # to its proper name (with version) after linking.
13230         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'
13231
13232         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13233         hardcode_libdir_separator_CXX=:
13234
13235         # Archives containing C++ object files must be created using
13236         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13237         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13238
13239         ;;
13240       RCC*)
13241         # Rational C++ 2.4.1
13242         # FIXME: insert proper C++ library support
13243         ld_shlibs_CXX=no
13244         ;;
13245       cxx*)
13246         allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13247         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'
13248
13249         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13250         hardcode_libdir_separator_CXX=:
13251
13252         # Commands to make compiler produce verbose output that lists
13253         # what "hidden" libraries, object files and flags are used when
13254         # linking a shared library.
13255         #
13256         # There doesn't appear to be a way to prevent this compiler from
13257         # explicitly linking system object files so we need to strip them
13258         # from the output so that they don't get included in the library
13259         # dependencies.
13260         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'
13261         ;;
13262       *)
13263         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13264           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13265           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'
13266
13267           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13268           hardcode_libdir_separator_CXX=:
13269
13270           # Commands to make compiler produce verbose output that lists
13271           # what "hidden" libraries, object files and flags are used when
13272           # linking a shared library.
13273           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
13274
13275         else
13276           # FIXME: insert proper C++ library support
13277           ld_shlibs_CXX=no
13278         fi
13279         ;;
13280     esac
13281     ;;
13282   osf4* | osf5*)
13283     case $cc_basename in
13284       KCC*)
13285         # Kuck and Associates, Inc. (KAI) C++ Compiler
13286
13287         # KCC will only create a shared library if the output file
13288         # ends with ".so" (or ".sl" for HP-UX), so rename the library
13289         # to its proper name (with version) after linking.
13290         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'
13291
13292         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13293         hardcode_libdir_separator_CXX=:
13294
13295         # Archives containing C++ object files must be created using
13296         # the KAI C++ compiler.
13297         old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
13298         ;;
13299       RCC*)
13300         # Rational C++ 2.4.1
13301         # FIXME: insert proper C++ library support
13302         ld_shlibs_CXX=no
13303         ;;
13304       cxx*)
13305         allow_undefined_flag_CXX=' -expect_unresolved \*'
13306         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'
13307         archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13308           echo "-hidden">> $lib.exp~
13309           $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~
13310           $rm $lib.exp'
13311
13312         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13313         hardcode_libdir_separator_CXX=:
13314
13315         # Commands to make compiler produce verbose output that lists
13316         # what "hidden" libraries, object files and flags are used when
13317         # linking a shared library.
13318         #
13319         # There doesn't appear to be a way to prevent this compiler from
13320         # explicitly linking system object files so we need to strip them
13321         # from the output so that they don't get included in the library
13322         # dependencies.
13323         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'
13324         ;;
13325       *)
13326         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13327           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13328          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'
13329
13330           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13331           hardcode_libdir_separator_CXX=:
13332
13333           # Commands to make compiler produce verbose output that lists
13334           # what "hidden" libraries, object files and flags are used when
13335           # linking a shared library.
13336           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
13337
13338         else
13339           # FIXME: insert proper C++ library support
13340           ld_shlibs_CXX=no
13341         fi
13342         ;;
13343     esac
13344     ;;
13345   psos*)
13346     # FIXME: insert proper C++ library support
13347     ld_shlibs_CXX=no
13348     ;;
13349   sunos4*)
13350     case $cc_basename in
13351       CC*)
13352         # Sun C++ 4.x
13353         # FIXME: insert proper C++ library support
13354         ld_shlibs_CXX=no
13355         ;;
13356       lcc*)
13357         # Lucid
13358         # FIXME: insert proper C++ library support
13359         ld_shlibs_CXX=no
13360         ;;
13361       *)
13362         # FIXME: insert proper C++ library support
13363         ld_shlibs_CXX=no
13364         ;;
13365     esac
13366     ;;
13367   solaris*)
13368     case $cc_basename in
13369       CC*)
13370         # Sun C++ 4.2, 5.x and Centerline C++
13371         archive_cmds_need_lc_CXX=yes
13372         no_undefined_flag_CXX=' -zdefs'
13373         archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13374         archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13375         $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'
13376
13377         hardcode_libdir_flag_spec_CXX='-R$libdir'
13378         hardcode_shlibpath_var_CXX=no
13379         case $host_os in
13380           solaris2.[0-5] | solaris2.[0-5].*) ;;
13381           *)
13382             # The compiler driver will combine and reorder linker options,
13383             # but understands `-z linker_flag'.
13384             # Supported since Solaris 2.6 (maybe 2.5.1?)
13385             whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
13386             ;;
13387         esac
13388         link_all_deplibs_CXX=yes
13389
13390         output_verbose_link_cmd='echo'
13391
13392         # Archives containing C++ object files must be created using
13393         # "CC -xar", where "CC" is the Sun C++ compiler.  This is
13394         # necessary to make sure instantiated templates are included
13395         # in the archive.
13396         old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13397         ;;
13398       gcx*)
13399         # Green Hills C++ Compiler
13400         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13401
13402         # The C++ compiler must be used to create the archive.
13403         old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13404         ;;
13405       *)
13406         # GNU C++ compiler with Solaris linker
13407         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13408           no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13409           if $CC --version | grep -v '^2\.7' > /dev/null; then
13410             archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13411             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13412                 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
13413
13414             # Commands to make compiler produce verbose output that lists
13415             # what "hidden" libraries, object files and flags are used when
13416             # linking a shared library.
13417             output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
13418           else
13419             # g++ 2.7 appears to require `-G' NOT `-shared' on this
13420             # platform.
13421             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13422             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13423                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
13424
13425             # Commands to make compiler produce verbose output that lists
13426             # what "hidden" libraries, object files and flags are used when
13427             # linking a shared library.
13428             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
13429           fi
13430
13431           hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13432           case $host_os in
13433           solaris2.[0-5] | solaris2.[0-5].*) ;;
13434           *)
13435             whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13436             ;;
13437           esac
13438         fi
13439         ;;
13440     esac
13441     ;;
13442   sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13443     no_undefined_flag_CXX='${wl}-z,text'
13444     archive_cmds_need_lc_CXX=no
13445     hardcode_shlibpath_var_CXX=no
13446     runpath_var='LD_RUN_PATH'
13447
13448     case $cc_basename in
13449       CC*)
13450         archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13451         archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13452         ;;
13453       *)
13454         archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13455         archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13456         ;;
13457     esac
13458     ;;
13459   sysv5* | sco3.2v5* | sco5v6*)
13460     # Note: We can NOT use -z defs as we might desire, because we do not
13461     # link with -lc, and that would cause any symbols used from libc to
13462     # always be unresolved, which means just about no library would
13463     # ever link correctly.  If we're not using GNU ld we use -z text
13464     # though, which does catch some bad symbols but isn't as heavy-handed
13465     # as -z defs.
13466     # For security reasons, it is highly recommended that you always
13467     # use absolute paths for naming shared libraries, and exclude the
13468     # DT_RUNPATH tag from executables and libraries.  But doing so
13469     # requires that you compile everything twice, which is a pain.
13470     # So that behaviour is only enabled if SCOABSPATH is set to a
13471     # non-empty value in the environment.  Most likely only useful for
13472     # creating official distributions of packages.
13473     # This is a hack until libtool officially supports absolute path
13474     # names for shared libraries.
13475     no_undefined_flag_CXX='${wl}-z,text'
13476     allow_undefined_flag_CXX='${wl}-z,nodefs'
13477     archive_cmds_need_lc_CXX=no
13478     hardcode_shlibpath_var_CXX=no
13479     hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
13480     hardcode_libdir_separator_CXX=':'
13481     link_all_deplibs_CXX=yes
13482     export_dynamic_flag_spec_CXX='${wl}-Bexport'
13483     runpath_var='LD_RUN_PATH'
13484
13485     case $cc_basename in
13486       CC*)
13487         archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
13488         archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
13489         ;;
13490       *)
13491         archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
13492         archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
13493         ;;
13494     esac
13495     ;;
13496   tandem*)
13497     case $cc_basename in
13498       NCC*)
13499         # NonStop-UX NCC 3.20
13500         # FIXME: insert proper C++ library support
13501         ld_shlibs_CXX=no
13502         ;;
13503       *)
13504         # FIXME: insert proper C++ library support
13505         ld_shlibs_CXX=no
13506         ;;
13507     esac
13508     ;;
13509   vxworks*)
13510     # FIXME: insert proper C++ library support
13511     ld_shlibs_CXX=no
13512     ;;
13513   *)
13514     # FIXME: insert proper C++ library support
13515     ld_shlibs_CXX=no
13516     ;;
13517 esac
13518 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
13519 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
13520 test "$ld_shlibs_CXX" = no && can_build_shared=no
13521
13522 GCC_CXX="$GXX"
13523 LD_CXX="$LD"
13524
13525
13526 cat > conftest.$ac_ext <<EOF
13527 class Foo
13528 {
13529 public:
13530   Foo (void) { a = 0; }
13531 private:
13532   int a;
13533 };
13534 EOF
13535
13536 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13537   (eval $ac_compile) 2>&5
13538   ac_status=$?
13539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13540   (exit $ac_status); }; then
13541   # Parse the compiler output and extract the necessary
13542   # objects, libraries and library flags.
13543
13544   # Sentinel used to keep track of whether or not we are before
13545   # the conftest object file.
13546   pre_test_object_deps_done=no
13547
13548   # The `*' in the case matches for architectures that use `case' in
13549   # $output_verbose_cmd can trigger glob expansion during the loop
13550   # eval without this substitution.
13551   output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
13552
13553   for p in `eval $output_verbose_link_cmd`; do
13554     case $p in
13555
13556     -L* | -R* | -l*)
13557        # Some compilers place space between "-{L,R}" and the path.
13558        # Remove the space.
13559        if test $p = "-L" \
13560           || test $p = "-R"; then
13561          prev=$p
13562          continue
13563        else
13564          prev=
13565        fi
13566
13567        if test "$pre_test_object_deps_done" = no; then
13568          case $p in
13569          -L* | -R*)
13570            # Internal compiler library paths should come after those
13571            # provided the user.  The postdeps already come after the
13572            # user supplied libs so there is no need to process them.
13573            if test -z "$compiler_lib_search_path_CXX"; then
13574              compiler_lib_search_path_CXX="${prev}${p}"
13575            else
13576              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13577            fi
13578            ;;
13579          # The "-l" case would never come before the object being
13580          # linked, so don't bother handling this case.
13581          esac
13582        else
13583          if test -z "$postdeps_CXX"; then
13584            postdeps_CXX="${prev}${p}"
13585          else
13586            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13587          fi
13588        fi
13589        ;;
13590
13591     *.$objext)
13592        # This assumes that the test object file only shows up
13593        # once in the compiler output.
13594        if test "$p" = "conftest.$objext"; then
13595          pre_test_object_deps_done=yes
13596          continue
13597        fi
13598
13599        if test "$pre_test_object_deps_done" = no; then
13600          if test -z "$predep_objects_CXX"; then
13601            predep_objects_CXX="$p"
13602          else
13603            predep_objects_CXX="$predep_objects_CXX $p"
13604          fi
13605        else
13606          if test -z "$postdep_objects_CXX"; then
13607            postdep_objects_CXX="$p"
13608          else
13609            postdep_objects_CXX="$postdep_objects_CXX $p"
13610          fi
13611        fi
13612        ;;
13613
13614     *) ;; # Ignore the rest.
13615
13616     esac
13617   done
13618
13619   # Clean up.
13620   rm -f a.out a.exe
13621 else
13622   echo "libtool.m4: error: problem compiling CXX test program"
13623 fi
13624
13625 $rm -f confest.$objext
13626
13627 # PORTME: override above test on systems where it is broken
13628 case $host_os in
13629 interix[3-9]*)
13630   # Interix 3.5 installs completely hosed .la files for C++, so rather than
13631   # hack all around it, let's just trust "g++" to DTRT.
13632   predep_objects_CXX=
13633   postdep_objects_CXX=
13634   postdeps_CXX=
13635   ;;
13636
13637 linux*)
13638   case `$CC -V 2>&1 | sed 5q` in
13639   *Sun\ C*)
13640     # Sun C++ 5.9
13641     #
13642     # The more standards-conforming stlport4 library is
13643     # incompatible with the Cstd library. Avoid specifying
13644     # it if it's in CXXFLAGS. Ignore libCrun as
13645     # -library=stlport4 depends on it.
13646     case " $CXX $CXXFLAGS " in
13647     *" -library=stlport4 "*)
13648       solaris_use_stlport4=yes
13649       ;;
13650     esac
13651     if test "$solaris_use_stlport4" != yes; then
13652       postdeps_CXX='-library=Cstd -library=Crun'
13653     fi
13654     ;;
13655   esac
13656   ;;
13657
13658 solaris*)
13659   case $cc_basename in
13660   CC*)
13661     # The more standards-conforming stlport4 library is
13662     # incompatible with the Cstd library. Avoid specifying
13663     # it if it's in CXXFLAGS. Ignore libCrun as
13664     # -library=stlport4 depends on it.
13665     case " $CXX $CXXFLAGS " in
13666     *" -library=stlport4 "*)
13667       solaris_use_stlport4=yes
13668       ;;
13669     esac
13670
13671     # Adding this requires a known-good setup of shared libraries for
13672     # Sun compiler versions before 5.6, else PIC objects from an old
13673     # archive will be linked into the output, leading to subtle bugs.
13674     if test "$solaris_use_stlport4" != yes; then
13675       postdeps_CXX='-library=Cstd -library=Crun'
13676     fi
13677     ;;
13678   esac
13679   ;;
13680 esac
13681
13682
13683 case " $postdeps_CXX " in
13684 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
13685 esac
13686
13687 lt_prog_compiler_wl_CXX=
13688 lt_prog_compiler_pic_CXX=
13689 lt_prog_compiler_static_CXX=
13690
13691 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13692 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
13693
13694   # C++ specific cases for pic, static, wl, etc.
13695   if test "$GXX" = yes; then
13696     lt_prog_compiler_wl_CXX='-Wl,'
13697     lt_prog_compiler_static_CXX='-static'
13698
13699     case $host_os in
13700     aix*)
13701       # All AIX code is PIC.
13702       if test "$host_cpu" = ia64; then
13703         # AIX 5 now supports IA64 processor
13704         lt_prog_compiler_static_CXX='-Bstatic'
13705       fi
13706       ;;
13707     amigaos*)
13708       # FIXME: we need at least 68020 code to build shared libraries, but
13709       # adding the `-m68020' flag to GCC prevents building anything better,
13710       # like `-m68040'.
13711       lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
13712       ;;
13713     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13714       # PIC is the default for these OSes.
13715       ;;
13716     mingw* | cygwin* | os2* | pw32*)
13717       # This hack is so that the source file can tell whether it is being
13718       # built for inclusion in a dll (and should export symbols for example).
13719       # Although the cygwin gcc ignores -fPIC, still need this for old-style
13720       # (--disable-auto-import) libraries
13721       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13722       ;;
13723     darwin* | rhapsody*)
13724       # PIC is the default on this platform
13725       # Common symbols not allowed in MH_DYLIB files
13726       lt_prog_compiler_pic_CXX='-fno-common'
13727       ;;
13728     *djgpp*)
13729       # DJGPP does not support shared libraries at all
13730       lt_prog_compiler_pic_CXX=
13731       ;;
13732     interix[3-9]*)
13733       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13734       # Instead, we relocate shared libraries at runtime.
13735       ;;
13736     sysv4*MP*)
13737       if test -d /usr/nec; then
13738         lt_prog_compiler_pic_CXX=-Kconform_pic
13739       fi
13740       ;;
13741     hpux*)
13742       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13743       # not for PA HP-UX.
13744       case $host_cpu in
13745       hppa*64*|ia64*)
13746         ;;
13747       *)
13748         lt_prog_compiler_pic_CXX='-fPIC'
13749         ;;
13750       esac
13751       ;;
13752     *)
13753       lt_prog_compiler_pic_CXX='-fPIC'
13754       ;;
13755     esac
13756   else
13757     case $host_os in
13758       aix4* | aix5*)
13759         # All AIX code is PIC.
13760         if test "$host_cpu" = ia64; then
13761           # AIX 5 now supports IA64 processor
13762           lt_prog_compiler_static_CXX='-Bstatic'
13763         else
13764           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
13765         fi
13766         ;;
13767       chorus*)
13768         case $cc_basename in
13769         cxch68*)
13770           # Green Hills C++ Compiler
13771           # _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"
13772           ;;
13773         esac
13774         ;;
13775        darwin*)
13776          # PIC is the default on this platform
13777          # Common symbols not allowed in MH_DYLIB files
13778          case $cc_basename in
13779            xlc*)
13780            lt_prog_compiler_pic_CXX='-qnocommon'
13781            lt_prog_compiler_wl_CXX='-Wl,'
13782            ;;
13783          esac
13784        ;;
13785       dgux*)
13786         case $cc_basename in
13787           ec++*)
13788             lt_prog_compiler_pic_CXX='-KPIC'
13789             ;;
13790           ghcx*)
13791             # Green Hills C++ Compiler
13792             lt_prog_compiler_pic_CXX='-pic'
13793             ;;
13794           *)
13795             ;;
13796         esac
13797         ;;
13798       freebsd* | dragonfly*)
13799         # FreeBSD uses GNU C++
13800         ;;
13801       hpux9* | hpux10* | hpux11*)
13802         case $cc_basename in
13803           CC*)
13804             lt_prog_compiler_wl_CXX='-Wl,'
13805             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13806             if test "$host_cpu" != ia64; then
13807               lt_prog_compiler_pic_CXX='+Z'
13808             fi
13809             ;;
13810           aCC*)
13811             lt_prog_compiler_wl_CXX='-Wl,'
13812             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13813             case $host_cpu in
13814             hppa*64*|ia64*)
13815               # +Z the default
13816               ;;
13817             *)
13818               lt_prog_compiler_pic_CXX='+Z'
13819               ;;
13820             esac
13821             ;;
13822           *)
13823             ;;
13824         esac
13825         ;;
13826       interix*)
13827         # This is c89, which is MS Visual C++ (no shared libs)
13828         # Anyone wants to do a port?
13829         ;;
13830       irix5* | irix6* | nonstopux*)
13831         case $cc_basename in
13832           CC*)
13833             lt_prog_compiler_wl_CXX='-Wl,'
13834             lt_prog_compiler_static_CXX='-non_shared'
13835             # CC pic flag -KPIC is the default.
13836             ;;
13837           *)
13838             ;;
13839         esac
13840         ;;
13841       linux* | k*bsd*-gnu)
13842         case $cc_basename in
13843           KCC*)
13844             # KAI C++ Compiler
13845             lt_prog_compiler_wl_CXX='--backend -Wl,'
13846             lt_prog_compiler_pic_CXX='-fPIC'
13847             ;;
13848           icpc* | ecpc*)
13849             # Intel C++
13850             lt_prog_compiler_wl_CXX='-Wl,'
13851             lt_prog_compiler_pic_CXX='-KPIC'
13852             lt_prog_compiler_static_CXX='-static'
13853             ;;
13854           pgCC*)
13855             # Portland Group C++ compiler.
13856             lt_prog_compiler_wl_CXX='-Wl,'
13857             lt_prog_compiler_pic_CXX='-fpic'
13858             lt_prog_compiler_static_CXX='-Bstatic'
13859             ;;
13860           cxx*)
13861             # Compaq C++
13862             # Make sure the PIC flag is empty.  It appears that all Alpha
13863             # Linux and Compaq Tru64 Unix objects are PIC.
13864             lt_prog_compiler_pic_CXX=
13865             lt_prog_compiler_static_CXX='-non_shared'
13866             ;;
13867           *)
13868             case `$CC -V 2>&1 | sed 5q` in
13869             *Sun\ C*)
13870               # Sun C++ 5.9
13871               lt_prog_compiler_pic_CXX='-KPIC'
13872               lt_prog_compiler_static_CXX='-Bstatic'
13873               lt_prog_compiler_wl_CXX='-Qoption ld '
13874               ;;
13875             esac
13876             ;;
13877         esac
13878         ;;
13879       lynxos*)
13880         ;;
13881       m88k*)
13882         ;;
13883       mvs*)
13884         case $cc_basename in
13885           cxx*)
13886             lt_prog_compiler_pic_CXX='-W c,exportall'
13887             ;;
13888           *)
13889             ;;
13890         esac
13891         ;;
13892       netbsd*)
13893         ;;
13894       osf3* | osf4* | osf5*)
13895         case $cc_basename in
13896           KCC*)
13897             lt_prog_compiler_wl_CXX='--backend -Wl,'
13898             ;;
13899           RCC*)
13900             # Rational C++ 2.4.1
13901             lt_prog_compiler_pic_CXX='-pic'
13902             ;;
13903           cxx*)
13904             # Digital/Compaq C++
13905             lt_prog_compiler_wl_CXX='-Wl,'
13906             # Make sure the PIC flag is empty.  It appears that all Alpha
13907             # Linux and Compaq Tru64 Unix objects are PIC.
13908             lt_prog_compiler_pic_CXX=
13909             lt_prog_compiler_static_CXX='-non_shared'
13910             ;;
13911           *)
13912             ;;
13913         esac
13914         ;;
13915       psos*)
13916         ;;
13917       solaris*)
13918         case $cc_basename in
13919           CC*)
13920             # Sun C++ 4.2, 5.x and Centerline C++
13921             lt_prog_compiler_pic_CXX='-KPIC'
13922             lt_prog_compiler_static_CXX='-Bstatic'
13923             lt_prog_compiler_wl_CXX='-Qoption ld '
13924             ;;
13925           gcx*)
13926             # Green Hills C++ Compiler
13927             lt_prog_compiler_pic_CXX='-PIC'
13928             ;;
13929           *)
13930             ;;
13931         esac
13932         ;;
13933       sunos4*)
13934         case $cc_basename in
13935           CC*)
13936             # Sun C++ 4.x
13937             lt_prog_compiler_pic_CXX='-pic'
13938             lt_prog_compiler_static_CXX='-Bstatic'
13939             ;;
13940           lcc*)
13941             # Lucid
13942             lt_prog_compiler_pic_CXX='-pic'
13943             ;;
13944           *)
13945             ;;
13946         esac
13947         ;;
13948       tandem*)
13949         case $cc_basename in
13950           NCC*)
13951             # NonStop-UX NCC 3.20
13952             lt_prog_compiler_pic_CXX='-KPIC'
13953             ;;
13954           *)
13955             ;;
13956         esac
13957         ;;
13958       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13959         case $cc_basename in
13960           CC*)
13961             lt_prog_compiler_wl_CXX='-Wl,'
13962             lt_prog_compiler_pic_CXX='-KPIC'
13963             lt_prog_compiler_static_CXX='-Bstatic'
13964             ;;
13965         esac
13966         ;;
13967       vxworks*)
13968         ;;
13969       *)
13970         lt_prog_compiler_can_build_shared_CXX=no
13971         ;;
13972     esac
13973   fi
13974
13975 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
13976 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
13977
13978 #
13979 # Check to make sure the PIC flag actually works.
13980 #
13981 if test -n "$lt_prog_compiler_pic_CXX"; then
13982
13983 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
13984 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
13985 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
13986   echo $ECHO_N "(cached) $ECHO_C" >&6
13987 else
13988   lt_prog_compiler_pic_works_CXX=no
13989   ac_outfile=conftest.$ac_objext
13990    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13991    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
13992    # Insert the option either (1) after the last *FLAGS variable, or
13993    # (2) before a word containing "conftest.", or (3) at the end.
13994    # Note that $ac_compile itself does not contain backslashes and begins
13995    # with a dollar sign (not a hyphen), so the echo should work correctly.
13996    # The option is referenced via a variable to avoid confusing sed.
13997    lt_compile=`echo "$ac_compile" | $SED \
13998    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13999    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14000    -e 's:$: $lt_compiler_flag:'`
14001    (eval echo "\"\$as_me:14001: $lt_compile\"" >&5)
14002    (eval "$lt_compile" 2>conftest.err)
14003    ac_status=$?
14004    cat conftest.err >&5
14005    echo "$as_me:14005: \$? = $ac_status" >&5
14006    if (exit $ac_status) && test -s "$ac_outfile"; then
14007      # The compiler can only warn and ignore the option if not recognized
14008      # So say no if there are warnings other than the usual output.
14009      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14010      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14011      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14012        lt_prog_compiler_pic_works_CXX=yes
14013      fi
14014    fi
14015    $rm conftest*
14016
14017 fi
14018 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
14019 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
14020
14021 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
14022     case $lt_prog_compiler_pic_CXX in
14023      "" | " "*) ;;
14024      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14025      esac
14026 else
14027     lt_prog_compiler_pic_CXX=
14028      lt_prog_compiler_can_build_shared_CXX=no
14029 fi
14030
14031 fi
14032 case $host_os in
14033   # For platforms which do not support PIC, -DPIC is meaningless:
14034   *djgpp*)
14035     lt_prog_compiler_pic_CXX=
14036     ;;
14037   *)
14038     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14039     ;;
14040 esac
14041
14042 #
14043 # Check to make sure the static flag actually works.
14044 #
14045 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
14046 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14047 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14048 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
14049   echo $ECHO_N "(cached) $ECHO_C" >&6
14050 else
14051   lt_prog_compiler_static_works_CXX=no
14052    save_LDFLAGS="$LDFLAGS"
14053    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14054    echo "$lt_simple_link_test_code" > conftest.$ac_ext
14055    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14056      # The linker can only warn and ignore the option if not recognized
14057      # So say no if there are warnings
14058      if test -s conftest.err; then
14059        # Append any errors to the config.log.
14060        cat conftest.err 1>&5
14061        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14062        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14063        if diff conftest.exp conftest.er2 >/dev/null; then
14064          lt_prog_compiler_static_works_CXX=yes
14065        fi
14066      else
14067        lt_prog_compiler_static_works_CXX=yes
14068      fi
14069    fi
14070    $rm conftest*
14071    LDFLAGS="$save_LDFLAGS"
14072
14073 fi
14074 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
14075 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
14076
14077 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
14078     :
14079 else
14080     lt_prog_compiler_static_CXX=
14081 fi
14082
14083
14084 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14085 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14086 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
14087   echo $ECHO_N "(cached) $ECHO_C" >&6
14088 else
14089   lt_cv_prog_compiler_c_o_CXX=no
14090    $rm -r conftest 2>/dev/null
14091    mkdir conftest
14092    cd conftest
14093    mkdir out
14094    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14095
14096    lt_compiler_flag="-o out/conftest2.$ac_objext"
14097    # Insert the option either (1) after the last *FLAGS variable, or
14098    # (2) before a word containing "conftest.", or (3) at the end.
14099    # Note that $ac_compile itself does not contain backslashes and begins
14100    # with a dollar sign (not a hyphen), so the echo should work correctly.
14101    lt_compile=`echo "$ac_compile" | $SED \
14102    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14103    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14104    -e 's:$: $lt_compiler_flag:'`
14105    (eval echo "\"\$as_me:14105: $lt_compile\"" >&5)
14106    (eval "$lt_compile" 2>out/conftest.err)
14107    ac_status=$?
14108    cat out/conftest.err >&5
14109    echo "$as_me:14109: \$? = $ac_status" >&5
14110    if (exit $ac_status) && test -s out/conftest2.$ac_objext
14111    then
14112      # The compiler can only warn and ignore the option if not recognized
14113      # So say no if there are warnings
14114      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14115      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14116      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14117        lt_cv_prog_compiler_c_o_CXX=yes
14118      fi
14119    fi
14120    chmod u+w . 2>&5
14121    $rm conftest*
14122    # SGI C++ compiler will create directory out/ii_files/ for
14123    # template instantiation
14124    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14125    $rm out/* && rmdir out
14126    cd ..
14127    rmdir conftest
14128    $rm conftest*
14129
14130 fi
14131 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14132 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
14133
14134
14135 hard_links="nottested"
14136 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14137   # do not overwrite the value of need_locks provided by the user
14138   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14139 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14140   hard_links=yes
14141   $rm conftest*
14142   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14143   touch conftest.a
14144   ln conftest.a conftest.b 2>&5 || hard_links=no
14145   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14146   { echo "$as_me:$LINENO: result: $hard_links" >&5
14147 echo "${ECHO_T}$hard_links" >&6; }
14148   if test "$hard_links" = no; then
14149     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14150 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14151     need_locks=warn
14152   fi
14153 else
14154   need_locks=no
14155 fi
14156
14157 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14158 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14159
14160   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14161   case $host_os in
14162   aix4* | aix5*)
14163     # If we're using GNU nm, then we don't want the "-C" option.
14164     # -C means demangle to AIX nm, but means don't demangle with GNU nm
14165     if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14166       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'
14167     else
14168       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'
14169     fi
14170     ;;
14171   pw32*)
14172     export_symbols_cmds_CXX="$ltdll_cmds"
14173   ;;
14174   cygwin* | mingw*)
14175     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'
14176   ;;
14177   *)
14178     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14179   ;;
14180   esac
14181
14182 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
14183 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
14184 test "$ld_shlibs_CXX" = no && can_build_shared=no
14185
14186 #
14187 # Do we need to explicitly link libc?
14188 #
14189 case "x$archive_cmds_need_lc_CXX" in
14190 x|xyes)
14191   # Assume -lc should be added
14192   archive_cmds_need_lc_CXX=yes
14193
14194   if test "$enable_shared" = yes && test "$GCC" = yes; then
14195     case $archive_cmds_CXX in
14196     *'~'*)
14197       # FIXME: we may have to deal with multi-command sequences.
14198       ;;
14199     '$CC '*)
14200       # Test whether the compiler implicitly links with -lc since on some
14201       # systems, -lgcc has to come before -lc. If gcc already passes -lc
14202       # to ld, don't add -lc before -lgcc.
14203       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14204 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
14205       $rm conftest*
14206       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14207
14208       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14209   (eval $ac_compile) 2>&5
14210   ac_status=$?
14211   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14212   (exit $ac_status); } 2>conftest.err; then
14213         soname=conftest
14214         lib=conftest
14215         libobjs=conftest.$ac_objext
14216         deplibs=
14217         wl=$lt_prog_compiler_wl_CXX
14218         pic_flag=$lt_prog_compiler_pic_CXX
14219         compiler_flags=-v
14220         linker_flags=-v
14221         verstring=
14222         output_objdir=.
14223         libname=conftest
14224         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14225         allow_undefined_flag_CXX=
14226         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14227   (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14228   ac_status=$?
14229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14230   (exit $ac_status); }
14231         then
14232           archive_cmds_need_lc_CXX=no
14233         else
14234           archive_cmds_need_lc_CXX=yes
14235         fi
14236         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14237       else
14238         cat conftest.err 1>&5
14239       fi
14240       $rm conftest*
14241       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
14242 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
14243       ;;
14244     esac
14245   fi
14246   ;;
14247 esac
14248
14249 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14250 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
14251 library_names_spec=
14252 libname_spec='lib$name'
14253 soname_spec=
14254 shrext_cmds=".so"
14255 postinstall_cmds=
14256 postuninstall_cmds=
14257 finish_cmds=
14258 finish_eval=
14259 shlibpath_var=
14260 shlibpath_overrides_runpath=unknown
14261 version_type=none
14262 dynamic_linker="$host_os ld.so"
14263 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14264
14265 need_lib_prefix=unknown
14266 hardcode_into_libs=no
14267
14268 # when you set need_version to no, make sure it does not cause -set_version
14269 # flags to be left without arguments
14270 need_version=unknown
14271
14272 case $host_os in
14273 aix3*)
14274   version_type=linux
14275   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14276   shlibpath_var=LIBPATH
14277
14278   # AIX 3 has no versioning support, so we append a major version to the name.
14279   soname_spec='${libname}${release}${shared_ext}$major'
14280   ;;
14281
14282 aix4* | aix5*)
14283   version_type=linux
14284   need_lib_prefix=no
14285   need_version=no
14286   hardcode_into_libs=yes
14287   if test "$host_cpu" = ia64; then
14288     # AIX 5 supports IA64
14289     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14290     shlibpath_var=LD_LIBRARY_PATH
14291   else
14292     # With GCC up to 2.95.x, collect2 would create an import file
14293     # for dependence libraries.  The import file would start with
14294     # the line `#! .'.  This would cause the generated library to
14295     # depend on `.', always an invalid library.  This was fixed in
14296     # development snapshots of GCC prior to 3.0.
14297     case $host_os in
14298       aix4 | aix4.[01] | aix4.[01].*)
14299       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14300            echo ' yes '
14301            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14302         :
14303       else
14304         can_build_shared=no
14305       fi
14306       ;;
14307     esac
14308     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14309     # soname into executable. Probably we can add versioning support to
14310     # collect2, so additional links can be useful in future.
14311     if test "$aix_use_runtimelinking" = yes; then
14312       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14313       # instead of lib<name>.a to let people know that these are not
14314       # typical AIX shared libraries.
14315       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14316     else
14317       # We preserve .a as extension for shared libraries through AIX4.2
14318       # and later when we are not doing run time linking.
14319       library_names_spec='${libname}${release}.a $libname.a'
14320       soname_spec='${libname}${release}${shared_ext}$major'
14321     fi
14322     shlibpath_var=LIBPATH
14323   fi
14324   ;;
14325
14326 amigaos*)
14327   library_names_spec='$libname.ixlibrary $libname.a'
14328   # Create ${libname}_ixlibrary.a entries in /sys/libs.
14329   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'
14330   ;;
14331
14332 beos*)
14333   library_names_spec='${libname}${shared_ext}'
14334   dynamic_linker="$host_os ld.so"
14335   shlibpath_var=LIBRARY_PATH
14336   ;;
14337
14338 bsdi[45]*)
14339   version_type=linux
14340   need_version=no
14341   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14342   soname_spec='${libname}${release}${shared_ext}$major'
14343   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14344   shlibpath_var=LD_LIBRARY_PATH
14345   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14346   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14347   # the default ld.so.conf also contains /usr/contrib/lib and
14348   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14349   # libtool to hard-code these into programs
14350   ;;
14351
14352 cygwin* | mingw* | pw32*)
14353   version_type=windows
14354   shrext_cmds=".dll"
14355   need_version=no
14356   need_lib_prefix=no
14357
14358   case $GCC,$host_os in
14359   yes,cygwin* | yes,mingw* | yes,pw32*)
14360     library_names_spec='$libname.dll.a'
14361     # DLL is installed to $(libdir)/../bin by postinstall_cmds
14362     postinstall_cmds='base_file=`basename \${file}`~
14363       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14364       dldir=$destdir/`dirname \$dlpath`~
14365       test -d \$dldir || mkdir -p \$dldir~
14366       $install_prog $dir/$dlname \$dldir/$dlname~
14367       chmod a+x \$dldir/$dlname'
14368     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14369       dlpath=$dir/\$dldll~
14370        $rm \$dlpath'
14371     shlibpath_overrides_runpath=yes
14372
14373     case $host_os in
14374     cygwin*)
14375       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14376       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14377       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14378       ;;
14379     mingw*)
14380       # MinGW DLLs use traditional 'lib' prefix
14381       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14382       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14383       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14384         # It is most probably a Windows format PATH printed by
14385         # mingw gcc, but we are running on Cygwin. Gcc prints its search
14386         # path with ; separators, and with drive letters. We can handle the
14387         # drive letters (cygwin fileutils understands them), so leave them,
14388         # especially as we might pass files found there to a mingw objdump,
14389         # which wouldn't understand a cygwinified path. Ahh.
14390         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14391       else
14392         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14393       fi
14394       ;;
14395     pw32*)
14396       # pw32 DLLs use 'pw' prefix rather than 'lib'
14397       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14398       ;;
14399     esac
14400     ;;
14401
14402   *)
14403     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14404     ;;
14405   esac
14406   dynamic_linker='Win32 ld.exe'
14407   # FIXME: first we should search . and the directory the executable is in
14408   shlibpath_var=PATH
14409   ;;
14410
14411 darwin* | rhapsody*)
14412   dynamic_linker="$host_os dyld"
14413   version_type=darwin
14414   need_lib_prefix=no
14415   need_version=no
14416   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14417   soname_spec='${libname}${release}${major}$shared_ext'
14418   shlibpath_overrides_runpath=yes
14419   shlibpath_var=DYLD_LIBRARY_PATH
14420   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14421
14422   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14423   ;;
14424
14425 dgux*)
14426   version_type=linux
14427   need_lib_prefix=no
14428   need_version=no
14429   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14430   soname_spec='${libname}${release}${shared_ext}$major'
14431   shlibpath_var=LD_LIBRARY_PATH
14432   ;;
14433
14434 freebsd1*)
14435   dynamic_linker=no
14436   ;;
14437
14438 freebsd* | dragonfly*)
14439   # DragonFly does not have aout.  When/if they implement a new
14440   # versioning mechanism, adjust this.
14441   if test -x /usr/bin/objformat; then
14442     objformat=`/usr/bin/objformat`
14443   else
14444     case $host_os in
14445     freebsd[123]*) objformat=aout ;;
14446     *) objformat=elf ;;
14447     esac
14448   fi
14449   version_type=freebsd-$objformat
14450   case $version_type in
14451     freebsd-elf*)
14452       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14453       need_version=no
14454       need_lib_prefix=no
14455       ;;
14456     freebsd-*)
14457       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14458       need_version=yes
14459       ;;
14460   esac
14461   shlibpath_var=LD_LIBRARY_PATH
14462   case $host_os in
14463   freebsd2*)
14464     shlibpath_overrides_runpath=yes
14465     ;;
14466   freebsd3.[01]* | freebsdelf3.[01]*)
14467     shlibpath_overrides_runpath=yes
14468     hardcode_into_libs=yes
14469     ;;
14470   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14471   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14472     shlibpath_overrides_runpath=no
14473     hardcode_into_libs=yes
14474     ;;
14475   *) # from 4.6 on, and DragonFly
14476     shlibpath_overrides_runpath=yes
14477     hardcode_into_libs=yes
14478     ;;
14479   esac
14480   ;;
14481
14482 gnu*)
14483   version_type=linux
14484   need_lib_prefix=no
14485   need_version=no
14486   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14487   soname_spec='${libname}${release}${shared_ext}$major'
14488   shlibpath_var=LD_LIBRARY_PATH
14489   hardcode_into_libs=yes
14490   ;;
14491
14492 hpux9* | hpux10* | hpux11*)
14493   # Give a soname corresponding to the major version so that dld.sl refuses to
14494   # link against other versions.
14495   version_type=sunos
14496   need_lib_prefix=no
14497   need_version=no
14498   case $host_cpu in
14499   ia64*)
14500     shrext_cmds='.so'
14501     hardcode_into_libs=yes
14502     dynamic_linker="$host_os dld.so"
14503     shlibpath_var=LD_LIBRARY_PATH
14504     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14505     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14506     soname_spec='${libname}${release}${shared_ext}$major'
14507     if test "X$HPUX_IA64_MODE" = X32; then
14508       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14509     else
14510       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14511     fi
14512     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14513     ;;
14514    hppa*64*)
14515      shrext_cmds='.sl'
14516      hardcode_into_libs=yes
14517      dynamic_linker="$host_os dld.sl"
14518      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14519      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14520      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14521      soname_spec='${libname}${release}${shared_ext}$major'
14522      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14523      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14524      ;;
14525    *)
14526     shrext_cmds='.sl'
14527     dynamic_linker="$host_os dld.sl"
14528     shlibpath_var=SHLIB_PATH
14529     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14530     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14531     soname_spec='${libname}${release}${shared_ext}$major'
14532     ;;
14533   esac
14534   # HP-UX runs *really* slowly unless shared libraries are mode 555.
14535   postinstall_cmds='chmod 555 $lib'
14536   ;;
14537
14538 interix[3-9]*)
14539   version_type=linux
14540   need_lib_prefix=no
14541   need_version=no
14542   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14543   soname_spec='${libname}${release}${shared_ext}$major'
14544   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14545   shlibpath_var=LD_LIBRARY_PATH
14546   shlibpath_overrides_runpath=no
14547   hardcode_into_libs=yes
14548   ;;
14549
14550 irix5* | irix6* | nonstopux*)
14551   case $host_os in
14552     nonstopux*) version_type=nonstopux ;;
14553     *)
14554         if test "$lt_cv_prog_gnu_ld" = yes; then
14555                 version_type=linux
14556         else
14557                 version_type=irix
14558         fi ;;
14559   esac
14560   need_lib_prefix=no
14561   need_version=no
14562   soname_spec='${libname}${release}${shared_ext}$major'
14563   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14564   case $host_os in
14565   irix5* | nonstopux*)
14566     libsuff= shlibsuff=
14567     ;;
14568   *)
14569     case $LD in # libtool.m4 will add one of these switches to LD
14570     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14571       libsuff= shlibsuff= libmagic=32-bit;;
14572     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14573       libsuff=32 shlibsuff=N32 libmagic=N32;;
14574     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14575       libsuff=64 shlibsuff=64 libmagic=64-bit;;
14576     *) libsuff= shlibsuff= libmagic=never-match;;
14577     esac
14578     ;;
14579   esac
14580   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14581   shlibpath_overrides_runpath=no
14582   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14583   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14584   hardcode_into_libs=yes
14585   ;;
14586
14587 # No shared lib support for Linux oldld, aout, or coff.
14588 linux*oldld* | linux*aout* | linux*coff*)
14589   dynamic_linker=no
14590   ;;
14591
14592 # This must be Linux ELF.
14593 linux* | k*bsd*-gnu)
14594   version_type=linux
14595   need_lib_prefix=no
14596   need_version=no
14597   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14598   soname_spec='${libname}${release}${shared_ext}$major'
14599   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14600   shlibpath_var=LD_LIBRARY_PATH
14601   shlibpath_overrides_runpath=no
14602   # This implies no fast_install, which is unacceptable.
14603   # Some rework will be needed to allow for fast_install
14604   # before this can be enabled.
14605   hardcode_into_libs=yes
14606   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14607   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14608
14609   # Append ld.so.conf contents to the search path
14610   if test -f /etc/ld.so.conf; then
14611     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[      ]*hwcap[        ]/d;s/[:,       ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
14612     sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
14613   fi
14614
14615   # We used to test for /lib/ld.so.1 and disable shared libraries on
14616   # powerpc, because MkLinux only supported shared libraries with the
14617   # GNU dynamic linker.  Since this was broken with cross compilers,
14618   # most powerpc-linux boxes support dynamic linking these days and
14619   # people can always --disable-shared, the test was removed, and we
14620   # assume the GNU/Linux dynamic linker is in use.
14621   dynamic_linker='GNU/Linux ld.so'
14622   ;;
14623
14624 netbsd*)
14625   version_type=sunos
14626   need_lib_prefix=no
14627   need_version=no
14628   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14629     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14630     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14631     dynamic_linker='NetBSD (a.out) ld.so'
14632   else
14633     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14634     soname_spec='${libname}${release}${shared_ext}$major'
14635     dynamic_linker='NetBSD ld.elf_so'
14636   fi
14637   shlibpath_var=LD_LIBRARY_PATH
14638   shlibpath_overrides_runpath=yes
14639   hardcode_into_libs=yes
14640   ;;
14641
14642 newsos6)
14643   version_type=linux
14644   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14645   shlibpath_var=LD_LIBRARY_PATH
14646   shlibpath_overrides_runpath=yes
14647   ;;
14648
14649 nto-qnx*)
14650   version_type=linux
14651   need_lib_prefix=no
14652   need_version=no
14653   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14654   soname_spec='${libname}${release}${shared_ext}$major'
14655   shlibpath_var=LD_LIBRARY_PATH
14656   shlibpath_overrides_runpath=yes
14657   ;;
14658
14659 openbsd*)
14660   version_type=sunos
14661   sys_lib_dlsearch_path_spec="/usr/lib"
14662   need_lib_prefix=no
14663   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14664   case $host_os in
14665     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14666     *)                         need_version=no  ;;
14667   esac
14668   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14669   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14670   shlibpath_var=LD_LIBRARY_PATH
14671   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14672     case $host_os in
14673       openbsd2.[89] | openbsd2.[89].*)
14674         shlibpath_overrides_runpath=no
14675         ;;
14676       *)
14677         shlibpath_overrides_runpath=yes
14678         ;;
14679       esac
14680   else
14681     shlibpath_overrides_runpath=yes
14682   fi
14683   ;;
14684
14685 os2*)
14686   libname_spec='$name'
14687   shrext_cmds=".dll"
14688   need_lib_prefix=no
14689   library_names_spec='$libname${shared_ext} $libname.a'
14690   dynamic_linker='OS/2 ld.exe'
14691   shlibpath_var=LIBPATH
14692   ;;
14693
14694 osf3* | osf4* | osf5*)
14695   version_type=osf
14696   need_lib_prefix=no
14697   need_version=no
14698   soname_spec='${libname}${release}${shared_ext}$major'
14699   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14700   shlibpath_var=LD_LIBRARY_PATH
14701   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14702   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14703   ;;
14704
14705 rdos*)
14706   dynamic_linker=no
14707   ;;
14708
14709 solaris*)
14710   version_type=linux
14711   need_lib_prefix=no
14712   need_version=no
14713   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14714   soname_spec='${libname}${release}${shared_ext}$major'
14715   shlibpath_var=LD_LIBRARY_PATH
14716   shlibpath_overrides_runpath=yes
14717   hardcode_into_libs=yes
14718   # ldd complains unless libraries are executable
14719   postinstall_cmds='chmod +x $lib'
14720   ;;
14721
14722 sunos4*)
14723   version_type=sunos
14724   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14725   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14726   shlibpath_var=LD_LIBRARY_PATH
14727   shlibpath_overrides_runpath=yes
14728   if test "$with_gnu_ld" = yes; then
14729     need_lib_prefix=no
14730   fi
14731   need_version=yes
14732   ;;
14733
14734 sysv4 | sysv4.3*)
14735   version_type=linux
14736   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14737   soname_spec='${libname}${release}${shared_ext}$major'
14738   shlibpath_var=LD_LIBRARY_PATH
14739   case $host_vendor in
14740     sni)
14741       shlibpath_overrides_runpath=no
14742       need_lib_prefix=no
14743       export_dynamic_flag_spec='${wl}-Blargedynsym'
14744       runpath_var=LD_RUN_PATH
14745       ;;
14746     siemens)
14747       need_lib_prefix=no
14748       ;;
14749     motorola)
14750       need_lib_prefix=no
14751       need_version=no
14752       shlibpath_overrides_runpath=no
14753       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14754       ;;
14755   esac
14756   ;;
14757
14758 sysv4*MP*)
14759   if test -d /usr/nec ;then
14760     version_type=linux
14761     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14762     soname_spec='$libname${shared_ext}.$major'
14763     shlibpath_var=LD_LIBRARY_PATH
14764   fi
14765   ;;
14766
14767 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14768   version_type=freebsd-elf
14769   need_lib_prefix=no
14770   need_version=no
14771   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14772   soname_spec='${libname}${release}${shared_ext}$major'
14773   shlibpath_var=LD_LIBRARY_PATH
14774   hardcode_into_libs=yes
14775   if test "$with_gnu_ld" = yes; then
14776     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14777     shlibpath_overrides_runpath=no
14778   else
14779     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14780     shlibpath_overrides_runpath=yes
14781     case $host_os in
14782       sco3.2v5*)
14783         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14784         ;;
14785     esac
14786   fi
14787   sys_lib_dlsearch_path_spec='/usr/lib'
14788   ;;
14789
14790 uts4*)
14791   version_type=linux
14792   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14793   soname_spec='${libname}${release}${shared_ext}$major'
14794   shlibpath_var=LD_LIBRARY_PATH
14795   ;;
14796
14797 *)
14798   dynamic_linker=no
14799   ;;
14800 esac
14801 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14802 echo "${ECHO_T}$dynamic_linker" >&6; }
14803 test "$dynamic_linker" = no && can_build_shared=no
14804
14805 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14806 if test "$GCC" = yes; then
14807   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14808 fi
14809
14810 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
14811 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
14812 hardcode_action_CXX=
14813 if test -n "$hardcode_libdir_flag_spec_CXX" || \
14814    test -n "$runpath_var_CXX" || \
14815    test "X$hardcode_automatic_CXX" = "Xyes" ; then
14816
14817   # We can hardcode non-existant directories.
14818   if test "$hardcode_direct_CXX" != no &&
14819      # If the only mechanism to avoid hardcoding is shlibpath_var, we
14820      # have to relink, otherwise we might link with an installed library
14821      # when we should be linking with a yet-to-be-installed one
14822      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
14823      test "$hardcode_minus_L_CXX" != no; then
14824     # Linking always hardcodes the temporary library directory.
14825     hardcode_action_CXX=relink
14826   else
14827     # We can link without hardcoding, and we can hardcode nonexisting dirs.
14828     hardcode_action_CXX=immediate
14829   fi
14830 else
14831   # We cannot hardcode anything, or else we can only hardcode existing
14832   # directories.
14833   hardcode_action_CXX=unsupported
14834 fi
14835 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
14836 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
14837
14838 if test "$hardcode_action_CXX" = relink; then
14839   # Fast installation is not supported
14840   enable_fast_install=no
14841 elif test "$shlibpath_overrides_runpath" = yes ||
14842      test "$enable_shared" = no; then
14843   # Fast installation is not necessary
14844   enable_fast_install=needless
14845 fi
14846
14847
14848 # The else clause should only fire when bootstrapping the
14849 # libtool distribution, otherwise you forgot to ship ltmain.sh
14850 # with your package, and you will get complaints that there are
14851 # no rules to generate ltmain.sh.
14852 if test -f "$ltmain"; then
14853   # See if we are running on zsh, and set the options which allow our commands through
14854   # without removal of \ escapes.
14855   if test -n "${ZSH_VERSION+set}" ; then
14856     setopt NO_GLOB_SUBST
14857   fi
14858   # Now quote all the things that may contain metacharacters while being
14859   # careful not to overquote the AC_SUBSTed values.  We take copies of the
14860   # variables and quote the copies for generation of the libtool script.
14861   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
14862     SED SHELL STRIP \
14863     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14864     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14865     deplibs_check_method reload_flag reload_cmds need_locks \
14866     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14867     lt_cv_sys_global_symbol_to_c_name_address \
14868     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14869     old_postinstall_cmds old_postuninstall_cmds \
14870     compiler_CXX \
14871     CC_CXX \
14872     LD_CXX \
14873     lt_prog_compiler_wl_CXX \
14874     lt_prog_compiler_pic_CXX \
14875     lt_prog_compiler_static_CXX \
14876     lt_prog_compiler_no_builtin_flag_CXX \
14877     export_dynamic_flag_spec_CXX \
14878     thread_safe_flag_spec_CXX \
14879     whole_archive_flag_spec_CXX \
14880     enable_shared_with_static_runtimes_CXX \
14881     old_archive_cmds_CXX \
14882     old_archive_from_new_cmds_CXX \
14883     predep_objects_CXX \
14884     postdep_objects_CXX \
14885     predeps_CXX \
14886     postdeps_CXX \
14887     compiler_lib_search_path_CXX \
14888     archive_cmds_CXX \
14889     archive_expsym_cmds_CXX \
14890     postinstall_cmds_CXX \
14891     postuninstall_cmds_CXX \
14892     old_archive_from_expsyms_cmds_CXX \
14893     allow_undefined_flag_CXX \
14894     no_undefined_flag_CXX \
14895     export_symbols_cmds_CXX \
14896     hardcode_libdir_flag_spec_CXX \
14897     hardcode_libdir_flag_spec_ld_CXX \
14898     hardcode_libdir_separator_CXX \
14899     hardcode_automatic_CXX \
14900     module_cmds_CXX \
14901     module_expsym_cmds_CXX \
14902     lt_cv_prog_compiler_c_o_CXX \
14903     fix_srcfile_path_CXX \
14904     exclude_expsyms_CXX \
14905     include_expsyms_CXX; do
14906
14907     case $var in
14908     old_archive_cmds_CXX | \
14909     old_archive_from_new_cmds_CXX | \
14910     archive_cmds_CXX | \
14911     archive_expsym_cmds_CXX | \
14912     module_cmds_CXX | \
14913     module_expsym_cmds_CXX | \
14914     old_archive_from_expsyms_cmds_CXX | \
14915     export_symbols_cmds_CXX | \
14916     extract_expsyms_cmds | reload_cmds | finish_cmds | \
14917     postinstall_cmds | postuninstall_cmds | \
14918     old_postinstall_cmds | old_postuninstall_cmds | \
14919     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14920       # Double-quote double-evaled strings.
14921       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14922       ;;
14923     *)
14924       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14925       ;;
14926     esac
14927   done
14928
14929   case $lt_echo in
14930   *'\$0 --fallback-echo"')
14931     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14932     ;;
14933   esac
14934
14935 cfgfile="$ofile"
14936
14937   cat <<__EOF__ >> "$cfgfile"
14938 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
14939
14940 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14941
14942 # Shell to use when invoking shell scripts.
14943 SHELL=$lt_SHELL
14944
14945 # Whether or not to build shared libraries.
14946 build_libtool_libs=$enable_shared
14947
14948 # Whether or not to build static libraries.
14949 build_old_libs=$enable_static
14950
14951 # Whether or not to add -lc for building shared libraries.
14952 build_libtool_need_lc=$archive_cmds_need_lc_CXX
14953
14954 # Whether or not to disallow shared libs when runtime libs are static
14955 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
14956
14957 # Whether or not to optimize for fast installation.
14958 fast_install=$enable_fast_install
14959
14960 # The host system.
14961 host_alias=$host_alias
14962 host=$host
14963 host_os=$host_os
14964
14965 # The build system.
14966 build_alias=$build_alias
14967 build=$build
14968 build_os=$build_os
14969
14970 # An echo program that does not interpret backslashes.
14971 echo=$lt_echo
14972
14973 # The archiver.
14974 AR=$lt_AR
14975 AR_FLAGS=$lt_AR_FLAGS
14976
14977 # A C compiler.
14978 LTCC=$lt_LTCC
14979
14980 # LTCC compiler flags.
14981 LTCFLAGS=$lt_LTCFLAGS
14982
14983 # A language-specific compiler.
14984 CC=$lt_compiler_CXX
14985
14986 # Is the compiler the GNU C compiler?
14987 with_gcc=$GCC_CXX
14988
14989 # An ERE matcher.
14990 EGREP=$lt_EGREP
14991
14992 # The linker used to build libraries.
14993 LD=$lt_LD_CXX
14994
14995 # Whether we need hard or soft links.
14996 LN_S=$lt_LN_S
14997
14998 # A BSD-compatible nm program.
14999 NM=$lt_NM
15000
15001 # A symbol stripping program
15002 STRIP=$lt_STRIP
15003
15004 # Used to examine libraries when file_magic_cmd begins "file"
15005 MAGIC_CMD=$MAGIC_CMD
15006
15007 # Used on cygwin: DLL creation program.
15008 DLLTOOL="$DLLTOOL"
15009
15010 # Used on cygwin: object dumper.
15011 OBJDUMP="$OBJDUMP"
15012
15013 # Used on cygwin: assembler.
15014 AS="$AS"
15015
15016 # The name of the directory that contains temporary libtool files.
15017 objdir=$objdir
15018
15019 # How to create reloadable object files.
15020 reload_flag=$lt_reload_flag
15021 reload_cmds=$lt_reload_cmds
15022
15023 # How to pass a linker flag through the compiler.
15024 wl=$lt_lt_prog_compiler_wl_CXX
15025
15026 # Object file suffix (normally "o").
15027 objext="$ac_objext"
15028
15029 # Old archive suffix (normally "a").
15030 libext="$libext"
15031
15032 # Shared library suffix (normally ".so").
15033 shrext_cmds='$shrext_cmds'
15034
15035 # Executable file suffix (normally "").
15036 exeext="$exeext"
15037
15038 # Additional compiler flags for building library objects.
15039 pic_flag=$lt_lt_prog_compiler_pic_CXX
15040 pic_mode=$pic_mode
15041
15042 # What is the maximum length of a command?
15043 max_cmd_len=$lt_cv_sys_max_cmd_len
15044
15045 # Does compiler simultaneously support -c and -o options?
15046 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
15047
15048 # Must we lock files when doing compilation?
15049 need_locks=$lt_need_locks
15050
15051 # Do we need the lib prefix for modules?
15052 need_lib_prefix=$need_lib_prefix
15053
15054 # Do we need a version for libraries?
15055 need_version=$need_version
15056
15057 # Whether dlopen is supported.
15058 dlopen_support=$enable_dlopen
15059
15060 # Whether dlopen of programs is supported.
15061 dlopen_self=$enable_dlopen_self
15062
15063 # Whether dlopen of statically linked programs is supported.
15064 dlopen_self_static=$enable_dlopen_self_static
15065
15066 # Compiler flag to prevent dynamic linking.
15067 link_static_flag=$lt_lt_prog_compiler_static_CXX
15068
15069 # Compiler flag to turn off builtin functions.
15070 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
15071
15072 # Compiler flag to allow reflexive dlopens.
15073 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
15074
15075 # Compiler flag to generate shared objects directly from archives.
15076 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
15077
15078 # Compiler flag to generate thread-safe objects.
15079 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
15080
15081 # Library versioning type.
15082 version_type=$version_type
15083
15084 # Format of library name prefix.
15085 libname_spec=$lt_libname_spec
15086
15087 # List of archive names.  First name is the real one, the rest are links.
15088 # The last name is the one that the linker finds with -lNAME.
15089 library_names_spec=$lt_library_names_spec
15090
15091 # The coded name of the library, if different from the real name.
15092 soname_spec=$lt_soname_spec
15093
15094 # Commands used to build and install an old-style archive.
15095 RANLIB=$lt_RANLIB
15096 old_archive_cmds=$lt_old_archive_cmds_CXX
15097 old_postinstall_cmds=$lt_old_postinstall_cmds
15098 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15099
15100 # Create an old-style archive from a shared archive.
15101 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
15102
15103 # Create a temporary old-style archive to link instead of a shared archive.
15104 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
15105
15106 # Commands used to build and install a shared archive.
15107 archive_cmds=$lt_archive_cmds_CXX
15108 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
15109 postinstall_cmds=$lt_postinstall_cmds
15110 postuninstall_cmds=$lt_postuninstall_cmds
15111
15112 # Commands used to build a loadable module (assumed same as above if empty)
15113 module_cmds=$lt_module_cmds_CXX
15114 module_expsym_cmds=$lt_module_expsym_cmds_CXX
15115
15116 # Commands to strip libraries.
15117 old_striplib=$lt_old_striplib
15118 striplib=$lt_striplib
15119
15120 # Dependencies to place before the objects being linked to create a
15121 # shared library.
15122 predep_objects=$lt_predep_objects_CXX
15123
15124 # Dependencies to place after the objects being linked to create a
15125 # shared library.
15126 postdep_objects=$lt_postdep_objects_CXX
15127
15128 # Dependencies to place before the objects being linked to create a
15129 # shared library.
15130 predeps=$lt_predeps_CXX
15131
15132 # Dependencies to place after the objects being linked to create a
15133 # shared library.
15134 postdeps=$lt_postdeps_CXX
15135
15136 # The library search path used internally by the compiler when linking
15137 # a shared library.
15138 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
15139
15140 # Method to check whether dependent libraries are shared objects.
15141 deplibs_check_method=$lt_deplibs_check_method
15142
15143 # Command to use when deplibs_check_method == file_magic.
15144 file_magic_cmd=$lt_file_magic_cmd
15145
15146 # Flag that allows shared libraries with undefined symbols to be built.
15147 allow_undefined_flag=$lt_allow_undefined_flag_CXX
15148
15149 # Flag that forces no undefined symbols.
15150 no_undefined_flag=$lt_no_undefined_flag_CXX
15151
15152 # Commands used to finish a libtool library installation in a directory.
15153 finish_cmds=$lt_finish_cmds
15154
15155 # Same as above, but a single script fragment to be evaled but not shown.
15156 finish_eval=$lt_finish_eval
15157
15158 # Take the output of nm and produce a listing of raw symbols and C names.
15159 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15160
15161 # Transform the output of nm in a proper C declaration
15162 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15163
15164 # Transform the output of nm in a C name address pair
15165 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15166
15167 # This is the shared library runtime path variable.
15168 runpath_var=$runpath_var
15169
15170 # This is the shared library path variable.
15171 shlibpath_var=$shlibpath_var
15172
15173 # Is shlibpath searched before the hard-coded library search path?
15174 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15175
15176 # How to hardcode a shared library path into an executable.
15177 hardcode_action=$hardcode_action_CXX
15178
15179 # Whether we should hardcode library paths into libraries.
15180 hardcode_into_libs=$hardcode_into_libs
15181
15182 # Flag to hardcode \$libdir into a binary during linking.
15183 # This must work even if \$libdir does not exist.
15184 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
15185
15186 # If ld is used when linking, flag to hardcode \$libdir into
15187 # a binary during linking. This must work even if \$libdir does
15188 # not exist.
15189 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
15190
15191 # Whether we need a single -rpath flag with a separated argument.
15192 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
15193
15194 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15195 # resulting binary.
15196 hardcode_direct=$hardcode_direct_CXX
15197
15198 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15199 # resulting binary.
15200 hardcode_minus_L=$hardcode_minus_L_CXX
15201
15202 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15203 # the resulting binary.
15204 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
15205
15206 # Set to yes if building a shared library automatically hardcodes DIR into the library
15207 # and all subsequent libraries and executables linked against it.
15208 hardcode_automatic=$hardcode_automatic_CXX
15209
15210 # Variables whose values should be saved in libtool wrapper scripts and
15211 # restored at relink time.
15212 variables_saved_for_relink="$variables_saved_for_relink"
15213
15214 # Whether libtool must link a program against all its dependency libraries.
15215 link_all_deplibs=$link_all_deplibs_CXX
15216
15217 # Compile-time system search path for libraries
15218 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15219
15220 # Run-time system search path for libraries
15221 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15222
15223 # Fix the shell variable \$srcfile for the compiler.
15224 fix_srcfile_path=$lt_fix_srcfile_path
15225
15226 # Set to yes if exported symbols are required.
15227 always_export_symbols=$always_export_symbols_CXX
15228
15229 # The commands to list exported symbols.
15230 export_symbols_cmds=$lt_export_symbols_cmds_CXX
15231
15232 # The commands to extract the exported symbol list from a shared archive.
15233 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15234
15235 # Symbols that should not be listed in the preloaded symbols.
15236 exclude_expsyms=$lt_exclude_expsyms_CXX
15237
15238 # Symbols that must always be exported.
15239 include_expsyms=$lt_include_expsyms_CXX
15240
15241 # ### END LIBTOOL TAG CONFIG: $tagname
15242
15243 __EOF__
15244
15245
15246 else
15247   # If there is no Makefile yet, we rely on a make rule to execute
15248   # `config.status --recheck' to rerun these tests and create the
15249   # libtool script then.
15250   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15251   if test -f "$ltmain_in"; then
15252     test -f Makefile && make "$ltmain"
15253   fi
15254 fi
15255
15256
15257 ac_ext=c
15258 ac_cpp='$CPP $CPPFLAGS'
15259 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15260 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15261 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15262
15263 CC=$lt_save_CC
15264 LDCXX=$LD
15265 LD=$lt_save_LD
15266 GCC=$lt_save_GCC
15267 with_gnu_ldcxx=$with_gnu_ld
15268 with_gnu_ld=$lt_save_with_gnu_ld
15269 lt_cv_path_LDCXX=$lt_cv_path_LD
15270 lt_cv_path_LD=$lt_save_path_LD
15271 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15272 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15273
15274         else
15275           tagname=""
15276         fi
15277         ;;
15278
15279       F77)
15280         if test -n "$F77" && test "X$F77" != "Xno"; then
15281
15282 ac_ext=f
15283 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
15284 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15285 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
15286
15287
15288 archive_cmds_need_lc_F77=no
15289 allow_undefined_flag_F77=
15290 always_export_symbols_F77=no
15291 archive_expsym_cmds_F77=
15292 export_dynamic_flag_spec_F77=
15293 hardcode_direct_F77=no
15294 hardcode_libdir_flag_spec_F77=
15295 hardcode_libdir_flag_spec_ld_F77=
15296 hardcode_libdir_separator_F77=
15297 hardcode_minus_L_F77=no
15298 hardcode_automatic_F77=no
15299 module_cmds_F77=
15300 module_expsym_cmds_F77=
15301 link_all_deplibs_F77=unknown
15302 old_archive_cmds_F77=$old_archive_cmds
15303 no_undefined_flag_F77=
15304 whole_archive_flag_spec_F77=
15305 enable_shared_with_static_runtimes_F77=no
15306
15307 # Source file extension for f77 test sources.
15308 ac_ext=f
15309
15310 # Object file extension for compiled f77 test sources.
15311 objext=o
15312 objext_F77=$objext
15313
15314 # Code to be used in simple compile tests
15315 lt_simple_compile_test_code="\
15316       subroutine t
15317       return
15318       end
15319 "
15320
15321 # Code to be used in simple link tests
15322 lt_simple_link_test_code="\
15323       program t
15324       end
15325 "
15326
15327 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15328
15329 # If no C compiler was specified, use CC.
15330 LTCC=${LTCC-"$CC"}
15331
15332 # If no C compiler flags were specified, use CFLAGS.
15333 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15334
15335 # Allow CC to be a program name with arguments.
15336 compiler=$CC
15337
15338
15339 # save warnings/boilerplate of simple test code
15340 ac_outfile=conftest.$ac_objext
15341 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
15342 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15343 _lt_compiler_boilerplate=`cat conftest.err`
15344 $rm conftest*
15345
15346 ac_outfile=conftest.$ac_objext
15347 echo "$lt_simple_link_test_code" >conftest.$ac_ext
15348 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15349 _lt_linker_boilerplate=`cat conftest.err`
15350 $rm conftest*
15351
15352
15353 # Allow CC to be a program name with arguments.
15354 lt_save_CC="$CC"
15355 CC=${F77-"f77"}
15356 compiler=$CC
15357 compiler_F77=$CC
15358 for cc_temp in $compiler""; do
15359   case $cc_temp in
15360     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15361     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15362     \-*) ;;
15363     *) break;;
15364   esac
15365 done
15366 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15367
15368
15369 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
15370 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
15371 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
15372 echo "${ECHO_T}$can_build_shared" >&6; }
15373
15374 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
15375 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
15376 test "$can_build_shared" = "no" && enable_shared=no
15377
15378 # On AIX, shared libraries and static libraries use the same namespace, and
15379 # are all built from PIC.
15380 case $host_os in
15381 aix3*)
15382   test "$enable_shared" = yes && enable_static=no
15383   if test -n "$RANLIB"; then
15384     archive_cmds="$archive_cmds~\$RANLIB \$lib"
15385     postinstall_cmds='$RANLIB $lib'
15386   fi
15387   ;;
15388 aix4* | aix5*)
15389   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
15390     test "$enable_shared" = yes && enable_static=no
15391   fi
15392   ;;
15393 esac
15394 { echo "$as_me:$LINENO: result: $enable_shared" >&5
15395 echo "${ECHO_T}$enable_shared" >&6; }
15396
15397 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
15398 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
15399 # Make sure either enable_shared or enable_static is yes.
15400 test "$enable_shared" = yes || enable_static=yes
15401 { echo "$as_me:$LINENO: result: $enable_static" >&5
15402 echo "${ECHO_T}$enable_static" >&6; }
15403
15404 GCC_F77="$G77"
15405 LD_F77="$LD"
15406
15407 lt_prog_compiler_wl_F77=
15408 lt_prog_compiler_pic_F77=
15409 lt_prog_compiler_static_F77=
15410
15411 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15412 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
15413
15414   if test "$GCC" = yes; then
15415     lt_prog_compiler_wl_F77='-Wl,'
15416     lt_prog_compiler_static_F77='-static'
15417
15418     case $host_os in
15419       aix*)
15420       # All AIX code is PIC.
15421       if test "$host_cpu" = ia64; then
15422         # AIX 5 now supports IA64 processor
15423         lt_prog_compiler_static_F77='-Bstatic'
15424       fi
15425       ;;
15426
15427     amigaos*)
15428       # FIXME: we need at least 68020 code to build shared libraries, but
15429       # adding the `-m68020' flag to GCC prevents building anything better,
15430       # like `-m68040'.
15431       lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
15432       ;;
15433
15434     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15435       # PIC is the default for these OSes.
15436       ;;
15437
15438     mingw* | cygwin* | pw32* | os2*)
15439       # This hack is so that the source file can tell whether it is being
15440       # built for inclusion in a dll (and should export symbols for example).
15441       # Although the cygwin gcc ignores -fPIC, still need this for old-style
15442       # (--disable-auto-import) libraries
15443       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
15444       ;;
15445
15446     darwin* | rhapsody*)
15447       # PIC is the default on this platform
15448       # Common symbols not allowed in MH_DYLIB files
15449       lt_prog_compiler_pic_F77='-fno-common'
15450       ;;
15451
15452     interix[3-9]*)
15453       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15454       # Instead, we relocate shared libraries at runtime.
15455       ;;
15456
15457     msdosdjgpp*)
15458       # Just because we use GCC doesn't mean we suddenly get shared libraries
15459       # on systems that don't support them.
15460       lt_prog_compiler_can_build_shared_F77=no
15461       enable_shared=no
15462       ;;
15463
15464     sysv4*MP*)
15465       if test -d /usr/nec; then
15466         lt_prog_compiler_pic_F77=-Kconform_pic
15467       fi
15468       ;;
15469
15470     hpux*)
15471       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15472       # not for PA HP-UX.
15473       case $host_cpu in
15474       hppa*64*|ia64*)
15475         # +Z the default
15476         ;;
15477       *)
15478         lt_prog_compiler_pic_F77='-fPIC'
15479         ;;
15480       esac
15481       ;;
15482
15483     *)
15484       lt_prog_compiler_pic_F77='-fPIC'
15485       ;;
15486     esac
15487   else
15488     # PORTME Check for flag to pass linker flags through the system compiler.
15489     case $host_os in
15490     aix*)
15491       lt_prog_compiler_wl_F77='-Wl,'
15492       if test "$host_cpu" = ia64; then
15493         # AIX 5 now supports IA64 processor
15494         lt_prog_compiler_static_F77='-Bstatic'
15495       else
15496         lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
15497       fi
15498       ;;
15499       darwin*)
15500         # PIC is the default on this platform
15501         # Common symbols not allowed in MH_DYLIB files
15502        case $cc_basename in
15503          xlc*)
15504          lt_prog_compiler_pic_F77='-qnocommon'
15505          lt_prog_compiler_wl_F77='-Wl,'
15506          ;;
15507        esac
15508        ;;
15509
15510     mingw* | cygwin* | pw32* | os2*)
15511       # This hack is so that the source file can tell whether it is being
15512       # built for inclusion in a dll (and should export symbols for example).
15513       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
15514       ;;
15515
15516     hpux9* | hpux10* | hpux11*)
15517       lt_prog_compiler_wl_F77='-Wl,'
15518       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15519       # not for PA HP-UX.
15520       case $host_cpu in
15521       hppa*64*|ia64*)
15522         # +Z the default
15523         ;;
15524       *)
15525         lt_prog_compiler_pic_F77='+Z'
15526         ;;
15527       esac
15528       # Is there a better lt_prog_compiler_static that works with the bundled CC?
15529       lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
15530       ;;
15531
15532     irix5* | irix6* | nonstopux*)
15533       lt_prog_compiler_wl_F77='-Wl,'
15534       # PIC (with -KPIC) is the default.
15535       lt_prog_compiler_static_F77='-non_shared'
15536       ;;
15537
15538     newsos6)
15539       lt_prog_compiler_pic_F77='-KPIC'
15540       lt_prog_compiler_static_F77='-Bstatic'
15541       ;;
15542
15543     linux* | k*bsd*-gnu)
15544       case $cc_basename in
15545       icc* | ecc*)
15546         lt_prog_compiler_wl_F77='-Wl,'
15547         lt_prog_compiler_pic_F77='-KPIC'
15548         lt_prog_compiler_static_F77='-static'
15549         ;;
15550       pgcc* | pgf77* | pgf90* | pgf95*)
15551         # Portland Group compilers (*not* the Pentium gcc compiler,
15552         # which looks to be a dead project)
15553         lt_prog_compiler_wl_F77='-Wl,'
15554         lt_prog_compiler_pic_F77='-fpic'
15555         lt_prog_compiler_static_F77='-Bstatic'
15556         ;;
15557       ccc*)
15558         lt_prog_compiler_wl_F77='-Wl,'
15559         # All Alpha code is PIC.
15560         lt_prog_compiler_static_F77='-non_shared'
15561         ;;
15562       *)
15563         case `$CC -V 2>&1 | sed 5q` in
15564         *Sun\ C*)
15565           # Sun C 5.9
15566           lt_prog_compiler_pic_F77='-KPIC'
15567           lt_prog_compiler_static_F77='-Bstatic'
15568           lt_prog_compiler_wl_F77='-Wl,'
15569           ;;
15570         *Sun\ F*)
15571           # Sun Fortran 8.3 passes all unrecognized flags to the linker
15572           lt_prog_compiler_pic_F77='-KPIC'
15573           lt_prog_compiler_static_F77='-Bstatic'
15574           lt_prog_compiler_wl_F77=''
15575           ;;
15576         esac
15577         ;;
15578       esac
15579       ;;
15580
15581     osf3* | osf4* | osf5*)
15582       lt_prog_compiler_wl_F77='-Wl,'
15583       # All OSF/1 code is PIC.
15584       lt_prog_compiler_static_F77='-non_shared'
15585       ;;
15586
15587     rdos*)
15588       lt_prog_compiler_static_F77='-non_shared'
15589       ;;
15590
15591     solaris*)
15592       lt_prog_compiler_pic_F77='-KPIC'
15593       lt_prog_compiler_static_F77='-Bstatic'
15594       case $cc_basename in
15595       f77* | f90* | f95*)
15596         lt_prog_compiler_wl_F77='-Qoption ld ';;
15597       *)
15598         lt_prog_compiler_wl_F77='-Wl,';;
15599       esac
15600       ;;
15601
15602     sunos4*)
15603       lt_prog_compiler_wl_F77='-Qoption ld '
15604       lt_prog_compiler_pic_F77='-PIC'
15605       lt_prog_compiler_static_F77='-Bstatic'
15606       ;;
15607
15608     sysv4 | sysv4.2uw2* | sysv4.3*)
15609       lt_prog_compiler_wl_F77='-Wl,'
15610       lt_prog_compiler_pic_F77='-KPIC'
15611       lt_prog_compiler_static_F77='-Bstatic'
15612       ;;
15613
15614     sysv4*MP*)
15615       if test -d /usr/nec ;then
15616         lt_prog_compiler_pic_F77='-Kconform_pic'
15617         lt_prog_compiler_static_F77='-Bstatic'
15618       fi
15619       ;;
15620
15621     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15622       lt_prog_compiler_wl_F77='-Wl,'
15623       lt_prog_compiler_pic_F77='-KPIC'
15624       lt_prog_compiler_static_F77='-Bstatic'
15625       ;;
15626
15627     unicos*)
15628       lt_prog_compiler_wl_F77='-Wl,'
15629       lt_prog_compiler_can_build_shared_F77=no
15630       ;;
15631
15632     uts4*)
15633       lt_prog_compiler_pic_F77='-pic'
15634       lt_prog_compiler_static_F77='-Bstatic'
15635       ;;
15636
15637     *)
15638       lt_prog_compiler_can_build_shared_F77=no
15639       ;;
15640     esac
15641   fi
15642
15643 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
15644 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
15645
15646 #
15647 # Check to make sure the PIC flag actually works.
15648 #
15649 if test -n "$lt_prog_compiler_pic_F77"; then
15650
15651 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
15652 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
15653 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
15654   echo $ECHO_N "(cached) $ECHO_C" >&6
15655 else
15656   lt_prog_compiler_pic_works_F77=no
15657   ac_outfile=conftest.$ac_objext
15658    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15659    lt_compiler_flag="$lt_prog_compiler_pic_F77"
15660    # Insert the option either (1) after the last *FLAGS variable, or
15661    # (2) before a word containing "conftest.", or (3) at the end.
15662    # Note that $ac_compile itself does not contain backslashes and begins
15663    # with a dollar sign (not a hyphen), so the echo should work correctly.
15664    # The option is referenced via a variable to avoid confusing sed.
15665    lt_compile=`echo "$ac_compile" | $SED \
15666    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15667    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15668    -e 's:$: $lt_compiler_flag:'`
15669    (eval echo "\"\$as_me:15669: $lt_compile\"" >&5)
15670    (eval "$lt_compile" 2>conftest.err)
15671    ac_status=$?
15672    cat conftest.err >&5
15673    echo "$as_me:15673: \$? = $ac_status" >&5
15674    if (exit $ac_status) && test -s "$ac_outfile"; then
15675      # The compiler can only warn and ignore the option if not recognized
15676      # So say no if there are warnings other than the usual output.
15677      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15678      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15679      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15680        lt_prog_compiler_pic_works_F77=yes
15681      fi
15682    fi
15683    $rm conftest*
15684
15685 fi
15686 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
15687 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
15688
15689 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
15690     case $lt_prog_compiler_pic_F77 in
15691      "" | " "*) ;;
15692      *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
15693      esac
15694 else
15695     lt_prog_compiler_pic_F77=
15696      lt_prog_compiler_can_build_shared_F77=no
15697 fi
15698
15699 fi
15700 case $host_os in
15701   # For platforms which do not support PIC, -DPIC is meaningless:
15702   *djgpp*)
15703     lt_prog_compiler_pic_F77=
15704     ;;
15705   *)
15706     lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
15707     ;;
15708 esac
15709
15710 #
15711 # Check to make sure the static flag actually works.
15712 #
15713 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
15714 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15715 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
15716 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
15717   echo $ECHO_N "(cached) $ECHO_C" >&6
15718 else
15719   lt_prog_compiler_static_works_F77=no
15720    save_LDFLAGS="$LDFLAGS"
15721    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15722    echo "$lt_simple_link_test_code" > conftest.$ac_ext
15723    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15724      # The linker can only warn and ignore the option if not recognized
15725      # So say no if there are warnings
15726      if test -s conftest.err; then
15727        # Append any errors to the config.log.
15728        cat conftest.err 1>&5
15729        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
15730        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15731        if diff conftest.exp conftest.er2 >/dev/null; then
15732          lt_prog_compiler_static_works_F77=yes
15733        fi
15734      else
15735        lt_prog_compiler_static_works_F77=yes
15736      fi
15737    fi
15738    $rm conftest*
15739    LDFLAGS="$save_LDFLAGS"
15740
15741 fi
15742 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
15743 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
15744
15745 if test x"$lt_prog_compiler_static_works_F77" = xyes; then
15746     :
15747 else
15748     lt_prog_compiler_static_F77=
15749 fi
15750
15751
15752 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15753 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
15754 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
15755   echo $ECHO_N "(cached) $ECHO_C" >&6
15756 else
15757   lt_cv_prog_compiler_c_o_F77=no
15758    $rm -r conftest 2>/dev/null
15759    mkdir conftest
15760    cd conftest
15761    mkdir out
15762    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15763
15764    lt_compiler_flag="-o out/conftest2.$ac_objext"
15765    # Insert the option either (1) after the last *FLAGS variable, or
15766    # (2) before a word containing "conftest.", or (3) at the end.
15767    # Note that $ac_compile itself does not contain backslashes and begins
15768    # with a dollar sign (not a hyphen), so the echo should work correctly.
15769    lt_compile=`echo "$ac_compile" | $SED \
15770    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15771    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15772    -e 's:$: $lt_compiler_flag:'`
15773    (eval echo "\"\$as_me:15773: $lt_compile\"" >&5)
15774    (eval "$lt_compile" 2>out/conftest.err)
15775    ac_status=$?
15776    cat out/conftest.err >&5
15777    echo "$as_me:15777: \$? = $ac_status" >&5
15778    if (exit $ac_status) && test -s out/conftest2.$ac_objext
15779    then
15780      # The compiler can only warn and ignore the option if not recognized
15781      # So say no if there are warnings
15782      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
15783      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15784      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15785        lt_cv_prog_compiler_c_o_F77=yes
15786      fi
15787    fi
15788    chmod u+w . 2>&5
15789    $rm conftest*
15790    # SGI C++ compiler will create directory out/ii_files/ for
15791    # template instantiation
15792    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15793    $rm out/* && rmdir out
15794    cd ..
15795    rmdir conftest
15796    $rm conftest*
15797
15798 fi
15799 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
15800 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
15801
15802
15803 hard_links="nottested"
15804 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
15805   # do not overwrite the value of need_locks provided by the user
15806   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15807 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
15808   hard_links=yes
15809   $rm conftest*
15810   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15811   touch conftest.a
15812   ln conftest.a conftest.b 2>&5 || hard_links=no
15813   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15814   { echo "$as_me:$LINENO: result: $hard_links" >&5
15815 echo "${ECHO_T}$hard_links" >&6; }
15816   if test "$hard_links" = no; then
15817     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15818 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15819     need_locks=warn
15820   fi
15821 else
15822   need_locks=no
15823 fi
15824
15825 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15826 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
15827
15828   runpath_var=
15829   allow_undefined_flag_F77=
15830   enable_shared_with_static_runtimes_F77=no
15831   archive_cmds_F77=
15832   archive_expsym_cmds_F77=
15833   old_archive_From_new_cmds_F77=
15834   old_archive_from_expsyms_cmds_F77=
15835   export_dynamic_flag_spec_F77=
15836   whole_archive_flag_spec_F77=
15837   thread_safe_flag_spec_F77=
15838   hardcode_libdir_flag_spec_F77=
15839   hardcode_libdir_flag_spec_ld_F77=
15840   hardcode_libdir_separator_F77=
15841   hardcode_direct_F77=no
15842   hardcode_minus_L_F77=no
15843   hardcode_shlibpath_var_F77=unsupported
15844   link_all_deplibs_F77=unknown
15845   hardcode_automatic_F77=no
15846   module_cmds_F77=
15847   module_expsym_cmds_F77=
15848   always_export_symbols_F77=no
15849   export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15850   # include_expsyms should be a list of space-separated symbols to be *always*
15851   # included in the symbol list
15852   include_expsyms_F77=
15853   # exclude_expsyms can be an extended regexp of symbols to exclude
15854   # it will be wrapped by ` (' and `)$', so one must not match beginning or
15855   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15856   # as well as any symbol that contains `d'.
15857   exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
15858   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15859   # platforms (ab)use it in PIC code, but their linkers get confused if
15860   # the symbol is explicitly referenced.  Since portable code cannot
15861   # rely on this symbol name, it's probably fine to never include it in
15862   # preloaded symbol tables.
15863   extract_expsyms_cmds=
15864   # Just being paranoid about ensuring that cc_basename is set.
15865   for cc_temp in $compiler""; do
15866   case $cc_temp in
15867     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15868     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15869     \-*) ;;
15870     *) break;;
15871   esac
15872 done
15873 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15874
15875   case $host_os in
15876   cygwin* | mingw* | pw32*)
15877     # FIXME: the MSVC++ port hasn't been tested in a loooong time
15878     # When not using gcc, we currently assume that we are using
15879     # Microsoft Visual C++.
15880     if test "$GCC" != yes; then
15881       with_gnu_ld=no
15882     fi
15883     ;;
15884   interix*)
15885     # we just hope/assume this is gcc and not c89 (= MSVC++)
15886     with_gnu_ld=yes
15887     ;;
15888   openbsd*)
15889     with_gnu_ld=no
15890     ;;
15891   esac
15892
15893   ld_shlibs_F77=yes
15894   if test "$with_gnu_ld" = yes; then
15895     # If archive_cmds runs LD, not CC, wlarc should be empty
15896     wlarc='${wl}'
15897
15898     # Set some defaults for GNU ld with shared library support. These
15899     # are reset later if shared libraries are not supported. Putting them
15900     # here allows them to be overridden if necessary.
15901     runpath_var=LD_RUN_PATH
15902     hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
15903     export_dynamic_flag_spec_F77='${wl}--export-dynamic'
15904     # ancient GNU ld didn't support --whole-archive et. al.
15905     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15906         whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15907       else
15908         whole_archive_flag_spec_F77=
15909     fi
15910     supports_anon_versioning=no
15911     case `$LD -v 2>/dev/null` in
15912       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15913       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15914       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15915       *\ 2.11.*) ;; # other 2.11 versions
15916       *) supports_anon_versioning=yes ;;
15917     esac
15918
15919     # See if GNU ld supports shared libraries.
15920     case $host_os in
15921     aix3* | aix4* | aix5*)
15922       # On AIX/PPC, the GNU linker is very broken
15923       if test "$host_cpu" != ia64; then
15924         ld_shlibs_F77=no
15925         cat <<EOF 1>&2
15926
15927 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
15928 *** to be unable to reliably create shared libraries on AIX.
15929 *** Therefore, libtool is disabling shared libraries support.  If you
15930 *** really care for shared libraries, you may want to modify your PATH
15931 *** so that a non-GNU linker is found, and then restart.
15932
15933 EOF
15934       fi
15935       ;;
15936
15937     amigaos*)
15938       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)'
15939       hardcode_libdir_flag_spec_F77='-L$libdir'
15940       hardcode_minus_L_F77=yes
15941
15942       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15943       # that the semantics of dynamic libraries on AmigaOS, at least up
15944       # to version 4, is to share data among multiple programs linked
15945       # with the same dynamic library.  Since this doesn't match the
15946       # behavior of shared libraries on other platforms, we can't use
15947       # them.
15948       ld_shlibs_F77=no
15949       ;;
15950
15951     beos*)
15952       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15953         allow_undefined_flag_F77=unsupported
15954         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15955         # support --undefined.  This deserves some investigation.  FIXME
15956         archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15957       else
15958         ld_shlibs_F77=no
15959       fi
15960       ;;
15961
15962     cygwin* | mingw* | pw32*)
15963       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
15964       # as there is no search path for DLLs.
15965       hardcode_libdir_flag_spec_F77='-L$libdir'
15966       allow_undefined_flag_F77=unsupported
15967       always_export_symbols_F77=no
15968       enable_shared_with_static_runtimes_F77=yes
15969       export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
15970
15971       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15972         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15973         # If the export-symbols file already is a .def file (1st line
15974         # is EXPORTS), use it as is; otherwise, prepend...
15975         archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15976           cp $export_symbols $output_objdir/$soname.def;
15977         else
15978           echo EXPORTS > $output_objdir/$soname.def;
15979           cat $export_symbols >> $output_objdir/$soname.def;
15980         fi~
15981         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15982       else
15983         ld_shlibs_F77=no
15984       fi
15985       ;;
15986
15987     interix[3-9]*)
15988       hardcode_direct_F77=no
15989       hardcode_shlibpath_var_F77=no
15990       hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15991       export_dynamic_flag_spec_F77='${wl}-E'
15992       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15993       # Instead, shared libraries are loaded at an image base (0x10000000 by
15994       # default) and relocated if they conflict, which is a slow very memory
15995       # consuming and fragmenting process.  To avoid this, we pick a random,
15996       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15997       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
15998       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'
15999       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'
16000       ;;
16001
16002     gnu* | linux* | k*bsd*-gnu)
16003       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16004         tmp_addflag=
16005         case $cc_basename,$host_cpu in
16006         pgcc*)                          # Portland Group C compiler
16007           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'
16008           tmp_addflag=' $pic_flag'
16009           ;;
16010         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
16011           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'
16012           tmp_addflag=' $pic_flag -Mnomain' ;;
16013         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
16014           tmp_addflag=' -i_dynamic' ;;
16015         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
16016           tmp_addflag=' -i_dynamic -nofor_main' ;;
16017         ifc* | ifort*)                  # Intel Fortran compiler
16018           tmp_addflag=' -nofor_main' ;;
16019         esac
16020         case `$CC -V 2>&1 | sed 5q` in
16021         *Sun\ C*)                       # Sun C 5.9
16022           whole_archive_flag_spec_F77='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
16023           tmp_sharedflag='-G' ;;
16024         *Sun\ F*)                       # Sun Fortran 8.3
16025           tmp_sharedflag='-G' ;;
16026         *)
16027           tmp_sharedflag='-shared' ;;
16028         esac
16029         archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16030
16031         if test $supports_anon_versioning = yes; then
16032           archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
16033   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16034   $echo "local: *; };" >> $output_objdir/$libname.ver~
16035           $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16036         fi
16037       else
16038         ld_shlibs_F77=no
16039       fi
16040       ;;
16041
16042     netbsd*)
16043       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16044         archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16045         wlarc=
16046       else
16047         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16048         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16049       fi
16050       ;;
16051
16052     solaris*)
16053       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16054         ld_shlibs_F77=no
16055         cat <<EOF 1>&2
16056
16057 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16058 *** create shared libraries on Solaris systems.  Therefore, libtool
16059 *** is disabling shared libraries support.  We urge you to upgrade GNU
16060 *** binutils to release 2.9.1 or newer.  Another option is to modify
16061 *** your PATH or compiler configuration so that the native linker is
16062 *** used, and then restart.
16063
16064 EOF
16065       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16066         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16067         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16068       else
16069         ld_shlibs_F77=no
16070       fi
16071       ;;
16072
16073     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
16074       case `$LD -v 2>&1` in
16075         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
16076         ld_shlibs_F77=no
16077         cat <<_LT_EOF 1>&2
16078
16079 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
16080 *** reliably create shared libraries on SCO systems.  Therefore, libtool
16081 *** is disabling shared libraries support.  We urge you to upgrade GNU
16082 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
16083 *** your PATH or compiler configuration so that the native linker is
16084 *** used, and then restart.
16085
16086 _LT_EOF
16087         ;;
16088         *)
16089           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16090             hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
16091             archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
16092             archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
16093           else
16094             ld_shlibs_F77=no
16095           fi
16096         ;;
16097       esac
16098       ;;
16099
16100     sunos4*)
16101       archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16102       wlarc=
16103       hardcode_direct_F77=yes
16104       hardcode_shlibpath_var_F77=no
16105       ;;
16106
16107     *)
16108       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16109         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16110         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16111       else
16112         ld_shlibs_F77=no
16113       fi
16114       ;;
16115     esac
16116
16117     if test "$ld_shlibs_F77" = no; then
16118       runpath_var=
16119       hardcode_libdir_flag_spec_F77=
16120       export_dynamic_flag_spec_F77=
16121       whole_archive_flag_spec_F77=
16122     fi
16123   else
16124     # PORTME fill in a description of your system's linker (not GNU ld)
16125     case $host_os in
16126     aix3*)
16127       allow_undefined_flag_F77=unsupported
16128       always_export_symbols_F77=yes
16129       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'
16130       # Note: this linker hardcodes the directories in LIBPATH if there
16131       # are no directories specified by -L.
16132       hardcode_minus_L_F77=yes
16133       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
16134         # Neither direct hardcoding nor static linking is supported with a
16135         # broken collect2.
16136         hardcode_direct_F77=unsupported
16137       fi
16138       ;;
16139
16140     aix4* | aix5*)
16141       if test "$host_cpu" = ia64; then
16142         # On IA64, the linker does run time linking by default, so we don't
16143         # have to do anything special.
16144         aix_use_runtimelinking=no
16145         exp_sym_flag='-Bexport'
16146         no_entry_flag=""
16147       else
16148         # If we're using GNU nm, then we don't want the "-C" option.
16149         # -C means demangle to AIX nm, but means don't demangle with GNU nm
16150         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16151           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'
16152         else
16153           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'
16154         fi
16155         aix_use_runtimelinking=no
16156
16157         # Test if we are trying to use run time linking or normal
16158         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16159         # need to do runtime linking.
16160         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
16161           for ld_flag in $LDFLAGS; do
16162           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16163             aix_use_runtimelinking=yes
16164             break
16165           fi
16166           done
16167           ;;
16168         esac
16169
16170         exp_sym_flag='-bexport'
16171         no_entry_flag='-bnoentry'
16172       fi
16173
16174       # When large executables or shared objects are built, AIX ld can
16175       # have problems creating the table of contents.  If linking a library
16176       # or program results in "error TOC overflow" add -mminimal-toc to
16177       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
16178       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16179
16180       archive_cmds_F77=''
16181       hardcode_direct_F77=yes
16182       hardcode_libdir_separator_F77=':'
16183       link_all_deplibs_F77=yes
16184
16185       if test "$GCC" = yes; then
16186         case $host_os in aix4.[012]|aix4.[012].*)
16187         # We only want to do this on AIX 4.2 and lower, the check
16188         # below for broken collect2 doesn't work under 4.3+
16189           collect2name=`${CC} -print-prog-name=collect2`
16190           if test -f "$collect2name" && \
16191            strings "$collect2name" | grep resolve_lib_name >/dev/null
16192           then
16193           # We have reworked collect2
16194           :
16195           else
16196           # We have old collect2
16197           hardcode_direct_F77=unsupported
16198           # It fails to find uninstalled libraries when the uninstalled
16199           # path is not listed in the libpath.  Setting hardcode_minus_L
16200           # to unsupported forces relinking
16201           hardcode_minus_L_F77=yes
16202           hardcode_libdir_flag_spec_F77='-L$libdir'
16203           hardcode_libdir_separator_F77=
16204           fi
16205           ;;
16206         esac
16207         shared_flag='-shared'
16208         if test "$aix_use_runtimelinking" = yes; then
16209           shared_flag="$shared_flag "'${wl}-G'
16210         fi
16211       else
16212         # not using gcc
16213         if test "$host_cpu" = ia64; then
16214         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16215         # chokes on -Wl,-G. The following line is correct:
16216           shared_flag='-G'
16217         else
16218           if test "$aix_use_runtimelinking" = yes; then
16219             shared_flag='${wl}-G'
16220           else
16221             shared_flag='${wl}-bM:SRE'
16222           fi
16223         fi
16224       fi
16225
16226       # It seems that -bexpall does not export symbols beginning with
16227       # underscore (_), so it is better to generate a list of symbols to export.
16228       always_export_symbols_F77=yes
16229       if test "$aix_use_runtimelinking" = yes; then
16230         # Warning - without using the other runtime loading flags (-brtl),
16231         # -berok will link without error, but may produce a broken library.
16232         allow_undefined_flag_F77='-berok'
16233        # Determine the default libpath from the value encoded in an empty executable.
16234        cat >conftest.$ac_ext <<_ACEOF
16235       program main
16236
16237       end
16238 _ACEOF
16239 rm -f conftest.$ac_objext conftest$ac_exeext
16240 if { (ac_try="$ac_link"
16241 case "(($ac_try" in
16242   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16243   *) ac_try_echo=$ac_try;;
16244 esac
16245 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16246   (eval "$ac_link") 2>conftest.er1
16247   ac_status=$?
16248   grep -v '^ *+' conftest.er1 >conftest.err
16249   rm -f conftest.er1
16250   cat conftest.err >&5
16251   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16252   (exit $ac_status); } && {
16253          test -z "$ac_f77_werror_flag" ||
16254          test ! -s conftest.err
16255        } && test -s conftest$ac_exeext &&
16256        $as_test_x conftest$ac_exeext; then
16257
16258 lt_aix_libpath_sed='
16259     /Import File Strings/,/^$/ {
16260         /^0/ {
16261             s/^0  *\(.*\)$/\1/
16262             p
16263         }
16264     }'
16265 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16266 # Check for a 64-bit object if we didn't find anything.
16267 if test -z "$aix_libpath"; then
16268   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16269 fi
16270 else
16271   echo "$as_me: failed program was:" >&5
16272 sed 's/^/| /' conftest.$ac_ext >&5
16273
16274
16275 fi
16276
16277 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16278       conftest$ac_exeext conftest.$ac_ext
16279 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16280
16281        hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
16282         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"
16283        else
16284         if test "$host_cpu" = ia64; then
16285           hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
16286           allow_undefined_flag_F77="-z nodefs"
16287           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"
16288         else
16289          # Determine the default libpath from the value encoded in an empty executable.
16290          cat >conftest.$ac_ext <<_ACEOF
16291       program main
16292
16293       end
16294 _ACEOF
16295 rm -f conftest.$ac_objext conftest$ac_exeext
16296 if { (ac_try="$ac_link"
16297 case "(($ac_try" in
16298   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16299   *) ac_try_echo=$ac_try;;
16300 esac
16301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16302   (eval "$ac_link") 2>conftest.er1
16303   ac_status=$?
16304   grep -v '^ *+' conftest.er1 >conftest.err
16305   rm -f conftest.er1
16306   cat conftest.err >&5
16307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16308   (exit $ac_status); } && {
16309          test -z "$ac_f77_werror_flag" ||
16310          test ! -s conftest.err
16311        } && test -s conftest$ac_exeext &&
16312        $as_test_x conftest$ac_exeext; then
16313
16314 lt_aix_libpath_sed='
16315     /Import File Strings/,/^$/ {
16316         /^0/ {
16317             s/^0  *\(.*\)$/\1/
16318             p
16319         }
16320     }'
16321 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16322 # Check for a 64-bit object if we didn't find anything.
16323 if test -z "$aix_libpath"; then
16324   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16325 fi
16326 else
16327   echo "$as_me: failed program was:" >&5
16328 sed 's/^/| /' conftest.$ac_ext >&5
16329
16330
16331 fi
16332
16333 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16334       conftest$ac_exeext conftest.$ac_ext
16335 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16336
16337          hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
16338           # Warning - without using the other run time loading flags,
16339           # -berok will link without error, but may produce a broken library.
16340           no_undefined_flag_F77=' ${wl}-bernotok'
16341           allow_undefined_flag_F77=' ${wl}-berok'
16342           # Exported symbols can be pulled into shared objects from archives
16343           whole_archive_flag_spec_F77='$convenience'
16344           archive_cmds_need_lc_F77=yes
16345           # This is similar to how AIX traditionally builds its shared libraries.
16346           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'
16347         fi
16348       fi
16349       ;;
16350
16351     amigaos*)
16352       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)'
16353       hardcode_libdir_flag_spec_F77='-L$libdir'
16354       hardcode_minus_L_F77=yes
16355       # see comment about different semantics on the GNU ld section
16356       ld_shlibs_F77=no
16357       ;;
16358
16359     bsdi[45]*)
16360       export_dynamic_flag_spec_F77=-rdynamic
16361       ;;
16362
16363     cygwin* | mingw* | pw32*)
16364       # When not using gcc, we currently assume that we are using
16365       # Microsoft Visual C++.
16366       # hardcode_libdir_flag_spec is actually meaningless, as there is
16367       # no search path for DLLs.
16368       hardcode_libdir_flag_spec_F77=' '
16369       allow_undefined_flag_F77=unsupported
16370       # Tell ltmain to make .lib files, not .a files.
16371       libext=lib
16372       # Tell ltmain to make .dll files, not .so files.
16373       shrext_cmds=".dll"
16374       # FIXME: Setting linknames here is a bad hack.
16375       archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
16376       # The linker will automatically build a .lib file if we build a DLL.
16377       old_archive_From_new_cmds_F77='true'
16378       # FIXME: Should let the user specify the lib program.
16379       old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs'
16380       fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
16381       enable_shared_with_static_runtimes_F77=yes
16382       ;;
16383
16384     darwin* | rhapsody*)
16385       case $host_os in
16386         rhapsody* | darwin1.[012])
16387          allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
16388          ;;
16389        *) # Darwin 1.3 on
16390          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16391            allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16392          else
16393            case ${MACOSX_DEPLOYMENT_TARGET} in
16394              10.[012])
16395                allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16396                ;;
16397              10.*)
16398                allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
16399                ;;
16400            esac
16401          fi
16402          ;;
16403       esac
16404       archive_cmds_need_lc_F77=no
16405       hardcode_direct_F77=no
16406       hardcode_automatic_F77=yes
16407       hardcode_shlibpath_var_F77=unsupported
16408       whole_archive_flag_spec_F77=''
16409       link_all_deplibs_F77=yes
16410     if test "$GCC" = yes ; then
16411         output_verbose_link_cmd='echo'
16412         archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16413       module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16414       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16415       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}'
16416       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}'
16417     else
16418       case $cc_basename in
16419         xlc*)
16420          output_verbose_link_cmd='echo'
16421          archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
16422          module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16423           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16424          archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16425           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}'
16426           ;;
16427        *)
16428          ld_shlibs_F77=no
16429           ;;
16430       esac
16431     fi
16432       ;;
16433
16434     dgux*)
16435       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16436       hardcode_libdir_flag_spec_F77='-L$libdir'
16437       hardcode_shlibpath_var_F77=no
16438       ;;
16439
16440     freebsd1*)
16441       ld_shlibs_F77=no
16442       ;;
16443
16444     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16445     # support.  Future versions do this automatically, but an explicit c++rt0.o
16446     # does not break anything, and helps significantly (at the cost of a little
16447     # extra space).
16448     freebsd2.2*)
16449       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16450       hardcode_libdir_flag_spec_F77='-R$libdir'
16451       hardcode_direct_F77=yes
16452       hardcode_shlibpath_var_F77=no
16453       ;;
16454
16455     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16456     freebsd2*)
16457       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16458       hardcode_direct_F77=yes
16459       hardcode_minus_L_F77=yes
16460       hardcode_shlibpath_var_F77=no
16461       ;;
16462
16463     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16464     freebsd* | dragonfly*)
16465       archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16466       hardcode_libdir_flag_spec_F77='-R$libdir'
16467       hardcode_direct_F77=yes
16468       hardcode_shlibpath_var_F77=no
16469       ;;
16470
16471     hpux9*)
16472       if test "$GCC" = yes; then
16473         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'
16474       else
16475         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'
16476       fi
16477       hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
16478       hardcode_libdir_separator_F77=:
16479       hardcode_direct_F77=yes
16480
16481       # hardcode_minus_L: Not really in the search PATH,
16482       # but as the default location of the library.
16483       hardcode_minus_L_F77=yes
16484       export_dynamic_flag_spec_F77='${wl}-E'
16485       ;;
16486
16487     hpux10*)
16488       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16489         archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16490       else
16491         archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16492       fi
16493       if test "$with_gnu_ld" = no; then
16494         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
16495         hardcode_libdir_separator_F77=:
16496
16497         hardcode_direct_F77=yes
16498         export_dynamic_flag_spec_F77='${wl}-E'
16499
16500         # hardcode_minus_L: Not really in the search PATH,
16501         # but as the default location of the library.
16502         hardcode_minus_L_F77=yes
16503       fi
16504       ;;
16505
16506     hpux11*)
16507       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16508         case $host_cpu in
16509         hppa*64*)
16510           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16511           ;;
16512         ia64*)
16513           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16514           ;;
16515         *)
16516           archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16517           ;;
16518         esac
16519       else
16520         case $host_cpu in
16521         hppa*64*)
16522           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16523           ;;
16524         ia64*)
16525           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16526           ;;
16527         *)
16528           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16529           ;;
16530         esac
16531       fi
16532       if test "$with_gnu_ld" = no; then
16533         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
16534         hardcode_libdir_separator_F77=:
16535
16536         case $host_cpu in
16537         hppa*64*|ia64*)
16538           hardcode_libdir_flag_spec_ld_F77='+b $libdir'
16539           hardcode_direct_F77=no
16540           hardcode_shlibpath_var_F77=no
16541           ;;
16542         *)
16543           hardcode_direct_F77=yes
16544           export_dynamic_flag_spec_F77='${wl}-E'
16545
16546           # hardcode_minus_L: Not really in the search PATH,
16547           # but as the default location of the library.
16548           hardcode_minus_L_F77=yes
16549           ;;
16550         esac
16551       fi
16552       ;;
16553
16554     irix5* | irix6* | nonstopux*)
16555       if test "$GCC" = yes; then
16556         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'
16557       else
16558         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'
16559         hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
16560       fi
16561       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16562       hardcode_libdir_separator_F77=:
16563       link_all_deplibs_F77=yes
16564       ;;
16565
16566     netbsd*)
16567       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16568         archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
16569       else
16570         archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
16571       fi
16572       hardcode_libdir_flag_spec_F77='-R$libdir'
16573       hardcode_direct_F77=yes
16574       hardcode_shlibpath_var_F77=no
16575       ;;
16576
16577     newsos6)
16578       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16579       hardcode_direct_F77=yes
16580       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16581       hardcode_libdir_separator_F77=:
16582       hardcode_shlibpath_var_F77=no
16583       ;;
16584
16585     openbsd*)
16586       if test -f /usr/libexec/ld.so; then
16587         hardcode_direct_F77=yes
16588         hardcode_shlibpath_var_F77=no
16589         if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16590           archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16591           archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16592           hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
16593           export_dynamic_flag_spec_F77='${wl}-E'
16594         else
16595           case $host_os in
16596            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16597              archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16598              hardcode_libdir_flag_spec_F77='-R$libdir'
16599              ;;
16600            *)
16601              archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16602              hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
16603              ;;
16604           esac
16605         fi
16606       else
16607         ld_shlibs_F77=no
16608       fi
16609       ;;
16610
16611     os2*)
16612       hardcode_libdir_flag_spec_F77='-L$libdir'
16613       hardcode_minus_L_F77=yes
16614       allow_undefined_flag_F77=unsupported
16615       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'
16616       old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16617       ;;
16618
16619     osf3*)
16620       if test "$GCC" = yes; then
16621         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
16622         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'
16623       else
16624         allow_undefined_flag_F77=' -expect_unresolved \*'
16625         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'
16626       fi
16627       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16628       hardcode_libdir_separator_F77=:
16629       ;;
16630
16631     osf4* | osf5*)      # as osf3* with the addition of -msym flag
16632       if test "$GCC" = yes; then
16633         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
16634         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'
16635         hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16636       else
16637         allow_undefined_flag_F77=' -expect_unresolved \*'
16638         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'
16639         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~
16640         $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'
16641
16642         # Both c and cxx compiler support -rpath directly
16643         hardcode_libdir_flag_spec_F77='-rpath $libdir'
16644       fi
16645       hardcode_libdir_separator_F77=:
16646       ;;
16647
16648     solaris*)
16649       no_undefined_flag_F77=' -z text'
16650       if test "$GCC" = yes; then
16651         wlarc='${wl}'
16652         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16653         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16654           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16655       else
16656         wlarc=''
16657         archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16658         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16659         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16660       fi
16661       hardcode_libdir_flag_spec_F77='-R$libdir'
16662       hardcode_shlibpath_var_F77=no
16663       case $host_os in
16664       solaris2.[0-5] | solaris2.[0-5].*) ;;
16665       *)
16666         # The compiler driver will combine and reorder linker options,
16667         # but understands `-z linker_flag'.  GCC discards it without `$wl',
16668         # but is careful enough not to reorder.
16669         # Supported since Solaris 2.6 (maybe 2.5.1?)
16670         if test "$GCC" = yes; then
16671           whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
16672         else
16673           whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract'
16674         fi
16675         ;;
16676       esac
16677       link_all_deplibs_F77=yes
16678       ;;
16679
16680     sunos4*)
16681       if test "x$host_vendor" = xsequent; then
16682         # Use $CC to link under sequent, because it throws in some extra .o
16683         # files that make .init and .fini sections work.
16684         archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16685       else
16686         archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16687       fi
16688       hardcode_libdir_flag_spec_F77='-L$libdir'
16689       hardcode_direct_F77=yes
16690       hardcode_minus_L_F77=yes
16691       hardcode_shlibpath_var_F77=no
16692       ;;
16693
16694     sysv4)
16695       case $host_vendor in
16696         sni)
16697           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16698           hardcode_direct_F77=yes # is this really true???
16699         ;;
16700         siemens)
16701           ## LD is ld it makes a PLAMLIB
16702           ## CC just makes a GrossModule.
16703           archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16704           reload_cmds_F77='$CC -r -o $output$reload_objs'
16705           hardcode_direct_F77=no
16706         ;;
16707         motorola)
16708           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16709           hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
16710         ;;
16711       esac
16712       runpath_var='LD_RUN_PATH'
16713       hardcode_shlibpath_var_F77=no
16714       ;;
16715
16716     sysv4.3*)
16717       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16718       hardcode_shlibpath_var_F77=no
16719       export_dynamic_flag_spec_F77='-Bexport'
16720       ;;
16721
16722     sysv4*MP*)
16723       if test -d /usr/nec; then
16724         archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16725         hardcode_shlibpath_var_F77=no
16726         runpath_var=LD_RUN_PATH
16727         hardcode_runpath_var=yes
16728         ld_shlibs_F77=yes
16729       fi
16730       ;;
16731
16732     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
16733       no_undefined_flag_F77='${wl}-z,text'
16734       archive_cmds_need_lc_F77=no
16735       hardcode_shlibpath_var_F77=no
16736       runpath_var='LD_RUN_PATH'
16737
16738       if test "$GCC" = yes; then
16739         archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16740         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16741       else
16742         archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16743         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16744       fi
16745       ;;
16746
16747     sysv5* | sco3.2v5* | sco5v6*)
16748       # Note: We can NOT use -z defs as we might desire, because we do not
16749       # link with -lc, and that would cause any symbols used from libc to
16750       # always be unresolved, which means just about no library would
16751       # ever link correctly.  If we're not using GNU ld we use -z text
16752       # though, which does catch some bad symbols but isn't as heavy-handed
16753       # as -z defs.
16754       no_undefined_flag_F77='${wl}-z,text'
16755       allow_undefined_flag_F77='${wl}-z,nodefs'
16756       archive_cmds_need_lc_F77=no
16757       hardcode_shlibpath_var_F77=no
16758       hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
16759       hardcode_libdir_separator_F77=':'
16760       link_all_deplibs_F77=yes
16761       export_dynamic_flag_spec_F77='${wl}-Bexport'
16762       runpath_var='LD_RUN_PATH'
16763
16764       if test "$GCC" = yes; then
16765         archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16766         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16767       else
16768         archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16769         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16770       fi
16771       ;;
16772
16773     uts4*)
16774       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16775       hardcode_libdir_flag_spec_F77='-L$libdir'
16776       hardcode_shlibpath_var_F77=no
16777       ;;
16778
16779     *)
16780       ld_shlibs_F77=no
16781       ;;
16782     esac
16783   fi
16784
16785 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
16786 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
16787 test "$ld_shlibs_F77" = no && can_build_shared=no
16788
16789 #
16790 # Do we need to explicitly link libc?
16791 #
16792 case "x$archive_cmds_need_lc_F77" in
16793 x|xyes)
16794   # Assume -lc should be added
16795   archive_cmds_need_lc_F77=yes
16796
16797   if test "$enable_shared" = yes && test "$GCC" = yes; then
16798     case $archive_cmds_F77 in
16799     *'~'*)
16800       # FIXME: we may have to deal with multi-command sequences.
16801       ;;
16802     '$CC '*)
16803       # Test whether the compiler implicitly links with -lc since on some
16804       # systems, -lgcc has to come before -lc. If gcc already passes -lc
16805       # to ld, don't add -lc before -lgcc.
16806       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16807 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
16808       $rm conftest*
16809       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16810
16811       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16812   (eval $ac_compile) 2>&5
16813   ac_status=$?
16814   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16815   (exit $ac_status); } 2>conftest.err; then
16816         soname=conftest
16817         lib=conftest
16818         libobjs=conftest.$ac_objext
16819         deplibs=
16820         wl=$lt_prog_compiler_wl_F77
16821         pic_flag=$lt_prog_compiler_pic_F77
16822         compiler_flags=-v
16823         linker_flags=-v
16824         verstring=
16825         output_objdir=.
16826         libname=conftest
16827         lt_save_allow_undefined_flag=$allow_undefined_flag_F77
16828         allow_undefined_flag_F77=
16829         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16830   (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16831   ac_status=$?
16832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16833   (exit $ac_status); }
16834         then
16835           archive_cmds_need_lc_F77=no
16836         else
16837           archive_cmds_need_lc_F77=yes
16838         fi
16839         allow_undefined_flag_F77=$lt_save_allow_undefined_flag
16840       else
16841         cat conftest.err 1>&5
16842       fi
16843       $rm conftest*
16844       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
16845 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
16846       ;;
16847     esac
16848   fi
16849   ;;
16850 esac
16851
16852 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16853 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
16854 library_names_spec=
16855 libname_spec='lib$name'
16856 soname_spec=
16857 shrext_cmds=".so"
16858 postinstall_cmds=
16859 postuninstall_cmds=
16860 finish_cmds=
16861 finish_eval=
16862 shlibpath_var=
16863 shlibpath_overrides_runpath=unknown
16864 version_type=none
16865 dynamic_linker="$host_os ld.so"
16866 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16867
16868 need_lib_prefix=unknown
16869 hardcode_into_libs=no
16870
16871 # when you set need_version to no, make sure it does not cause -set_version
16872 # flags to be left without arguments
16873 need_version=unknown
16874
16875 case $host_os in
16876 aix3*)
16877   version_type=linux
16878   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16879   shlibpath_var=LIBPATH
16880
16881   # AIX 3 has no versioning support, so we append a major version to the name.
16882   soname_spec='${libname}${release}${shared_ext}$major'
16883   ;;
16884
16885 aix4* | aix5*)
16886   version_type=linux
16887   need_lib_prefix=no
16888   need_version=no
16889   hardcode_into_libs=yes
16890   if test "$host_cpu" = ia64; then
16891     # AIX 5 supports IA64
16892     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16893     shlibpath_var=LD_LIBRARY_PATH
16894   else
16895     # With GCC up to 2.95.x, collect2 would create an import file
16896     # for dependence libraries.  The import file would start with
16897     # the line `#! .'.  This would cause the generated library to
16898     # depend on `.', always an invalid library.  This was fixed in
16899     # development snapshots of GCC prior to 3.0.
16900     case $host_os in
16901       aix4 | aix4.[01] | aix4.[01].*)
16902       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16903            echo ' yes '
16904            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16905         :
16906       else
16907         can_build_shared=no
16908       fi
16909       ;;
16910     esac
16911     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16912     # soname into executable. Probably we can add versioning support to
16913     # collect2, so additional links can be useful in future.
16914     if test "$aix_use_runtimelinking" = yes; then
16915       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16916       # instead of lib<name>.a to let people know that these are not
16917       # typical AIX shared libraries.
16918       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16919     else
16920       # We preserve .a as extension for shared libraries through AIX4.2
16921       # and later when we are not doing run time linking.
16922       library_names_spec='${libname}${release}.a $libname.a'
16923       soname_spec='${libname}${release}${shared_ext}$major'
16924     fi
16925     shlibpath_var=LIBPATH
16926   fi
16927   ;;
16928
16929 amigaos*)
16930   library_names_spec='$libname.ixlibrary $libname.a'
16931   # Create ${libname}_ixlibrary.a entries in /sys/libs.
16932   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'
16933   ;;
16934
16935 beos*)
16936   library_names_spec='${libname}${shared_ext}'
16937   dynamic_linker="$host_os ld.so"
16938   shlibpath_var=LIBRARY_PATH
16939   ;;
16940
16941 bsdi[45]*)
16942   version_type=linux
16943   need_version=no
16944   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16945   soname_spec='${libname}${release}${shared_ext}$major'
16946   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16947   shlibpath_var=LD_LIBRARY_PATH
16948   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16949   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16950   # the default ld.so.conf also contains /usr/contrib/lib and
16951   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16952   # libtool to hard-code these into programs
16953   ;;
16954
16955 cygwin* | mingw* | pw32*)
16956   version_type=windows
16957   shrext_cmds=".dll"
16958   need_version=no
16959   need_lib_prefix=no
16960
16961   case $GCC,$host_os in
16962   yes,cygwin* | yes,mingw* | yes,pw32*)
16963     library_names_spec='$libname.dll.a'
16964     # DLL is installed to $(libdir)/../bin by postinstall_cmds
16965     postinstall_cmds='base_file=`basename \${file}`~
16966       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16967       dldir=$destdir/`dirname \$dlpath`~
16968       test -d \$dldir || mkdir -p \$dldir~
16969       $install_prog $dir/$dlname \$dldir/$dlname~
16970       chmod a+x \$dldir/$dlname'
16971     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16972       dlpath=$dir/\$dldll~
16973        $rm \$dlpath'
16974     shlibpath_overrides_runpath=yes
16975
16976     case $host_os in
16977     cygwin*)
16978       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16979       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16980       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16981       ;;
16982     mingw*)
16983       # MinGW DLLs use traditional 'lib' prefix
16984       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16985       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16986       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16987         # It is most probably a Windows format PATH printed by
16988         # mingw gcc, but we are running on Cygwin. Gcc prints its search
16989         # path with ; separators, and with drive letters. We can handle the
16990         # drive letters (cygwin fileutils understands them), so leave them,
16991         # especially as we might pass files found there to a mingw objdump,
16992         # which wouldn't understand a cygwinified path. Ahh.
16993         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16994       else
16995         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16996       fi
16997       ;;
16998     pw32*)
16999       # pw32 DLLs use 'pw' prefix rather than 'lib'
17000       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17001       ;;
17002     esac
17003     ;;
17004
17005   *)
17006     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17007     ;;
17008   esac
17009   dynamic_linker='Win32 ld.exe'
17010   # FIXME: first we should search . and the directory the executable is in
17011   shlibpath_var=PATH
17012   ;;
17013
17014 darwin* | rhapsody*)
17015   dynamic_linker="$host_os dyld"
17016   version_type=darwin
17017   need_lib_prefix=no
17018   need_version=no
17019   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17020   soname_spec='${libname}${release}${major}$shared_ext'
17021   shlibpath_overrides_runpath=yes
17022   shlibpath_var=DYLD_LIBRARY_PATH
17023   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17024
17025   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17026   ;;
17027
17028 dgux*)
17029   version_type=linux
17030   need_lib_prefix=no
17031   need_version=no
17032   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17033   soname_spec='${libname}${release}${shared_ext}$major'
17034   shlibpath_var=LD_LIBRARY_PATH
17035   ;;
17036
17037 freebsd1*)
17038   dynamic_linker=no
17039   ;;
17040
17041 freebsd* | dragonfly*)
17042   # DragonFly does not have aout.  When/if they implement a new
17043   # versioning mechanism, adjust this.
17044   if test -x /usr/bin/objformat; then
17045     objformat=`/usr/bin/objformat`
17046   else
17047     case $host_os in
17048     freebsd[123]*) objformat=aout ;;
17049     *) objformat=elf ;;
17050     esac
17051   fi
17052   version_type=freebsd-$objformat
17053   case $version_type in
17054     freebsd-elf*)
17055       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17056       need_version=no
17057       need_lib_prefix=no
17058       ;;
17059     freebsd-*)
17060       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17061       need_version=yes
17062       ;;
17063   esac
17064   shlibpath_var=LD_LIBRARY_PATH
17065   case $host_os in
17066   freebsd2*)
17067     shlibpath_overrides_runpath=yes
17068     ;;
17069   freebsd3.[01]* | freebsdelf3.[01]*)
17070     shlibpath_overrides_runpath=yes
17071     hardcode_into_libs=yes
17072     ;;
17073   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17074   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17075     shlibpath_overrides_runpath=no
17076     hardcode_into_libs=yes
17077     ;;
17078   *) # from 4.6 on, and DragonFly
17079     shlibpath_overrides_runpath=yes
17080     hardcode_into_libs=yes
17081     ;;
17082   esac
17083   ;;
17084
17085 gnu*)
17086   version_type=linux
17087   need_lib_prefix=no
17088   need_version=no
17089   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17090   soname_spec='${libname}${release}${shared_ext}$major'
17091   shlibpath_var=LD_LIBRARY_PATH
17092   hardcode_into_libs=yes
17093   ;;
17094
17095 hpux9* | hpux10* | hpux11*)
17096   # Give a soname corresponding to the major version so that dld.sl refuses to
17097   # link against other versions.
17098   version_type=sunos
17099   need_lib_prefix=no
17100   need_version=no
17101   case $host_cpu in
17102   ia64*)
17103     shrext_cmds='.so'
17104     hardcode_into_libs=yes
17105     dynamic_linker="$host_os dld.so"
17106     shlibpath_var=LD_LIBRARY_PATH
17107     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17108     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17109     soname_spec='${libname}${release}${shared_ext}$major'
17110     if test "X$HPUX_IA64_MODE" = X32; then
17111       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17112     else
17113       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17114     fi
17115     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17116     ;;
17117    hppa*64*)
17118      shrext_cmds='.sl'
17119      hardcode_into_libs=yes
17120      dynamic_linker="$host_os dld.sl"
17121      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17122      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17123      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17124      soname_spec='${libname}${release}${shared_ext}$major'
17125      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17126      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17127      ;;
17128    *)
17129     shrext_cmds='.sl'
17130     dynamic_linker="$host_os dld.sl"
17131     shlibpath_var=SHLIB_PATH
17132     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17133     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17134     soname_spec='${libname}${release}${shared_ext}$major'
17135     ;;
17136   esac
17137   # HP-UX runs *really* slowly unless shared libraries are mode 555.
17138   postinstall_cmds='chmod 555 $lib'
17139   ;;
17140
17141 interix[3-9]*)
17142   version_type=linux
17143   need_lib_prefix=no
17144   need_version=no
17145   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17146   soname_spec='${libname}${release}${shared_ext}$major'
17147   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17148   shlibpath_var=LD_LIBRARY_PATH
17149   shlibpath_overrides_runpath=no
17150   hardcode_into_libs=yes
17151   ;;
17152
17153 irix5* | irix6* | nonstopux*)
17154   case $host_os in
17155     nonstopux*) version_type=nonstopux ;;
17156     *)
17157         if test "$lt_cv_prog_gnu_ld" = yes; then
17158                 version_type=linux
17159         else
17160                 version_type=irix
17161         fi ;;
17162   esac
17163   need_lib_prefix=no
17164   need_version=no
17165   soname_spec='${libname}${release}${shared_ext}$major'
17166   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17167   case $host_os in
17168   irix5* | nonstopux*)
17169     libsuff= shlibsuff=
17170     ;;
17171   *)
17172     case $LD in # libtool.m4 will add one of these switches to LD
17173     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17174       libsuff= shlibsuff= libmagic=32-bit;;
17175     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17176       libsuff=32 shlibsuff=N32 libmagic=N32;;
17177     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17178       libsuff=64 shlibsuff=64 libmagic=64-bit;;
17179     *) libsuff= shlibsuff= libmagic=never-match;;
17180     esac
17181     ;;
17182   esac
17183   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17184   shlibpath_overrides_runpath=no
17185   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17186   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17187   hardcode_into_libs=yes
17188   ;;
17189
17190 # No shared lib support for Linux oldld, aout, or coff.
17191 linux*oldld* | linux*aout* | linux*coff*)
17192   dynamic_linker=no
17193   ;;
17194
17195 # This must be Linux ELF.
17196 linux* | k*bsd*-gnu)
17197   version_type=linux
17198   need_lib_prefix=no
17199   need_version=no
17200   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17201   soname_spec='${libname}${release}${shared_ext}$major'
17202   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17203   shlibpath_var=LD_LIBRARY_PATH
17204   shlibpath_overrides_runpath=no
17205   # This implies no fast_install, which is unacceptable.
17206   # Some rework will be needed to allow for fast_install
17207   # before this can be enabled.
17208   hardcode_into_libs=yes
17209   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17210   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17211
17212   # Append ld.so.conf contents to the search path
17213   if test -f /etc/ld.so.conf; then
17214     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[      ]*hwcap[        ]/d;s/[:,       ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
17215     sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
17216   fi
17217
17218   # We used to test for /lib/ld.so.1 and disable shared libraries on
17219   # powerpc, because MkLinux only supported shared libraries with the
17220   # GNU dynamic linker.  Since this was broken with cross compilers,
17221   # most powerpc-linux boxes support dynamic linking these days and
17222   # people can always --disable-shared, the test was removed, and we
17223   # assume the GNU/Linux dynamic linker is in use.
17224   dynamic_linker='GNU/Linux ld.so'
17225   ;;
17226
17227 netbsd*)
17228   version_type=sunos
17229   need_lib_prefix=no
17230   need_version=no
17231   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17232     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17233     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17234     dynamic_linker='NetBSD (a.out) ld.so'
17235   else
17236     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17237     soname_spec='${libname}${release}${shared_ext}$major'
17238     dynamic_linker='NetBSD ld.elf_so'
17239   fi
17240   shlibpath_var=LD_LIBRARY_PATH
17241   shlibpath_overrides_runpath=yes
17242   hardcode_into_libs=yes
17243   ;;
17244
17245 newsos6)
17246   version_type=linux
17247   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17248   shlibpath_var=LD_LIBRARY_PATH
17249   shlibpath_overrides_runpath=yes
17250   ;;
17251
17252 nto-qnx*)
17253   version_type=linux
17254   need_lib_prefix=no
17255   need_version=no
17256   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17257   soname_spec='${libname}${release}${shared_ext}$major'
17258   shlibpath_var=LD_LIBRARY_PATH
17259   shlibpath_overrides_runpath=yes
17260   ;;
17261
17262 openbsd*)
17263   version_type=sunos
17264   sys_lib_dlsearch_path_spec="/usr/lib"
17265   need_lib_prefix=no
17266   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17267   case $host_os in
17268     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
17269     *)                         need_version=no  ;;
17270   esac
17271   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17272   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17273   shlibpath_var=LD_LIBRARY_PATH
17274   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17275     case $host_os in
17276       openbsd2.[89] | openbsd2.[89].*)
17277         shlibpath_overrides_runpath=no
17278         ;;
17279       *)
17280         shlibpath_overrides_runpath=yes
17281         ;;
17282       esac
17283   else
17284     shlibpath_overrides_runpath=yes
17285   fi
17286   ;;
17287
17288 os2*)
17289   libname_spec='$name'
17290   shrext_cmds=".dll"
17291   need_lib_prefix=no
17292   library_names_spec='$libname${shared_ext} $libname.a'
17293   dynamic_linker='OS/2 ld.exe'
17294   shlibpath_var=LIBPATH
17295   ;;
17296
17297 osf3* | osf4* | osf5*)
17298   version_type=osf
17299   need_lib_prefix=no
17300   need_version=no
17301   soname_spec='${libname}${release}${shared_ext}$major'
17302   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17303   shlibpath_var=LD_LIBRARY_PATH
17304   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17305   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17306   ;;
17307
17308 rdos*)
17309   dynamic_linker=no
17310   ;;
17311
17312 solaris*)
17313   version_type=linux
17314   need_lib_prefix=no
17315   need_version=no
17316   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17317   soname_spec='${libname}${release}${shared_ext}$major'
17318   shlibpath_var=LD_LIBRARY_PATH
17319   shlibpath_overrides_runpath=yes
17320   hardcode_into_libs=yes
17321   # ldd complains unless libraries are executable
17322   postinstall_cmds='chmod +x $lib'
17323   ;;
17324
17325 sunos4*)
17326   version_type=sunos
17327   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17328   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17329   shlibpath_var=LD_LIBRARY_PATH
17330   shlibpath_overrides_runpath=yes
17331   if test "$with_gnu_ld" = yes; then
17332     need_lib_prefix=no
17333   fi
17334   need_version=yes
17335   ;;
17336
17337 sysv4 | sysv4.3*)
17338   version_type=linux
17339   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17340   soname_spec='${libname}${release}${shared_ext}$major'
17341   shlibpath_var=LD_LIBRARY_PATH
17342   case $host_vendor in
17343     sni)
17344       shlibpath_overrides_runpath=no
17345       need_lib_prefix=no
17346       export_dynamic_flag_spec='${wl}-Blargedynsym'
17347       runpath_var=LD_RUN_PATH
17348       ;;
17349     siemens)
17350       need_lib_prefix=no
17351       ;;
17352     motorola)
17353       need_lib_prefix=no
17354       need_version=no
17355       shlibpath_overrides_runpath=no
17356       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17357       ;;
17358   esac
17359   ;;
17360
17361 sysv4*MP*)
17362   if test -d /usr/nec ;then
17363     version_type=linux
17364     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17365     soname_spec='$libname${shared_ext}.$major'
17366     shlibpath_var=LD_LIBRARY_PATH
17367   fi
17368   ;;
17369
17370 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17371   version_type=freebsd-elf
17372   need_lib_prefix=no
17373   need_version=no
17374   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17375   soname_spec='${libname}${release}${shared_ext}$major'
17376   shlibpath_var=LD_LIBRARY_PATH
17377   hardcode_into_libs=yes
17378   if test "$with_gnu_ld" = yes; then
17379     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17380     shlibpath_overrides_runpath=no
17381   else
17382     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17383     shlibpath_overrides_runpath=yes
17384     case $host_os in
17385       sco3.2v5*)
17386         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17387         ;;
17388     esac
17389   fi
17390   sys_lib_dlsearch_path_spec='/usr/lib'
17391   ;;
17392
17393 uts4*)
17394   version_type=linux
17395   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17396   soname_spec='${libname}${release}${shared_ext}$major'
17397   shlibpath_var=LD_LIBRARY_PATH
17398   ;;
17399
17400 *)
17401   dynamic_linker=no
17402   ;;
17403 esac
17404 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17405 echo "${ECHO_T}$dynamic_linker" >&6; }
17406 test "$dynamic_linker" = no && can_build_shared=no
17407
17408 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17409 if test "$GCC" = yes; then
17410   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17411 fi
17412
17413 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17414 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
17415 hardcode_action_F77=
17416 if test -n "$hardcode_libdir_flag_spec_F77" || \
17417    test -n "$runpath_var_F77" || \
17418    test "X$hardcode_automatic_F77" = "Xyes" ; then
17419
17420   # We can hardcode non-existant directories.
17421   if test "$hardcode_direct_F77" != no &&
17422      # If the only mechanism to avoid hardcoding is shlibpath_var, we
17423      # have to relink, otherwise we might link with an installed library
17424      # when we should be linking with a yet-to-be-installed one
17425      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
17426      test "$hardcode_minus_L_F77" != no; then
17427     # Linking always hardcodes the temporary library directory.
17428     hardcode_action_F77=relink
17429   else
17430     # We can link without hardcoding, and we can hardcode nonexisting dirs.
17431     hardcode_action_F77=immediate
17432   fi
17433 else
17434   # We cannot hardcode anything, or else we can only hardcode existing
17435   # directories.
17436   hardcode_action_F77=unsupported
17437 fi
17438 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
17439 echo "${ECHO_T}$hardcode_action_F77" >&6; }
17440
17441 if test "$hardcode_action_F77" = relink; then
17442   # Fast installation is not supported
17443   enable_fast_install=no
17444 elif test "$shlibpath_overrides_runpath" = yes ||
17445      test "$enable_shared" = no; then
17446   # Fast installation is not necessary
17447   enable_fast_install=needless
17448 fi
17449
17450
17451 # The else clause should only fire when bootstrapping the
17452 # libtool distribution, otherwise you forgot to ship ltmain.sh
17453 # with your package, and you will get complaints that there are
17454 # no rules to generate ltmain.sh.
17455 if test -f "$ltmain"; then
17456   # See if we are running on zsh, and set the options which allow our commands through
17457   # without removal of \ escapes.
17458   if test -n "${ZSH_VERSION+set}" ; then
17459     setopt NO_GLOB_SUBST
17460   fi
17461   # Now quote all the things that may contain metacharacters while being
17462   # careful not to overquote the AC_SUBSTed values.  We take copies of the
17463   # variables and quote the copies for generation of the libtool script.
17464   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
17465     SED SHELL STRIP \
17466     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17467     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17468     deplibs_check_method reload_flag reload_cmds need_locks \
17469     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17470     lt_cv_sys_global_symbol_to_c_name_address \
17471     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17472     old_postinstall_cmds old_postuninstall_cmds \
17473     compiler_F77 \
17474     CC_F77 \
17475     LD_F77 \
17476     lt_prog_compiler_wl_F77 \
17477     lt_prog_compiler_pic_F77 \
17478     lt_prog_compiler_static_F77 \
17479     lt_prog_compiler_no_builtin_flag_F77 \
17480     export_dynamic_flag_spec_F77 \
17481     thread_safe_flag_spec_F77 \
17482     whole_archive_flag_spec_F77 \
17483     enable_shared_with_static_runtimes_F77 \
17484     old_archive_cmds_F77 \
17485     old_archive_from_new_cmds_F77 \
17486     predep_objects_F77 \
17487     postdep_objects_F77 \
17488     predeps_F77 \
17489     postdeps_F77 \
17490     compiler_lib_search_path_F77 \
17491     archive_cmds_F77 \
17492     archive_expsym_cmds_F77 \
17493     postinstall_cmds_F77 \
17494     postuninstall_cmds_F77 \
17495     old_archive_from_expsyms_cmds_F77 \
17496     allow_undefined_flag_F77 \
17497     no_undefined_flag_F77 \
17498     export_symbols_cmds_F77 \
17499     hardcode_libdir_flag_spec_F77 \
17500     hardcode_libdir_flag_spec_ld_F77 \
17501     hardcode_libdir_separator_F77 \
17502     hardcode_automatic_F77 \
17503     module_cmds_F77 \
17504     module_expsym_cmds_F77 \
17505     lt_cv_prog_compiler_c_o_F77 \
17506     fix_srcfile_path_F77 \
17507     exclude_expsyms_F77 \
17508     include_expsyms_F77; do
17509
17510     case $var in
17511     old_archive_cmds_F77 | \
17512     old_archive_from_new_cmds_F77 | \
17513     archive_cmds_F77 | \
17514     archive_expsym_cmds_F77 | \
17515     module_cmds_F77 | \
17516     module_expsym_cmds_F77 | \
17517     old_archive_from_expsyms_cmds_F77 | \
17518     export_symbols_cmds_F77 | \
17519     extract_expsyms_cmds | reload_cmds | finish_cmds | \
17520     postinstall_cmds | postuninstall_cmds | \
17521     old_postinstall_cmds | old_postuninstall_cmds | \
17522     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17523       # Double-quote double-evaled strings.
17524       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17525       ;;
17526     *)
17527       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17528       ;;
17529     esac
17530   done
17531
17532   case $lt_echo in
17533   *'\$0 --fallback-echo"')
17534     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17535     ;;
17536   esac
17537
17538 cfgfile="$ofile"
17539
17540   cat <<__EOF__ >> "$cfgfile"
17541 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
17542
17543 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17544
17545 # Shell to use when invoking shell scripts.
17546 SHELL=$lt_SHELL
17547
17548 # Whether or not to build shared libraries.
17549 build_libtool_libs=$enable_shared
17550
17551 # Whether or not to build static libraries.
17552 build_old_libs=$enable_static
17553
17554 # Whether or not to add -lc for building shared libraries.
17555 build_libtool_need_lc=$archive_cmds_need_lc_F77
17556
17557 # Whether or not to disallow shared libs when runtime libs are static
17558 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
17559
17560 # Whether or not to optimize for fast installation.
17561 fast_install=$enable_fast_install
17562
17563 # The host system.
17564 host_alias=$host_alias
17565 host=$host
17566 host_os=$host_os
17567
17568 # The build system.
17569 build_alias=$build_alias
17570 build=$build
17571 build_os=$build_os
17572
17573 # An echo program that does not interpret backslashes.
17574 echo=$lt_echo
17575
17576 # The archiver.
17577 AR=$lt_AR
17578 AR_FLAGS=$lt_AR_FLAGS
17579
17580 # A C compiler.
17581 LTCC=$lt_LTCC
17582
17583 # LTCC compiler flags.
17584 LTCFLAGS=$lt_LTCFLAGS
17585
17586 # A language-specific compiler.
17587 CC=$lt_compiler_F77
17588
17589 # Is the compiler the GNU C compiler?
17590 with_gcc=$GCC_F77
17591
17592 # An ERE matcher.
17593 EGREP=$lt_EGREP
17594
17595 # The linker used to build libraries.
17596 LD=$lt_LD_F77
17597
17598 # Whether we need hard or soft links.
17599 LN_S=$lt_LN_S
17600
17601 # A BSD-compatible nm program.
17602 NM=$lt_NM
17603
17604 # A symbol stripping program
17605 STRIP=$lt_STRIP
17606
17607 # Used to examine libraries when file_magic_cmd begins "file"
17608 MAGIC_CMD=$MAGIC_CMD
17609
17610 # Used on cygwin: DLL creation program.
17611 DLLTOOL="$DLLTOOL"
17612
17613 # Used on cygwin: object dumper.
17614 OBJDUMP="$OBJDUMP"
17615
17616 # Used on cygwin: assembler.
17617 AS="$AS"
17618
17619 # The name of the directory that contains temporary libtool files.
17620 objdir=$objdir
17621
17622 # How to create reloadable object files.
17623 reload_flag=$lt_reload_flag
17624 reload_cmds=$lt_reload_cmds
17625
17626 # How to pass a linker flag through the compiler.
17627 wl=$lt_lt_prog_compiler_wl_F77
17628
17629 # Object file suffix (normally "o").
17630 objext="$ac_objext"
17631
17632 # Old archive suffix (normally "a").
17633 libext="$libext"
17634
17635 # Shared library suffix (normally ".so").
17636 shrext_cmds='$shrext_cmds'
17637
17638 # Executable file suffix (normally "").
17639 exeext="$exeext"
17640
17641 # Additional compiler flags for building library objects.
17642 pic_flag=$lt_lt_prog_compiler_pic_F77
17643 pic_mode=$pic_mode
17644
17645 # What is the maximum length of a command?
17646 max_cmd_len=$lt_cv_sys_max_cmd_len
17647
17648 # Does compiler simultaneously support -c and -o options?
17649 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
17650
17651 # Must we lock files when doing compilation?
17652 need_locks=$lt_need_locks
17653
17654 # Do we need the lib prefix for modules?
17655 need_lib_prefix=$need_lib_prefix
17656
17657 # Do we need a version for libraries?
17658 need_version=$need_version
17659
17660 # Whether dlopen is supported.
17661 dlopen_support=$enable_dlopen
17662
17663 # Whether dlopen of programs is supported.
17664 dlopen_self=$enable_dlopen_self
17665
17666 # Whether dlopen of statically linked programs is supported.
17667 dlopen_self_static=$enable_dlopen_self_static
17668
17669 # Compiler flag to prevent dynamic linking.
17670 link_static_flag=$lt_lt_prog_compiler_static_F77
17671
17672 # Compiler flag to turn off builtin functions.
17673 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
17674
17675 # Compiler flag to allow reflexive dlopens.
17676 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
17677
17678 # Compiler flag to generate shared objects directly from archives.
17679 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
17680
17681 # Compiler flag to generate thread-safe objects.
17682 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
17683
17684 # Library versioning type.
17685 version_type=$version_type
17686
17687 # Format of library name prefix.
17688 libname_spec=$lt_libname_spec
17689
17690 # List of archive names.  First name is the real one, the rest are links.
17691 # The last name is the one that the linker finds with -lNAME.
17692 library_names_spec=$lt_library_names_spec
17693
17694 # The coded name of the library, if different from the real name.
17695 soname_spec=$lt_soname_spec
17696
17697 # Commands used to build and install an old-style archive.
17698 RANLIB=$lt_RANLIB
17699 old_archive_cmds=$lt_old_archive_cmds_F77
17700 old_postinstall_cmds=$lt_old_postinstall_cmds
17701 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17702
17703 # Create an old-style archive from a shared archive.
17704 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
17705
17706 # Create a temporary old-style archive to link instead of a shared archive.
17707 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
17708
17709 # Commands used to build and install a shared archive.
17710 archive_cmds=$lt_archive_cmds_F77
17711 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
17712 postinstall_cmds=$lt_postinstall_cmds
17713 postuninstall_cmds=$lt_postuninstall_cmds
17714
17715 # Commands used to build a loadable module (assumed same as above if empty)
17716 module_cmds=$lt_module_cmds_F77
17717 module_expsym_cmds=$lt_module_expsym_cmds_F77
17718
17719 # Commands to strip libraries.
17720 old_striplib=$lt_old_striplib
17721 striplib=$lt_striplib
17722
17723 # Dependencies to place before the objects being linked to create a
17724 # shared library.
17725 predep_objects=$lt_predep_objects_F77
17726
17727 # Dependencies to place after the objects being linked to create a
17728 # shared library.
17729 postdep_objects=$lt_postdep_objects_F77
17730
17731 # Dependencies to place before the objects being linked to create a
17732 # shared library.
17733 predeps=$lt_predeps_F77
17734
17735 # Dependencies to place after the objects being linked to create a
17736 # shared library.
17737 postdeps=$lt_postdeps_F77
17738
17739 # The library search path used internally by the compiler when linking
17740 # a shared library.
17741 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
17742
17743 # Method to check whether dependent libraries are shared objects.
17744 deplibs_check_method=$lt_deplibs_check_method
17745
17746 # Command to use when deplibs_check_method == file_magic.
17747 file_magic_cmd=$lt_file_magic_cmd
17748
17749 # Flag that allows shared libraries with undefined symbols to be built.
17750 allow_undefined_flag=$lt_allow_undefined_flag_F77
17751
17752 # Flag that forces no undefined symbols.
17753 no_undefined_flag=$lt_no_undefined_flag_F77
17754
17755 # Commands used to finish a libtool library installation in a directory.
17756 finish_cmds=$lt_finish_cmds
17757
17758 # Same as above, but a single script fragment to be evaled but not shown.
17759 finish_eval=$lt_finish_eval
17760
17761 # Take the output of nm and produce a listing of raw symbols and C names.
17762 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17763
17764 # Transform the output of nm in a proper C declaration
17765 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17766
17767 # Transform the output of nm in a C name address pair
17768 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17769
17770 # This is the shared library runtime path variable.
17771 runpath_var=$runpath_var
17772
17773 # This is the shared library path variable.
17774 shlibpath_var=$shlibpath_var
17775
17776 # Is shlibpath searched before the hard-coded library search path?
17777 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17778
17779 # How to hardcode a shared library path into an executable.
17780 hardcode_action=$hardcode_action_F77
17781
17782 # Whether we should hardcode library paths into libraries.
17783 hardcode_into_libs=$hardcode_into_libs
17784
17785 # Flag to hardcode \$libdir into a binary during linking.
17786 # This must work even if \$libdir does not exist.
17787 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
17788
17789 # If ld is used when linking, flag to hardcode \$libdir into
17790 # a binary during linking. This must work even if \$libdir does
17791 # not exist.
17792 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
17793
17794 # Whether we need a single -rpath flag with a separated argument.
17795 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
17796
17797 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17798 # resulting binary.
17799 hardcode_direct=$hardcode_direct_F77
17800
17801 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17802 # resulting binary.
17803 hardcode_minus_L=$hardcode_minus_L_F77
17804
17805 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17806 # the resulting binary.
17807 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
17808
17809 # Set to yes if building a shared library automatically hardcodes DIR into the library
17810 # and all subsequent libraries and executables linked against it.
17811 hardcode_automatic=$hardcode_automatic_F77
17812
17813 # Variables whose values should be saved in libtool wrapper scripts and
17814 # restored at relink time.
17815 variables_saved_for_relink="$variables_saved_for_relink"
17816
17817 # Whether libtool must link a program against all its dependency libraries.
17818 link_all_deplibs=$link_all_deplibs_F77
17819
17820 # Compile-time system search path for libraries
17821 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17822
17823 # Run-time system search path for libraries
17824 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17825
17826 # Fix the shell variable \$srcfile for the compiler.
17827 fix_srcfile_path=$lt_fix_srcfile_path
17828
17829 # Set to yes if exported symbols are required.
17830 always_export_symbols=$always_export_symbols_F77
17831
17832 # The commands to list exported symbols.
17833 export_symbols_cmds=$lt_export_symbols_cmds_F77
17834
17835 # The commands to extract the exported symbol list from a shared archive.
17836 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17837
17838 # Symbols that should not be listed in the preloaded symbols.
17839 exclude_expsyms=$lt_exclude_expsyms_F77
17840
17841 # Symbols that must always be exported.
17842 include_expsyms=$lt_include_expsyms_F77
17843
17844 # ### END LIBTOOL TAG CONFIG: $tagname
17845
17846 __EOF__
17847
17848
17849 else
17850   # If there is no Makefile yet, we rely on a make rule to execute
17851   # `config.status --recheck' to rerun these tests and create the
17852   # libtool script then.
17853   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
17854   if test -f "$ltmain_in"; then
17855     test -f Makefile && make "$ltmain"
17856   fi
17857 fi
17858
17859
17860 ac_ext=c
17861 ac_cpp='$CPP $CPPFLAGS'
17862 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17863 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17864 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17865
17866 CC="$lt_save_CC"
17867
17868         else
17869           tagname=""
17870         fi
17871         ;;
17872
17873       GCJ)
17874         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
17875
17876
17877 # Source file extension for Java test sources.
17878 ac_ext=java
17879
17880 # Object file extension for compiled Java test sources.
17881 objext=o
17882 objext_GCJ=$objext
17883
17884 # Code to be used in simple compile tests
17885 lt_simple_compile_test_code="class foo {}"
17886
17887 # Code to be used in simple link tests
17888 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }'
17889
17890 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
17891
17892 # If no C compiler was specified, use CC.
17893 LTCC=${LTCC-"$CC"}
17894
17895 # If no C compiler flags were specified, use CFLAGS.
17896 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
17897
17898 # Allow CC to be a program name with arguments.
17899 compiler=$CC
17900
17901
17902 # save warnings/boilerplate of simple test code
17903 ac_outfile=conftest.$ac_objext
17904 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
17905 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17906 _lt_compiler_boilerplate=`cat conftest.err`
17907 $rm conftest*
17908
17909 ac_outfile=conftest.$ac_objext
17910 echo "$lt_simple_link_test_code" >conftest.$ac_ext
17911 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17912 _lt_linker_boilerplate=`cat conftest.err`
17913 $rm conftest*
17914
17915
17916 # Allow CC to be a program name with arguments.
17917 lt_save_CC="$CC"
17918 CC=${GCJ-"gcj"}
17919 compiler=$CC
17920 compiler_GCJ=$CC
17921 for cc_temp in $compiler""; do
17922   case $cc_temp in
17923     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17924     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17925     \-*) ;;
17926     *) break;;
17927   esac
17928 done
17929 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17930
17931
17932 # GCJ did not exist at the time GCC didn't implicitly link libc in.
17933 archive_cmds_need_lc_GCJ=no
17934
17935 old_archive_cmds_GCJ=$old_archive_cmds
17936
17937
17938 lt_prog_compiler_no_builtin_flag_GCJ=
17939
17940 if test "$GCC" = yes; then
17941   lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
17942
17943
17944 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
17945 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
17946 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
17947   echo $ECHO_N "(cached) $ECHO_C" >&6
17948 else
17949   lt_cv_prog_compiler_rtti_exceptions=no
17950   ac_outfile=conftest.$ac_objext
17951    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17952    lt_compiler_flag="-fno-rtti -fno-exceptions"
17953    # Insert the option either (1) after the last *FLAGS variable, or
17954    # (2) before a word containing "conftest.", or (3) at the end.
17955    # Note that $ac_compile itself does not contain backslashes and begins
17956    # with a dollar sign (not a hyphen), so the echo should work correctly.
17957    # The option is referenced via a variable to avoid confusing sed.
17958    lt_compile=`echo "$ac_compile" | $SED \
17959    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17960    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17961    -e 's:$: $lt_compiler_flag:'`
17962    (eval echo "\"\$as_me:17962: $lt_compile\"" >&5)
17963    (eval "$lt_compile" 2>conftest.err)
17964    ac_status=$?
17965    cat conftest.err >&5
17966    echo "$as_me:17966: \$? = $ac_status" >&5
17967    if (exit $ac_status) && test -s "$ac_outfile"; then
17968      # The compiler can only warn and ignore the option if not recognized
17969      # So say no if there are warnings other than the usual output.
17970      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17971      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17972      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17973        lt_cv_prog_compiler_rtti_exceptions=yes
17974      fi
17975    fi
17976    $rm conftest*
17977
17978 fi
17979 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
17980 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
17981
17982 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
17983     lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
17984 else
17985     :
17986 fi
17987
17988 fi
17989
17990 lt_prog_compiler_wl_GCJ=
17991 lt_prog_compiler_pic_GCJ=
17992 lt_prog_compiler_static_GCJ=
17993
17994 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
17995 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
17996
17997   if test "$GCC" = yes; then
17998     lt_prog_compiler_wl_GCJ='-Wl,'
17999     lt_prog_compiler_static_GCJ='-static'
18000
18001     case $host_os in
18002       aix*)
18003       # All AIX code is PIC.
18004       if test "$host_cpu" = ia64; then
18005         # AIX 5 now supports IA64 processor
18006         lt_prog_compiler_static_GCJ='-Bstatic'
18007       fi
18008       ;;
18009
18010     amigaos*)
18011       # FIXME: we need at least 68020 code to build shared libraries, but
18012       # adding the `-m68020' flag to GCC prevents building anything better,
18013       # like `-m68040'.
18014       lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
18015       ;;
18016
18017     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
18018       # PIC is the default for these OSes.
18019       ;;
18020
18021     mingw* | cygwin* | pw32* | os2*)
18022       # This hack is so that the source file can tell whether it is being
18023       # built for inclusion in a dll (and should export symbols for example).
18024       # Although the cygwin gcc ignores -fPIC, still need this for old-style
18025       # (--disable-auto-import) libraries
18026       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
18027       ;;
18028
18029     darwin* | rhapsody*)
18030       # PIC is the default on this platform
18031       # Common symbols not allowed in MH_DYLIB files
18032       lt_prog_compiler_pic_GCJ='-fno-common'
18033       ;;
18034
18035     interix[3-9]*)
18036       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
18037       # Instead, we relocate shared libraries at runtime.
18038       ;;
18039
18040     msdosdjgpp*)
18041       # Just because we use GCC doesn't mean we suddenly get shared libraries
18042       # on systems that don't support them.
18043       lt_prog_compiler_can_build_shared_GCJ=no
18044       enable_shared=no
18045       ;;
18046
18047     sysv4*MP*)
18048       if test -d /usr/nec; then
18049         lt_prog_compiler_pic_GCJ=-Kconform_pic
18050       fi
18051       ;;
18052
18053     hpux*)
18054       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
18055       # not for PA HP-UX.
18056       case $host_cpu in
18057       hppa*64*|ia64*)
18058         # +Z the default
18059         ;;
18060       *)
18061         lt_prog_compiler_pic_GCJ='-fPIC'
18062         ;;
18063       esac
18064       ;;
18065
18066     *)
18067       lt_prog_compiler_pic_GCJ='-fPIC'
18068       ;;
18069     esac
18070   else
18071     # PORTME Check for flag to pass linker flags through the system compiler.
18072     case $host_os in
18073     aix*)
18074       lt_prog_compiler_wl_GCJ='-Wl,'
18075       if test "$host_cpu" = ia64; then
18076         # AIX 5 now supports IA64 processor
18077         lt_prog_compiler_static_GCJ='-Bstatic'
18078       else
18079         lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
18080       fi
18081       ;;
18082       darwin*)
18083         # PIC is the default on this platform
18084         # Common symbols not allowed in MH_DYLIB files
18085        case $cc_basename in
18086          xlc*)
18087          lt_prog_compiler_pic_GCJ='-qnocommon'
18088          lt_prog_compiler_wl_GCJ='-Wl,'
18089          ;;
18090        esac
18091        ;;
18092
18093     mingw* | cygwin* | pw32* | os2*)
18094       # This hack is so that the source file can tell whether it is being
18095       # built for inclusion in a dll (and should export symbols for example).
18096       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
18097       ;;
18098
18099     hpux9* | hpux10* | hpux11*)
18100       lt_prog_compiler_wl_GCJ='-Wl,'
18101       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
18102       # not for PA HP-UX.
18103       case $host_cpu in
18104       hppa*64*|ia64*)
18105         # +Z the default
18106         ;;
18107       *)
18108         lt_prog_compiler_pic_GCJ='+Z'
18109         ;;
18110       esac
18111       # Is there a better lt_prog_compiler_static that works with the bundled CC?
18112       lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
18113       ;;
18114
18115     irix5* | irix6* | nonstopux*)
18116       lt_prog_compiler_wl_GCJ='-Wl,'
18117       # PIC (with -KPIC) is the default.
18118       lt_prog_compiler_static_GCJ='-non_shared'
18119       ;;
18120
18121     newsos6)
18122       lt_prog_compiler_pic_GCJ='-KPIC'
18123       lt_prog_compiler_static_GCJ='-Bstatic'
18124       ;;
18125
18126     linux* | k*bsd*-gnu)
18127       case $cc_basename in
18128       icc* | ecc*)
18129         lt_prog_compiler_wl_GCJ='-Wl,'
18130         lt_prog_compiler_pic_GCJ='-KPIC'
18131         lt_prog_compiler_static_GCJ='-static'
18132         ;;
18133       pgcc* | pgf77* | pgf90* | pgf95*)
18134         # Portland Group compilers (*not* the Pentium gcc compiler,
18135         # which looks to be a dead project)
18136         lt_prog_compiler_wl_GCJ='-Wl,'
18137         lt_prog_compiler_pic_GCJ='-fpic'
18138         lt_prog_compiler_static_GCJ='-Bstatic'
18139         ;;
18140       ccc*)
18141         lt_prog_compiler_wl_GCJ='-Wl,'
18142         # All Alpha code is PIC.
18143         lt_prog_compiler_static_GCJ='-non_shared'
18144         ;;
18145       *)
18146         case `$CC -V 2>&1 | sed 5q` in
18147         *Sun\ C*)
18148           # Sun C 5.9
18149           lt_prog_compiler_pic_GCJ='-KPIC'
18150           lt_prog_compiler_static_GCJ='-Bstatic'
18151           lt_prog_compiler_wl_GCJ='-Wl,'
18152           ;;
18153         *Sun\ F*)
18154           # Sun Fortran 8.3 passes all unrecognized flags to the linker
18155           lt_prog_compiler_pic_GCJ='-KPIC'
18156           lt_prog_compiler_static_GCJ='-Bstatic'
18157           lt_prog_compiler_wl_GCJ=''
18158           ;;
18159         esac
18160         ;;
18161       esac
18162       ;;
18163
18164     osf3* | osf4* | osf5*)
18165       lt_prog_compiler_wl_GCJ='-Wl,'
18166       # All OSF/1 code is PIC.
18167       lt_prog_compiler_static_GCJ='-non_shared'
18168       ;;
18169
18170     rdos*)
18171       lt_prog_compiler_static_GCJ='-non_shared'
18172       ;;
18173
18174     solaris*)
18175       lt_prog_compiler_pic_GCJ='-KPIC'
18176       lt_prog_compiler_static_GCJ='-Bstatic'
18177       case $cc_basename in
18178       f77* | f90* | f95*)
18179         lt_prog_compiler_wl_GCJ='-Qoption ld ';;
18180       *)
18181         lt_prog_compiler_wl_GCJ='-Wl,';;
18182       esac
18183       ;;
18184
18185     sunos4*)
18186       lt_prog_compiler_wl_GCJ='-Qoption ld '
18187       lt_prog_compiler_pic_GCJ='-PIC'
18188       lt_prog_compiler_static_GCJ='-Bstatic'
18189       ;;
18190
18191     sysv4 | sysv4.2uw2* | sysv4.3*)
18192       lt_prog_compiler_wl_GCJ='-Wl,'
18193       lt_prog_compiler_pic_GCJ='-KPIC'
18194       lt_prog_compiler_static_GCJ='-Bstatic'
18195       ;;
18196
18197     sysv4*MP*)
18198       if test -d /usr/nec ;then
18199         lt_prog_compiler_pic_GCJ='-Kconform_pic'
18200         lt_prog_compiler_static_GCJ='-Bstatic'
18201       fi
18202       ;;
18203
18204     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
18205       lt_prog_compiler_wl_GCJ='-Wl,'
18206       lt_prog_compiler_pic_GCJ='-KPIC'
18207       lt_prog_compiler_static_GCJ='-Bstatic'
18208       ;;
18209
18210     unicos*)
18211       lt_prog_compiler_wl_GCJ='-Wl,'
18212       lt_prog_compiler_can_build_shared_GCJ=no
18213       ;;
18214
18215     uts4*)
18216       lt_prog_compiler_pic_GCJ='-pic'
18217       lt_prog_compiler_static_GCJ='-Bstatic'
18218       ;;
18219
18220     *)
18221       lt_prog_compiler_can_build_shared_GCJ=no
18222       ;;
18223     esac
18224   fi
18225
18226 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
18227 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
18228
18229 #
18230 # Check to make sure the PIC flag actually works.
18231 #
18232 if test -n "$lt_prog_compiler_pic_GCJ"; then
18233
18234 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
18235 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
18236 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
18237   echo $ECHO_N "(cached) $ECHO_C" >&6
18238 else
18239   lt_prog_compiler_pic_works_GCJ=no
18240   ac_outfile=conftest.$ac_objext
18241    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18242    lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
18243    # Insert the option either (1) after the last *FLAGS variable, or
18244    # (2) before a word containing "conftest.", or (3) at the end.
18245    # Note that $ac_compile itself does not contain backslashes and begins
18246    # with a dollar sign (not a hyphen), so the echo should work correctly.
18247    # The option is referenced via a variable to avoid confusing sed.
18248    lt_compile=`echo "$ac_compile" | $SED \
18249    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18250    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18251    -e 's:$: $lt_compiler_flag:'`
18252    (eval echo "\"\$as_me:18252: $lt_compile\"" >&5)
18253    (eval "$lt_compile" 2>conftest.err)
18254    ac_status=$?
18255    cat conftest.err >&5
18256    echo "$as_me:18256: \$? = $ac_status" >&5
18257    if (exit $ac_status) && test -s "$ac_outfile"; then
18258      # The compiler can only warn and ignore the option if not recognized
18259      # So say no if there are warnings other than the usual output.
18260      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
18261      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18262      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
18263        lt_prog_compiler_pic_works_GCJ=yes
18264      fi
18265    fi
18266    $rm conftest*
18267
18268 fi
18269 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
18270 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
18271
18272 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
18273     case $lt_prog_compiler_pic_GCJ in
18274      "" | " "*) ;;
18275      *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
18276      esac
18277 else
18278     lt_prog_compiler_pic_GCJ=
18279      lt_prog_compiler_can_build_shared_GCJ=no
18280 fi
18281
18282 fi
18283 case $host_os in
18284   # For platforms which do not support PIC, -DPIC is meaningless:
18285   *djgpp*)
18286     lt_prog_compiler_pic_GCJ=
18287     ;;
18288   *)
18289     lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
18290     ;;
18291 esac
18292
18293 #
18294 # Check to make sure the static flag actually works.
18295 #
18296 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
18297 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
18298 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
18299 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
18300   echo $ECHO_N "(cached) $ECHO_C" >&6
18301 else
18302   lt_prog_compiler_static_works_GCJ=no
18303    save_LDFLAGS="$LDFLAGS"
18304    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
18305    echo "$lt_simple_link_test_code" > conftest.$ac_ext
18306    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
18307      # The linker can only warn and ignore the option if not recognized
18308      # So say no if there are warnings
18309      if test -s conftest.err; then
18310        # Append any errors to the config.log.
18311        cat conftest.err 1>&5
18312        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
18313        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18314        if diff conftest.exp conftest.er2 >/dev/null; then
18315          lt_prog_compiler_static_works_GCJ=yes
18316        fi
18317      else
18318        lt_prog_compiler_static_works_GCJ=yes
18319      fi
18320    fi
18321    $rm conftest*
18322    LDFLAGS="$save_LDFLAGS"
18323
18324 fi
18325 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
18326 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
18327
18328 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
18329     :
18330 else
18331     lt_prog_compiler_static_GCJ=
18332 fi
18333
18334
18335 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
18336 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
18337 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
18338   echo $ECHO_N "(cached) $ECHO_C" >&6
18339 else
18340   lt_cv_prog_compiler_c_o_GCJ=no
18341    $rm -r conftest 2>/dev/null
18342    mkdir conftest
18343    cd conftest
18344    mkdir out
18345    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18346
18347    lt_compiler_flag="-o out/conftest2.$ac_objext"
18348    # Insert the option either (1) after the last *FLAGS variable, or
18349    # (2) before a word containing "conftest.", or (3) at the end.
18350    # Note that $ac_compile itself does not contain backslashes and begins
18351    # with a dollar sign (not a hyphen), so the echo should work correctly.
18352    lt_compile=`echo "$ac_compile" | $SED \
18353    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18354    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18355    -e 's:$: $lt_compiler_flag:'`
18356    (eval echo "\"\$as_me:18356: $lt_compile\"" >&5)
18357    (eval "$lt_compile" 2>out/conftest.err)
18358    ac_status=$?
18359    cat out/conftest.err >&5
18360    echo "$as_me:18360: \$? = $ac_status" >&5
18361    if (exit $ac_status) && test -s out/conftest2.$ac_objext
18362    then
18363      # The compiler can only warn and ignore the option if not recognized
18364      # So say no if there are warnings
18365      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
18366      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
18367      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
18368        lt_cv_prog_compiler_c_o_GCJ=yes
18369      fi
18370    fi
18371    chmod u+w . 2>&5
18372    $rm conftest*
18373    # SGI C++ compiler will create directory out/ii_files/ for
18374    # template instantiation
18375    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
18376    $rm out/* && rmdir out
18377    cd ..
18378    rmdir conftest
18379    $rm conftest*
18380
18381 fi
18382 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
18383 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
18384
18385
18386 hard_links="nottested"
18387 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
18388   # do not overwrite the value of need_locks provided by the user
18389   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
18390 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
18391   hard_links=yes
18392   $rm conftest*
18393   ln conftest.a conftest.b 2>/dev/null && hard_links=no
18394   touch conftest.a
18395   ln conftest.a conftest.b 2>&5 || hard_links=no
18396   ln conftest.a conftest.b 2>/dev/null && hard_links=no
18397   { echo "$as_me:$LINENO: result: $hard_links" >&5
18398 echo "${ECHO_T}$hard_links" >&6; }
18399   if test "$hard_links" = no; then
18400     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
18401 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
18402     need_locks=warn
18403   fi
18404 else
18405   need_locks=no
18406 fi
18407
18408 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18409 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
18410
18411   runpath_var=
18412   allow_undefined_flag_GCJ=
18413   enable_shared_with_static_runtimes_GCJ=no
18414   archive_cmds_GCJ=
18415   archive_expsym_cmds_GCJ=
18416   old_archive_From_new_cmds_GCJ=
18417   old_archive_from_expsyms_cmds_GCJ=
18418   export_dynamic_flag_spec_GCJ=
18419   whole_archive_flag_spec_GCJ=
18420   thread_safe_flag_spec_GCJ=
18421   hardcode_libdir_flag_spec_GCJ=
18422   hardcode_libdir_flag_spec_ld_GCJ=
18423   hardcode_libdir_separator_GCJ=
18424   hardcode_direct_GCJ=no
18425   hardcode_minus_L_GCJ=no
18426   hardcode_shlibpath_var_GCJ=unsupported
18427   link_all_deplibs_GCJ=unknown
18428   hardcode_automatic_GCJ=no
18429   module_cmds_GCJ=
18430   module_expsym_cmds_GCJ=
18431   always_export_symbols_GCJ=no
18432   export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
18433   # include_expsyms should be a list of space-separated symbols to be *always*
18434   # included in the symbol list
18435   include_expsyms_GCJ=
18436   # exclude_expsyms can be an extended regexp of symbols to exclude
18437   # it will be wrapped by ` (' and `)$', so one must not match beginning or
18438   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
18439   # as well as any symbol that contains `d'.
18440   exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
18441   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
18442   # platforms (ab)use it in PIC code, but their linkers get confused if
18443   # the symbol is explicitly referenced.  Since portable code cannot
18444   # rely on this symbol name, it's probably fine to never include it in
18445   # preloaded symbol tables.
18446   extract_expsyms_cmds=
18447   # Just being paranoid about ensuring that cc_basename is set.
18448   for cc_temp in $compiler""; do
18449   case $cc_temp in
18450     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18451     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18452     \-*) ;;
18453     *) break;;
18454   esac
18455 done
18456 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18457
18458   case $host_os in
18459   cygwin* | mingw* | pw32*)
18460     # FIXME: the MSVC++ port hasn't been tested in a loooong time
18461     # When not using gcc, we currently assume that we are using
18462     # Microsoft Visual C++.
18463     if test "$GCC" != yes; then
18464       with_gnu_ld=no
18465     fi
18466     ;;
18467   interix*)
18468     # we just hope/assume this is gcc and not c89 (= MSVC++)
18469     with_gnu_ld=yes
18470     ;;
18471   openbsd*)
18472     with_gnu_ld=no
18473     ;;
18474   esac
18475
18476   ld_shlibs_GCJ=yes
18477   if test "$with_gnu_ld" = yes; then
18478     # If archive_cmds runs LD, not CC, wlarc should be empty
18479     wlarc='${wl}'
18480
18481     # Set some defaults for GNU ld with shared library support. These
18482     # are reset later if shared libraries are not supported. Putting them
18483     # here allows them to be overridden if necessary.
18484     runpath_var=LD_RUN_PATH
18485     hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
18486     export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
18487     # ancient GNU ld didn't support --whole-archive et. al.
18488     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
18489         whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18490       else
18491         whole_archive_flag_spec_GCJ=
18492     fi
18493     supports_anon_versioning=no
18494     case `$LD -v 2>/dev/null` in
18495       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
18496       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
18497       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
18498       *\ 2.11.*) ;; # other 2.11 versions
18499       *) supports_anon_versioning=yes ;;
18500     esac
18501
18502     # See if GNU ld supports shared libraries.
18503     case $host_os in
18504     aix3* | aix4* | aix5*)
18505       # On AIX/PPC, the GNU linker is very broken
18506       if test "$host_cpu" != ia64; then
18507         ld_shlibs_GCJ=no
18508         cat <<EOF 1>&2
18509
18510 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
18511 *** to be unable to reliably create shared libraries on AIX.
18512 *** Therefore, libtool is disabling shared libraries support.  If you
18513 *** really care for shared libraries, you may want to modify your PATH
18514 *** so that a non-GNU linker is found, and then restart.
18515
18516 EOF
18517       fi
18518       ;;
18519
18520     amigaos*)
18521       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)'
18522       hardcode_libdir_flag_spec_GCJ='-L$libdir'
18523       hardcode_minus_L_GCJ=yes
18524
18525       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
18526       # that the semantics of dynamic libraries on AmigaOS, at least up
18527       # to version 4, is to share data among multiple programs linked
18528       # with the same dynamic library.  Since this doesn't match the
18529       # behavior of shared libraries on other platforms, we can't use
18530       # them.
18531       ld_shlibs_GCJ=no
18532       ;;
18533
18534     beos*)
18535       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18536         allow_undefined_flag_GCJ=unsupported
18537         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18538         # support --undefined.  This deserves some investigation.  FIXME
18539         archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18540       else
18541         ld_shlibs_GCJ=no
18542       fi
18543       ;;
18544
18545     cygwin* | mingw* | pw32*)
18546       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
18547       # as there is no search path for DLLs.
18548       hardcode_libdir_flag_spec_GCJ='-L$libdir'
18549       allow_undefined_flag_GCJ=unsupported
18550       always_export_symbols_GCJ=no
18551       enable_shared_with_static_runtimes_GCJ=yes
18552       export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
18553
18554       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
18555         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
18556         # If the export-symbols file already is a .def file (1st line
18557         # is EXPORTS), use it as is; otherwise, prepend...
18558         archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18559           cp $export_symbols $output_objdir/$soname.def;
18560         else
18561           echo EXPORTS > $output_objdir/$soname.def;
18562           cat $export_symbols >> $output_objdir/$soname.def;
18563         fi~
18564         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
18565       else
18566         ld_shlibs_GCJ=no
18567       fi
18568       ;;
18569
18570     interix[3-9]*)
18571       hardcode_direct_GCJ=no
18572       hardcode_shlibpath_var_GCJ=no
18573       hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18574       export_dynamic_flag_spec_GCJ='${wl}-E'
18575       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
18576       # Instead, shared libraries are loaded at an image base (0x10000000 by
18577       # default) and relocated if they conflict, which is a slow very memory
18578       # consuming and fragmenting process.  To avoid this, we pick a random,
18579       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
18580       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
18581       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'
18582       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'
18583       ;;
18584
18585     gnu* | linux* | k*bsd*-gnu)
18586       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18587         tmp_addflag=
18588         case $cc_basename,$host_cpu in
18589         pgcc*)                          # Portland Group C compiler
18590           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'
18591           tmp_addflag=' $pic_flag'
18592           ;;
18593         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
18594           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'
18595           tmp_addflag=' $pic_flag -Mnomain' ;;
18596         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
18597           tmp_addflag=' -i_dynamic' ;;
18598         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
18599           tmp_addflag=' -i_dynamic -nofor_main' ;;
18600         ifc* | ifort*)                  # Intel Fortran compiler
18601           tmp_addflag=' -nofor_main' ;;
18602         esac
18603         case `$CC -V 2>&1 | sed 5q` in
18604         *Sun\ C*)                       # Sun C 5.9
18605           whole_archive_flag_spec_GCJ='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
18606           tmp_sharedflag='-G' ;;
18607         *Sun\ F*)                       # Sun Fortran 8.3
18608           tmp_sharedflag='-G' ;;
18609         *)
18610           tmp_sharedflag='-shared' ;;
18611         esac
18612         archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18613
18614         if test $supports_anon_versioning = yes; then
18615           archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
18616   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
18617   $echo "local: *; };" >> $output_objdir/$libname.ver~
18618           $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
18619         fi
18620       else
18621         ld_shlibs_GCJ=no
18622       fi
18623       ;;
18624
18625     netbsd*)
18626       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18627         archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
18628         wlarc=
18629       else
18630         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18631         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18632       fi
18633       ;;
18634
18635     solaris*)
18636       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
18637         ld_shlibs_GCJ=no
18638         cat <<EOF 1>&2
18639
18640 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
18641 *** create shared libraries on Solaris systems.  Therefore, libtool
18642 *** is disabling shared libraries support.  We urge you to upgrade GNU
18643 *** binutils to release 2.9.1 or newer.  Another option is to modify
18644 *** your PATH or compiler configuration so that the native linker is
18645 *** used, and then restart.
18646
18647 EOF
18648       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18649         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18650         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18651       else
18652         ld_shlibs_GCJ=no
18653       fi
18654       ;;
18655
18656     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
18657       case `$LD -v 2>&1` in
18658         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
18659         ld_shlibs_GCJ=no
18660         cat <<_LT_EOF 1>&2
18661
18662 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
18663 *** reliably create shared libraries on SCO systems.  Therefore, libtool
18664 *** is disabling shared libraries support.  We urge you to upgrade GNU
18665 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
18666 *** your PATH or compiler configuration so that the native linker is
18667 *** used, and then restart.
18668
18669 _LT_EOF
18670         ;;
18671         *)
18672           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18673             hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
18674             archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
18675             archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
18676           else
18677             ld_shlibs_GCJ=no
18678           fi
18679         ;;
18680       esac
18681       ;;
18682
18683     sunos4*)
18684       archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18685       wlarc=
18686       hardcode_direct_GCJ=yes
18687       hardcode_shlibpath_var_GCJ=no
18688       ;;
18689
18690     *)
18691       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18692         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18693         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18694       else
18695         ld_shlibs_GCJ=no
18696       fi
18697       ;;
18698     esac
18699
18700     if test "$ld_shlibs_GCJ" = no; then
18701       runpath_var=
18702       hardcode_libdir_flag_spec_GCJ=
18703       export_dynamic_flag_spec_GCJ=
18704       whole_archive_flag_spec_GCJ=
18705     fi
18706   else
18707     # PORTME fill in a description of your system's linker (not GNU ld)
18708     case $host_os in
18709     aix3*)
18710       allow_undefined_flag_GCJ=unsupported
18711       always_export_symbols_GCJ=yes
18712       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'
18713       # Note: this linker hardcodes the directories in LIBPATH if there
18714       # are no directories specified by -L.
18715       hardcode_minus_L_GCJ=yes
18716       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
18717         # Neither direct hardcoding nor static linking is supported with a
18718         # broken collect2.
18719         hardcode_direct_GCJ=unsupported
18720       fi
18721       ;;
18722
18723     aix4* | aix5*)
18724       if test "$host_cpu" = ia64; then
18725         # On IA64, the linker does run time linking by default, so we don't
18726         # have to do anything special.
18727         aix_use_runtimelinking=no
18728         exp_sym_flag='-Bexport'
18729         no_entry_flag=""
18730       else
18731         # If we're using GNU nm, then we don't want the "-C" option.
18732         # -C means demangle to AIX nm, but means don't demangle with GNU nm
18733         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
18734           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'
18735         else
18736           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'
18737         fi
18738         aix_use_runtimelinking=no
18739
18740         # Test if we are trying to use run time linking or normal
18741         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18742         # need to do runtime linking.
18743         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
18744           for ld_flag in $LDFLAGS; do
18745           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
18746             aix_use_runtimelinking=yes
18747             break
18748           fi
18749           done
18750           ;;
18751         esac
18752
18753         exp_sym_flag='-bexport'
18754         no_entry_flag='-bnoentry'
18755       fi
18756
18757       # When large executables or shared objects are built, AIX ld can
18758       # have problems creating the table of contents.  If linking a library
18759       # or program results in "error TOC overflow" add -mminimal-toc to
18760       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
18761       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18762
18763       archive_cmds_GCJ=''
18764       hardcode_direct_GCJ=yes
18765       hardcode_libdir_separator_GCJ=':'
18766       link_all_deplibs_GCJ=yes
18767
18768       if test "$GCC" = yes; then
18769         case $host_os in aix4.[012]|aix4.[012].*)
18770         # We only want to do this on AIX 4.2 and lower, the check
18771         # below for broken collect2 doesn't work under 4.3+
18772           collect2name=`${CC} -print-prog-name=collect2`
18773           if test -f "$collect2name" && \
18774            strings "$collect2name" | grep resolve_lib_name >/dev/null
18775           then
18776           # We have reworked collect2
18777           :
18778           else
18779           # We have old collect2
18780           hardcode_direct_GCJ=unsupported
18781           # It fails to find uninstalled libraries when the uninstalled
18782           # path is not listed in the libpath.  Setting hardcode_minus_L
18783           # to unsupported forces relinking
18784           hardcode_minus_L_GCJ=yes
18785           hardcode_libdir_flag_spec_GCJ='-L$libdir'
18786           hardcode_libdir_separator_GCJ=
18787           fi
18788           ;;
18789         esac
18790         shared_flag='-shared'
18791         if test "$aix_use_runtimelinking" = yes; then
18792           shared_flag="$shared_flag "'${wl}-G'
18793         fi
18794       else
18795         # not using gcc
18796         if test "$host_cpu" = ia64; then
18797         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18798         # chokes on -Wl,-G. The following line is correct:
18799           shared_flag='-G'
18800         else
18801           if test "$aix_use_runtimelinking" = yes; then
18802             shared_flag='${wl}-G'
18803           else
18804             shared_flag='${wl}-bM:SRE'
18805           fi
18806         fi
18807       fi
18808
18809       # It seems that -bexpall does not export symbols beginning with
18810       # underscore (_), so it is better to generate a list of symbols to export.
18811       always_export_symbols_GCJ=yes
18812       if test "$aix_use_runtimelinking" = yes; then
18813         # Warning - without using the other runtime loading flags (-brtl),
18814         # -berok will link without error, but may produce a broken library.
18815         allow_undefined_flag_GCJ='-berok'
18816        # Determine the default libpath from the value encoded in an empty executable.
18817        cat >conftest.$ac_ext <<_ACEOF
18818 /* confdefs.h.  */
18819 _ACEOF
18820 cat confdefs.h >>conftest.$ac_ext
18821 cat >>conftest.$ac_ext <<_ACEOF
18822 /* end confdefs.h.  */
18823
18824 int
18825 main ()
18826 {
18827
18828   ;
18829   return 0;
18830 }
18831 _ACEOF
18832 rm -f conftest.$ac_objext conftest$ac_exeext
18833 if { (ac_try="$ac_link"
18834 case "(($ac_try" in
18835   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18836   *) ac_try_echo=$ac_try;;
18837 esac
18838 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18839   (eval "$ac_link") 2>conftest.er1
18840   ac_status=$?
18841   grep -v '^ *+' conftest.er1 >conftest.err
18842   rm -f conftest.er1
18843   cat conftest.err >&5
18844   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18845   (exit $ac_status); } && {
18846          test -z "$ac_c_werror_flag" ||
18847          test ! -s conftest.err
18848        } && test -s conftest$ac_exeext &&
18849        $as_test_x conftest$ac_exeext; then
18850
18851 lt_aix_libpath_sed='
18852     /Import File Strings/,/^$/ {
18853         /^0/ {
18854             s/^0  *\(.*\)$/\1/
18855             p
18856         }
18857     }'
18858 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18859 # Check for a 64-bit object if we didn't find anything.
18860 if test -z "$aix_libpath"; then
18861   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18862 fi
18863 else
18864   echo "$as_me: failed program was:" >&5
18865 sed 's/^/| /' conftest.$ac_ext >&5
18866
18867
18868 fi
18869
18870 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18871       conftest$ac_exeext conftest.$ac_ext
18872 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18873
18874        hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
18875         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"
18876        else
18877         if test "$host_cpu" = ia64; then
18878           hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
18879           allow_undefined_flag_GCJ="-z nodefs"
18880           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"
18881         else
18882          # Determine the default libpath from the value encoded in an empty executable.
18883          cat >conftest.$ac_ext <<_ACEOF
18884 /* confdefs.h.  */
18885 _ACEOF
18886 cat confdefs.h >>conftest.$ac_ext
18887 cat >>conftest.$ac_ext <<_ACEOF
18888 /* end confdefs.h.  */
18889
18890 int
18891 main ()
18892 {
18893
18894   ;
18895   return 0;
18896 }
18897 _ACEOF
18898 rm -f conftest.$ac_objext conftest$ac_exeext
18899 if { (ac_try="$ac_link"
18900 case "(($ac_try" in
18901   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18902   *) ac_try_echo=$ac_try;;
18903 esac
18904 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18905   (eval "$ac_link") 2>conftest.er1
18906   ac_status=$?
18907   grep -v '^ *+' conftest.er1 >conftest.err
18908   rm -f conftest.er1
18909   cat conftest.err >&5
18910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18911   (exit $ac_status); } && {
18912          test -z "$ac_c_werror_flag" ||
18913          test ! -s conftest.err
18914        } && test -s conftest$ac_exeext &&
18915        $as_test_x conftest$ac_exeext; then
18916
18917 lt_aix_libpath_sed='
18918     /Import File Strings/,/^$/ {
18919         /^0/ {
18920             s/^0  *\(.*\)$/\1/
18921             p
18922         }
18923     }'
18924 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18925 # Check for a 64-bit object if we didn't find anything.
18926 if test -z "$aix_libpath"; then
18927   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18928 fi
18929 else
18930   echo "$as_me: failed program was:" >&5
18931 sed 's/^/| /' conftest.$ac_ext >&5
18932
18933
18934 fi
18935
18936 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18937       conftest$ac_exeext conftest.$ac_ext
18938 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18939
18940          hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
18941           # Warning - without using the other run time loading flags,
18942           # -berok will link without error, but may produce a broken library.
18943           no_undefined_flag_GCJ=' ${wl}-bernotok'
18944           allow_undefined_flag_GCJ=' ${wl}-berok'
18945           # Exported symbols can be pulled into shared objects from archives
18946           whole_archive_flag_spec_GCJ='$convenience'
18947           archive_cmds_need_lc_GCJ=yes
18948           # This is similar to how AIX traditionally builds its shared libraries.
18949           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'
18950         fi
18951       fi
18952       ;;
18953
18954     amigaos*)
18955       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)'
18956       hardcode_libdir_flag_spec_GCJ='-L$libdir'
18957       hardcode_minus_L_GCJ=yes
18958       # see comment about different semantics on the GNU ld section
18959       ld_shlibs_GCJ=no
18960       ;;
18961
18962     bsdi[45]*)
18963       export_dynamic_flag_spec_GCJ=-rdynamic
18964       ;;
18965
18966     cygwin* | mingw* | pw32*)
18967       # When not using gcc, we currently assume that we are using
18968       # Microsoft Visual C++.
18969       # hardcode_libdir_flag_spec is actually meaningless, as there is
18970       # no search path for DLLs.
18971       hardcode_libdir_flag_spec_GCJ=' '
18972       allow_undefined_flag_GCJ=unsupported
18973       # Tell ltmain to make .lib files, not .a files.
18974       libext=lib
18975       # Tell ltmain to make .dll files, not .so files.
18976       shrext_cmds=".dll"
18977       # FIXME: Setting linknames here is a bad hack.
18978       archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
18979       # The linker will automatically build a .lib file if we build a DLL.
18980       old_archive_From_new_cmds_GCJ='true'
18981       # FIXME: Should let the user specify the lib program.
18982       old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
18983       fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
18984       enable_shared_with_static_runtimes_GCJ=yes
18985       ;;
18986
18987     darwin* | rhapsody*)
18988       case $host_os in
18989         rhapsody* | darwin1.[012])
18990          allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
18991          ;;
18992        *) # Darwin 1.3 on
18993          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
18994            allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18995          else
18996            case ${MACOSX_DEPLOYMENT_TARGET} in
18997              10.[012])
18998                allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18999                ;;
19000              10.*)
19001                allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
19002                ;;
19003            esac
19004          fi
19005          ;;
19006       esac
19007       archive_cmds_need_lc_GCJ=no
19008       hardcode_direct_GCJ=no
19009       hardcode_automatic_GCJ=yes
19010       hardcode_shlibpath_var_GCJ=unsupported
19011       whole_archive_flag_spec_GCJ=''
19012       link_all_deplibs_GCJ=yes
19013     if test "$GCC" = yes ; then
19014         output_verbose_link_cmd='echo'
19015         archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
19016       module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
19017       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
19018       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}'
19019       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}'
19020     else
19021       case $cc_basename in
19022         xlc*)
19023          output_verbose_link_cmd='echo'
19024          archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
19025          module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
19026           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
19027          archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
19028           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}'
19029           ;;
19030        *)
19031          ld_shlibs_GCJ=no
19032           ;;
19033       esac
19034     fi
19035       ;;
19036
19037     dgux*)
19038       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19039       hardcode_libdir_flag_spec_GCJ='-L$libdir'
19040       hardcode_shlibpath_var_GCJ=no
19041       ;;
19042
19043     freebsd1*)
19044       ld_shlibs_GCJ=no
19045       ;;
19046
19047     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
19048     # support.  Future versions do this automatically, but an explicit c++rt0.o
19049     # does not break anything, and helps significantly (at the cost of a little
19050     # extra space).
19051     freebsd2.2*)
19052       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
19053       hardcode_libdir_flag_spec_GCJ='-R$libdir'
19054       hardcode_direct_GCJ=yes
19055       hardcode_shlibpath_var_GCJ=no
19056       ;;
19057
19058     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
19059     freebsd2*)
19060       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19061       hardcode_direct_GCJ=yes
19062       hardcode_minus_L_GCJ=yes
19063       hardcode_shlibpath_var_GCJ=no
19064       ;;
19065
19066     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
19067     freebsd* | dragonfly*)
19068       archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
19069       hardcode_libdir_flag_spec_GCJ='-R$libdir'
19070       hardcode_direct_GCJ=yes
19071       hardcode_shlibpath_var_GCJ=no
19072       ;;
19073
19074     hpux9*)
19075       if test "$GCC" = yes; then
19076         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'
19077       else
19078         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'
19079       fi
19080       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
19081       hardcode_libdir_separator_GCJ=:
19082       hardcode_direct_GCJ=yes
19083
19084       # hardcode_minus_L: Not really in the search PATH,
19085       # but as the default location of the library.
19086       hardcode_minus_L_GCJ=yes
19087       export_dynamic_flag_spec_GCJ='${wl}-E'
19088       ;;
19089
19090     hpux10*)
19091       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
19092         archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
19093       else
19094         archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
19095       fi
19096       if test "$with_gnu_ld" = no; then
19097         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
19098         hardcode_libdir_separator_GCJ=:
19099
19100         hardcode_direct_GCJ=yes
19101         export_dynamic_flag_spec_GCJ='${wl}-E'
19102
19103         # hardcode_minus_L: Not really in the search PATH,
19104         # but as the default location of the library.
19105         hardcode_minus_L_GCJ=yes
19106       fi
19107       ;;
19108
19109     hpux11*)
19110       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
19111         case $host_cpu in
19112         hppa*64*)
19113           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19114           ;;
19115         ia64*)
19116           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
19117           ;;
19118         *)
19119           archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
19120           ;;
19121         esac
19122       else
19123         case $host_cpu in
19124         hppa*64*)
19125           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19126           ;;
19127         ia64*)
19128           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
19129           ;;
19130         *)
19131           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
19132           ;;
19133         esac
19134       fi
19135       if test "$with_gnu_ld" = no; then
19136         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
19137         hardcode_libdir_separator_GCJ=:
19138
19139         case $host_cpu in
19140         hppa*64*|ia64*)
19141           hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
19142           hardcode_direct_GCJ=no
19143           hardcode_shlibpath_var_GCJ=no
19144           ;;
19145         *)
19146           hardcode_direct_GCJ=yes
19147           export_dynamic_flag_spec_GCJ='${wl}-E'
19148
19149           # hardcode_minus_L: Not really in the search PATH,
19150           # but as the default location of the library.
19151           hardcode_minus_L_GCJ=yes
19152           ;;
19153         esac
19154       fi
19155       ;;
19156
19157     irix5* | irix6* | nonstopux*)
19158       if test "$GCC" = yes; then
19159         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'
19160       else
19161         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'
19162         hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
19163       fi
19164       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
19165       hardcode_libdir_separator_GCJ=:
19166       link_all_deplibs_GCJ=yes
19167       ;;
19168
19169     netbsd*)
19170       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19171         archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
19172       else
19173         archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
19174       fi
19175       hardcode_libdir_flag_spec_GCJ='-R$libdir'
19176       hardcode_direct_GCJ=yes
19177       hardcode_shlibpath_var_GCJ=no
19178       ;;
19179
19180     newsos6)
19181       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19182       hardcode_direct_GCJ=yes
19183       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
19184       hardcode_libdir_separator_GCJ=:
19185       hardcode_shlibpath_var_GCJ=no
19186       ;;
19187
19188     openbsd*)
19189       if test -f /usr/libexec/ld.so; then
19190         hardcode_direct_GCJ=yes
19191         hardcode_shlibpath_var_GCJ=no
19192         if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19193           archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
19194           archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
19195           hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
19196           export_dynamic_flag_spec_GCJ='${wl}-E'
19197         else
19198           case $host_os in
19199            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
19200              archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19201              hardcode_libdir_flag_spec_GCJ='-R$libdir'
19202              ;;
19203            *)
19204              archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
19205              hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
19206              ;;
19207           esac
19208         fi
19209       else
19210         ld_shlibs_GCJ=no
19211       fi
19212       ;;
19213
19214     os2*)
19215       hardcode_libdir_flag_spec_GCJ='-L$libdir'
19216       hardcode_minus_L_GCJ=yes
19217       allow_undefined_flag_GCJ=unsupported
19218       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'
19219       old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
19220       ;;
19221
19222     osf3*)
19223       if test "$GCC" = yes; then
19224         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
19225         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'
19226       else
19227         allow_undefined_flag_GCJ=' -expect_unresolved \*'
19228         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'
19229       fi
19230       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
19231       hardcode_libdir_separator_GCJ=:
19232       ;;
19233
19234     osf4* | osf5*)      # as osf3* with the addition of -msym flag
19235       if test "$GCC" = yes; then
19236         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
19237         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'
19238         hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
19239       else
19240         allow_undefined_flag_GCJ=' -expect_unresolved \*'
19241         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'
19242         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~
19243         $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'
19244
19245         # Both c and cxx compiler support -rpath directly
19246         hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
19247       fi
19248       hardcode_libdir_separator_GCJ=:
19249       ;;
19250
19251     solaris*)
19252       no_undefined_flag_GCJ=' -z text'
19253       if test "$GCC" = yes; then
19254         wlarc='${wl}'
19255         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19256         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19257           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
19258       else
19259         wlarc=''
19260         archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
19261         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19262         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
19263       fi
19264       hardcode_libdir_flag_spec_GCJ='-R$libdir'
19265       hardcode_shlibpath_var_GCJ=no
19266       case $host_os in
19267       solaris2.[0-5] | solaris2.[0-5].*) ;;
19268       *)
19269         # The compiler driver will combine and reorder linker options,
19270         # but understands `-z linker_flag'.  GCC discards it without `$wl',
19271         # but is careful enough not to reorder.
19272         # Supported since Solaris 2.6 (maybe 2.5.1?)
19273         if test "$GCC" = yes; then
19274           whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
19275         else
19276           whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
19277         fi
19278         ;;
19279       esac
19280       link_all_deplibs_GCJ=yes
19281       ;;
19282
19283     sunos4*)
19284       if test "x$host_vendor" = xsequent; then
19285         # Use $CC to link under sequent, because it throws in some extra .o
19286         # files that make .init and .fini sections work.
19287         archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
19288       else
19289         archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
19290       fi
19291       hardcode_libdir_flag_spec_GCJ='-L$libdir'
19292       hardcode_direct_GCJ=yes
19293       hardcode_minus_L_GCJ=yes
19294       hardcode_shlibpath_var_GCJ=no
19295       ;;
19296
19297     sysv4)
19298       case $host_vendor in
19299         sni)
19300           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19301           hardcode_direct_GCJ=yes # is this really true???
19302         ;;
19303         siemens)
19304           ## LD is ld it makes a PLAMLIB
19305           ## CC just makes a GrossModule.
19306           archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
19307           reload_cmds_GCJ='$CC -r -o $output$reload_objs'
19308           hardcode_direct_GCJ=no
19309         ;;
19310         motorola)
19311           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19312           hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
19313         ;;
19314       esac
19315       runpath_var='LD_RUN_PATH'
19316       hardcode_shlibpath_var_GCJ=no
19317       ;;
19318
19319     sysv4.3*)
19320       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19321       hardcode_shlibpath_var_GCJ=no
19322       export_dynamic_flag_spec_GCJ='-Bexport'
19323       ;;
19324
19325     sysv4*MP*)
19326       if test -d /usr/nec; then
19327         archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19328         hardcode_shlibpath_var_GCJ=no
19329         runpath_var=LD_RUN_PATH
19330         hardcode_runpath_var=yes
19331         ld_shlibs_GCJ=yes
19332       fi
19333       ;;
19334
19335     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
19336       no_undefined_flag_GCJ='${wl}-z,text'
19337       archive_cmds_need_lc_GCJ=no
19338       hardcode_shlibpath_var_GCJ=no
19339       runpath_var='LD_RUN_PATH'
19340
19341       if test "$GCC" = yes; then
19342         archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19343         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19344       else
19345         archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19346         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19347       fi
19348       ;;
19349
19350     sysv5* | sco3.2v5* | sco5v6*)
19351       # Note: We can NOT use -z defs as we might desire, because we do not
19352       # link with -lc, and that would cause any symbols used from libc to
19353       # always be unresolved, which means just about no library would
19354       # ever link correctly.  If we're not using GNU ld we use -z text
19355       # though, which does catch some bad symbols but isn't as heavy-handed
19356       # as -z defs.
19357       no_undefined_flag_GCJ='${wl}-z,text'
19358       allow_undefined_flag_GCJ='${wl}-z,nodefs'
19359       archive_cmds_need_lc_GCJ=no
19360       hardcode_shlibpath_var_GCJ=no
19361       hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
19362       hardcode_libdir_separator_GCJ=':'
19363       link_all_deplibs_GCJ=yes
19364       export_dynamic_flag_spec_GCJ='${wl}-Bexport'
19365       runpath_var='LD_RUN_PATH'
19366
19367       if test "$GCC" = yes; then
19368         archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19369         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19370       else
19371         archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19372         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19373       fi
19374       ;;
19375
19376     uts4*)
19377       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19378       hardcode_libdir_flag_spec_GCJ='-L$libdir'
19379       hardcode_shlibpath_var_GCJ=no
19380       ;;
19381
19382     *)
19383       ld_shlibs_GCJ=no
19384       ;;
19385     esac
19386   fi
19387
19388 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
19389 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
19390 test "$ld_shlibs_GCJ" = no && can_build_shared=no
19391
19392 #
19393 # Do we need to explicitly link libc?
19394 #
19395 case "x$archive_cmds_need_lc_GCJ" in
19396 x|xyes)
19397   # Assume -lc should be added
19398   archive_cmds_need_lc_GCJ=yes
19399
19400   if test "$enable_shared" = yes && test "$GCC" = yes; then
19401     case $archive_cmds_GCJ in
19402     *'~'*)
19403       # FIXME: we may have to deal with multi-command sequences.
19404       ;;
19405     '$CC '*)
19406       # Test whether the compiler implicitly links with -lc since on some
19407       # systems, -lgcc has to come before -lc. If gcc already passes -lc
19408       # to ld, don't add -lc before -lgcc.
19409       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
19410 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
19411       $rm conftest*
19412       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19413
19414       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19415   (eval $ac_compile) 2>&5
19416   ac_status=$?
19417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19418   (exit $ac_status); } 2>conftest.err; then
19419         soname=conftest
19420         lib=conftest
19421         libobjs=conftest.$ac_objext
19422         deplibs=
19423         wl=$lt_prog_compiler_wl_GCJ
19424         pic_flag=$lt_prog_compiler_pic_GCJ
19425         compiler_flags=-v
19426         linker_flags=-v
19427         verstring=
19428         output_objdir=.
19429         libname=conftest
19430         lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
19431         allow_undefined_flag_GCJ=
19432         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
19433   (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
19434   ac_status=$?
19435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19436   (exit $ac_status); }
19437         then
19438           archive_cmds_need_lc_GCJ=no
19439         else
19440           archive_cmds_need_lc_GCJ=yes
19441         fi
19442         allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
19443       else
19444         cat conftest.err 1>&5
19445       fi
19446       $rm conftest*
19447       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
19448 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
19449       ;;
19450     esac
19451   fi
19452   ;;
19453 esac
19454
19455 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
19456 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
19457 library_names_spec=
19458 libname_spec='lib$name'
19459 soname_spec=
19460 shrext_cmds=".so"
19461 postinstall_cmds=
19462 postuninstall_cmds=
19463 finish_cmds=
19464 finish_eval=
19465 shlibpath_var=
19466 shlibpath_overrides_runpath=unknown
19467 version_type=none
19468 dynamic_linker="$host_os ld.so"
19469 sys_lib_dlsearch_path_spec="/lib /usr/lib"
19470
19471 need_lib_prefix=unknown
19472 hardcode_into_libs=no
19473
19474 # when you set need_version to no, make sure it does not cause -set_version
19475 # flags to be left without arguments
19476 need_version=unknown
19477
19478 case $host_os in
19479 aix3*)
19480   version_type=linux
19481   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
19482   shlibpath_var=LIBPATH
19483
19484   # AIX 3 has no versioning support, so we append a major version to the name.
19485   soname_spec='${libname}${release}${shared_ext}$major'
19486   ;;
19487
19488 aix4* | aix5*)
19489   version_type=linux
19490   need_lib_prefix=no
19491   need_version=no
19492   hardcode_into_libs=yes
19493   if test "$host_cpu" = ia64; then
19494     # AIX 5 supports IA64
19495     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
19496     shlibpath_var=LD_LIBRARY_PATH
19497   else
19498     # With GCC up to 2.95.x, collect2 would create an import file
19499     # for dependence libraries.  The import file would start with
19500     # the line `#! .'.  This would cause the generated library to
19501     # depend on `.', always an invalid library.  This was fixed in
19502     # development snapshots of GCC prior to 3.0.
19503     case $host_os in
19504       aix4 | aix4.[01] | aix4.[01].*)
19505       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
19506            echo ' yes '
19507            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
19508         :
19509       else
19510         can_build_shared=no
19511       fi
19512       ;;
19513     esac
19514     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
19515     # soname into executable. Probably we can add versioning support to
19516     # collect2, so additional links can be useful in future.
19517     if test "$aix_use_runtimelinking" = yes; then
19518       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
19519       # instead of lib<name>.a to let people know that these are not
19520       # typical AIX shared libraries.
19521       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19522     else
19523       # We preserve .a as extension for shared libraries through AIX4.2
19524       # and later when we are not doing run time linking.
19525       library_names_spec='${libname}${release}.a $libname.a'
19526       soname_spec='${libname}${release}${shared_ext}$major'
19527     fi
19528     shlibpath_var=LIBPATH
19529   fi
19530   ;;
19531
19532 amigaos*)
19533   library_names_spec='$libname.ixlibrary $libname.a'
19534   # Create ${libname}_ixlibrary.a entries in /sys/libs.
19535   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'
19536   ;;
19537
19538 beos*)
19539   library_names_spec='${libname}${shared_ext}'
19540   dynamic_linker="$host_os ld.so"
19541   shlibpath_var=LIBRARY_PATH
19542   ;;
19543
19544 bsdi[45]*)
19545   version_type=linux
19546   need_version=no
19547   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19548   soname_spec='${libname}${release}${shared_ext}$major'
19549   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
19550   shlibpath_var=LD_LIBRARY_PATH
19551   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
19552   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
19553   # the default ld.so.conf also contains /usr/contrib/lib and
19554   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
19555   # libtool to hard-code these into programs
19556   ;;
19557
19558 cygwin* | mingw* | pw32*)
19559   version_type=windows
19560   shrext_cmds=".dll"
19561   need_version=no
19562   need_lib_prefix=no
19563
19564   case $GCC,$host_os in
19565   yes,cygwin* | yes,mingw* | yes,pw32*)
19566     library_names_spec='$libname.dll.a'
19567     # DLL is installed to $(libdir)/../bin by postinstall_cmds
19568     postinstall_cmds='base_file=`basename \${file}`~
19569       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
19570       dldir=$destdir/`dirname \$dlpath`~
19571       test -d \$dldir || mkdir -p \$dldir~
19572       $install_prog $dir/$dlname \$dldir/$dlname~
19573       chmod a+x \$dldir/$dlname'
19574     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
19575       dlpath=$dir/\$dldll~
19576        $rm \$dlpath'
19577     shlibpath_overrides_runpath=yes
19578
19579     case $host_os in
19580     cygwin*)
19581       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
19582       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19583       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
19584       ;;
19585     mingw*)
19586       # MinGW DLLs use traditional 'lib' prefix
19587       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19588       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
19589       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
19590         # It is most probably a Windows format PATH printed by
19591         # mingw gcc, but we are running on Cygwin. Gcc prints its search
19592         # path with ; separators, and with drive letters. We can handle the
19593         # drive letters (cygwin fileutils understands them), so leave them,
19594         # especially as we might pass files found there to a mingw objdump,
19595         # which wouldn't understand a cygwinified path. Ahh.
19596         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19597       else
19598         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
19599       fi
19600       ;;
19601     pw32*)
19602       # pw32 DLLs use 'pw' prefix rather than 'lib'
19603       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19604       ;;
19605     esac
19606     ;;
19607
19608   *)
19609     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
19610     ;;
19611   esac
19612   dynamic_linker='Win32 ld.exe'
19613   # FIXME: first we should search . and the directory the executable is in
19614   shlibpath_var=PATH
19615   ;;
19616
19617 darwin* | rhapsody*)
19618   dynamic_linker="$host_os dyld"
19619   version_type=darwin
19620   need_lib_prefix=no
19621   need_version=no
19622   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
19623   soname_spec='${libname}${release}${major}$shared_ext'
19624   shlibpath_overrides_runpath=yes
19625   shlibpath_var=DYLD_LIBRARY_PATH
19626   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
19627
19628   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
19629   ;;
19630
19631 dgux*)
19632   version_type=linux
19633   need_lib_prefix=no
19634   need_version=no
19635   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
19636   soname_spec='${libname}${release}${shared_ext}$major'
19637   shlibpath_var=LD_LIBRARY_PATH
19638   ;;
19639
19640 freebsd1*)
19641   dynamic_linker=no
19642   ;;
19643
19644 freebsd* | dragonfly*)
19645   # DragonFly does not have aout.  When/if they implement a new
19646   # versioning mechanism, adjust this.
19647   if test -x /usr/bin/objformat; then
19648     objformat=`/usr/bin/objformat`
19649   else
19650     case $host_os in
19651     freebsd[123]*) objformat=aout ;;
19652     *) objformat=elf ;;
19653     esac
19654   fi
19655   version_type=freebsd-$objformat
19656   case $version_type in
19657     freebsd-elf*)
19658       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19659       need_version=no
19660       need_lib_prefix=no
19661       ;;
19662     freebsd-*)
19663       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
19664       need_version=yes
19665       ;;
19666   esac
19667   shlibpath_var=LD_LIBRARY_PATH
19668   case $host_os in
19669   freebsd2*)
19670     shlibpath_overrides_runpath=yes
19671     ;;
19672   freebsd3.[01]* | freebsdelf3.[01]*)
19673     shlibpath_overrides_runpath=yes
19674     hardcode_into_libs=yes
19675     ;;
19676   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
19677   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
19678     shlibpath_overrides_runpath=no
19679     hardcode_into_libs=yes
19680     ;;
19681   *) # from 4.6 on, and DragonFly
19682     shlibpath_overrides_runpath=yes
19683     hardcode_into_libs=yes
19684     ;;
19685   esac
19686   ;;
19687
19688 gnu*)
19689   version_type=linux
19690   need_lib_prefix=no
19691   need_version=no
19692   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
19693   soname_spec='${libname}${release}${shared_ext}$major'
19694   shlibpath_var=LD_LIBRARY_PATH
19695   hardcode_into_libs=yes
19696   ;;
19697
19698 hpux9* | hpux10* | hpux11*)
19699   # Give a soname corresponding to the major version so that dld.sl refuses to
19700   # link against other versions.
19701   version_type=sunos
19702   need_lib_prefix=no
19703   need_version=no
19704   case $host_cpu in
19705   ia64*)
19706     shrext_cmds='.so'
19707     hardcode_into_libs=yes
19708     dynamic_linker="$host_os dld.so"
19709     shlibpath_var=LD_LIBRARY_PATH
19710     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19711     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19712     soname_spec='${libname}${release}${shared_ext}$major'
19713     if test "X$HPUX_IA64_MODE" = X32; then
19714       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
19715     else
19716       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
19717     fi
19718     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19719     ;;
19720    hppa*64*)
19721      shrext_cmds='.sl'
19722      hardcode_into_libs=yes
19723      dynamic_linker="$host_os dld.sl"
19724      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
19725      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19726      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19727      soname_spec='${libname}${release}${shared_ext}$major'
19728      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
19729      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19730      ;;
19731    *)
19732     shrext_cmds='.sl'
19733     dynamic_linker="$host_os dld.sl"
19734     shlibpath_var=SHLIB_PATH
19735     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
19736     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19737     soname_spec='${libname}${release}${shared_ext}$major'
19738     ;;
19739   esac
19740   # HP-UX runs *really* slowly unless shared libraries are mode 555.
19741   postinstall_cmds='chmod 555 $lib'
19742   ;;
19743
19744 interix[3-9]*)
19745   version_type=linux
19746   need_lib_prefix=no
19747   need_version=no
19748   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19749   soname_spec='${libname}${release}${shared_ext}$major'
19750   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
19751   shlibpath_var=LD_LIBRARY_PATH
19752   shlibpath_overrides_runpath=no
19753   hardcode_into_libs=yes
19754   ;;
19755
19756 irix5* | irix6* | nonstopux*)
19757   case $host_os in
19758     nonstopux*) version_type=nonstopux ;;
19759     *)
19760         if test "$lt_cv_prog_gnu_ld" = yes; then
19761                 version_type=linux
19762         else
19763                 version_type=irix
19764         fi ;;
19765   esac
19766   need_lib_prefix=no
19767   need_version=no
19768   soname_spec='${libname}${release}${shared_ext}$major'
19769   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
19770   case $host_os in
19771   irix5* | nonstopux*)
19772     libsuff= shlibsuff=
19773     ;;
19774   *)
19775     case $LD in # libtool.m4 will add one of these switches to LD
19776     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
19777       libsuff= shlibsuff= libmagic=32-bit;;
19778     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
19779       libsuff=32 shlibsuff=N32 libmagic=N32;;
19780     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
19781       libsuff=64 shlibsuff=64 libmagic=64-bit;;
19782     *) libsuff= shlibsuff= libmagic=never-match;;
19783     esac
19784     ;;
19785   esac
19786   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
19787   shlibpath_overrides_runpath=no
19788   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
19789   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
19790   hardcode_into_libs=yes
19791   ;;
19792
19793 # No shared lib support for Linux oldld, aout, or coff.
19794 linux*oldld* | linux*aout* | linux*coff*)
19795   dynamic_linker=no
19796   ;;
19797
19798 # This must be Linux ELF.
19799 linux* | k*bsd*-gnu)
19800   version_type=linux
19801   need_lib_prefix=no
19802   need_version=no
19803   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19804   soname_spec='${libname}${release}${shared_ext}$major'
19805   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
19806   shlibpath_var=LD_LIBRARY_PATH
19807   shlibpath_overrides_runpath=no
19808   # This implies no fast_install, which is unacceptable.
19809   # Some rework will be needed to allow for fast_install
19810   # before this can be enabled.
19811   hardcode_into_libs=yes
19812   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
19813   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
19814
19815   # Append ld.so.conf contents to the search path
19816   if test -f /etc/ld.so.conf; then
19817     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[      ]*hwcap[        ]/d;s/[:,       ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
19818     sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
19819   fi
19820
19821   # We used to test for /lib/ld.so.1 and disable shared libraries on
19822   # powerpc, because MkLinux only supported shared libraries with the
19823   # GNU dynamic linker.  Since this was broken with cross compilers,
19824   # most powerpc-linux boxes support dynamic linking these days and
19825   # people can always --disable-shared, the test was removed, and we
19826   # assume the GNU/Linux dynamic linker is in use.
19827   dynamic_linker='GNU/Linux ld.so'
19828   ;;
19829
19830 netbsd*)
19831   version_type=sunos
19832   need_lib_prefix=no
19833   need_version=no
19834   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19835     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19836     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19837     dynamic_linker='NetBSD (a.out) ld.so'
19838   else
19839     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19840     soname_spec='${libname}${release}${shared_ext}$major'
19841     dynamic_linker='NetBSD ld.elf_so'
19842   fi
19843   shlibpath_var=LD_LIBRARY_PATH
19844   shlibpath_overrides_runpath=yes
19845   hardcode_into_libs=yes
19846   ;;
19847
19848 newsos6)
19849   version_type=linux
19850   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19851   shlibpath_var=LD_LIBRARY_PATH
19852   shlibpath_overrides_runpath=yes
19853   ;;
19854
19855 nto-qnx*)
19856   version_type=linux
19857   need_lib_prefix=no
19858   need_version=no
19859   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19860   soname_spec='${libname}${release}${shared_ext}$major'
19861   shlibpath_var=LD_LIBRARY_PATH
19862   shlibpath_overrides_runpath=yes
19863   ;;
19864
19865 openbsd*)
19866   version_type=sunos
19867   sys_lib_dlsearch_path_spec="/usr/lib"
19868   need_lib_prefix=no
19869   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
19870   case $host_os in
19871     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
19872     *)                         need_version=no  ;;
19873   esac
19874   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19875   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19876   shlibpath_var=LD_LIBRARY_PATH
19877   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19878     case $host_os in
19879       openbsd2.[89] | openbsd2.[89].*)
19880         shlibpath_overrides_runpath=no
19881         ;;
19882       *)
19883         shlibpath_overrides_runpath=yes
19884         ;;
19885       esac
19886   else
19887     shlibpath_overrides_runpath=yes
19888   fi
19889   ;;
19890
19891 os2*)
19892   libname_spec='$name'
19893   shrext_cmds=".dll"
19894   need_lib_prefix=no
19895   library_names_spec='$libname${shared_ext} $libname.a'
19896   dynamic_linker='OS/2 ld.exe'
19897   shlibpath_var=LIBPATH
19898   ;;
19899
19900 osf3* | osf4* | osf5*)
19901   version_type=osf
19902   need_lib_prefix=no
19903   need_version=no
19904   soname_spec='${libname}${release}${shared_ext}$major'
19905   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19906   shlibpath_var=LD_LIBRARY_PATH
19907   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
19908   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
19909   ;;
19910
19911 rdos*)
19912   dynamic_linker=no
19913   ;;
19914
19915 solaris*)
19916   version_type=linux
19917   need_lib_prefix=no
19918   need_version=no
19919   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19920   soname_spec='${libname}${release}${shared_ext}$major'
19921   shlibpath_var=LD_LIBRARY_PATH
19922   shlibpath_overrides_runpath=yes
19923   hardcode_into_libs=yes
19924   # ldd complains unless libraries are executable
19925   postinstall_cmds='chmod +x $lib'
19926   ;;
19927
19928 sunos4*)
19929   version_type=sunos
19930   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19931   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
19932   shlibpath_var=LD_LIBRARY_PATH
19933   shlibpath_overrides_runpath=yes
19934   if test "$with_gnu_ld" = yes; then
19935     need_lib_prefix=no
19936   fi
19937   need_version=yes
19938   ;;
19939
19940 sysv4 | sysv4.3*)
19941   version_type=linux
19942   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19943   soname_spec='${libname}${release}${shared_ext}$major'
19944   shlibpath_var=LD_LIBRARY_PATH
19945   case $host_vendor in
19946     sni)
19947       shlibpath_overrides_runpath=no
19948       need_lib_prefix=no
19949       export_dynamic_flag_spec='${wl}-Blargedynsym'
19950       runpath_var=LD_RUN_PATH
19951       ;;
19952     siemens)
19953       need_lib_prefix=no
19954       ;;
19955     motorola)
19956       need_lib_prefix=no
19957       need_version=no
19958       shlibpath_overrides_runpath=no
19959       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
19960       ;;
19961   esac
19962   ;;
19963
19964 sysv4*MP*)
19965   if test -d /usr/nec ;then
19966     version_type=linux
19967     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
19968     soname_spec='$libname${shared_ext}.$major'
19969     shlibpath_var=LD_LIBRARY_PATH
19970   fi
19971   ;;
19972
19973 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
19974   version_type=freebsd-elf
19975   need_lib_prefix=no
19976   need_version=no
19977   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19978   soname_spec='${libname}${release}${shared_ext}$major'
19979   shlibpath_var=LD_LIBRARY_PATH
19980   hardcode_into_libs=yes
19981   if test "$with_gnu_ld" = yes; then
19982     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
19983     shlibpath_overrides_runpath=no
19984   else
19985     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
19986     shlibpath_overrides_runpath=yes
19987     case $host_os in
19988       sco3.2v5*)
19989         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
19990         ;;
19991     esac
19992   fi
19993   sys_lib_dlsearch_path_spec='/usr/lib'
19994   ;;
19995
19996 uts4*)
19997   version_type=linux
19998   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19999   soname_spec='${libname}${release}${shared_ext}$major'
20000   shlibpath_var=LD_LIBRARY_PATH
20001   ;;
20002
20003 *)
20004   dynamic_linker=no
20005   ;;
20006 esac
20007 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
20008 echo "${ECHO_T}$dynamic_linker" >&6; }
20009 test "$dynamic_linker" = no && can_build_shared=no
20010
20011 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
20012 if test "$GCC" = yes; then
20013   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
20014 fi
20015
20016 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
20017 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
20018 hardcode_action_GCJ=
20019 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
20020    test -n "$runpath_var_GCJ" || \
20021    test "X$hardcode_automatic_GCJ" = "Xyes" ; then
20022
20023   # We can hardcode non-existant directories.
20024   if test "$hardcode_direct_GCJ" != no &&
20025      # If the only mechanism to avoid hardcoding is shlibpath_var, we
20026      # have to relink, otherwise we might link with an installed library
20027      # when we should be linking with a yet-to-be-installed one
20028      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
20029      test "$hardcode_minus_L_GCJ" != no; then
20030     # Linking always hardcodes the temporary library directory.
20031     hardcode_action_GCJ=relink
20032   else
20033     # We can link without hardcoding, and we can hardcode nonexisting dirs.
20034     hardcode_action_GCJ=immediate
20035   fi
20036 else
20037   # We cannot hardcode anything, or else we can only hardcode existing
20038   # directories.
20039   hardcode_action_GCJ=unsupported
20040 fi
20041 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
20042 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
20043
20044 if test "$hardcode_action_GCJ" = relink; then
20045   # Fast installation is not supported
20046   enable_fast_install=no
20047 elif test "$shlibpath_overrides_runpath" = yes ||
20048      test "$enable_shared" = no; then
20049   # Fast installation is not necessary
20050   enable_fast_install=needless
20051 fi
20052
20053
20054 # The else clause should only fire when bootstrapping the
20055 # libtool distribution, otherwise you forgot to ship ltmain.sh
20056 # with your package, and you will get complaints that there are
20057 # no rules to generate ltmain.sh.
20058 if test -f "$ltmain"; then
20059   # See if we are running on zsh, and set the options which allow our commands through
20060   # without removal of \ escapes.
20061   if test -n "${ZSH_VERSION+set}" ; then
20062     setopt NO_GLOB_SUBST
20063   fi
20064   # Now quote all the things that may contain metacharacters while being
20065   # careful not to overquote the AC_SUBSTed values.  We take copies of the
20066   # variables and quote the copies for generation of the libtool script.
20067   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
20068     SED SHELL STRIP \
20069     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20070     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20071     deplibs_check_method reload_flag reload_cmds need_locks \
20072     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20073     lt_cv_sys_global_symbol_to_c_name_address \
20074     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20075     old_postinstall_cmds old_postuninstall_cmds \
20076     compiler_GCJ \
20077     CC_GCJ \
20078     LD_GCJ \
20079     lt_prog_compiler_wl_GCJ \
20080     lt_prog_compiler_pic_GCJ \
20081     lt_prog_compiler_static_GCJ \
20082     lt_prog_compiler_no_builtin_flag_GCJ \
20083     export_dynamic_flag_spec_GCJ \
20084     thread_safe_flag_spec_GCJ \
20085     whole_archive_flag_spec_GCJ \
20086     enable_shared_with_static_runtimes_GCJ \
20087     old_archive_cmds_GCJ \
20088     old_archive_from_new_cmds_GCJ \
20089     predep_objects_GCJ \
20090     postdep_objects_GCJ \
20091     predeps_GCJ \
20092     postdeps_GCJ \
20093     compiler_lib_search_path_GCJ \
20094     archive_cmds_GCJ \
20095     archive_expsym_cmds_GCJ \
20096     postinstall_cmds_GCJ \
20097     postuninstall_cmds_GCJ \
20098     old_archive_from_expsyms_cmds_GCJ \
20099     allow_undefined_flag_GCJ \
20100     no_undefined_flag_GCJ \
20101     export_symbols_cmds_GCJ \
20102     hardcode_libdir_flag_spec_GCJ \
20103     hardcode_libdir_flag_spec_ld_GCJ \
20104     hardcode_libdir_separator_GCJ \
20105     hardcode_automatic_GCJ \
20106     module_cmds_GCJ \
20107     module_expsym_cmds_GCJ \
20108     lt_cv_prog_compiler_c_o_GCJ \
20109     fix_srcfile_path_GCJ \
20110     exclude_expsyms_GCJ \
20111     include_expsyms_GCJ; do
20112
20113     case $var in
20114     old_archive_cmds_GCJ | \
20115     old_archive_from_new_cmds_GCJ | \
20116     archive_cmds_GCJ | \
20117     archive_expsym_cmds_GCJ | \
20118     module_cmds_GCJ | \
20119     module_expsym_cmds_GCJ | \
20120     old_archive_from_expsyms_cmds_GCJ | \
20121     export_symbols_cmds_GCJ | \
20122     extract_expsyms_cmds | reload_cmds | finish_cmds | \
20123     postinstall_cmds | postuninstall_cmds | \
20124     old_postinstall_cmds | old_postuninstall_cmds | \
20125     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20126       # Double-quote double-evaled strings.
20127       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
20128       ;;
20129     *)
20130       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20131       ;;
20132     esac
20133   done
20134
20135   case $lt_echo in
20136   *'\$0 --fallback-echo"')
20137     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20138     ;;
20139   esac
20140
20141 cfgfile="$ofile"
20142
20143   cat <<__EOF__ >> "$cfgfile"
20144 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
20145
20146 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20147
20148 # Shell to use when invoking shell scripts.
20149 SHELL=$lt_SHELL
20150
20151 # Whether or not to build shared libraries.
20152 build_libtool_libs=$enable_shared
20153
20154 # Whether or not to build static libraries.
20155 build_old_libs=$enable_static
20156
20157 # Whether or not to add -lc for building shared libraries.
20158 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
20159
20160 # Whether or not to disallow shared libs when runtime libs are static
20161 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
20162
20163 # Whether or not to optimize for fast installation.
20164 fast_install=$enable_fast_install
20165
20166 # The host system.
20167 host_alias=$host_alias
20168 host=$host
20169 host_os=$host_os
20170
20171 # The build system.
20172 build_alias=$build_alias
20173 build=$build
20174 build_os=$build_os
20175
20176 # An echo program that does not interpret backslashes.
20177 echo=$lt_echo
20178
20179 # The archiver.
20180 AR=$lt_AR
20181 AR_FLAGS=$lt_AR_FLAGS
20182
20183 # A C compiler.
20184 LTCC=$lt_LTCC
20185
20186 # LTCC compiler flags.
20187 LTCFLAGS=$lt_LTCFLAGS
20188
20189 # A language-specific compiler.
20190 CC=$lt_compiler_GCJ
20191
20192 # Is the compiler the GNU C compiler?
20193 with_gcc=$GCC_GCJ
20194
20195 # An ERE matcher.
20196 EGREP=$lt_EGREP
20197
20198 # The linker used to build libraries.
20199 LD=$lt_LD_GCJ
20200
20201 # Whether we need hard or soft links.
20202 LN_S=$lt_LN_S
20203
20204 # A BSD-compatible nm program.
20205 NM=$lt_NM
20206
20207 # A symbol stripping program
20208 STRIP=$lt_STRIP
20209
20210 # Used to examine libraries when file_magic_cmd begins "file"
20211 MAGIC_CMD=$MAGIC_CMD
20212
20213 # Used on cygwin: DLL creation program.
20214 DLLTOOL="$DLLTOOL"
20215
20216 # Used on cygwin: object dumper.
20217 OBJDUMP="$OBJDUMP"
20218
20219 # Used on cygwin: assembler.
20220 AS="$AS"
20221
20222 # The name of the directory that contains temporary libtool files.
20223 objdir=$objdir
20224
20225 # How to create reloadable object files.
20226 reload_flag=$lt_reload_flag
20227 reload_cmds=$lt_reload_cmds
20228
20229 # How to pass a linker flag through the compiler.
20230 wl=$lt_lt_prog_compiler_wl_GCJ
20231
20232 # Object file suffix (normally "o").
20233 objext="$ac_objext"
20234
20235 # Old archive suffix (normally "a").
20236 libext="$libext"
20237
20238 # Shared library suffix (normally ".so").
20239 shrext_cmds='$shrext_cmds'
20240
20241 # Executable file suffix (normally "").
20242 exeext="$exeext"
20243
20244 # Additional compiler flags for building library objects.
20245 pic_flag=$lt_lt_prog_compiler_pic_GCJ
20246 pic_mode=$pic_mode
20247
20248 # What is the maximum length of a command?
20249 max_cmd_len=$lt_cv_sys_max_cmd_len
20250
20251 # Does compiler simultaneously support -c and -o options?
20252 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
20253
20254 # Must we lock files when doing compilation?
20255 need_locks=$lt_need_locks
20256
20257 # Do we need the lib prefix for modules?
20258 need_lib_prefix=$need_lib_prefix
20259
20260 # Do we need a version for libraries?
20261 need_version=$need_version
20262
20263 # Whether dlopen is supported.
20264 dlopen_support=$enable_dlopen
20265
20266 # Whether dlopen of programs is supported.
20267 dlopen_self=$enable_dlopen_self
20268
20269 # Whether dlopen of statically linked programs is supported.
20270 dlopen_self_static=$enable_dlopen_self_static
20271
20272 # Compiler flag to prevent dynamic linking.
20273 link_static_flag=$lt_lt_prog_compiler_static_GCJ
20274
20275 # Compiler flag to turn off builtin functions.
20276 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
20277
20278 # Compiler flag to allow reflexive dlopens.
20279 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
20280
20281 # Compiler flag to generate shared objects directly from archives.
20282 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
20283
20284 # Compiler flag to generate thread-safe objects.
20285 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
20286
20287 # Library versioning type.
20288 version_type=$version_type
20289
20290 # Format of library name prefix.
20291 libname_spec=$lt_libname_spec
20292
20293 # List of archive names.  First name is the real one, the rest are links.
20294 # The last name is the one that the linker finds with -lNAME.
20295 library_names_spec=$lt_library_names_spec
20296
20297 # The coded name of the library, if different from the real name.
20298 soname_spec=$lt_soname_spec
20299
20300 # Commands used to build and install an old-style archive.
20301 RANLIB=$lt_RANLIB
20302 old_archive_cmds=$lt_old_archive_cmds_GCJ
20303 old_postinstall_cmds=$lt_old_postinstall_cmds
20304 old_postuninstall_cmds=$lt_old_postuninstall_cmds
20305
20306 # Create an old-style archive from a shared archive.
20307 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
20308
20309 # Create a temporary old-style archive to link instead of a shared archive.
20310 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
20311
20312 # Commands used to build and install a shared archive.
20313 archive_cmds=$lt_archive_cmds_GCJ
20314 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
20315 postinstall_cmds=$lt_postinstall_cmds
20316 postuninstall_cmds=$lt_postuninstall_cmds
20317
20318 # Commands used to build a loadable module (assumed same as above if empty)
20319 module_cmds=$lt_module_cmds_GCJ
20320 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
20321
20322 # Commands to strip libraries.
20323 old_striplib=$lt_old_striplib
20324 striplib=$lt_striplib
20325
20326 # Dependencies to place before the objects being linked to create a
20327 # shared library.
20328 predep_objects=$lt_predep_objects_GCJ
20329
20330 # Dependencies to place after the objects being linked to create a
20331 # shared library.
20332 postdep_objects=$lt_postdep_objects_GCJ
20333
20334 # Dependencies to place before the objects being linked to create a
20335 # shared library.
20336 predeps=$lt_predeps_GCJ
20337
20338 # Dependencies to place after the objects being linked to create a
20339 # shared library.
20340 postdeps=$lt_postdeps_GCJ
20341
20342 # The library search path used internally by the compiler when linking
20343 # a shared library.
20344 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
20345
20346 # Method to check whether dependent libraries are shared objects.
20347 deplibs_check_method=$lt_deplibs_check_method
20348
20349 # Command to use when deplibs_check_method == file_magic.
20350 file_magic_cmd=$lt_file_magic_cmd
20351
20352 # Flag that allows shared libraries with undefined symbols to be built.
20353 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
20354
20355 # Flag that forces no undefined symbols.
20356 no_undefined_flag=$lt_no_undefined_flag_GCJ
20357
20358 # Commands used to finish a libtool library installation in a directory.
20359 finish_cmds=$lt_finish_cmds
20360
20361 # Same as above, but a single script fragment to be evaled but not shown.
20362 finish_eval=$lt_finish_eval
20363
20364 # Take the output of nm and produce a listing of raw symbols and C names.
20365 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20366
20367 # Transform the output of nm in a proper C declaration
20368 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20369
20370 # Transform the output of nm in a C name address pair
20371 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20372
20373 # This is the shared library runtime path variable.
20374 runpath_var=$runpath_var
20375
20376 # This is the shared library path variable.
20377 shlibpath_var=$shlibpath_var
20378
20379 # Is shlibpath searched before the hard-coded library search path?
20380 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20381
20382 # How to hardcode a shared library path into an executable.
20383 hardcode_action=$hardcode_action_GCJ
20384
20385 # Whether we should hardcode library paths into libraries.
20386 hardcode_into_libs=$hardcode_into_libs
20387
20388 # Flag to hardcode \$libdir into a binary during linking.
20389 # This must work even if \$libdir does not exist.
20390 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
20391
20392 # If ld is used when linking, flag to hardcode \$libdir into
20393 # a binary during linking. This must work even if \$libdir does
20394 # not exist.
20395 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
20396
20397 # Whether we need a single -rpath flag with a separated argument.
20398 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
20399
20400 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20401 # resulting binary.
20402 hardcode_direct=$hardcode_direct_GCJ
20403
20404 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20405 # resulting binary.
20406 hardcode_minus_L=$hardcode_minus_L_GCJ
20407
20408 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20409 # the resulting binary.
20410 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
20411
20412 # Set to yes if building a shared library automatically hardcodes DIR into the library
20413 # and all subsequent libraries and executables linked against it.
20414 hardcode_automatic=$hardcode_automatic_GCJ
20415
20416 # Variables whose values should be saved in libtool wrapper scripts and
20417 # restored at relink time.
20418 variables_saved_for_relink="$variables_saved_for_relink"
20419
20420 # Whether libtool must link a program against all its dependency libraries.
20421 link_all_deplibs=$link_all_deplibs_GCJ
20422
20423 # Compile-time system search path for libraries
20424 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20425
20426 # Run-time system search path for libraries
20427 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20428
20429 # Fix the shell variable \$srcfile for the compiler.
20430 fix_srcfile_path=$lt_fix_srcfile_path
20431
20432 # Set to yes if exported symbols are required.
20433 always_export_symbols=$always_export_symbols_GCJ
20434
20435 # The commands to list exported symbols.
20436 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
20437
20438 # The commands to extract the exported symbol list from a shared archive.
20439 extract_expsyms_cmds=$lt_extract_expsyms_cmds
20440
20441 # Symbols that should not be listed in the preloaded symbols.
20442 exclude_expsyms=$lt_exclude_expsyms_GCJ
20443
20444 # Symbols that must always be exported.
20445 include_expsyms=$lt_include_expsyms_GCJ
20446
20447 # ### END LIBTOOL TAG CONFIG: $tagname
20448
20449 __EOF__
20450
20451
20452 else
20453   # If there is no Makefile yet, we rely on a make rule to execute
20454   # `config.status --recheck' to rerun these tests and create the
20455   # libtool script then.
20456   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20457   if test -f "$ltmain_in"; then
20458     test -f Makefile && make "$ltmain"
20459   fi
20460 fi
20461
20462
20463 ac_ext=c
20464 ac_cpp='$CPP $CPPFLAGS'
20465 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20466 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20467 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20468
20469 CC="$lt_save_CC"
20470
20471         else
20472           tagname=""
20473         fi
20474         ;;
20475
20476       RC)
20477
20478
20479 # Source file extension for RC test sources.
20480 ac_ext=rc
20481
20482 # Object file extension for compiled RC test sources.
20483 objext=o
20484 objext_RC=$objext
20485
20486 # Code to be used in simple compile tests
20487 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
20488
20489 # Code to be used in simple link tests
20490 lt_simple_link_test_code="$lt_simple_compile_test_code"
20491
20492 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
20493
20494 # If no C compiler was specified, use CC.
20495 LTCC=${LTCC-"$CC"}
20496
20497 # If no C compiler flags were specified, use CFLAGS.
20498 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
20499
20500 # Allow CC to be a program name with arguments.
20501 compiler=$CC
20502
20503
20504 # save warnings/boilerplate of simple test code
20505 ac_outfile=conftest.$ac_objext
20506 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
20507 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
20508 _lt_compiler_boilerplate=`cat conftest.err`
20509 $rm conftest*
20510
20511 ac_outfile=conftest.$ac_objext
20512 echo "$lt_simple_link_test_code" >conftest.$ac_ext
20513 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
20514 _lt_linker_boilerplate=`cat conftest.err`
20515 $rm conftest*
20516
20517
20518 # Allow CC to be a program name with arguments.
20519 lt_save_CC="$CC"
20520 CC=${RC-"windres"}
20521 compiler=$CC
20522 compiler_RC=$CC
20523 for cc_temp in $compiler""; do
20524   case $cc_temp in
20525     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
20526     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
20527     \-*) ;;
20528     *) break;;
20529   esac
20530 done
20531 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
20532
20533 lt_cv_prog_compiler_c_o_RC=yes
20534
20535 # The else clause should only fire when bootstrapping the
20536 # libtool distribution, otherwise you forgot to ship ltmain.sh
20537 # with your package, and you will get complaints that there are
20538 # no rules to generate ltmain.sh.
20539 if test -f "$ltmain"; then
20540   # See if we are running on zsh, and set the options which allow our commands through
20541   # without removal of \ escapes.
20542   if test -n "${ZSH_VERSION+set}" ; then
20543     setopt NO_GLOB_SUBST
20544   fi
20545   # Now quote all the things that may contain metacharacters while being
20546   # careful not to overquote the AC_SUBSTed values.  We take copies of the
20547   # variables and quote the copies for generation of the libtool script.
20548   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
20549     SED SHELL STRIP \
20550     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20551     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20552     deplibs_check_method reload_flag reload_cmds need_locks \
20553     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20554     lt_cv_sys_global_symbol_to_c_name_address \
20555     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20556     old_postinstall_cmds old_postuninstall_cmds \
20557     compiler_RC \
20558     CC_RC \
20559     LD_RC \
20560     lt_prog_compiler_wl_RC \
20561     lt_prog_compiler_pic_RC \
20562     lt_prog_compiler_static_RC \
20563     lt_prog_compiler_no_builtin_flag_RC \
20564     export_dynamic_flag_spec_RC \
20565     thread_safe_flag_spec_RC \
20566     whole_archive_flag_spec_RC \
20567     enable_shared_with_static_runtimes_RC \
20568     old_archive_cmds_RC \
20569     old_archive_from_new_cmds_RC \
20570     predep_objects_RC \
20571     postdep_objects_RC \
20572     predeps_RC \
20573     postdeps_RC \
20574     compiler_lib_search_path_RC \
20575     archive_cmds_RC \
20576     archive_expsym_cmds_RC \
20577     postinstall_cmds_RC \
20578     postuninstall_cmds_RC \
20579     old_archive_from_expsyms_cmds_RC \
20580     allow_undefined_flag_RC \
20581     no_undefined_flag_RC \
20582     export_symbols_cmds_RC \
20583     hardcode_libdir_flag_spec_RC \
20584     hardcode_libdir_flag_spec_ld_RC \
20585     hardcode_libdir_separator_RC \
20586     hardcode_automatic_RC \
20587     module_cmds_RC \
20588     module_expsym_cmds_RC \
20589     lt_cv_prog_compiler_c_o_RC \
20590     fix_srcfile_path_RC \
20591     exclude_expsyms_RC \
20592     include_expsyms_RC; do
20593
20594     case $var in
20595     old_archive_cmds_RC | \
20596     old_archive_from_new_cmds_RC | \
20597     archive_cmds_RC | \
20598     archive_expsym_cmds_RC | \
20599     module_cmds_RC | \
20600     module_expsym_cmds_RC | \
20601     old_archive_from_expsyms_cmds_RC | \
20602     export_symbols_cmds_RC | \
20603     extract_expsyms_cmds | reload_cmds | finish_cmds | \
20604     postinstall_cmds | postuninstall_cmds | \
20605     old_postinstall_cmds | old_postuninstall_cmds | \
20606     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20607       # Double-quote double-evaled strings.
20608       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
20609       ;;
20610     *)
20611       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20612       ;;
20613     esac
20614   done
20615
20616   case $lt_echo in
20617   *'\$0 --fallback-echo"')
20618     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20619     ;;
20620   esac
20621
20622 cfgfile="$ofile"
20623
20624   cat <<__EOF__ >> "$cfgfile"
20625 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
20626
20627 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20628
20629 # Shell to use when invoking shell scripts.
20630 SHELL=$lt_SHELL
20631
20632 # Whether or not to build shared libraries.
20633 build_libtool_libs=$enable_shared
20634
20635 # Whether or not to build static libraries.
20636 build_old_libs=$enable_static
20637
20638 # Whether or not to add -lc for building shared libraries.
20639 build_libtool_need_lc=$archive_cmds_need_lc_RC
20640
20641 # Whether or not to disallow shared libs when runtime libs are static
20642 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
20643
20644 # Whether or not to optimize for fast installation.
20645 fast_install=$enable_fast_install
20646
20647 # The host system.
20648 host_alias=$host_alias
20649 host=$host
20650 host_os=$host_os
20651
20652 # The build system.
20653 build_alias=$build_alias
20654 build=$build
20655 build_os=$build_os
20656
20657 # An echo program that does not interpret backslashes.
20658 echo=$lt_echo
20659
20660 # The archiver.
20661 AR=$lt_AR
20662 AR_FLAGS=$lt_AR_FLAGS
20663
20664 # A C compiler.
20665 LTCC=$lt_LTCC
20666
20667 # LTCC compiler flags.
20668 LTCFLAGS=$lt_LTCFLAGS
20669
20670 # A language-specific compiler.
20671 CC=$lt_compiler_RC
20672
20673 # Is the compiler the GNU C compiler?
20674 with_gcc=$GCC_RC
20675
20676 # An ERE matcher.
20677 EGREP=$lt_EGREP
20678
20679 # The linker used to build libraries.
20680 LD=$lt_LD_RC
20681
20682 # Whether we need hard or soft links.
20683 LN_S=$lt_LN_S
20684
20685 # A BSD-compatible nm program.
20686 NM=$lt_NM
20687
20688 # A symbol stripping program
20689 STRIP=$lt_STRIP
20690
20691 # Used to examine libraries when file_magic_cmd begins "file"
20692 MAGIC_CMD=$MAGIC_CMD
20693
20694 # Used on cygwin: DLL creation program.
20695 DLLTOOL="$DLLTOOL"
20696
20697 # Used on cygwin: object dumper.
20698 OBJDUMP="$OBJDUMP"
20699
20700 # Used on cygwin: assembler.
20701 AS="$AS"
20702
20703 # The name of the directory that contains temporary libtool files.
20704 objdir=$objdir
20705
20706 # How to create reloadable object files.
20707 reload_flag=$lt_reload_flag
20708 reload_cmds=$lt_reload_cmds
20709
20710 # How to pass a linker flag through the compiler.
20711 wl=$lt_lt_prog_compiler_wl_RC
20712
20713 # Object file suffix (normally "o").
20714 objext="$ac_objext"
20715
20716 # Old archive suffix (normally "a").
20717 libext="$libext"
20718
20719 # Shared library suffix (normally ".so").
20720 shrext_cmds='$shrext_cmds'
20721
20722 # Executable file suffix (normally "").
20723 exeext="$exeext"
20724
20725 # Additional compiler flags for building library objects.
20726 pic_flag=$lt_lt_prog_compiler_pic_RC
20727 pic_mode=$pic_mode
20728
20729 # What is the maximum length of a command?
20730 max_cmd_len=$lt_cv_sys_max_cmd_len
20731
20732 # Does compiler simultaneously support -c and -o options?
20733 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
20734
20735 # Must we lock files when doing compilation?
20736 need_locks=$lt_need_locks
20737
20738 # Do we need the lib prefix for modules?
20739 need_lib_prefix=$need_lib_prefix
20740
20741 # Do we need a version for libraries?
20742 need_version=$need_version
20743
20744 # Whether dlopen is supported.
20745 dlopen_support=$enable_dlopen
20746
20747 # Whether dlopen of programs is supported.
20748 dlopen_self=$enable_dlopen_self
20749
20750 # Whether dlopen of statically linked programs is supported.
20751 dlopen_self_static=$enable_dlopen_self_static
20752
20753 # Compiler flag to prevent dynamic linking.
20754 link_static_flag=$lt_lt_prog_compiler_static_RC
20755
20756 # Compiler flag to turn off builtin functions.
20757 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
20758
20759 # Compiler flag to allow reflexive dlopens.
20760 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
20761
20762 # Compiler flag to generate shared objects directly from archives.
20763 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
20764
20765 # Compiler flag to generate thread-safe objects.
20766 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
20767
20768 # Library versioning type.
20769 version_type=$version_type
20770
20771 # Format of library name prefix.
20772 libname_spec=$lt_libname_spec
20773
20774 # List of archive names.  First name is the real one, the rest are links.
20775 # The last name is the one that the linker finds with -lNAME.
20776 library_names_spec=$lt_library_names_spec
20777
20778 # The coded name of the library, if different from the real name.
20779 soname_spec=$lt_soname_spec
20780
20781 # Commands used to build and install an old-style archive.
20782 RANLIB=$lt_RANLIB
20783 old_archive_cmds=$lt_old_archive_cmds_RC
20784 old_postinstall_cmds=$lt_old_postinstall_cmds
20785 old_postuninstall_cmds=$lt_old_postuninstall_cmds
20786
20787 # Create an old-style archive from a shared archive.
20788 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
20789
20790 # Create a temporary old-style archive to link instead of a shared archive.
20791 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
20792
20793 # Commands used to build and install a shared archive.
20794 archive_cmds=$lt_archive_cmds_RC
20795 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
20796 postinstall_cmds=$lt_postinstall_cmds
20797 postuninstall_cmds=$lt_postuninstall_cmds
20798
20799 # Commands used to build a loadable module (assumed same as above if empty)
20800 module_cmds=$lt_module_cmds_RC
20801 module_expsym_cmds=$lt_module_expsym_cmds_RC
20802
20803 # Commands to strip libraries.
20804 old_striplib=$lt_old_striplib
20805 striplib=$lt_striplib
20806
20807 # Dependencies to place before the objects being linked to create a
20808 # shared library.
20809 predep_objects=$lt_predep_objects_RC
20810
20811 # Dependencies to place after the objects being linked to create a
20812 # shared library.
20813 postdep_objects=$lt_postdep_objects_RC
20814
20815 # Dependencies to place before the objects being linked to create a
20816 # shared library.
20817 predeps=$lt_predeps_RC
20818
20819 # Dependencies to place after the objects being linked to create a
20820 # shared library.
20821 postdeps=$lt_postdeps_RC
20822
20823 # The library search path used internally by the compiler when linking
20824 # a shared library.
20825 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
20826
20827 # Method to check whether dependent libraries are shared objects.
20828 deplibs_check_method=$lt_deplibs_check_method
20829
20830 # Command to use when deplibs_check_method == file_magic.
20831 file_magic_cmd=$lt_file_magic_cmd
20832
20833 # Flag that allows shared libraries with undefined symbols to be built.
20834 allow_undefined_flag=$lt_allow_undefined_flag_RC
20835
20836 # Flag that forces no undefined symbols.
20837 no_undefined_flag=$lt_no_undefined_flag_RC
20838
20839 # Commands used to finish a libtool library installation in a directory.
20840 finish_cmds=$lt_finish_cmds
20841
20842 # Same as above, but a single script fragment to be evaled but not shown.
20843 finish_eval=$lt_finish_eval
20844
20845 # Take the output of nm and produce a listing of raw symbols and C names.
20846 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20847
20848 # Transform the output of nm in a proper C declaration
20849 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20850
20851 # Transform the output of nm in a C name address pair
20852 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20853
20854 # This is the shared library runtime path variable.
20855 runpath_var=$runpath_var
20856
20857 # This is the shared library path variable.
20858 shlibpath_var=$shlibpath_var
20859
20860 # Is shlibpath searched before the hard-coded library search path?
20861 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20862
20863 # How to hardcode a shared library path into an executable.
20864 hardcode_action=$hardcode_action_RC
20865
20866 # Whether we should hardcode library paths into libraries.
20867 hardcode_into_libs=$hardcode_into_libs
20868
20869 # Flag to hardcode \$libdir into a binary during linking.
20870 # This must work even if \$libdir does not exist.
20871 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
20872
20873 # If ld is used when linking, flag to hardcode \$libdir into
20874 # a binary during linking. This must work even if \$libdir does
20875 # not exist.
20876 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
20877
20878 # Whether we need a single -rpath flag with a separated argument.
20879 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
20880
20881 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20882 # resulting binary.
20883 hardcode_direct=$hardcode_direct_RC
20884
20885 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20886 # resulting binary.
20887 hardcode_minus_L=$hardcode_minus_L_RC
20888
20889 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20890 # the resulting binary.
20891 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
20892
20893 # Set to yes if building a shared library automatically hardcodes DIR into the library
20894 # and all subsequent libraries and executables linked against it.
20895 hardcode_automatic=$hardcode_automatic_RC
20896
20897 # Variables whose values should be saved in libtool wrapper scripts and
20898 # restored at relink time.
20899 variables_saved_for_relink="$variables_saved_for_relink"
20900
20901 # Whether libtool must link a program against all its dependency libraries.
20902 link_all_deplibs=$link_all_deplibs_RC
20903
20904 # Compile-time system search path for libraries
20905 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20906
20907 # Run-time system search path for libraries
20908 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20909
20910 # Fix the shell variable \$srcfile for the compiler.
20911 fix_srcfile_path=$lt_fix_srcfile_path
20912
20913 # Set to yes if exported symbols are required.
20914 always_export_symbols=$always_export_symbols_RC
20915
20916 # The commands to list exported symbols.
20917 export_symbols_cmds=$lt_export_symbols_cmds_RC
20918
20919 # The commands to extract the exported symbol list from a shared archive.
20920 extract_expsyms_cmds=$lt_extract_expsyms_cmds
20921
20922 # Symbols that should not be listed in the preloaded symbols.
20923 exclude_expsyms=$lt_exclude_expsyms_RC
20924
20925 # Symbols that must always be exported.
20926 include_expsyms=$lt_include_expsyms_RC
20927
20928 # ### END LIBTOOL TAG CONFIG: $tagname
20929
20930 __EOF__
20931
20932
20933 else
20934   # If there is no Makefile yet, we rely on a make rule to execute
20935   # `config.status --recheck' to rerun these tests and create the
20936   # libtool script then.
20937   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20938   if test -f "$ltmain_in"; then
20939     test -f Makefile && make "$ltmain"
20940   fi
20941 fi
20942
20943
20944 ac_ext=c
20945 ac_cpp='$CPP $CPPFLAGS'
20946 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20947 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20948 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20949
20950 CC="$lt_save_CC"
20951
20952         ;;
20953
20954       *)
20955         { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
20956 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
20957    { (exit 1); exit 1; }; }
20958         ;;
20959       esac
20960
20961       # Append the new tag name to the list of available tags.
20962       if test -n "$tagname" ; then
20963       available_tags="$available_tags $tagname"
20964     fi
20965     fi
20966   done
20967   IFS="$lt_save_ifs"
20968
20969   # Now substitute the updated list of available tags.
20970   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
20971     mv "${ofile}T" "$ofile"
20972     chmod +x "$ofile"
20973   else
20974     rm -f "${ofile}T"
20975     { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
20976 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
20977    { (exit 1); exit 1; }; }
20978   fi
20979 fi
20980
20981
20982
20983 # This can be used to rebuild libtool when needed
20984 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
20985
20986 # Always use our own libtool.
20987 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
20988
20989 # Prevent multiple expansion
20990
20991
20992
20993
20994
20995
20996
20997
20998
20999
21000
21001
21002
21003
21004
21005
21006
21007
21008
21009
21010 if test "x$CC" != xcc; then
21011   { echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
21012 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6; }
21013 else
21014   { echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
21015 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6; }
21016 fi
21017 set dummy $CC; ac_cc=`echo $2 |
21018                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
21019 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then
21020   echo $ECHO_N "(cached) $ECHO_C" >&6
21021 else
21022   cat >conftest.$ac_ext <<_ACEOF
21023 /* confdefs.h.  */
21024 _ACEOF
21025 cat confdefs.h >>conftest.$ac_ext
21026 cat >>conftest.$ac_ext <<_ACEOF
21027 /* end confdefs.h.  */
21028
21029 int
21030 main ()
21031 {
21032
21033   ;
21034   return 0;
21035 }
21036 _ACEOF
21037 # Make sure it works both with $CC and with simple cc.
21038 # We do the test twice because some compilers refuse to overwrite an
21039 # existing .o file with -o, though they will create one.
21040 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
21041 rm -f conftest2.*
21042 if { (case "(($ac_try" in
21043   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21044   *) ac_try_echo=$ac_try;;
21045 esac
21046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21047   (eval "$ac_try") 2>&5
21048   ac_status=$?
21049   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21050   (exit $ac_status); } &&
21051    test -f conftest2.$ac_objext && { (case "(($ac_try" in
21052   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21053   *) ac_try_echo=$ac_try;;
21054 esac
21055 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21056   (eval "$ac_try") 2>&5
21057   ac_status=$?
21058   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21059   (exit $ac_status); };
21060 then
21061   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
21062   if test "x$CC" != xcc; then
21063     # Test first that cc exists at all.
21064     if { ac_try='cc -c conftest.$ac_ext >&5'
21065   { (case "(($ac_try" in
21066   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21067   *) ac_try_echo=$ac_try;;
21068 esac
21069 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21070   (eval "$ac_try") 2>&5
21071   ac_status=$?
21072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21073   (exit $ac_status); }; }; then
21074       ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
21075       rm -f conftest2.*
21076       if { (case "(($ac_try" in
21077   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21078   *) ac_try_echo=$ac_try;;
21079 esac
21080 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21081   (eval "$ac_try") 2>&5
21082   ac_status=$?
21083   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21084   (exit $ac_status); } &&
21085          test -f conftest2.$ac_objext && { (case "(($ac_try" in
21086   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21087   *) ac_try_echo=$ac_try;;
21088 esac
21089 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21090   (eval "$ac_try") 2>&5
21091   ac_status=$?
21092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21093   (exit $ac_status); };
21094       then
21095         # cc works too.
21096         :
21097       else
21098         # cc exists but doesn't like -o.
21099         eval ac_cv_prog_cc_${ac_cc}_c_o=no
21100       fi
21101     fi
21102   fi
21103 else
21104   eval ac_cv_prog_cc_${ac_cc}_c_o=no
21105 fi
21106 rm -f core conftest*
21107
21108 fi
21109 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
21110   { echo "$as_me:$LINENO: result: yes" >&5
21111 echo "${ECHO_T}yes" >&6; }
21112 else
21113   { echo "$as_me:$LINENO: result: no" >&5
21114 echo "${ECHO_T}no" >&6; }
21115
21116 cat >>confdefs.h <<\_ACEOF
21117 #define NO_MINUS_C_MINUS_O 1
21118 _ACEOF
21119
21120 fi
21121
21122 # FIXME: we rely on the cache variable name because
21123 # there is no other way.
21124 set dummy $CC
21125 ac_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
21126 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
21127    # Losing compiler, so override with the script.
21128    # FIXME: It is wrong to rewrite CC.
21129    # But if we don't then we get into trouble of one sort or another.
21130    # A longer-term fix would be to have automake use am__CC in this case,
21131    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
21132    CC="$am_aux_dir/compile $CC"
21133 fi
21134
21135
21136
21137 if test "x$cross_compiling" = "xno"; then
21138         CC_FOR_BUILD=${CC_FOR_BUILD-${CC-gcc}}
21139 else
21140         CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
21141 fi
21142
21143
21144
21145 if test -n "$ac_tool_prefix"; then
21146   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
21147 set dummy ${ac_tool_prefix}ar; ac_word=$2
21148 { echo "$as_me:$LINENO: checking for $ac_word" >&5
21149 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
21150 if test "${ac_cv_prog_AR+set}" = set; then
21151   echo $ECHO_N "(cached) $ECHO_C" >&6
21152 else
21153   if test -n "$AR"; then
21154   ac_cv_prog_AR="$AR" # Let the user override the test.
21155 else
21156 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21157 for as_dir in $PATH
21158 do
21159   IFS=$as_save_IFS
21160   test -z "$as_dir" && as_dir=.
21161   for ac_exec_ext in '' $ac_executable_extensions; do
21162   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21163     ac_cv_prog_AR="${ac_tool_prefix}ar"
21164     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21165     break 2
21166   fi
21167 done
21168 done
21169 IFS=$as_save_IFS
21170
21171 fi
21172 fi
21173 AR=$ac_cv_prog_AR
21174 if test -n "$AR"; then
21175   { echo "$as_me:$LINENO: result: $AR" >&5
21176 echo "${ECHO_T}$AR" >&6; }
21177 else
21178   { echo "$as_me:$LINENO: result: no" >&5
21179 echo "${ECHO_T}no" >&6; }
21180 fi
21181
21182
21183 fi
21184 if test -z "$ac_cv_prog_AR"; then
21185   ac_ct_AR=$AR
21186   # Extract the first word of "ar", so it can be a program name with args.
21187 set dummy ar; ac_word=$2
21188 { echo "$as_me:$LINENO: checking for $ac_word" >&5
21189 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
21190 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
21191   echo $ECHO_N "(cached) $ECHO_C" >&6
21192 else
21193   if test -n "$ac_ct_AR"; then
21194   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
21195 else
21196 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21197 for as_dir in $PATH
21198 do
21199   IFS=$as_save_IFS
21200   test -z "$as_dir" && as_dir=.
21201   for ac_exec_ext in '' $ac_executable_extensions; do
21202   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21203     ac_cv_prog_ac_ct_AR="ar"
21204     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21205     break 2
21206   fi
21207 done
21208 done
21209 IFS=$as_save_IFS
21210
21211 fi
21212 fi
21213 ac_ct_AR=$ac_cv_prog_ac_ct_AR
21214 if test -n "$ac_ct_AR"; then
21215   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
21216 echo "${ECHO_T}$ac_ct_AR" >&6; }
21217 else
21218   { echo "$as_me:$LINENO: result: no" >&5
21219 echo "${ECHO_T}no" >&6; }
21220 fi
21221
21222   if test "x$ac_ct_AR" = x; then
21223     AR=""
21224   else
21225     case $cross_compiling:$ac_tool_warned in
21226 yes:)
21227 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
21228 whose name does not start with the host triplet.  If you think this
21229 configuration is useful to you, please write to autoconf@gnu.org." >&5
21230 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
21231 whose name does not start with the host triplet.  If you think this
21232 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
21233 ac_tool_warned=yes ;;
21234 esac
21235     AR=$ac_ct_AR
21236   fi
21237 else
21238   AR="$ac_cv_prog_AR"
21239 fi
21240
21241 if test -n "$ac_tool_prefix"; then
21242   # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
21243 set dummy ${ac_tool_prefix}ld; ac_word=$2
21244 { echo "$as_me:$LINENO: checking for $ac_word" >&5
21245 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
21246 if test "${ac_cv_prog_LD+set}" = set; then
21247   echo $ECHO_N "(cached) $ECHO_C" >&6
21248 else
21249   if test -n "$LD"; then
21250   ac_cv_prog_LD="$LD" # Let the user override the test.
21251 else
21252 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21253 for as_dir in $PATH
21254 do
21255   IFS=$as_save_IFS
21256   test -z "$as_dir" && as_dir=.
21257   for ac_exec_ext in '' $ac_executable_extensions; do
21258   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21259     ac_cv_prog_LD="${ac_tool_prefix}ld"
21260     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21261     break 2
21262   fi
21263 done
21264 done
21265 IFS=$as_save_IFS
21266
21267 fi
21268 fi
21269 LD=$ac_cv_prog_LD
21270 if test -n "$LD"; then
21271   { echo "$as_me:$LINENO: result: $LD" >&5
21272 echo "${ECHO_T}$LD" >&6; }
21273 else
21274   { echo "$as_me:$LINENO: result: no" >&5
21275 echo "${ECHO_T}no" >&6; }
21276 fi
21277
21278
21279 fi
21280 if test -z "$ac_cv_prog_LD"; then
21281   ac_ct_LD=$LD
21282   # Extract the first word of "ld", so it can be a program name with args.
21283 set dummy ld; ac_word=$2
21284 { echo "$as_me:$LINENO: checking for $ac_word" >&5
21285 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
21286 if test "${ac_cv_prog_ac_ct_LD+set}" = set; then
21287   echo $ECHO_N "(cached) $ECHO_C" >&6
21288 else
21289   if test -n "$ac_ct_LD"; then
21290   ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
21291 else
21292 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21293 for as_dir in $PATH
21294 do
21295   IFS=$as_save_IFS
21296   test -z "$as_dir" && as_dir=.
21297   for ac_exec_ext in '' $ac_executable_extensions; do
21298   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21299     ac_cv_prog_ac_ct_LD="ld"
21300     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21301     break 2
21302   fi
21303 done
21304 done
21305 IFS=$as_save_IFS
21306
21307 fi
21308 fi
21309 ac_ct_LD=$ac_cv_prog_ac_ct_LD
21310 if test -n "$ac_ct_LD"; then
21311   { echo "$as_me:$LINENO: result: $ac_ct_LD" >&5
21312 echo "${ECHO_T}$ac_ct_LD" >&6; }
21313 else
21314   { echo "$as_me:$LINENO: result: no" >&5
21315 echo "${ECHO_T}no" >&6; }
21316 fi
21317
21318   if test "x$ac_ct_LD" = x; then
21319     LD=""
21320   else
21321     case $cross_compiling:$ac_tool_warned in
21322 yes:)
21323 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
21324 whose name does not start with the host triplet.  If you think this
21325 configuration is useful to you, please write to autoconf@gnu.org." >&5
21326 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
21327 whose name does not start with the host triplet.  If you think this
21328 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
21329 ac_tool_warned=yes ;;
21330 esac
21331     LD=$ac_ct_LD
21332   fi
21333 else
21334   LD="$ac_cv_prog_LD"
21335 fi
21336
21337
21338 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
21339 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
21340 if test "${ac_cv_header_stdc+set}" = set; then
21341   echo $ECHO_N "(cached) $ECHO_C" >&6
21342 else
21343   cat >conftest.$ac_ext <<_ACEOF
21344 /* confdefs.h.  */
21345 _ACEOF
21346 cat confdefs.h >>conftest.$ac_ext
21347 cat >>conftest.$ac_ext <<_ACEOF
21348 /* end confdefs.h.  */
21349 #include <stdlib.h>
21350 #include <stdarg.h>
21351 #include <string.h>
21352 #include <float.h>
21353
21354 int
21355 main ()
21356 {
21357
21358   ;
21359   return 0;
21360 }
21361 _ACEOF
21362 rm -f conftest.$ac_objext
21363 if { (ac_try="$ac_compile"
21364 case "(($ac_try" in
21365   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21366   *) ac_try_echo=$ac_try;;
21367 esac
21368 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21369   (eval "$ac_compile") 2>conftest.er1
21370   ac_status=$?
21371   grep -v '^ *+' conftest.er1 >conftest.err
21372   rm -f conftest.er1
21373   cat conftest.err >&5
21374   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21375   (exit $ac_status); } && {
21376          test -z "$ac_c_werror_flag" ||
21377          test ! -s conftest.err
21378        } && test -s conftest.$ac_objext; then
21379   ac_cv_header_stdc=yes
21380 else
21381   echo "$as_me: failed program was:" >&5
21382 sed 's/^/| /' conftest.$ac_ext >&5
21383
21384         ac_cv_header_stdc=no
21385 fi
21386
21387 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21388
21389 if test $ac_cv_header_stdc = yes; then
21390   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
21391   cat >conftest.$ac_ext <<_ACEOF
21392 /* confdefs.h.  */
21393 _ACEOF
21394 cat confdefs.h >>conftest.$ac_ext
21395 cat >>conftest.$ac_ext <<_ACEOF
21396 /* end confdefs.h.  */
21397 #include <string.h>
21398
21399 _ACEOF
21400 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21401   $EGREP "memchr" >/dev/null 2>&1; then
21402   :
21403 else
21404   ac_cv_header_stdc=no
21405 fi
21406 rm -f conftest*
21407
21408 fi
21409
21410 if test $ac_cv_header_stdc = yes; then
21411   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
21412   cat >conftest.$ac_ext <<_ACEOF
21413 /* confdefs.h.  */
21414 _ACEOF
21415 cat confdefs.h >>conftest.$ac_ext
21416 cat >>conftest.$ac_ext <<_ACEOF
21417 /* end confdefs.h.  */
21418 #include <stdlib.h>
21419
21420 _ACEOF
21421 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21422   $EGREP "free" >/dev/null 2>&1; then
21423   :
21424 else
21425   ac_cv_header_stdc=no
21426 fi
21427 rm -f conftest*
21428
21429 fi
21430
21431 if test $ac_cv_header_stdc = yes; then
21432   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
21433   if test "$cross_compiling" = yes; then
21434   :
21435 else
21436   cat >conftest.$ac_ext <<_ACEOF
21437 /* confdefs.h.  */
21438 _ACEOF
21439 cat confdefs.h >>conftest.$ac_ext
21440 cat >>conftest.$ac_ext <<_ACEOF
21441 /* end confdefs.h.  */
21442 #include <ctype.h>
21443 #include <stdlib.h>
21444 #if ((' ' & 0x0FF) == 0x020)
21445 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
21446 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
21447 #else
21448 # define ISLOWER(c) \
21449                    (('a' <= (c) && (c) <= 'i') \
21450                      || ('j' <= (c) && (c) <= 'r') \
21451                      || ('s' <= (c) && (c) <= 'z'))
21452 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
21453 #endif
21454
21455 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
21456 int
21457 main ()
21458 {
21459   int i;
21460   for (i = 0; i < 256; i++)
21461     if (XOR (islower (i), ISLOWER (i))
21462         || toupper (i) != TOUPPER (i))
21463       return 2;
21464   return 0;
21465 }
21466 _ACEOF
21467 rm -f conftest$ac_exeext
21468 if { (ac_try="$ac_link"
21469 case "(($ac_try" in
21470   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21471   *) ac_try_echo=$ac_try;;
21472 esac
21473 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21474   (eval "$ac_link") 2>&5
21475   ac_status=$?
21476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21477   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21478   { (case "(($ac_try" in
21479   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21480   *) ac_try_echo=$ac_try;;
21481 esac
21482 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21483   (eval "$ac_try") 2>&5
21484   ac_status=$?
21485   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21486   (exit $ac_status); }; }; then
21487   :
21488 else
21489   echo "$as_me: program exited with status $ac_status" >&5
21490 echo "$as_me: failed program was:" >&5
21491 sed 's/^/| /' conftest.$ac_ext >&5
21492
21493 ( exit $ac_status )
21494 ac_cv_header_stdc=no
21495 fi
21496 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21497 fi
21498
21499
21500 fi
21501 fi
21502 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
21503 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
21504 if test $ac_cv_header_stdc = yes; then
21505
21506 cat >>confdefs.h <<\_ACEOF
21507 #define STDC_HEADERS 1
21508 _ACEOF
21509
21510 fi
21511
21512
21513   { echo "$as_me:$LINENO: checking for GNU libc2" >&5
21514 echo $ECHO_N "checking for GNU libc2... $ECHO_C" >&6; }
21515   if test "${knfsd_cv_glibc2+set}" = set; then
21516   echo $ECHO_N "(cached) $ECHO_C" >&6
21517 else
21518   cat >conftest.$ac_ext <<_ACEOF
21519 /* confdefs.h.  */
21520 _ACEOF
21521 cat confdefs.h >>conftest.$ac_ext
21522 cat >>conftest.$ac_ext <<_ACEOF
21523 /* end confdefs.h.  */
21524
21525       #include <features.h>
21526       #if !defined(__GLIBC__)
21527       # error Nope
21528       #endif
21529
21530 _ACEOF
21531 if { (ac_try="$ac_cpp conftest.$ac_ext"
21532 case "(($ac_try" in
21533   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21534   *) ac_try_echo=$ac_try;;
21535 esac
21536 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21537   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21538   ac_status=$?
21539   grep -v '^ *+' conftest.er1 >conftest.err
21540   rm -f conftest.er1
21541   cat conftest.err >&5
21542   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21543   (exit $ac_status); } >/dev/null && {
21544          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21545          test ! -s conftest.err
21546        }; then
21547   knfsd_cv_glibc2=yes
21548 else
21549   echo "$as_me: failed program was:" >&5
21550 sed 's/^/| /' conftest.$ac_ext >&5
21551
21552   knfsd_cv_glibc2=no
21553 fi
21554
21555 rm -f conftest.err conftest.$ac_ext
21556 fi
21557
21558   { echo "$as_me:$LINENO: result: $knfsd_cv_glibc2" >&5
21559 echo "${ECHO_T}$knfsd_cv_glibc2" >&6; }
21560   if test $knfsd_cv_glibc2 = yes; then
21561     CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE"
21562     CPPFLAGS_FOR_BUILD="$CPPFLAGS_FOR_BUILD -D_GNU_SOURCE"
21563   fi
21564
21565
21566   { echo "$as_me:$LINENO: checking for BSD signal semantics" >&5
21567 echo $ECHO_N "checking for BSD signal semantics... $ECHO_C" >&6; }
21568   if test "${knfsd_cv_bsd_signals+set}" = set; then
21569   echo $ECHO_N "(cached) $ECHO_C" >&6
21570 else
21571   if test "$cross_compiling" = yes; then
21572
21573       case "$host_os" in
21574         *linux*) knfsd_cv_bsd_signals=no;;
21575         *bsd*)   knfsd_cv_bsd_signals=yes;;
21576         *)       { { echo "$as_me:$LINENO: error: unable to guess signal semantics for $host_os; please set knfsd_cv_bsd_signals" >&5
21577 echo "$as_me: error: unable to guess signal semantics for $host_os; please set knfsd_cv_bsd_signals" >&2;}
21578    { (exit 1); exit 1; }; };;
21579       esac
21580
21581 else
21582   cat >conftest.$ac_ext <<_ACEOF
21583 /* confdefs.h.  */
21584 _ACEOF
21585 cat confdefs.h >>conftest.$ac_ext
21586 cat >>conftest.$ac_ext <<_ACEOF
21587 /* end confdefs.h.  */
21588
21589         #include <signal.h>
21590         #include <unistd.h>
21591         #include <sys/wait.h>
21592
21593         static int counter = 0;
21594         static RETSIGTYPE handler(int num) { counter++; }
21595
21596         int main()
21597         {
21598                 int     s;
21599                 if ((s = fork()) < 0) return 1;
21600                 if (s != 0) {
21601                         if (wait(&s) < 0) return 1;
21602                         return WIFSIGNALED(s)? 1 : 0;
21603                 }
21604
21605                 signal(SIGHUP, handler);
21606                 kill(getpid(), SIGHUP); kill(getpid(), SIGHUP);
21607                 return (counter == 2)? 0 : 1;
21608         }
21609
21610 _ACEOF
21611 rm -f conftest$ac_exeext
21612 if { (ac_try="$ac_link"
21613 case "(($ac_try" in
21614   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21615   *) ac_try_echo=$ac_try;;
21616 esac
21617 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21618   (eval "$ac_link") 2>&5
21619   ac_status=$?
21620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21621   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21622   { (case "(($ac_try" in
21623   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21624   *) ac_try_echo=$ac_try;;
21625 esac
21626 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21627   (eval "$ac_try") 2>&5
21628   ac_status=$?
21629   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21630   (exit $ac_status); }; }; then
21631   knfsd_cv_bsd_signals=yes
21632 else
21633   echo "$as_me: program exited with status $ac_status" >&5
21634 echo "$as_me: failed program was:" >&5
21635 sed 's/^/| /' conftest.$ac_ext >&5
21636
21637 ( exit $ac_status )
21638 knfsd_cv_bsd_signals=no
21639 fi
21640 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21641 fi
21642
21643
21644 fi
21645      { echo "$as_me:$LINENO: result: $knfsd_cv_bsd_signals" >&5
21646 echo "${ECHO_T}$knfsd_cv_bsd_signals" >&6; }
21647     test $knfsd_cv_bsd_signals = yes &&
21648 cat >>confdefs.h <<\_ACEOF
21649 #define HAVE_BSD_SIGNALS 1
21650 _ACEOF
21651
21652
21653
21654 { echo "$as_me:$LINENO: checking for gethostbyname" >&5
21655 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; }
21656 if test "${ac_cv_func_gethostbyname+set}" = set; then
21657   echo $ECHO_N "(cached) $ECHO_C" >&6
21658 else
21659   cat >conftest.$ac_ext <<_ACEOF
21660 /* confdefs.h.  */
21661 _ACEOF
21662 cat confdefs.h >>conftest.$ac_ext
21663 cat >>conftest.$ac_ext <<_ACEOF
21664 /* end confdefs.h.  */
21665 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
21666    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21667 #define gethostbyname innocuous_gethostbyname
21668
21669 /* System header to define __stub macros and hopefully few prototypes,
21670     which can conflict with char gethostbyname (); below.
21671     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21672     <limits.h> exists even on freestanding compilers.  */
21673
21674 #ifdef __STDC__
21675 # include <limits.h>
21676 #else
21677 # include <assert.h>
21678 #endif
21679
21680 #undef gethostbyname
21681
21682 /* Override any GCC internal prototype to avoid an error.
21683    Use char because int might match the return type of a GCC
21684    builtin and then its argument prototype would still apply.  */
21685 #ifdef __cplusplus
21686 extern "C"
21687 #endif
21688 char gethostbyname ();
21689 /* The GNU C library defines this for functions which it implements
21690     to always fail with ENOSYS.  Some functions are actually named
21691     something starting with __ and the normal name is an alias.  */
21692 #if defined __stub_gethostbyname || defined __stub___gethostbyname
21693 choke me
21694 #endif
21695
21696 int
21697 main ()
21698 {
21699 return gethostbyname ();
21700   ;
21701   return 0;
21702 }
21703 _ACEOF
21704 rm -f conftest.$ac_objext conftest$ac_exeext
21705 if { (ac_try="$ac_link"
21706 case "(($ac_try" in
21707   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21708   *) ac_try_echo=$ac_try;;
21709 esac
21710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21711   (eval "$ac_link") 2>conftest.er1
21712   ac_status=$?
21713   grep -v '^ *+' conftest.er1 >conftest.err
21714   rm -f conftest.er1
21715   cat conftest.err >&5
21716   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21717   (exit $ac_status); } && {
21718          test -z "$ac_c_werror_flag" ||
21719          test ! -s conftest.err
21720        } && test -s conftest$ac_exeext &&
21721        $as_test_x conftest$ac_exeext; then
21722   ac_cv_func_gethostbyname=yes
21723 else
21724   echo "$as_me: failed program was:" >&5
21725 sed 's/^/| /' conftest.$ac_ext >&5
21726
21727         ac_cv_func_gethostbyname=no
21728 fi
21729
21730 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21731       conftest$ac_exeext conftest.$ac_ext
21732 fi
21733 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
21734 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; }
21735 if test $ac_cv_func_gethostbyname = yes; then
21736   :
21737 else
21738   { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
21739 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; }
21740 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
21741   echo $ECHO_N "(cached) $ECHO_C" >&6
21742 else
21743   ac_check_lib_save_LIBS=$LIBS
21744 LIBS="-lnsl  $LIBS"
21745 cat >conftest.$ac_ext <<_ACEOF
21746 /* confdefs.h.  */
21747 _ACEOF
21748 cat confdefs.h >>conftest.$ac_ext
21749 cat >>conftest.$ac_ext <<_ACEOF
21750 /* end confdefs.h.  */
21751
21752 /* Override any GCC internal prototype to avoid an error.
21753    Use char because int might match the return type of a GCC
21754    builtin and then its argument prototype would still apply.  */
21755 #ifdef __cplusplus
21756 extern "C"
21757 #endif
21758 char gethostbyname ();
21759 int
21760 main ()
21761 {
21762 return gethostbyname ();
21763   ;
21764   return 0;
21765 }
21766 _ACEOF
21767 rm -f conftest.$ac_objext conftest$ac_exeext
21768 if { (ac_try="$ac_link"
21769 case "(($ac_try" in
21770   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21771   *) ac_try_echo=$ac_try;;
21772 esac
21773 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21774   (eval "$ac_link") 2>conftest.er1
21775   ac_status=$?
21776   grep -v '^ *+' conftest.er1 >conftest.err
21777   rm -f conftest.er1
21778   cat conftest.err >&5
21779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21780   (exit $ac_status); } && {
21781          test -z "$ac_c_werror_flag" ||
21782          test ! -s conftest.err
21783        } && test -s conftest$ac_exeext &&
21784        $as_test_x conftest$ac_exeext; then
21785   ac_cv_lib_nsl_gethostbyname=yes
21786 else
21787   echo "$as_me: failed program was:" >&5
21788 sed 's/^/| /' conftest.$ac_ext >&5
21789
21790         ac_cv_lib_nsl_gethostbyname=no
21791 fi
21792
21793 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21794       conftest$ac_exeext conftest.$ac_ext
21795 LIBS=$ac_check_lib_save_LIBS
21796 fi
21797 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
21798 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; }
21799 if test $ac_cv_lib_nsl_gethostbyname = yes; then
21800   LIBNSL="-lnsl"
21801 fi
21802
21803 fi
21804
21805
21806
21807 { echo "$as_me:$LINENO: checking for connect" >&5
21808 echo $ECHO_N "checking for connect... $ECHO_C" >&6; }
21809 if test "${ac_cv_func_connect+set}" = set; then
21810   echo $ECHO_N "(cached) $ECHO_C" >&6
21811 else
21812   cat >conftest.$ac_ext <<_ACEOF
21813 /* confdefs.h.  */
21814 _ACEOF
21815 cat confdefs.h >>conftest.$ac_ext
21816 cat >>conftest.$ac_ext <<_ACEOF
21817 /* end confdefs.h.  */
21818 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
21819    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21820 #define connect innocuous_connect
21821
21822 /* System header to define __stub macros and hopefully few prototypes,
21823     which can conflict with char connect (); below.
21824     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21825     <limits.h> exists even on freestanding compilers.  */
21826
21827 #ifdef __STDC__
21828 # include <limits.h>
21829 #else
21830 # include <assert.h>
21831 #endif
21832
21833 #undef connect
21834
21835 /* Override any GCC internal prototype to avoid an error.
21836    Use char because int might match the return type of a GCC
21837    builtin and then its argument prototype would still apply.  */
21838 #ifdef __cplusplus
21839 extern "C"
21840 #endif
21841 char connect ();
21842 /* The GNU C library defines this for functions which it implements
21843     to always fail with ENOSYS.  Some functions are actually named
21844     something starting with __ and the normal name is an alias.  */
21845 #if defined __stub_connect || defined __stub___connect
21846 choke me
21847 #endif
21848
21849 int
21850 main ()
21851 {
21852 return connect ();
21853   ;
21854   return 0;
21855 }
21856 _ACEOF
21857 rm -f conftest.$ac_objext conftest$ac_exeext
21858 if { (ac_try="$ac_link"
21859 case "(($ac_try" in
21860   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21861   *) ac_try_echo=$ac_try;;
21862 esac
21863 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21864   (eval "$ac_link") 2>conftest.er1
21865   ac_status=$?
21866   grep -v '^ *+' conftest.er1 >conftest.err
21867   rm -f conftest.er1
21868   cat conftest.err >&5
21869   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21870   (exit $ac_status); } && {
21871          test -z "$ac_c_werror_flag" ||
21872          test ! -s conftest.err
21873        } && test -s conftest$ac_exeext &&
21874        $as_test_x conftest$ac_exeext; then
21875   ac_cv_func_connect=yes
21876 else
21877   echo "$as_me: failed program was:" >&5
21878 sed 's/^/| /' conftest.$ac_ext >&5
21879
21880         ac_cv_func_connect=no
21881 fi
21882
21883 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21884       conftest$ac_exeext conftest.$ac_ext
21885 fi
21886 { echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
21887 echo "${ECHO_T}$ac_cv_func_connect" >&6; }
21888 if test $ac_cv_func_connect = yes; then
21889   :
21890 else
21891   { echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
21892 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6; }
21893 if test "${ac_cv_lib_socket_connect+set}" = set; then
21894   echo $ECHO_N "(cached) $ECHO_C" >&6
21895 else
21896   ac_check_lib_save_LIBS=$LIBS
21897 LIBS="-lsocket $LIBNSL $LIBS"
21898 cat >conftest.$ac_ext <<_ACEOF
21899 /* confdefs.h.  */
21900 _ACEOF
21901 cat confdefs.h >>conftest.$ac_ext
21902 cat >>conftest.$ac_ext <<_ACEOF
21903 /* end confdefs.h.  */
21904
21905 /* Override any GCC internal prototype to avoid an error.
21906    Use char because int might match the return type of a GCC
21907    builtin and then its argument prototype would still apply.  */
21908 #ifdef __cplusplus
21909 extern "C"
21910 #endif
21911 char connect ();
21912 int
21913 main ()
21914 {
21915 return connect ();
21916   ;
21917   return 0;
21918 }
21919 _ACEOF
21920 rm -f conftest.$ac_objext conftest$ac_exeext
21921 if { (ac_try="$ac_link"
21922 case "(($ac_try" in
21923   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21924   *) ac_try_echo=$ac_try;;
21925 esac
21926 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21927   (eval "$ac_link") 2>conftest.er1
21928   ac_status=$?
21929   grep -v '^ *+' conftest.er1 >conftest.err
21930   rm -f conftest.er1
21931   cat conftest.err >&5
21932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21933   (exit $ac_status); } && {
21934          test -z "$ac_c_werror_flag" ||
21935          test ! -s conftest.err
21936        } && test -s conftest$ac_exeext &&
21937        $as_test_x conftest$ac_exeext; then
21938   ac_cv_lib_socket_connect=yes
21939 else
21940   echo "$as_me: failed program was:" >&5
21941 sed 's/^/| /' conftest.$ac_ext >&5
21942
21943         ac_cv_lib_socket_connect=no
21944 fi
21945
21946 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21947       conftest$ac_exeext conftest.$ac_ext
21948 LIBS=$ac_check_lib_save_LIBS
21949 fi
21950 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
21951 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6; }
21952 if test $ac_cv_lib_socket_connect = yes; then
21953   LIBSOCKET="-lsocket"
21954 else
21955   { { echo "$as_me:$LINENO: error: Function 'socket' not found." >&5
21956 echo "$as_me: error: Function 'socket' not found." >&2;}
21957    { (exit 1); exit 1; }; }
21958 fi
21959
21960 fi
21961
21962
21963 { echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
21964 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6; }
21965 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
21966   echo $ECHO_N "(cached) $ECHO_C" >&6
21967 else
21968   ac_check_lib_save_LIBS=$LIBS
21969 LIBS="-lcrypt  $LIBS"
21970 cat >conftest.$ac_ext <<_ACEOF
21971 /* confdefs.h.  */
21972 _ACEOF
21973 cat confdefs.h >>conftest.$ac_ext
21974 cat >>conftest.$ac_ext <<_ACEOF
21975 /* end confdefs.h.  */
21976
21977 /* Override any GCC internal prototype to avoid an error.
21978    Use char because int might match the return type of a GCC
21979    builtin and then its argument prototype would still apply.  */
21980 #ifdef __cplusplus
21981 extern "C"
21982 #endif
21983 char crypt ();
21984 int
21985 main ()
21986 {
21987 return crypt ();
21988   ;
21989   return 0;
21990 }
21991 _ACEOF
21992 rm -f conftest.$ac_objext conftest$ac_exeext
21993 if { (ac_try="$ac_link"
21994 case "(($ac_try" in
21995   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21996   *) ac_try_echo=$ac_try;;
21997 esac
21998 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21999   (eval "$ac_link") 2>conftest.er1
22000   ac_status=$?
22001   grep -v '^ *+' conftest.er1 >conftest.err
22002   rm -f conftest.er1
22003   cat conftest.err >&5
22004   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22005   (exit $ac_status); } && {
22006          test -z "$ac_c_werror_flag" ||
22007          test ! -s conftest.err
22008        } && test -s conftest$ac_exeext &&
22009        $as_test_x conftest$ac_exeext; then
22010   ac_cv_lib_crypt_crypt=yes
22011 else
22012   echo "$as_me: failed program was:" >&5
22013 sed 's/^/| /' conftest.$ac_ext >&5
22014
22015         ac_cv_lib_crypt_crypt=no
22016 fi
22017
22018 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22019       conftest$ac_exeext conftest.$ac_ext
22020 LIBS=$ac_check_lib_save_LIBS
22021 fi
22022 { echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
22023 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6; }
22024 if test $ac_cv_lib_crypt_crypt = yes; then
22025   LIBCRYPT="-lcrypt"
22026 fi
22027
22028 if test "$enable_nfsv4" = yes; then
22029     { echo "$as_me:$LINENO: checking for event_dispatch in -levent" >&5
22030 echo $ECHO_N "checking for event_dispatch in -levent... $ECHO_C" >&6; }
22031 if test "${ac_cv_lib_event_event_dispatch+set}" = set; then
22032   echo $ECHO_N "(cached) $ECHO_C" >&6
22033 else
22034   ac_check_lib_save_LIBS=$LIBS
22035 LIBS="-levent  $LIBS"
22036 cat >conftest.$ac_ext <<_ACEOF
22037 /* confdefs.h.  */
22038 _ACEOF
22039 cat confdefs.h >>conftest.$ac_ext
22040 cat >>conftest.$ac_ext <<_ACEOF
22041 /* end confdefs.h.  */
22042
22043 /* Override any GCC internal prototype to avoid an error.
22044    Use char because int might match the return type of a GCC
22045    builtin and then its argument prototype would still apply.  */
22046 #ifdef __cplusplus
22047 extern "C"
22048 #endif
22049 char event_dispatch ();
22050 int
22051 main ()
22052 {
22053 return event_dispatch ();
22054   ;
22055   return 0;
22056 }
22057 _ACEOF
22058 rm -f conftest.$ac_objext conftest$ac_exeext
22059 if { (ac_try="$ac_link"
22060 case "(($ac_try" in
22061   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22062   *) ac_try_echo=$ac_try;;
22063 esac
22064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22065   (eval "$ac_link") 2>conftest.er1
22066   ac_status=$?
22067   grep -v '^ *+' conftest.er1 >conftest.err
22068   rm -f conftest.er1
22069   cat conftest.err >&5
22070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22071   (exit $ac_status); } && {
22072          test -z "$ac_c_werror_flag" ||
22073          test ! -s conftest.err
22074        } && test -s conftest$ac_exeext &&
22075        $as_test_x conftest$ac_exeext; then
22076   ac_cv_lib_event_event_dispatch=yes
22077 else
22078   echo "$as_me: failed program was:" >&5
22079 sed 's/^/| /' conftest.$ac_ext >&5
22080
22081         ac_cv_lib_event_event_dispatch=no
22082 fi
22083
22084 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22085       conftest$ac_exeext conftest.$ac_ext
22086 LIBS=$ac_check_lib_save_LIBS
22087 fi
22088 { echo "$as_me:$LINENO: result: $ac_cv_lib_event_event_dispatch" >&5
22089 echo "${ECHO_T}$ac_cv_lib_event_event_dispatch" >&6; }
22090 if test $ac_cv_lib_event_event_dispatch = yes; then
22091   libevent=1
22092 else
22093   { { echo "$as_me:$LINENO: error: libevent needed for nfsv4 support" >&5
22094 echo "$as_me: error: libevent needed for nfsv4 support" >&2;}
22095    { (exit 1); exit 1; }; }
22096 fi
22097
22098     { echo "$as_me:$LINENO: checking for nfs4_init_name_mapping in -lnfsidmap" >&5
22099 echo $ECHO_N "checking for nfs4_init_name_mapping in -lnfsidmap... $ECHO_C" >&6; }
22100 if test "${ac_cv_lib_nfsidmap_nfs4_init_name_mapping+set}" = set; then
22101   echo $ECHO_N "(cached) $ECHO_C" >&6
22102 else
22103   ac_check_lib_save_LIBS=$LIBS
22104 LIBS="-lnfsidmap  $LIBS"
22105 cat >conftest.$ac_ext <<_ACEOF
22106 /* confdefs.h.  */
22107 _ACEOF
22108 cat confdefs.h >>conftest.$ac_ext
22109 cat >>conftest.$ac_ext <<_ACEOF
22110 /* end confdefs.h.  */
22111
22112 /* Override any GCC internal prototype to avoid an error.
22113    Use char because int might match the return type of a GCC
22114    builtin and then its argument prototype would still apply.  */
22115 #ifdef __cplusplus
22116 extern "C"
22117 #endif
22118 char nfs4_init_name_mapping ();
22119 int
22120 main ()
22121 {
22122 return nfs4_init_name_mapping ();
22123   ;
22124   return 0;
22125 }
22126 _ACEOF
22127 rm -f conftest.$ac_objext conftest$ac_exeext
22128 if { (ac_try="$ac_link"
22129 case "(($ac_try" in
22130   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22131   *) ac_try_echo=$ac_try;;
22132 esac
22133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22134   (eval "$ac_link") 2>conftest.er1
22135   ac_status=$?
22136   grep -v '^ *+' conftest.er1 >conftest.err
22137   rm -f conftest.er1
22138   cat conftest.err >&5
22139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22140   (exit $ac_status); } && {
22141          test -z "$ac_c_werror_flag" ||
22142          test ! -s conftest.err
22143        } && test -s conftest$ac_exeext &&
22144        $as_test_x conftest$ac_exeext; then
22145   ac_cv_lib_nfsidmap_nfs4_init_name_mapping=yes
22146 else
22147   echo "$as_me: failed program was:" >&5
22148 sed 's/^/| /' conftest.$ac_ext >&5
22149
22150         ac_cv_lib_nfsidmap_nfs4_init_name_mapping=no
22151 fi
22152
22153 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22154       conftest$ac_exeext conftest.$ac_ext
22155 LIBS=$ac_check_lib_save_LIBS
22156 fi
22157 { echo "$as_me:$LINENO: result: $ac_cv_lib_nfsidmap_nfs4_init_name_mapping" >&5
22158 echo "${ECHO_T}$ac_cv_lib_nfsidmap_nfs4_init_name_mapping" >&6; }
22159 if test $ac_cv_lib_nfsidmap_nfs4_init_name_mapping = yes; then
22160   libnfsidmap=1
22161 else
22162   { { echo "$as_me:$LINENO: error: libnfsidmap needed for nfsv4 support" >&5
22163 echo "$as_me: error: libnfsidmap needed for nfsv4 support" >&2;}
22164    { (exit 1); exit 1; }; }
22165 fi
22166
22167
22168 for ac_header in event.h
22169 do
22170 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22171 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22172   { echo "$as_me:$LINENO: checking for $ac_header" >&5
22173 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22174 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22175   echo $ECHO_N "(cached) $ECHO_C" >&6
22176 fi
22177 ac_res=`eval echo '${'$as_ac_Header'}'`
22178                { echo "$as_me:$LINENO: result: $ac_res" >&5
22179 echo "${ECHO_T}$ac_res" >&6; }
22180 else
22181   # Is the header compilable?
22182 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
22183 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22184 cat >conftest.$ac_ext <<_ACEOF
22185 /* confdefs.h.  */
22186 _ACEOF
22187 cat confdefs.h >>conftest.$ac_ext
22188 cat >>conftest.$ac_ext <<_ACEOF
22189 /* end confdefs.h.  */
22190 $ac_includes_default
22191 #include <$ac_header>
22192 _ACEOF
22193 rm -f conftest.$ac_objext
22194 if { (ac_try="$ac_compile"
22195 case "(($ac_try" in
22196   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22197   *) ac_try_echo=$ac_try;;
22198 esac
22199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22200   (eval "$ac_compile") 2>conftest.er1
22201   ac_status=$?
22202   grep -v '^ *+' conftest.er1 >conftest.err
22203   rm -f conftest.er1
22204   cat conftest.err >&5
22205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22206   (exit $ac_status); } && {
22207          test -z "$ac_c_werror_flag" ||
22208          test ! -s conftest.err
22209        } && test -s conftest.$ac_objext; then
22210   ac_header_compiler=yes
22211 else
22212   echo "$as_me: failed program was:" >&5
22213 sed 's/^/| /' conftest.$ac_ext >&5
22214
22215         ac_header_compiler=no
22216 fi
22217
22218 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22219 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22220 echo "${ECHO_T}$ac_header_compiler" >&6; }
22221
22222 # Is the header present?
22223 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
22224 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22225 cat >conftest.$ac_ext <<_ACEOF
22226 /* confdefs.h.  */
22227 _ACEOF
22228 cat confdefs.h >>conftest.$ac_ext
22229 cat >>conftest.$ac_ext <<_ACEOF
22230 /* end confdefs.h.  */
22231 #include <$ac_header>
22232 _ACEOF
22233 if { (ac_try="$ac_cpp conftest.$ac_ext"
22234 case "(($ac_try" in
22235   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22236   *) ac_try_echo=$ac_try;;
22237 esac
22238 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22239   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22240   ac_status=$?
22241   grep -v '^ *+' conftest.er1 >conftest.err
22242   rm -f conftest.er1
22243   cat conftest.err >&5
22244   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22245   (exit $ac_status); } >/dev/null && {
22246          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22247          test ! -s conftest.err
22248        }; then
22249   ac_header_preproc=yes
22250 else
22251   echo "$as_me: failed program was:" >&5
22252 sed 's/^/| /' conftest.$ac_ext >&5
22253
22254   ac_header_preproc=no
22255 fi
22256
22257 rm -f conftest.err conftest.$ac_ext
22258 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22259 echo "${ECHO_T}$ac_header_preproc" >&6; }
22260
22261 # So?  What about this header?
22262 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22263   yes:no: )
22264     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22265 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22266     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22267 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22268     ac_header_preproc=yes
22269     ;;
22270   no:yes:* )
22271     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22272 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22273     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
22274 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
22275     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22276 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22277     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
22278 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
22279     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22280 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22281     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22282 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22283     ( cat <<\_ASBOX
22284 ## ---------------------------------------- ##
22285 ## Report this to linux-nfs@vger.kernel.org ##
22286 ## ---------------------------------------- ##
22287 _ASBOX
22288      ) | sed "s/^/$as_me: WARNING:     /" >&2
22289     ;;
22290 esac
22291 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22292 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22293 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22294   echo $ECHO_N "(cached) $ECHO_C" >&6
22295 else
22296   eval "$as_ac_Header=\$ac_header_preproc"
22297 fi
22298 ac_res=`eval echo '${'$as_ac_Header'}'`
22299                { echo "$as_me:$LINENO: result: $ac_res" >&5
22300 echo "${ECHO_T}$ac_res" >&6; }
22301
22302 fi
22303 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22304   cat >>confdefs.h <<_ACEOF
22305 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22306 _ACEOF
22307
22308 else
22309   { { echo "$as_me:$LINENO: error: libevent needed for nfsv4 support" >&5
22310 echo "$as_me: error: libevent needed for nfsv4 support" >&2;}
22311    { (exit 1); exit 1; }; }
22312 fi
22313
22314 done
22315
22316
22317 for ac_header in nfsidmap.h
22318 do
22319 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22320 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22321   { echo "$as_me:$LINENO: checking for $ac_header" >&5
22322 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22323 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22324   echo $ECHO_N "(cached) $ECHO_C" >&6
22325 fi
22326 ac_res=`eval echo '${'$as_ac_Header'}'`
22327                { echo "$as_me:$LINENO: result: $ac_res" >&5
22328 echo "${ECHO_T}$ac_res" >&6; }
22329 else
22330   # Is the header compilable?
22331 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
22332 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22333 cat >conftest.$ac_ext <<_ACEOF
22334 /* confdefs.h.  */
22335 _ACEOF
22336 cat confdefs.h >>conftest.$ac_ext
22337 cat >>conftest.$ac_ext <<_ACEOF
22338 /* end confdefs.h.  */
22339 $ac_includes_default
22340 #include <$ac_header>
22341 _ACEOF
22342 rm -f conftest.$ac_objext
22343 if { (ac_try="$ac_compile"
22344 case "(($ac_try" in
22345   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22346   *) ac_try_echo=$ac_try;;
22347 esac
22348 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22349   (eval "$ac_compile") 2>conftest.er1
22350   ac_status=$?
22351   grep -v '^ *+' conftest.er1 >conftest.err
22352   rm -f conftest.er1
22353   cat conftest.err >&5
22354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22355   (exit $ac_status); } && {
22356          test -z "$ac_c_werror_flag" ||
22357          test ! -s conftest.err
22358        } && test -s conftest.$ac_objext; then
22359   ac_header_compiler=yes
22360 else
22361   echo "$as_me: failed program was:" >&5
22362 sed 's/^/| /' conftest.$ac_ext >&5
22363
22364         ac_header_compiler=no
22365 fi
22366
22367 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22368 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22369 echo "${ECHO_T}$ac_header_compiler" >&6; }
22370
22371 # Is the header present?
22372 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
22373 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22374 cat >conftest.$ac_ext <<_ACEOF
22375 /* confdefs.h.  */
22376 _ACEOF
22377 cat confdefs.h >>conftest.$ac_ext
22378 cat >>conftest.$ac_ext <<_ACEOF
22379 /* end confdefs.h.  */
22380 #include <$ac_header>
22381 _ACEOF
22382 if { (ac_try="$ac_cpp conftest.$ac_ext"
22383 case "(($ac_try" in
22384   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22385   *) ac_try_echo=$ac_try;;
22386 esac
22387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22388   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22389   ac_status=$?
22390   grep -v '^ *+' conftest.er1 >conftest.err
22391   rm -f conftest.er1
22392   cat conftest.err >&5
22393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22394   (exit $ac_status); } >/dev/null && {
22395          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22396          test ! -s conftest.err
22397        }; then
22398   ac_header_preproc=yes
22399 else
22400   echo "$as_me: failed program was:" >&5
22401 sed 's/^/| /' conftest.$ac_ext >&5
22402
22403   ac_header_preproc=no
22404 fi
22405
22406 rm -f conftest.err conftest.$ac_ext
22407 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22408 echo "${ECHO_T}$ac_header_preproc" >&6; }
22409
22410 # So?  What about this header?
22411 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22412   yes:no: )
22413     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22414 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22415     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22416 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22417     ac_header_preproc=yes
22418     ;;
22419   no:yes:* )
22420     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22421 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22422     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
22423 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
22424     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22425 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22426     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
22427 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
22428     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22429 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22430     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22431 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22432     ( cat <<\_ASBOX
22433 ## ---------------------------------------- ##
22434 ## Report this to linux-nfs@vger.kernel.org ##
22435 ## ---------------------------------------- ##
22436 _ASBOX
22437      ) | sed "s/^/$as_me: WARNING:     /" >&2
22438     ;;
22439 esac
22440 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22441 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22442 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22443   echo $ECHO_N "(cached) $ECHO_C" >&6
22444 else
22445   eval "$as_ac_Header=\$ac_header_preproc"
22446 fi
22447 ac_res=`eval echo '${'$as_ac_Header'}'`
22448                { echo "$as_me:$LINENO: result: $ac_res" >&5
22449 echo "${ECHO_T}$ac_res" >&6; }
22450
22451 fi
22452 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22453   cat >>confdefs.h <<_ACEOF
22454 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22455 _ACEOF
22456
22457 else
22458   { { echo "$as_me:$LINENO: error: libnfsidmap needed for nfsv4 support" >&5
22459 echo "$as_me: error: libnfsidmap needed for nfsv4 support" >&2;}
22460    { (exit 1); exit 1; }; }
22461 fi
22462
22463 done
22464
22465             if test "$enable_gss" = yes; then
22466
22467
22468 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
22469         if test -n "$ac_tool_prefix"; then
22470   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
22471 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
22472 { echo "$as_me:$LINENO: checking for $ac_word" >&5
22473 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
22474 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
22475   echo $ECHO_N "(cached) $ECHO_C" >&6
22476 else
22477   case $PKG_CONFIG in
22478   [\\/]* | ?:[\\/]*)
22479   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
22480   ;;
22481   *)
22482   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22483 for as_dir in $PATH
22484 do
22485   IFS=$as_save_IFS
22486   test -z "$as_dir" && as_dir=.
22487   for ac_exec_ext in '' $ac_executable_extensions; do
22488   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22489     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22490     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22491     break 2
22492   fi
22493 done
22494 done
22495 IFS=$as_save_IFS
22496
22497   ;;
22498 esac
22499 fi
22500 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
22501 if test -n "$PKG_CONFIG"; then
22502   { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
22503 echo "${ECHO_T}$PKG_CONFIG" >&6; }
22504 else
22505   { echo "$as_me:$LINENO: result: no" >&5
22506 echo "${ECHO_T}no" >&6; }
22507 fi
22508
22509
22510 fi
22511 if test -z "$ac_cv_path_PKG_CONFIG"; then
22512   ac_pt_PKG_CONFIG=$PKG_CONFIG
22513   # Extract the first word of "pkg-config", so it can be a program name with args.
22514 set dummy pkg-config; ac_word=$2
22515 { echo "$as_me:$LINENO: checking for $ac_word" >&5
22516 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
22517 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
22518   echo $ECHO_N "(cached) $ECHO_C" >&6
22519 else
22520   case $ac_pt_PKG_CONFIG in
22521   [\\/]* | ?:[\\/]*)
22522   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
22523   ;;
22524   *)
22525   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22526 for as_dir in $PATH
22527 do
22528   IFS=$as_save_IFS
22529   test -z "$as_dir" && as_dir=.
22530   for ac_exec_ext in '' $ac_executable_extensions; do
22531   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22532     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22533     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22534     break 2
22535   fi
22536 done
22537 done
22538 IFS=$as_save_IFS
22539
22540   ;;
22541 esac
22542 fi
22543 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
22544 if test -n "$ac_pt_PKG_CONFIG"; then
22545   { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
22546 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
22547 else
22548   { echo "$as_me:$LINENO: result: no" >&5
22549 echo "${ECHO_T}no" >&6; }
22550 fi
22551
22552   if test "x$ac_pt_PKG_CONFIG" = x; then
22553     PKG_CONFIG=""
22554   else
22555     case $cross_compiling:$ac_tool_warned in
22556 yes:)
22557 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
22558 whose name does not start with the host triplet.  If you think this
22559 configuration is useful to you, please write to autoconf@gnu.org." >&5
22560 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
22561 whose name does not start with the host triplet.  If you think this
22562 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
22563 ac_tool_warned=yes ;;
22564 esac
22565     PKG_CONFIG=$ac_pt_PKG_CONFIG
22566   fi
22567 else
22568   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
22569 fi
22570
22571 fi
22572 if test -n "$PKG_CONFIG"; then
22573         _pkg_min_version=0.9.0
22574         { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
22575 echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
22576         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
22577                 { echo "$as_me:$LINENO: result: yes" >&5
22578 echo "${ECHO_T}yes" >&6; }
22579         else
22580                 { echo "$as_me:$LINENO: result: no" >&5
22581 echo "${ECHO_T}no" >&6; }
22582                 PKG_CONFIG=""
22583         fi
22584
22585 fi
22586
22587 pkg_failed=no
22588 { echo "$as_me:$LINENO: checking for RPCSECGSS" >&5
22589 echo $ECHO_N "checking for RPCSECGSS... $ECHO_C" >&6; }
22590
22591 if test -n "$PKG_CONFIG"; then
22592     if test -n "$RPCSECGSS_CFLAGS"; then
22593         pkg_cv_RPCSECGSS_CFLAGS="$RPCSECGSS_CFLAGS"
22594     else
22595         if test -n "$PKG_CONFIG" && \
22596     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"librpcsecgss >= 0.16\"") >&5
22597   ($PKG_CONFIG --exists --print-errors "librpcsecgss >= 0.16") 2>&5
22598   ac_status=$?
22599   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22600   (exit $ac_status); }; then
22601   pkg_cv_RPCSECGSS_CFLAGS=`$PKG_CONFIG --cflags "librpcsecgss >= 0.16" 2>/dev/null`
22602 else
22603   pkg_failed=yes
22604 fi
22605     fi
22606 else
22607         pkg_failed=untried
22608 fi
22609 if test -n "$PKG_CONFIG"; then
22610     if test -n "$RPCSECGSS_LIBS"; then
22611         pkg_cv_RPCSECGSS_LIBS="$RPCSECGSS_LIBS"
22612     else
22613         if test -n "$PKG_CONFIG" && \
22614     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"librpcsecgss >= 0.16\"") >&5
22615   ($PKG_CONFIG --exists --print-errors "librpcsecgss >= 0.16") 2>&5
22616   ac_status=$?
22617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22618   (exit $ac_status); }; then
22619   pkg_cv_RPCSECGSS_LIBS=`$PKG_CONFIG --libs "librpcsecgss >= 0.16" 2>/dev/null`
22620 else
22621   pkg_failed=yes
22622 fi
22623     fi
22624 else
22625         pkg_failed=untried
22626 fi
22627
22628
22629
22630 if test $pkg_failed = yes; then
22631
22632 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
22633         _pkg_short_errors_supported=yes
22634 else
22635         _pkg_short_errors_supported=no
22636 fi
22637         if test $_pkg_short_errors_supported = yes; then
22638                 RPCSECGSS_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "librpcsecgss >= 0.16"`
22639         else
22640                 RPCSECGSS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "librpcsecgss >= 0.16"`
22641         fi
22642         # Put the nasty error message in config.log where it belongs
22643         echo "$RPCSECGSS_PKG_ERRORS" >&5
22644
22645         { echo "$as_me:$LINENO: result: no" >&5
22646 echo "${ECHO_T}no" >&6; }
22647                 { { 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
22648 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;}
22649    { (exit 1); exit 1; }; }
22650
22651
22652 elif test $pkg_failed = untried; then
22653         { { 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
22654 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;}
22655    { (exit 1); exit 1; }; }
22656
22657
22658 else
22659         RPCSECGSS_CFLAGS=$pkg_cv_RPCSECGSS_CFLAGS
22660         RPCSECGSS_LIBS=$pkg_cv_RPCSECGSS_LIBS
22661         { echo "$as_me:$LINENO: result: yes" >&5
22662 echo "${ECHO_T}yes" >&6; }
22663         :
22664 fi
22665
22666 pkg_failed=no
22667 { echo "$as_me:$LINENO: checking for GSSGLUE" >&5
22668 echo $ECHO_N "checking for GSSGLUE... $ECHO_C" >&6; }
22669
22670 if test -n "$PKG_CONFIG"; then
22671     if test -n "$GSSGLUE_CFLAGS"; then
22672         pkg_cv_GSSGLUE_CFLAGS="$GSSGLUE_CFLAGS"
22673     else
22674         if test -n "$PKG_CONFIG" && \
22675     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libgssglue >= 0.1\"") >&5
22676   ($PKG_CONFIG --exists --print-errors "libgssglue >= 0.1") 2>&5
22677   ac_status=$?
22678   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22679   (exit $ac_status); }; then
22680   pkg_cv_GSSGLUE_CFLAGS=`$PKG_CONFIG --cflags "libgssglue >= 0.1" 2>/dev/null`
22681 else
22682   pkg_failed=yes
22683 fi
22684     fi
22685 else
22686         pkg_failed=untried
22687 fi
22688 if test -n "$PKG_CONFIG"; then
22689     if test -n "$GSSGLUE_LIBS"; then
22690         pkg_cv_GSSGLUE_LIBS="$GSSGLUE_LIBS"
22691     else
22692         if test -n "$PKG_CONFIG" && \
22693     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libgssglue >= 0.1\"") >&5
22694   ($PKG_CONFIG --exists --print-errors "libgssglue >= 0.1") 2>&5
22695   ac_status=$?
22696   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22697   (exit $ac_status); }; then
22698   pkg_cv_GSSGLUE_LIBS=`$PKG_CONFIG --libs "libgssglue >= 0.1" 2>/dev/null`
22699 else
22700   pkg_failed=yes
22701 fi
22702     fi
22703 else
22704         pkg_failed=untried
22705 fi
22706
22707
22708
22709 if test $pkg_failed = yes; then
22710
22711 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
22712         _pkg_short_errors_supported=yes
22713 else
22714         _pkg_short_errors_supported=no
22715 fi
22716         if test $_pkg_short_errors_supported = yes; then
22717                 GSSGLUE_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libgssglue >= 0.1"`
22718         else
22719                 GSSGLUE_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libgssglue >= 0.1"`
22720         fi
22721         # Put the nasty error message in config.log where it belongs
22722         echo "$GSSGLUE_PKG_ERRORS" >&5
22723
22724         { { echo "$as_me:$LINENO: error: Package requirements (libgssglue >= 0.1) were not met:
22725
22726 $GSSGLUE_PKG_ERRORS
22727
22728 Consider adjusting the PKG_CONFIG_PATH environment variable if you
22729 installed software in a non-standard prefix.
22730
22731 Alternatively, you may set the environment variables GSSGLUE_CFLAGS
22732 and GSSGLUE_LIBS to avoid the need to call pkg-config.
22733 See the pkg-config man page for more details.
22734 " >&5
22735 echo "$as_me: error: Package requirements (libgssglue >= 0.1) were not met:
22736
22737 $GSSGLUE_PKG_ERRORS
22738
22739 Consider adjusting the PKG_CONFIG_PATH environment variable if you
22740 installed software in a non-standard prefix.
22741
22742 Alternatively, you may set the environment variables GSSGLUE_CFLAGS
22743 and GSSGLUE_LIBS to avoid the need to call pkg-config.
22744 See the pkg-config man page for more details.
22745 " >&2;}
22746    { (exit 1); exit 1; }; }
22747 elif test $pkg_failed = untried; then
22748         { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
22749 is in your PATH or set the PKG_CONFIG environment variable to the full
22750 path to pkg-config.
22751
22752 Alternatively, you may set the environment variables GSSGLUE_CFLAGS
22753 and GSSGLUE_LIBS to avoid the need to call pkg-config.
22754 See the pkg-config man page for more details.
22755
22756 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
22757 See \`config.log' for more details." >&5
22758 echo "$as_me: error: The pkg-config script could not be found or is too old.  Make sure it
22759 is in your PATH or set the PKG_CONFIG environment variable to the full
22760 path to pkg-config.
22761
22762 Alternatively, you may set the environment variables GSSGLUE_CFLAGS
22763 and GSSGLUE_LIBS to avoid the need to call pkg-config.
22764 See the pkg-config man page for more details.
22765
22766 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
22767 See \`config.log' for more details." >&2;}
22768    { (exit 1); exit 1; }; }
22769 else
22770         GSSGLUE_CFLAGS=$pkg_cv_GSSGLUE_CFLAGS
22771         GSSGLUE_LIBS=$pkg_cv_GSSGLUE_LIBS
22772         { echo "$as_me:$LINENO: result: yes" >&5
22773 echo "${ECHO_T}yes" >&6; }
22774         :
22775 fi
22776     fi
22777
22778 fi
22779 if test "$knfsd_cv_glibc2" = no; then
22780     { echo "$as_me:$LINENO: checking for daemon in -lbsd" >&5
22781 echo $ECHO_N "checking for daemon in -lbsd... $ECHO_C" >&6; }
22782 if test "${ac_cv_lib_bsd_daemon+set}" = set; then
22783   echo $ECHO_N "(cached) $ECHO_C" >&6
22784 else
22785   ac_check_lib_save_LIBS=$LIBS
22786 LIBS="-lbsd  $LIBS"
22787 cat >conftest.$ac_ext <<_ACEOF
22788 /* confdefs.h.  */
22789 _ACEOF
22790 cat confdefs.h >>conftest.$ac_ext
22791 cat >>conftest.$ac_ext <<_ACEOF
22792 /* end confdefs.h.  */
22793
22794 /* Override any GCC internal prototype to avoid an error.
22795    Use char because int might match the return type of a GCC
22796    builtin and then its argument prototype would still apply.  */
22797 #ifdef __cplusplus
22798 extern "C"
22799 #endif
22800 char daemon ();
22801 int
22802 main ()
22803 {
22804 return daemon ();
22805   ;
22806   return 0;
22807 }
22808 _ACEOF
22809 rm -f conftest.$ac_objext conftest$ac_exeext
22810 if { (ac_try="$ac_link"
22811 case "(($ac_try" in
22812   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22813   *) ac_try_echo=$ac_try;;
22814 esac
22815 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22816   (eval "$ac_link") 2>conftest.er1
22817   ac_status=$?
22818   grep -v '^ *+' conftest.er1 >conftest.err
22819   rm -f conftest.er1
22820   cat conftest.err >&5
22821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22822   (exit $ac_status); } && {
22823          test -z "$ac_c_werror_flag" ||
22824          test ! -s conftest.err
22825        } && test -s conftest$ac_exeext &&
22826        $as_test_x conftest$ac_exeext; then
22827   ac_cv_lib_bsd_daemon=yes
22828 else
22829   echo "$as_me: failed program was:" >&5
22830 sed 's/^/| /' conftest.$ac_ext >&5
22831
22832         ac_cv_lib_bsd_daemon=no
22833 fi
22834
22835 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22836       conftest$ac_exeext conftest.$ac_ext
22837 LIBS=$ac_check_lib_save_LIBS
22838 fi
22839 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_daemon" >&5
22840 echo "${ECHO_T}$ac_cv_lib_bsd_daemon" >&6; }
22841 if test $ac_cv_lib_bsd_daemon = yes; then
22842   LIBBSD="-lbsd"
22843 fi
22844
22845 fi
22846
22847 if test "$choose_blkid" != no; then
22848    { echo "$as_me:$LINENO: checking for blkid_get_library_version in -lblkid" >&5
22849 echo $ECHO_N "checking for blkid_get_library_version in -lblkid... $ECHO_C" >&6; }
22850 if test "${ac_cv_lib_blkid_blkid_get_library_version+set}" = set; then
22851   echo $ECHO_N "(cached) $ECHO_C" >&6
22852 else
22853   ac_check_lib_save_LIBS=$LIBS
22854 LIBS="-lblkid  $LIBS"
22855 cat >conftest.$ac_ext <<_ACEOF
22856 /* confdefs.h.  */
22857 _ACEOF
22858 cat confdefs.h >>conftest.$ac_ext
22859 cat >>conftest.$ac_ext <<_ACEOF
22860 /* end confdefs.h.  */
22861
22862 /* Override any GCC internal prototype to avoid an error.
22863    Use char because int might match the return type of a GCC
22864    builtin and then its argument prototype would still apply.  */
22865 #ifdef __cplusplus
22866 extern "C"
22867 #endif
22868 char blkid_get_library_version ();
22869 int
22870 main ()
22871 {
22872 return blkid_get_library_version ();
22873   ;
22874   return 0;
22875 }
22876 _ACEOF
22877 rm -f conftest.$ac_objext conftest$ac_exeext
22878 if { (ac_try="$ac_link"
22879 case "(($ac_try" in
22880   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22881   *) ac_try_echo=$ac_try;;
22882 esac
22883 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22884   (eval "$ac_link") 2>conftest.er1
22885   ac_status=$?
22886   grep -v '^ *+' conftest.er1 >conftest.err
22887   rm -f conftest.er1
22888   cat conftest.err >&5
22889   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22890   (exit $ac_status); } && {
22891          test -z "$ac_c_werror_flag" ||
22892          test ! -s conftest.err
22893        } && test -s conftest$ac_exeext &&
22894        $as_test_x conftest$ac_exeext; then
22895   ac_cv_lib_blkid_blkid_get_library_version=yes
22896 else
22897   echo "$as_me: failed program was:" >&5
22898 sed 's/^/| /' conftest.$ac_ext >&5
22899
22900         ac_cv_lib_blkid_blkid_get_library_version=no
22901 fi
22902
22903 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22904       conftest$ac_exeext conftest.$ac_ext
22905 LIBS=$ac_check_lib_save_LIBS
22906 fi
22907 { echo "$as_me:$LINENO: result: $ac_cv_lib_blkid_blkid_get_library_version" >&5
22908 echo "${ECHO_T}$ac_cv_lib_blkid_blkid_get_library_version" >&6; }
22909 if test $ac_cv_lib_blkid_blkid_get_library_version = yes; then
22910   LIBBLKID="-lblkid"
22911 else
22912   { { echo "$as_me:$LINENO: error: libblkid needed" >&5
22913 echo "$as_me: error: libblkid needed" >&2;}
22914    { (exit 1); exit 1; }; }
22915 fi
22916
22917    if test "${ac_cv_header_blkid_blkid_h+set}" = set; then
22918   { echo "$as_me:$LINENO: checking for blkid/blkid.h" >&5
22919 echo $ECHO_N "checking for blkid/blkid.h... $ECHO_C" >&6; }
22920 if test "${ac_cv_header_blkid_blkid_h+set}" = set; then
22921   echo $ECHO_N "(cached) $ECHO_C" >&6
22922 fi
22923 { echo "$as_me:$LINENO: result: $ac_cv_header_blkid_blkid_h" >&5
22924 echo "${ECHO_T}$ac_cv_header_blkid_blkid_h" >&6; }
22925 else
22926   # Is the header compilable?
22927 { echo "$as_me:$LINENO: checking blkid/blkid.h usability" >&5
22928 echo $ECHO_N "checking blkid/blkid.h usability... $ECHO_C" >&6; }
22929 cat >conftest.$ac_ext <<_ACEOF
22930 /* confdefs.h.  */
22931 _ACEOF
22932 cat confdefs.h >>conftest.$ac_ext
22933 cat >>conftest.$ac_ext <<_ACEOF
22934 /* end confdefs.h.  */
22935 $ac_includes_default
22936 #include <blkid/blkid.h>
22937 _ACEOF
22938 rm -f conftest.$ac_objext
22939 if { (ac_try="$ac_compile"
22940 case "(($ac_try" in
22941   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22942   *) ac_try_echo=$ac_try;;
22943 esac
22944 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22945   (eval "$ac_compile") 2>conftest.er1
22946   ac_status=$?
22947   grep -v '^ *+' conftest.er1 >conftest.err
22948   rm -f conftest.er1
22949   cat conftest.err >&5
22950   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22951   (exit $ac_status); } && {
22952          test -z "$ac_c_werror_flag" ||
22953          test ! -s conftest.err
22954        } && test -s conftest.$ac_objext; then
22955   ac_header_compiler=yes
22956 else
22957   echo "$as_me: failed program was:" >&5
22958 sed 's/^/| /' conftest.$ac_ext >&5
22959
22960         ac_header_compiler=no
22961 fi
22962
22963 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22964 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22965 echo "${ECHO_T}$ac_header_compiler" >&6; }
22966
22967 # Is the header present?
22968 { echo "$as_me:$LINENO: checking blkid/blkid.h presence" >&5
22969 echo $ECHO_N "checking blkid/blkid.h presence... $ECHO_C" >&6; }
22970 cat >conftest.$ac_ext <<_ACEOF
22971 /* confdefs.h.  */
22972 _ACEOF
22973 cat confdefs.h >>conftest.$ac_ext
22974 cat >>conftest.$ac_ext <<_ACEOF
22975 /* end confdefs.h.  */
22976 #include <blkid/blkid.h>
22977 _ACEOF
22978 if { (ac_try="$ac_cpp conftest.$ac_ext"
22979 case "(($ac_try" in
22980   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22981   *) ac_try_echo=$ac_try;;
22982 esac
22983 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22984   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22985   ac_status=$?
22986   grep -v '^ *+' conftest.er1 >conftest.err
22987   rm -f conftest.er1
22988   cat conftest.err >&5
22989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22990   (exit $ac_status); } >/dev/null && {
22991          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22992          test ! -s conftest.err
22993        }; then
22994   ac_header_preproc=yes
22995 else
22996   echo "$as_me: failed program was:" >&5
22997 sed 's/^/| /' conftest.$ac_ext >&5
22998
22999   ac_header_preproc=no
23000 fi
23001
23002 rm -f conftest.err conftest.$ac_ext
23003 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23004 echo "${ECHO_T}$ac_header_preproc" >&6; }
23005
23006 # So?  What about this header?
23007 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23008   yes:no: )
23009     { echo "$as_me:$LINENO: WARNING: blkid/blkid.h: accepted by the compiler, rejected by the preprocessor!" >&5
23010 echo "$as_me: WARNING: blkid/blkid.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
23011     { echo "$as_me:$LINENO: WARNING: blkid/blkid.h: proceeding with the compiler's result" >&5
23012 echo "$as_me: WARNING: blkid/blkid.h: proceeding with the compiler's result" >&2;}
23013     ac_header_preproc=yes
23014     ;;
23015   no:yes:* )
23016     { echo "$as_me:$LINENO: WARNING: blkid/blkid.h: present but cannot be compiled" >&5
23017 echo "$as_me: WARNING: blkid/blkid.h: present but cannot be compiled" >&2;}
23018     { echo "$as_me:$LINENO: WARNING: blkid/blkid.h:     check for missing prerequisite headers?" >&5
23019 echo "$as_me: WARNING: blkid/blkid.h:     check for missing prerequisite headers?" >&2;}
23020     { echo "$as_me:$LINENO: WARNING: blkid/blkid.h: see the Autoconf documentation" >&5
23021 echo "$as_me: WARNING: blkid/blkid.h: see the Autoconf documentation" >&2;}
23022     { echo "$as_me:$LINENO: WARNING: blkid/blkid.h:     section \"Present But Cannot Be Compiled\"" >&5
23023 echo "$as_me: WARNING: blkid/blkid.h:     section \"Present But Cannot Be Compiled\"" >&2;}
23024     { echo "$as_me:$LINENO: WARNING: blkid/blkid.h: proceeding with the preprocessor's result" >&5
23025 echo "$as_me: WARNING: blkid/blkid.h: proceeding with the preprocessor's result" >&2;}
23026     { echo "$as_me:$LINENO: WARNING: blkid/blkid.h: in the future, the compiler will take precedence" >&5
23027 echo "$as_me: WARNING: blkid/blkid.h: in the future, the compiler will take precedence" >&2;}
23028     ( cat <<\_ASBOX
23029 ## ---------------------------------------- ##
23030 ## Report this to linux-nfs@vger.kernel.org ##
23031 ## ---------------------------------------- ##
23032 _ASBOX
23033      ) | sed "s/^/$as_me: WARNING:     /" >&2
23034     ;;
23035 esac
23036 { echo "$as_me:$LINENO: checking for blkid/blkid.h" >&5
23037 echo $ECHO_N "checking for blkid/blkid.h... $ECHO_C" >&6; }
23038 if test "${ac_cv_header_blkid_blkid_h+set}" = set; then
23039   echo $ECHO_N "(cached) $ECHO_C" >&6
23040 else
23041   ac_cv_header_blkid_blkid_h=$ac_header_preproc
23042 fi
23043 { echo "$as_me:$LINENO: result: $ac_cv_header_blkid_blkid_h" >&5
23044 echo "${ECHO_T}$ac_cv_header_blkid_blkid_h" >&6; }
23045
23046 fi
23047 if test $ac_cv_header_blkid_blkid_h = yes; then
23048   :
23049 else
23050   { { echo "$as_me:$LINENO: error: Cannot find libblkid header file blkid/blkid.h" >&5
23051 echo "$as_me: error: Cannot find libblkid header file blkid/blkid.h" >&2;}
23052    { (exit 1); exit 1; }; }
23053 fi
23054
23055
23056
23057   { echo "$as_me:$LINENO: checking for suitable libblkid version" >&5
23058 echo $ECHO_N "checking for suitable libblkid version... $ECHO_C" >&6; }
23059   if test "${libblkid_is_recent+set}" = set; then
23060   echo $ECHO_N "(cached) $ECHO_C" >&6
23061 else
23062
23063     saved_LIBS="$LIBS"
23064     LIBS=-lblkid
23065     if test "$cross_compiling" = yes; then
23066   libblkid_is_recent=unknown
23067 else
23068   cat >conftest.$ac_ext <<_ACEOF
23069 /* confdefs.h.  */
23070 _ACEOF
23071 cat confdefs.h >>conftest.$ac_ext
23072 cat >>conftest.$ac_ext <<_ACEOF
23073 /* end confdefs.h.  */
23074
23075         #include <blkid/blkid.h>
23076         int main()
23077         {
23078                 int vers = blkid_get_library_version(0, 0);
23079                 return vers >= 140 ? 0 : 1;
23080         }
23081
23082 _ACEOF
23083 rm -f conftest$ac_exeext
23084 if { (ac_try="$ac_link"
23085 case "(($ac_try" in
23086   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23087   *) ac_try_echo=$ac_try;;
23088 esac
23089 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23090   (eval "$ac_link") 2>&5
23091   ac_status=$?
23092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23093   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23094   { (case "(($ac_try" in
23095   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23096   *) ac_try_echo=$ac_try;;
23097 esac
23098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23099   (eval "$ac_try") 2>&5
23100   ac_status=$?
23101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23102   (exit $ac_status); }; }; then
23103   libblkid_is_recent=yes
23104 else
23105   echo "$as_me: program exited with status $ac_status" >&5
23106 echo "$as_me: failed program was:" >&5
23107 sed 's/^/| /' conftest.$ac_ext >&5
23108
23109 ( exit $ac_status )
23110 libblkid_is_recent=no
23111 fi
23112 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23113 fi
23114
23115
23116     LIBS="$saved_LIBS"
23117
23118 fi
23119   { echo "$as_me:$LINENO: result: $libblkid_is_recent" >&5
23120 echo "${ECHO_T}$libblkid_is_recent" >&6; }
23121
23122    if test $choose_blkid = yes; then
23123       use_blkid=1
23124       test $libblkid_is_recent = no && { echo "$as_me:$LINENO: WARNING: libblkid is old and may cause mountd to leak memory" >&5
23125 echo "$as_me: WARNING: libblkid is old and may cause mountd to leak memory" >&2;}
23126    else
23127       if test $libblkid_is_recent = yes
23128       then use_blkid=1
23129       else use_blkid=0
23130            { echo "$as_me:$LINENO: WARNING: uuid support disabled as libblkid is too old" >&5
23131 echo "$as_me: WARNING: uuid support disabled as libblkid is too old" >&2;}
23132       fi
23133     fi
23134
23135 cat >>confdefs.h <<_ACEOF
23136 #define USE_BLKID $use_blkid
23137 _ACEOF
23138
23139 fi
23140
23141
23142
23143
23144
23145 if test "$enable_gss" = yes; then
23146
23147 for ac_header in nfsidmap.h
23148 do
23149 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23150 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23151   { echo "$as_me:$LINENO: checking for $ac_header" >&5
23152 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23153 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23154   echo $ECHO_N "(cached) $ECHO_C" >&6
23155 fi
23156 ac_res=`eval echo '${'$as_ac_Header'}'`
23157                { echo "$as_me:$LINENO: result: $ac_res" >&5
23158 echo "${ECHO_T}$ac_res" >&6; }
23159 else
23160   # Is the header compilable?
23161 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
23162 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
23163 cat >conftest.$ac_ext <<_ACEOF
23164 /* confdefs.h.  */
23165 _ACEOF
23166 cat confdefs.h >>conftest.$ac_ext
23167 cat >>conftest.$ac_ext <<_ACEOF
23168 /* end confdefs.h.  */
23169 $ac_includes_default
23170 #include <$ac_header>
23171 _ACEOF
23172 rm -f conftest.$ac_objext
23173 if { (ac_try="$ac_compile"
23174 case "(($ac_try" in
23175   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23176   *) ac_try_echo=$ac_try;;
23177 esac
23178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23179   (eval "$ac_compile") 2>conftest.er1
23180   ac_status=$?
23181   grep -v '^ *+' conftest.er1 >conftest.err
23182   rm -f conftest.er1
23183   cat conftest.err >&5
23184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23185   (exit $ac_status); } && {
23186          test -z "$ac_c_werror_flag" ||
23187          test ! -s conftest.err
23188        } && test -s conftest.$ac_objext; then
23189   ac_header_compiler=yes
23190 else
23191   echo "$as_me: failed program was:" >&5
23192 sed 's/^/| /' conftest.$ac_ext >&5
23193
23194         ac_header_compiler=no
23195 fi
23196
23197 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23198 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23199 echo "${ECHO_T}$ac_header_compiler" >&6; }
23200
23201 # Is the header present?
23202 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
23203 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
23204 cat >conftest.$ac_ext <<_ACEOF
23205 /* confdefs.h.  */
23206 _ACEOF
23207 cat confdefs.h >>conftest.$ac_ext
23208 cat >>conftest.$ac_ext <<_ACEOF
23209 /* end confdefs.h.  */
23210 #include <$ac_header>
23211 _ACEOF
23212 if { (ac_try="$ac_cpp conftest.$ac_ext"
23213 case "(($ac_try" in
23214   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23215   *) ac_try_echo=$ac_try;;
23216 esac
23217 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23218   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23219   ac_status=$?
23220   grep -v '^ *+' conftest.er1 >conftest.err
23221   rm -f conftest.er1
23222   cat conftest.err >&5
23223   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23224   (exit $ac_status); } >/dev/null && {
23225          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23226          test ! -s conftest.err
23227        }; then
23228   ac_header_preproc=yes
23229 else
23230   echo "$as_me: failed program was:" >&5
23231 sed 's/^/| /' conftest.$ac_ext >&5
23232
23233   ac_header_preproc=no
23234 fi
23235
23236 rm -f conftest.err conftest.$ac_ext
23237 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23238 echo "${ECHO_T}$ac_header_preproc" >&6; }
23239
23240 # So?  What about this header?
23241 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23242   yes:no: )
23243     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23244 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23245     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23246 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23247     ac_header_preproc=yes
23248     ;;
23249   no:yes:* )
23250     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23251 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23252     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
23253 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
23254     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23255 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23256     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
23257 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
23258     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23259 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23260     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23261 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23262     ( cat <<\_ASBOX
23263 ## ---------------------------------------- ##
23264 ## Report this to linux-nfs@vger.kernel.org ##
23265 ## ---------------------------------------- ##
23266 _ASBOX
23267      ) | sed "s/^/$as_me: WARNING:     /" >&2
23268     ;;
23269 esac
23270 { echo "$as_me:$LINENO: checking for $ac_header" >&5
23271 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23272 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23273   echo $ECHO_N "(cached) $ECHO_C" >&6
23274 else
23275   eval "$as_ac_Header=\$ac_header_preproc"
23276 fi
23277 ac_res=`eval echo '${'$as_ac_Header'}'`
23278                { echo "$as_me:$LINENO: result: $ac_res" >&5
23279 echo "${ECHO_T}$ac_res" >&6; }
23280
23281 fi
23282 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23283   cat >>confdefs.h <<_ACEOF
23284 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23285 _ACEOF
23286
23287 else
23288   { { echo "$as_me:$LINENO: error: libnfsidmap needed for gss support" >&5
23289 echo "$as_me: error: libnfsidmap needed for gss support" >&2;}
23290    { (exit 1); exit 1; }; }
23291 fi
23292
23293 done
23294
23295
23296 for ac_header in spkm3.h
23297 do
23298 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23299 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23300   { echo "$as_me:$LINENO: checking for $ac_header" >&5
23301 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23302 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23303   echo $ECHO_N "(cached) $ECHO_C" >&6
23304 fi
23305 ac_res=`eval echo '${'$as_ac_Header'}'`
23306                { echo "$as_me:$LINENO: result: $ac_res" >&5
23307 echo "${ECHO_T}$ac_res" >&6; }
23308 else
23309   # Is the header compilable?
23310 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
23311 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
23312 cat >conftest.$ac_ext <<_ACEOF
23313 /* confdefs.h.  */
23314 _ACEOF
23315 cat confdefs.h >>conftest.$ac_ext
23316 cat >>conftest.$ac_ext <<_ACEOF
23317 /* end confdefs.h.  */
23318 $ac_includes_default
23319 #include <$ac_header>
23320 _ACEOF
23321 rm -f conftest.$ac_objext
23322 if { (ac_try="$ac_compile"
23323 case "(($ac_try" in
23324   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23325   *) ac_try_echo=$ac_try;;
23326 esac
23327 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23328   (eval "$ac_compile") 2>conftest.er1
23329   ac_status=$?
23330   grep -v '^ *+' conftest.er1 >conftest.err
23331   rm -f conftest.er1
23332   cat conftest.err >&5
23333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23334   (exit $ac_status); } && {
23335          test -z "$ac_c_werror_flag" ||
23336          test ! -s conftest.err
23337        } && test -s conftest.$ac_objext; then
23338   ac_header_compiler=yes
23339 else
23340   echo "$as_me: failed program was:" >&5
23341 sed 's/^/| /' conftest.$ac_ext >&5
23342
23343         ac_header_compiler=no
23344 fi
23345
23346 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23347 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23348 echo "${ECHO_T}$ac_header_compiler" >&6; }
23349
23350 # Is the header present?
23351 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
23352 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
23353 cat >conftest.$ac_ext <<_ACEOF
23354 /* confdefs.h.  */
23355 _ACEOF
23356 cat confdefs.h >>conftest.$ac_ext
23357 cat >>conftest.$ac_ext <<_ACEOF
23358 /* end confdefs.h.  */
23359 #include <$ac_header>
23360 _ACEOF
23361 if { (ac_try="$ac_cpp conftest.$ac_ext"
23362 case "(($ac_try" in
23363   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23364   *) ac_try_echo=$ac_try;;
23365 esac
23366 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23367   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23368   ac_status=$?
23369   grep -v '^ *+' conftest.er1 >conftest.err
23370   rm -f conftest.er1
23371   cat conftest.err >&5
23372   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23373   (exit $ac_status); } >/dev/null && {
23374          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23375          test ! -s conftest.err
23376        }; then
23377   ac_header_preproc=yes
23378 else
23379   echo "$as_me: failed program was:" >&5
23380 sed 's/^/| /' conftest.$ac_ext >&5
23381
23382   ac_header_preproc=no
23383 fi
23384
23385 rm -f conftest.err conftest.$ac_ext
23386 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23387 echo "${ECHO_T}$ac_header_preproc" >&6; }
23388
23389 # So?  What about this header?
23390 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23391   yes:no: )
23392     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23393 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23394     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23395 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23396     ac_header_preproc=yes
23397     ;;
23398   no:yes:* )
23399     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23400 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23401     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
23402 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
23403     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23404 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23405     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
23406 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
23407     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23408 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23409     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23410 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23411     ( cat <<\_ASBOX
23412 ## ---------------------------------------- ##
23413 ## Report this to linux-nfs@vger.kernel.org ##
23414 ## ---------------------------------------- ##
23415 _ASBOX
23416      ) | sed "s/^/$as_me: WARNING:     /" >&2
23417     ;;
23418 esac
23419 { echo "$as_me:$LINENO: checking for $ac_header" >&5
23420 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23421 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23422   echo $ECHO_N "(cached) $ECHO_C" >&6
23423 else
23424   eval "$as_ac_Header=\$ac_header_preproc"
23425 fi
23426 ac_res=`eval echo '${'$as_ac_Header'}'`
23427                { echo "$as_me:$LINENO: result: $ac_res" >&5
23428 echo "${ECHO_T}$ac_res" >&6; }
23429
23430 fi
23431 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23432   cat >>confdefs.h <<_ACEOF
23433 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23434 _ACEOF
23435
23436 else
23437   { echo "$as_me:$LINENO: WARNING: could not locate SPKM3 header; will not have SPKM3 support" >&5
23438 echo "$as_me: WARNING: could not locate SPKM3 header; will not have SPKM3 support" >&2;}
23439 fi
23440
23441 done
23442
23443     { echo "$as_me:$LINENO: checking for nfs4_set_debug in -lnfsidmap" >&5
23444 echo $ECHO_N "checking for nfs4_set_debug in -lnfsidmap... $ECHO_C" >&6; }
23445 if test "${ac_cv_lib_nfsidmap_nfs4_set_debug+set}" = set; then
23446   echo $ECHO_N "(cached) $ECHO_C" >&6
23447 else
23448   ac_check_lib_save_LIBS=$LIBS
23449 LIBS="-lnfsidmap  $LIBS"
23450 cat >conftest.$ac_ext <<_ACEOF
23451 /* confdefs.h.  */
23452 _ACEOF
23453 cat confdefs.h >>conftest.$ac_ext
23454 cat >>conftest.$ac_ext <<_ACEOF
23455 /* end confdefs.h.  */
23456
23457 /* Override any GCC internal prototype to avoid an error.
23458    Use char because int might match the return type of a GCC
23459    builtin and then its argument prototype would still apply.  */
23460 #ifdef __cplusplus
23461 extern "C"
23462 #endif
23463 char nfs4_set_debug ();
23464 int
23465 main ()
23466 {
23467 return nfs4_set_debug ();
23468   ;
23469   return 0;
23470 }
23471 _ACEOF
23472 rm -f conftest.$ac_objext conftest$ac_exeext
23473 if { (ac_try="$ac_link"
23474 case "(($ac_try" in
23475   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23476   *) ac_try_echo=$ac_try;;
23477 esac
23478 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23479   (eval "$ac_link") 2>conftest.er1
23480   ac_status=$?
23481   grep -v '^ *+' conftest.er1 >conftest.err
23482   rm -f conftest.er1
23483   cat conftest.err >&5
23484   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23485   (exit $ac_status); } && {
23486          test -z "$ac_c_werror_flag" ||
23487          test ! -s conftest.err
23488        } && test -s conftest$ac_exeext &&
23489        $as_test_x conftest$ac_exeext; then
23490   ac_cv_lib_nfsidmap_nfs4_set_debug=yes
23491 else
23492   echo "$as_me: failed program was:" >&5
23493 sed 's/^/| /' conftest.$ac_ext >&5
23494
23495         ac_cv_lib_nfsidmap_nfs4_set_debug=no
23496 fi
23497
23498 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23499       conftest$ac_exeext conftest.$ac_ext
23500 LIBS=$ac_check_lib_save_LIBS
23501 fi
23502 { echo "$as_me:$LINENO: result: $ac_cv_lib_nfsidmap_nfs4_set_debug" >&5
23503 echo "${ECHO_T}$ac_cv_lib_nfsidmap_nfs4_set_debug" >&6; }
23504 if test $ac_cv_lib_nfsidmap_nfs4_set_debug = yes; then
23505
23506 cat >>confdefs.h <<\_ACEOF
23507 #define HAVE_NFS4_SET_DEBUG 1
23508 _ACEOF
23509
23510 fi
23511
23512
23513
23514   { echo "$as_me:$LINENO: checking for Kerberos v5" >&5
23515 echo $ECHO_N "checking for Kerberos v5... $ECHO_C" >&6; }
23516
23517 # Check whether --with-krb5 was given.
23518 if test "${with_krb5+set}" = set; then
23519   withval=$with_krb5;  case "$withval" in
23520     yes|no)
23521        krb5_with=""
23522        ;;
23523     *)
23524        krb5_with="$withval"
23525        ;;
23526     esac
23527
23528 fi
23529
23530
23531   for dir in $krb5_with /usr /usr/kerberos /usr/local /usr/local/krb5 \
23532              /usr/krb5 /usr/heimdal /usr/local/heimdal /usr/athena ; do
23533             K5CONFIG=""
23534     if test -f $dir/bin/krb5-config; then
23535       K5CONFIG=$dir/bin/krb5-config
23536     elif test -f "/usr/kerberos/bin/krb5-config"; then
23537       K5CONFIG="/usr/kerberos/bin/krb5-config"
23538     elif test -f "/usr/lib/mit/bin/krb5-config"; then
23539       K5CONFIG="/usr/lib/mit/bin/krb5-config"
23540     fi
23541     if test "$K5CONFIG" != ""; then
23542       KRBCFLAGS=`$K5CONFIG --cflags`
23543       KRBLIBS=`$K5CONFIG --libs gssapi`
23544       K5VERS=`$K5CONFIG --version | head -n 1 | awk '{split($(4),v,"."); if (v["3"] == "") v["3"] = "0"; print v["1"]v["2"]v["3"] }'`
23545
23546 cat >>confdefs.h <<_ACEOF
23547 #define KRB5_VERSION $K5VERS
23548 _ACEOF
23549
23550       if test -f $dir/include/gssapi/gssapi_krb5.h -a \
23551                 \( -f $dir/lib/libgssapi_krb5.a -o \
23552                    -f $dir/lib64/libgssapi_krb5.a -o \
23553                    -f $dir/lib64/libgssapi_krb5.so -o \
23554                    -f $dir/lib/libgssapi_krb5.so \) ; then
23555
23556 cat >>confdefs.h <<\_ACEOF
23557 #define HAVE_KRB5 1
23558 _ACEOF
23559
23560          KRBDIR="$dir"
23561                      if test $K5VERS -le 131; then
23562
23563 cat >>confdefs.h <<\_ACEOF
23564 #define USE_GSS_KRB5_CCACHE_NAME 1
23565 _ACEOF
23566
23567          fi
23568          gssapi_lib=gssapi_krb5
23569          break
23570                   elif test \( -f $dir/include/heim_err.h -o\
23571                  -f $dir/include/heimdal/heim_err.h \) -a \
23572                 -f $dir/lib/libroken.a; then
23573
23574 cat >>confdefs.h <<\_ACEOF
23575 #define HAVE_HEIMDAL 1
23576 _ACEOF
23577
23578          KRBDIR="$dir"
23579          gssapi_lib=gssapi
23580         break
23581       fi
23582     fi
23583   done
23584     if test "x$KRBDIR" = "x"; then
23585     if test "x$krb5_with" = "x"; then
23586       { { echo "$as_me:$LINENO: error: Kerberos v5 with GSS support not found: consider --disable-gss or --with-krb5=" >&5
23587 echo "$as_me: error: Kerberos v5 with GSS support not found: consider --disable-gss or --with-krb5=" >&2;}
23588    { (exit 1); exit 1; }; }
23589     else
23590       { { echo "$as_me:$LINENO: error: Kerberos v5 with GSS support not found at $krb5_with" >&5
23591 echo "$as_me: error: Kerberos v5 with GSS support not found at $krb5_with" >&2;}
23592    { (exit 1); exit 1; }; }
23593     fi
23594   fi
23595   { echo "$as_me:$LINENO: result: $KRBDIR" >&5
23596 echo "${ECHO_T}$KRBDIR" >&6; }
23597
23598     echo "The current KRBDIR is $KRBDIR"
23599   if test "$KRBDIR/lib" = "/lib" -o "$KRBDIR/lib" = "/usr/lib" \
23600        -o "$KRBDIR/lib" = "//lib" -o "$KRBDIR/lib" = "/usr//lib" ; then
23601     KRBLDFLAGS="";
23602   elif /sbin/ldconfig -p | grep > /dev/null "=> $KRBDIR/lib/"; then
23603     KRBLDFLAGS="";
23604   else
23605     KRBLDFLAGS="-Wl,-rpath=$KRBDIR/lib"
23606   fi
23607
23608     as_ac_Lib=`echo "ac_cv_lib_$gssapi_lib''_gss_krb5_export_lucid_sec_context" | $as_tr_sh`
23609 { echo "$as_me:$LINENO: checking for gss_krb5_export_lucid_sec_context in -l$gssapi_lib" >&5
23610 echo $ECHO_N "checking for gss_krb5_export_lucid_sec_context in -l$gssapi_lib... $ECHO_C" >&6; }
23611 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
23612   echo $ECHO_N "(cached) $ECHO_C" >&6
23613 else
23614   ac_check_lib_save_LIBS=$LIBS
23615 LIBS="-l$gssapi_lib $KRBLIBS $LIBS"
23616 cat >conftest.$ac_ext <<_ACEOF
23617 /* confdefs.h.  */
23618 _ACEOF
23619 cat confdefs.h >>conftest.$ac_ext
23620 cat >>conftest.$ac_ext <<_ACEOF
23621 /* end confdefs.h.  */
23622
23623 /* Override any GCC internal prototype to avoid an error.
23624    Use char because int might match the return type of a GCC
23625    builtin and then its argument prototype would still apply.  */
23626 #ifdef __cplusplus
23627 extern "C"
23628 #endif
23629 char gss_krb5_export_lucid_sec_context ();
23630 int
23631 main ()
23632 {
23633 return gss_krb5_export_lucid_sec_context ();
23634   ;
23635   return 0;
23636 }
23637 _ACEOF
23638 rm -f conftest.$ac_objext conftest$ac_exeext
23639 if { (ac_try="$ac_link"
23640 case "(($ac_try" in
23641   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23642   *) ac_try_echo=$ac_try;;
23643 esac
23644 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23645   (eval "$ac_link") 2>conftest.er1
23646   ac_status=$?
23647   grep -v '^ *+' conftest.er1 >conftest.err
23648   rm -f conftest.er1
23649   cat conftest.err >&5
23650   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23651   (exit $ac_status); } && {
23652          test -z "$ac_c_werror_flag" ||
23653          test ! -s conftest.err
23654        } && test -s conftest$ac_exeext &&
23655        $as_test_x conftest$ac_exeext; then
23656   eval "$as_ac_Lib=yes"
23657 else
23658   echo "$as_me: failed program was:" >&5
23659 sed 's/^/| /' conftest.$ac_ext >&5
23660
23661         eval "$as_ac_Lib=no"
23662 fi
23663
23664 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23665       conftest$ac_exeext conftest.$ac_ext
23666 LIBS=$ac_check_lib_save_LIBS
23667 fi
23668 ac_res=`eval echo '${'$as_ac_Lib'}'`
23669                { echo "$as_me:$LINENO: result: $ac_res" >&5
23670 echo "${ECHO_T}$ac_res" >&6; }
23671 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
23672
23673 cat >>confdefs.h <<\_ACEOF
23674 #define HAVE_LUCID_CONTEXT_SUPPORT 1
23675 _ACEOF
23676
23677 fi
23678
23679   as_ac_Lib=`echo "ac_cv_lib_$gssapi_lib''_gss_krb5_set_allowable_enctypes" | $as_tr_sh`
23680 { echo "$as_me:$LINENO: checking for gss_krb5_set_allowable_enctypes in -l$gssapi_lib" >&5
23681 echo $ECHO_N "checking for gss_krb5_set_allowable_enctypes in -l$gssapi_lib... $ECHO_C" >&6; }
23682 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
23683   echo $ECHO_N "(cached) $ECHO_C" >&6
23684 else
23685   ac_check_lib_save_LIBS=$LIBS
23686 LIBS="-l$gssapi_lib $KRBLIBS $LIBS"
23687 cat >conftest.$ac_ext <<_ACEOF
23688 /* confdefs.h.  */
23689 _ACEOF
23690 cat confdefs.h >>conftest.$ac_ext
23691 cat >>conftest.$ac_ext <<_ACEOF
23692 /* end confdefs.h.  */
23693
23694 /* Override any GCC internal prototype to avoid an error.
23695    Use char because int might match the return type of a GCC
23696    builtin and then its argument prototype would still apply.  */
23697 #ifdef __cplusplus
23698 extern "C"
23699 #endif
23700 char gss_krb5_set_allowable_enctypes ();
23701 int
23702 main ()
23703 {
23704 return gss_krb5_set_allowable_enctypes ();
23705   ;
23706   return 0;
23707 }
23708 _ACEOF
23709 rm -f conftest.$ac_objext conftest$ac_exeext
23710 if { (ac_try="$ac_link"
23711 case "(($ac_try" in
23712   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23713   *) ac_try_echo=$ac_try;;
23714 esac
23715 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23716   (eval "$ac_link") 2>conftest.er1
23717   ac_status=$?
23718   grep -v '^ *+' conftest.er1 >conftest.err
23719   rm -f conftest.er1
23720   cat conftest.err >&5
23721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23722   (exit $ac_status); } && {
23723          test -z "$ac_c_werror_flag" ||
23724          test ! -s conftest.err
23725        } && test -s conftest$ac_exeext &&
23726        $as_test_x conftest$ac_exeext; then
23727   eval "$as_ac_Lib=yes"
23728 else
23729   echo "$as_me: failed program was:" >&5
23730 sed 's/^/| /' conftest.$ac_ext >&5
23731
23732         eval "$as_ac_Lib=no"
23733 fi
23734
23735 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23736       conftest$ac_exeext conftest.$ac_ext
23737 LIBS=$ac_check_lib_save_LIBS
23738 fi
23739 ac_res=`eval echo '${'$as_ac_Lib'}'`
23740                { echo "$as_me:$LINENO: result: $ac_res" >&5
23741 echo "${ECHO_T}$ac_res" >&6; }
23742 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
23743
23744 cat >>confdefs.h <<\_ACEOF
23745 #define HAVE_SET_ALLOWABLE_ENCTYPES 1
23746 _ACEOF
23747
23748 fi
23749
23750   as_ac_Lib=`echo "ac_cv_lib_$gssapi_lib''_gss_krb5_ccache_name" | $as_tr_sh`
23751 { echo "$as_me:$LINENO: checking for gss_krb5_ccache_name in -l$gssapi_lib" >&5
23752 echo $ECHO_N "checking for gss_krb5_ccache_name in -l$gssapi_lib... $ECHO_C" >&6; }
23753 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
23754   echo $ECHO_N "(cached) $ECHO_C" >&6
23755 else
23756   ac_check_lib_save_LIBS=$LIBS
23757 LIBS="-l$gssapi_lib $KRBLIBS $LIBS"
23758 cat >conftest.$ac_ext <<_ACEOF
23759 /* confdefs.h.  */
23760 _ACEOF
23761 cat confdefs.h >>conftest.$ac_ext
23762 cat >>conftest.$ac_ext <<_ACEOF
23763 /* end confdefs.h.  */
23764
23765 /* Override any GCC internal prototype to avoid an error.
23766    Use char because int might match the return type of a GCC
23767    builtin and then its argument prototype would still apply.  */
23768 #ifdef __cplusplus
23769 extern "C"
23770 #endif
23771 char gss_krb5_ccache_name ();
23772 int
23773 main ()
23774 {
23775 return gss_krb5_ccache_name ();
23776   ;
23777   return 0;
23778 }
23779 _ACEOF
23780 rm -f conftest.$ac_objext conftest$ac_exeext
23781 if { (ac_try="$ac_link"
23782 case "(($ac_try" in
23783   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23784   *) ac_try_echo=$ac_try;;
23785 esac
23786 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23787   (eval "$ac_link") 2>conftest.er1
23788   ac_status=$?
23789   grep -v '^ *+' conftest.er1 >conftest.err
23790   rm -f conftest.er1
23791   cat conftest.err >&5
23792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23793   (exit $ac_status); } && {
23794          test -z "$ac_c_werror_flag" ||
23795          test ! -s conftest.err
23796        } && test -s conftest$ac_exeext &&
23797        $as_test_x conftest$ac_exeext; then
23798   eval "$as_ac_Lib=yes"
23799 else
23800   echo "$as_me: failed program was:" >&5
23801 sed 's/^/| /' conftest.$ac_ext >&5
23802
23803         eval "$as_ac_Lib=no"
23804 fi
23805
23806 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23807       conftest$ac_exeext conftest.$ac_ext
23808 LIBS=$ac_check_lib_save_LIBS
23809 fi
23810 ac_res=`eval echo '${'$as_ac_Lib'}'`
23811                { echo "$as_me:$LINENO: result: $ac_res" >&5
23812 echo "${ECHO_T}$ac_res" >&6; }
23813 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
23814
23815 cat >>confdefs.h <<\_ACEOF
23816 #define HAVE_GSS_KRB5_CCACHE_NAME 1
23817 _ACEOF
23818
23819 fi
23820
23821
23822     as_ac_Lib=`echo "ac_cv_lib_$gssapi_lib''_krb5_get_error_message" | $as_tr_sh`
23823 { echo "$as_me:$LINENO: checking for krb5_get_error_message in -l$gssapi_lib" >&5
23824 echo $ECHO_N "checking for krb5_get_error_message in -l$gssapi_lib... $ECHO_C" >&6; }
23825 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
23826   echo $ECHO_N "(cached) $ECHO_C" >&6
23827 else
23828   ac_check_lib_save_LIBS=$LIBS
23829 LIBS="-l$gssapi_lib $KRBLIBS $LIBS"
23830 cat >conftest.$ac_ext <<_ACEOF
23831 /* confdefs.h.  */
23832 _ACEOF
23833 cat confdefs.h >>conftest.$ac_ext
23834 cat >>conftest.$ac_ext <<_ACEOF
23835 /* end confdefs.h.  */
23836
23837 /* Override any GCC internal prototype to avoid an error.
23838    Use char because int might match the return type of a GCC
23839    builtin and then its argument prototype would still apply.  */
23840 #ifdef __cplusplus
23841 extern "C"
23842 #endif
23843 char krb5_get_error_message ();
23844 int
23845 main ()
23846 {
23847 return krb5_get_error_message ();
23848   ;
23849   return 0;
23850 }
23851 _ACEOF
23852 rm -f conftest.$ac_objext conftest$ac_exeext
23853 if { (ac_try="$ac_link"
23854 case "(($ac_try" in
23855   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23856   *) ac_try_echo=$ac_try;;
23857 esac
23858 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23859   (eval "$ac_link") 2>conftest.er1
23860   ac_status=$?
23861   grep -v '^ *+' conftest.er1 >conftest.err
23862   rm -f conftest.er1
23863   cat conftest.err >&5
23864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23865   (exit $ac_status); } && {
23866          test -z "$ac_c_werror_flag" ||
23867          test ! -s conftest.err
23868        } && test -s conftest$ac_exeext &&
23869        $as_test_x conftest$ac_exeext; then
23870   eval "$as_ac_Lib=yes"
23871 else
23872   echo "$as_me: failed program was:" >&5
23873 sed 's/^/| /' conftest.$ac_ext >&5
23874
23875         eval "$as_ac_Lib=no"
23876 fi
23877
23878 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23879       conftest$ac_exeext conftest.$ac_ext
23880 LIBS=$ac_check_lib_save_LIBS
23881 fi
23882 ac_res=`eval echo '${'$as_ac_Lib'}'`
23883                { echo "$as_me:$LINENO: result: $ac_res" >&5
23884 echo "${ECHO_T}$ac_res" >&6; }
23885 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
23886
23887 cat >>confdefs.h <<\_ACEOF
23888 #define HAVE_KRB5_GET_ERROR_MESSAGE 1
23889 _ACEOF
23890
23891 fi
23892
23893
23894     as_ac_Lib=`echo "ac_cv_lib_$gssapi_lib''_krb5_get_init_creds_opt_set_addressless" | $as_tr_sh`
23895 { echo "$as_me:$LINENO: checking for krb5_get_init_creds_opt_set_addressless in -l$gssapi_lib" >&5
23896 echo $ECHO_N "checking for krb5_get_init_creds_opt_set_addressless in -l$gssapi_lib... $ECHO_C" >&6; }
23897 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
23898   echo $ECHO_N "(cached) $ECHO_C" >&6
23899 else
23900   ac_check_lib_save_LIBS=$LIBS
23901 LIBS="-l$gssapi_lib $KRBLIBS $LIBS"
23902 cat >conftest.$ac_ext <<_ACEOF
23903 /* confdefs.h.  */
23904 _ACEOF
23905 cat confdefs.h >>conftest.$ac_ext
23906 cat >>conftest.$ac_ext <<_ACEOF
23907 /* end confdefs.h.  */
23908
23909 /* Override any GCC internal prototype to avoid an error.
23910    Use char because int might match the return type of a GCC
23911    builtin and then its argument prototype would still apply.  */
23912 #ifdef __cplusplus
23913 extern "C"
23914 #endif
23915 char krb5_get_init_creds_opt_set_addressless ();
23916 int
23917 main ()
23918 {
23919 return krb5_get_init_creds_opt_set_addressless ();
23920   ;
23921   return 0;
23922 }
23923 _ACEOF
23924 rm -f conftest.$ac_objext conftest$ac_exeext
23925 if { (ac_try="$ac_link"
23926 case "(($ac_try" in
23927   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23928   *) ac_try_echo=$ac_try;;
23929 esac
23930 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23931   (eval "$ac_link") 2>conftest.er1
23932   ac_status=$?
23933   grep -v '^ *+' conftest.er1 >conftest.err
23934   rm -f conftest.er1
23935   cat conftest.err >&5
23936   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23937   (exit $ac_status); } && {
23938          test -z "$ac_c_werror_flag" ||
23939          test ! -s conftest.err
23940        } && test -s conftest$ac_exeext &&
23941        $as_test_x conftest$ac_exeext; then
23942   eval "$as_ac_Lib=yes"
23943 else
23944   echo "$as_me: failed program was:" >&5
23945 sed 's/^/| /' conftest.$ac_ext >&5
23946
23947         eval "$as_ac_Lib=no"
23948 fi
23949
23950 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23951       conftest$ac_exeext conftest.$ac_ext
23952 LIBS=$ac_check_lib_save_LIBS
23953 fi
23954 ac_res=`eval echo '${'$as_ac_Lib'}'`
23955                { echo "$as_me:$LINENO: result: $ac_res" >&5
23956 echo "${ECHO_T}$ac_res" >&6; }
23957 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
23958
23959 cat >>confdefs.h <<\_ACEOF
23960 #define HAVE_KRB5_GET_INIT_CREDS_OPT_SET_ADDRESSLESS 1
23961 _ACEOF
23962
23963 fi
23964
23965
23966     if test "x$krb5_with" != "x" -a "$krb5_with" != "$KRBDIR"; then
23967     { echo "$as_me:$LINENO: WARNING: Using $KRBDIR instead of requested value of $krb5_with for Kerberos!" >&5
23968 echo "$as_me: WARNING: Using $KRBDIR instead of requested value of $krb5_with for Kerberos!" >&2;}
23969   fi
23970
23971
23972
23973
23974
23975
23976
23977
23978
23979       { echo "$as_me:$LINENO: checking for authgss_create_default in -lrpcsecgss" >&5
23980 echo $ECHO_N "checking for authgss_create_default in -lrpcsecgss... $ECHO_C" >&6; }
23981 if test "${ac_cv_lib_rpcsecgss_authgss_create_default+set}" = set; then
23982   echo $ECHO_N "(cached) $ECHO_C" >&6
23983 else
23984   ac_check_lib_save_LIBS=$LIBS
23985 LIBS="-lrpcsecgss -lgssglue -ldl $LIBS"
23986 cat >conftest.$ac_ext <<_ACEOF
23987 /* confdefs.h.  */
23988 _ACEOF
23989 cat confdefs.h >>conftest.$ac_ext
23990 cat >>conftest.$ac_ext <<_ACEOF
23991 /* end confdefs.h.  */
23992
23993 /* Override any GCC internal prototype to avoid an error.
23994    Use char because int might match the return type of a GCC
23995    builtin and then its argument prototype would still apply.  */
23996 #ifdef __cplusplus
23997 extern "C"
23998 #endif
23999 char authgss_create_default ();
24000 int
24001 main ()
24002 {
24003 return authgss_create_default ();
24004   ;
24005   return 0;
24006 }
24007 _ACEOF
24008 rm -f conftest.$ac_objext conftest$ac_exeext
24009 if { (ac_try="$ac_link"
24010 case "(($ac_try" in
24011   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24012   *) ac_try_echo=$ac_try;;
24013 esac
24014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24015   (eval "$ac_link") 2>conftest.er1
24016   ac_status=$?
24017   grep -v '^ *+' conftest.er1 >conftest.err
24018   rm -f conftest.er1
24019   cat conftest.err >&5
24020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24021   (exit $ac_status); } && {
24022          test -z "$ac_c_werror_flag" ||
24023          test ! -s conftest.err
24024        } && test -s conftest$ac_exeext &&
24025        $as_test_x conftest$ac_exeext; then
24026   ac_cv_lib_rpcsecgss_authgss_create_default=yes
24027 else
24028   echo "$as_me: failed program was:" >&5
24029 sed 's/^/| /' conftest.$ac_ext >&5
24030
24031         ac_cv_lib_rpcsecgss_authgss_create_default=no
24032 fi
24033
24034 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24035       conftest$ac_exeext conftest.$ac_ext
24036 LIBS=$ac_check_lib_save_LIBS
24037 fi
24038 { echo "$as_me:$LINENO: result: $ac_cv_lib_rpcsecgss_authgss_create_default" >&5
24039 echo "${ECHO_T}$ac_cv_lib_rpcsecgss_authgss_create_default" >&6; }
24040 if test $ac_cv_lib_rpcsecgss_authgss_create_default = yes; then
24041   librpcsecgss=1
24042 else
24043   { { echo "$as_me:$LINENO: error: librpcsecgss needed for nfsv4 support" >&5
24044 echo "$as_me: error: librpcsecgss needed for nfsv4 support" >&2;}
24045    { (exit 1); exit 1; }; }
24046 fi
24047
24048   { echo "$as_me:$LINENO: checking for authgss_set_debug_level in -lrpcsecgss" >&5
24049 echo $ECHO_N "checking for authgss_set_debug_level in -lrpcsecgss... $ECHO_C" >&6; }
24050 if test "${ac_cv_lib_rpcsecgss_authgss_set_debug_level+set}" = set; then
24051   echo $ECHO_N "(cached) $ECHO_C" >&6
24052 else
24053   ac_check_lib_save_LIBS=$LIBS
24054 LIBS="-lrpcsecgss -lgssglue -ldl $LIBS"
24055 cat >conftest.$ac_ext <<_ACEOF
24056 /* confdefs.h.  */
24057 _ACEOF
24058 cat confdefs.h >>conftest.$ac_ext
24059 cat >>conftest.$ac_ext <<_ACEOF
24060 /* end confdefs.h.  */
24061
24062 /* Override any GCC internal prototype to avoid an error.
24063    Use char because int might match the return type of a GCC
24064    builtin and then its argument prototype would still apply.  */
24065 #ifdef __cplusplus
24066 extern "C"
24067 #endif
24068 char authgss_set_debug_level ();
24069 int
24070 main ()
24071 {
24072 return authgss_set_debug_level ();
24073   ;
24074   return 0;
24075 }
24076 _ACEOF
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_lib_rpcsecgss_authgss_set_debug_level=yes
24096 else
24097   echo "$as_me: failed program was:" >&5
24098 sed 's/^/| /' conftest.$ac_ext >&5
24099
24100         ac_cv_lib_rpcsecgss_authgss_set_debug_level=no
24101 fi
24102
24103 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24104       conftest$ac_exeext conftest.$ac_ext
24105 LIBS=$ac_check_lib_save_LIBS
24106 fi
24107 { echo "$as_me:$LINENO: result: $ac_cv_lib_rpcsecgss_authgss_set_debug_level" >&5
24108 echo "${ECHO_T}$ac_cv_lib_rpcsecgss_authgss_set_debug_level" >&6; }
24109 if test $ac_cv_lib_rpcsecgss_authgss_set_debug_level = yes; then
24110
24111 cat >>confdefs.h <<\_ACEOF
24112 #define HAVE_AUTHGSS_SET_DEBUG_LEVEL 1
24113 _ACEOF
24114
24115 fi
24116
24117
24118 fi
24119
24120
24121
24122
24123
24124
24125
24126
24127
24128
24129
24130
24131
24132
24133
24134
24135
24136
24137
24138
24139
24140
24141
24142
24143 for ac_header in arpa/inet.h fcntl.h libintl.h limits.h \
24144                  malloc.h memory.h netdb.h netinet/in.h paths.h \
24145                  stdlib.h string.h sys/file.h sys/ioctl.h sys/mount.h \
24146                  sys/param.h sys/socket.h sys/time.h sys/vfs.h \
24147                  syslog.h unistd.h com_err.h et/com_err.h \
24148                  ifaddrs.h
24149 do
24150 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24151 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24152   { echo "$as_me:$LINENO: checking for $ac_header" >&5
24153 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24154 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24155   echo $ECHO_N "(cached) $ECHO_C" >&6
24156 fi
24157 ac_res=`eval echo '${'$as_ac_Header'}'`
24158                { echo "$as_me:$LINENO: result: $ac_res" >&5
24159 echo "${ECHO_T}$ac_res" >&6; }
24160 else
24161   # Is the header compilable?
24162 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
24163 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
24164 cat >conftest.$ac_ext <<_ACEOF
24165 /* confdefs.h.  */
24166 _ACEOF
24167 cat confdefs.h >>conftest.$ac_ext
24168 cat >>conftest.$ac_ext <<_ACEOF
24169 /* end confdefs.h.  */
24170 $ac_includes_default
24171 #include <$ac_header>
24172 _ACEOF
24173 rm -f conftest.$ac_objext
24174 if { (ac_try="$ac_compile"
24175 case "(($ac_try" in
24176   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24177   *) ac_try_echo=$ac_try;;
24178 esac
24179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24180   (eval "$ac_compile") 2>conftest.er1
24181   ac_status=$?
24182   grep -v '^ *+' conftest.er1 >conftest.err
24183   rm -f conftest.er1
24184   cat conftest.err >&5
24185   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24186   (exit $ac_status); } && {
24187          test -z "$ac_c_werror_flag" ||
24188          test ! -s conftest.err
24189        } && test -s conftest.$ac_objext; then
24190   ac_header_compiler=yes
24191 else
24192   echo "$as_me: failed program was:" >&5
24193 sed 's/^/| /' conftest.$ac_ext >&5
24194
24195         ac_header_compiler=no
24196 fi
24197
24198 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24199 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24200 echo "${ECHO_T}$ac_header_compiler" >&6; }
24201
24202 # Is the header present?
24203 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
24204 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
24205 cat >conftest.$ac_ext <<_ACEOF
24206 /* confdefs.h.  */
24207 _ACEOF
24208 cat confdefs.h >>conftest.$ac_ext
24209 cat >>conftest.$ac_ext <<_ACEOF
24210 /* end confdefs.h.  */
24211 #include <$ac_header>
24212 _ACEOF
24213 if { (ac_try="$ac_cpp conftest.$ac_ext"
24214 case "(($ac_try" in
24215   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24216   *) ac_try_echo=$ac_try;;
24217 esac
24218 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24219   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24220   ac_status=$?
24221   grep -v '^ *+' conftest.er1 >conftest.err
24222   rm -f conftest.er1
24223   cat conftest.err >&5
24224   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24225   (exit $ac_status); } >/dev/null && {
24226          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24227          test ! -s conftest.err
24228        }; then
24229   ac_header_preproc=yes
24230 else
24231   echo "$as_me: failed program was:" >&5
24232 sed 's/^/| /' conftest.$ac_ext >&5
24233
24234   ac_header_preproc=no
24235 fi
24236
24237 rm -f conftest.err conftest.$ac_ext
24238 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24239 echo "${ECHO_T}$ac_header_preproc" >&6; }
24240
24241 # So?  What about this header?
24242 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24243   yes:no: )
24244     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24245 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24246     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24247 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24248     ac_header_preproc=yes
24249     ;;
24250   no:yes:* )
24251     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24252 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24253     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
24254 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
24255     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24256 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24257     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
24258 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
24259     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24260 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24261     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24262 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24263     ( cat <<\_ASBOX
24264 ## ---------------------------------------- ##
24265 ## Report this to linux-nfs@vger.kernel.org ##
24266 ## ---------------------------------------- ##
24267 _ASBOX
24268      ) | sed "s/^/$as_me: WARNING:     /" >&2
24269     ;;
24270 esac
24271 { echo "$as_me:$LINENO: checking for $ac_header" >&5
24272 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24273 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24274   echo $ECHO_N "(cached) $ECHO_C" >&6
24275 else
24276   eval "$as_ac_Header=\$ac_header_preproc"
24277 fi
24278 ac_res=`eval echo '${'$as_ac_Header'}'`
24279                { echo "$as_me:$LINENO: result: $ac_res" >&5
24280 echo "${ECHO_T}$ac_res" >&6; }
24281
24282 fi
24283 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24284   cat >>confdefs.h <<_ACEOF
24285 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24286 _ACEOF
24287
24288 fi
24289
24290 done
24291
24292
24293 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
24294 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
24295 if test "${ac_cv_c_const+set}" = set; then
24296   echo $ECHO_N "(cached) $ECHO_C" >&6
24297 else
24298   cat >conftest.$ac_ext <<_ACEOF
24299 /* confdefs.h.  */
24300 _ACEOF
24301 cat confdefs.h >>conftest.$ac_ext
24302 cat >>conftest.$ac_ext <<_ACEOF
24303 /* end confdefs.h.  */
24304
24305 int
24306 main ()
24307 {
24308 /* FIXME: Include the comments suggested by Paul. */
24309 #ifndef __cplusplus
24310   /* Ultrix mips cc rejects this.  */
24311   typedef int charset[2];
24312   const charset cs;
24313   /* SunOS 4.1.1 cc rejects this.  */
24314   char const *const *pcpcc;
24315   char **ppc;
24316   /* NEC SVR4.0.2 mips cc rejects this.  */
24317   struct point {int x, y;};
24318   static struct point const zero = {0,0};
24319   /* AIX XL C 1.02.0.0 rejects this.
24320      It does not let you subtract one const X* pointer from another in
24321      an arm of an if-expression whose if-part is not a constant
24322      expression */
24323   const char *g = "string";
24324   pcpcc = &g + (g ? g-g : 0);
24325   /* HPUX 7.0 cc rejects these. */
24326   ++pcpcc;
24327   ppc = (char**) pcpcc;
24328   pcpcc = (char const *const *) ppc;
24329   { /* SCO 3.2v4 cc rejects this.  */
24330     char *t;
24331     char const *s = 0 ? (char *) 0 : (char const *) 0;
24332
24333     *t++ = 0;
24334     if (s) return 0;
24335   }
24336   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
24337     int x[] = {25, 17};
24338     const int *foo = &x[0];
24339     ++foo;
24340   }
24341   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
24342     typedef const int *iptr;
24343     iptr p = 0;
24344     ++p;
24345   }
24346   { /* AIX XL C 1.02.0.0 rejects this saying
24347        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
24348     struct s { int j; const int *ap[3]; };
24349     struct s *b; b->j = 5;
24350   }
24351   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
24352     const int foo = 10;
24353     if (!foo) return 0;
24354   }
24355   return !cs[0] && !zero.x;
24356 #endif
24357
24358   ;
24359   return 0;
24360 }
24361 _ACEOF
24362 rm -f conftest.$ac_objext
24363 if { (ac_try="$ac_compile"
24364 case "(($ac_try" in
24365   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24366   *) ac_try_echo=$ac_try;;
24367 esac
24368 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24369   (eval "$ac_compile") 2>conftest.er1
24370   ac_status=$?
24371   grep -v '^ *+' conftest.er1 >conftest.err
24372   rm -f conftest.er1
24373   cat conftest.err >&5
24374   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24375   (exit $ac_status); } && {
24376          test -z "$ac_c_werror_flag" ||
24377          test ! -s conftest.err
24378        } && test -s conftest.$ac_objext; then
24379   ac_cv_c_const=yes
24380 else
24381   echo "$as_me: failed program was:" >&5
24382 sed 's/^/| /' conftest.$ac_ext >&5
24383
24384         ac_cv_c_const=no
24385 fi
24386
24387 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24388 fi
24389 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
24390 echo "${ECHO_T}$ac_cv_c_const" >&6; }
24391 if test $ac_cv_c_const = no; then
24392
24393 cat >>confdefs.h <<\_ACEOF
24394 #define const
24395 _ACEOF
24396
24397 fi
24398
24399 { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
24400 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
24401 if test "${ac_cv_type_uid_t+set}" = set; then
24402   echo $ECHO_N "(cached) $ECHO_C" >&6
24403 else
24404   cat >conftest.$ac_ext <<_ACEOF
24405 /* confdefs.h.  */
24406 _ACEOF
24407 cat confdefs.h >>conftest.$ac_ext
24408 cat >>conftest.$ac_ext <<_ACEOF
24409 /* end confdefs.h.  */
24410 #include <sys/types.h>
24411
24412 _ACEOF
24413 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24414   $EGREP "uid_t" >/dev/null 2>&1; then
24415   ac_cv_type_uid_t=yes
24416 else
24417   ac_cv_type_uid_t=no
24418 fi
24419 rm -f conftest*
24420
24421 fi
24422 { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
24423 echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
24424 if test $ac_cv_type_uid_t = no; then
24425
24426 cat >>confdefs.h <<\_ACEOF
24427 #define uid_t int
24428 _ACEOF
24429
24430
24431 cat >>confdefs.h <<\_ACEOF
24432 #define gid_t int
24433 _ACEOF
24434
24435 fi
24436
24437 { echo "$as_me:$LINENO: checking for inline" >&5
24438 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
24439 if test "${ac_cv_c_inline+set}" = set; then
24440   echo $ECHO_N "(cached) $ECHO_C" >&6
24441 else
24442   ac_cv_c_inline=no
24443 for ac_kw in inline __inline__ __inline; do
24444   cat >conftest.$ac_ext <<_ACEOF
24445 /* confdefs.h.  */
24446 _ACEOF
24447 cat confdefs.h >>conftest.$ac_ext
24448 cat >>conftest.$ac_ext <<_ACEOF
24449 /* end confdefs.h.  */
24450 #ifndef __cplusplus
24451 typedef int foo_t;
24452 static $ac_kw foo_t static_foo () {return 0; }
24453 $ac_kw foo_t foo () {return 0; }
24454 #endif
24455
24456 _ACEOF
24457 rm -f conftest.$ac_objext
24458 if { (ac_try="$ac_compile"
24459 case "(($ac_try" in
24460   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24461   *) ac_try_echo=$ac_try;;
24462 esac
24463 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24464   (eval "$ac_compile") 2>conftest.er1
24465   ac_status=$?
24466   grep -v '^ *+' conftest.er1 >conftest.err
24467   rm -f conftest.er1
24468   cat conftest.err >&5
24469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24470   (exit $ac_status); } && {
24471          test -z "$ac_c_werror_flag" ||
24472          test ! -s conftest.err
24473        } && test -s conftest.$ac_objext; then
24474   ac_cv_c_inline=$ac_kw
24475 else
24476   echo "$as_me: failed program was:" >&5
24477 sed 's/^/| /' conftest.$ac_ext >&5
24478
24479
24480 fi
24481
24482 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24483   test "$ac_cv_c_inline" != no && break
24484 done
24485
24486 fi
24487 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
24488 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
24489
24490
24491 case $ac_cv_c_inline in
24492   inline | yes) ;;
24493   *)
24494     case $ac_cv_c_inline in
24495       no) ac_val=;;
24496       *) ac_val=$ac_cv_c_inline;;
24497     esac
24498     cat >>confdefs.h <<_ACEOF
24499 #ifndef __cplusplus
24500 #define inline $ac_val
24501 #endif
24502 _ACEOF
24503     ;;
24504 esac
24505
24506 { echo "$as_me:$LINENO: checking for off_t" >&5
24507 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
24508 if test "${ac_cv_type_off_t+set}" = set; then
24509   echo $ECHO_N "(cached) $ECHO_C" >&6
24510 else
24511   cat >conftest.$ac_ext <<_ACEOF
24512 /* confdefs.h.  */
24513 _ACEOF
24514 cat confdefs.h >>conftest.$ac_ext
24515 cat >>conftest.$ac_ext <<_ACEOF
24516 /* end confdefs.h.  */
24517 $ac_includes_default
24518 typedef off_t ac__type_new_;
24519 int
24520 main ()
24521 {
24522 if ((ac__type_new_ *) 0)
24523   return 0;
24524 if (sizeof (ac__type_new_))
24525   return 0;
24526   ;
24527   return 0;
24528 }
24529 _ACEOF
24530 rm -f conftest.$ac_objext
24531 if { (ac_try="$ac_compile"
24532 case "(($ac_try" in
24533   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24534   *) ac_try_echo=$ac_try;;
24535 esac
24536 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24537   (eval "$ac_compile") 2>conftest.er1
24538   ac_status=$?
24539   grep -v '^ *+' conftest.er1 >conftest.err
24540   rm -f conftest.er1
24541   cat conftest.err >&5
24542   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24543   (exit $ac_status); } && {
24544          test -z "$ac_c_werror_flag" ||
24545          test ! -s conftest.err
24546        } && test -s conftest.$ac_objext; then
24547   ac_cv_type_off_t=yes
24548 else
24549   echo "$as_me: failed program was:" >&5
24550 sed 's/^/| /' conftest.$ac_ext >&5
24551
24552         ac_cv_type_off_t=no
24553 fi
24554
24555 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24556 fi
24557 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
24558 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
24559 if test $ac_cv_type_off_t = yes; then
24560   :
24561 else
24562
24563 cat >>confdefs.h <<_ACEOF
24564 #define off_t long int
24565 _ACEOF
24566
24567 fi
24568
24569 { echo "$as_me:$LINENO: checking for pid_t" >&5
24570 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
24571 if test "${ac_cv_type_pid_t+set}" = set; then
24572   echo $ECHO_N "(cached) $ECHO_C" >&6
24573 else
24574   cat >conftest.$ac_ext <<_ACEOF
24575 /* confdefs.h.  */
24576 _ACEOF
24577 cat confdefs.h >>conftest.$ac_ext
24578 cat >>conftest.$ac_ext <<_ACEOF
24579 /* end confdefs.h.  */
24580 $ac_includes_default
24581 typedef pid_t ac__type_new_;
24582 int
24583 main ()
24584 {
24585 if ((ac__type_new_ *) 0)
24586   return 0;
24587 if (sizeof (ac__type_new_))
24588   return 0;
24589   ;
24590   return 0;
24591 }
24592 _ACEOF
24593 rm -f conftest.$ac_objext
24594 if { (ac_try="$ac_compile"
24595 case "(($ac_try" in
24596   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24597   *) ac_try_echo=$ac_try;;
24598 esac
24599 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24600   (eval "$ac_compile") 2>conftest.er1
24601   ac_status=$?
24602   grep -v '^ *+' conftest.er1 >conftest.err
24603   rm -f conftest.er1
24604   cat conftest.err >&5
24605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24606   (exit $ac_status); } && {
24607          test -z "$ac_c_werror_flag" ||
24608          test ! -s conftest.err
24609        } && test -s conftest.$ac_objext; then
24610   ac_cv_type_pid_t=yes
24611 else
24612   echo "$as_me: failed program was:" >&5
24613 sed 's/^/| /' conftest.$ac_ext >&5
24614
24615         ac_cv_type_pid_t=no
24616 fi
24617
24618 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24619 fi
24620 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
24621 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
24622 if test $ac_cv_type_pid_t = yes; then
24623   :
24624 else
24625
24626 cat >>confdefs.h <<_ACEOF
24627 #define pid_t int
24628 _ACEOF
24629
24630 fi
24631
24632 { echo "$as_me:$LINENO: checking for size_t" >&5
24633 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
24634 if test "${ac_cv_type_size_t+set}" = set; then
24635   echo $ECHO_N "(cached) $ECHO_C" >&6
24636 else
24637   cat >conftest.$ac_ext <<_ACEOF
24638 /* confdefs.h.  */
24639 _ACEOF
24640 cat confdefs.h >>conftest.$ac_ext
24641 cat >>conftest.$ac_ext <<_ACEOF
24642 /* end confdefs.h.  */
24643 $ac_includes_default
24644 typedef size_t ac__type_new_;
24645 int
24646 main ()
24647 {
24648 if ((ac__type_new_ *) 0)
24649   return 0;
24650 if (sizeof (ac__type_new_))
24651   return 0;
24652   ;
24653   return 0;
24654 }
24655 _ACEOF
24656 rm -f conftest.$ac_objext
24657 if { (ac_try="$ac_compile"
24658 case "(($ac_try" in
24659   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24660   *) ac_try_echo=$ac_try;;
24661 esac
24662 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24663   (eval "$ac_compile") 2>conftest.er1
24664   ac_status=$?
24665   grep -v '^ *+' conftest.er1 >conftest.err
24666   rm -f conftest.er1
24667   cat conftest.err >&5
24668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24669   (exit $ac_status); } && {
24670          test -z "$ac_c_werror_flag" ||
24671          test ! -s conftest.err
24672        } && test -s conftest.$ac_objext; then
24673   ac_cv_type_size_t=yes
24674 else
24675   echo "$as_me: failed program was:" >&5
24676 sed 's/^/| /' conftest.$ac_ext >&5
24677
24678         ac_cv_type_size_t=no
24679 fi
24680
24681 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24682 fi
24683 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
24684 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
24685 if test $ac_cv_type_size_t = yes; then
24686   :
24687 else
24688
24689 cat >>confdefs.h <<_ACEOF
24690 #define size_t unsigned int
24691 _ACEOF
24692
24693 fi
24694
24695 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
24696 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
24697 if test "${ac_cv_header_time+set}" = set; then
24698   echo $ECHO_N "(cached) $ECHO_C" >&6
24699 else
24700   cat >conftest.$ac_ext <<_ACEOF
24701 /* confdefs.h.  */
24702 _ACEOF
24703 cat confdefs.h >>conftest.$ac_ext
24704 cat >>conftest.$ac_ext <<_ACEOF
24705 /* end confdefs.h.  */
24706 #include <sys/types.h>
24707 #include <sys/time.h>
24708 #include <time.h>
24709
24710 int
24711 main ()
24712 {
24713 if ((struct tm *) 0)
24714 return 0;
24715   ;
24716   return 0;
24717 }
24718 _ACEOF
24719 rm -f conftest.$ac_objext
24720 if { (ac_try="$ac_compile"
24721 case "(($ac_try" in
24722   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24723   *) ac_try_echo=$ac_try;;
24724 esac
24725 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24726   (eval "$ac_compile") 2>conftest.er1
24727   ac_status=$?
24728   grep -v '^ *+' conftest.er1 >conftest.err
24729   rm -f conftest.er1
24730   cat conftest.err >&5
24731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24732   (exit $ac_status); } && {
24733          test -z "$ac_c_werror_flag" ||
24734          test ! -s conftest.err
24735        } && test -s conftest.$ac_objext; then
24736   ac_cv_header_time=yes
24737 else
24738   echo "$as_me: failed program was:" >&5
24739 sed 's/^/| /' conftest.$ac_ext >&5
24740
24741         ac_cv_header_time=no
24742 fi
24743
24744 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24745 fi
24746 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
24747 echo "${ECHO_T}$ac_cv_header_time" >&6; }
24748 if test $ac_cv_header_time = yes; then
24749
24750 cat >>confdefs.h <<\_ACEOF
24751 #define TIME_WITH_SYS_TIME 1
24752 _ACEOF
24753
24754 fi
24755
24756 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
24757 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
24758 if test "${ac_cv_struct_tm+set}" = set; then
24759   echo $ECHO_N "(cached) $ECHO_C" >&6
24760 else
24761   cat >conftest.$ac_ext <<_ACEOF
24762 /* confdefs.h.  */
24763 _ACEOF
24764 cat confdefs.h >>conftest.$ac_ext
24765 cat >>conftest.$ac_ext <<_ACEOF
24766 /* end confdefs.h.  */
24767 #include <sys/types.h>
24768 #include <time.h>
24769
24770 int
24771 main ()
24772 {
24773 struct tm tm;
24774                                      int *p = &tm.tm_sec;
24775                                      return !p;
24776   ;
24777   return 0;
24778 }
24779 _ACEOF
24780 rm -f conftest.$ac_objext
24781 if { (ac_try="$ac_compile"
24782 case "(($ac_try" in
24783   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24784   *) ac_try_echo=$ac_try;;
24785 esac
24786 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24787   (eval "$ac_compile") 2>conftest.er1
24788   ac_status=$?
24789   grep -v '^ *+' conftest.er1 >conftest.err
24790   rm -f conftest.er1
24791   cat conftest.err >&5
24792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24793   (exit $ac_status); } && {
24794          test -z "$ac_c_werror_flag" ||
24795          test ! -s conftest.err
24796        } && test -s conftest.$ac_objext; then
24797   ac_cv_struct_tm=time.h
24798 else
24799   echo "$as_me: failed program was:" >&5
24800 sed 's/^/| /' conftest.$ac_ext >&5
24801
24802         ac_cv_struct_tm=sys/time.h
24803 fi
24804
24805 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24806 fi
24807 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
24808 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
24809 if test $ac_cv_struct_tm = sys/time.h; then
24810
24811 cat >>confdefs.h <<\_ACEOF
24812 #define TM_IN_SYS_TIME 1
24813 _ACEOF
24814
24815 fi
24816
24817
24818 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
24819 # for constant arguments.  Useless!
24820 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
24821 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
24822 if test "${ac_cv_working_alloca_h+set}" = set; then
24823   echo $ECHO_N "(cached) $ECHO_C" >&6
24824 else
24825   cat >conftest.$ac_ext <<_ACEOF
24826 /* confdefs.h.  */
24827 _ACEOF
24828 cat confdefs.h >>conftest.$ac_ext
24829 cat >>conftest.$ac_ext <<_ACEOF
24830 /* end confdefs.h.  */
24831 #include <alloca.h>
24832 int
24833 main ()
24834 {
24835 char *p = (char *) alloca (2 * sizeof (int));
24836                           if (p) return 0;
24837   ;
24838   return 0;
24839 }
24840 _ACEOF
24841 rm -f conftest.$ac_objext conftest$ac_exeext
24842 if { (ac_try="$ac_link"
24843 case "(($ac_try" in
24844   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24845   *) ac_try_echo=$ac_try;;
24846 esac
24847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24848   (eval "$ac_link") 2>conftest.er1
24849   ac_status=$?
24850   grep -v '^ *+' conftest.er1 >conftest.err
24851   rm -f conftest.er1
24852   cat conftest.err >&5
24853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24854   (exit $ac_status); } && {
24855          test -z "$ac_c_werror_flag" ||
24856          test ! -s conftest.err
24857        } && test -s conftest$ac_exeext &&
24858        $as_test_x conftest$ac_exeext; then
24859   ac_cv_working_alloca_h=yes
24860 else
24861   echo "$as_me: failed program was:" >&5
24862 sed 's/^/| /' conftest.$ac_ext >&5
24863
24864         ac_cv_working_alloca_h=no
24865 fi
24866
24867 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24868       conftest$ac_exeext conftest.$ac_ext
24869 fi
24870 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
24871 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
24872 if test $ac_cv_working_alloca_h = yes; then
24873
24874 cat >>confdefs.h <<\_ACEOF
24875 #define HAVE_ALLOCA_H 1
24876 _ACEOF
24877
24878 fi
24879
24880 { echo "$as_me:$LINENO: checking for alloca" >&5
24881 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
24882 if test "${ac_cv_func_alloca_works+set}" = set; then
24883   echo $ECHO_N "(cached) $ECHO_C" >&6
24884 else
24885   cat >conftest.$ac_ext <<_ACEOF
24886 /* confdefs.h.  */
24887 _ACEOF
24888 cat confdefs.h >>conftest.$ac_ext
24889 cat >>conftest.$ac_ext <<_ACEOF
24890 /* end confdefs.h.  */
24891 #ifdef __GNUC__
24892 # define alloca __builtin_alloca
24893 #else
24894 # ifdef _MSC_VER
24895 #  include <malloc.h>
24896 #  define alloca _alloca
24897 # else
24898 #  ifdef HAVE_ALLOCA_H
24899 #   include <alloca.h>
24900 #  else
24901 #   ifdef _AIX
24902  #pragma alloca
24903 #   else
24904 #    ifndef alloca /* predefined by HP cc +Olibcalls */
24905 char *alloca ();
24906 #    endif
24907 #   endif
24908 #  endif
24909 # endif
24910 #endif
24911
24912 int
24913 main ()
24914 {
24915 char *p = (char *) alloca (1);
24916                                     if (p) return 0;
24917   ;
24918   return 0;
24919 }
24920 _ACEOF
24921 rm -f conftest.$ac_objext conftest$ac_exeext
24922 if { (ac_try="$ac_link"
24923 case "(($ac_try" in
24924   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24925   *) ac_try_echo=$ac_try;;
24926 esac
24927 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24928   (eval "$ac_link") 2>conftest.er1
24929   ac_status=$?
24930   grep -v '^ *+' conftest.er1 >conftest.err
24931   rm -f conftest.er1
24932   cat conftest.err >&5
24933   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24934   (exit $ac_status); } && {
24935          test -z "$ac_c_werror_flag" ||
24936          test ! -s conftest.err
24937        } && test -s conftest$ac_exeext &&
24938        $as_test_x conftest$ac_exeext; then
24939   ac_cv_func_alloca_works=yes
24940 else
24941   echo "$as_me: failed program was:" >&5
24942 sed 's/^/| /' conftest.$ac_ext >&5
24943
24944         ac_cv_func_alloca_works=no
24945 fi
24946
24947 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24948       conftest$ac_exeext conftest.$ac_ext
24949 fi
24950 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
24951 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
24952
24953 if test $ac_cv_func_alloca_works = yes; then
24954
24955 cat >>confdefs.h <<\_ACEOF
24956 #define HAVE_ALLOCA 1
24957 _ACEOF
24958
24959 else
24960   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
24961 # that cause trouble.  Some versions do not even contain alloca or
24962 # contain a buggy version.  If you still want to use their alloca,
24963 # use ar to extract alloca.o from them instead of compiling alloca.c.
24964
24965 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
24966
24967 cat >>confdefs.h <<\_ACEOF
24968 #define C_ALLOCA 1
24969 _ACEOF
24970
24971
24972 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
24973 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
24974 if test "${ac_cv_os_cray+set}" = set; then
24975   echo $ECHO_N "(cached) $ECHO_C" >&6
24976 else
24977   cat >conftest.$ac_ext <<_ACEOF
24978 /* confdefs.h.  */
24979 _ACEOF
24980 cat confdefs.h >>conftest.$ac_ext
24981 cat >>conftest.$ac_ext <<_ACEOF
24982 /* end confdefs.h.  */
24983 #if defined CRAY && ! defined CRAY2
24984 webecray
24985 #else
24986 wenotbecray
24987 #endif
24988
24989 _ACEOF
24990 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24991   $EGREP "webecray" >/dev/null 2>&1; then
24992   ac_cv_os_cray=yes
24993 else
24994   ac_cv_os_cray=no
24995 fi
24996 rm -f conftest*
24997
24998 fi
24999 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
25000 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
25001 if test $ac_cv_os_cray = yes; then
25002   for ac_func in _getb67 GETB67 getb67; do
25003     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25004 { echo "$as_me:$LINENO: checking for $ac_func" >&5
25005 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
25006 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
25007   echo $ECHO_N "(cached) $ECHO_C" >&6
25008 else
25009   cat >conftest.$ac_ext <<_ACEOF
25010 /* confdefs.h.  */
25011 _ACEOF
25012 cat confdefs.h >>conftest.$ac_ext
25013 cat >>conftest.$ac_ext <<_ACEOF
25014 /* end confdefs.h.  */
25015 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25016    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25017 #define $ac_func innocuous_$ac_func
25018
25019 /* System header to define __stub macros and hopefully few prototypes,
25020     which can conflict with char $ac_func (); below.
25021     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25022     <limits.h> exists even on freestanding compilers.  */
25023
25024 #ifdef __STDC__
25025 # include <limits.h>
25026 #else
25027 # include <assert.h>
25028 #endif
25029
25030 #undef $ac_func
25031
25032 /* Override any GCC internal prototype to avoid an error.
25033    Use char because int might match the return type of a GCC
25034    builtin and then its argument prototype would still apply.  */
25035 #ifdef __cplusplus
25036 extern "C"
25037 #endif
25038 char $ac_func ();
25039 /* The GNU C library defines this for functions which it implements
25040     to always fail with ENOSYS.  Some functions are actually named
25041     something starting with __ and the normal name is an alias.  */
25042 #if defined __stub_$ac_func || defined __stub___$ac_func
25043 choke me
25044 #endif
25045
25046 int
25047 main ()
25048 {
25049 return $ac_func ();
25050   ;
25051   return 0;
25052 }
25053 _ACEOF
25054 rm -f conftest.$ac_objext conftest$ac_exeext
25055 if { (ac_try="$ac_link"
25056 case "(($ac_try" in
25057   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25058   *) ac_try_echo=$ac_try;;
25059 esac
25060 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25061   (eval "$ac_link") 2>conftest.er1
25062   ac_status=$?
25063   grep -v '^ *+' conftest.er1 >conftest.err
25064   rm -f conftest.er1
25065   cat conftest.err >&5
25066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25067   (exit $ac_status); } && {
25068          test -z "$ac_c_werror_flag" ||
25069          test ! -s conftest.err
25070        } && test -s conftest$ac_exeext &&
25071        $as_test_x conftest$ac_exeext; then
25072   eval "$as_ac_var=yes"
25073 else
25074   echo "$as_me: failed program was:" >&5
25075 sed 's/^/| /' conftest.$ac_ext >&5
25076
25077         eval "$as_ac_var=no"
25078 fi
25079
25080 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25081       conftest$ac_exeext conftest.$ac_ext
25082 fi
25083 ac_res=`eval echo '${'$as_ac_var'}'`
25084                { echo "$as_me:$LINENO: result: $ac_res" >&5
25085 echo "${ECHO_T}$ac_res" >&6; }
25086 if test `eval echo '${'$as_ac_var'}'` = yes; then
25087
25088 cat >>confdefs.h <<_ACEOF
25089 #define CRAY_STACKSEG_END $ac_func
25090 _ACEOF
25091
25092     break
25093 fi
25094
25095   done
25096 fi
25097
25098 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
25099 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
25100 if test "${ac_cv_c_stack_direction+set}" = set; then
25101   echo $ECHO_N "(cached) $ECHO_C" >&6
25102 else
25103   if test "$cross_compiling" = yes; then
25104   ac_cv_c_stack_direction=0
25105 else
25106   cat >conftest.$ac_ext <<_ACEOF
25107 /* confdefs.h.  */
25108 _ACEOF
25109 cat confdefs.h >>conftest.$ac_ext
25110 cat >>conftest.$ac_ext <<_ACEOF
25111 /* end confdefs.h.  */
25112 $ac_includes_default
25113 int
25114 find_stack_direction ()
25115 {
25116   static char *addr = 0;
25117   auto char dummy;
25118   if (addr == 0)
25119     {
25120       addr = &dummy;
25121       return find_stack_direction ();
25122     }
25123   else
25124     return (&dummy > addr) ? 1 : -1;
25125 }
25126
25127 int
25128 main ()
25129 {
25130   return find_stack_direction () < 0;
25131 }
25132 _ACEOF
25133 rm -f conftest$ac_exeext
25134 if { (ac_try="$ac_link"
25135 case "(($ac_try" in
25136   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25137   *) ac_try_echo=$ac_try;;
25138 esac
25139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25140   (eval "$ac_link") 2>&5
25141   ac_status=$?
25142   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25143   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25144   { (case "(($ac_try" in
25145   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25146   *) ac_try_echo=$ac_try;;
25147 esac
25148 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25149   (eval "$ac_try") 2>&5
25150   ac_status=$?
25151   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25152   (exit $ac_status); }; }; then
25153   ac_cv_c_stack_direction=1
25154 else
25155   echo "$as_me: program exited with status $ac_status" >&5
25156 echo "$as_me: failed program was:" >&5
25157 sed 's/^/| /' conftest.$ac_ext >&5
25158
25159 ( exit $ac_status )
25160 ac_cv_c_stack_direction=-1
25161 fi
25162 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25163 fi
25164
25165
25166 fi
25167 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
25168 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
25169
25170 cat >>confdefs.h <<_ACEOF
25171 #define STACK_DIRECTION $ac_cv_c_stack_direction
25172 _ACEOF
25173
25174
25175 fi
25176
25177
25178
25179
25180
25181
25182 ac_header_dirent=no
25183 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
25184   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
25185 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
25186 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
25187 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25188   echo $ECHO_N "(cached) $ECHO_C" >&6
25189 else
25190   cat >conftest.$ac_ext <<_ACEOF
25191 /* confdefs.h.  */
25192 _ACEOF
25193 cat confdefs.h >>conftest.$ac_ext
25194 cat >>conftest.$ac_ext <<_ACEOF
25195 /* end confdefs.h.  */
25196 #include <sys/types.h>
25197 #include <$ac_hdr>
25198
25199 int
25200 main ()
25201 {
25202 if ((DIR *) 0)
25203 return 0;
25204   ;
25205   return 0;
25206 }
25207 _ACEOF
25208 rm -f conftest.$ac_objext
25209 if { (ac_try="$ac_compile"
25210 case "(($ac_try" in
25211   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25212   *) ac_try_echo=$ac_try;;
25213 esac
25214 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25215   (eval "$ac_compile") 2>conftest.er1
25216   ac_status=$?
25217   grep -v '^ *+' conftest.er1 >conftest.err
25218   rm -f conftest.er1
25219   cat conftest.err >&5
25220   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25221   (exit $ac_status); } && {
25222          test -z "$ac_c_werror_flag" ||
25223          test ! -s conftest.err
25224        } && test -s conftest.$ac_objext; then
25225   eval "$as_ac_Header=yes"
25226 else
25227   echo "$as_me: failed program was:" >&5
25228 sed 's/^/| /' conftest.$ac_ext >&5
25229
25230         eval "$as_ac_Header=no"
25231 fi
25232
25233 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25234 fi
25235 ac_res=`eval echo '${'$as_ac_Header'}'`
25236                { echo "$as_me:$LINENO: result: $ac_res" >&5
25237 echo "${ECHO_T}$ac_res" >&6; }
25238 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25239   cat >>confdefs.h <<_ACEOF
25240 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
25241 _ACEOF
25242
25243 ac_header_dirent=$ac_hdr; break
25244 fi
25245
25246 done
25247 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
25248 if test $ac_header_dirent = dirent.h; then
25249   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
25250 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
25251 if test "${ac_cv_search_opendir+set}" = set; then
25252   echo $ECHO_N "(cached) $ECHO_C" >&6
25253 else
25254   ac_func_search_save_LIBS=$LIBS
25255 cat >conftest.$ac_ext <<_ACEOF
25256 /* confdefs.h.  */
25257 _ACEOF
25258 cat confdefs.h >>conftest.$ac_ext
25259 cat >>conftest.$ac_ext <<_ACEOF
25260 /* end confdefs.h.  */
25261
25262 /* Override any GCC internal prototype to avoid an error.
25263    Use char because int might match the return type of a GCC
25264    builtin and then its argument prototype would still apply.  */
25265 #ifdef __cplusplus
25266 extern "C"
25267 #endif
25268 char opendir ();
25269 int
25270 main ()
25271 {
25272 return opendir ();
25273   ;
25274   return 0;
25275 }
25276 _ACEOF
25277 for ac_lib in '' dir; do
25278   if test -z "$ac_lib"; then
25279     ac_res="none required"
25280   else
25281     ac_res=-l$ac_lib
25282     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
25283   fi
25284   rm -f conftest.$ac_objext conftest$ac_exeext
25285 if { (ac_try="$ac_link"
25286 case "(($ac_try" in
25287   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25288   *) ac_try_echo=$ac_try;;
25289 esac
25290 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25291   (eval "$ac_link") 2>conftest.er1
25292   ac_status=$?
25293   grep -v '^ *+' conftest.er1 >conftest.err
25294   rm -f conftest.er1
25295   cat conftest.err >&5
25296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25297   (exit $ac_status); } && {
25298          test -z "$ac_c_werror_flag" ||
25299          test ! -s conftest.err
25300        } && test -s conftest$ac_exeext &&
25301        $as_test_x conftest$ac_exeext; then
25302   ac_cv_search_opendir=$ac_res
25303 else
25304   echo "$as_me: failed program was:" >&5
25305 sed 's/^/| /' conftest.$ac_ext >&5
25306
25307
25308 fi
25309
25310 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25311       conftest$ac_exeext
25312   if test "${ac_cv_search_opendir+set}" = set; then
25313   break
25314 fi
25315 done
25316 if test "${ac_cv_search_opendir+set}" = set; then
25317   :
25318 else
25319   ac_cv_search_opendir=no
25320 fi
25321 rm conftest.$ac_ext
25322 LIBS=$ac_func_search_save_LIBS
25323 fi
25324 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
25325 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
25326 ac_res=$ac_cv_search_opendir
25327 if test "$ac_res" != no; then
25328   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25329
25330 fi
25331
25332 else
25333   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
25334 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
25335 if test "${ac_cv_search_opendir+set}" = set; then
25336   echo $ECHO_N "(cached) $ECHO_C" >&6
25337 else
25338   ac_func_search_save_LIBS=$LIBS
25339 cat >conftest.$ac_ext <<_ACEOF
25340 /* confdefs.h.  */
25341 _ACEOF
25342 cat confdefs.h >>conftest.$ac_ext
25343 cat >>conftest.$ac_ext <<_ACEOF
25344 /* end confdefs.h.  */
25345
25346 /* Override any GCC internal prototype to avoid an error.
25347    Use char because int might match the return type of a GCC
25348    builtin and then its argument prototype would still apply.  */
25349 #ifdef __cplusplus
25350 extern "C"
25351 #endif
25352 char opendir ();
25353 int
25354 main ()
25355 {
25356 return opendir ();
25357   ;
25358   return 0;
25359 }
25360 _ACEOF
25361 for ac_lib in '' x; do
25362   if test -z "$ac_lib"; then
25363     ac_res="none required"
25364   else
25365     ac_res=-l$ac_lib
25366     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
25367   fi
25368   rm -f conftest.$ac_objext conftest$ac_exeext
25369 if { (ac_try="$ac_link"
25370 case "(($ac_try" in
25371   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25372   *) ac_try_echo=$ac_try;;
25373 esac
25374 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25375   (eval "$ac_link") 2>conftest.er1
25376   ac_status=$?
25377   grep -v '^ *+' conftest.er1 >conftest.err
25378   rm -f conftest.er1
25379   cat conftest.err >&5
25380   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25381   (exit $ac_status); } && {
25382          test -z "$ac_c_werror_flag" ||
25383          test ! -s conftest.err
25384        } && test -s conftest$ac_exeext &&
25385        $as_test_x conftest$ac_exeext; then
25386   ac_cv_search_opendir=$ac_res
25387 else
25388   echo "$as_me: failed program was:" >&5
25389 sed 's/^/| /' conftest.$ac_ext >&5
25390
25391
25392 fi
25393
25394 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25395       conftest$ac_exeext
25396   if test "${ac_cv_search_opendir+set}" = set; then
25397   break
25398 fi
25399 done
25400 if test "${ac_cv_search_opendir+set}" = set; then
25401   :
25402 else
25403   ac_cv_search_opendir=no
25404 fi
25405 rm conftest.$ac_ext
25406 LIBS=$ac_func_search_save_LIBS
25407 fi
25408 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
25409 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
25410 ac_res=$ac_cv_search_opendir
25411 if test "$ac_res" != no; then
25412   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25413
25414 fi
25415
25416 fi
25417
25418 { echo "$as_me:$LINENO: checking whether closedir returns void" >&5
25419 echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6; }
25420 if test "${ac_cv_func_closedir_void+set}" = set; then
25421   echo $ECHO_N "(cached) $ECHO_C" >&6
25422 else
25423   if test "$cross_compiling" = yes; then
25424   ac_cv_func_closedir_void=yes
25425 else
25426   cat >conftest.$ac_ext <<_ACEOF
25427 /* confdefs.h.  */
25428 _ACEOF
25429 cat confdefs.h >>conftest.$ac_ext
25430 cat >>conftest.$ac_ext <<_ACEOF
25431 /* end confdefs.h.  */
25432 $ac_includes_default
25433 #include <$ac_header_dirent>
25434 #ifndef __cplusplus
25435 int closedir ();
25436 #endif
25437
25438 int
25439 main ()
25440 {
25441 return closedir (opendir (".")) != 0;
25442   ;
25443   return 0;
25444 }
25445 _ACEOF
25446 rm -f conftest$ac_exeext
25447 if { (ac_try="$ac_link"
25448 case "(($ac_try" in
25449   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25450   *) ac_try_echo=$ac_try;;
25451 esac
25452 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25453   (eval "$ac_link") 2>&5
25454   ac_status=$?
25455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25456   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25457   { (case "(($ac_try" in
25458   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25459   *) ac_try_echo=$ac_try;;
25460 esac
25461 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25462   (eval "$ac_try") 2>&5
25463   ac_status=$?
25464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25465   (exit $ac_status); }; }; then
25466   ac_cv_func_closedir_void=no
25467 else
25468   echo "$as_me: program exited with status $ac_status" >&5
25469 echo "$as_me: failed program was:" >&5
25470 sed 's/^/| /' conftest.$ac_ext >&5
25471
25472 ( exit $ac_status )
25473 ac_cv_func_closedir_void=yes
25474 fi
25475 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25476 fi
25477
25478
25479 fi
25480 { echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
25481 echo "${ECHO_T}$ac_cv_func_closedir_void" >&6; }
25482 if test $ac_cv_func_closedir_void = yes; then
25483
25484 cat >>confdefs.h <<\_ACEOF
25485 #define CLOSEDIR_VOID 1
25486 _ACEOF
25487
25488 fi
25489
25490 { echo "$as_me:$LINENO: checking for error_at_line" >&5
25491 echo $ECHO_N "checking for error_at_line... $ECHO_C" >&6; }
25492 if test "${ac_cv_lib_error_at_line+set}" = set; then
25493   echo $ECHO_N "(cached) $ECHO_C" >&6
25494 else
25495   cat >conftest.$ac_ext <<_ACEOF
25496 /* confdefs.h.  */
25497 _ACEOF
25498 cat confdefs.h >>conftest.$ac_ext
25499 cat >>conftest.$ac_ext <<_ACEOF
25500 /* end confdefs.h.  */
25501 #include <error.h>
25502 int
25503 main ()
25504 {
25505 error_at_line (0, 0, "", 0, "an error occurred");
25506   ;
25507   return 0;
25508 }
25509 _ACEOF
25510 rm -f conftest.$ac_objext conftest$ac_exeext
25511 if { (ac_try="$ac_link"
25512 case "(($ac_try" in
25513   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25514   *) ac_try_echo=$ac_try;;
25515 esac
25516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25517   (eval "$ac_link") 2>conftest.er1
25518   ac_status=$?
25519   grep -v '^ *+' conftest.er1 >conftest.err
25520   rm -f conftest.er1
25521   cat conftest.err >&5
25522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25523   (exit $ac_status); } && {
25524          test -z "$ac_c_werror_flag" ||
25525          test ! -s conftest.err
25526        } && test -s conftest$ac_exeext &&
25527        $as_test_x conftest$ac_exeext; then
25528   ac_cv_lib_error_at_line=yes
25529 else
25530   echo "$as_me: failed program was:" >&5
25531 sed 's/^/| /' conftest.$ac_ext >&5
25532
25533         ac_cv_lib_error_at_line=no
25534 fi
25535
25536 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25537       conftest$ac_exeext conftest.$ac_ext
25538 fi
25539 { echo "$as_me:$LINENO: result: $ac_cv_lib_error_at_line" >&5
25540 echo "${ECHO_T}$ac_cv_lib_error_at_line" >&6; }
25541 if test $ac_cv_lib_error_at_line = no; then
25542   case " $LIBOBJS " in
25543   *" error.$ac_objext "* ) ;;
25544   *) LIBOBJS="$LIBOBJS error.$ac_objext"
25545  ;;
25546 esac
25547
25548 fi
25549
25550
25551 for ac_header in vfork.h
25552 do
25553 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25554 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25555   { echo "$as_me:$LINENO: checking for $ac_header" >&5
25556 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
25557 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25558   echo $ECHO_N "(cached) $ECHO_C" >&6
25559 fi
25560 ac_res=`eval echo '${'$as_ac_Header'}'`
25561                { echo "$as_me:$LINENO: result: $ac_res" >&5
25562 echo "${ECHO_T}$ac_res" >&6; }
25563 else
25564   # Is the header compilable?
25565 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
25566 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
25567 cat >conftest.$ac_ext <<_ACEOF
25568 /* confdefs.h.  */
25569 _ACEOF
25570 cat confdefs.h >>conftest.$ac_ext
25571 cat >>conftest.$ac_ext <<_ACEOF
25572 /* end confdefs.h.  */
25573 $ac_includes_default
25574 #include <$ac_header>
25575 _ACEOF
25576 rm -f conftest.$ac_objext
25577 if { (ac_try="$ac_compile"
25578 case "(($ac_try" in
25579   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25580   *) ac_try_echo=$ac_try;;
25581 esac
25582 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25583   (eval "$ac_compile") 2>conftest.er1
25584   ac_status=$?
25585   grep -v '^ *+' conftest.er1 >conftest.err
25586   rm -f conftest.er1
25587   cat conftest.err >&5
25588   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25589   (exit $ac_status); } && {
25590          test -z "$ac_c_werror_flag" ||
25591          test ! -s conftest.err
25592        } && test -s conftest.$ac_objext; then
25593   ac_header_compiler=yes
25594 else
25595   echo "$as_me: failed program was:" >&5
25596 sed 's/^/| /' conftest.$ac_ext >&5
25597
25598         ac_header_compiler=no
25599 fi
25600
25601 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25602 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25603 echo "${ECHO_T}$ac_header_compiler" >&6; }
25604
25605 # Is the header present?
25606 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
25607 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
25608 cat >conftest.$ac_ext <<_ACEOF
25609 /* confdefs.h.  */
25610 _ACEOF
25611 cat confdefs.h >>conftest.$ac_ext
25612 cat >>conftest.$ac_ext <<_ACEOF
25613 /* end confdefs.h.  */
25614 #include <$ac_header>
25615 _ACEOF
25616 if { (ac_try="$ac_cpp conftest.$ac_ext"
25617 case "(($ac_try" in
25618   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25619   *) ac_try_echo=$ac_try;;
25620 esac
25621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25622   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25623   ac_status=$?
25624   grep -v '^ *+' conftest.er1 >conftest.err
25625   rm -f conftest.er1
25626   cat conftest.err >&5
25627   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25628   (exit $ac_status); } >/dev/null && {
25629          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25630          test ! -s conftest.err
25631        }; then
25632   ac_header_preproc=yes
25633 else
25634   echo "$as_me: failed program was:" >&5
25635 sed 's/^/| /' conftest.$ac_ext >&5
25636
25637   ac_header_preproc=no
25638 fi
25639
25640 rm -f conftest.err conftest.$ac_ext
25641 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25642 echo "${ECHO_T}$ac_header_preproc" >&6; }
25643
25644 # So?  What about this header?
25645 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25646   yes:no: )
25647     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25648 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25649     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25650 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25651     ac_header_preproc=yes
25652     ;;
25653   no:yes:* )
25654     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25655 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25656     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
25657 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
25658     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25659 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25660     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
25661 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
25662     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25663 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25664     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25665 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25666     ( cat <<\_ASBOX
25667 ## ---------------------------------------- ##
25668 ## Report this to linux-nfs@vger.kernel.org ##
25669 ## ---------------------------------------- ##
25670 _ASBOX
25671      ) | sed "s/^/$as_me: WARNING:     /" >&2
25672     ;;
25673 esac
25674 { echo "$as_me:$LINENO: checking for $ac_header" >&5
25675 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
25676 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25677   echo $ECHO_N "(cached) $ECHO_C" >&6
25678 else
25679   eval "$as_ac_Header=\$ac_header_preproc"
25680 fi
25681 ac_res=`eval echo '${'$as_ac_Header'}'`
25682                { echo "$as_me:$LINENO: result: $ac_res" >&5
25683 echo "${ECHO_T}$ac_res" >&6; }
25684
25685 fi
25686 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25687   cat >>confdefs.h <<_ACEOF
25688 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25689 _ACEOF
25690
25691 fi
25692
25693 done
25694
25695
25696
25697 for ac_func in fork vfork
25698 do
25699 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25700 { echo "$as_me:$LINENO: checking for $ac_func" >&5
25701 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
25702 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
25703   echo $ECHO_N "(cached) $ECHO_C" >&6
25704 else
25705   cat >conftest.$ac_ext <<_ACEOF
25706 /* confdefs.h.  */
25707 _ACEOF
25708 cat confdefs.h >>conftest.$ac_ext
25709 cat >>conftest.$ac_ext <<_ACEOF
25710 /* end confdefs.h.  */
25711 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25712    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25713 #define $ac_func innocuous_$ac_func
25714
25715 /* System header to define __stub macros and hopefully few prototypes,
25716     which can conflict with char $ac_func (); below.
25717     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25718     <limits.h> exists even on freestanding compilers.  */
25719
25720 #ifdef __STDC__
25721 # include <limits.h>
25722 #else
25723 # include <assert.h>
25724 #endif
25725
25726 #undef $ac_func
25727
25728 /* Override any GCC internal prototype to avoid an error.
25729    Use char because int might match the return type of a GCC
25730    builtin and then its argument prototype would still apply.  */
25731 #ifdef __cplusplus
25732 extern "C"
25733 #endif
25734 char $ac_func ();
25735 /* The GNU C library defines this for functions which it implements
25736     to always fail with ENOSYS.  Some functions are actually named
25737     something starting with __ and the normal name is an alias.  */
25738 #if defined __stub_$ac_func || defined __stub___$ac_func
25739 choke me
25740 #endif
25741
25742 int
25743 main ()
25744 {
25745 return $ac_func ();
25746   ;
25747   return 0;
25748 }
25749 _ACEOF
25750 rm -f conftest.$ac_objext conftest$ac_exeext
25751 if { (ac_try="$ac_link"
25752 case "(($ac_try" in
25753   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25754   *) ac_try_echo=$ac_try;;
25755 esac
25756 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25757   (eval "$ac_link") 2>conftest.er1
25758   ac_status=$?
25759   grep -v '^ *+' conftest.er1 >conftest.err
25760   rm -f conftest.er1
25761   cat conftest.err >&5
25762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25763   (exit $ac_status); } && {
25764          test -z "$ac_c_werror_flag" ||
25765          test ! -s conftest.err
25766        } && test -s conftest$ac_exeext &&
25767        $as_test_x conftest$ac_exeext; then
25768   eval "$as_ac_var=yes"
25769 else
25770   echo "$as_me: failed program was:" >&5
25771 sed 's/^/| /' conftest.$ac_ext >&5
25772
25773         eval "$as_ac_var=no"
25774 fi
25775
25776 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25777       conftest$ac_exeext conftest.$ac_ext
25778 fi
25779 ac_res=`eval echo '${'$as_ac_var'}'`
25780                { echo "$as_me:$LINENO: result: $ac_res" >&5
25781 echo "${ECHO_T}$ac_res" >&6; }
25782 if test `eval echo '${'$as_ac_var'}'` = yes; then
25783   cat >>confdefs.h <<_ACEOF
25784 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25785 _ACEOF
25786
25787 fi
25788 done
25789
25790 if test "x$ac_cv_func_fork" = xyes; then
25791   { echo "$as_me:$LINENO: checking for working fork" >&5
25792 echo $ECHO_N "checking for working fork... $ECHO_C" >&6; }
25793 if test "${ac_cv_func_fork_works+set}" = set; then
25794   echo $ECHO_N "(cached) $ECHO_C" >&6
25795 else
25796   if test "$cross_compiling" = yes; then
25797   ac_cv_func_fork_works=cross
25798 else
25799   cat >conftest.$ac_ext <<_ACEOF
25800 /* confdefs.h.  */
25801 _ACEOF
25802 cat confdefs.h >>conftest.$ac_ext
25803 cat >>conftest.$ac_ext <<_ACEOF
25804 /* end confdefs.h.  */
25805 $ac_includes_default
25806 int
25807 main ()
25808 {
25809
25810           /* By Ruediger Kuhlmann. */
25811           return fork () < 0;
25812
25813   ;
25814   return 0;
25815 }
25816 _ACEOF
25817 rm -f conftest$ac_exeext
25818 if { (ac_try="$ac_link"
25819 case "(($ac_try" in
25820   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25821   *) ac_try_echo=$ac_try;;
25822 esac
25823 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25824   (eval "$ac_link") 2>&5
25825   ac_status=$?
25826   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25827   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25828   { (case "(($ac_try" in
25829   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25830   *) ac_try_echo=$ac_try;;
25831 esac
25832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25833   (eval "$ac_try") 2>&5
25834   ac_status=$?
25835   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25836   (exit $ac_status); }; }; then
25837   ac_cv_func_fork_works=yes
25838 else
25839   echo "$as_me: program exited with status $ac_status" >&5
25840 echo "$as_me: failed program was:" >&5
25841 sed 's/^/| /' conftest.$ac_ext >&5
25842
25843 ( exit $ac_status )
25844 ac_cv_func_fork_works=no
25845 fi
25846 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25847 fi
25848
25849
25850 fi
25851 { echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
25852 echo "${ECHO_T}$ac_cv_func_fork_works" >&6; }
25853
25854 else
25855   ac_cv_func_fork_works=$ac_cv_func_fork
25856 fi
25857 if test "x$ac_cv_func_fork_works" = xcross; then
25858   case $host in
25859     *-*-amigaos* | *-*-msdosdjgpp*)
25860       # Override, as these systems have only a dummy fork() stub
25861       ac_cv_func_fork_works=no
25862       ;;
25863     *)
25864       ac_cv_func_fork_works=yes
25865       ;;
25866   esac
25867   { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
25868 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
25869 fi
25870 ac_cv_func_vfork_works=$ac_cv_func_vfork
25871 if test "x$ac_cv_func_vfork" = xyes; then
25872   { echo "$as_me:$LINENO: checking for working vfork" >&5
25873 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6; }
25874 if test "${ac_cv_func_vfork_works+set}" = set; then
25875   echo $ECHO_N "(cached) $ECHO_C" >&6
25876 else
25877   if test "$cross_compiling" = yes; then
25878   ac_cv_func_vfork_works=cross
25879 else
25880   cat >conftest.$ac_ext <<_ACEOF
25881 /* confdefs.h.  */
25882 _ACEOF
25883 cat confdefs.h >>conftest.$ac_ext
25884 cat >>conftest.$ac_ext <<_ACEOF
25885 /* end confdefs.h.  */
25886 /* Thanks to Paul Eggert for this test.  */
25887 $ac_includes_default
25888 #include <sys/wait.h>
25889 #ifdef HAVE_VFORK_H
25890 # include <vfork.h>
25891 #endif
25892 /* On some sparc systems, changes by the child to local and incoming
25893    argument registers are propagated back to the parent.  The compiler
25894    is told about this with #include <vfork.h>, but some compilers
25895    (e.g. gcc -O) don't grok <vfork.h>.  Test for this by using a
25896    static variable whose address is put into a register that is
25897    clobbered by the vfork.  */
25898 static void
25899 #ifdef __cplusplus
25900 sparc_address_test (int arg)
25901 # else
25902 sparc_address_test (arg) int arg;
25903 #endif
25904 {
25905   static pid_t child;
25906   if (!child) {
25907     child = vfork ();
25908     if (child < 0) {
25909       perror ("vfork");
25910       _exit(2);
25911     }
25912     if (!child) {
25913       arg = getpid();
25914       write(-1, "", 0);
25915       _exit (arg);
25916     }
25917   }
25918 }
25919
25920 int
25921 main ()
25922 {
25923   pid_t parent = getpid ();
25924   pid_t child;
25925
25926   sparc_address_test (0);
25927
25928   child = vfork ();
25929
25930   if (child == 0) {
25931     /* Here is another test for sparc vfork register problems.  This
25932        test uses lots of local variables, at least as many local
25933        variables as main has allocated so far including compiler
25934        temporaries.  4 locals are enough for gcc 1.40.3 on a Solaris
25935        4.1.3 sparc, but we use 8 to be safe.  A buggy compiler should
25936        reuse the register of parent for one of the local variables,
25937        since it will think that parent can't possibly be used any more
25938        in this routine.  Assigning to the local variable will thus
25939        munge parent in the parent process.  */
25940     pid_t
25941       p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
25942       p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
25943     /* Convince the compiler that p..p7 are live; otherwise, it might
25944        use the same hardware register for all 8 local variables.  */
25945     if (p != p1 || p != p2 || p != p3 || p != p4
25946         || p != p5 || p != p6 || p != p7)
25947       _exit(1);
25948
25949     /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
25950        from child file descriptors.  If the child closes a descriptor
25951        before it execs or exits, this munges the parent's descriptor
25952        as well.  Test for this by closing stdout in the child.  */
25953     _exit(close(fileno(stdout)) != 0);
25954   } else {
25955     int status;
25956     struct stat st;
25957
25958     while (wait(&status) != child)
25959       ;
25960     return (
25961          /* Was there some problem with vforking?  */
25962          child < 0
25963
25964          /* Did the child fail?  (This shouldn't happen.)  */
25965          || status
25966
25967          /* Did the vfork/compiler bug occur?  */
25968          || parent != getpid()
25969
25970          /* Did the file descriptor bug occur?  */
25971          || fstat(fileno(stdout), &st) != 0
25972          );
25973   }
25974 }
25975 _ACEOF
25976 rm -f conftest$ac_exeext
25977 if { (ac_try="$ac_link"
25978 case "(($ac_try" in
25979   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25980   *) ac_try_echo=$ac_try;;
25981 esac
25982 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25983   (eval "$ac_link") 2>&5
25984   ac_status=$?
25985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25986   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25987   { (case "(($ac_try" in
25988   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25989   *) ac_try_echo=$ac_try;;
25990 esac
25991 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25992   (eval "$ac_try") 2>&5
25993   ac_status=$?
25994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25995   (exit $ac_status); }; }; then
25996   ac_cv_func_vfork_works=yes
25997 else
25998   echo "$as_me: program exited with status $ac_status" >&5
25999 echo "$as_me: failed program was:" >&5
26000 sed 's/^/| /' conftest.$ac_ext >&5
26001
26002 ( exit $ac_status )
26003 ac_cv_func_vfork_works=no
26004 fi
26005 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26006 fi
26007
26008
26009 fi
26010 { echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
26011 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6; }
26012
26013 fi;
26014 if test "x$ac_cv_func_fork_works" = xcross; then
26015   ac_cv_func_vfork_works=$ac_cv_func_vfork
26016   { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
26017 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
26018 fi
26019
26020 if test "x$ac_cv_func_vfork_works" = xyes; then
26021
26022 cat >>confdefs.h <<\_ACEOF
26023 #define HAVE_WORKING_VFORK 1
26024 _ACEOF
26025
26026 else
26027
26028 cat >>confdefs.h <<\_ACEOF
26029 #define vfork fork
26030 _ACEOF
26031
26032 fi
26033 if test "x$ac_cv_func_fork_works" = xyes; then
26034
26035 cat >>confdefs.h <<\_ACEOF
26036 #define HAVE_WORKING_FORK 1
26037 _ACEOF
26038
26039 fi
26040
26041 { echo "$as_me:$LINENO: checking type of array argument to getgroups" >&5
26042 echo $ECHO_N "checking type of array argument to getgroups... $ECHO_C" >&6; }
26043 if test "${ac_cv_type_getgroups+set}" = set; then
26044   echo $ECHO_N "(cached) $ECHO_C" >&6
26045 else
26046   if test "$cross_compiling" = yes; then
26047   ac_cv_type_getgroups=cross
26048 else
26049   cat >conftest.$ac_ext <<_ACEOF
26050 /* confdefs.h.  */
26051 _ACEOF
26052 cat confdefs.h >>conftest.$ac_ext
26053 cat >>conftest.$ac_ext <<_ACEOF
26054 /* end confdefs.h.  */
26055 /* Thanks to Mike Rendell for this test.  */
26056 $ac_includes_default
26057 #define NGID 256
26058 #undef MAX
26059 #define MAX(x, y) ((x) > (y) ? (x) : (y))
26060
26061 int
26062 main ()
26063 {
26064   gid_t gidset[NGID];
26065   int i, n;
26066   union { gid_t gval; long int lval; }  val;
26067
26068   val.lval = -1;
26069   for (i = 0; i < NGID; i++)
26070     gidset[i] = val.gval;
26071   n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
26072                  gidset);
26073   /* Exit non-zero if getgroups seems to require an array of ints.  This
26074      happens when gid_t is short int but getgroups modifies an array
26075      of ints.  */
26076   return n > 0 && gidset[n] != val.gval;
26077 }
26078 _ACEOF
26079 rm -f conftest$ac_exeext
26080 if { (ac_try="$ac_link"
26081 case "(($ac_try" in
26082   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26083   *) ac_try_echo=$ac_try;;
26084 esac
26085 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26086   (eval "$ac_link") 2>&5
26087   ac_status=$?
26088   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26089   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26090   { (case "(($ac_try" in
26091   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26092   *) ac_try_echo=$ac_try;;
26093 esac
26094 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26095   (eval "$ac_try") 2>&5
26096   ac_status=$?
26097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26098   (exit $ac_status); }; }; then
26099   ac_cv_type_getgroups=gid_t
26100 else
26101   echo "$as_me: program exited with status $ac_status" >&5
26102 echo "$as_me: failed program was:" >&5
26103 sed 's/^/| /' conftest.$ac_ext >&5
26104
26105 ( exit $ac_status )
26106 ac_cv_type_getgroups=int
26107 fi
26108 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26109 fi
26110
26111
26112 if test $ac_cv_type_getgroups = cross; then
26113         cat >conftest.$ac_ext <<_ACEOF
26114 /* confdefs.h.  */
26115 _ACEOF
26116 cat confdefs.h >>conftest.$ac_ext
26117 cat >>conftest.$ac_ext <<_ACEOF
26118 /* end confdefs.h.  */
26119 #include <unistd.h>
26120
26121 _ACEOF
26122 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26123   $EGREP "getgroups.*int.*gid_t" >/dev/null 2>&1; then
26124   ac_cv_type_getgroups=gid_t
26125 else
26126   ac_cv_type_getgroups=int
26127 fi
26128 rm -f conftest*
26129
26130 fi
26131 fi
26132 { echo "$as_me:$LINENO: result: $ac_cv_type_getgroups" >&5
26133 echo "${ECHO_T}$ac_cv_type_getgroups" >&6; }
26134
26135 cat >>confdefs.h <<_ACEOF
26136 #define GETGROUPS_T $ac_cv_type_getgroups
26137 _ACEOF
26138
26139
26140 { echo "$as_me:$LINENO: checking for getgroups" >&5
26141 echo $ECHO_N "checking for getgroups... $ECHO_C" >&6; }
26142 if test "${ac_cv_func_getgroups+set}" = set; then
26143   echo $ECHO_N "(cached) $ECHO_C" >&6
26144 else
26145   cat >conftest.$ac_ext <<_ACEOF
26146 /* confdefs.h.  */
26147 _ACEOF
26148 cat confdefs.h >>conftest.$ac_ext
26149 cat >>conftest.$ac_ext <<_ACEOF
26150 /* end confdefs.h.  */
26151 /* Define getgroups to an innocuous variant, in case <limits.h> declares getgroups.
26152    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26153 #define getgroups innocuous_getgroups
26154
26155 /* System header to define __stub macros and hopefully few prototypes,
26156     which can conflict with char getgroups (); below.
26157     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26158     <limits.h> exists even on freestanding compilers.  */
26159
26160 #ifdef __STDC__
26161 # include <limits.h>
26162 #else
26163 # include <assert.h>
26164 #endif
26165
26166 #undef getgroups
26167
26168 /* Override any GCC internal prototype to avoid an error.
26169    Use char because int might match the return type of a GCC
26170    builtin and then its argument prototype would still apply.  */
26171 #ifdef __cplusplus
26172 extern "C"
26173 #endif
26174 char getgroups ();
26175 /* The GNU C library defines this for functions which it implements
26176     to always fail with ENOSYS.  Some functions are actually named
26177     something starting with __ and the normal name is an alias.  */
26178 #if defined __stub_getgroups || defined __stub___getgroups
26179 choke me
26180 #endif
26181
26182 int
26183 main ()
26184 {
26185 return getgroups ();
26186   ;
26187   return 0;
26188 }
26189 _ACEOF
26190 rm -f conftest.$ac_objext conftest$ac_exeext
26191 if { (ac_try="$ac_link"
26192 case "(($ac_try" in
26193   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26194   *) ac_try_echo=$ac_try;;
26195 esac
26196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26197   (eval "$ac_link") 2>conftest.er1
26198   ac_status=$?
26199   grep -v '^ *+' conftest.er1 >conftest.err
26200   rm -f conftest.er1
26201   cat conftest.err >&5
26202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26203   (exit $ac_status); } && {
26204          test -z "$ac_c_werror_flag" ||
26205          test ! -s conftest.err
26206        } && test -s conftest$ac_exeext &&
26207        $as_test_x conftest$ac_exeext; then
26208   ac_cv_func_getgroups=yes
26209 else
26210   echo "$as_me: failed program was:" >&5
26211 sed 's/^/| /' conftest.$ac_ext >&5
26212
26213         ac_cv_func_getgroups=no
26214 fi
26215
26216 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26217       conftest$ac_exeext conftest.$ac_ext
26218 fi
26219 { echo "$as_me:$LINENO: result: $ac_cv_func_getgroups" >&5
26220 echo "${ECHO_T}$ac_cv_func_getgroups" >&6; }
26221
26222
26223 # If we don't yet have getgroups, see if it's in -lbsd.
26224 # This is reported to be necessary on an ITOS 3000WS running SEIUX 3.1.
26225 ac_save_LIBS=$LIBS
26226 if test $ac_cv_func_getgroups = no; then
26227   { echo "$as_me:$LINENO: checking for getgroups in -lbsd" >&5
26228 echo $ECHO_N "checking for getgroups in -lbsd... $ECHO_C" >&6; }
26229 if test "${ac_cv_lib_bsd_getgroups+set}" = set; then
26230   echo $ECHO_N "(cached) $ECHO_C" >&6
26231 else
26232   ac_check_lib_save_LIBS=$LIBS
26233 LIBS="-lbsd  $LIBS"
26234 cat >conftest.$ac_ext <<_ACEOF
26235 /* confdefs.h.  */
26236 _ACEOF
26237 cat confdefs.h >>conftest.$ac_ext
26238 cat >>conftest.$ac_ext <<_ACEOF
26239 /* end confdefs.h.  */
26240
26241 /* Override any GCC internal prototype to avoid an error.
26242    Use char because int might match the return type of a GCC
26243    builtin and then its argument prototype would still apply.  */
26244 #ifdef __cplusplus
26245 extern "C"
26246 #endif
26247 char getgroups ();
26248 int
26249 main ()
26250 {
26251 return getgroups ();
26252   ;
26253   return 0;
26254 }
26255 _ACEOF
26256 rm -f conftest.$ac_objext conftest$ac_exeext
26257 if { (ac_try="$ac_link"
26258 case "(($ac_try" in
26259   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26260   *) ac_try_echo=$ac_try;;
26261 esac
26262 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26263   (eval "$ac_link") 2>conftest.er1
26264   ac_status=$?
26265   grep -v '^ *+' conftest.er1 >conftest.err
26266   rm -f conftest.er1
26267   cat conftest.err >&5
26268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26269   (exit $ac_status); } && {
26270          test -z "$ac_c_werror_flag" ||
26271          test ! -s conftest.err
26272        } && test -s conftest$ac_exeext &&
26273        $as_test_x conftest$ac_exeext; then
26274   ac_cv_lib_bsd_getgroups=yes
26275 else
26276   echo "$as_me: failed program was:" >&5
26277 sed 's/^/| /' conftest.$ac_ext >&5
26278
26279         ac_cv_lib_bsd_getgroups=no
26280 fi
26281
26282 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26283       conftest$ac_exeext conftest.$ac_ext
26284 LIBS=$ac_check_lib_save_LIBS
26285 fi
26286 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_getgroups" >&5
26287 echo "${ECHO_T}$ac_cv_lib_bsd_getgroups" >&6; }
26288 if test $ac_cv_lib_bsd_getgroups = yes; then
26289   GETGROUPS_LIB=-lbsd
26290 fi
26291
26292 fi
26293
26294 # Run the program to test the functionality of the system-supplied
26295 # getgroups function only if there is such a function.
26296 if test $ac_cv_func_getgroups = yes; then
26297   { echo "$as_me:$LINENO: checking for working getgroups" >&5
26298 echo $ECHO_N "checking for working getgroups... $ECHO_C" >&6; }
26299 if test "${ac_cv_func_getgroups_works+set}" = set; then
26300   echo $ECHO_N "(cached) $ECHO_C" >&6
26301 else
26302   if test "$cross_compiling" = yes; then
26303   ac_cv_func_getgroups_works=no
26304 else
26305   cat >conftest.$ac_ext <<_ACEOF
26306 /* confdefs.h.  */
26307 _ACEOF
26308 cat confdefs.h >>conftest.$ac_ext
26309 cat >>conftest.$ac_ext <<_ACEOF
26310 /* end confdefs.h.  */
26311 $ac_includes_default
26312 int
26313 main ()
26314 {
26315 /* On Ultrix 4.3, getgroups (0, 0) always fails.  */
26316        return getgroups (0, 0) == -1;
26317   ;
26318   return 0;
26319 }
26320 _ACEOF
26321 rm -f conftest$ac_exeext
26322 if { (ac_try="$ac_link"
26323 case "(($ac_try" in
26324   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26325   *) ac_try_echo=$ac_try;;
26326 esac
26327 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26328   (eval "$ac_link") 2>&5
26329   ac_status=$?
26330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26331   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26332   { (case "(($ac_try" in
26333   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26334   *) ac_try_echo=$ac_try;;
26335 esac
26336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26337   (eval "$ac_try") 2>&5
26338   ac_status=$?
26339   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26340   (exit $ac_status); }; }; then
26341   ac_cv_func_getgroups_works=yes
26342 else
26343   echo "$as_me: program exited with status $ac_status" >&5
26344 echo "$as_me: failed program was:" >&5
26345 sed 's/^/| /' conftest.$ac_ext >&5
26346
26347 ( exit $ac_status )
26348 ac_cv_func_getgroups_works=no
26349 fi
26350 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26351 fi
26352
26353
26354
26355 fi
26356 { echo "$as_me:$LINENO: result: $ac_cv_func_getgroups_works" >&5
26357 echo "${ECHO_T}$ac_cv_func_getgroups_works" >&6; }
26358   if test $ac_cv_func_getgroups_works = yes; then
26359
26360 cat >>confdefs.h <<\_ACEOF
26361 #define HAVE_GETGROUPS 1
26362 _ACEOF
26363
26364   fi
26365 fi
26366 LIBS=$ac_save_LIBS
26367
26368 # getmntent is in the standard C library on UNICOS, in -lsun on Irix 4,
26369 # -lseq on Dynix/PTX, -lgen on Unixware.
26370 { echo "$as_me:$LINENO: checking for library containing getmntent" >&5
26371 echo $ECHO_N "checking for library containing getmntent... $ECHO_C" >&6; }
26372 if test "${ac_cv_search_getmntent+set}" = set; then
26373   echo $ECHO_N "(cached) $ECHO_C" >&6
26374 else
26375   ac_func_search_save_LIBS=$LIBS
26376 cat >conftest.$ac_ext <<_ACEOF
26377 /* confdefs.h.  */
26378 _ACEOF
26379 cat confdefs.h >>conftest.$ac_ext
26380 cat >>conftest.$ac_ext <<_ACEOF
26381 /* end confdefs.h.  */
26382
26383 /* Override any GCC internal prototype to avoid an error.
26384    Use char because int might match the return type of a GCC
26385    builtin and then its argument prototype would still apply.  */
26386 #ifdef __cplusplus
26387 extern "C"
26388 #endif
26389 char getmntent ();
26390 int
26391 main ()
26392 {
26393 return getmntent ();
26394   ;
26395   return 0;
26396 }
26397 _ACEOF
26398 for ac_lib in '' sun seq gen; do
26399   if test -z "$ac_lib"; then
26400     ac_res="none required"
26401   else
26402     ac_res=-l$ac_lib
26403     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
26404   fi
26405   rm -f conftest.$ac_objext conftest$ac_exeext
26406 if { (ac_try="$ac_link"
26407 case "(($ac_try" in
26408   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26409   *) ac_try_echo=$ac_try;;
26410 esac
26411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26412   (eval "$ac_link") 2>conftest.er1
26413   ac_status=$?
26414   grep -v '^ *+' conftest.er1 >conftest.err
26415   rm -f conftest.er1
26416   cat conftest.err >&5
26417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26418   (exit $ac_status); } && {
26419          test -z "$ac_c_werror_flag" ||
26420          test ! -s conftest.err
26421        } && test -s conftest$ac_exeext &&
26422        $as_test_x conftest$ac_exeext; then
26423   ac_cv_search_getmntent=$ac_res
26424 else
26425   echo "$as_me: failed program was:" >&5
26426 sed 's/^/| /' conftest.$ac_ext >&5
26427
26428
26429 fi
26430
26431 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26432       conftest$ac_exeext
26433   if test "${ac_cv_search_getmntent+set}" = set; then
26434   break
26435 fi
26436 done
26437 if test "${ac_cv_search_getmntent+set}" = set; then
26438   :
26439 else
26440   ac_cv_search_getmntent=no
26441 fi
26442 rm conftest.$ac_ext
26443 LIBS=$ac_func_search_save_LIBS
26444 fi
26445 { echo "$as_me:$LINENO: result: $ac_cv_search_getmntent" >&5
26446 echo "${ECHO_T}$ac_cv_search_getmntent" >&6; }
26447 ac_res=$ac_cv_search_getmntent
26448 if test "$ac_res" != no; then
26449   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
26450   ac_cv_func_getmntent=yes
26451
26452 cat >>confdefs.h <<\_ACEOF
26453 #define HAVE_GETMNTENT
26454 _ACEOF
26455
26456 else
26457   ac_cv_func_getmntent=no
26458 fi
26459
26460
26461 if test $ac_cv_c_compiler_gnu = yes; then
26462     { echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
26463 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6; }
26464 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
26465   echo $ECHO_N "(cached) $ECHO_C" >&6
26466 else
26467     ac_pattern="Autoconf.*'x'"
26468   cat >conftest.$ac_ext <<_ACEOF
26469 /* confdefs.h.  */
26470 _ACEOF
26471 cat confdefs.h >>conftest.$ac_ext
26472 cat >>conftest.$ac_ext <<_ACEOF
26473 /* end confdefs.h.  */
26474 #include <sgtty.h>
26475 Autoconf TIOCGETP
26476 _ACEOF
26477 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26478   $EGREP "$ac_pattern" >/dev/null 2>&1; then
26479   ac_cv_prog_gcc_traditional=yes
26480 else
26481   ac_cv_prog_gcc_traditional=no
26482 fi
26483 rm -f conftest*
26484
26485
26486   if test $ac_cv_prog_gcc_traditional = no; then
26487     cat >conftest.$ac_ext <<_ACEOF
26488 /* confdefs.h.  */
26489 _ACEOF
26490 cat confdefs.h >>conftest.$ac_ext
26491 cat >>conftest.$ac_ext <<_ACEOF
26492 /* end confdefs.h.  */
26493 #include <termio.h>
26494 Autoconf TCGETA
26495 _ACEOF
26496 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26497   $EGREP "$ac_pattern" >/dev/null 2>&1; then
26498   ac_cv_prog_gcc_traditional=yes
26499 fi
26500 rm -f conftest*
26501
26502   fi
26503 fi
26504 { echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
26505 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6; }
26506   if test $ac_cv_prog_gcc_traditional = yes; then
26507     CC="$CC -traditional"
26508   fi
26509 fi
26510
26511 { echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
26512 echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6; }
26513 if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
26514   echo $ECHO_N "(cached) $ECHO_C" >&6
26515 else
26516   rm -f conftest.sym conftest.file
26517 echo >conftest.file
26518 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
26519   if test "$cross_compiling" = yes; then
26520   ac_cv_func_lstat_dereferences_slashed_symlink=no
26521 else
26522   cat >conftest.$ac_ext <<_ACEOF
26523 /* confdefs.h.  */
26524 _ACEOF
26525 cat confdefs.h >>conftest.$ac_ext
26526 cat >>conftest.$ac_ext <<_ACEOF
26527 /* end confdefs.h.  */
26528 $ac_includes_default
26529 int
26530 main ()
26531 {
26532 struct stat sbuf;
26533      /* Linux will dereference the symlink and fail.
26534         That is better in the sense that it means we will not
26535         have to compile and use the lstat wrapper.  */
26536      return lstat ("conftest.sym/", &sbuf) == 0;
26537   ;
26538   return 0;
26539 }
26540 _ACEOF
26541 rm -f conftest$ac_exeext
26542 if { (ac_try="$ac_link"
26543 case "(($ac_try" in
26544   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26545   *) ac_try_echo=$ac_try;;
26546 esac
26547 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26548   (eval "$ac_link") 2>&5
26549   ac_status=$?
26550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26551   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26552   { (case "(($ac_try" in
26553   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26554   *) ac_try_echo=$ac_try;;
26555 esac
26556 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26557   (eval "$ac_try") 2>&5
26558   ac_status=$?
26559   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26560   (exit $ac_status); }; }; then
26561   ac_cv_func_lstat_dereferences_slashed_symlink=yes
26562 else
26563   echo "$as_me: program exited with status $ac_status" >&5
26564 echo "$as_me: failed program was:" >&5
26565 sed 's/^/| /' conftest.$ac_ext >&5
26566
26567 ( exit $ac_status )
26568 ac_cv_func_lstat_dereferences_slashed_symlink=no
26569 fi
26570 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26571 fi
26572
26573
26574 else
26575   # If the `ln -s' command failed, then we probably don't even
26576   # have an lstat function.
26577   ac_cv_func_lstat_dereferences_slashed_symlink=no
26578 fi
26579 rm -f conftest.sym conftest.file
26580
26581 fi
26582 { echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
26583 echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
26584
26585 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
26586
26587 cat >>confdefs.h <<_ACEOF
26588 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
26589 _ACEOF
26590
26591
26592 if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
26593   case " $LIBOBJS " in
26594   *" lstat.$ac_objext "* ) ;;
26595   *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
26596  ;;
26597 esac
26598
26599 fi
26600
26601 { echo "$as_me:$LINENO: checking whether lstat accepts an empty string" >&5
26602 echo $ECHO_N "checking whether lstat accepts an empty string... $ECHO_C" >&6; }
26603 if test "${ac_cv_func_lstat_empty_string_bug+set}" = set; then
26604   echo $ECHO_N "(cached) $ECHO_C" >&6
26605 else
26606   if test "$cross_compiling" = yes; then
26607   ac_cv_func_lstat_empty_string_bug=yes
26608 else
26609   cat >conftest.$ac_ext <<_ACEOF
26610 /* confdefs.h.  */
26611 _ACEOF
26612 cat confdefs.h >>conftest.$ac_ext
26613 cat >>conftest.$ac_ext <<_ACEOF
26614 /* end confdefs.h.  */
26615 $ac_includes_default
26616 int
26617 main ()
26618 {
26619 struct stat sbuf;
26620   return lstat ("", &sbuf) == 0;
26621   ;
26622   return 0;
26623 }
26624 _ACEOF
26625 rm -f conftest$ac_exeext
26626 if { (ac_try="$ac_link"
26627 case "(($ac_try" in
26628   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26629   *) ac_try_echo=$ac_try;;
26630 esac
26631 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26632   (eval "$ac_link") 2>&5
26633   ac_status=$?
26634   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26635   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26636   { (case "(($ac_try" in
26637   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26638   *) ac_try_echo=$ac_try;;
26639 esac
26640 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26641   (eval "$ac_try") 2>&5
26642   ac_status=$?
26643   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26644   (exit $ac_status); }; }; then
26645   ac_cv_func_lstat_empty_string_bug=no
26646 else
26647   echo "$as_me: program exited with status $ac_status" >&5
26648 echo "$as_me: failed program was:" >&5
26649 sed 's/^/| /' conftest.$ac_ext >&5
26650
26651 ( exit $ac_status )
26652 ac_cv_func_lstat_empty_string_bug=yes
26653 fi
26654 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26655 fi
26656
26657
26658 fi
26659 { echo "$as_me:$LINENO: result: $ac_cv_func_lstat_empty_string_bug" >&5
26660 echo "${ECHO_T}$ac_cv_func_lstat_empty_string_bug" >&6; }
26661 if test $ac_cv_func_lstat_empty_string_bug = yes; then
26662   case " $LIBOBJS " in
26663   *" lstat.$ac_objext "* ) ;;
26664   *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
26665  ;;
26666 esac
26667
26668
26669 cat >>confdefs.h <<_ACEOF
26670 #define HAVE_LSTAT_EMPTY_STRING_BUG 1
26671 _ACEOF
26672
26673 fi
26674
26675 { echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
26676 echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6; }
26677 if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
26678   echo $ECHO_N "(cached) $ECHO_C" >&6
26679 else
26680   rm -f conftest.sym conftest.file
26681 echo >conftest.file
26682 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
26683   if test "$cross_compiling" = yes; then
26684   ac_cv_func_lstat_dereferences_slashed_symlink=no
26685 else
26686   cat >conftest.$ac_ext <<_ACEOF
26687 /* confdefs.h.  */
26688 _ACEOF
26689 cat confdefs.h >>conftest.$ac_ext
26690 cat >>conftest.$ac_ext <<_ACEOF
26691 /* end confdefs.h.  */
26692 $ac_includes_default
26693 int
26694 main ()
26695 {
26696 struct stat sbuf;
26697      /* Linux will dereference the symlink and fail.
26698         That is better in the sense that it means we will not
26699         have to compile and use the lstat wrapper.  */
26700      return lstat ("conftest.sym/", &sbuf) == 0;
26701   ;
26702   return 0;
26703 }
26704 _ACEOF
26705 rm -f conftest$ac_exeext
26706 if { (ac_try="$ac_link"
26707 case "(($ac_try" in
26708   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26709   *) ac_try_echo=$ac_try;;
26710 esac
26711 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26712   (eval "$ac_link") 2>&5
26713   ac_status=$?
26714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26715   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26716   { (case "(($ac_try" in
26717   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26718   *) ac_try_echo=$ac_try;;
26719 esac
26720 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26721   (eval "$ac_try") 2>&5
26722   ac_status=$?
26723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26724   (exit $ac_status); }; }; then
26725   ac_cv_func_lstat_dereferences_slashed_symlink=yes
26726 else
26727   echo "$as_me: program exited with status $ac_status" >&5
26728 echo "$as_me: failed program was:" >&5
26729 sed 's/^/| /' conftest.$ac_ext >&5
26730
26731 ( exit $ac_status )
26732 ac_cv_func_lstat_dereferences_slashed_symlink=no
26733 fi
26734 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26735 fi
26736
26737
26738 else
26739   # If the `ln -s' command failed, then we probably don't even
26740   # have an lstat function.
26741   ac_cv_func_lstat_dereferences_slashed_symlink=no
26742 fi
26743 rm -f conftest.sym conftest.file
26744
26745 fi
26746 { echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
26747 echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
26748
26749 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
26750
26751 cat >>confdefs.h <<_ACEOF
26752 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
26753 _ACEOF
26754
26755
26756 if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
26757   case " $LIBOBJS " in
26758   *" lstat.$ac_objext "* ) ;;
26759   *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
26760  ;;
26761 esac
26762
26763 fi
26764
26765 { echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
26766 echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6; }
26767 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
26768   echo $ECHO_N "(cached) $ECHO_C" >&6
26769 else
26770   cat >conftest.$ac_ext <<_ACEOF
26771 /* confdefs.h.  */
26772 _ACEOF
26773 cat confdefs.h >>conftest.$ac_ext
26774 cat >>conftest.$ac_ext <<_ACEOF
26775 /* end confdefs.h.  */
26776 #include <sys/types.h>
26777 int
26778 main ()
26779 {
26780 return makedev(0, 0);
26781   ;
26782   return 0;
26783 }
26784 _ACEOF
26785 rm -f conftest.$ac_objext conftest$ac_exeext
26786 if { (ac_try="$ac_link"
26787 case "(($ac_try" in
26788   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26789   *) ac_try_echo=$ac_try;;
26790 esac
26791 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26792   (eval "$ac_link") 2>conftest.er1
26793   ac_status=$?
26794   grep -v '^ *+' conftest.er1 >conftest.err
26795   rm -f conftest.er1
26796   cat conftest.err >&5
26797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26798   (exit $ac_status); } && {
26799          test -z "$ac_c_werror_flag" ||
26800          test ! -s conftest.err
26801        } && test -s conftest$ac_exeext &&
26802        $as_test_x conftest$ac_exeext; then
26803   ac_cv_header_sys_types_h_makedev=yes
26804 else
26805   echo "$as_me: failed program was:" >&5
26806 sed 's/^/| /' conftest.$ac_ext >&5
26807
26808         ac_cv_header_sys_types_h_makedev=no
26809 fi
26810
26811 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26812       conftest$ac_exeext conftest.$ac_ext
26813
26814 fi
26815 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
26816 echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6; }
26817
26818 if test $ac_cv_header_sys_types_h_makedev = no; then
26819 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
26820   { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
26821 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
26822 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
26823   echo $ECHO_N "(cached) $ECHO_C" >&6
26824 fi
26825 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
26826 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
26827 else
26828   # Is the header compilable?
26829 { echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
26830 echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6; }
26831 cat >conftest.$ac_ext <<_ACEOF
26832 /* confdefs.h.  */
26833 _ACEOF
26834 cat confdefs.h >>conftest.$ac_ext
26835 cat >>conftest.$ac_ext <<_ACEOF
26836 /* end confdefs.h.  */
26837 $ac_includes_default
26838 #include <sys/mkdev.h>
26839 _ACEOF
26840 rm -f conftest.$ac_objext
26841 if { (ac_try="$ac_compile"
26842 case "(($ac_try" in
26843   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26844   *) ac_try_echo=$ac_try;;
26845 esac
26846 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26847   (eval "$ac_compile") 2>conftest.er1
26848   ac_status=$?
26849   grep -v '^ *+' conftest.er1 >conftest.err
26850   rm -f conftest.er1
26851   cat conftest.err >&5
26852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26853   (exit $ac_status); } && {
26854          test -z "$ac_c_werror_flag" ||
26855          test ! -s conftest.err
26856        } && test -s conftest.$ac_objext; then
26857   ac_header_compiler=yes
26858 else
26859   echo "$as_me: failed program was:" >&5
26860 sed 's/^/| /' conftest.$ac_ext >&5
26861
26862         ac_header_compiler=no
26863 fi
26864
26865 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26866 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26867 echo "${ECHO_T}$ac_header_compiler" >&6; }
26868
26869 # Is the header present?
26870 { echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
26871 echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6; }
26872 cat >conftest.$ac_ext <<_ACEOF
26873 /* confdefs.h.  */
26874 _ACEOF
26875 cat confdefs.h >>conftest.$ac_ext
26876 cat >>conftest.$ac_ext <<_ACEOF
26877 /* end confdefs.h.  */
26878 #include <sys/mkdev.h>
26879 _ACEOF
26880 if { (ac_try="$ac_cpp conftest.$ac_ext"
26881 case "(($ac_try" in
26882   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26883   *) ac_try_echo=$ac_try;;
26884 esac
26885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26886   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26887   ac_status=$?
26888   grep -v '^ *+' conftest.er1 >conftest.err
26889   rm -f conftest.er1
26890   cat conftest.err >&5
26891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26892   (exit $ac_status); } >/dev/null && {
26893          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26894          test ! -s conftest.err
26895        }; then
26896   ac_header_preproc=yes
26897 else
26898   echo "$as_me: failed program was:" >&5
26899 sed 's/^/| /' conftest.$ac_ext >&5
26900
26901   ac_header_preproc=no
26902 fi
26903
26904 rm -f conftest.err conftest.$ac_ext
26905 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26906 echo "${ECHO_T}$ac_header_preproc" >&6; }
26907
26908 # So?  What about this header?
26909 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26910   yes:no: )
26911     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
26912 echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
26913     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5
26914 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&2;}
26915     ac_header_preproc=yes
26916     ;;
26917   no:yes:* )
26918     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
26919 echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
26920     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h:     check for missing prerequisite headers?" >&5
26921 echo "$as_me: WARNING: sys/mkdev.h:     check for missing prerequisite headers?" >&2;}
26922     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5
26923 echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;}
26924     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h:     section \"Present But Cannot Be Compiled\"" >&5
26925 echo "$as_me: WARNING: sys/mkdev.h:     section \"Present But Cannot Be Compiled\"" >&2;}
26926     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
26927 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
26928     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5
26929 echo "$as_me: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&2;}
26930     ( cat <<\_ASBOX
26931 ## ---------------------------------------- ##
26932 ## Report this to linux-nfs@vger.kernel.org ##
26933 ## ---------------------------------------- ##
26934 _ASBOX
26935      ) | sed "s/^/$as_me: WARNING:     /" >&2
26936     ;;
26937 esac
26938 { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
26939 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
26940 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
26941   echo $ECHO_N "(cached) $ECHO_C" >&6
26942 else
26943   ac_cv_header_sys_mkdev_h=$ac_header_preproc
26944 fi
26945 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
26946 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
26947
26948 fi
26949 if test $ac_cv_header_sys_mkdev_h = yes; then
26950
26951 cat >>confdefs.h <<\_ACEOF
26952 #define MAJOR_IN_MKDEV 1
26953 _ACEOF
26954
26955 fi
26956
26957
26958
26959   if test $ac_cv_header_sys_mkdev_h = no; then
26960     if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
26961   { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
26962 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
26963 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
26964   echo $ECHO_N "(cached) $ECHO_C" >&6
26965 fi
26966 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
26967 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
26968 else
26969   # Is the header compilable?
26970 { echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
26971 echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6; }
26972 cat >conftest.$ac_ext <<_ACEOF
26973 /* confdefs.h.  */
26974 _ACEOF
26975 cat confdefs.h >>conftest.$ac_ext
26976 cat >>conftest.$ac_ext <<_ACEOF
26977 /* end confdefs.h.  */
26978 $ac_includes_default
26979 #include <sys/sysmacros.h>
26980 _ACEOF
26981 rm -f conftest.$ac_objext
26982 if { (ac_try="$ac_compile"
26983 case "(($ac_try" in
26984   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26985   *) ac_try_echo=$ac_try;;
26986 esac
26987 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26988   (eval "$ac_compile") 2>conftest.er1
26989   ac_status=$?
26990   grep -v '^ *+' conftest.er1 >conftest.err
26991   rm -f conftest.er1
26992   cat conftest.err >&5
26993   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26994   (exit $ac_status); } && {
26995          test -z "$ac_c_werror_flag" ||
26996          test ! -s conftest.err
26997        } && test -s conftest.$ac_objext; then
26998   ac_header_compiler=yes
26999 else
27000   echo "$as_me: failed program was:" >&5
27001 sed 's/^/| /' conftest.$ac_ext >&5
27002
27003         ac_header_compiler=no
27004 fi
27005
27006 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27007 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27008 echo "${ECHO_T}$ac_header_compiler" >&6; }
27009
27010 # Is the header present?
27011 { echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
27012 echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6; }
27013 cat >conftest.$ac_ext <<_ACEOF
27014 /* confdefs.h.  */
27015 _ACEOF
27016 cat confdefs.h >>conftest.$ac_ext
27017 cat >>conftest.$ac_ext <<_ACEOF
27018 /* end confdefs.h.  */
27019 #include <sys/sysmacros.h>
27020 _ACEOF
27021 if { (ac_try="$ac_cpp conftest.$ac_ext"
27022 case "(($ac_try" in
27023   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27024   *) ac_try_echo=$ac_try;;
27025 esac
27026 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27027   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27028   ac_status=$?
27029   grep -v '^ *+' conftest.er1 >conftest.err
27030   rm -f conftest.er1
27031   cat conftest.err >&5
27032   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27033   (exit $ac_status); } >/dev/null && {
27034          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
27035          test ! -s conftest.err
27036        }; then
27037   ac_header_preproc=yes
27038 else
27039   echo "$as_me: failed program was:" >&5
27040 sed 's/^/| /' conftest.$ac_ext >&5
27041
27042   ac_header_preproc=no
27043 fi
27044
27045 rm -f conftest.err conftest.$ac_ext
27046 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27047 echo "${ECHO_T}$ac_header_preproc" >&6; }
27048
27049 # So?  What about this header?
27050 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27051   yes:no: )
27052     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
27053 echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
27054     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5
27055 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&2;}
27056     ac_header_preproc=yes
27057     ;;
27058   no:yes:* )
27059     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
27060 echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
27061     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h:     check for missing prerequisite headers?" >&5
27062 echo "$as_me: WARNING: sys/sysmacros.h:     check for missing prerequisite headers?" >&2;}
27063     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5
27064 echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;}
27065     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h:     section \"Present But Cannot Be Compiled\"" >&5
27066 echo "$as_me: WARNING: sys/sysmacros.h:     section \"Present But Cannot Be Compiled\"" >&2;}
27067     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
27068 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
27069     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5
27070 echo "$as_me: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&2;}
27071     ( cat <<\_ASBOX
27072 ## ---------------------------------------- ##
27073 ## Report this to linux-nfs@vger.kernel.org ##
27074 ## ---------------------------------------- ##
27075 _ASBOX
27076      ) | sed "s/^/$as_me: WARNING:     /" >&2
27077     ;;
27078 esac
27079 { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
27080 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
27081 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
27082   echo $ECHO_N "(cached) $ECHO_C" >&6
27083 else
27084   ac_cv_header_sys_sysmacros_h=$ac_header_preproc
27085 fi
27086 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
27087 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
27088
27089 fi
27090 if test $ac_cv_header_sys_sysmacros_h = yes; then
27091
27092 cat >>confdefs.h <<\_ACEOF
27093 #define MAJOR_IN_SYSMACROS 1
27094 _ACEOF
27095
27096 fi
27097
27098
27099   fi
27100 fi
27101
27102 #AC_FUNC_MALLOC
27103 { echo "$as_me:$LINENO: checking for working memcmp" >&5
27104 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6; }
27105 if test "${ac_cv_func_memcmp_working+set}" = set; then
27106   echo $ECHO_N "(cached) $ECHO_C" >&6
27107 else
27108   if test "$cross_compiling" = yes; then
27109   ac_cv_func_memcmp_working=no
27110 else
27111   cat >conftest.$ac_ext <<_ACEOF
27112 /* confdefs.h.  */
27113 _ACEOF
27114 cat confdefs.h >>conftest.$ac_ext
27115 cat >>conftest.$ac_ext <<_ACEOF
27116 /* end confdefs.h.  */
27117 $ac_includes_default
27118 int
27119 main ()
27120 {
27121
27122   /* Some versions of memcmp are not 8-bit clean.  */
27123   char c0 = '\100', c1 = '\200', c2 = '\201';
27124   if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
27125     return 1;
27126
27127   /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
27128      or more and with at least one buffer not starting on a 4-byte boundary.
27129      William Lewis provided this test program.   */
27130   {
27131     char foo[21];
27132     char bar[21];
27133     int i;
27134     for (i = 0; i < 4; i++)
27135       {
27136         char *a = foo + i;
27137         char *b = bar + i;
27138         strcpy (a, "--------01111111");
27139         strcpy (b, "--------10000000");
27140         if (memcmp (a, b, 16) >= 0)
27141           return 1;
27142       }
27143     return 0;
27144   }
27145
27146   ;
27147   return 0;
27148 }
27149 _ACEOF
27150 rm -f conftest$ac_exeext
27151 if { (ac_try="$ac_link"
27152 case "(($ac_try" in
27153   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27154   *) ac_try_echo=$ac_try;;
27155 esac
27156 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27157   (eval "$ac_link") 2>&5
27158   ac_status=$?
27159   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27160   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27161   { (case "(($ac_try" in
27162   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27163   *) ac_try_echo=$ac_try;;
27164 esac
27165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27166   (eval "$ac_try") 2>&5
27167   ac_status=$?
27168   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27169   (exit $ac_status); }; }; then
27170   ac_cv_func_memcmp_working=yes
27171 else
27172   echo "$as_me: program exited with status $ac_status" >&5
27173 echo "$as_me: failed program was:" >&5
27174 sed 's/^/| /' conftest.$ac_ext >&5
27175
27176 ( exit $ac_status )
27177 ac_cv_func_memcmp_working=no
27178 fi
27179 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27180 fi
27181
27182
27183 fi
27184 { echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
27185 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6; }
27186 test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
27187   *" memcmp.$ac_objext "* ) ;;
27188   *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
27189  ;;
27190 esac
27191
27192
27193 #AC_FUNC_REALLOC
27194
27195
27196 for ac_header in sys/select.h sys/socket.h
27197 do
27198 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27199 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27200   { echo "$as_me:$LINENO: checking for $ac_header" >&5
27201 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27202 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27203   echo $ECHO_N "(cached) $ECHO_C" >&6
27204 fi
27205 ac_res=`eval echo '${'$as_ac_Header'}'`
27206                { echo "$as_me:$LINENO: result: $ac_res" >&5
27207 echo "${ECHO_T}$ac_res" >&6; }
27208 else
27209   # Is the header compilable?
27210 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
27211 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
27212 cat >conftest.$ac_ext <<_ACEOF
27213 /* confdefs.h.  */
27214 _ACEOF
27215 cat confdefs.h >>conftest.$ac_ext
27216 cat >>conftest.$ac_ext <<_ACEOF
27217 /* end confdefs.h.  */
27218 $ac_includes_default
27219 #include <$ac_header>
27220 _ACEOF
27221 rm -f conftest.$ac_objext
27222 if { (ac_try="$ac_compile"
27223 case "(($ac_try" in
27224   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27225   *) ac_try_echo=$ac_try;;
27226 esac
27227 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27228   (eval "$ac_compile") 2>conftest.er1
27229   ac_status=$?
27230   grep -v '^ *+' conftest.er1 >conftest.err
27231   rm -f conftest.er1
27232   cat conftest.err >&5
27233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27234   (exit $ac_status); } && {
27235          test -z "$ac_c_werror_flag" ||
27236          test ! -s conftest.err
27237        } && test -s conftest.$ac_objext; then
27238   ac_header_compiler=yes
27239 else
27240   echo "$as_me: failed program was:" >&5
27241 sed 's/^/| /' conftest.$ac_ext >&5
27242
27243         ac_header_compiler=no
27244 fi
27245
27246 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27247 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27248 echo "${ECHO_T}$ac_header_compiler" >&6; }
27249
27250 # Is the header present?
27251 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
27252 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
27253 cat >conftest.$ac_ext <<_ACEOF
27254 /* confdefs.h.  */
27255 _ACEOF
27256 cat confdefs.h >>conftest.$ac_ext
27257 cat >>conftest.$ac_ext <<_ACEOF
27258 /* end confdefs.h.  */
27259 #include <$ac_header>
27260 _ACEOF
27261 if { (ac_try="$ac_cpp conftest.$ac_ext"
27262 case "(($ac_try" in
27263   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27264   *) ac_try_echo=$ac_try;;
27265 esac
27266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27267   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27268   ac_status=$?
27269   grep -v '^ *+' conftest.er1 >conftest.err
27270   rm -f conftest.er1
27271   cat conftest.err >&5
27272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27273   (exit $ac_status); } >/dev/null && {
27274          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
27275          test ! -s conftest.err
27276        }; then
27277   ac_header_preproc=yes
27278 else
27279   echo "$as_me: failed program was:" >&5
27280 sed 's/^/| /' conftest.$ac_ext >&5
27281
27282   ac_header_preproc=no
27283 fi
27284
27285 rm -f conftest.err conftest.$ac_ext
27286 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27287 echo "${ECHO_T}$ac_header_preproc" >&6; }
27288
27289 # So?  What about this header?
27290 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27291   yes:no: )
27292     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27293 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27294     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27295 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27296     ac_header_preproc=yes
27297     ;;
27298   no:yes:* )
27299     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27300 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27301     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
27302 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
27303     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27304 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27305     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
27306 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
27307     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27308 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27309     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27310 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27311     ( cat <<\_ASBOX
27312 ## ---------------------------------------- ##
27313 ## Report this to linux-nfs@vger.kernel.org ##
27314 ## ---------------------------------------- ##
27315 _ASBOX
27316      ) | sed "s/^/$as_me: WARNING:     /" >&2
27317     ;;
27318 esac
27319 { echo "$as_me:$LINENO: checking for $ac_header" >&5
27320 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27321 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27322   echo $ECHO_N "(cached) $ECHO_C" >&6
27323 else
27324   eval "$as_ac_Header=\$ac_header_preproc"
27325 fi
27326 ac_res=`eval echo '${'$as_ac_Header'}'`
27327                { echo "$as_me:$LINENO: result: $ac_res" >&5
27328 echo "${ECHO_T}$ac_res" >&6; }
27329
27330 fi
27331 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27332   cat >>confdefs.h <<_ACEOF
27333 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27334 _ACEOF
27335
27336 fi
27337
27338 done
27339
27340 { echo "$as_me:$LINENO: checking types of arguments for select" >&5
27341 echo $ECHO_N "checking types of arguments for select... $ECHO_C" >&6; }
27342 if test "${ac_cv_func_select_args+set}" = set; then
27343   echo $ECHO_N "(cached) $ECHO_C" >&6
27344 else
27345   for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
27346  for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
27347   for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
27348    cat >conftest.$ac_ext <<_ACEOF
27349 /* confdefs.h.  */
27350 _ACEOF
27351 cat confdefs.h >>conftest.$ac_ext
27352 cat >>conftest.$ac_ext <<_ACEOF
27353 /* end confdefs.h.  */
27354 $ac_includes_default
27355 #ifdef HAVE_SYS_SELECT_H
27356 # include <sys/select.h>
27357 #endif
27358 #ifdef HAVE_SYS_SOCKET_H
27359 # include <sys/socket.h>
27360 #endif
27361
27362 int
27363 main ()
27364 {
27365 extern int select ($ac_arg1,
27366                                             $ac_arg234, $ac_arg234, $ac_arg234,
27367                                             $ac_arg5);
27368   ;
27369   return 0;
27370 }
27371 _ACEOF
27372 rm -f conftest.$ac_objext
27373 if { (ac_try="$ac_compile"
27374 case "(($ac_try" in
27375   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27376   *) ac_try_echo=$ac_try;;
27377 esac
27378 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27379   (eval "$ac_compile") 2>conftest.er1
27380   ac_status=$?
27381   grep -v '^ *+' conftest.er1 >conftest.err
27382   rm -f conftest.er1
27383   cat conftest.err >&5
27384   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27385   (exit $ac_status); } && {
27386          test -z "$ac_c_werror_flag" ||
27387          test ! -s conftest.err
27388        } && test -s conftest.$ac_objext; then
27389   ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
27390 else
27391   echo "$as_me: failed program was:" >&5
27392 sed 's/^/| /' conftest.$ac_ext >&5
27393
27394
27395 fi
27396
27397 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27398   done
27399  done
27400 done
27401 # Provide a safe default value.
27402 : ${ac_cv_func_select_args='int,int *,struct timeval *'}
27403
27404 fi
27405 { echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5
27406 echo "${ECHO_T}$ac_cv_func_select_args" >&6; }
27407 ac_save_IFS=$IFS; IFS=','
27408 set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
27409 IFS=$ac_save_IFS
27410 shift
27411
27412 cat >>confdefs.h <<_ACEOF
27413 #define SELECT_TYPE_ARG1 $1
27414 _ACEOF
27415
27416
27417 cat >>confdefs.h <<_ACEOF
27418 #define SELECT_TYPE_ARG234 ($2)
27419 _ACEOF
27420
27421
27422 cat >>confdefs.h <<_ACEOF
27423 #define SELECT_TYPE_ARG5 ($3)
27424 _ACEOF
27425
27426 rm -f conftest*
27427
27428 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
27429 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
27430 if test "${ac_cv_type_signal+set}" = set; then
27431   echo $ECHO_N "(cached) $ECHO_C" >&6
27432 else
27433   cat >conftest.$ac_ext <<_ACEOF
27434 /* confdefs.h.  */
27435 _ACEOF
27436 cat confdefs.h >>conftest.$ac_ext
27437 cat >>conftest.$ac_ext <<_ACEOF
27438 /* end confdefs.h.  */
27439 #include <sys/types.h>
27440 #include <signal.h>
27441
27442 int
27443 main ()
27444 {
27445 return *(signal (0, 0)) (0) == 1;
27446   ;
27447   return 0;
27448 }
27449 _ACEOF
27450 rm -f conftest.$ac_objext
27451 if { (ac_try="$ac_compile"
27452 case "(($ac_try" in
27453   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27454   *) ac_try_echo=$ac_try;;
27455 esac
27456 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27457   (eval "$ac_compile") 2>conftest.er1
27458   ac_status=$?
27459   grep -v '^ *+' conftest.er1 >conftest.err
27460   rm -f conftest.er1
27461   cat conftest.err >&5
27462   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27463   (exit $ac_status); } && {
27464          test -z "$ac_c_werror_flag" ||
27465          test ! -s conftest.err
27466        } && test -s conftest.$ac_objext; then
27467   ac_cv_type_signal=int
27468 else
27469   echo "$as_me: failed program was:" >&5
27470 sed 's/^/| /' conftest.$ac_ext >&5
27471
27472         ac_cv_type_signal=void
27473 fi
27474
27475 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27476 fi
27477 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
27478 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
27479
27480 cat >>confdefs.h <<_ACEOF
27481 #define RETSIGTYPE $ac_cv_type_signal
27482 _ACEOF
27483
27484
27485 { echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5
27486 echo $ECHO_N "checking whether stat accepts an empty string... $ECHO_C" >&6; }
27487 if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then
27488   echo $ECHO_N "(cached) $ECHO_C" >&6
27489 else
27490   if test "$cross_compiling" = yes; then
27491   ac_cv_func_stat_empty_string_bug=yes
27492 else
27493   cat >conftest.$ac_ext <<_ACEOF
27494 /* confdefs.h.  */
27495 _ACEOF
27496 cat confdefs.h >>conftest.$ac_ext
27497 cat >>conftest.$ac_ext <<_ACEOF
27498 /* end confdefs.h.  */
27499 $ac_includes_default
27500 int
27501 main ()
27502 {
27503 struct stat sbuf;
27504   return stat ("", &sbuf) == 0;
27505   ;
27506   return 0;
27507 }
27508 _ACEOF
27509 rm -f conftest$ac_exeext
27510 if { (ac_try="$ac_link"
27511 case "(($ac_try" in
27512   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27513   *) ac_try_echo=$ac_try;;
27514 esac
27515 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27516   (eval "$ac_link") 2>&5
27517   ac_status=$?
27518   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27519   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27520   { (case "(($ac_try" in
27521   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27522   *) ac_try_echo=$ac_try;;
27523 esac
27524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27525   (eval "$ac_try") 2>&5
27526   ac_status=$?
27527   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27528   (exit $ac_status); }; }; then
27529   ac_cv_func_stat_empty_string_bug=no
27530 else
27531   echo "$as_me: program exited with status $ac_status" >&5
27532 echo "$as_me: failed program was:" >&5
27533 sed 's/^/| /' conftest.$ac_ext >&5
27534
27535 ( exit $ac_status )
27536 ac_cv_func_stat_empty_string_bug=yes
27537 fi
27538 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27539 fi
27540
27541
27542 fi
27543 { echo "$as_me:$LINENO: result: $ac_cv_func_stat_empty_string_bug" >&5
27544 echo "${ECHO_T}$ac_cv_func_stat_empty_string_bug" >&6; }
27545 if test $ac_cv_func_stat_empty_string_bug = yes; then
27546   case " $LIBOBJS " in
27547   *" stat.$ac_objext "* ) ;;
27548   *) LIBOBJS="$LIBOBJS stat.$ac_objext"
27549  ;;
27550 esac
27551
27552
27553 cat >>confdefs.h <<_ACEOF
27554 #define HAVE_STAT_EMPTY_STRING_BUG 1
27555 _ACEOF
27556
27557 fi
27558
27559
27560 for ac_func in vprintf
27561 do
27562 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27563 { echo "$as_me:$LINENO: checking for $ac_func" >&5
27564 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
27565 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
27566   echo $ECHO_N "(cached) $ECHO_C" >&6
27567 else
27568   cat >conftest.$ac_ext <<_ACEOF
27569 /* confdefs.h.  */
27570 _ACEOF
27571 cat confdefs.h >>conftest.$ac_ext
27572 cat >>conftest.$ac_ext <<_ACEOF
27573 /* end confdefs.h.  */
27574 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27575    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27576 #define $ac_func innocuous_$ac_func
27577
27578 /* System header to define __stub macros and hopefully few prototypes,
27579     which can conflict with char $ac_func (); below.
27580     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27581     <limits.h> exists even on freestanding compilers.  */
27582
27583 #ifdef __STDC__
27584 # include <limits.h>
27585 #else
27586 # include <assert.h>
27587 #endif
27588
27589 #undef $ac_func
27590
27591 /* Override any GCC internal prototype to avoid an error.
27592    Use char because int might match the return type of a GCC
27593    builtin and then its argument prototype would still apply.  */
27594 #ifdef __cplusplus
27595 extern "C"
27596 #endif
27597 char $ac_func ();
27598 /* The GNU C library defines this for functions which it implements
27599     to always fail with ENOSYS.  Some functions are actually named
27600     something starting with __ and the normal name is an alias.  */
27601 #if defined __stub_$ac_func || defined __stub___$ac_func
27602 choke me
27603 #endif
27604
27605 int
27606 main ()
27607 {
27608 return $ac_func ();
27609   ;
27610   return 0;
27611 }
27612 _ACEOF
27613 rm -f conftest.$ac_objext conftest$ac_exeext
27614 if { (ac_try="$ac_link"
27615 case "(($ac_try" in
27616   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27617   *) ac_try_echo=$ac_try;;
27618 esac
27619 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27620   (eval "$ac_link") 2>conftest.er1
27621   ac_status=$?
27622   grep -v '^ *+' conftest.er1 >conftest.err
27623   rm -f conftest.er1
27624   cat conftest.err >&5
27625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27626   (exit $ac_status); } && {
27627          test -z "$ac_c_werror_flag" ||
27628          test ! -s conftest.err
27629        } && test -s conftest$ac_exeext &&
27630        $as_test_x conftest$ac_exeext; then
27631   eval "$as_ac_var=yes"
27632 else
27633   echo "$as_me: failed program was:" >&5
27634 sed 's/^/| /' conftest.$ac_ext >&5
27635
27636         eval "$as_ac_var=no"
27637 fi
27638
27639 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27640       conftest$ac_exeext conftest.$ac_ext
27641 fi
27642 ac_res=`eval echo '${'$as_ac_var'}'`
27643                { echo "$as_me:$LINENO: result: $ac_res" >&5
27644 echo "${ECHO_T}$ac_res" >&6; }
27645 if test `eval echo '${'$as_ac_var'}'` = yes; then
27646   cat >>confdefs.h <<_ACEOF
27647 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27648 _ACEOF
27649
27650 { echo "$as_me:$LINENO: checking for _doprnt" >&5
27651 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6; }
27652 if test "${ac_cv_func__doprnt+set}" = set; then
27653   echo $ECHO_N "(cached) $ECHO_C" >&6
27654 else
27655   cat >conftest.$ac_ext <<_ACEOF
27656 /* confdefs.h.  */
27657 _ACEOF
27658 cat confdefs.h >>conftest.$ac_ext
27659 cat >>conftest.$ac_ext <<_ACEOF
27660 /* end confdefs.h.  */
27661 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
27662    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27663 #define _doprnt innocuous__doprnt
27664
27665 /* System header to define __stub macros and hopefully few prototypes,
27666     which can conflict with char _doprnt (); below.
27667     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27668     <limits.h> exists even on freestanding compilers.  */
27669
27670 #ifdef __STDC__
27671 # include <limits.h>
27672 #else
27673 # include <assert.h>
27674 #endif
27675
27676 #undef _doprnt
27677
27678 /* Override any GCC internal prototype to avoid an error.
27679    Use char because int might match the return type of a GCC
27680    builtin and then its argument prototype would still apply.  */
27681 #ifdef __cplusplus
27682 extern "C"
27683 #endif
27684 char _doprnt ();
27685 /* The GNU C library defines this for functions which it implements
27686     to always fail with ENOSYS.  Some functions are actually named
27687     something starting with __ and the normal name is an alias.  */
27688 #if defined __stub__doprnt || defined __stub____doprnt
27689 choke me
27690 #endif
27691
27692 int
27693 main ()
27694 {
27695 return _doprnt ();
27696   ;
27697   return 0;
27698 }
27699 _ACEOF
27700 rm -f conftest.$ac_objext conftest$ac_exeext
27701 if { (ac_try="$ac_link"
27702 case "(($ac_try" in
27703   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27704   *) ac_try_echo=$ac_try;;
27705 esac
27706 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27707   (eval "$ac_link") 2>conftest.er1
27708   ac_status=$?
27709   grep -v '^ *+' conftest.er1 >conftest.err
27710   rm -f conftest.er1
27711   cat conftest.err >&5
27712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27713   (exit $ac_status); } && {
27714          test -z "$ac_c_werror_flag" ||
27715          test ! -s conftest.err
27716        } && test -s conftest$ac_exeext &&
27717        $as_test_x conftest$ac_exeext; then
27718   ac_cv_func__doprnt=yes
27719 else
27720   echo "$as_me: failed program was:" >&5
27721 sed 's/^/| /' conftest.$ac_ext >&5
27722
27723         ac_cv_func__doprnt=no
27724 fi
27725
27726 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27727       conftest$ac_exeext conftest.$ac_ext
27728 fi
27729 { echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
27730 echo "${ECHO_T}$ac_cv_func__doprnt" >&6; }
27731 if test $ac_cv_func__doprnt = yes; then
27732
27733 cat >>confdefs.h <<\_ACEOF
27734 #define HAVE_DOPRNT 1
27735 _ACEOF
27736
27737 fi
27738
27739 fi
27740 done
27741
27742
27743
27744
27745
27746
27747
27748
27749
27750
27751
27752
27753
27754
27755
27756
27757
27758
27759
27760
27761
27762
27763
27764
27765
27766
27767
27768
27769
27770
27771
27772 for ac_func in alarm atexit dup2 fdatasync ftruncate getcwd \
27773                gethostbyaddr gethostbyname gethostname getmntent \
27774                gettimeofday hasmntopt inet_ntoa innetgr memset mkdir pathconf \
27775                realpath rmdir select socket strcasecmp strchr strdup \
27776                strerror strrchr strtol strtoul sigprocmask
27777 do
27778 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27779 { echo "$as_me:$LINENO: checking for $ac_func" >&5
27780 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
27781 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
27782   echo $ECHO_N "(cached) $ECHO_C" >&6
27783 else
27784   cat >conftest.$ac_ext <<_ACEOF
27785 /* confdefs.h.  */
27786 _ACEOF
27787 cat confdefs.h >>conftest.$ac_ext
27788 cat >>conftest.$ac_ext <<_ACEOF
27789 /* end confdefs.h.  */
27790 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27791    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27792 #define $ac_func innocuous_$ac_func
27793
27794 /* System header to define __stub macros and hopefully few prototypes,
27795     which can conflict with char $ac_func (); below.
27796     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27797     <limits.h> exists even on freestanding compilers.  */
27798
27799 #ifdef __STDC__
27800 # include <limits.h>
27801 #else
27802 # include <assert.h>
27803 #endif
27804
27805 #undef $ac_func
27806
27807 /* Override any GCC internal prototype to avoid an error.
27808    Use char because int might match the return type of a GCC
27809    builtin and then its argument prototype would still apply.  */
27810 #ifdef __cplusplus
27811 extern "C"
27812 #endif
27813 char $ac_func ();
27814 /* The GNU C library defines this for functions which it implements
27815     to always fail with ENOSYS.  Some functions are actually named
27816     something starting with __ and the normal name is an alias.  */
27817 #if defined __stub_$ac_func || defined __stub___$ac_func
27818 choke me
27819 #endif
27820
27821 int
27822 main ()
27823 {
27824 return $ac_func ();
27825   ;
27826   return 0;
27827 }
27828 _ACEOF
27829 rm -f conftest.$ac_objext conftest$ac_exeext
27830 if { (ac_try="$ac_link"
27831 case "(($ac_try" in
27832   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27833   *) ac_try_echo=$ac_try;;
27834 esac
27835 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27836   (eval "$ac_link") 2>conftest.er1
27837   ac_status=$?
27838   grep -v '^ *+' conftest.er1 >conftest.err
27839   rm -f conftest.er1
27840   cat conftest.err >&5
27841   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27842   (exit $ac_status); } && {
27843          test -z "$ac_c_werror_flag" ||
27844          test ! -s conftest.err
27845        } && test -s conftest$ac_exeext &&
27846        $as_test_x conftest$ac_exeext; then
27847   eval "$as_ac_var=yes"
27848 else
27849   echo "$as_me: failed program was:" >&5
27850 sed 's/^/| /' conftest.$ac_ext >&5
27851
27852         eval "$as_ac_var=no"
27853 fi
27854
27855 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27856       conftest$ac_exeext conftest.$ac_ext
27857 fi
27858 ac_res=`eval echo '${'$as_ac_var'}'`
27859                { echo "$as_me:$LINENO: result: $ac_res" >&5
27860 echo "${ECHO_T}$ac_res" >&6; }
27861 if test `eval echo '${'$as_ac_var'}'` = yes; then
27862   cat >>confdefs.h <<_ACEOF
27863 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27864 _ACEOF
27865
27866 fi
27867 done
27868
27869
27870
27871 { echo "$as_me:$LINENO: checking for short" >&5
27872 echo $ECHO_N "checking for short... $ECHO_C" >&6; }
27873 if test "${ac_cv_type_short+set}" = set; then
27874   echo $ECHO_N "(cached) $ECHO_C" >&6
27875 else
27876   cat >conftest.$ac_ext <<_ACEOF
27877 /* confdefs.h.  */
27878 _ACEOF
27879 cat confdefs.h >>conftest.$ac_ext
27880 cat >>conftest.$ac_ext <<_ACEOF
27881 /* end confdefs.h.  */
27882 $ac_includes_default
27883 typedef short ac__type_new_;
27884 int
27885 main ()
27886 {
27887 if ((ac__type_new_ *) 0)
27888   return 0;
27889 if (sizeof (ac__type_new_))
27890   return 0;
27891   ;
27892   return 0;
27893 }
27894 _ACEOF
27895 rm -f conftest.$ac_objext
27896 if { (ac_try="$ac_compile"
27897 case "(($ac_try" in
27898   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27899   *) ac_try_echo=$ac_try;;
27900 esac
27901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27902   (eval "$ac_compile") 2>conftest.er1
27903   ac_status=$?
27904   grep -v '^ *+' conftest.er1 >conftest.err
27905   rm -f conftest.er1
27906   cat conftest.err >&5
27907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27908   (exit $ac_status); } && {
27909          test -z "$ac_c_werror_flag" ||
27910          test ! -s conftest.err
27911        } && test -s conftest.$ac_objext; then
27912   ac_cv_type_short=yes
27913 else
27914   echo "$as_me: failed program was:" >&5
27915 sed 's/^/| /' conftest.$ac_ext >&5
27916
27917         ac_cv_type_short=no
27918 fi
27919
27920 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27921 fi
27922 { echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
27923 echo "${ECHO_T}$ac_cv_type_short" >&6; }
27924
27925 # The cast to long int works around a bug in the HP C Compiler
27926 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27927 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27928 # This bug is HP SR number 8606223364.
27929 { echo "$as_me:$LINENO: checking size of short" >&5
27930 echo $ECHO_N "checking size of short... $ECHO_C" >&6; }
27931 if test "${ac_cv_sizeof_short+set}" = set; then
27932   echo $ECHO_N "(cached) $ECHO_C" >&6
27933 else
27934   if test "$cross_compiling" = yes; then
27935   # Depending upon the size, compute the lo and hi bounds.
27936 cat >conftest.$ac_ext <<_ACEOF
27937 /* confdefs.h.  */
27938 _ACEOF
27939 cat confdefs.h >>conftest.$ac_ext
27940 cat >>conftest.$ac_ext <<_ACEOF
27941 /* end confdefs.h.  */
27942 $ac_includes_default
27943    typedef short ac__type_sizeof_;
27944 int
27945 main ()
27946 {
27947 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
27948 test_array [0] = 0
27949
27950   ;
27951   return 0;
27952 }
27953 _ACEOF
27954 rm -f conftest.$ac_objext
27955 if { (ac_try="$ac_compile"
27956 case "(($ac_try" in
27957   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27958   *) ac_try_echo=$ac_try;;
27959 esac
27960 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27961   (eval "$ac_compile") 2>conftest.er1
27962   ac_status=$?
27963   grep -v '^ *+' conftest.er1 >conftest.err
27964   rm -f conftest.er1
27965   cat conftest.err >&5
27966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27967   (exit $ac_status); } && {
27968          test -z "$ac_c_werror_flag" ||
27969          test ! -s conftest.err
27970        } && test -s conftest.$ac_objext; then
27971   ac_lo=0 ac_mid=0
27972   while :; do
27973     cat >conftest.$ac_ext <<_ACEOF
27974 /* confdefs.h.  */
27975 _ACEOF
27976 cat confdefs.h >>conftest.$ac_ext
27977 cat >>conftest.$ac_ext <<_ACEOF
27978 /* end confdefs.h.  */
27979 $ac_includes_default
27980    typedef short ac__type_sizeof_;
27981 int
27982 main ()
27983 {
27984 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
27985 test_array [0] = 0
27986
27987   ;
27988   return 0;
27989 }
27990 _ACEOF
27991 rm -f conftest.$ac_objext
27992 if { (ac_try="$ac_compile"
27993 case "(($ac_try" in
27994   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27995   *) ac_try_echo=$ac_try;;
27996 esac
27997 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27998   (eval "$ac_compile") 2>conftest.er1
27999   ac_status=$?
28000   grep -v '^ *+' conftest.er1 >conftest.err
28001   rm -f conftest.er1
28002   cat conftest.err >&5
28003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28004   (exit $ac_status); } && {
28005          test -z "$ac_c_werror_flag" ||
28006          test ! -s conftest.err
28007        } && test -s conftest.$ac_objext; then
28008   ac_hi=$ac_mid; break
28009 else
28010   echo "$as_me: failed program was:" >&5
28011 sed 's/^/| /' conftest.$ac_ext >&5
28012
28013         ac_lo=`expr $ac_mid + 1`
28014                         if test $ac_lo -le $ac_mid; then
28015                           ac_lo= ac_hi=
28016                           break
28017                         fi
28018                         ac_mid=`expr 2 '*' $ac_mid + 1`
28019 fi
28020
28021 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28022   done
28023 else
28024   echo "$as_me: failed program was:" >&5
28025 sed 's/^/| /' conftest.$ac_ext >&5
28026
28027         cat >conftest.$ac_ext <<_ACEOF
28028 /* confdefs.h.  */
28029 _ACEOF
28030 cat confdefs.h >>conftest.$ac_ext
28031 cat >>conftest.$ac_ext <<_ACEOF
28032 /* end confdefs.h.  */
28033 $ac_includes_default
28034    typedef short ac__type_sizeof_;
28035 int
28036 main ()
28037 {
28038 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
28039 test_array [0] = 0
28040
28041   ;
28042   return 0;
28043 }
28044 _ACEOF
28045 rm -f conftest.$ac_objext
28046 if { (ac_try="$ac_compile"
28047 case "(($ac_try" in
28048   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28049   *) ac_try_echo=$ac_try;;
28050 esac
28051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28052   (eval "$ac_compile") 2>conftest.er1
28053   ac_status=$?
28054   grep -v '^ *+' conftest.er1 >conftest.err
28055   rm -f conftest.er1
28056   cat conftest.err >&5
28057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28058   (exit $ac_status); } && {
28059          test -z "$ac_c_werror_flag" ||
28060          test ! -s conftest.err
28061        } && test -s conftest.$ac_objext; then
28062   ac_hi=-1 ac_mid=-1
28063   while :; do
28064     cat >conftest.$ac_ext <<_ACEOF
28065 /* confdefs.h.  */
28066 _ACEOF
28067 cat confdefs.h >>conftest.$ac_ext
28068 cat >>conftest.$ac_ext <<_ACEOF
28069 /* end confdefs.h.  */
28070 $ac_includes_default
28071    typedef short ac__type_sizeof_;
28072 int
28073 main ()
28074 {
28075 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
28076 test_array [0] = 0
28077
28078   ;
28079   return 0;
28080 }
28081 _ACEOF
28082 rm -f conftest.$ac_objext
28083 if { (ac_try="$ac_compile"
28084 case "(($ac_try" in
28085   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28086   *) ac_try_echo=$ac_try;;
28087 esac
28088 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28089   (eval "$ac_compile") 2>conftest.er1
28090   ac_status=$?
28091   grep -v '^ *+' conftest.er1 >conftest.err
28092   rm -f conftest.er1
28093   cat conftest.err >&5
28094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28095   (exit $ac_status); } && {
28096          test -z "$ac_c_werror_flag" ||
28097          test ! -s conftest.err
28098        } && test -s conftest.$ac_objext; then
28099   ac_lo=$ac_mid; break
28100 else
28101   echo "$as_me: failed program was:" >&5
28102 sed 's/^/| /' conftest.$ac_ext >&5
28103
28104         ac_hi=`expr '(' $ac_mid ')' - 1`
28105                         if test $ac_mid -le $ac_hi; then
28106                           ac_lo= ac_hi=
28107                           break
28108                         fi
28109                         ac_mid=`expr 2 '*' $ac_mid`
28110 fi
28111
28112 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28113   done
28114 else
28115   echo "$as_me: failed program was:" >&5
28116 sed 's/^/| /' conftest.$ac_ext >&5
28117
28118         ac_lo= ac_hi=
28119 fi
28120
28121 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28122 fi
28123
28124 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28125 # Binary search between lo and hi bounds.
28126 while test "x$ac_lo" != "x$ac_hi"; do
28127   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
28128   cat >conftest.$ac_ext <<_ACEOF
28129 /* confdefs.h.  */
28130 _ACEOF
28131 cat confdefs.h >>conftest.$ac_ext
28132 cat >>conftest.$ac_ext <<_ACEOF
28133 /* end confdefs.h.  */
28134 $ac_includes_default
28135    typedef short ac__type_sizeof_;
28136 int
28137 main ()
28138 {
28139 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
28140 test_array [0] = 0
28141
28142   ;
28143   return 0;
28144 }
28145 _ACEOF
28146 rm -f conftest.$ac_objext
28147 if { (ac_try="$ac_compile"
28148 case "(($ac_try" in
28149   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28150   *) ac_try_echo=$ac_try;;
28151 esac
28152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28153   (eval "$ac_compile") 2>conftest.er1
28154   ac_status=$?
28155   grep -v '^ *+' conftest.er1 >conftest.err
28156   rm -f conftest.er1
28157   cat conftest.err >&5
28158   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28159   (exit $ac_status); } && {
28160          test -z "$ac_c_werror_flag" ||
28161          test ! -s conftest.err
28162        } && test -s conftest.$ac_objext; then
28163   ac_hi=$ac_mid
28164 else
28165   echo "$as_me: failed program was:" >&5
28166 sed 's/^/| /' conftest.$ac_ext >&5
28167
28168         ac_lo=`expr '(' $ac_mid ')' + 1`
28169 fi
28170
28171 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28172 done
28173 case $ac_lo in
28174 ?*) ac_cv_sizeof_short=$ac_lo;;
28175 '') if test "$ac_cv_type_short" = yes; then
28176      { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
28177 See \`config.log' for more details." >&5
28178 echo "$as_me: error: cannot compute sizeof (short)
28179 See \`config.log' for more details." >&2;}
28180    { (exit 77); exit 77; }; }
28181    else
28182      ac_cv_sizeof_short=0
28183    fi ;;
28184 esac
28185 else
28186   cat >conftest.$ac_ext <<_ACEOF
28187 /* confdefs.h.  */
28188 _ACEOF
28189 cat confdefs.h >>conftest.$ac_ext
28190 cat >>conftest.$ac_ext <<_ACEOF
28191 /* end confdefs.h.  */
28192 $ac_includes_default
28193    typedef short ac__type_sizeof_;
28194 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
28195 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
28196 #include <stdio.h>
28197 #include <stdlib.h>
28198 int
28199 main ()
28200 {
28201
28202   FILE *f = fopen ("conftest.val", "w");
28203   if (! f)
28204     return 1;
28205   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
28206     {
28207       long int i = longval ();
28208       if (i != ((long int) (sizeof (ac__type_sizeof_))))
28209         return 1;
28210       fprintf (f, "%ld\n", i);
28211     }
28212   else
28213     {
28214       unsigned long int i = ulongval ();
28215       if (i != ((long int) (sizeof (ac__type_sizeof_))))
28216         return 1;
28217       fprintf (f, "%lu\n", i);
28218     }
28219   return ferror (f) || fclose (f) != 0;
28220
28221   ;
28222   return 0;
28223 }
28224 _ACEOF
28225 rm -f conftest$ac_exeext
28226 if { (ac_try="$ac_link"
28227 case "(($ac_try" in
28228   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28229   *) ac_try_echo=$ac_try;;
28230 esac
28231 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28232   (eval "$ac_link") 2>&5
28233   ac_status=$?
28234   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28235   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28236   { (case "(($ac_try" in
28237   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28238   *) ac_try_echo=$ac_try;;
28239 esac
28240 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28241   (eval "$ac_try") 2>&5
28242   ac_status=$?
28243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28244   (exit $ac_status); }; }; then
28245   ac_cv_sizeof_short=`cat conftest.val`
28246 else
28247   echo "$as_me: program exited with status $ac_status" >&5
28248 echo "$as_me: failed program was:" >&5
28249 sed 's/^/| /' conftest.$ac_ext >&5
28250
28251 ( exit $ac_status )
28252 if test "$ac_cv_type_short" = yes; then
28253      { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
28254 See \`config.log' for more details." >&5
28255 echo "$as_me: error: cannot compute sizeof (short)
28256 See \`config.log' for more details." >&2;}
28257    { (exit 77); exit 77; }; }
28258    else
28259      ac_cv_sizeof_short=0
28260    fi
28261 fi
28262 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28263 fi
28264 rm -f conftest.val
28265 fi
28266 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
28267 echo "${ECHO_T}$ac_cv_sizeof_short" >&6; }
28268
28269
28270
28271 cat >>confdefs.h <<_ACEOF
28272 #define SIZEOF_SHORT $ac_cv_sizeof_short
28273 _ACEOF
28274
28275
28276 { echo "$as_me:$LINENO: checking for int" >&5
28277 echo $ECHO_N "checking for int... $ECHO_C" >&6; }
28278 if test "${ac_cv_type_int+set}" = set; then
28279   echo $ECHO_N "(cached) $ECHO_C" >&6
28280 else
28281   cat >conftest.$ac_ext <<_ACEOF
28282 /* confdefs.h.  */
28283 _ACEOF
28284 cat confdefs.h >>conftest.$ac_ext
28285 cat >>conftest.$ac_ext <<_ACEOF
28286 /* end confdefs.h.  */
28287 $ac_includes_default
28288 typedef int ac__type_new_;
28289 int
28290 main ()
28291 {
28292 if ((ac__type_new_ *) 0)
28293   return 0;
28294 if (sizeof (ac__type_new_))
28295   return 0;
28296   ;
28297   return 0;
28298 }
28299 _ACEOF
28300 rm -f conftest.$ac_objext
28301 if { (ac_try="$ac_compile"
28302 case "(($ac_try" in
28303   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28304   *) ac_try_echo=$ac_try;;
28305 esac
28306 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28307   (eval "$ac_compile") 2>conftest.er1
28308   ac_status=$?
28309   grep -v '^ *+' conftest.er1 >conftest.err
28310   rm -f conftest.er1
28311   cat conftest.err >&5
28312   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28313   (exit $ac_status); } && {
28314          test -z "$ac_c_werror_flag" ||
28315          test ! -s conftest.err
28316        } && test -s conftest.$ac_objext; then
28317   ac_cv_type_int=yes
28318 else
28319   echo "$as_me: failed program was:" >&5
28320 sed 's/^/| /' conftest.$ac_ext >&5
28321
28322         ac_cv_type_int=no
28323 fi
28324
28325 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28326 fi
28327 { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
28328 echo "${ECHO_T}$ac_cv_type_int" >&6; }
28329
28330 # The cast to long int works around a bug in the HP C Compiler
28331 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
28332 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
28333 # This bug is HP SR number 8606223364.
28334 { echo "$as_me:$LINENO: checking size of int" >&5
28335 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
28336 if test "${ac_cv_sizeof_int+set}" = set; then
28337   echo $ECHO_N "(cached) $ECHO_C" >&6
28338 else
28339   if test "$cross_compiling" = yes; then
28340   # Depending upon the size, compute the lo and hi bounds.
28341 cat >conftest.$ac_ext <<_ACEOF
28342 /* confdefs.h.  */
28343 _ACEOF
28344 cat confdefs.h >>conftest.$ac_ext
28345 cat >>conftest.$ac_ext <<_ACEOF
28346 /* end confdefs.h.  */
28347 $ac_includes_default
28348    typedef int ac__type_sizeof_;
28349 int
28350 main ()
28351 {
28352 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
28353 test_array [0] = 0
28354
28355   ;
28356   return 0;
28357 }
28358 _ACEOF
28359 rm -f conftest.$ac_objext
28360 if { (ac_try="$ac_compile"
28361 case "(($ac_try" in
28362   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28363   *) ac_try_echo=$ac_try;;
28364 esac
28365 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28366   (eval "$ac_compile") 2>conftest.er1
28367   ac_status=$?
28368   grep -v '^ *+' conftest.er1 >conftest.err
28369   rm -f conftest.er1
28370   cat conftest.err >&5
28371   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28372   (exit $ac_status); } && {
28373          test -z "$ac_c_werror_flag" ||
28374          test ! -s conftest.err
28375        } && test -s conftest.$ac_objext; then
28376   ac_lo=0 ac_mid=0
28377   while :; do
28378     cat >conftest.$ac_ext <<_ACEOF
28379 /* confdefs.h.  */
28380 _ACEOF
28381 cat confdefs.h >>conftest.$ac_ext
28382 cat >>conftest.$ac_ext <<_ACEOF
28383 /* end confdefs.h.  */
28384 $ac_includes_default
28385    typedef int ac__type_sizeof_;
28386 int
28387 main ()
28388 {
28389 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
28390 test_array [0] = 0
28391
28392   ;
28393   return 0;
28394 }
28395 _ACEOF
28396 rm -f conftest.$ac_objext
28397 if { (ac_try="$ac_compile"
28398 case "(($ac_try" in
28399   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28400   *) ac_try_echo=$ac_try;;
28401 esac
28402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28403   (eval "$ac_compile") 2>conftest.er1
28404   ac_status=$?
28405   grep -v '^ *+' conftest.er1 >conftest.err
28406   rm -f conftest.er1
28407   cat conftest.err >&5
28408   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28409   (exit $ac_status); } && {
28410          test -z "$ac_c_werror_flag" ||
28411          test ! -s conftest.err
28412        } && test -s conftest.$ac_objext; then
28413   ac_hi=$ac_mid; break
28414 else
28415   echo "$as_me: failed program was:" >&5
28416 sed 's/^/| /' conftest.$ac_ext >&5
28417
28418         ac_lo=`expr $ac_mid + 1`
28419                         if test $ac_lo -le $ac_mid; then
28420                           ac_lo= ac_hi=
28421                           break
28422                         fi
28423                         ac_mid=`expr 2 '*' $ac_mid + 1`
28424 fi
28425
28426 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28427   done
28428 else
28429   echo "$as_me: failed program was:" >&5
28430 sed 's/^/| /' conftest.$ac_ext >&5
28431
28432         cat >conftest.$ac_ext <<_ACEOF
28433 /* confdefs.h.  */
28434 _ACEOF
28435 cat confdefs.h >>conftest.$ac_ext
28436 cat >>conftest.$ac_ext <<_ACEOF
28437 /* end confdefs.h.  */
28438 $ac_includes_default
28439    typedef int ac__type_sizeof_;
28440 int
28441 main ()
28442 {
28443 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
28444 test_array [0] = 0
28445
28446   ;
28447   return 0;
28448 }
28449 _ACEOF
28450 rm -f conftest.$ac_objext
28451 if { (ac_try="$ac_compile"
28452 case "(($ac_try" in
28453   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28454   *) ac_try_echo=$ac_try;;
28455 esac
28456 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28457   (eval "$ac_compile") 2>conftest.er1
28458   ac_status=$?
28459   grep -v '^ *+' conftest.er1 >conftest.err
28460   rm -f conftest.er1
28461   cat conftest.err >&5
28462   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28463   (exit $ac_status); } && {
28464          test -z "$ac_c_werror_flag" ||
28465          test ! -s conftest.err
28466        } && test -s conftest.$ac_objext; then
28467   ac_hi=-1 ac_mid=-1
28468   while :; do
28469     cat >conftest.$ac_ext <<_ACEOF
28470 /* confdefs.h.  */
28471 _ACEOF
28472 cat confdefs.h >>conftest.$ac_ext
28473 cat >>conftest.$ac_ext <<_ACEOF
28474 /* end confdefs.h.  */
28475 $ac_includes_default
28476    typedef int ac__type_sizeof_;
28477 int
28478 main ()
28479 {
28480 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
28481 test_array [0] = 0
28482
28483   ;
28484   return 0;
28485 }
28486 _ACEOF
28487 rm -f conftest.$ac_objext
28488 if { (ac_try="$ac_compile"
28489 case "(($ac_try" in
28490   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28491   *) ac_try_echo=$ac_try;;
28492 esac
28493 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28494   (eval "$ac_compile") 2>conftest.er1
28495   ac_status=$?
28496   grep -v '^ *+' conftest.er1 >conftest.err
28497   rm -f conftest.er1
28498   cat conftest.err >&5
28499   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28500   (exit $ac_status); } && {
28501          test -z "$ac_c_werror_flag" ||
28502          test ! -s conftest.err
28503        } && test -s conftest.$ac_objext; then
28504   ac_lo=$ac_mid; break
28505 else
28506   echo "$as_me: failed program was:" >&5
28507 sed 's/^/| /' conftest.$ac_ext >&5
28508
28509         ac_hi=`expr '(' $ac_mid ')' - 1`
28510                         if test $ac_mid -le $ac_hi; then
28511                           ac_lo= ac_hi=
28512                           break
28513                         fi
28514                         ac_mid=`expr 2 '*' $ac_mid`
28515 fi
28516
28517 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28518   done
28519 else
28520   echo "$as_me: failed program was:" >&5
28521 sed 's/^/| /' conftest.$ac_ext >&5
28522
28523         ac_lo= ac_hi=
28524 fi
28525
28526 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28527 fi
28528
28529 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28530 # Binary search between lo and hi bounds.
28531 while test "x$ac_lo" != "x$ac_hi"; do
28532   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
28533   cat >conftest.$ac_ext <<_ACEOF
28534 /* confdefs.h.  */
28535 _ACEOF
28536 cat confdefs.h >>conftest.$ac_ext
28537 cat >>conftest.$ac_ext <<_ACEOF
28538 /* end confdefs.h.  */
28539 $ac_includes_default
28540    typedef int ac__type_sizeof_;
28541 int
28542 main ()
28543 {
28544 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
28545 test_array [0] = 0
28546
28547   ;
28548   return 0;
28549 }
28550 _ACEOF
28551 rm -f conftest.$ac_objext
28552 if { (ac_try="$ac_compile"
28553 case "(($ac_try" in
28554   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28555   *) ac_try_echo=$ac_try;;
28556 esac
28557 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28558   (eval "$ac_compile") 2>conftest.er1
28559   ac_status=$?
28560   grep -v '^ *+' conftest.er1 >conftest.err
28561   rm -f conftest.er1
28562   cat conftest.err >&5
28563   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28564   (exit $ac_status); } && {
28565          test -z "$ac_c_werror_flag" ||
28566          test ! -s conftest.err
28567        } && test -s conftest.$ac_objext; then
28568   ac_hi=$ac_mid
28569 else
28570   echo "$as_me: failed program was:" >&5
28571 sed 's/^/| /' conftest.$ac_ext >&5
28572
28573         ac_lo=`expr '(' $ac_mid ')' + 1`
28574 fi
28575
28576 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28577 done
28578 case $ac_lo in
28579 ?*) ac_cv_sizeof_int=$ac_lo;;
28580 '') if test "$ac_cv_type_int" = yes; then
28581      { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
28582 See \`config.log' for more details." >&5
28583 echo "$as_me: error: cannot compute sizeof (int)
28584 See \`config.log' for more details." >&2;}
28585    { (exit 77); exit 77; }; }
28586    else
28587      ac_cv_sizeof_int=0
28588    fi ;;
28589 esac
28590 else
28591   cat >conftest.$ac_ext <<_ACEOF
28592 /* confdefs.h.  */
28593 _ACEOF
28594 cat confdefs.h >>conftest.$ac_ext
28595 cat >>conftest.$ac_ext <<_ACEOF
28596 /* end confdefs.h.  */
28597 $ac_includes_default
28598    typedef int ac__type_sizeof_;
28599 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
28600 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
28601 #include <stdio.h>
28602 #include <stdlib.h>
28603 int
28604 main ()
28605 {
28606
28607   FILE *f = fopen ("conftest.val", "w");
28608   if (! f)
28609     return 1;
28610   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
28611     {
28612       long int i = longval ();
28613       if (i != ((long int) (sizeof (ac__type_sizeof_))))
28614         return 1;
28615       fprintf (f, "%ld\n", i);
28616     }
28617   else
28618     {
28619       unsigned long int i = ulongval ();
28620       if (i != ((long int) (sizeof (ac__type_sizeof_))))
28621         return 1;
28622       fprintf (f, "%lu\n", i);
28623     }
28624   return ferror (f) || fclose (f) != 0;
28625
28626   ;
28627   return 0;
28628 }
28629 _ACEOF
28630 rm -f conftest$ac_exeext
28631 if { (ac_try="$ac_link"
28632 case "(($ac_try" in
28633   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28634   *) ac_try_echo=$ac_try;;
28635 esac
28636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28637   (eval "$ac_link") 2>&5
28638   ac_status=$?
28639   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28640   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28641   { (case "(($ac_try" in
28642   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28643   *) ac_try_echo=$ac_try;;
28644 esac
28645 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28646   (eval "$ac_try") 2>&5
28647   ac_status=$?
28648   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28649   (exit $ac_status); }; }; then
28650   ac_cv_sizeof_int=`cat conftest.val`
28651 else
28652   echo "$as_me: program exited with status $ac_status" >&5
28653 echo "$as_me: failed program was:" >&5
28654 sed 's/^/| /' conftest.$ac_ext >&5
28655
28656 ( exit $ac_status )
28657 if test "$ac_cv_type_int" = yes; then
28658      { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
28659 See \`config.log' for more details." >&5
28660 echo "$as_me: error: cannot compute sizeof (int)
28661 See \`config.log' for more details." >&2;}
28662    { (exit 77); exit 77; }; }
28663    else
28664      ac_cv_sizeof_int=0
28665    fi
28666 fi
28667 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28668 fi
28669 rm -f conftest.val
28670 fi
28671 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
28672 echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
28673
28674
28675
28676 cat >>confdefs.h <<_ACEOF
28677 #define SIZEOF_INT $ac_cv_sizeof_int
28678 _ACEOF
28679
28680
28681 { echo "$as_me:$LINENO: checking for long" >&5
28682 echo $ECHO_N "checking for long... $ECHO_C" >&6; }
28683 if test "${ac_cv_type_long+set}" = set; then
28684   echo $ECHO_N "(cached) $ECHO_C" >&6
28685 else
28686   cat >conftest.$ac_ext <<_ACEOF
28687 /* confdefs.h.  */
28688 _ACEOF
28689 cat confdefs.h >>conftest.$ac_ext
28690 cat >>conftest.$ac_ext <<_ACEOF
28691 /* end confdefs.h.  */
28692 $ac_includes_default
28693 typedef long ac__type_new_;
28694 int
28695 main ()
28696 {
28697 if ((ac__type_new_ *) 0)
28698   return 0;
28699 if (sizeof (ac__type_new_))
28700   return 0;
28701   ;
28702   return 0;
28703 }
28704 _ACEOF
28705 rm -f conftest.$ac_objext
28706 if { (ac_try="$ac_compile"
28707 case "(($ac_try" in
28708   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28709   *) ac_try_echo=$ac_try;;
28710 esac
28711 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28712   (eval "$ac_compile") 2>conftest.er1
28713   ac_status=$?
28714   grep -v '^ *+' conftest.er1 >conftest.err
28715   rm -f conftest.er1
28716   cat conftest.err >&5
28717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28718   (exit $ac_status); } && {
28719          test -z "$ac_c_werror_flag" ||
28720          test ! -s conftest.err
28721        } && test -s conftest.$ac_objext; then
28722   ac_cv_type_long=yes
28723 else
28724   echo "$as_me: failed program was:" >&5
28725 sed 's/^/| /' conftest.$ac_ext >&5
28726
28727         ac_cv_type_long=no
28728 fi
28729
28730 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28731 fi
28732 { echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
28733 echo "${ECHO_T}$ac_cv_type_long" >&6; }
28734
28735 # The cast to long int works around a bug in the HP C Compiler
28736 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
28737 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
28738 # This bug is HP SR number 8606223364.
28739 { echo "$as_me:$LINENO: checking size of long" >&5
28740 echo $ECHO_N "checking size of long... $ECHO_C" >&6; }
28741 if test "${ac_cv_sizeof_long+set}" = set; then
28742   echo $ECHO_N "(cached) $ECHO_C" >&6
28743 else
28744   if test "$cross_compiling" = yes; then
28745   # Depending upon the size, compute the lo and hi bounds.
28746 cat >conftest.$ac_ext <<_ACEOF
28747 /* confdefs.h.  */
28748 _ACEOF
28749 cat confdefs.h >>conftest.$ac_ext
28750 cat >>conftest.$ac_ext <<_ACEOF
28751 /* end confdefs.h.  */
28752 $ac_includes_default
28753    typedef long ac__type_sizeof_;
28754 int
28755 main ()
28756 {
28757 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
28758 test_array [0] = 0
28759
28760   ;
28761   return 0;
28762 }
28763 _ACEOF
28764 rm -f conftest.$ac_objext
28765 if { (ac_try="$ac_compile"
28766 case "(($ac_try" in
28767   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28768   *) ac_try_echo=$ac_try;;
28769 esac
28770 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28771   (eval "$ac_compile") 2>conftest.er1
28772   ac_status=$?
28773   grep -v '^ *+' conftest.er1 >conftest.err
28774   rm -f conftest.er1
28775   cat conftest.err >&5
28776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28777   (exit $ac_status); } && {
28778          test -z "$ac_c_werror_flag" ||
28779          test ! -s conftest.err
28780        } && test -s conftest.$ac_objext; then
28781   ac_lo=0 ac_mid=0
28782   while :; do
28783     cat >conftest.$ac_ext <<_ACEOF
28784 /* confdefs.h.  */
28785 _ACEOF
28786 cat confdefs.h >>conftest.$ac_ext
28787 cat >>conftest.$ac_ext <<_ACEOF
28788 /* end confdefs.h.  */
28789 $ac_includes_default
28790    typedef long ac__type_sizeof_;
28791 int
28792 main ()
28793 {
28794 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
28795 test_array [0] = 0
28796
28797   ;
28798   return 0;
28799 }
28800 _ACEOF
28801 rm -f conftest.$ac_objext
28802 if { (ac_try="$ac_compile"
28803 case "(($ac_try" in
28804   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28805   *) ac_try_echo=$ac_try;;
28806 esac
28807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28808   (eval "$ac_compile") 2>conftest.er1
28809   ac_status=$?
28810   grep -v '^ *+' conftest.er1 >conftest.err
28811   rm -f conftest.er1
28812   cat conftest.err >&5
28813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28814   (exit $ac_status); } && {
28815          test -z "$ac_c_werror_flag" ||
28816          test ! -s conftest.err
28817        } && test -s conftest.$ac_objext; then
28818   ac_hi=$ac_mid; break
28819 else
28820   echo "$as_me: failed program was:" >&5
28821 sed 's/^/| /' conftest.$ac_ext >&5
28822
28823         ac_lo=`expr $ac_mid + 1`
28824                         if test $ac_lo -le $ac_mid; then
28825                           ac_lo= ac_hi=
28826                           break
28827                         fi
28828                         ac_mid=`expr 2 '*' $ac_mid + 1`
28829 fi
28830
28831 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28832   done
28833 else
28834   echo "$as_me: failed program was:" >&5
28835 sed 's/^/| /' conftest.$ac_ext >&5
28836
28837         cat >conftest.$ac_ext <<_ACEOF
28838 /* confdefs.h.  */
28839 _ACEOF
28840 cat confdefs.h >>conftest.$ac_ext
28841 cat >>conftest.$ac_ext <<_ACEOF
28842 /* end confdefs.h.  */
28843 $ac_includes_default
28844    typedef long ac__type_sizeof_;
28845 int
28846 main ()
28847 {
28848 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
28849 test_array [0] = 0
28850
28851   ;
28852   return 0;
28853 }
28854 _ACEOF
28855 rm -f conftest.$ac_objext
28856 if { (ac_try="$ac_compile"
28857 case "(($ac_try" in
28858   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28859   *) ac_try_echo=$ac_try;;
28860 esac
28861 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28862   (eval "$ac_compile") 2>conftest.er1
28863   ac_status=$?
28864   grep -v '^ *+' conftest.er1 >conftest.err
28865   rm -f conftest.er1
28866   cat conftest.err >&5
28867   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28868   (exit $ac_status); } && {
28869          test -z "$ac_c_werror_flag" ||
28870          test ! -s conftest.err
28871        } && test -s conftest.$ac_objext; then
28872   ac_hi=-1 ac_mid=-1
28873   while :; do
28874     cat >conftest.$ac_ext <<_ACEOF
28875 /* confdefs.h.  */
28876 _ACEOF
28877 cat confdefs.h >>conftest.$ac_ext
28878 cat >>conftest.$ac_ext <<_ACEOF
28879 /* end confdefs.h.  */
28880 $ac_includes_default
28881    typedef long ac__type_sizeof_;
28882 int
28883 main ()
28884 {
28885 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
28886 test_array [0] = 0
28887
28888   ;
28889   return 0;
28890 }
28891 _ACEOF
28892 rm -f conftest.$ac_objext
28893 if { (ac_try="$ac_compile"
28894 case "(($ac_try" in
28895   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28896   *) ac_try_echo=$ac_try;;
28897 esac
28898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28899   (eval "$ac_compile") 2>conftest.er1
28900   ac_status=$?
28901   grep -v '^ *+' conftest.er1 >conftest.err
28902   rm -f conftest.er1
28903   cat conftest.err >&5
28904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28905   (exit $ac_status); } && {
28906          test -z "$ac_c_werror_flag" ||
28907          test ! -s conftest.err
28908        } && test -s conftest.$ac_objext; then
28909   ac_lo=$ac_mid; break
28910 else
28911   echo "$as_me: failed program was:" >&5
28912 sed 's/^/| /' conftest.$ac_ext >&5
28913
28914         ac_hi=`expr '(' $ac_mid ')' - 1`
28915                         if test $ac_mid -le $ac_hi; then
28916                           ac_lo= ac_hi=
28917                           break
28918                         fi
28919                         ac_mid=`expr 2 '*' $ac_mid`
28920 fi
28921
28922 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28923   done
28924 else
28925   echo "$as_me: failed program was:" >&5
28926 sed 's/^/| /' conftest.$ac_ext >&5
28927
28928         ac_lo= ac_hi=
28929 fi
28930
28931 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28932 fi
28933
28934 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28935 # Binary search between lo and hi bounds.
28936 while test "x$ac_lo" != "x$ac_hi"; do
28937   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
28938   cat >conftest.$ac_ext <<_ACEOF
28939 /* confdefs.h.  */
28940 _ACEOF
28941 cat confdefs.h >>conftest.$ac_ext
28942 cat >>conftest.$ac_ext <<_ACEOF
28943 /* end confdefs.h.  */
28944 $ac_includes_default
28945    typedef long ac__type_sizeof_;
28946 int
28947 main ()
28948 {
28949 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
28950 test_array [0] = 0
28951
28952   ;
28953   return 0;
28954 }
28955 _ACEOF
28956 rm -f conftest.$ac_objext
28957 if { (ac_try="$ac_compile"
28958 case "(($ac_try" in
28959   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28960   *) ac_try_echo=$ac_try;;
28961 esac
28962 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28963   (eval "$ac_compile") 2>conftest.er1
28964   ac_status=$?
28965   grep -v '^ *+' conftest.er1 >conftest.err
28966   rm -f conftest.er1
28967   cat conftest.err >&5
28968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28969   (exit $ac_status); } && {
28970          test -z "$ac_c_werror_flag" ||
28971          test ! -s conftest.err
28972        } && test -s conftest.$ac_objext; then
28973   ac_hi=$ac_mid
28974 else
28975   echo "$as_me: failed program was:" >&5
28976 sed 's/^/| /' conftest.$ac_ext >&5
28977
28978         ac_lo=`expr '(' $ac_mid ')' + 1`
28979 fi
28980
28981 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28982 done
28983 case $ac_lo in
28984 ?*) ac_cv_sizeof_long=$ac_lo;;
28985 '') if test "$ac_cv_type_long" = yes; then
28986      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
28987 See \`config.log' for more details." >&5
28988 echo "$as_me: error: cannot compute sizeof (long)
28989 See \`config.log' for more details." >&2;}
28990    { (exit 77); exit 77; }; }
28991    else
28992      ac_cv_sizeof_long=0
28993    fi ;;
28994 esac
28995 else
28996   cat >conftest.$ac_ext <<_ACEOF
28997 /* confdefs.h.  */
28998 _ACEOF
28999 cat confdefs.h >>conftest.$ac_ext
29000 cat >>conftest.$ac_ext <<_ACEOF
29001 /* end confdefs.h.  */
29002 $ac_includes_default
29003    typedef long ac__type_sizeof_;
29004 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
29005 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
29006 #include <stdio.h>
29007 #include <stdlib.h>
29008 int
29009 main ()
29010 {
29011
29012   FILE *f = fopen ("conftest.val", "w");
29013   if (! f)
29014     return 1;
29015   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
29016     {
29017       long int i = longval ();
29018       if (i != ((long int) (sizeof (ac__type_sizeof_))))
29019         return 1;
29020       fprintf (f, "%ld\n", i);
29021     }
29022   else
29023     {
29024       unsigned long int i = ulongval ();
29025       if (i != ((long int) (sizeof (ac__type_sizeof_))))
29026         return 1;
29027       fprintf (f, "%lu\n", i);
29028     }
29029   return ferror (f) || fclose (f) != 0;
29030
29031   ;
29032   return 0;
29033 }
29034 _ACEOF
29035 rm -f conftest$ac_exeext
29036 if { (ac_try="$ac_link"
29037 case "(($ac_try" in
29038   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29039   *) ac_try_echo=$ac_try;;
29040 esac
29041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29042   (eval "$ac_link") 2>&5
29043   ac_status=$?
29044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29045   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29046   { (case "(($ac_try" in
29047   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29048   *) ac_try_echo=$ac_try;;
29049 esac
29050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29051   (eval "$ac_try") 2>&5
29052   ac_status=$?
29053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29054   (exit $ac_status); }; }; then
29055   ac_cv_sizeof_long=`cat conftest.val`
29056 else
29057   echo "$as_me: program exited with status $ac_status" >&5
29058 echo "$as_me: failed program was:" >&5
29059 sed 's/^/| /' conftest.$ac_ext >&5
29060
29061 ( exit $ac_status )
29062 if test "$ac_cv_type_long" = yes; then
29063      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
29064 See \`config.log' for more details." >&5
29065 echo "$as_me: error: cannot compute sizeof (long)
29066 See \`config.log' for more details." >&2;}
29067    { (exit 77); exit 77; }; }
29068    else
29069      ac_cv_sizeof_long=0
29070    fi
29071 fi
29072 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29073 fi
29074 rm -f conftest.val
29075 fi
29076 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
29077 echo "${ECHO_T}$ac_cv_sizeof_long" >&6; }
29078
29079
29080
29081 cat >>confdefs.h <<_ACEOF
29082 #define SIZEOF_LONG $ac_cv_sizeof_long
29083 _ACEOF
29084
29085
29086 { echo "$as_me:$LINENO: checking for size_t" >&5
29087 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
29088 if test "${ac_cv_type_size_t+set}" = set; then
29089   echo $ECHO_N "(cached) $ECHO_C" >&6
29090 else
29091   cat >conftest.$ac_ext <<_ACEOF
29092 /* confdefs.h.  */
29093 _ACEOF
29094 cat confdefs.h >>conftest.$ac_ext
29095 cat >>conftest.$ac_ext <<_ACEOF
29096 /* end confdefs.h.  */
29097 $ac_includes_default
29098 typedef size_t ac__type_new_;
29099 int
29100 main ()
29101 {
29102 if ((ac__type_new_ *) 0)
29103   return 0;
29104 if (sizeof (ac__type_new_))
29105   return 0;
29106   ;
29107   return 0;
29108 }
29109 _ACEOF
29110 rm -f conftest.$ac_objext
29111 if { (ac_try="$ac_compile"
29112 case "(($ac_try" in
29113   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29114   *) ac_try_echo=$ac_try;;
29115 esac
29116 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29117   (eval "$ac_compile") 2>conftest.er1
29118   ac_status=$?
29119   grep -v '^ *+' conftest.er1 >conftest.err
29120   rm -f conftest.er1
29121   cat conftest.err >&5
29122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29123   (exit $ac_status); } && {
29124          test -z "$ac_c_werror_flag" ||
29125          test ! -s conftest.err
29126        } && test -s conftest.$ac_objext; then
29127   ac_cv_type_size_t=yes
29128 else
29129   echo "$as_me: failed program was:" >&5
29130 sed 's/^/| /' conftest.$ac_ext >&5
29131
29132         ac_cv_type_size_t=no
29133 fi
29134
29135 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29136 fi
29137 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
29138 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
29139
29140 # The cast to long int works around a bug in the HP C Compiler
29141 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
29142 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
29143 # This bug is HP SR number 8606223364.
29144 { echo "$as_me:$LINENO: checking size of size_t" >&5
29145 echo $ECHO_N "checking size of size_t... $ECHO_C" >&6; }
29146 if test "${ac_cv_sizeof_size_t+set}" = set; then
29147   echo $ECHO_N "(cached) $ECHO_C" >&6
29148 else
29149   if test "$cross_compiling" = yes; then
29150   # Depending upon the size, compute the lo and hi bounds.
29151 cat >conftest.$ac_ext <<_ACEOF
29152 /* confdefs.h.  */
29153 _ACEOF
29154 cat confdefs.h >>conftest.$ac_ext
29155 cat >>conftest.$ac_ext <<_ACEOF
29156 /* end confdefs.h.  */
29157 $ac_includes_default
29158    typedef size_t ac__type_sizeof_;
29159 int
29160 main ()
29161 {
29162 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
29163 test_array [0] = 0
29164
29165   ;
29166   return 0;
29167 }
29168 _ACEOF
29169 rm -f conftest.$ac_objext
29170 if { (ac_try="$ac_compile"
29171 case "(($ac_try" in
29172   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29173   *) ac_try_echo=$ac_try;;
29174 esac
29175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29176   (eval "$ac_compile") 2>conftest.er1
29177   ac_status=$?
29178   grep -v '^ *+' conftest.er1 >conftest.err
29179   rm -f conftest.er1
29180   cat conftest.err >&5
29181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29182   (exit $ac_status); } && {
29183          test -z "$ac_c_werror_flag" ||
29184          test ! -s conftest.err
29185        } && test -s conftest.$ac_objext; then
29186   ac_lo=0 ac_mid=0
29187   while :; do
29188     cat >conftest.$ac_ext <<_ACEOF
29189 /* confdefs.h.  */
29190 _ACEOF
29191 cat confdefs.h >>conftest.$ac_ext
29192 cat >>conftest.$ac_ext <<_ACEOF
29193 /* end confdefs.h.  */
29194 $ac_includes_default
29195    typedef size_t ac__type_sizeof_;
29196 int
29197 main ()
29198 {
29199 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
29200 test_array [0] = 0
29201
29202   ;
29203   return 0;
29204 }
29205 _ACEOF
29206 rm -f conftest.$ac_objext
29207 if { (ac_try="$ac_compile"
29208 case "(($ac_try" in
29209   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29210   *) ac_try_echo=$ac_try;;
29211 esac
29212 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29213   (eval "$ac_compile") 2>conftest.er1
29214   ac_status=$?
29215   grep -v '^ *+' conftest.er1 >conftest.err
29216   rm -f conftest.er1
29217   cat conftest.err >&5
29218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29219   (exit $ac_status); } && {
29220          test -z "$ac_c_werror_flag" ||
29221          test ! -s conftest.err
29222        } && test -s conftest.$ac_objext; then
29223   ac_hi=$ac_mid; break
29224 else
29225   echo "$as_me: failed program was:" >&5
29226 sed 's/^/| /' conftest.$ac_ext >&5
29227
29228         ac_lo=`expr $ac_mid + 1`
29229                         if test $ac_lo -le $ac_mid; then
29230                           ac_lo= ac_hi=
29231                           break
29232                         fi
29233                         ac_mid=`expr 2 '*' $ac_mid + 1`
29234 fi
29235
29236 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29237   done
29238 else
29239   echo "$as_me: failed program was:" >&5
29240 sed 's/^/| /' conftest.$ac_ext >&5
29241
29242         cat >conftest.$ac_ext <<_ACEOF
29243 /* confdefs.h.  */
29244 _ACEOF
29245 cat confdefs.h >>conftest.$ac_ext
29246 cat >>conftest.$ac_ext <<_ACEOF
29247 /* end confdefs.h.  */
29248 $ac_includes_default
29249    typedef size_t ac__type_sizeof_;
29250 int
29251 main ()
29252 {
29253 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
29254 test_array [0] = 0
29255
29256   ;
29257   return 0;
29258 }
29259 _ACEOF
29260 rm -f conftest.$ac_objext
29261 if { (ac_try="$ac_compile"
29262 case "(($ac_try" in
29263   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29264   *) ac_try_echo=$ac_try;;
29265 esac
29266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29267   (eval "$ac_compile") 2>conftest.er1
29268   ac_status=$?
29269   grep -v '^ *+' conftest.er1 >conftest.err
29270   rm -f conftest.er1
29271   cat conftest.err >&5
29272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29273   (exit $ac_status); } && {
29274          test -z "$ac_c_werror_flag" ||
29275          test ! -s conftest.err
29276        } && test -s conftest.$ac_objext; then
29277   ac_hi=-1 ac_mid=-1
29278   while :; do
29279     cat >conftest.$ac_ext <<_ACEOF
29280 /* confdefs.h.  */
29281 _ACEOF
29282 cat confdefs.h >>conftest.$ac_ext
29283 cat >>conftest.$ac_ext <<_ACEOF
29284 /* end confdefs.h.  */
29285 $ac_includes_default
29286    typedef size_t ac__type_sizeof_;
29287 int
29288 main ()
29289 {
29290 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
29291 test_array [0] = 0
29292
29293   ;
29294   return 0;
29295 }
29296 _ACEOF
29297 rm -f conftest.$ac_objext
29298 if { (ac_try="$ac_compile"
29299 case "(($ac_try" in
29300   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29301   *) ac_try_echo=$ac_try;;
29302 esac
29303 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29304   (eval "$ac_compile") 2>conftest.er1
29305   ac_status=$?
29306   grep -v '^ *+' conftest.er1 >conftest.err
29307   rm -f conftest.er1
29308   cat conftest.err >&5
29309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29310   (exit $ac_status); } && {
29311          test -z "$ac_c_werror_flag" ||
29312          test ! -s conftest.err
29313        } && test -s conftest.$ac_objext; then
29314   ac_lo=$ac_mid; break
29315 else
29316   echo "$as_me: failed program was:" >&5
29317 sed 's/^/| /' conftest.$ac_ext >&5
29318
29319         ac_hi=`expr '(' $ac_mid ')' - 1`
29320                         if test $ac_mid -le $ac_hi; then
29321                           ac_lo= ac_hi=
29322                           break
29323                         fi
29324                         ac_mid=`expr 2 '*' $ac_mid`
29325 fi
29326
29327 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29328   done
29329 else
29330   echo "$as_me: failed program was:" >&5
29331 sed 's/^/| /' conftest.$ac_ext >&5
29332
29333         ac_lo= ac_hi=
29334 fi
29335
29336 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29337 fi
29338
29339 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29340 # Binary search between lo and hi bounds.
29341 while test "x$ac_lo" != "x$ac_hi"; do
29342   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
29343   cat >conftest.$ac_ext <<_ACEOF
29344 /* confdefs.h.  */
29345 _ACEOF
29346 cat confdefs.h >>conftest.$ac_ext
29347 cat >>conftest.$ac_ext <<_ACEOF
29348 /* end confdefs.h.  */
29349 $ac_includes_default
29350    typedef size_t ac__type_sizeof_;
29351 int
29352 main ()
29353 {
29354 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
29355 test_array [0] = 0
29356
29357   ;
29358   return 0;
29359 }
29360 _ACEOF
29361 rm -f conftest.$ac_objext
29362 if { (ac_try="$ac_compile"
29363 case "(($ac_try" in
29364   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29365   *) ac_try_echo=$ac_try;;
29366 esac
29367 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29368   (eval "$ac_compile") 2>conftest.er1
29369   ac_status=$?
29370   grep -v '^ *+' conftest.er1 >conftest.err
29371   rm -f conftest.er1
29372   cat conftest.err >&5
29373   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29374   (exit $ac_status); } && {
29375          test -z "$ac_c_werror_flag" ||
29376          test ! -s conftest.err
29377        } && test -s conftest.$ac_objext; then
29378   ac_hi=$ac_mid
29379 else
29380   echo "$as_me: failed program was:" >&5
29381 sed 's/^/| /' conftest.$ac_ext >&5
29382
29383         ac_lo=`expr '(' $ac_mid ')' + 1`
29384 fi
29385
29386 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29387 done
29388 case $ac_lo in
29389 ?*) ac_cv_sizeof_size_t=$ac_lo;;
29390 '') if test "$ac_cv_type_size_t" = yes; then
29391      { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
29392 See \`config.log' for more details." >&5
29393 echo "$as_me: error: cannot compute sizeof (size_t)
29394 See \`config.log' for more details." >&2;}
29395    { (exit 77); exit 77; }; }
29396    else
29397      ac_cv_sizeof_size_t=0
29398    fi ;;
29399 esac
29400 else
29401   cat >conftest.$ac_ext <<_ACEOF
29402 /* confdefs.h.  */
29403 _ACEOF
29404 cat confdefs.h >>conftest.$ac_ext
29405 cat >>conftest.$ac_ext <<_ACEOF
29406 /* end confdefs.h.  */
29407 $ac_includes_default
29408    typedef size_t ac__type_sizeof_;
29409 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
29410 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
29411 #include <stdio.h>
29412 #include <stdlib.h>
29413 int
29414 main ()
29415 {
29416
29417   FILE *f = fopen ("conftest.val", "w");
29418   if (! f)
29419     return 1;
29420   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
29421     {
29422       long int i = longval ();
29423       if (i != ((long int) (sizeof (ac__type_sizeof_))))
29424         return 1;
29425       fprintf (f, "%ld\n", i);
29426     }
29427   else
29428     {
29429       unsigned long int i = ulongval ();
29430       if (i != ((long int) (sizeof (ac__type_sizeof_))))
29431         return 1;
29432       fprintf (f, "%lu\n", i);
29433     }
29434   return ferror (f) || fclose (f) != 0;
29435
29436   ;
29437   return 0;
29438 }
29439 _ACEOF
29440 rm -f conftest$ac_exeext
29441 if { (ac_try="$ac_link"
29442 case "(($ac_try" in
29443   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29444   *) ac_try_echo=$ac_try;;
29445 esac
29446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29447   (eval "$ac_link") 2>&5
29448   ac_status=$?
29449   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29450   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29451   { (case "(($ac_try" in
29452   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29453   *) ac_try_echo=$ac_try;;
29454 esac
29455 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29456   (eval "$ac_try") 2>&5
29457   ac_status=$?
29458   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29459   (exit $ac_status); }; }; then
29460   ac_cv_sizeof_size_t=`cat conftest.val`
29461 else
29462   echo "$as_me: program exited with status $ac_status" >&5
29463 echo "$as_me: failed program was:" >&5
29464 sed 's/^/| /' conftest.$ac_ext >&5
29465
29466 ( exit $ac_status )
29467 if test "$ac_cv_type_size_t" = yes; then
29468      { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
29469 See \`config.log' for more details." >&5
29470 echo "$as_me: error: cannot compute sizeof (size_t)
29471 See \`config.log' for more details." >&2;}
29472    { (exit 77); exit 77; }; }
29473    else
29474      ac_cv_sizeof_size_t=0
29475    fi
29476 fi
29477 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29478 fi
29479 rm -f conftest.val
29480 fi
29481 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
29482 echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6; }
29483
29484
29485
29486 cat >>confdefs.h <<_ACEOF
29487 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
29488 _ACEOF
29489
29490
29491 { echo "$as_me:$LINENO: checking for socklen_t" >&5
29492 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; }
29493 if test "${ac_cv_type_socklen_t+set}" = set; then
29494   echo $ECHO_N "(cached) $ECHO_C" >&6
29495 else
29496   cat >conftest.$ac_ext <<_ACEOF
29497 /* confdefs.h.  */
29498 _ACEOF
29499 cat confdefs.h >>conftest.$ac_ext
29500 cat >>conftest.$ac_ext <<_ACEOF
29501 /* end confdefs.h.  */
29502 $ac_includes_default
29503 typedef socklen_t ac__type_new_;
29504 int
29505 main ()
29506 {
29507 if ((ac__type_new_ *) 0)
29508   return 0;
29509 if (sizeof (ac__type_new_))
29510   return 0;
29511   ;
29512   return 0;
29513 }
29514 _ACEOF
29515 rm -f conftest.$ac_objext
29516 if { (ac_try="$ac_compile"
29517 case "(($ac_try" in
29518   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29519   *) ac_try_echo=$ac_try;;
29520 esac
29521 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29522   (eval "$ac_compile") 2>conftest.er1
29523   ac_status=$?
29524   grep -v '^ *+' conftest.er1 >conftest.err
29525   rm -f conftest.er1
29526   cat conftest.err >&5
29527   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29528   (exit $ac_status); } && {
29529          test -z "$ac_c_werror_flag" ||
29530          test ! -s conftest.err
29531        } && test -s conftest.$ac_objext; then
29532   ac_cv_type_socklen_t=yes
29533 else
29534   echo "$as_me: failed program was:" >&5
29535 sed 's/^/| /' conftest.$ac_ext >&5
29536
29537         ac_cv_type_socklen_t=no
29538 fi
29539
29540 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29541 fi
29542 { echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
29543 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6; }
29544
29545 # The cast to long int works around a bug in the HP C Compiler
29546 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
29547 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
29548 # This bug is HP SR number 8606223364.
29549 { echo "$as_me:$LINENO: checking size of socklen_t" >&5
29550 echo $ECHO_N "checking size of socklen_t... $ECHO_C" >&6; }
29551 if test "${ac_cv_sizeof_socklen_t+set}" = set; then
29552   echo $ECHO_N "(cached) $ECHO_C" >&6
29553 else
29554   if test "$cross_compiling" = yes; then
29555   # Depending upon the size, compute the lo and hi bounds.
29556 cat >conftest.$ac_ext <<_ACEOF
29557 /* confdefs.h.  */
29558 _ACEOF
29559 cat confdefs.h >>conftest.$ac_ext
29560 cat >>conftest.$ac_ext <<_ACEOF
29561 /* end confdefs.h.  */
29562 $ac_includes_default
29563    typedef socklen_t ac__type_sizeof_;
29564 int
29565 main ()
29566 {
29567 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
29568 test_array [0] = 0
29569
29570   ;
29571   return 0;
29572 }
29573 _ACEOF
29574 rm -f conftest.$ac_objext
29575 if { (ac_try="$ac_compile"
29576 case "(($ac_try" in
29577   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29578   *) ac_try_echo=$ac_try;;
29579 esac
29580 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29581   (eval "$ac_compile") 2>conftest.er1
29582   ac_status=$?
29583   grep -v '^ *+' conftest.er1 >conftest.err
29584   rm -f conftest.er1
29585   cat conftest.err >&5
29586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29587   (exit $ac_status); } && {
29588          test -z "$ac_c_werror_flag" ||
29589          test ! -s conftest.err
29590        } && test -s conftest.$ac_objext; then
29591   ac_lo=0 ac_mid=0
29592   while :; do
29593     cat >conftest.$ac_ext <<_ACEOF
29594 /* confdefs.h.  */
29595 _ACEOF
29596 cat confdefs.h >>conftest.$ac_ext
29597 cat >>conftest.$ac_ext <<_ACEOF
29598 /* end confdefs.h.  */
29599 $ac_includes_default
29600    typedef socklen_t ac__type_sizeof_;
29601 int
29602 main ()
29603 {
29604 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
29605 test_array [0] = 0
29606
29607   ;
29608   return 0;
29609 }
29610 _ACEOF
29611 rm -f conftest.$ac_objext
29612 if { (ac_try="$ac_compile"
29613 case "(($ac_try" in
29614   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29615   *) ac_try_echo=$ac_try;;
29616 esac
29617 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29618   (eval "$ac_compile") 2>conftest.er1
29619   ac_status=$?
29620   grep -v '^ *+' conftest.er1 >conftest.err
29621   rm -f conftest.er1
29622   cat conftest.err >&5
29623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29624   (exit $ac_status); } && {
29625          test -z "$ac_c_werror_flag" ||
29626          test ! -s conftest.err
29627        } && test -s conftest.$ac_objext; then
29628   ac_hi=$ac_mid; break
29629 else
29630   echo "$as_me: failed program was:" >&5
29631 sed 's/^/| /' conftest.$ac_ext >&5
29632
29633         ac_lo=`expr $ac_mid + 1`
29634                         if test $ac_lo -le $ac_mid; then
29635                           ac_lo= ac_hi=
29636                           break
29637                         fi
29638                         ac_mid=`expr 2 '*' $ac_mid + 1`
29639 fi
29640
29641 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29642   done
29643 else
29644   echo "$as_me: failed program was:" >&5
29645 sed 's/^/| /' conftest.$ac_ext >&5
29646
29647         cat >conftest.$ac_ext <<_ACEOF
29648 /* confdefs.h.  */
29649 _ACEOF
29650 cat confdefs.h >>conftest.$ac_ext
29651 cat >>conftest.$ac_ext <<_ACEOF
29652 /* end confdefs.h.  */
29653 $ac_includes_default
29654    typedef socklen_t ac__type_sizeof_;
29655 int
29656 main ()
29657 {
29658 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
29659 test_array [0] = 0
29660
29661   ;
29662   return 0;
29663 }
29664 _ACEOF
29665 rm -f conftest.$ac_objext
29666 if { (ac_try="$ac_compile"
29667 case "(($ac_try" in
29668   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29669   *) ac_try_echo=$ac_try;;
29670 esac
29671 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29672   (eval "$ac_compile") 2>conftest.er1
29673   ac_status=$?
29674   grep -v '^ *+' conftest.er1 >conftest.err
29675   rm -f conftest.er1
29676   cat conftest.err >&5
29677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29678   (exit $ac_status); } && {
29679          test -z "$ac_c_werror_flag" ||
29680          test ! -s conftest.err
29681        } && test -s conftest.$ac_objext; then
29682   ac_hi=-1 ac_mid=-1
29683   while :; do
29684     cat >conftest.$ac_ext <<_ACEOF
29685 /* confdefs.h.  */
29686 _ACEOF
29687 cat confdefs.h >>conftest.$ac_ext
29688 cat >>conftest.$ac_ext <<_ACEOF
29689 /* end confdefs.h.  */
29690 $ac_includes_default
29691    typedef socklen_t ac__type_sizeof_;
29692 int
29693 main ()
29694 {
29695 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
29696 test_array [0] = 0
29697
29698   ;
29699   return 0;
29700 }
29701 _ACEOF
29702 rm -f conftest.$ac_objext
29703 if { (ac_try="$ac_compile"
29704 case "(($ac_try" in
29705   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29706   *) ac_try_echo=$ac_try;;
29707 esac
29708 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29709   (eval "$ac_compile") 2>conftest.er1
29710   ac_status=$?
29711   grep -v '^ *+' conftest.er1 >conftest.err
29712   rm -f conftest.er1
29713   cat conftest.err >&5
29714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29715   (exit $ac_status); } && {
29716          test -z "$ac_c_werror_flag" ||
29717          test ! -s conftest.err
29718        } && test -s conftest.$ac_objext; then
29719   ac_lo=$ac_mid; break
29720 else
29721   echo "$as_me: failed program was:" >&5
29722 sed 's/^/| /' conftest.$ac_ext >&5
29723
29724         ac_hi=`expr '(' $ac_mid ')' - 1`
29725                         if test $ac_mid -le $ac_hi; then
29726                           ac_lo= ac_hi=
29727                           break
29728                         fi
29729                         ac_mid=`expr 2 '*' $ac_mid`
29730 fi
29731
29732 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29733   done
29734 else
29735   echo "$as_me: failed program was:" >&5
29736 sed 's/^/| /' conftest.$ac_ext >&5
29737
29738         ac_lo= ac_hi=
29739 fi
29740
29741 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29742 fi
29743
29744 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29745 # Binary search between lo and hi bounds.
29746 while test "x$ac_lo" != "x$ac_hi"; do
29747   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
29748   cat >conftest.$ac_ext <<_ACEOF
29749 /* confdefs.h.  */
29750 _ACEOF
29751 cat confdefs.h >>conftest.$ac_ext
29752 cat >>conftest.$ac_ext <<_ACEOF
29753 /* end confdefs.h.  */
29754 $ac_includes_default
29755    typedef socklen_t ac__type_sizeof_;
29756 int
29757 main ()
29758 {
29759 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
29760 test_array [0] = 0
29761
29762   ;
29763   return 0;
29764 }
29765 _ACEOF
29766 rm -f conftest.$ac_objext
29767 if { (ac_try="$ac_compile"
29768 case "(($ac_try" in
29769   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29770   *) ac_try_echo=$ac_try;;
29771 esac
29772 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29773   (eval "$ac_compile") 2>conftest.er1
29774   ac_status=$?
29775   grep -v '^ *+' conftest.er1 >conftest.err
29776   rm -f conftest.er1
29777   cat conftest.err >&5
29778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29779   (exit $ac_status); } && {
29780          test -z "$ac_c_werror_flag" ||
29781          test ! -s conftest.err
29782        } && test -s conftest.$ac_objext; then
29783   ac_hi=$ac_mid
29784 else
29785   echo "$as_me: failed program was:" >&5
29786 sed 's/^/| /' conftest.$ac_ext >&5
29787
29788         ac_lo=`expr '(' $ac_mid ')' + 1`
29789 fi
29790
29791 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29792 done
29793 case $ac_lo in
29794 ?*) ac_cv_sizeof_socklen_t=$ac_lo;;
29795 '') if test "$ac_cv_type_socklen_t" = yes; then
29796      { { echo "$as_me:$LINENO: error: cannot compute sizeof (socklen_t)
29797 See \`config.log' for more details." >&5
29798 echo "$as_me: error: cannot compute sizeof (socklen_t)
29799 See \`config.log' for more details." >&2;}
29800    { (exit 77); exit 77; }; }
29801    else
29802      ac_cv_sizeof_socklen_t=0
29803    fi ;;
29804 esac
29805 else
29806   cat >conftest.$ac_ext <<_ACEOF
29807 /* confdefs.h.  */
29808 _ACEOF
29809 cat confdefs.h >>conftest.$ac_ext
29810 cat >>conftest.$ac_ext <<_ACEOF
29811 /* end confdefs.h.  */
29812 $ac_includes_default
29813    typedef socklen_t ac__type_sizeof_;
29814 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
29815 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
29816 #include <stdio.h>
29817 #include <stdlib.h>
29818 int
29819 main ()
29820 {
29821
29822   FILE *f = fopen ("conftest.val", "w");
29823   if (! f)
29824     return 1;
29825   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
29826     {
29827       long int i = longval ();
29828       if (i != ((long int) (sizeof (ac__type_sizeof_))))
29829         return 1;
29830       fprintf (f, "%ld\n", i);
29831     }
29832   else
29833     {
29834       unsigned long int i = ulongval ();
29835       if (i != ((long int) (sizeof (ac__type_sizeof_))))
29836         return 1;
29837       fprintf (f, "%lu\n", i);
29838     }
29839   return ferror (f) || fclose (f) != 0;
29840
29841   ;
29842   return 0;
29843 }
29844 _ACEOF
29845 rm -f conftest$ac_exeext
29846 if { (ac_try="$ac_link"
29847 case "(($ac_try" in
29848   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29849   *) ac_try_echo=$ac_try;;
29850 esac
29851 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29852   (eval "$ac_link") 2>&5
29853   ac_status=$?
29854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29855   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29856   { (case "(($ac_try" in
29857   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29858   *) ac_try_echo=$ac_try;;
29859 esac
29860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29861   (eval "$ac_try") 2>&5
29862   ac_status=$?
29863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29864   (exit $ac_status); }; }; then
29865   ac_cv_sizeof_socklen_t=`cat conftest.val`
29866 else
29867   echo "$as_me: program exited with status $ac_status" >&5
29868 echo "$as_me: failed program was:" >&5
29869 sed 's/^/| /' conftest.$ac_ext >&5
29870
29871 ( exit $ac_status )
29872 if test "$ac_cv_type_socklen_t" = yes; then
29873      { { echo "$as_me:$LINENO: error: cannot compute sizeof (socklen_t)
29874 See \`config.log' for more details." >&5
29875 echo "$as_me: error: cannot compute sizeof (socklen_t)
29876 See \`config.log' for more details." >&2;}
29877    { (exit 77); exit 77; }; }
29878    else
29879      ac_cv_sizeof_socklen_t=0
29880    fi
29881 fi
29882 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29883 fi
29884 rm -f conftest.val
29885 fi
29886 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_socklen_t" >&5
29887 echo "${ECHO_T}$ac_cv_sizeof_socklen_t" >&6; }
29888
29889
29890
29891 cat >>confdefs.h <<_ACEOF
29892 #define SIZEOF_SOCKLEN_T $ac_cv_sizeof_socklen_t
29893 _ACEOF
29894
29895
29896
29897
29898
29899 cat >>confdefs.h <<_ACEOF
29900 #define NFS_STATEDIR "$statedir"
29901 _ACEOF
29902
29903
29904 if test "x$cross_compiling" = "xno"; then
29905         CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-"$CFLAGS"}
29906         CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-"$CXXFLAGS"}
29907         CPPFLAGS_FOR_BUILD=${CPPFLAGS_FOR_BUILD-"$CPPFLAGS"}
29908         LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-"$LDFLAGS"}
29909 else
29910         CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-""}
29911         CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-""}
29912         CPPFLAGS_FOR_BUILD=${CPPFLAGS_FOR_BUILD-""}
29913         LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-""}
29914 fi
29915
29916
29917
29918
29919
29920
29921
29922
29923
29924
29925
29926 case $host in
29927   *)
29928     ARCHFLAGS="" ;;
29929 esac
29930
29931 my_am_cflags="-Wall -Wstrict-prototypes $ARCHFLAGS -pipe"
29932
29933 AM_CPPFLAGS="-I\${top_srcdir}/support/include"
29934
29935 AM_CFLAGS="$my_am_cflags"
29936
29937
29938 # Make sure that $ACLOCAL_FLAGS are used during a rebuild
29939 ACLOCAL_AMFLAGS="-I $ac_macro_dir \$(ACLOCAL_FLAGS)"
29940
29941
29942 ac_config_files="$ac_config_files Makefile linux-nfs/Makefile support/Makefile support/export/Makefile support/include/nfs/Makefile support/include/rpcsvc/Makefile support/include/sys/fs/Makefile support/include/sys/Makefile support/include/Makefile support/misc/Makefile support/nfs/Makefile tools/Makefile tools/locktest/Makefile tools/nlmtest/Makefile tools/rpcdebug/Makefile tools/rpcgen/Makefile utils/Makefile utils/exportfs/Makefile utils/gssd/Makefile utils/idmapd/Makefile utils/mount/Makefile utils/mountd/Makefile utils/nfsd/Makefile utils/nfsstat/Makefile utils/showmount/Makefile utils/statd/Makefile"
29943
29944 cat >confcache <<\_ACEOF
29945 # This file is a shell script that caches the results of configure
29946 # tests run on this system so they can be shared between configure
29947 # scripts and configure runs, see configure's option --config-cache.
29948 # It is not useful on other systems.  If it contains results you don't
29949 # want to keep, you may remove or edit it.
29950 #
29951 # config.status only pays attention to the cache file if you give it
29952 # the --recheck option to rerun configure.
29953 #
29954 # `ac_cv_env_foo' variables (set or unset) will be overridden when
29955 # loading this file, other *unset* `ac_cv_foo' will be assigned the
29956 # following values.
29957
29958 _ACEOF
29959
29960 # The following way of writing the cache mishandles newlines in values,
29961 # but we know of no workaround that is simple, portable, and efficient.
29962 # So, we kill variables containing newlines.
29963 # Ultrix sh set writes to stderr and can't be redirected directly,
29964 # and sets the high bit in the cache file unless we assign to the vars.
29965 (
29966   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
29967     eval ac_val=\$$ac_var
29968     case $ac_val in #(
29969     *${as_nl}*)
29970       case $ac_var in #(
29971       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
29972 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
29973       esac
29974       case $ac_var in #(
29975       _ | IFS | as_nl) ;; #(
29976       *) $as_unset $ac_var ;;
29977       esac ;;
29978     esac
29979   done
29980
29981   (set) 2>&1 |
29982     case $as_nl`(ac_space=' '; set) 2>&1` in #(
29983     *${as_nl}ac_space=\ *)
29984       # `set' does not quote correctly, so add quotes (double-quote
29985       # substitution turns \\\\ into \\, and sed turns \\ into \).
29986       sed -n \
29987         "s/'/'\\\\''/g;
29988           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
29989       ;; #(
29990     *)
29991       # `set' quotes correctly as required by POSIX, so do not add quotes.
29992       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
29993       ;;
29994     esac |
29995     sort
29996 ) |
29997   sed '
29998      /^ac_cv_env_/b end
29999      t clear
30000      :clear
30001      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
30002      t end
30003      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
30004      :end' >>confcache
30005 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
30006   if test -w "$cache_file"; then
30007     test "x$cache_file" != "x/dev/null" &&
30008       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
30009 echo "$as_me: updating cache $cache_file" >&6;}
30010     cat confcache >$cache_file
30011   else
30012     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
30013 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
30014   fi
30015 fi
30016 rm -f confcache
30017
30018 test "x$prefix" = xNONE && prefix=$ac_default_prefix
30019 # Let make expand exec_prefix.
30020 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
30021
30022 DEFS=-DHAVE_CONFIG_H
30023
30024 ac_libobjs=
30025 ac_ltlibobjs=
30026 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
30027   # 1. Remove the extension, and $U if already installed.
30028   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
30029   ac_i=`echo "$ac_i" | sed "$ac_script"`
30030   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
30031   #    will be set to the directory where LIBOBJS objects are built.
30032   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
30033   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
30034 done
30035 LIBOBJS=$ac_libobjs
30036
30037 LTLIBOBJS=$ac_ltlibobjs
30038
30039
30040 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
30041   { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
30042 Usually this means the macro was only invoked conditionally." >&5
30043 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
30044 Usually this means the macro was only invoked conditionally." >&2;}
30045    { (exit 1); exit 1; }; }
30046 fi
30047 if test -z "${CONFIG_NFSV4_TRUE}" && test -z "${CONFIG_NFSV4_FALSE}"; then
30048   { { echo "$as_me:$LINENO: error: conditional \"CONFIG_NFSV4\" was never defined.
30049 Usually this means the macro was only invoked conditionally." >&5
30050 echo "$as_me: error: conditional \"CONFIG_NFSV4\" was never defined.
30051 Usually this means the macro was only invoked conditionally." >&2;}
30052    { (exit 1); exit 1; }; }
30053 fi
30054 if test -z "${CONFIG_GSS_TRUE}" && test -z "${CONFIG_GSS_FALSE}"; then
30055   { { echo "$as_me:$LINENO: error: conditional \"CONFIG_GSS\" was never defined.
30056 Usually this means the macro was only invoked conditionally." >&5
30057 echo "$as_me: error: conditional \"CONFIG_GSS\" was never defined.
30058 Usually this means the macro was only invoked conditionally." >&2;}
30059    { (exit 1); exit 1; }; }
30060 fi
30061 if test -z "${CONFIG_RPCGEN_TRUE}" && test -z "${CONFIG_RPCGEN_FALSE}"; then
30062   { { echo "$as_me:$LINENO: error: conditional \"CONFIG_RPCGEN\" was never defined.
30063 Usually this means the macro was only invoked conditionally." >&5
30064 echo "$as_me: error: conditional \"CONFIG_RPCGEN\" was never defined.
30065 Usually this means the macro was only invoked conditionally." >&2;}
30066    { (exit 1); exit 1; }; }
30067 fi
30068 if test -z "${CONFIG_MOUNT_TRUE}" && test -z "${CONFIG_MOUNT_FALSE}"; then
30069   { { echo "$as_me:$LINENO: error: conditional \"CONFIG_MOUNT\" was never defined.
30070 Usually this means the macro was only invoked conditionally." >&5
30071 echo "$as_me: error: conditional \"CONFIG_MOUNT\" was never defined.
30072 Usually this means the macro was only invoked conditionally." >&2;}
30073    { (exit 1); exit 1; }; }
30074 fi
30075 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
30076   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
30077 Usually this means the macro was only invoked conditionally." >&5
30078 echo "$as_me: error: conditional \"AMDEP\" was never defined.
30079 Usually this means the macro was only invoked conditionally." >&2;}
30080    { (exit 1); exit 1; }; }
30081 fi
30082 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
30083   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
30084 Usually this means the macro was only invoked conditionally." >&5
30085 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
30086 Usually this means the macro was only invoked conditionally." >&2;}
30087    { (exit 1); exit 1; }; }
30088 fi
30089 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
30090   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
30091 Usually this means the macro was only invoked conditionally." >&5
30092 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
30093 Usually this means the macro was only invoked conditionally." >&2;}
30094    { (exit 1); exit 1; }; }
30095 fi
30096 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
30097   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
30098 Usually this means the macro was only invoked conditionally." >&5
30099 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
30100 Usually this means the macro was only invoked conditionally." >&2;}
30101    { (exit 1); exit 1; }; }
30102 fi
30103
30104 : ${CONFIG_STATUS=./config.status}
30105 ac_clean_files_save=$ac_clean_files
30106 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
30107 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
30108 echo "$as_me: creating $CONFIG_STATUS" >&6;}
30109 cat >$CONFIG_STATUS <<_ACEOF
30110 #! $SHELL
30111 # Generated by $as_me.
30112 # Run this file to recreate the current configuration.
30113 # Compiler output produced by configure, useful for debugging
30114 # configure, is in config.log if it exists.
30115
30116 debug=false
30117 ac_cs_recheck=false
30118 ac_cs_silent=false
30119 SHELL=\${CONFIG_SHELL-$SHELL}
30120 _ACEOF
30121
30122 cat >>$CONFIG_STATUS <<\_ACEOF
30123 ## --------------------- ##
30124 ## M4sh Initialization.  ##
30125 ## --------------------- ##
30126
30127 # Be more Bourne compatible
30128 DUALCASE=1; export DUALCASE # for MKS sh
30129 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
30130   emulate sh
30131   NULLCMD=:
30132   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
30133   # is contrary to our usage.  Disable this feature.
30134   alias -g '${1+"$@"}'='"$@"'
30135   setopt NO_GLOB_SUBST
30136 else
30137   case `(set -o) 2>/dev/null` in
30138   *posix*) set -o posix ;;
30139 esac
30140
30141 fi
30142
30143
30144
30145
30146 # PATH needs CR
30147 # Avoid depending upon Character Ranges.
30148 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
30149 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
30150 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
30151 as_cr_digits='0123456789'
30152 as_cr_alnum=$as_cr_Letters$as_cr_digits
30153
30154 # The user is always right.
30155 if test "${PATH_SEPARATOR+set}" != set; then
30156   echo "#! /bin/sh" >conf$$.sh
30157   echo  "exit 0"   >>conf$$.sh
30158   chmod +x conf$$.sh
30159   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
30160     PATH_SEPARATOR=';'
30161   else
30162     PATH_SEPARATOR=:
30163   fi
30164   rm -f conf$$.sh
30165 fi
30166
30167 # Support unset when possible.
30168 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
30169   as_unset=unset
30170 else
30171   as_unset=false
30172 fi
30173
30174
30175 # IFS
30176 # We need space, tab and new line, in precisely that order.  Quoting is
30177 # there to prevent editors from complaining about space-tab.
30178 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
30179 # splitting by setting IFS to empty value.)
30180 as_nl='
30181 '
30182 IFS=" ""        $as_nl"
30183
30184 # Find who we are.  Look in the path if we contain no directory separator.
30185 case $0 in
30186   *[\\/]* ) as_myself=$0 ;;
30187   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30188 for as_dir in $PATH
30189 do
30190   IFS=$as_save_IFS
30191   test -z "$as_dir" && as_dir=.
30192   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
30193 done
30194 IFS=$as_save_IFS
30195
30196      ;;
30197 esac
30198 # We did not find ourselves, most probably we were run as `sh COMMAND'
30199 # in which case we are not to be found in the path.
30200 if test "x$as_myself" = x; then
30201   as_myself=$0
30202 fi
30203 if test ! -f "$as_myself"; then
30204   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
30205   { (exit 1); exit 1; }
30206 fi
30207
30208 # Work around bugs in pre-3.0 UWIN ksh.
30209 for as_var in ENV MAIL MAILPATH
30210 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
30211 done
30212 PS1='$ '
30213 PS2='> '
30214 PS4='+ '
30215
30216 # NLS nuisances.
30217 for as_var in \
30218   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
30219   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
30220   LC_TELEPHONE LC_TIME
30221 do
30222   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
30223     eval $as_var=C; export $as_var
30224   else
30225     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
30226   fi
30227 done
30228
30229 # Required to use basename.
30230 if expr a : '\(a\)' >/dev/null 2>&1 &&
30231    test "X`expr 00001 : '.*\(...\)'`" = X001; then
30232   as_expr=expr
30233 else
30234   as_expr=false
30235 fi
30236
30237 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
30238   as_basename=basename
30239 else
30240   as_basename=false
30241 fi
30242
30243
30244 # Name of the executable.
30245 as_me=`$as_basename -- "$0" ||
30246 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
30247          X"$0" : 'X\(//\)$' \| \
30248          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
30249 echo X/"$0" |
30250     sed '/^.*\/\([^/][^/]*\)\/*$/{
30251             s//\1/
30252             q
30253           }
30254           /^X\/\(\/\/\)$/{
30255             s//\1/
30256             q
30257           }
30258           /^X\/\(\/\).*/{
30259             s//\1/
30260             q
30261           }
30262           s/.*/./; q'`
30263
30264 # CDPATH.
30265 $as_unset CDPATH
30266
30267
30268
30269   as_lineno_1=$LINENO
30270   as_lineno_2=$LINENO
30271   test "x$as_lineno_1" != "x$as_lineno_2" &&
30272   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
30273
30274   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
30275   # uniformly replaced by the line number.  The first 'sed' inserts a
30276   # line-number line after each line using $LINENO; the second 'sed'
30277   # does the real work.  The second script uses 'N' to pair each
30278   # line-number line with the line containing $LINENO, and appends
30279   # trailing '-' during substitution so that $LINENO is not a special
30280   # case at line end.
30281   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
30282   # scripts with optimization help from Paolo Bonzini.  Blame Lee
30283   # E. McMahon (1931-1989) for sed's syntax.  :-)
30284   sed -n '
30285     p
30286     /[$]LINENO/=
30287   ' <$as_myself |
30288     sed '
30289       s/[$]LINENO.*/&-/
30290       t lineno
30291       b
30292       :lineno
30293       N
30294       :loop
30295       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
30296       t loop
30297       s/-\n.*//
30298     ' >$as_me.lineno &&
30299   chmod +x "$as_me.lineno" ||
30300     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
30301    { (exit 1); exit 1; }; }
30302
30303   # Don't try to exec as it changes $[0], causing all sort of problems
30304   # (the dirname of $[0] is not the place where we might find the
30305   # original and so on.  Autoconf is especially sensitive to this).
30306   . "./$as_me.lineno"
30307   # Exit status is that of the last command.
30308   exit
30309 }
30310
30311
30312 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
30313   as_dirname=dirname
30314 else
30315   as_dirname=false
30316 fi
30317
30318 ECHO_C= ECHO_N= ECHO_T=
30319 case `echo -n x` in
30320 -n*)
30321   case `echo 'x\c'` in
30322   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
30323   *)   ECHO_C='\c';;
30324   esac;;
30325 *)
30326   ECHO_N='-n';;
30327 esac
30328
30329 if expr a : '\(a\)' >/dev/null 2>&1 &&
30330    test "X`expr 00001 : '.*\(...\)'`" = X001; then
30331   as_expr=expr
30332 else
30333   as_expr=false
30334 fi
30335
30336 rm -f conf$$ conf$$.exe conf$$.file
30337 if test -d conf$$.dir; then
30338   rm -f conf$$.dir/conf$$.file
30339 else
30340   rm -f conf$$.dir
30341   mkdir conf$$.dir
30342 fi
30343 echo >conf$$.file
30344 if ln -s conf$$.file conf$$ 2>/dev/null; then
30345   as_ln_s='ln -s'
30346   # ... but there are two gotchas:
30347   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
30348   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
30349   # In both cases, we have to default to `cp -p'.
30350   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
30351     as_ln_s='cp -p'
30352 elif ln conf$$.file conf$$ 2>/dev/null; then
30353   as_ln_s=ln
30354 else
30355   as_ln_s='cp -p'
30356 fi
30357 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
30358 rmdir conf$$.dir 2>/dev/null
30359
30360 if mkdir -p . 2>/dev/null; then
30361   as_mkdir_p=:
30362 else
30363   test -d ./-p && rmdir ./-p
30364   as_mkdir_p=false
30365 fi
30366
30367 if test -x / >/dev/null 2>&1; then
30368   as_test_x='test -x'
30369 else
30370   if ls -dL / >/dev/null 2>&1; then
30371     as_ls_L_option=L
30372   else
30373     as_ls_L_option=
30374   fi
30375   as_test_x='
30376     eval sh -c '\''
30377       if test -d "$1"; then
30378         test -d "$1/.";
30379       else
30380         case $1 in
30381         -*)set "./$1";;
30382         esac;
30383         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
30384         ???[sx]*):;;*)false;;esac;fi
30385     '\'' sh
30386   '
30387 fi
30388 as_executable_p=$as_test_x
30389
30390 # Sed expression to map a string onto a valid CPP name.
30391 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
30392
30393 # Sed expression to map a string onto a valid variable name.
30394 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
30395
30396
30397 exec 6>&1
30398
30399 # Save the log message, to keep $[0] and so on meaningful, and to
30400 # report actual input values of CONFIG_FILES etc. instead of their
30401 # values after options handling.
30402 ac_log="
30403 This file was extended by linux nfs-utils $as_me 1.1.2, which was
30404 generated by GNU Autoconf 2.61.  Invocation command line was
30405
30406   CONFIG_FILES    = $CONFIG_FILES
30407   CONFIG_HEADERS  = $CONFIG_HEADERS
30408   CONFIG_LINKS    = $CONFIG_LINKS
30409   CONFIG_COMMANDS = $CONFIG_COMMANDS
30410   $ $0 $@
30411
30412 on `(hostname || uname -n) 2>/dev/null | sed 1q`
30413 "
30414
30415 _ACEOF
30416
30417 cat >>$CONFIG_STATUS <<_ACEOF
30418 # Files that config.status was made for.
30419 config_files="$ac_config_files"
30420 config_headers="$ac_config_headers"
30421 config_commands="$ac_config_commands"
30422
30423 _ACEOF
30424
30425 cat >>$CONFIG_STATUS <<\_ACEOF
30426 ac_cs_usage="\
30427 \`$as_me' instantiates files from templates according to the
30428 current configuration.
30429
30430 Usage: $0 [OPTIONS] [FILE]...
30431
30432   -h, --help       print this help, then exit
30433   -V, --version    print version number and configuration settings, then exit
30434   -q, --quiet      do not print progress messages
30435   -d, --debug      don't remove temporary files
30436       --recheck    update $as_me by reconfiguring in the same conditions
30437   --file=FILE[:TEMPLATE]
30438                    instantiate the configuration file FILE
30439   --header=FILE[:TEMPLATE]
30440                    instantiate the configuration header FILE
30441
30442 Configuration files:
30443 $config_files
30444
30445 Configuration headers:
30446 $config_headers
30447
30448 Configuration commands:
30449 $config_commands
30450
30451 Report bugs to <bug-autoconf@gnu.org>."
30452
30453 _ACEOF
30454 cat >>$CONFIG_STATUS <<_ACEOF
30455 ac_cs_version="\\
30456 linux nfs-utils config.status 1.1.2
30457 configured by $0, generated by GNU Autoconf 2.61,
30458   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
30459
30460 Copyright (C) 2006 Free Software Foundation, Inc.
30461 This config.status script is free software; the Free Software Foundation
30462 gives unlimited permission to copy, distribute and modify it."
30463
30464 ac_pwd='$ac_pwd'
30465 srcdir='$srcdir'
30466 INSTALL='$INSTALL'
30467 MKDIR_P='$MKDIR_P'
30468 _ACEOF
30469
30470 cat >>$CONFIG_STATUS <<\_ACEOF
30471 # If no file are specified by the user, then we need to provide default
30472 # value.  By we need to know if files were specified by the user.
30473 ac_need_defaults=:
30474 while test $# != 0
30475 do
30476   case $1 in
30477   --*=*)
30478     ac_option=`expr "X$1" : 'X\([^=]*\)='`
30479     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
30480     ac_shift=:
30481     ;;
30482   *)
30483     ac_option=$1
30484     ac_optarg=$2
30485     ac_shift=shift
30486     ;;
30487   esac
30488
30489   case $ac_option in
30490   # Handling of the options.
30491   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
30492     ac_cs_recheck=: ;;
30493   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
30494     echo "$ac_cs_version"; exit ;;
30495   --debug | --debu | --deb | --de | --d | -d )
30496     debug=: ;;
30497   --file | --fil | --fi | --f )
30498     $ac_shift
30499     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
30500     ac_need_defaults=false;;
30501   --header | --heade | --head | --hea )
30502     $ac_shift
30503     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
30504     ac_need_defaults=false;;
30505   --he | --h)
30506     # Conflict between --help and --header
30507     { echo "$as_me: error: ambiguous option: $1
30508 Try \`$0 --help' for more information." >&2
30509    { (exit 1); exit 1; }; };;
30510   --help | --hel | -h )
30511     echo "$ac_cs_usage"; exit ;;
30512   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
30513   | -silent | --silent | --silen | --sile | --sil | --si | --s)
30514     ac_cs_silent=: ;;
30515
30516   # This is an error.
30517   -*) { echo "$as_me: error: unrecognized option: $1
30518 Try \`$0 --help' for more information." >&2
30519    { (exit 1); exit 1; }; } ;;
30520
30521   *) ac_config_targets="$ac_config_targets $1"
30522      ac_need_defaults=false ;;
30523
30524   esac
30525   shift
30526 done
30527
30528 ac_configure_extra_args=
30529
30530 if $ac_cs_silent; then
30531   exec 6>/dev/null
30532   ac_configure_extra_args="$ac_configure_extra_args --silent"
30533 fi
30534
30535 _ACEOF
30536 cat >>$CONFIG_STATUS <<_ACEOF
30537 if \$ac_cs_recheck; then
30538   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
30539   CONFIG_SHELL=$SHELL
30540   export CONFIG_SHELL
30541   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
30542 fi
30543
30544 _ACEOF
30545 cat >>$CONFIG_STATUS <<\_ACEOF
30546 exec 5>>config.log
30547 {
30548   echo
30549   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
30550 ## Running $as_me. ##
30551 _ASBOX
30552   echo "$ac_log"
30553 } >&5
30554
30555 _ACEOF
30556 cat >>$CONFIG_STATUS <<_ACEOF
30557 #
30558 # INIT-COMMANDS
30559 #
30560 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
30561
30562 _ACEOF
30563
30564 cat >>$CONFIG_STATUS <<\_ACEOF
30565
30566 # Handling of arguments.
30567 for ac_config_target in $ac_config_targets
30568 do
30569   case $ac_config_target in
30570     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
30571     "support/include/config.h") CONFIG_HEADERS="$CONFIG_HEADERS support/include/config.h" ;;
30572     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
30573     "linux-nfs/Makefile") CONFIG_FILES="$CONFIG_FILES linux-nfs/Makefile" ;;
30574     "support/Makefile") CONFIG_FILES="$CONFIG_FILES support/Makefile" ;;
30575     "support/export/Makefile") CONFIG_FILES="$CONFIG_FILES support/export/Makefile" ;;
30576     "support/include/nfs/Makefile") CONFIG_FILES="$CONFIG_FILES support/include/nfs/Makefile" ;;
30577     "support/include/rpcsvc/Makefile") CONFIG_FILES="$CONFIG_FILES support/include/rpcsvc/Makefile" ;;
30578     "support/include/sys/fs/Makefile") CONFIG_FILES="$CONFIG_FILES support/include/sys/fs/Makefile" ;;
30579     "support/include/sys/Makefile") CONFIG_FILES="$CONFIG_FILES support/include/sys/Makefile" ;;
30580     "support/include/Makefile") CONFIG_FILES="$CONFIG_FILES support/include/Makefile" ;;
30581     "support/misc/Makefile") CONFIG_FILES="$CONFIG_FILES support/misc/Makefile" ;;
30582     "support/nfs/Makefile") CONFIG_FILES="$CONFIG_FILES support/nfs/Makefile" ;;
30583     "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
30584     "tools/locktest/Makefile") CONFIG_FILES="$CONFIG_FILES tools/locktest/Makefile" ;;
30585     "tools/nlmtest/Makefile") CONFIG_FILES="$CONFIG_FILES tools/nlmtest/Makefile" ;;
30586     "tools/rpcdebug/Makefile") CONFIG_FILES="$CONFIG_FILES tools/rpcdebug/Makefile" ;;
30587     "tools/rpcgen/Makefile") CONFIG_FILES="$CONFIG_FILES tools/rpcgen/Makefile" ;;
30588     "utils/Makefile") CONFIG_FILES="$CONFIG_FILES utils/Makefile" ;;
30589     "utils/exportfs/Makefile") CONFIG_FILES="$CONFIG_FILES utils/exportfs/Makefile" ;;
30590     "utils/gssd/Makefile") CONFIG_FILES="$CONFIG_FILES utils/gssd/Makefile" ;;
30591     "utils/idmapd/Makefile") CONFIG_FILES="$CONFIG_FILES utils/idmapd/Makefile" ;;
30592     "utils/mount/Makefile") CONFIG_FILES="$CONFIG_FILES utils/mount/Makefile" ;;
30593     "utils/mountd/Makefile") CONFIG_FILES="$CONFIG_FILES utils/mountd/Makefile" ;;
30594     "utils/nfsd/Makefile") CONFIG_FILES="$CONFIG_FILES utils/nfsd/Makefile" ;;
30595     "utils/nfsstat/Makefile") CONFIG_FILES="$CONFIG_FILES utils/nfsstat/Makefile" ;;
30596     "utils/showmount/Makefile") CONFIG_FILES="$CONFIG_FILES utils/showmount/Makefile" ;;
30597     "utils/statd/Makefile") CONFIG_FILES="$CONFIG_FILES utils/statd/Makefile" ;;
30598
30599   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
30600 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
30601    { (exit 1); exit 1; }; };;
30602   esac
30603 done
30604
30605
30606 # If the user did not use the arguments to specify the items to instantiate,
30607 # then the envvar interface is used.  Set only those that are not.
30608 # We use the long form for the default assignment because of an extremely
30609 # bizarre bug on SunOS 4.1.3.
30610 if $ac_need_defaults; then
30611   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
30612   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
30613   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
30614 fi
30615
30616 # Have a temporary directory for convenience.  Make it in the build tree
30617 # simply because there is no reason against having it here, and in addition,
30618 # creating and moving files from /tmp can sometimes cause problems.
30619 # Hook for its removal unless debugging.
30620 # Note that there is a small window in which the directory will not be cleaned:
30621 # after its creation but before its name has been assigned to `$tmp'.
30622 $debug ||
30623 {
30624   tmp=
30625   trap 'exit_status=$?
30626   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
30627 ' 0
30628   trap '{ (exit 1); exit 1; }' 1 2 13 15
30629 }
30630 # Create a (secure) tmp directory for tmp files.
30631
30632 {
30633   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
30634   test -n "$tmp" && test -d "$tmp"
30635 }  ||
30636 {
30637   tmp=./conf$$-$RANDOM
30638   (umask 077 && mkdir "$tmp")
30639 } ||
30640 {
30641    echo "$me: cannot create a temporary directory in ." >&2
30642    { (exit 1); exit 1; }
30643 }
30644
30645 #
30646 # Set up the sed scripts for CONFIG_FILES section.
30647 #
30648
30649 # No need to generate the scripts if there are no CONFIG_FILES.
30650 # This happens for instance when ./config.status config.h
30651 if test -n "$CONFIG_FILES"; then
30652
30653 _ACEOF
30654
30655
30656
30657 ac_delim='%!_!# '
30658 for ac_last_try in false false false false false :; do
30659   cat >conf$$subs.sed <<_ACEOF
30660 SHELL!$SHELL$ac_delim
30661 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
30662 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
30663 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
30664 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
30665 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
30666 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
30667 exec_prefix!$exec_prefix$ac_delim
30668 prefix!$prefix$ac_delim
30669 program_transform_name!$program_transform_name$ac_delim
30670 bindir!$bindir$ac_delim
30671 sbindir!$sbindir$ac_delim
30672 libexecdir!$libexecdir$ac_delim
30673 datarootdir!$datarootdir$ac_delim
30674 datadir!$datadir$ac_delim
30675 sysconfdir!$sysconfdir$ac_delim
30676 sharedstatedir!$sharedstatedir$ac_delim
30677 localstatedir!$localstatedir$ac_delim
30678 includedir!$includedir$ac_delim
30679 oldincludedir!$oldincludedir$ac_delim
30680 docdir!$docdir$ac_delim
30681 infodir!$infodir$ac_delim
30682 htmldir!$htmldir$ac_delim
30683 dvidir!$dvidir$ac_delim
30684 pdfdir!$pdfdir$ac_delim
30685 psdir!$psdir$ac_delim
30686 libdir!$libdir$ac_delim
30687 localedir!$localedir$ac_delim
30688 mandir!$mandir$ac_delim
30689 DEFS!$DEFS$ac_delim
30690 ECHO_C!$ECHO_C$ac_delim
30691 ECHO_N!$ECHO_N$ac_delim
30692 ECHO_T!$ECHO_T$ac_delim
30693 LIBS!$LIBS$ac_delim
30694 build_alias!$build_alias$ac_delim
30695 host_alias!$host_alias$ac_delim
30696 target_alias!$target_alias$ac_delim
30697 build!$build$ac_delim
30698 build_cpu!$build_cpu$ac_delim
30699 build_vendor!$build_vendor$ac_delim
30700 build_os!$build_os$ac_delim
30701 host!$host$ac_delim
30702 host_cpu!$host_cpu$ac_delim
30703 host_vendor!$host_vendor$ac_delim
30704 host_os!$host_os$ac_delim
30705 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
30706 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
30707 INSTALL_DATA!$INSTALL_DATA$ac_delim
30708 am__isrc!$am__isrc$ac_delim
30709 CYGPATH_W!$CYGPATH_W$ac_delim
30710 PACKAGE!$PACKAGE$ac_delim
30711 VERSION!$VERSION$ac_delim
30712 ACLOCAL!$ACLOCAL$ac_delim
30713 AUTOCONF!$AUTOCONF$ac_delim
30714 AUTOMAKE!$AUTOMAKE$ac_delim
30715 AUTOHEADER!$AUTOHEADER$ac_delim
30716 MAKEINFO!$MAKEINFO$ac_delim
30717 install_sh!$install_sh$ac_delim
30718 STRIP!$STRIP$ac_delim
30719 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
30720 mkdir_p!$mkdir_p$ac_delim
30721 AWK!$AWK$ac_delim
30722 SET_MAKE!$SET_MAKE$ac_delim
30723 am__leading_dot!$am__leading_dot$ac_delim
30724 AMTAR!$AMTAR$ac_delim
30725 am__tar!$am__tar$ac_delim
30726 am__untar!$am__untar$ac_delim
30727 MAINTAINER_MODE_TRUE!$MAINTAINER_MODE_TRUE$ac_delim
30728 MAINTAINER_MODE_FALSE!$MAINTAINER_MODE_FALSE$ac_delim
30729 MAINT!$MAINT$ac_delim
30730 RELEASE!$RELEASE$ac_delim
30731 statedir!$statedir$ac_delim
30732 statduser!$statduser$ac_delim
30733 startstatd!$startstatd$ac_delim
30734 enable_nfsv3!$enable_nfsv3$ac_delim
30735 IDMAPD!$IDMAPD$ac_delim
30736 enable_nfsv4!$enable_nfsv4$ac_delim
30737 CONFIG_NFSV4_TRUE!$CONFIG_NFSV4_TRUE$ac_delim
30738 CONFIG_NFSV4_FALSE!$CONFIG_NFSV4_FALSE$ac_delim
30739 GSSD!$GSSD$ac_delim
30740 SVCGSSD!$SVCGSSD$ac_delim
30741 enable_gss!$enable_gss$ac_delim
30742 CONFIG_GSS_TRUE!$CONFIG_GSS_TRUE$ac_delim
30743 CONFIG_GSS_FALSE!$CONFIG_GSS_FALSE$ac_delim
30744 kprefix!$kprefix$ac_delim
30745 secure_statd!$secure_statd$ac_delim
30746 RPCGEN_PATH!$RPCGEN_PATH$ac_delim
30747 CONFIG_RPCGEN_TRUE!$CONFIG_RPCGEN_TRUE$ac_delim
30748 CONFIG_RPCGEN_FALSE!$CONFIG_RPCGEN_FALSE$ac_delim
30749 CONFIG_MOUNT_TRUE!$CONFIG_MOUNT_TRUE$ac_delim
30750 CONFIG_MOUNT_FALSE!$CONFIG_MOUNT_FALSE$ac_delim
30751 CC!$CC$ac_delim
30752 CFLAGS!$CFLAGS$ac_delim
30753 LDFLAGS!$LDFLAGS$ac_delim
30754 CPPFLAGS!$CPPFLAGS$ac_delim
30755 ac_ct_CC!$ac_ct_CC$ac_delim
30756 EXEEXT!$EXEEXT$ac_delim
30757 _ACEOF
30758
30759   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
30760     break
30761   elif $ac_last_try; then
30762     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
30763 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
30764    { (exit 1); exit 1; }; }
30765   else
30766     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
30767   fi
30768 done
30769
30770 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
30771 if test -n "$ac_eof"; then
30772   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
30773   ac_eof=`expr $ac_eof + 1`
30774 fi
30775
30776 cat >>$CONFIG_STATUS <<_ACEOF
30777 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
30778 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
30779 _ACEOF
30780 sed '
30781 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
30782 s/^/s,@/; s/!/@,|#_!!_#|/
30783 :n
30784 t n
30785 s/'"$ac_delim"'$/,g/; t
30786 s/$/\\/; p
30787 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
30788 ' >>$CONFIG_STATUS <conf$$subs.sed
30789 rm -f conf$$subs.sed
30790 cat >>$CONFIG_STATUS <<_ACEOF
30791 CEOF$ac_eof
30792 _ACEOF
30793
30794
30795 ac_delim='%!_!# '
30796 for ac_last_try in false false false false false :; do
30797   cat >conf$$subs.sed <<_ACEOF
30798 OBJEXT!$OBJEXT$ac_delim
30799 DEPDIR!$DEPDIR$ac_delim
30800 am__include!$am__include$ac_delim
30801 am__quote!$am__quote$ac_delim
30802 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
30803 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
30804 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
30805 CCDEPMODE!$CCDEPMODE$ac_delim
30806 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
30807 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
30808 LIBWRAP!$LIBWRAP$ac_delim
30809 HAVE_LIBWRAP!$HAVE_LIBWRAP$ac_delim
30810 HAVE_TCP_WRAPPER!$HAVE_TCP_WRAPPER$ac_delim
30811 CXX!$CXX$ac_delim
30812 CXXFLAGS!$CXXFLAGS$ac_delim
30813 ac_ct_CXX!$ac_ct_CXX$ac_delim
30814 CXXDEPMODE!$CXXDEPMODE$ac_delim
30815 am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
30816 am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
30817 CPP!$CPP$ac_delim
30818 LN_S!$LN_S$ac_delim
30819 SED!$SED$ac_delim
30820 GREP!$GREP$ac_delim
30821 EGREP!$EGREP$ac_delim
30822 ECHO!$ECHO$ac_delim
30823 AR!$AR$ac_delim
30824 RANLIB!$RANLIB$ac_delim
30825 CXXCPP!$CXXCPP$ac_delim
30826 F77!$F77$ac_delim
30827 FFLAGS!$FFLAGS$ac_delim
30828 ac_ct_F77!$ac_ct_F77$ac_delim
30829 LIBTOOL!$LIBTOOL$ac_delim
30830 CC_FOR_BUILD!$CC_FOR_BUILD$ac_delim
30831 LD!$LD$ac_delim
30832 LIBNSL!$LIBNSL$ac_delim
30833 PKG_CONFIG!$PKG_CONFIG$ac_delim
30834 RPCSECGSS_CFLAGS!$RPCSECGSS_CFLAGS$ac_delim
30835 RPCSECGSS_LIBS!$RPCSECGSS_LIBS$ac_delim
30836 GSSGLUE_CFLAGS!$GSSGLUE_CFLAGS$ac_delim
30837 GSSGLUE_LIBS!$GSSGLUE_LIBS$ac_delim
30838 LIBSOCKET!$LIBSOCKET$ac_delim
30839 LIBCRYPT!$LIBCRYPT$ac_delim
30840 LIBBSD!$LIBBSD$ac_delim
30841 LIBBLKID!$LIBBLKID$ac_delim
30842 KRBDIR!$KRBDIR$ac_delim
30843 KRBLIBS!$KRBLIBS$ac_delim
30844 KRBCFLAGS!$KRBCFLAGS$ac_delim
30845 KRBLDFLAGS!$KRBLDFLAGS$ac_delim
30846 K5VERS!$K5VERS$ac_delim
30847 ALLOCA!$ALLOCA$ac_delim
30848 LIBOBJS!$LIBOBJS$ac_delim
30849 CFLAGS_FOR_BUILD!$CFLAGS_FOR_BUILD$ac_delim
30850 CXXFLAGS_FOR_BUILD!$CXXFLAGS_FOR_BUILD$ac_delim
30851 CPPFLAGS_FOR_BUILD!$CPPFLAGS_FOR_BUILD$ac_delim
30852 LDFLAGS_FOR_BUILD!$LDFLAGS_FOR_BUILD$ac_delim
30853 AM_CPPFLAGS!$AM_CPPFLAGS$ac_delim
30854 AM_CFLAGS!$AM_CFLAGS$ac_delim
30855 ACLOCAL_AMFLAGS!$ACLOCAL_AMFLAGS$ac_delim
30856 LTLIBOBJS!$LTLIBOBJS$ac_delim
30857 _ACEOF
30858
30859   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 59; then
30860     break
30861   elif $ac_last_try; then
30862     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
30863 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
30864    { (exit 1); exit 1; }; }
30865   else
30866     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
30867   fi
30868 done
30869
30870 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
30871 if test -n "$ac_eof"; then
30872   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
30873   ac_eof=`expr $ac_eof + 1`
30874 fi
30875
30876 cat >>$CONFIG_STATUS <<_ACEOF
30877 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
30878 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
30879 _ACEOF
30880 sed '
30881 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
30882 s/^/s,@/; s/!/@,|#_!!_#|/
30883 :n
30884 t n
30885 s/'"$ac_delim"'$/,g/; t
30886 s/$/\\/; p
30887 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
30888 ' >>$CONFIG_STATUS <conf$$subs.sed
30889 rm -f conf$$subs.sed
30890 cat >>$CONFIG_STATUS <<_ACEOF
30891 :end
30892 s/|#_!!_#|//g
30893 CEOF$ac_eof
30894 _ACEOF
30895
30896
30897 # VPATH may cause trouble with some makes, so we remove $(srcdir),
30898 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
30899 # trailing colons and then remove the whole line if VPATH becomes empty
30900 # (actually we leave an empty line to preserve line numbers).
30901 if test "x$srcdir" = x.; then
30902   ac_vpsub='/^[  ]*VPATH[        ]*=/{
30903 s/:*\$(srcdir):*/:/
30904 s/:*\${srcdir}:*/:/
30905 s/:*@srcdir@:*/:/
30906 s/^\([^=]*=[     ]*\):*/\1/
30907 s/:*$//
30908 s/^[^=]*=[       ]*$//
30909 }'
30910 fi
30911
30912 cat >>$CONFIG_STATUS <<\_ACEOF
30913 fi # test -n "$CONFIG_FILES"
30914
30915
30916 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
30917 do
30918   case $ac_tag in
30919   :[FHLC]) ac_mode=$ac_tag; continue;;
30920   esac
30921   case $ac_mode$ac_tag in
30922   :[FHL]*:*);;
30923   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
30924 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
30925    { (exit 1); exit 1; }; };;
30926   :[FH]-) ac_tag=-:-;;
30927   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
30928   esac
30929   ac_save_IFS=$IFS
30930   IFS=:
30931   set x $ac_tag
30932   IFS=$ac_save_IFS
30933   shift
30934   ac_file=$1
30935   shift
30936
30937   case $ac_mode in
30938   :L) ac_source=$1;;
30939   :[FH])
30940     ac_file_inputs=
30941     for ac_f
30942     do
30943       case $ac_f in
30944       -) ac_f="$tmp/stdin";;
30945       *) # Look for the file first in the build tree, then in the source tree
30946          # (if the path is not absolute).  The absolute path cannot be DOS-style,
30947          # because $ac_f cannot contain `:'.
30948          test -f "$ac_f" ||
30949            case $ac_f in
30950            [\\/$]*) false;;
30951            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
30952            esac ||
30953            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
30954 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
30955    { (exit 1); exit 1; }; };;
30956       esac
30957       ac_file_inputs="$ac_file_inputs $ac_f"
30958     done
30959
30960     # Let's still pretend it is `configure' which instantiates (i.e., don't
30961     # use $as_me), people would be surprised to read:
30962     #    /* config.h.  Generated by config.status.  */
30963     configure_input="Generated from "`IFS=:
30964           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
30965     if test x"$ac_file" != x-; then
30966       configure_input="$ac_file.  $configure_input"
30967       { echo "$as_me:$LINENO: creating $ac_file" >&5
30968 echo "$as_me: creating $ac_file" >&6;}
30969     fi
30970
30971     case $ac_tag in
30972     *:-:* | *:-) cat >"$tmp/stdin";;
30973     esac
30974     ;;
30975   esac
30976
30977   ac_dir=`$as_dirname -- "$ac_file" ||
30978 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30979          X"$ac_file" : 'X\(//\)[^/]' \| \
30980          X"$ac_file" : 'X\(//\)$' \| \
30981          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
30982 echo X"$ac_file" |
30983     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30984             s//\1/
30985             q
30986           }
30987           /^X\(\/\/\)[^/].*/{
30988             s//\1/
30989             q
30990           }
30991           /^X\(\/\/\)$/{
30992             s//\1/
30993             q
30994           }
30995           /^X\(\/\).*/{
30996             s//\1/
30997             q
30998           }
30999           s/.*/./; q'`
31000   { as_dir="$ac_dir"
31001   case $as_dir in #(
31002   -*) as_dir=./$as_dir;;
31003   esac
31004   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
31005     as_dirs=
31006     while :; do
31007       case $as_dir in #(
31008       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
31009       *) as_qdir=$as_dir;;
31010       esac
31011       as_dirs="'$as_qdir' $as_dirs"
31012       as_dir=`$as_dirname -- "$as_dir" ||
31013 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31014          X"$as_dir" : 'X\(//\)[^/]' \| \
31015          X"$as_dir" : 'X\(//\)$' \| \
31016          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
31017 echo X"$as_dir" |
31018     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31019             s//\1/
31020             q
31021           }
31022           /^X\(\/\/\)[^/].*/{
31023             s//\1/
31024             q
31025           }
31026           /^X\(\/\/\)$/{
31027             s//\1/
31028             q
31029           }
31030           /^X\(\/\).*/{
31031             s//\1/
31032             q
31033           }
31034           s/.*/./; q'`
31035       test -d "$as_dir" && break
31036     done
31037     test -z "$as_dirs" || eval "mkdir $as_dirs"
31038   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
31039 echo "$as_me: error: cannot create directory $as_dir" >&2;}
31040    { (exit 1); exit 1; }; }; }
31041   ac_builddir=.
31042
31043 case "$ac_dir" in
31044 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
31045 *)
31046   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
31047   # A ".." for each directory in $ac_dir_suffix.
31048   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
31049   case $ac_top_builddir_sub in
31050   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
31051   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
31052   esac ;;
31053 esac
31054 ac_abs_top_builddir=$ac_pwd
31055 ac_abs_builddir=$ac_pwd$ac_dir_suffix
31056 # for backward compatibility:
31057 ac_top_builddir=$ac_top_build_prefix
31058
31059 case $srcdir in
31060   .)  # We are building in place.
31061     ac_srcdir=.
31062     ac_top_srcdir=$ac_top_builddir_sub
31063     ac_abs_top_srcdir=$ac_pwd ;;
31064   [\\/]* | ?:[\\/]* )  # Absolute name.
31065     ac_srcdir=$srcdir$ac_dir_suffix;
31066     ac_top_srcdir=$srcdir
31067     ac_abs_top_srcdir=$srcdir ;;
31068   *) # Relative name.
31069     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
31070     ac_top_srcdir=$ac_top_build_prefix$srcdir
31071     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
31072 esac
31073 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
31074
31075
31076   case $ac_mode in
31077   :F)
31078   #
31079   # CONFIG_FILE
31080   #
31081
31082   case $INSTALL in
31083   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
31084   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
31085   esac
31086   ac_MKDIR_P=$MKDIR_P
31087   case $MKDIR_P in
31088   [\\/$]* | ?:[\\/]* ) ;;
31089   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
31090   esac
31091 _ACEOF
31092
31093 cat >>$CONFIG_STATUS <<\_ACEOF
31094 # If the template does not know about datarootdir, expand it.
31095 # FIXME: This hack should be removed a few years after 2.60.
31096 ac_datarootdir_hack=; ac_datarootdir_seen=
31097
31098 case `sed -n '/datarootdir/ {
31099   p
31100   q
31101 }
31102 /@datadir@/p
31103 /@docdir@/p
31104 /@infodir@/p
31105 /@localedir@/p
31106 /@mandir@/p
31107 ' $ac_file_inputs` in
31108 *datarootdir*) ac_datarootdir_seen=yes;;
31109 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
31110   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
31111 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
31112 _ACEOF
31113 cat >>$CONFIG_STATUS <<_ACEOF
31114   ac_datarootdir_hack='
31115   s&@datadir@&$datadir&g
31116   s&@docdir@&$docdir&g
31117   s&@infodir@&$infodir&g
31118   s&@localedir@&$localedir&g
31119   s&@mandir@&$mandir&g
31120     s&\\\${datarootdir}&$datarootdir&g' ;;
31121 esac
31122 _ACEOF
31123
31124 # Neutralize VPATH when `$srcdir' = `.'.
31125 # Shell code in configure.ac might set extrasub.
31126 # FIXME: do we really want to maintain this feature?
31127 cat >>$CONFIG_STATUS <<_ACEOF
31128   sed "$ac_vpsub
31129 $extrasub
31130 _ACEOF
31131 cat >>$CONFIG_STATUS <<\_ACEOF
31132 :t
31133 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
31134 s&@configure_input@&$configure_input&;t t
31135 s&@top_builddir@&$ac_top_builddir_sub&;t t
31136 s&@srcdir@&$ac_srcdir&;t t
31137 s&@abs_srcdir@&$ac_abs_srcdir&;t t
31138 s&@top_srcdir@&$ac_top_srcdir&;t t
31139 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
31140 s&@builddir@&$ac_builddir&;t t
31141 s&@abs_builddir@&$ac_abs_builddir&;t t
31142 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
31143 s&@INSTALL@&$ac_INSTALL&;t t
31144 s&@MKDIR_P@&$ac_MKDIR_P&;t t
31145 $ac_datarootdir_hack
31146 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
31147
31148 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
31149   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
31150   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
31151   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
31152 which seems to be undefined.  Please make sure it is defined." >&5
31153 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
31154 which seems to be undefined.  Please make sure it is defined." >&2;}
31155
31156   rm -f "$tmp/stdin"
31157   case $ac_file in
31158   -) cat "$tmp/out"; rm -f "$tmp/out";;
31159   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
31160   esac
31161  ;;
31162   :H)
31163   #
31164   # CONFIG_HEADER
31165   #
31166 _ACEOF
31167
31168 # Transform confdefs.h into a sed script `conftest.defines', that
31169 # substitutes the proper values into config.h.in to produce config.h.
31170 rm -f conftest.defines conftest.tail
31171 # First, append a space to every undef/define line, to ease matching.
31172 echo 's/$/ /' >conftest.defines
31173 # Then, protect against being on the right side of a sed subst, or in
31174 # an unquoted here document, in config.status.  If some macros were
31175 # called several times there might be several #defines for the same
31176 # symbol, which is useless.  But do not sort them, since the last
31177 # AC_DEFINE must be honored.
31178 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
31179 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
31180 # NAME is the cpp macro being defined, VALUE is the value it is being given.
31181 # PARAMS is the parameter list in the macro definition--in most cases, it's
31182 # just an empty string.
31183 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
31184 ac_dB='\\)[      (].*,\\1define\\2'
31185 ac_dC=' '
31186 ac_dD=' ,'
31187
31188 uniq confdefs.h |
31189   sed -n '
31190         t rset
31191         :rset
31192         s/^[     ]*#[    ]*define[       ][      ]*//
31193         t ok
31194         d
31195         :ok
31196         s/[\\&,]/\\&/g
31197         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
31198         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
31199   ' >>conftest.defines
31200
31201 # Remove the space that was appended to ease matching.
31202 # Then replace #undef with comments.  This is necessary, for
31203 # example, in the case of _POSIX_SOURCE, which is predefined and required
31204 # on some systems where configure will not decide to define it.
31205 # (The regexp can be short, since the line contains either #define or #undef.)
31206 echo 's/ $//
31207 s,^[     #]*u.*,/* & */,' >>conftest.defines
31208
31209 # Break up conftest.defines:
31210 ac_max_sed_lines=50
31211
31212 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
31213 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
31214 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
31215 # et cetera.
31216 ac_in='$ac_file_inputs'
31217 ac_out='"$tmp/out1"'
31218 ac_nxt='"$tmp/out2"'
31219
31220 while :
31221 do
31222   # Write a here document:
31223     cat >>$CONFIG_STATUS <<_ACEOF
31224     # First, check the format of the line:
31225     cat >"\$tmp/defines.sed" <<\\CEOF
31226 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
31227 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
31228 b
31229 :def
31230 _ACEOF
31231   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
31232   echo 'CEOF
31233     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
31234   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
31235   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
31236   grep . conftest.tail >/dev/null || break
31237   rm -f conftest.defines
31238   mv conftest.tail conftest.defines
31239 done
31240 rm -f conftest.defines conftest.tail
31241
31242 echo "ac_result=$ac_in" >>$CONFIG_STATUS
31243 cat >>$CONFIG_STATUS <<\_ACEOF
31244   if test x"$ac_file" != x-; then
31245     echo "/* $configure_input  */" >"$tmp/config.h"
31246     cat "$ac_result" >>"$tmp/config.h"
31247     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
31248       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
31249 echo "$as_me: $ac_file is unchanged" >&6;}
31250     else
31251       rm -f $ac_file
31252       mv "$tmp/config.h" $ac_file
31253     fi
31254   else
31255     echo "/* $configure_input  */"
31256     cat "$ac_result"
31257   fi
31258   rm -f "$tmp/out12"
31259 # Compute $ac_file's index in $config_headers.
31260 _am_stamp_count=1
31261 for _am_header in $config_headers :; do
31262   case $_am_header in
31263     $ac_file | $ac_file:* )
31264       break ;;
31265     * )
31266       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
31267   esac
31268 done
31269 echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
31270 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31271          X$ac_file : 'X\(//\)[^/]' \| \
31272          X$ac_file : 'X\(//\)$' \| \
31273          X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
31274 echo X$ac_file |
31275     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31276             s//\1/
31277             q
31278           }
31279           /^X\(\/\/\)[^/].*/{
31280             s//\1/
31281             q
31282           }
31283           /^X\(\/\/\)$/{
31284             s//\1/
31285             q
31286           }
31287           /^X\(\/\).*/{
31288             s//\1/
31289             q
31290           }
31291           s/.*/./; q'`/stamp-h$_am_stamp_count
31292  ;;
31293
31294   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
31295 echo "$as_me: executing $ac_file commands" >&6;}
31296  ;;
31297   esac
31298
31299
31300   case $ac_file$ac_mode in
31301     "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
31302   # Strip MF so we end up with the name of the file.
31303   mf=`echo "$mf" | sed -e 's/:.*$//'`
31304   # Check whether this is an Automake generated Makefile or not.
31305   # We used to match only the files named `Makefile.in', but
31306   # some people rename them; so instead we look at the file content.
31307   # Grep'ing the first line is not enough: some people post-process
31308   # each Makefile.in and add a new line on top of each file to say so.
31309   # Grep'ing the whole file is not good either: AIX grep has a line
31310   # limit of 2048, but all sed's we know have understand at least 4000.
31311   if sed 10q "$mf" | grep '^#.*generated by automake' > /dev/null 2>&1; then
31312     dirpart=`$as_dirname -- "$mf" ||
31313 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31314          X"$mf" : 'X\(//\)[^/]' \| \
31315          X"$mf" : 'X\(//\)$' \| \
31316          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
31317 echo X"$mf" |
31318     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31319             s//\1/
31320             q
31321           }
31322           /^X\(\/\/\)[^/].*/{
31323             s//\1/
31324             q
31325           }
31326           /^X\(\/\/\)$/{
31327             s//\1/
31328             q
31329           }
31330           /^X\(\/\).*/{
31331             s//\1/
31332             q
31333           }
31334           s/.*/./; q'`
31335   else
31336     continue
31337   fi
31338   # Extract the definition of DEPDIR, am__include, and am__quote
31339   # from the Makefile without running `make'.
31340   DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
31341   test -z "$DEPDIR" && continue
31342   am__include=`sed -n 's/^am__include = //p' < "$mf"`
31343   test -z "am__include" && continue
31344   am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
31345   # When using ansi2knr, U may be empty or an underscore; expand it
31346   U=`sed -n 's/^U = //p' < "$mf"`
31347   # Find all dependency output files, they are included files with
31348   # $(DEPDIR) in their names.  We invoke sed twice because it is the
31349   # simplest approach to changing $(DEPDIR) to its actual value in the
31350   # expansion.
31351   for file in `sed -n "
31352     s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
31353        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
31354     # Make sure the directory exists.
31355     test -f "$dirpart/$file" && continue
31356     fdir=`$as_dirname -- "$file" ||
31357 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31358          X"$file" : 'X\(//\)[^/]' \| \
31359          X"$file" : 'X\(//\)$' \| \
31360          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
31361 echo X"$file" |
31362     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31363             s//\1/
31364             q
31365           }
31366           /^X\(\/\/\)[^/].*/{
31367             s//\1/
31368             q
31369           }
31370           /^X\(\/\/\)$/{
31371             s//\1/
31372             q
31373           }
31374           /^X\(\/\).*/{
31375             s//\1/
31376             q
31377           }
31378           s/.*/./; q'`
31379     { as_dir=$dirpart/$fdir
31380   case $as_dir in #(
31381   -*) as_dir=./$as_dir;;
31382   esac
31383   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
31384     as_dirs=
31385     while :; do
31386       case $as_dir in #(
31387       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
31388       *) as_qdir=$as_dir;;
31389       esac
31390       as_dirs="'$as_qdir' $as_dirs"
31391       as_dir=`$as_dirname -- "$as_dir" ||
31392 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31393          X"$as_dir" : 'X\(//\)[^/]' \| \
31394          X"$as_dir" : 'X\(//\)$' \| \
31395          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
31396 echo X"$as_dir" |
31397     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31398             s//\1/
31399             q
31400           }
31401           /^X\(\/\/\)[^/].*/{
31402             s//\1/
31403             q
31404           }
31405           /^X\(\/\/\)$/{
31406             s//\1/
31407             q
31408           }
31409           /^X\(\/\).*/{
31410             s//\1/
31411             q
31412           }
31413           s/.*/./; q'`
31414       test -d "$as_dir" && break
31415     done
31416     test -z "$as_dirs" || eval "mkdir $as_dirs"
31417   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
31418 echo "$as_me: error: cannot create directory $as_dir" >&2;}
31419    { (exit 1); exit 1; }; }; }
31420     # echo "creating $dirpart/$file"
31421     echo '# dummy' > "$dirpart/$file"
31422   done
31423 done
31424  ;;
31425
31426   esac
31427 done # for ac_tag
31428
31429
31430 { (exit 0); exit 0; }
31431 _ACEOF
31432 chmod +x $CONFIG_STATUS
31433 ac_clean_files=$ac_clean_files_save
31434
31435
31436 # configure is writing to config.log, and then calls config.status.
31437 # config.status does its own redirection, appending to config.log.
31438 # Unfortunately, on DOS this fails, as config.log is still kept open
31439 # by configure, so config.status won't be able to write to it; its
31440 # output is simply discarded.  So we exec the FD to /dev/null,
31441 # effectively closing config.log, so it can be properly (re)opened and
31442 # appended to by config.status.  When coming back to configure, we
31443 # need to make the FD available again.
31444 if test "$no_create" != yes; then
31445   ac_cs_success=:
31446   ac_config_status_args=
31447   test "$silent" = yes &&
31448     ac_config_status_args="$ac_config_status_args --quiet"
31449   exec 5>/dev/null
31450   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
31451   exec 5>>config.log
31452   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
31453   # would make configure fail if this is the last instruction.
31454   $ac_cs_success || { (exit 1); exit 1; }
31455 fi
31456
31457