]> git.decadent.org.uk Git - nfs-utils.git/blob - configure
Imported Upstream version 1.0.11~git-20060117
[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.0.10.
4 #
5 # Report bugs to <nfs@lists.sf.net>.
6 #
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## --------------------- ##
12 ## M4sh Initialization.  ##
13 ## --------------------- ##
14
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18   emulate sh
19   NULLCMD=:
20   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21   # is contrary to our usage.  Disable this feature.
22   alias -g '${1+"$@"}'='"$@"'
23   setopt NO_GLOB_SUBST
24 else
25   case `(set -o) 2>/dev/null` in
26   *posix*) set -o posix ;;
27 esac
28
29 fi
30
31
32
33
34 # PATH needs CR
35 # Avoid depending upon Character Ranges.
36 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
37 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
38 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
39 as_cr_digits='0123456789'
40 as_cr_alnum=$as_cr_Letters$as_cr_digits
41
42 # The user is always right.
43 if test "${PATH_SEPARATOR+set}" != set; then
44   echo "#! /bin/sh" >conf$$.sh
45   echo  "exit 0"   >>conf$$.sh
46   chmod +x conf$$.sh
47   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
48     PATH_SEPARATOR=';'
49   else
50     PATH_SEPARATOR=:
51   fi
52   rm -f conf$$.sh
53 fi
54
55 # Support unset when possible.
56 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
57   as_unset=unset
58 else
59   as_unset=false
60 fi
61
62
63 # IFS
64 # We need space, tab and new line, in precisely that order.  Quoting is
65 # there to prevent editors from complaining about space-tab.
66 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
67 # splitting by setting IFS to empty value.)
68 as_nl='
69 '
70 IFS=" ""        $as_nl"
71
72 # Find who we are.  Look in the path if we contain no directory separator.
73 case $0 in
74   *[\\/]* ) as_myself=$0 ;;
75   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
76 for as_dir in $PATH
77 do
78   IFS=$as_save_IFS
79   test -z "$as_dir" && as_dir=.
80   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
81 done
82 IFS=$as_save_IFS
83
84      ;;
85 esac
86 # We did not find ourselves, most probably we were run as `sh COMMAND'
87 # in which case we are not to be found in the path.
88 if test "x$as_myself" = x; then
89   as_myself=$0
90 fi
91 if test ! -f "$as_myself"; then
92   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
93   { (exit 1); exit 1; }
94 fi
95
96 # Work around bugs in pre-3.0 UWIN ksh.
97 for as_var in ENV MAIL MAILPATH
98 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
99 done
100 PS1='$ '
101 PS2='> '
102 PS4='+ '
103
104 # NLS nuisances.
105 for as_var in \
106   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
107   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
108   LC_TELEPHONE LC_TIME
109 do
110   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
111     eval $as_var=C; export $as_var
112   else
113     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
114   fi
115 done
116
117 # Required to use basename.
118 if expr a : '\(a\)' >/dev/null 2>&1 &&
119    test "X`expr 00001 : '.*\(...\)'`" = X001; then
120   as_expr=expr
121 else
122   as_expr=false
123 fi
124
125 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
126   as_basename=basename
127 else
128   as_basename=false
129 fi
130
131
132 # Name of the executable.
133 as_me=`$as_basename -- "$0" ||
134 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
135          X"$0" : 'X\(//\)$' \| \
136          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
137 echo X/"$0" |
138     sed '/^.*\/\([^/][^/]*\)\/*$/{
139             s//\1/
140             q
141           }
142           /^X\/\(\/\/\)$/{
143             s//\1/
144             q
145           }
146           /^X\/\(\/\).*/{
147             s//\1/
148             q
149           }
150           s/.*/./; q'`
151
152 # CDPATH.
153 $as_unset CDPATH
154
155
156 if test "x$CONFIG_SHELL" = x; then
157   if (eval ":") 2>/dev/null; then
158   as_have_required=yes
159 else
160   as_have_required=no
161 fi
162
163   if test $as_have_required = yes &&     (eval ":
164 (as_func_return () {
165   (exit \$1)
166 }
167 as_func_success () {
168   as_func_return 0
169 }
170 as_func_failure () {
171   as_func_return 1
172 }
173 as_func_ret_success () {
174   return 0
175 }
176 as_func_ret_failure () {
177   return 1
178 }
179
180 exitcode=0
181 if as_func_success; then
182   :
183 else
184   exitcode=1
185   echo as_func_success failed.
186 fi
187
188 if as_func_failure; then
189   exitcode=1
190   echo as_func_failure succeeded.
191 fi
192
193 if as_func_ret_success; then
194   :
195 else
196   exitcode=1
197   echo as_func_ret_success failed.
198 fi
199
200 if as_func_ret_failure; then
201   exitcode=1
202   echo as_func_ret_failure succeeded.
203 fi
204
205 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
206   :
207 else
208   exitcode=1
209   echo positional parameters were not saved.
210 fi
211
212 test \$exitcode = 0) || { (exit 1); exit 1; }
213
214 (
215   as_lineno_1=\$LINENO
216   as_lineno_2=\$LINENO
217   test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
218   test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
219 ") 2> /dev/null; then
220   :
221 else
222   as_candidate_shells=
223     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
224 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
225 do
226   IFS=$as_save_IFS
227   test -z "$as_dir" && as_dir=.
228   case $as_dir in
229          /*)
230            for as_base in sh bash ksh sh5; do
231              as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
232            done;;
233        esac
234 done
235 IFS=$as_save_IFS
236
237
238       for as_shell in $as_candidate_shells $SHELL; do
239          # Try only shells that exist, to save several forks.
240          if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
241                 { ("$as_shell") 2> /dev/null <<\_ASEOF
242 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
243   emulate sh
244   NULLCMD=:
245   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
246   # is contrary to our usage.  Disable this feature.
247   alias -g '${1+"$@"}'='"$@"'
248   setopt NO_GLOB_SUBST
249 else
250   case `(set -o) 2>/dev/null` in
251   *posix*) set -o posix ;;
252 esac
253
254 fi
255
256
257 :
258 _ASEOF
259 }; then
260   CONFIG_SHELL=$as_shell
261                as_have_required=yes
262                if { "$as_shell" 2> /dev/null <<\_ASEOF
263 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
264   emulate sh
265   NULLCMD=:
266   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
267   # is contrary to our usage.  Disable this feature.
268   alias -g '${1+"$@"}'='"$@"'
269   setopt NO_GLOB_SUBST
270 else
271   case `(set -o) 2>/dev/null` in
272   *posix*) set -o posix ;;
273 esac
274
275 fi
276
277
278 :
279 (as_func_return () {
280   (exit $1)
281 }
282 as_func_success () {
283   as_func_return 0
284 }
285 as_func_failure () {
286   as_func_return 1
287 }
288 as_func_ret_success () {
289   return 0
290 }
291 as_func_ret_failure () {
292   return 1
293 }
294
295 exitcode=0
296 if as_func_success; then
297   :
298 else
299   exitcode=1
300   echo as_func_success failed.
301 fi
302
303 if as_func_failure; then
304   exitcode=1
305   echo as_func_failure succeeded.
306 fi
307
308 if as_func_ret_success; then
309   :
310 else
311   exitcode=1
312   echo as_func_ret_success failed.
313 fi
314
315 if as_func_ret_failure; then
316   exitcode=1
317   echo as_func_ret_failure succeeded.
318 fi
319
320 if ( set x; as_func_ret_success y && test x = "$1" ); then
321   :
322 else
323   exitcode=1
324   echo positional parameters were not saved.
325 fi
326
327 test $exitcode = 0) || { (exit 1); exit 1; }
328
329 (
330   as_lineno_1=$LINENO
331   as_lineno_2=$LINENO
332   test "x$as_lineno_1" != "x$as_lineno_2" &&
333   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
334
335 _ASEOF
336 }; then
337   break
338 fi
339
340 fi
341
342       done
343
344       if test "x$CONFIG_SHELL" != x; then
345   for as_var in BASH_ENV ENV
346         do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
347         done
348         export CONFIG_SHELL
349         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
350 fi
351
352
353     if test $as_have_required = no; then
354   echo This script requires a shell more modern than all the
355       echo shells that I found on your system.  Please install a
356       echo modern shell, or manually run the script under such a
357       echo shell if you do have one.
358       { (exit 1); exit 1; }
359 fi
360
361
362 fi
363
364 fi
365
366
367
368 (eval "as_func_return () {
369   (exit \$1)
370 }
371 as_func_success () {
372   as_func_return 0
373 }
374 as_func_failure () {
375   as_func_return 1
376 }
377 as_func_ret_success () {
378   return 0
379 }
380 as_func_ret_failure () {
381   return 1
382 }
383
384 exitcode=0
385 if as_func_success; then
386   :
387 else
388   exitcode=1
389   echo as_func_success failed.
390 fi
391
392 if as_func_failure; then
393   exitcode=1
394   echo as_func_failure succeeded.
395 fi
396
397 if as_func_ret_success; then
398   :
399 else
400   exitcode=1
401   echo as_func_ret_success failed.
402 fi
403
404 if as_func_ret_failure; then
405   exitcode=1
406   echo as_func_ret_failure succeeded.
407 fi
408
409 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
410   :
411 else
412   exitcode=1
413   echo positional parameters were not saved.
414 fi
415
416 test \$exitcode = 0") || {
417   echo No shell found that supports shell functions.
418   echo Please tell autoconf@gnu.org about your system,
419   echo including any error possibly output before this
420   echo message
421 }
422
423
424
425   as_lineno_1=$LINENO
426   as_lineno_2=$LINENO
427   test "x$as_lineno_1" != "x$as_lineno_2" &&
428   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
429
430   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
431   # uniformly replaced by the line number.  The first 'sed' inserts a
432   # line-number line after each line using $LINENO; the second 'sed'
433   # does the real work.  The second script uses 'N' to pair each
434   # line-number line with the line containing $LINENO, and appends
435   # trailing '-' during substitution so that $LINENO is not a special
436   # case at line end.
437   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
438   # scripts with optimization help from Paolo Bonzini.  Blame Lee
439   # E. McMahon (1931-1989) for sed's syntax.  :-)
440   sed -n '
441     p
442     /[$]LINENO/=
443   ' <$as_myself |
444     sed '
445       s/[$]LINENO.*/&-/
446       t lineno
447       b
448       :lineno
449       N
450       :loop
451       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
452       t loop
453       s/-\n.*//
454     ' >$as_me.lineno &&
455   chmod +x "$as_me.lineno" ||
456     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
457    { (exit 1); exit 1; }; }
458
459   # Don't try to exec as it changes $[0], causing all sort of problems
460   # (the dirname of $[0] is not the place where we might find the
461   # original and so on.  Autoconf is especially sensitive to this).
462   . "./$as_me.lineno"
463   # Exit status is that of the last command.
464   exit
465 }
466
467
468 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
469   as_dirname=dirname
470 else
471   as_dirname=false
472 fi
473
474 ECHO_C= ECHO_N= ECHO_T=
475 case `echo -n x` in
476 -n*)
477   case `echo 'x\c'` in
478   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
479   *)   ECHO_C='\c';;
480   esac;;
481 *)
482   ECHO_N='-n';;
483 esac
484
485 if expr a : '\(a\)' >/dev/null 2>&1 &&
486    test "X`expr 00001 : '.*\(...\)'`" = X001; then
487   as_expr=expr
488 else
489   as_expr=false
490 fi
491
492 rm -f conf$$ conf$$.exe conf$$.file
493 if test -d conf$$.dir; then
494   rm -f conf$$.dir/conf$$.file
495 else
496   rm -f conf$$.dir
497   mkdir conf$$.dir
498 fi
499 echo >conf$$.file
500 if ln -s conf$$.file conf$$ 2>/dev/null; then
501   as_ln_s='ln -s'
502   # ... but there are two gotchas:
503   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
504   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
505   # In both cases, we have to default to `cp -p'.
506   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
507     as_ln_s='cp -p'
508 elif ln conf$$.file conf$$ 2>/dev/null; then
509   as_ln_s=ln
510 else
511   as_ln_s='cp -p'
512 fi
513 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
514 rmdir conf$$.dir 2>/dev/null
515
516 if mkdir -p . 2>/dev/null; then
517   as_mkdir_p=:
518 else
519   test -d ./-p && rmdir ./-p
520   as_mkdir_p=false
521 fi
522
523 if test -x / >/dev/null 2>&1; then
524   as_test_x='test -x'
525 else
526   if ls -dL / >/dev/null 2>&1; then
527     as_ls_L_option=L
528   else
529     as_ls_L_option=
530   fi
531   as_test_x='
532     eval sh -c '\''
533       if test -d "$1"; then
534         test -d "$1/.";
535       else
536         case $1 in
537         -*)set "./$1";;
538         esac;
539         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
540         ???[sx]*):;;*)false;;esac;fi
541     '\'' sh
542   '
543 fi
544 as_executable_p=$as_test_x
545
546 # Sed expression to map a string onto a valid CPP name.
547 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
548
549 # Sed expression to map a string onto a valid variable name.
550 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
551
552
553
554
555 # Check that we are running under the correct shell.
556 SHELL=${CONFIG_SHELL-/bin/sh}
557
558 case X$ECHO in
559 X*--fallback-echo)
560   # Remove one level of quotation (which was required for Make).
561   ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
562   ;;
563 esac
564
565 echo=${ECHO-echo}
566 if test "X$1" = X--no-reexec; then
567   # Discard the --no-reexec flag, and continue.
568   shift
569 elif test "X$1" = X--fallback-echo; then
570   # Avoid inline document here, it may be left over
571   :
572 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
573   # Yippee, $echo works!
574   :
575 else
576   # Restart under the correct shell.
577   exec $SHELL "$0" --no-reexec ${1+"$@"}
578 fi
579
580 if test "X$1" = X--fallback-echo; then
581   # used as fallback echo
582   shift
583   cat <<EOF
584 $*
585 EOF
586   exit 0
587 fi
588
589 # The HP-UX ksh and POSIX shell print the target directory to stdout
590 # if CDPATH is set.
591 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
592
593 if test -z "$ECHO"; then
594 if test "X${echo_test_string+set}" != Xset; then
595 # find a string as large as possible, as long as the shell can cope with it
596   for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
597     # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
598     if (echo_test_string=`eval $cmd`) 2>/dev/null &&
599        echo_test_string=`eval $cmd` &&
600        (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
601     then
602       break
603     fi
604   done
605 fi
606
607 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
608    echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
609    test "X$echo_testing_string" = "X$echo_test_string"; then
610   :
611 else
612   # The Solaris, AIX, and Digital Unix default echo programs unquote
613   # backslashes.  This makes it impossible to quote backslashes using
614   #   echo "$something" | sed 's/\\/\\\\/g'
615   #
616   # So, first we look for a working echo in the user's PATH.
617
618   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
619   for dir in $PATH /usr/ucb; do
620     IFS="$lt_save_ifs"
621     if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
622        test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
623        echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
624        test "X$echo_testing_string" = "X$echo_test_string"; then
625       echo="$dir/echo"
626       break
627     fi
628   done
629   IFS="$lt_save_ifs"
630
631   if test "X$echo" = Xecho; then
632     # We didn't find a better echo, so look for alternatives.
633     if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
634        echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
635        test "X$echo_testing_string" = "X$echo_test_string"; then
636       # This shell has a builtin print -r that does the trick.
637       echo='print -r'
638     elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
639          test "X$CONFIG_SHELL" != X/bin/ksh; then
640       # If we have ksh, try running configure again with it.
641       ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
642       export ORIGINAL_CONFIG_SHELL
643       CONFIG_SHELL=/bin/ksh
644       export CONFIG_SHELL
645       exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
646     else
647       # Try using printf.
648       echo='printf %s\n'
649       if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
650          echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
651          test "X$echo_testing_string" = "X$echo_test_string"; then
652         # Cool, printf works
653         :
654       elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
655            test "X$echo_testing_string" = 'X\t' &&
656            echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
657            test "X$echo_testing_string" = "X$echo_test_string"; then
658         CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
659         export CONFIG_SHELL
660         SHELL="$CONFIG_SHELL"
661         export SHELL
662         echo="$CONFIG_SHELL $0 --fallback-echo"
663       elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
664            test "X$echo_testing_string" = 'X\t' &&
665            echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
666            test "X$echo_testing_string" = "X$echo_test_string"; then
667         echo="$CONFIG_SHELL $0 --fallback-echo"
668       else
669         # maybe with a smaller string...
670         prev=:
671
672         for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
673           if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
674           then
675             break
676           fi
677           prev="$cmd"
678         done
679
680         if test "$prev" != 'sed 50q "$0"'; then
681           echo_test_string=`eval $prev`
682           export echo_test_string
683           exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
684         else
685           # Oops.  We lost completely, so just stick with echo.
686           echo=echo
687         fi
688       fi
689     fi
690   fi
691 fi
692 fi
693
694 # Copy echo and quote the copy suitably for passing to libtool from
695 # the Makefile, instead of quoting the original, which is used later.
696 ECHO=$echo
697 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
698    ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
699 fi
700
701
702
703
704 tagnames=${tagnames+${tagnames},}CXX
705
706 tagnames=${tagnames+${tagnames},}F77
707
708 exec 7<&0 </dev/null 6>&1
709
710 # Name of the host.
711 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
712 # so uname gets run too.
713 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
714
715 #
716 # Initializations.
717 #
718 ac_default_prefix=/usr/local
719 ac_clean_files=
720 ac_config_libobj_dir=.
721 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.0.10'
732 PACKAGE_STRING='linux nfs-utils 1.0.10'
733 PACKAGE_BUGREPORT='nfs@lists.sf.net'
734
735 ac_unique_file="tools/getiversion/getiversion.c"
736 ac_default_prefix=/usr
737 ac_unique_file="support/include/config.h.in"
738 # Factoring default headers for most tests.
739 ac_includes_default="\
740 #include <stdio.h>
741 #ifdef HAVE_SYS_TYPES_H
742 # include <sys/types.h>
743 #endif
744 #ifdef HAVE_SYS_STAT_H
745 # include <sys/stat.h>
746 #endif
747 #ifdef STDC_HEADERS
748 # include <stdlib.h>
749 # include <stddef.h>
750 #else
751 # ifdef HAVE_STDLIB_H
752 #  include <stdlib.h>
753 # endif
754 #endif
755 #ifdef HAVE_STRING_H
756 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
757 #  include <memory.h>
758 # endif
759 # include <string.h>
760 #endif
761 #ifdef HAVE_STRINGS_H
762 # include <strings.h>
763 #endif
764 #ifdef HAVE_INTTYPES_H
765 # include <inttypes.h>
766 #endif
767 #ifdef HAVE_STDINT_H
768 # include <stdint.h>
769 #endif
770 #ifdef HAVE_UNISTD_H
771 # include <unistd.h>
772 #endif"
773
774 ac_subst_vars='SHELL
775 PATH_SEPARATOR
776 PACKAGE_NAME
777 PACKAGE_TARNAME
778 PACKAGE_VERSION
779 PACKAGE_STRING
780 PACKAGE_BUGREPORT
781 exec_prefix
782 prefix
783 program_transform_name
784 bindir
785 sbindir
786 libexecdir
787 datarootdir
788 datadir
789 sysconfdir
790 sharedstatedir
791 localstatedir
792 includedir
793 oldincludedir
794 docdir
795 infodir
796 htmldir
797 dvidir
798 pdfdir
799 psdir
800 libdir
801 localedir
802 mandir
803 DEFS
804 ECHO_C
805 ECHO_N
806 ECHO_T
807 LIBS
808 build_alias
809 host_alias
810 target_alias
811 build
812 build_cpu
813 build_vendor
814 build_os
815 host
816 host_cpu
817 host_vendor
818 host_os
819 INSTALL_PROGRAM
820 INSTALL_SCRIPT
821 INSTALL_DATA
822 CYGPATH_W
823 PACKAGE
824 VERSION
825 ACLOCAL
826 AUTOCONF
827 AUTOMAKE
828 AUTOHEADER
829 MAKEINFO
830 AMTAR
831 install_sh
832 STRIP
833 INSTALL_STRIP_PROGRAM
834 mkdir_p
835 AWK
836 SET_MAKE
837 am__leading_dot
838 RELEASE
839 statedir
840 statduser
841 enable_nfsv3
842 IDMAPD
843 enable_nfsv4
844 CONFIG_NFSV4_TRUE
845 CONFIG_NFSV4_FALSE
846 GSSD
847 SVCGSSD
848 enable_gss
849 CONFIG_GSS_TRUE
850 CONFIG_GSS_FALSE
851 kprefix
852 secure_statd
853 CONFIG_RQUOTAD_TRUE
854 CONFIG_RQUOTAD_FALSE
855 CONFIG_MOUNT_TRUE
856 CONFIG_MOUNT_FALSE
857 CC
858 CFLAGS
859 LDFLAGS
860 CPPFLAGS
861 ac_ct_CC
862 EXEEXT
863 OBJEXT
864 DEPDIR
865 am__include
866 am__quote
867 AMDEP_TRUE
868 AMDEP_FALSE
869 AMDEPBACKSLASH
870 CCDEPMODE
871 am__fastdepCC_TRUE
872 am__fastdepCC_FALSE
873 LIBWRAP
874 HAVE_LIBWRAP
875 HAVE_TCP_WRAPPER
876 CXX
877 CXXFLAGS
878 ac_ct_CXX
879 CXXDEPMODE
880 am__fastdepCXX_TRUE
881 am__fastdepCXX_FALSE
882 CPP
883 LN_S
884 GREP
885 EGREP
886 ECHO
887 AR
888 RANLIB
889 CXXCPP
890 F77
891 FFLAGS
892 ac_ct_F77
893 LIBTOOL
894 CC_FOR_BUILD
895 LD
896 LIBNSL
897 PKG_CONFIG
898 RPCSECGSS_CFLAGS
899 RPCSECGSS_LIBS
900 GSSAPI_CFLAGS
901 GSSAPI_LIBS
902 LIBSOCKET
903 LIBCRYPT
904 LIBBSD
905 KRBDIR
906 KRBLIBS
907 KRBCFLAGS
908 KRBLDFLAGS
909 K5VERS
910 ALLOCA
911 LIBOBJS
912 CFLAGS_FOR_BUILD
913 CXXFLAGS_FOR_BUILD
914 CPPFLAGS_FOR_BUILD
915 LDFLAGS_FOR_BUILD
916 AM_CPPFLAGS
917 AM_CFLAGS
918 ACLOCAL_AMFLAGS
919 LTLIBOBJS'
920 ac_subst_files=''
921       ac_precious_vars='build_alias
922 host_alias
923 target_alias
924 CC
925 CFLAGS
926 LDFLAGS
927 LIBS
928 CPPFLAGS
929 CXX
930 CXXFLAGS
931 CCC
932 CPP
933 CXXCPP
934 F77
935 FFLAGS
936 PKG_CONFIG
937 RPCSECGSS_CFLAGS
938 RPCSECGSS_LIBS
939 GSSAPI_CFLAGS
940 GSSAPI_LIBS'
941
942
943 # Initialize some variables set by options.
944 ac_init_help=
945 ac_init_version=false
946 # The variables have the same names as the options, with
947 # dashes changed to underlines.
948 cache_file=/dev/null
949 exec_prefix=NONE
950 no_create=
951 no_recursion=
952 prefix=NONE
953 program_prefix=NONE
954 program_suffix=NONE
955 program_transform_name=s,x,x,
956 silent=
957 site=
958 srcdir=
959 verbose=
960 x_includes=NONE
961 x_libraries=NONE
962
963 # Installation directory options.
964 # These are left unexpanded so users can "make install exec_prefix=/foo"
965 # and all the variables that are supposed to be based on exec_prefix
966 # by default will actually change.
967 # Use braces instead of parens because sh, perl, etc. also accept them.
968 # (The list follows the same order as the GNU Coding Standards.)
969 bindir='${exec_prefix}/bin'
970 sbindir='${exec_prefix}/sbin'
971 libexecdir='${exec_prefix}/libexec'
972 datarootdir='${prefix}/share'
973 datadir='${datarootdir}'
974 sysconfdir='${prefix}/etc'
975 sharedstatedir='${prefix}/com'
976 localstatedir='${prefix}/var'
977 includedir='${prefix}/include'
978 oldincludedir='/usr/include'
979 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
980 infodir='${datarootdir}/info'
981 htmldir='${docdir}'
982 dvidir='${docdir}'
983 pdfdir='${docdir}'
984 psdir='${docdir}'
985 libdir='${exec_prefix}/lib'
986 localedir='${datarootdir}/locale'
987 mandir='${datarootdir}/man'
988
989 ac_prev=
990 ac_dashdash=
991 for ac_option
992 do
993   # If the previous option needs an argument, assign it.
994   if test -n "$ac_prev"; then
995     eval $ac_prev=\$ac_option
996     ac_prev=
997     continue
998   fi
999
1000   case $ac_option in
1001   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1002   *)    ac_optarg=yes ;;
1003   esac
1004
1005   # Accept the important Cygnus configure options, so we can diagnose typos.
1006
1007   case $ac_dashdash$ac_option in
1008   --)
1009     ac_dashdash=yes ;;
1010
1011   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1012     ac_prev=bindir ;;
1013   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1014     bindir=$ac_optarg ;;
1015
1016   -build | --build | --buil | --bui | --bu)
1017     ac_prev=build_alias ;;
1018   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1019     build_alias=$ac_optarg ;;
1020
1021   -cache-file | --cache-file | --cache-fil | --cache-fi \
1022   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1023     ac_prev=cache_file ;;
1024   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1025   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1026     cache_file=$ac_optarg ;;
1027
1028   --config-cache | -C)
1029     cache_file=config.cache ;;
1030
1031   -datadir | --datadir | --datadi | --datad)
1032     ac_prev=datadir ;;
1033   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1034     datadir=$ac_optarg ;;
1035
1036   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1037   | --dataroo | --dataro | --datar)
1038     ac_prev=datarootdir ;;
1039   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1040   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1041     datarootdir=$ac_optarg ;;
1042
1043   -disable-* | --disable-*)
1044     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1045     # Reject names that are not valid shell variable names.
1046     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1047       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1048    { (exit 1); exit 1; }; }
1049     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1050     eval enable_$ac_feature=no ;;
1051
1052   -docdir | --docdir | --docdi | --doc | --do)
1053     ac_prev=docdir ;;
1054   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1055     docdir=$ac_optarg ;;
1056
1057   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1058     ac_prev=dvidir ;;
1059   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1060     dvidir=$ac_optarg ;;
1061
1062   -enable-* | --enable-*)
1063     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1064     # Reject names that are not valid shell variable names.
1065     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1066       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1067    { (exit 1); exit 1; }; }
1068     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1069     eval enable_$ac_feature=\$ac_optarg ;;
1070
1071   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1072   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1073   | --exec | --exe | --ex)
1074     ac_prev=exec_prefix ;;
1075   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1076   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1077   | --exec=* | --exe=* | --ex=*)
1078     exec_prefix=$ac_optarg ;;
1079
1080   -gas | --gas | --ga | --g)
1081     # Obsolete; use --with-gas.
1082     with_gas=yes ;;
1083
1084   -help | --help | --hel | --he | -h)
1085     ac_init_help=long ;;
1086   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1087     ac_init_help=recursive ;;
1088   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1089     ac_init_help=short ;;
1090
1091   -host | --host | --hos | --ho)
1092     ac_prev=host_alias ;;
1093   -host=* | --host=* | --hos=* | --ho=*)
1094     host_alias=$ac_optarg ;;
1095
1096   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1097     ac_prev=htmldir ;;
1098   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1099   | --ht=*)
1100     htmldir=$ac_optarg ;;
1101
1102   -includedir | --includedir | --includedi | --included | --include \
1103   | --includ | --inclu | --incl | --inc)
1104     ac_prev=includedir ;;
1105   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1106   | --includ=* | --inclu=* | --incl=* | --inc=*)
1107     includedir=$ac_optarg ;;
1108
1109   -infodir | --infodir | --infodi | --infod | --info | --inf)
1110     ac_prev=infodir ;;
1111   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1112     infodir=$ac_optarg ;;
1113
1114   -libdir | --libdir | --libdi | --libd)
1115     ac_prev=libdir ;;
1116   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1117     libdir=$ac_optarg ;;
1118
1119   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1120   | --libexe | --libex | --libe)
1121     ac_prev=libexecdir ;;
1122   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1123   | --libexe=* | --libex=* | --libe=*)
1124     libexecdir=$ac_optarg ;;
1125
1126   -localedir | --localedir | --localedi | --localed | --locale)
1127     ac_prev=localedir ;;
1128   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1129     localedir=$ac_optarg ;;
1130
1131   -localstatedir | --localstatedir | --localstatedi | --localstated \
1132   | --localstate | --localstat | --localsta | --localst | --locals)
1133     ac_prev=localstatedir ;;
1134   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1135   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1136     localstatedir=$ac_optarg ;;
1137
1138   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1139     ac_prev=mandir ;;
1140   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1141     mandir=$ac_optarg ;;
1142
1143   -nfp | --nfp | --nf)
1144     # Obsolete; use --without-fp.
1145     with_fp=no ;;
1146
1147   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1148   | --no-cr | --no-c | -n)
1149     no_create=yes ;;
1150
1151   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1152   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1153     no_recursion=yes ;;
1154
1155   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1156   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1157   | --oldin | --oldi | --old | --ol | --o)
1158     ac_prev=oldincludedir ;;
1159   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1160   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1161   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1162     oldincludedir=$ac_optarg ;;
1163
1164   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1165     ac_prev=prefix ;;
1166   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1167     prefix=$ac_optarg ;;
1168
1169   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1170   | --program-pre | --program-pr | --program-p)
1171     ac_prev=program_prefix ;;
1172   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1173   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1174     program_prefix=$ac_optarg ;;
1175
1176   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1177   | --program-suf | --program-su | --program-s)
1178     ac_prev=program_suffix ;;
1179   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1180   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1181     program_suffix=$ac_optarg ;;
1182
1183   -program-transform-name | --program-transform-name \
1184   | --program-transform-nam | --program-transform-na \
1185   | --program-transform-n | --program-transform- \
1186   | --program-transform | --program-transfor \
1187   | --program-transfo | --program-transf \
1188   | --program-trans | --program-tran \
1189   | --progr-tra | --program-tr | --program-t)
1190     ac_prev=program_transform_name ;;
1191   -program-transform-name=* | --program-transform-name=* \
1192   | --program-transform-nam=* | --program-transform-na=* \
1193   | --program-transform-n=* | --program-transform-=* \
1194   | --program-transform=* | --program-transfor=* \
1195   | --program-transfo=* | --program-transf=* \
1196   | --program-trans=* | --program-tran=* \
1197   | --progr-tra=* | --program-tr=* | --program-t=*)
1198     program_transform_name=$ac_optarg ;;
1199
1200   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1201     ac_prev=pdfdir ;;
1202   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1203     pdfdir=$ac_optarg ;;
1204
1205   -psdir | --psdir | --psdi | --psd | --ps)
1206     ac_prev=psdir ;;
1207   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1208     psdir=$ac_optarg ;;
1209
1210   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1211   | -silent | --silent | --silen | --sile | --sil)
1212     silent=yes ;;
1213
1214   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1215     ac_prev=sbindir ;;
1216   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1217   | --sbi=* | --sb=*)
1218     sbindir=$ac_optarg ;;
1219
1220   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1221   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1222   | --sharedst | --shareds | --shared | --share | --shar \
1223   | --sha | --sh)
1224     ac_prev=sharedstatedir ;;
1225   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1226   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1227   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1228   | --sha=* | --sh=*)
1229     sharedstatedir=$ac_optarg ;;
1230
1231   -site | --site | --sit)
1232     ac_prev=site ;;
1233   -site=* | --site=* | --sit=*)
1234     site=$ac_optarg ;;
1235
1236   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1237     ac_prev=srcdir ;;
1238   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1239     srcdir=$ac_optarg ;;
1240
1241   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1242   | --syscon | --sysco | --sysc | --sys | --sy)
1243     ac_prev=sysconfdir ;;
1244   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1245   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1246     sysconfdir=$ac_optarg ;;
1247
1248   -target | --target | --targe | --targ | --tar | --ta | --t)
1249     ac_prev=target_alias ;;
1250   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1251     target_alias=$ac_optarg ;;
1252
1253   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1254     verbose=yes ;;
1255
1256   -version | --version | --versio | --versi | --vers | -V)
1257     ac_init_version=: ;;
1258
1259   -with-* | --with-*)
1260     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1261     # Reject names that are not valid shell variable names.
1262     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1263       { echo "$as_me: error: invalid package name: $ac_package" >&2
1264    { (exit 1); exit 1; }; }
1265     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1266     eval with_$ac_package=\$ac_optarg ;;
1267
1268   -without-* | --without-*)
1269     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1270     # Reject names that are not valid shell variable names.
1271     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1272       { echo "$as_me: error: invalid package name: $ac_package" >&2
1273    { (exit 1); exit 1; }; }
1274     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1275     eval with_$ac_package=no ;;
1276
1277   --x)
1278     # Obsolete; use --with-x.
1279     with_x=yes ;;
1280
1281   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1282   | --x-incl | --x-inc | --x-in | --x-i)
1283     ac_prev=x_includes ;;
1284   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1285   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1286     x_includes=$ac_optarg ;;
1287
1288   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1289   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1290     ac_prev=x_libraries ;;
1291   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1292   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1293     x_libraries=$ac_optarg ;;
1294
1295   -*) { echo "$as_me: error: unrecognized option: $ac_option
1296 Try \`$0 --help' for more information." >&2
1297    { (exit 1); exit 1; }; }
1298     ;;
1299
1300   *=*)
1301     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1302     # Reject names that are not valid shell variable names.
1303     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1304       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1305    { (exit 1); exit 1; }; }
1306     eval $ac_envvar=\$ac_optarg
1307     export $ac_envvar ;;
1308
1309   *)
1310     # FIXME: should be removed in autoconf 3.0.
1311     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1312     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1313       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1314     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1315     ;;
1316
1317   esac
1318 done
1319
1320 if test -n "$ac_prev"; then
1321   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1322   { echo "$as_me: error: missing argument to $ac_option" >&2
1323    { (exit 1); exit 1; }; }
1324 fi
1325
1326 # Be sure to have absolute directory names.
1327 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1328                 datadir sysconfdir sharedstatedir localstatedir includedir \
1329                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1330                 libdir localedir mandir
1331 do
1332   eval ac_val=\$$ac_var
1333   case $ac_val in
1334     [\\/$]* | ?:[\\/]* )  continue;;
1335     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1336   esac
1337   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1338    { (exit 1); exit 1; }; }
1339 done
1340
1341 # There might be people who depend on the old broken behavior: `$host'
1342 # used to hold the argument of --host etc.
1343 # FIXME: To remove some day.
1344 build=$build_alias
1345 host=$host_alias
1346 target=$target_alias
1347
1348 # FIXME: To remove some day.
1349 if test "x$host_alias" != x; then
1350   if test "x$build_alias" = x; then
1351     cross_compiling=maybe
1352     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1353     If a cross compiler is detected then cross compile mode will be used." >&2
1354   elif test "x$build_alias" != "x$host_alias"; then
1355     cross_compiling=yes
1356   fi
1357 fi
1358
1359 ac_tool_prefix=
1360 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1361
1362 test "$silent" = yes && exec 6>/dev/null
1363
1364
1365 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1366 ac_ls_di=`ls -di .` &&
1367 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1368   { echo "$as_me: error: Working directory cannot be determined" >&2
1369    { (exit 1); exit 1; }; }
1370 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1371   { echo "$as_me: error: pwd does not report name of working directory" >&2
1372    { (exit 1); exit 1; }; }
1373
1374
1375 # Find the source files, if location was not specified.
1376 if test -z "$srcdir"; then
1377   ac_srcdir_defaulted=yes
1378   # Try the directory containing this script, then the parent directory.
1379   ac_confdir=`$as_dirname -- "$0" ||
1380 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1381          X"$0" : 'X\(//\)[^/]' \| \
1382          X"$0" : 'X\(//\)$' \| \
1383          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1384 echo X"$0" |
1385     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1386             s//\1/
1387             q
1388           }
1389           /^X\(\/\/\)[^/].*/{
1390             s//\1/
1391             q
1392           }
1393           /^X\(\/\/\)$/{
1394             s//\1/
1395             q
1396           }
1397           /^X\(\/\).*/{
1398             s//\1/
1399             q
1400           }
1401           s/.*/./; q'`
1402   srcdir=$ac_confdir
1403   if test ! -r "$srcdir/$ac_unique_file"; then
1404     srcdir=..
1405   fi
1406 else
1407   ac_srcdir_defaulted=no
1408 fi
1409 if test ! -r "$srcdir/$ac_unique_file"; then
1410   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1411   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1412    { (exit 1); exit 1; }; }
1413 fi
1414 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1415 ac_abs_confdir=`(
1416         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1417    { (exit 1); exit 1; }; }
1418         pwd)`
1419 # When building in place, set srcdir=.
1420 if test "$ac_abs_confdir" = "$ac_pwd"; then
1421   srcdir=.
1422 fi
1423 # Remove unnecessary trailing slashes from srcdir.
1424 # Double slashes in file names in object file debugging info
1425 # mess up M-x gdb in Emacs.
1426 case $srcdir in
1427 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1428 esac
1429 for ac_var in $ac_precious_vars; do
1430   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1431   eval ac_env_${ac_var}_value=\$${ac_var}
1432   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1433   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1434 done
1435
1436 #
1437 # Report the --help message.
1438 #
1439 if test "$ac_init_help" = "long"; then
1440   # Omit some internal or obsolete options to make the list less imposing.
1441   # This message is too long to be a string in the A/UX 3.1 sh.
1442   cat <<_ACEOF
1443 \`configure' configures linux nfs-utils 1.0.10 to adapt to many kinds of systems.
1444
1445 Usage: $0 [OPTION]... [VAR=VALUE]...
1446
1447 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1448 VAR=VALUE.  See below for descriptions of some of the useful variables.
1449
1450 Defaults for the options are specified in brackets.
1451
1452 Configuration:
1453   -h, --help              display this help and exit
1454       --help=short        display options specific to this package
1455       --help=recursive    display the short help of all the included packages
1456   -V, --version           display version information and exit
1457   -q, --quiet, --silent   do not print \`checking...' messages
1458       --cache-file=FILE   cache test results in FILE [disabled]
1459   -C, --config-cache      alias for \`--cache-file=config.cache'
1460   -n, --no-create         do not create output files
1461       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1462
1463 Installation directories:
1464   --prefix=PREFIX         install architecture-independent files in PREFIX
1465                           [$ac_default_prefix]
1466   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1467                           [PREFIX]
1468
1469 By default, \`make install' will install all the files in
1470 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1471 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1472 for instance \`--prefix=\$HOME'.
1473
1474 For better control, use the options below.
1475
1476 Fine tuning of the installation directories:
1477   --bindir=DIR           user executables [EPREFIX/bin]
1478   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1479   --libexecdir=DIR       program executables [EPREFIX/libexec]
1480   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1481   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1482   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1483   --libdir=DIR           object code libraries [EPREFIX/lib]
1484   --includedir=DIR       C header files [PREFIX/include]
1485   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1486   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1487   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1488   --infodir=DIR          info documentation [DATAROOTDIR/info]
1489   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1490   --mandir=DIR           man documentation [DATAROOTDIR/man]
1491   --docdir=DIR           documentation root [DATAROOTDIR/doc/nfs-utils]
1492   --htmldir=DIR          html documentation [DOCDIR]
1493   --dvidir=DIR           dvi documentation [DOCDIR]
1494   --pdfdir=DIR           pdf documentation [DOCDIR]
1495   --psdir=DIR            ps documentation [DOCDIR]
1496 _ACEOF
1497
1498   cat <<\_ACEOF
1499
1500 Program names:
1501   --program-prefix=PREFIX            prepend PREFIX to installed program names
1502   --program-suffix=SUFFIX            append SUFFIX to installed program names
1503   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1504
1505 System types:
1506   --build=BUILD     configure for building on BUILD [guessed]
1507   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1508 _ACEOF
1509 fi
1510
1511 if test -n "$ac_init_help"; then
1512   case $ac_init_help in
1513      short | recursive ) echo "Configuration of linux nfs-utils 1.0.10:";;
1514    esac
1515   cat <<\_ACEOF
1516
1517 Optional Features:
1518   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1519   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1520   --enable-nfsv3          enable support for NFSv3 [default=yes]
1521   --enable-nfsv4          enable support for NFSv4 [default=yes]
1522   --enable-gss            enable support for rpcsec_gss [default=yes]
1523   --enable-kprefix        install progs as rpc.knfsd etc
1524   --enable-secure-statd   Only lockd can use statd (security)
1525   --enable-rquotad        enable rquotad [default=yes]
1526   --enable-mount          Create mount.nfs and don't use the util-linux
1527                           mount(8) functionality. [default=no]
1528   --disable-dependency-tracking  speeds up one-time build
1529   --enable-dependency-tracking   do not reject slow dependency extractors
1530   --enable-shared[=PKGS]  build shared libraries [default=yes]
1531   --enable-static[=PKGS]  build static libraries [default=yes]
1532   --enable-fast-install[=PKGS]
1533                           optimize for fast installation [default=yes]
1534   --disable-libtool-lock  avoid locking (might break parallel builds)
1535
1536 Optional Packages:
1537   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1538   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1539   --with-release=XXX      set release to XXX [1]
1540   --with-statedir=/foo    use state dir /foo /var/lib/nfs
1541   --with-statduser=rpcuser
1542                           statd to run under [rpcuser or nobody]
1543   --with-tcp-wrappers[=PATH]      Enable tcpwrappers support
1544                  (optionally in PATH)
1545   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1546   --with-pic              try to use only PIC/non-PIC objects [default=use
1547                           both]
1548   --with-tags[=TAGS]      include additional configurations [automatic]
1549   --with-krb5=DIR         use Kerberos v5 installation in DIR
1550
1551 Some influential environment variables:
1552   CC          C compiler command
1553   CFLAGS      C compiler flags
1554   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1555               nonstandard directory <lib dir>
1556   LIBS        libraries to pass to the linker, e.g. -l<library>
1557   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1558               you have headers in a nonstandard directory <include dir>
1559   CXX         C++ compiler command
1560   CXXFLAGS    C++ compiler flags
1561   CPP         C preprocessor
1562   CXXCPP      C++ preprocessor
1563   F77         Fortran 77 compiler command
1564   FFLAGS      Fortran 77 compiler flags
1565   PKG_CONFIG  path to pkg-config utility
1566   RPCSECGSS_CFLAGS
1567               C compiler flags for RPCSECGSS, overriding pkg-config
1568   RPCSECGSS_LIBS
1569               linker flags for RPCSECGSS, overriding pkg-config
1570   GSSAPI_CFLAGS
1571               C compiler flags for GSSAPI, overriding pkg-config
1572   GSSAPI_LIBS linker flags for GSSAPI, overriding pkg-config
1573
1574 Use these variables to override the choices made by `configure' or to help
1575 it to find libraries and programs with nonstandard names/locations.
1576
1577 Report bugs to <nfs@lists.sf.net>.
1578 _ACEOF
1579 ac_status=$?
1580 fi
1581
1582 if test "$ac_init_help" = "recursive"; then
1583   # If there are subdirs, report their specific --help.
1584   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1585     test -d "$ac_dir" || continue
1586     ac_builddir=.
1587
1588 case "$ac_dir" in
1589 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1590 *)
1591   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1592   # A ".." for each directory in $ac_dir_suffix.
1593   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1594   case $ac_top_builddir_sub in
1595   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1596   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1597   esac ;;
1598 esac
1599 ac_abs_top_builddir=$ac_pwd
1600 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1601 # for backward compatibility:
1602 ac_top_builddir=$ac_top_build_prefix
1603
1604 case $srcdir in
1605   .)  # We are building in place.
1606     ac_srcdir=.
1607     ac_top_srcdir=$ac_top_builddir_sub
1608     ac_abs_top_srcdir=$ac_pwd ;;
1609   [\\/]* | ?:[\\/]* )  # Absolute name.
1610     ac_srcdir=$srcdir$ac_dir_suffix;
1611     ac_top_srcdir=$srcdir
1612     ac_abs_top_srcdir=$srcdir ;;
1613   *) # Relative name.
1614     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1615     ac_top_srcdir=$ac_top_build_prefix$srcdir
1616     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1617 esac
1618 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1619
1620     cd "$ac_dir" || { ac_status=$?; continue; }
1621     # Check for guested configure.
1622     if test -f "$ac_srcdir/configure.gnu"; then
1623       echo &&
1624       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1625     elif test -f "$ac_srcdir/configure"; then
1626       echo &&
1627       $SHELL "$ac_srcdir/configure" --help=recursive
1628     else
1629       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1630     fi || ac_status=$?
1631     cd "$ac_pwd" || { ac_status=$?; break; }
1632   done
1633 fi
1634
1635 test -n "$ac_init_help" && exit $ac_status
1636 if $ac_init_version; then
1637   cat <<\_ACEOF
1638 linux nfs-utils configure 1.0.10
1639 generated by GNU Autoconf 2.61
1640
1641 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1642 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1643 This configure script is free software; the Free Software Foundation
1644 gives unlimited permission to copy, distribute and modify it.
1645 _ACEOF
1646   exit
1647 fi
1648 cat >config.log <<_ACEOF
1649 This file contains any messages produced by compilers while
1650 running configure, to aid debugging if configure makes a mistake.
1651
1652 It was created by linux nfs-utils $as_me 1.0.10, which was
1653 generated by GNU Autoconf 2.61.  Invocation command line was
1654
1655   $ $0 $@
1656
1657 _ACEOF
1658 exec 5>>config.log
1659 {
1660 cat <<_ASUNAME
1661 ## --------- ##
1662 ## Platform. ##
1663 ## --------- ##
1664
1665 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1666 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1667 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1668 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1669 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1670
1671 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1672 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1673
1674 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1675 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1676 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1677 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1678 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1679 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1680 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1681
1682 _ASUNAME
1683
1684 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1685 for as_dir in $PATH
1686 do
1687   IFS=$as_save_IFS
1688   test -z "$as_dir" && as_dir=.
1689   echo "PATH: $as_dir"
1690 done
1691 IFS=$as_save_IFS
1692
1693 } >&5
1694
1695 cat >&5 <<_ACEOF
1696
1697
1698 ## ----------- ##
1699 ## Core tests. ##
1700 ## ----------- ##
1701
1702 _ACEOF
1703
1704
1705 # Keep a trace of the command line.
1706 # Strip out --no-create and --no-recursion so they do not pile up.
1707 # Strip out --silent because we don't want to record it for future runs.
1708 # Also quote any args containing shell meta-characters.
1709 # Make two passes to allow for proper duplicate-argument suppression.
1710 ac_configure_args=
1711 ac_configure_args0=
1712 ac_configure_args1=
1713 ac_must_keep_next=false
1714 for ac_pass in 1 2
1715 do
1716   for ac_arg
1717   do
1718     case $ac_arg in
1719     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1720     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1721     | -silent | --silent | --silen | --sile | --sil)
1722       continue ;;
1723     *\'*)
1724       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1725     esac
1726     case $ac_pass in
1727     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1728     2)
1729       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1730       if test $ac_must_keep_next = true; then
1731         ac_must_keep_next=false # Got value, back to normal.
1732       else
1733         case $ac_arg in
1734           *=* | --config-cache | -C | -disable-* | --disable-* \
1735           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1736           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1737           | -with-* | --with-* | -without-* | --without-* | --x)
1738             case "$ac_configure_args0 " in
1739               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1740             esac
1741             ;;
1742           -* ) ac_must_keep_next=true ;;
1743         esac
1744       fi
1745       ac_configure_args="$ac_configure_args '$ac_arg'"
1746       ;;
1747     esac
1748   done
1749 done
1750 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1751 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1752
1753 # When interrupted or exit'd, cleanup temporary files, and complete
1754 # config.log.  We remove comments because anyway the quotes in there
1755 # would cause problems or look ugly.
1756 # WARNING: Use '\'' to represent an apostrophe within the trap.
1757 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1758 trap 'exit_status=$?
1759   # Save into config.log some information that might help in debugging.
1760   {
1761     echo
1762
1763     cat <<\_ASBOX
1764 ## ---------------- ##
1765 ## Cache variables. ##
1766 ## ---------------- ##
1767 _ASBOX
1768     echo
1769     # The following way of writing the cache mishandles newlines in values,
1770 (
1771   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1772     eval ac_val=\$$ac_var
1773     case $ac_val in #(
1774     *${as_nl}*)
1775       case $ac_var in #(
1776       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1777 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1778       esac
1779       case $ac_var in #(
1780       _ | IFS | as_nl) ;; #(
1781       *) $as_unset $ac_var ;;
1782       esac ;;
1783     esac
1784   done
1785   (set) 2>&1 |
1786     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1787     *${as_nl}ac_space=\ *)
1788       sed -n \
1789         "s/'\''/'\''\\\\'\'''\''/g;
1790           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1791       ;; #(
1792     *)
1793       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1794       ;;
1795     esac |
1796     sort
1797 )
1798     echo
1799
1800     cat <<\_ASBOX
1801 ## ----------------- ##
1802 ## Output variables. ##
1803 ## ----------------- ##
1804 _ASBOX
1805     echo
1806     for ac_var in $ac_subst_vars
1807     do
1808       eval ac_val=\$$ac_var
1809       case $ac_val in
1810       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1811       esac
1812       echo "$ac_var='\''$ac_val'\''"
1813     done | sort
1814     echo
1815
1816     if test -n "$ac_subst_files"; then
1817       cat <<\_ASBOX
1818 ## ------------------- ##
1819 ## File substitutions. ##
1820 ## ------------------- ##
1821 _ASBOX
1822       echo
1823       for ac_var in $ac_subst_files
1824       do
1825         eval ac_val=\$$ac_var
1826         case $ac_val in
1827         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1828         esac
1829         echo "$ac_var='\''$ac_val'\''"
1830       done | sort
1831       echo
1832     fi
1833
1834     if test -s confdefs.h; then
1835       cat <<\_ASBOX
1836 ## ----------- ##
1837 ## confdefs.h. ##
1838 ## ----------- ##
1839 _ASBOX
1840       echo
1841       cat confdefs.h
1842       echo
1843     fi
1844     test "$ac_signal" != 0 &&
1845       echo "$as_me: caught signal $ac_signal"
1846     echo "$as_me: exit $exit_status"
1847   } >&5
1848   rm -f core *.core core.conftest.* &&
1849     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1850     exit $exit_status
1851 ' 0
1852 for ac_signal in 1 2 13 15; do
1853   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1854 done
1855 ac_signal=0
1856
1857 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1858 rm -f -r conftest* confdefs.h
1859
1860 # Predefined preprocessor variables.
1861
1862 cat >>confdefs.h <<_ACEOF
1863 #define PACKAGE_NAME "$PACKAGE_NAME"
1864 _ACEOF
1865
1866
1867 cat >>confdefs.h <<_ACEOF
1868 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1869 _ACEOF
1870
1871
1872 cat >>confdefs.h <<_ACEOF
1873 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1874 _ACEOF
1875
1876
1877 cat >>confdefs.h <<_ACEOF
1878 #define PACKAGE_STRING "$PACKAGE_STRING"
1879 _ACEOF
1880
1881
1882 cat >>confdefs.h <<_ACEOF
1883 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1884 _ACEOF
1885
1886
1887 # Let the site file select an alternate cache file if it wants to.
1888 # Prefer explicitly selected file to automatically selected ones.
1889 if test -n "$CONFIG_SITE"; then
1890   set x "$CONFIG_SITE"
1891 elif test "x$prefix" != xNONE; then
1892   set x "$prefix/share/config.site" "$prefix/etc/config.site"
1893 else
1894   set x "$ac_default_prefix/share/config.site" \
1895         "$ac_default_prefix/etc/config.site"
1896 fi
1897 shift
1898 for ac_site_file
1899 do
1900   if test -r "$ac_site_file"; then
1901     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1902 echo "$as_me: loading site script $ac_site_file" >&6;}
1903     sed 's/^/| /' "$ac_site_file" >&5
1904     . "$ac_site_file"
1905   fi
1906 done
1907
1908 if test -r "$cache_file"; then
1909   # Some versions of bash will fail to source /dev/null (special
1910   # files actually), so we avoid doing that.
1911   if test -f "$cache_file"; then
1912     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1913 echo "$as_me: loading cache $cache_file" >&6;}
1914     case $cache_file in
1915       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1916       *)                      . "./$cache_file";;
1917     esac
1918   fi
1919 else
1920   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1921 echo "$as_me: creating cache $cache_file" >&6;}
1922   >$cache_file
1923 fi
1924
1925 # Check that the precious variables saved in the cache have kept the same
1926 # value.
1927 ac_cache_corrupted=false
1928 for ac_var in $ac_precious_vars; do
1929   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1930   eval ac_new_set=\$ac_env_${ac_var}_set
1931   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1932   eval ac_new_val=\$ac_env_${ac_var}_value
1933   case $ac_old_set,$ac_new_set in
1934     set,)
1935       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1936 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1937       ac_cache_corrupted=: ;;
1938     ,set)
1939       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1940 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1941       ac_cache_corrupted=: ;;
1942     ,);;
1943     *)
1944       if test "x$ac_old_val" != "x$ac_new_val"; then
1945         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1946 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1947         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1948 echo "$as_me:   former value:  $ac_old_val" >&2;}
1949         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1950 echo "$as_me:   current value: $ac_new_val" >&2;}
1951         ac_cache_corrupted=:
1952       fi;;
1953   esac
1954   # Pass precious variables to config.status.
1955   if test "$ac_new_set" = set; then
1956     case $ac_new_val in
1957     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1958     *) ac_arg=$ac_var=$ac_new_val ;;
1959     esac
1960     case " $ac_configure_args " in
1961       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1962       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1963     esac
1964   fi
1965 done
1966 if $ac_cache_corrupted; then
1967   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1968 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1969   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1970 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1971    { (exit 1); exit 1; }; }
1972 fi
1973
1974
1975
1976
1977
1978
1979
1980
1981
1982
1983
1984
1985
1986
1987
1988
1989
1990
1991
1992
1993
1994
1995
1996
1997
1998 ac_ext=c
1999 ac_cpp='$CPP $CPPFLAGS'
2000 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2001 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2002 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2003
2004
2005 ac_aux_dir=
2006 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2007   if test -f "$ac_dir/install-sh"; then
2008     ac_aux_dir=$ac_dir
2009     ac_install_sh="$ac_aux_dir/install-sh -c"
2010     break
2011   elif test -f "$ac_dir/install.sh"; then
2012     ac_aux_dir=$ac_dir
2013     ac_install_sh="$ac_aux_dir/install.sh -c"
2014     break
2015   elif test -f "$ac_dir/shtool"; then
2016     ac_aux_dir=$ac_dir
2017     ac_install_sh="$ac_aux_dir/shtool install -c"
2018     break
2019   fi
2020 done
2021 if test -z "$ac_aux_dir"; then
2022   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2023 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2024    { (exit 1); exit 1; }; }
2025 fi
2026
2027 # These three variables are undocumented and unsupported,
2028 # and are intended to be withdrawn in a future Autoconf release.
2029 # They can cause serious problems if a builder's source tree is in a directory
2030 # whose full name contains unusual characters.
2031 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2032 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2033 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2034
2035
2036 # Make sure we can run config.sub.
2037 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2038   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2039 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2040    { (exit 1); exit 1; }; }
2041
2042 { echo "$as_me:$LINENO: checking build system type" >&5
2043 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2044 if test "${ac_cv_build+set}" = set; then
2045   echo $ECHO_N "(cached) $ECHO_C" >&6
2046 else
2047   ac_build_alias=$build_alias
2048 test "x$ac_build_alias" = x &&
2049   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2050 test "x$ac_build_alias" = x &&
2051   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2052 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2053    { (exit 1); exit 1; }; }
2054 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2055   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2056 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2057    { (exit 1); exit 1; }; }
2058
2059 fi
2060 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2061 echo "${ECHO_T}$ac_cv_build" >&6; }
2062 case $ac_cv_build in
2063 *-*-*) ;;
2064 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2065 echo "$as_me: error: invalid value of canonical build" >&2;}
2066    { (exit 1); exit 1; }; };;
2067 esac
2068 build=$ac_cv_build
2069 ac_save_IFS=$IFS; IFS='-'
2070 set x $ac_cv_build
2071 shift
2072 build_cpu=$1
2073 build_vendor=$2
2074 shift; shift
2075 # Remember, the first character of IFS is used to create $*,
2076 # except with old shells:
2077 build_os=$*
2078 IFS=$ac_save_IFS
2079 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2080
2081
2082 { echo "$as_me:$LINENO: checking host system type" >&5
2083 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2084 if test "${ac_cv_host+set}" = set; then
2085   echo $ECHO_N "(cached) $ECHO_C" >&6
2086 else
2087   if test "x$host_alias" = x; then
2088   ac_cv_host=$ac_cv_build
2089 else
2090   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2091     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2092 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2093    { (exit 1); exit 1; }; }
2094 fi
2095
2096 fi
2097 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2098 echo "${ECHO_T}$ac_cv_host" >&6; }
2099 case $ac_cv_host in
2100 *-*-*) ;;
2101 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2102 echo "$as_me: error: invalid value of canonical host" >&2;}
2103    { (exit 1); exit 1; }; };;
2104 esac
2105 host=$ac_cv_host
2106 ac_save_IFS=$IFS; IFS='-'
2107 set x $ac_cv_host
2108 shift
2109 host_cpu=$1
2110 host_vendor=$2
2111 shift; shift
2112 # Remember, the first character of IFS is used to create $*,
2113 # except with old shells:
2114 host_os=$*
2115 IFS=$ac_save_IFS
2116 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2117
2118
2119
2120
2121 am__api_version="1.8"
2122 # Find a good install program.  We prefer a C program (faster),
2123 # so one script is as good as another.  But avoid the broken or
2124 # incompatible versions:
2125 # SysV /etc/install, /usr/sbin/install
2126 # SunOS /usr/etc/install
2127 # IRIX /sbin/install
2128 # AIX /bin/install
2129 # AmigaOS /C/install, which installs bootblocks on floppy discs
2130 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2131 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2132 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2133 # OS/2's system install, which has a completely different semantic
2134 # ./install, which can be erroneously created by make from ./install.sh.
2135 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2136 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
2137 if test -z "$INSTALL"; then
2138 if test "${ac_cv_path_install+set}" = set; then
2139   echo $ECHO_N "(cached) $ECHO_C" >&6
2140 else
2141   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2142 for as_dir in $PATH
2143 do
2144   IFS=$as_save_IFS
2145   test -z "$as_dir" && as_dir=.
2146   # Account for people who put trailing slashes in PATH elements.
2147 case $as_dir/ in
2148   ./ | .// | /cC/* | \
2149   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2150   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2151   /usr/ucb/* ) ;;
2152   *)
2153     # OSF1 and SCO ODT 3.0 have their own names for install.
2154     # Don't use installbsd from OSF since it installs stuff as root
2155     # by default.
2156     for ac_prog in ginstall scoinst install; do
2157       for ac_exec_ext in '' $ac_executable_extensions; do
2158         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2159           if test $ac_prog = install &&
2160             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2161             # AIX install.  It has an incompatible calling convention.
2162             :
2163           elif test $ac_prog = install &&
2164             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2165             # program-specific install script used by HP pwplus--don't use.
2166             :
2167           else
2168             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2169             break 3
2170           fi
2171         fi
2172       done
2173     done
2174     ;;
2175 esac
2176 done
2177 IFS=$as_save_IFS
2178
2179
2180 fi
2181   if test "${ac_cv_path_install+set}" = set; then
2182     INSTALL=$ac_cv_path_install
2183   else
2184     # As a last resort, use the slow shell script.  Don't cache a
2185     # value for INSTALL within a source directory, because that will
2186     # break other packages using the cache if that directory is
2187     # removed, or if the value is a relative name.
2188     INSTALL=$ac_install_sh
2189   fi
2190 fi
2191 { echo "$as_me:$LINENO: result: $INSTALL" >&5
2192 echo "${ECHO_T}$INSTALL" >&6; }
2193
2194 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2195 # It thinks the first close brace ends the variable substitution.
2196 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2197
2198 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2199
2200 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2201
2202 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2203 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2204 # Just in case
2205 sleep 1
2206 echo timestamp > conftest.file
2207 # Do `set' in a subshell so we don't clobber the current shell's
2208 # arguments.  Must try -L first in case configure is actually a
2209 # symlink; some systems play weird games with the mod time of symlinks
2210 # (eg FreeBSD returns the mod time of the symlink's containing
2211 # directory).
2212 if (
2213    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2214    if test "$*" = "X"; then
2215       # -L didn't work.
2216       set X `ls -t $srcdir/configure conftest.file`
2217    fi
2218    rm -f conftest.file
2219    if test "$*" != "X $srcdir/configure conftest.file" \
2220       && test "$*" != "X conftest.file $srcdir/configure"; then
2221
2222       # If neither matched, then we have a broken ls.  This can happen
2223       # if, for instance, CONFIG_SHELL is bash and it inherits a
2224       # broken ls alias from the environment.  This has actually
2225       # happened.  Such a system could not be considered "sane".
2226       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
2227 alias in your environment" >&5
2228 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
2229 alias in your environment" >&2;}
2230    { (exit 1); exit 1; }; }
2231    fi
2232
2233    test "$2" = conftest.file
2234    )
2235 then
2236    # Ok.
2237    :
2238 else
2239    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2240 Check your system clock" >&5
2241 echo "$as_me: error: newly created file is older than distributed files!
2242 Check your system clock" >&2;}
2243    { (exit 1); exit 1; }; }
2244 fi
2245 { echo "$as_me:$LINENO: result: yes" >&5
2246 echo "${ECHO_T}yes" >&6; }
2247 test "$program_prefix" != NONE &&
2248   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2249 # Use a double $ so make ignores it.
2250 test "$program_suffix" != NONE &&
2251   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2252 # Double any \ or $.  echo might interpret backslashes.
2253 # By default was `s,x,x', remove it if useless.
2254 cat <<\_ACEOF >conftest.sed
2255 s/[\\$]/&&/g;s/;s,x,x,$//
2256 _ACEOF
2257 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2258 rm -f conftest.sed
2259
2260 # expand $ac_aux_dir to an absolute path
2261 am_aux_dir=`cd $ac_aux_dir && pwd`
2262
2263 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2264 # Use eval to expand $SHELL
2265 if eval "$MISSING --run true"; then
2266   am_missing_run="$MISSING --run "
2267 else
2268   am_missing_run=
2269   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2270 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2271 fi
2272
2273 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
2274   # Keeping the `.' argument allows $(mkdir_p) to be used without
2275   # argument.  Indeed, we sometimes output rules like
2276   #   $(mkdir_p) $(somedir)
2277   # where $(somedir) is conditionally defined.
2278   # (`test -n '$(somedir)' && $(mkdir_p) $(somedir)' is a more
2279   # expensive solution, as it forces Make to start a sub-shell.)
2280   mkdir_p='mkdir -p -- .'
2281 else
2282   # On NextStep and OpenStep, the `mkdir' command does not
2283   # recognize any option.  It will interpret all options as
2284   # directories to create, and then abort because `.' already
2285   # exists.
2286   for d in ./-p ./--version;
2287   do
2288     test -d $d && rmdir $d
2289   done
2290   # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2291   if test -f "$ac_aux_dir/mkinstalldirs"; then
2292     mkdir_p='$(mkinstalldirs)'
2293   else
2294     mkdir_p='$(install_sh) -d'
2295   fi
2296 fi
2297
2298 for ac_prog in gawk mawk nawk awk
2299 do
2300   # Extract the first word of "$ac_prog", so it can be a program name with args.
2301 set dummy $ac_prog; ac_word=$2
2302 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2303 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2304 if test "${ac_cv_prog_AWK+set}" = set; then
2305   echo $ECHO_N "(cached) $ECHO_C" >&6
2306 else
2307   if test -n "$AWK"; then
2308   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2309 else
2310 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2311 for as_dir in $PATH
2312 do
2313   IFS=$as_save_IFS
2314   test -z "$as_dir" && as_dir=.
2315   for ac_exec_ext in '' $ac_executable_extensions; do
2316   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2317     ac_cv_prog_AWK="$ac_prog"
2318     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2319     break 2
2320   fi
2321 done
2322 done
2323 IFS=$as_save_IFS
2324
2325 fi
2326 fi
2327 AWK=$ac_cv_prog_AWK
2328 if test -n "$AWK"; then
2329   { echo "$as_me:$LINENO: result: $AWK" >&5
2330 echo "${ECHO_T}$AWK" >&6; }
2331 else
2332   { echo "$as_me:$LINENO: result: no" >&5
2333 echo "${ECHO_T}no" >&6; }
2334 fi
2335
2336
2337   test -n "$AWK" && break
2338 done
2339
2340 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2341 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2342 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2343 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2344   echo $ECHO_N "(cached) $ECHO_C" >&6
2345 else
2346   cat >conftest.make <<\_ACEOF
2347 SHELL = /bin/sh
2348 all:
2349         @echo '@@@%%%=$(MAKE)=@@@%%%'
2350 _ACEOF
2351 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2352 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2353   *@@@%%%=?*=@@@%%%*)
2354     eval ac_cv_prog_make_${ac_make}_set=yes;;
2355   *)
2356     eval ac_cv_prog_make_${ac_make}_set=no;;
2357 esac
2358 rm -f conftest.make
2359 fi
2360 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2361   { echo "$as_me:$LINENO: result: yes" >&5
2362 echo "${ECHO_T}yes" >&6; }
2363   SET_MAKE=
2364 else
2365   { echo "$as_me:$LINENO: result: no" >&5
2366 echo "${ECHO_T}no" >&6; }
2367   SET_MAKE="MAKE=${MAKE-make}"
2368 fi
2369
2370 rm -rf .tst 2>/dev/null
2371 mkdir .tst 2>/dev/null
2372 if test -d .tst; then
2373   am__leading_dot=.
2374 else
2375   am__leading_dot=_
2376 fi
2377 rmdir .tst 2>/dev/null
2378
2379 # test to see if srcdir already configured
2380 if test "`cd $srcdir && pwd`" != "`pwd`" &&
2381    test -f $srcdir/config.status; then
2382   { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2383 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2384    { (exit 1); exit 1; }; }
2385 fi
2386
2387 # test whether we have cygpath
2388 if test -z "$CYGPATH_W"; then
2389   if (cygpath --version) >/dev/null 2>/dev/null; then
2390     CYGPATH_W='cygpath -w'
2391   else
2392     CYGPATH_W=echo
2393   fi
2394 fi
2395
2396
2397 # Define the identity of the package.
2398  PACKAGE='nfs-utils'
2399  VERSION='1.0.10'
2400
2401
2402 cat >>confdefs.h <<_ACEOF
2403 #define PACKAGE "$PACKAGE"
2404 _ACEOF
2405
2406
2407 cat >>confdefs.h <<_ACEOF
2408 #define VERSION "$VERSION"
2409 _ACEOF
2410
2411 # Some tools Automake needs.
2412
2413 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2414
2415
2416 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2417
2418
2419 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2420
2421
2422 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2423
2424
2425 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2426
2427
2428 AMTAR=${AMTAR-"${am_missing_run}tar"}
2429
2430 install_sh=${install_sh-"$am_aux_dir/install-sh"}
2431
2432 # Installed binaries are usually stripped using `strip' when the user
2433 # run `make install-strip'.  However `strip' might not be the right
2434 # tool to use in cross-compilation environments, therefore Automake
2435 # will honor the `STRIP' environment variable to overrule this program.
2436 if test "$cross_compiling" != no; then
2437   if test -n "$ac_tool_prefix"; then
2438   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2439 set dummy ${ac_tool_prefix}strip; ac_word=$2
2440 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2441 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2442 if test "${ac_cv_prog_STRIP+set}" = set; then
2443   echo $ECHO_N "(cached) $ECHO_C" >&6
2444 else
2445   if test -n "$STRIP"; then
2446   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2447 else
2448 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2449 for as_dir in $PATH
2450 do
2451   IFS=$as_save_IFS
2452   test -z "$as_dir" && as_dir=.
2453   for ac_exec_ext in '' $ac_executable_extensions; do
2454   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2455     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2456     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2457     break 2
2458   fi
2459 done
2460 done
2461 IFS=$as_save_IFS
2462
2463 fi
2464 fi
2465 STRIP=$ac_cv_prog_STRIP
2466 if test -n "$STRIP"; then
2467   { echo "$as_me:$LINENO: result: $STRIP" >&5
2468 echo "${ECHO_T}$STRIP" >&6; }
2469 else
2470   { echo "$as_me:$LINENO: result: no" >&5
2471 echo "${ECHO_T}no" >&6; }
2472 fi
2473
2474
2475 fi
2476 if test -z "$ac_cv_prog_STRIP"; then
2477   ac_ct_STRIP=$STRIP
2478   # Extract the first word of "strip", so it can be a program name with args.
2479 set dummy strip; ac_word=$2
2480 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2481 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2482 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2483   echo $ECHO_N "(cached) $ECHO_C" >&6
2484 else
2485   if test -n "$ac_ct_STRIP"; then
2486   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2487 else
2488 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2489 for as_dir in $PATH
2490 do
2491   IFS=$as_save_IFS
2492   test -z "$as_dir" && as_dir=.
2493   for ac_exec_ext in '' $ac_executable_extensions; do
2494   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2495     ac_cv_prog_ac_ct_STRIP="strip"
2496     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2497     break 2
2498   fi
2499 done
2500 done
2501 IFS=$as_save_IFS
2502
2503 fi
2504 fi
2505 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2506 if test -n "$ac_ct_STRIP"; then
2507   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2508 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2509 else
2510   { echo "$as_me:$LINENO: result: no" >&5
2511 echo "${ECHO_T}no" >&6; }
2512 fi
2513
2514   if test "x$ac_ct_STRIP" = x; then
2515     STRIP=":"
2516   else
2517     case $cross_compiling:$ac_tool_warned in
2518 yes:)
2519 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2520 whose name does not start with the host triplet.  If you think this
2521 configuration is useful to you, please write to autoconf@gnu.org." >&5
2522 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2523 whose name does not start with the host triplet.  If you think this
2524 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2525 ac_tool_warned=yes ;;
2526 esac
2527     STRIP=$ac_ct_STRIP
2528   fi
2529 else
2530   STRIP="$ac_cv_prog_STRIP"
2531 fi
2532
2533 fi
2534 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2535
2536 # We need awk for the "check" target.  The system "awk" is bad on
2537 # some platforms.
2538
2539
2540
2541
2542
2543
2544
2545 # Check whether --with-release was given.
2546 if test "${with_release+set}" = set; then
2547   withval=$with_release; RELEASE=$withval
2548 else
2549   RELEASE=1
2550 fi
2551
2552
2553
2554 # Check whether --with-statedir was given.
2555 if test "${with_statedir+set}" = set; then
2556   withval=$with_statedir; statedir=$withval
2557 else
2558   statedir=/var/lib/nfs
2559 fi
2560
2561
2562
2563 # Check whether --with-statduser was given.
2564 if test "${with_statduser+set}" = set; then
2565   withval=$with_statduser; statduser=$withval
2566 else
2567   if test "x$cross_compiling" = "xno"; then
2568                 if grep -s '^rpcuser:' /etc/passwd > /dev/null; then
2569                         statduser=rpcuser
2570                 else
2571                         statduser=nobody
2572                 fi
2573         else
2574                 statduser=nobody
2575         fi
2576 fi
2577
2578
2579 # Check whether --enable-nfsv3 was given.
2580 if test "${enable_nfsv3+set}" = set; then
2581   enableval=$enable_nfsv3; enable_nfsv3=$enableval
2582 else
2583   enable_nfsv3=yes
2584 fi
2585
2586         if test "$enable_nfsv3" = yes; then
2587
2588 cat >>confdefs.h <<\_ACEOF
2589 #define NFS3_SUPPORTED 1
2590 _ACEOF
2591
2592         else
2593                 enable_nfsv3=
2594         fi
2595
2596 # Check whether --enable-nfsv4 was given.
2597 if test "${enable_nfsv4+set}" = set; then
2598   enableval=$enable_nfsv4; enable_nfsv4=$enableval
2599 else
2600   enable_nfsv4=yes
2601 fi
2602
2603         if test "$enable_nfsv4" = yes; then
2604
2605 cat >>confdefs.h <<\_ACEOF
2606 #define NFS4_SUPPORTED 1
2607 _ACEOF
2608
2609                 IDMAPD=idmapd
2610         else
2611                 enable_nfsv4=
2612                 IDMAPD=
2613         fi
2614
2615
2616
2617
2618 if test "$enable_nfsv4" = "yes"; then
2619   CONFIG_NFSV4_TRUE=
2620   CONFIG_NFSV4_FALSE='#'
2621 else
2622   CONFIG_NFSV4_TRUE='#'
2623   CONFIG_NFSV4_FALSE=
2624 fi
2625
2626 # Check whether --enable-gss was given.
2627 if test "${enable_gss+set}" = set; then
2628   enableval=$enable_gss; enable_gss=$enableval
2629 else
2630   enable_gss=yes
2631 fi
2632
2633         if test "$enable_gss" = yes; then
2634
2635 cat >>confdefs.h <<\_ACEOF
2636 #define GSS_SUPPORTED 1
2637 _ACEOF
2638
2639                 GSSD=gssd
2640                 SVCGSSD=svcgssd
2641         else
2642                 enable_gss=
2643                 GSSD=
2644                 SVCGSSD=
2645         fi
2646
2647
2648
2649
2650
2651 if test "$enable_gss" = "yes"; then
2652   CONFIG_GSS_TRUE=
2653   CONFIG_GSS_FALSE='#'
2654 else
2655   CONFIG_GSS_TRUE='#'
2656   CONFIG_GSS_FALSE=
2657 fi
2658
2659 # Check whether --enable-kprefix was given.
2660 if test "${enable_kprefix+set}" = set; then
2661   enableval=$enable_kprefix; test "$enableval" = "yes" && kprefix=k
2662 else
2663   kprefix=
2664 fi
2665
2666
2667 # Check whether --enable-secure-statd was given.
2668 if test "${enable_secure_statd+set}" = set; then
2669   enableval=$enable_secure_statd; test "$enableval" = "yes" && secure_statd=yes
2670 else
2671   secure_statd=no
2672 fi
2673
2674         if test "$secure_statd" = yes; then
2675
2676 cat >>confdefs.h <<\_ACEOF
2677 #define RESTRICTED_STATD 1
2678 _ACEOF
2679
2680         fi
2681
2682 # Check whether --enable-rquotad was given.
2683 if test "${enable_rquotad+set}" = set; then
2684   enableval=$enable_rquotad; enable_rquotad=$enableval
2685 else
2686   enable_rquotad=yes
2687 fi
2688
2689         if test "$enable_rquotad" = yes; then
2690                 RQUOTAD=rquotad
2691         else
2692                 RQUOTAD=
2693         fi
2694
2695
2696 if test "$enable_rquotad" = "yes"; then
2697   CONFIG_RQUOTAD_TRUE=
2698   CONFIG_RQUOTAD_FALSE='#'
2699 else
2700   CONFIG_RQUOTAD_TRUE='#'
2701   CONFIG_RQUOTAD_FALSE=
2702 fi
2703
2704
2705 # Check whether --enable-mount was given.
2706 if test "${enable_mount+set}" = set; then
2707   enableval=$enable_mount; enable_mount=$enableval
2708 else
2709   enable_mount=no
2710 fi
2711
2712
2713
2714 if test "$enable_mount" = "yes"; then
2715   CONFIG_MOUNT_TRUE=
2716   CONFIG_MOUNT_FALSE='#'
2717 else
2718   CONFIG_MOUNT_TRUE='#'
2719   CONFIG_MOUNT_FALSE=
2720 fi
2721
2722
2723 # Check whether user wants TCP wrappers support
2724 DEPDIR="${am__leading_dot}deps"
2725
2726 ac_config_commands="$ac_config_commands depfiles"
2727
2728
2729 am_make=${MAKE-make}
2730 cat > confinc << 'END'
2731 am__doit:
2732         @echo done
2733 .PHONY: am__doit
2734 END
2735 # If we don't find an include directive, just comment out the code.
2736 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2737 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
2738 am__include="#"
2739 am__quote=
2740 _am_result=none
2741 # First try GNU make style include.
2742 echo "include confinc" > confmf
2743 # We grep out `Entering directory' and `Leaving directory'
2744 # messages which can occur if `w' ends up in MAKEFLAGS.
2745 # In particular we don't look at `^make:' because GNU make might
2746 # be invoked under some other name (usually "gmake"), in which
2747 # case it prints its new name instead of `make'.
2748 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2749    am__include=include
2750    am__quote=
2751    _am_result=GNU
2752 fi
2753 # Now try BSD make style include.
2754 if test "$am__include" = "#"; then
2755    echo '.include "confinc"' > confmf
2756    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2757       am__include=.include
2758       am__quote="\""
2759       _am_result=BSD
2760    fi
2761 fi
2762
2763
2764 { echo "$as_me:$LINENO: result: $_am_result" >&5
2765 echo "${ECHO_T}$_am_result" >&6; }
2766 rm -f confinc confmf
2767
2768 # Check whether --enable-dependency-tracking was given.
2769 if test "${enable_dependency_tracking+set}" = set; then
2770   enableval=$enable_dependency_tracking;
2771 fi
2772
2773 if test "x$enable_dependency_tracking" != xno; then
2774   am_depcomp="$ac_aux_dir/depcomp"
2775   AMDEPBACKSLASH='\'
2776 fi
2777
2778
2779 if test "x$enable_dependency_tracking" != xno; then
2780   AMDEP_TRUE=
2781   AMDEP_FALSE='#'
2782 else
2783   AMDEP_TRUE='#'
2784   AMDEP_FALSE=
2785 fi
2786
2787
2788
2789 ac_ext=c
2790 ac_cpp='$CPP $CPPFLAGS'
2791 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2792 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2793 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2794 if test -n "$ac_tool_prefix"; then
2795   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2796 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2797 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2798 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2799 if test "${ac_cv_prog_CC+set}" = set; then
2800   echo $ECHO_N "(cached) $ECHO_C" >&6
2801 else
2802   if test -n "$CC"; then
2803   ac_cv_prog_CC="$CC" # Let the user override the test.
2804 else
2805 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2806 for as_dir in $PATH
2807 do
2808   IFS=$as_save_IFS
2809   test -z "$as_dir" && as_dir=.
2810   for ac_exec_ext in '' $ac_executable_extensions; do
2811   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2812     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2813     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2814     break 2
2815   fi
2816 done
2817 done
2818 IFS=$as_save_IFS
2819
2820 fi
2821 fi
2822 CC=$ac_cv_prog_CC
2823 if test -n "$CC"; then
2824   { echo "$as_me:$LINENO: result: $CC" >&5
2825 echo "${ECHO_T}$CC" >&6; }
2826 else
2827   { echo "$as_me:$LINENO: result: no" >&5
2828 echo "${ECHO_T}no" >&6; }
2829 fi
2830
2831
2832 fi
2833 if test -z "$ac_cv_prog_CC"; then
2834   ac_ct_CC=$CC
2835   # Extract the first word of "gcc", so it can be a program name with args.
2836 set dummy gcc; ac_word=$2
2837 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2838 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2839 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2840   echo $ECHO_N "(cached) $ECHO_C" >&6
2841 else
2842   if test -n "$ac_ct_CC"; then
2843   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2844 else
2845 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2846 for as_dir in $PATH
2847 do
2848   IFS=$as_save_IFS
2849   test -z "$as_dir" && as_dir=.
2850   for ac_exec_ext in '' $ac_executable_extensions; do
2851   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2852     ac_cv_prog_ac_ct_CC="gcc"
2853     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2854     break 2
2855   fi
2856 done
2857 done
2858 IFS=$as_save_IFS
2859
2860 fi
2861 fi
2862 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2863 if test -n "$ac_ct_CC"; then
2864   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2865 echo "${ECHO_T}$ac_ct_CC" >&6; }
2866 else
2867   { echo "$as_me:$LINENO: result: no" >&5
2868 echo "${ECHO_T}no" >&6; }
2869 fi
2870
2871   if test "x$ac_ct_CC" = x; then
2872     CC=""
2873   else
2874     case $cross_compiling:$ac_tool_warned in
2875 yes:)
2876 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2877 whose name does not start with the host triplet.  If you think this
2878 configuration is useful to you, please write to autoconf@gnu.org." >&5
2879 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2880 whose name does not start with the host triplet.  If you think this
2881 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2882 ac_tool_warned=yes ;;
2883 esac
2884     CC=$ac_ct_CC
2885   fi
2886 else
2887   CC="$ac_cv_prog_CC"
2888 fi
2889
2890 if test -z "$CC"; then
2891           if test -n "$ac_tool_prefix"; then
2892     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2893 set dummy ${ac_tool_prefix}cc; ac_word=$2
2894 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2895 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2896 if test "${ac_cv_prog_CC+set}" = set; then
2897   echo $ECHO_N "(cached) $ECHO_C" >&6
2898 else
2899   if test -n "$CC"; then
2900   ac_cv_prog_CC="$CC" # Let the user override the test.
2901 else
2902 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2903 for as_dir in $PATH
2904 do
2905   IFS=$as_save_IFS
2906   test -z "$as_dir" && as_dir=.
2907   for ac_exec_ext in '' $ac_executable_extensions; do
2908   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2909     ac_cv_prog_CC="${ac_tool_prefix}cc"
2910     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2911     break 2
2912   fi
2913 done
2914 done
2915 IFS=$as_save_IFS
2916
2917 fi
2918 fi
2919 CC=$ac_cv_prog_CC
2920 if test -n "$CC"; then
2921   { echo "$as_me:$LINENO: result: $CC" >&5
2922 echo "${ECHO_T}$CC" >&6; }
2923 else
2924   { echo "$as_me:$LINENO: result: no" >&5
2925 echo "${ECHO_T}no" >&6; }
2926 fi
2927
2928
2929   fi
2930 fi
2931 if test -z "$CC"; then
2932   # Extract the first word of "cc", so it can be a program name with args.
2933 set dummy cc; ac_word=$2
2934 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2935 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2936 if test "${ac_cv_prog_CC+set}" = set; then
2937   echo $ECHO_N "(cached) $ECHO_C" >&6
2938 else
2939   if test -n "$CC"; then
2940   ac_cv_prog_CC="$CC" # Let the user override the test.
2941 else
2942   ac_prog_rejected=no
2943 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2944 for as_dir in $PATH
2945 do
2946   IFS=$as_save_IFS
2947   test -z "$as_dir" && as_dir=.
2948   for ac_exec_ext in '' $ac_executable_extensions; do
2949   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2950     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2951        ac_prog_rejected=yes
2952        continue
2953      fi
2954     ac_cv_prog_CC="cc"
2955     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2956     break 2
2957   fi
2958 done
2959 done
2960 IFS=$as_save_IFS
2961
2962 if test $ac_prog_rejected = yes; then
2963   # We found a bogon in the path, so make sure we never use it.
2964   set dummy $ac_cv_prog_CC
2965   shift
2966   if test $# != 0; then
2967     # We chose a different compiler from the bogus one.
2968     # However, it has the same basename, so the bogon will be chosen
2969     # first if we set CC to just the basename; use the full file name.
2970     shift
2971     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2972   fi
2973 fi
2974 fi
2975 fi
2976 CC=$ac_cv_prog_CC
2977 if test -n "$CC"; then
2978   { echo "$as_me:$LINENO: result: $CC" >&5
2979 echo "${ECHO_T}$CC" >&6; }
2980 else
2981   { echo "$as_me:$LINENO: result: no" >&5
2982 echo "${ECHO_T}no" >&6; }
2983 fi
2984
2985
2986 fi
2987 if test -z "$CC"; then
2988   if test -n "$ac_tool_prefix"; then
2989   for ac_prog in cl.exe
2990   do
2991     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2992 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2993 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2994 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2995 if test "${ac_cv_prog_CC+set}" = set; then
2996   echo $ECHO_N "(cached) $ECHO_C" >&6
2997 else
2998   if test -n "$CC"; then
2999   ac_cv_prog_CC="$CC" # Let the user override the test.
3000 else
3001 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3002 for as_dir in $PATH
3003 do
3004   IFS=$as_save_IFS
3005   test -z "$as_dir" && as_dir=.
3006   for ac_exec_ext in '' $ac_executable_extensions; do
3007   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3008     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3009     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3010     break 2
3011   fi
3012 done
3013 done
3014 IFS=$as_save_IFS
3015
3016 fi
3017 fi
3018 CC=$ac_cv_prog_CC
3019 if test -n "$CC"; then
3020   { echo "$as_me:$LINENO: result: $CC" >&5
3021 echo "${ECHO_T}$CC" >&6; }
3022 else
3023   { echo "$as_me:$LINENO: result: no" >&5
3024 echo "${ECHO_T}no" >&6; }
3025 fi
3026
3027
3028     test -n "$CC" && break
3029   done
3030 fi
3031 if test -z "$CC"; then
3032   ac_ct_CC=$CC
3033   for ac_prog in cl.exe
3034 do
3035   # Extract the first word of "$ac_prog", so it can be a program name with args.
3036 set dummy $ac_prog; ac_word=$2
3037 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3038 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3039 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3040   echo $ECHO_N "(cached) $ECHO_C" >&6
3041 else
3042   if test -n "$ac_ct_CC"; then
3043   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3044 else
3045 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3046 for as_dir in $PATH
3047 do
3048   IFS=$as_save_IFS
3049   test -z "$as_dir" && as_dir=.
3050   for ac_exec_ext in '' $ac_executable_extensions; do
3051   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3052     ac_cv_prog_ac_ct_CC="$ac_prog"
3053     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3054     break 2
3055   fi
3056 done
3057 done
3058 IFS=$as_save_IFS
3059
3060 fi
3061 fi
3062 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3063 if test -n "$ac_ct_CC"; then
3064   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3065 echo "${ECHO_T}$ac_ct_CC" >&6; }
3066 else
3067   { echo "$as_me:$LINENO: result: no" >&5
3068 echo "${ECHO_T}no" >&6; }
3069 fi
3070
3071
3072   test -n "$ac_ct_CC" && break
3073 done
3074
3075   if test "x$ac_ct_CC" = x; then
3076     CC=""
3077   else
3078     case $cross_compiling:$ac_tool_warned in
3079 yes:)
3080 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3081 whose name does not start with the host triplet.  If you think this
3082 configuration is useful to you, please write to autoconf@gnu.org." >&5
3083 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3084 whose name does not start with the host triplet.  If you think this
3085 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3086 ac_tool_warned=yes ;;
3087 esac
3088     CC=$ac_ct_CC
3089   fi
3090 fi
3091
3092 fi
3093
3094
3095 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3096 See \`config.log' for more details." >&5
3097 echo "$as_me: error: no acceptable C compiler found in \$PATH
3098 See \`config.log' for more details." >&2;}
3099    { (exit 1); exit 1; }; }
3100
3101 # Provide some information about the compiler.
3102 echo "$as_me:$LINENO: checking for C compiler version" >&5
3103 ac_compiler=`set X $ac_compile; echo $2`
3104 { (ac_try="$ac_compiler --version >&5"
3105 case "(($ac_try" in
3106   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3107   *) ac_try_echo=$ac_try;;
3108 esac
3109 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3110   (eval "$ac_compiler --version >&5") 2>&5
3111   ac_status=$?
3112   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3113   (exit $ac_status); }
3114 { (ac_try="$ac_compiler -v >&5"
3115 case "(($ac_try" in
3116   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3117   *) ac_try_echo=$ac_try;;
3118 esac
3119 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3120   (eval "$ac_compiler -v >&5") 2>&5
3121   ac_status=$?
3122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3123   (exit $ac_status); }
3124 { (ac_try="$ac_compiler -V >&5"
3125 case "(($ac_try" in
3126   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3127   *) ac_try_echo=$ac_try;;
3128 esac
3129 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3130   (eval "$ac_compiler -V >&5") 2>&5
3131   ac_status=$?
3132   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3133   (exit $ac_status); }
3134
3135 cat >conftest.$ac_ext <<_ACEOF
3136 /* confdefs.h.  */
3137 _ACEOF
3138 cat confdefs.h >>conftest.$ac_ext
3139 cat >>conftest.$ac_ext <<_ACEOF
3140 /* end confdefs.h.  */
3141
3142 int
3143 main ()
3144 {
3145
3146   ;
3147   return 0;
3148 }
3149 _ACEOF
3150 ac_clean_files_save=$ac_clean_files
3151 ac_clean_files="$ac_clean_files a.out a.exe b.out"
3152 # Try to create an executable without -o first, disregard a.out.
3153 # It will help us diagnose broken compilers, and finding out an intuition
3154 # of exeext.
3155 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3156 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
3157 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3158 #
3159 # List of possible output files, starting from the most likely.
3160 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
3161 # only as a last resort.  b.out is created by i960 compilers.
3162 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
3163 #
3164 # The IRIX 6 linker writes into existing files which may not be
3165 # executable, retaining their permissions.  Remove them first so a
3166 # subsequent execution test works.
3167 ac_rmfiles=
3168 for ac_file in $ac_files
3169 do
3170   case $ac_file in
3171     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3172     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3173   esac
3174 done
3175 rm -f $ac_rmfiles
3176
3177 if { (ac_try="$ac_link_default"
3178 case "(($ac_try" in
3179   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3180   *) ac_try_echo=$ac_try;;
3181 esac
3182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3183   (eval "$ac_link_default") 2>&5
3184   ac_status=$?
3185   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3186   (exit $ac_status); }; then
3187   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3188 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3189 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3190 # so that the user can short-circuit this test for compilers unknown to
3191 # Autoconf.
3192 for ac_file in $ac_files ''
3193 do
3194   test -f "$ac_file" || continue
3195   case $ac_file in
3196     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
3197         ;;
3198     [ab].out )
3199         # We found the default executable, but exeext='' is most
3200         # certainly right.
3201         break;;
3202     *.* )
3203         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3204         then :; else
3205            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3206         fi
3207         # We set ac_cv_exeext here because the later test for it is not
3208         # safe: cross compilers may not add the suffix if given an `-o'
3209         # argument, so we may need to know it at that point already.
3210         # Even if this section looks crufty: it has the advantage of
3211         # actually working.
3212         break;;
3213     * )
3214         break;;
3215   esac
3216 done
3217 test "$ac_cv_exeext" = no && ac_cv_exeext=
3218
3219 else
3220   ac_file=''
3221 fi
3222
3223 { echo "$as_me:$LINENO: result: $ac_file" >&5
3224 echo "${ECHO_T}$ac_file" >&6; }
3225 if test -z "$ac_file"; then
3226   echo "$as_me: failed program was:" >&5
3227 sed 's/^/| /' conftest.$ac_ext >&5
3228
3229 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3230 See \`config.log' for more details." >&5
3231 echo "$as_me: error: C compiler cannot create executables
3232 See \`config.log' for more details." >&2;}
3233    { (exit 77); exit 77; }; }
3234 fi
3235
3236 ac_exeext=$ac_cv_exeext
3237
3238 # Check that the compiler produces executables we can run.  If not, either
3239 # the compiler is broken, or we cross compile.
3240 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3241 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3242 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3243 # If not cross compiling, check that we can run a simple program.
3244 if test "$cross_compiling" != yes; then
3245   if { ac_try='./$ac_file'
3246   { (case "(($ac_try" in
3247   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3248   *) ac_try_echo=$ac_try;;
3249 esac
3250 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3251   (eval "$ac_try") 2>&5
3252   ac_status=$?
3253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3254   (exit $ac_status); }; }; then
3255     cross_compiling=no
3256   else
3257     if test "$cross_compiling" = maybe; then
3258         cross_compiling=yes
3259     else
3260         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3261 If you meant to cross compile, use \`--host'.
3262 See \`config.log' for more details." >&5
3263 echo "$as_me: error: cannot run C compiled programs.
3264 If you meant to cross compile, use \`--host'.
3265 See \`config.log' for more details." >&2;}
3266    { (exit 1); exit 1; }; }
3267     fi
3268   fi
3269 fi
3270 { echo "$as_me:$LINENO: result: yes" >&5
3271 echo "${ECHO_T}yes" >&6; }
3272
3273 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3274 ac_clean_files=$ac_clean_files_save
3275 # Check that the compiler produces executables we can run.  If not, either
3276 # the compiler is broken, or we cross compile.
3277 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3278 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3279 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
3280 echo "${ECHO_T}$cross_compiling" >&6; }
3281
3282 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
3283 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3284 if { (ac_try="$ac_link"
3285 case "(($ac_try" in
3286   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3287   *) ac_try_echo=$ac_try;;
3288 esac
3289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3290   (eval "$ac_link") 2>&5
3291   ac_status=$?
3292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3293   (exit $ac_status); }; then
3294   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3295 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3296 # work properly (i.e., refer to `conftest.exe'), while it won't with
3297 # `rm'.
3298 for ac_file in conftest.exe conftest conftest.*; do
3299   test -f "$ac_file" || continue
3300   case $ac_file in
3301     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3302     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3303           break;;
3304     * ) break;;
3305   esac
3306 done
3307 else
3308   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3309 See \`config.log' for more details." >&5
3310 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3311 See \`config.log' for more details." >&2;}
3312    { (exit 1); exit 1; }; }
3313 fi
3314
3315 rm -f conftest$ac_cv_exeext
3316 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3317 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3318
3319 rm -f conftest.$ac_ext
3320 EXEEXT=$ac_cv_exeext
3321 ac_exeext=$EXEEXT
3322 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3323 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3324 if test "${ac_cv_objext+set}" = set; then
3325   echo $ECHO_N "(cached) $ECHO_C" >&6
3326 else
3327   cat >conftest.$ac_ext <<_ACEOF
3328 /* confdefs.h.  */
3329 _ACEOF
3330 cat confdefs.h >>conftest.$ac_ext
3331 cat >>conftest.$ac_ext <<_ACEOF
3332 /* end confdefs.h.  */
3333
3334 int
3335 main ()
3336 {
3337
3338   ;
3339   return 0;
3340 }
3341 _ACEOF
3342 rm -f conftest.o conftest.obj
3343 if { (ac_try="$ac_compile"
3344 case "(($ac_try" in
3345   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3346   *) ac_try_echo=$ac_try;;
3347 esac
3348 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3349   (eval "$ac_compile") 2>&5
3350   ac_status=$?
3351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3352   (exit $ac_status); }; then
3353   for ac_file in conftest.o conftest.obj conftest.*; do
3354   test -f "$ac_file" || continue;
3355   case $ac_file in
3356     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3357     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3358        break;;
3359   esac
3360 done
3361 else
3362   echo "$as_me: failed program was:" >&5
3363 sed 's/^/| /' conftest.$ac_ext >&5
3364
3365 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3366 See \`config.log' for more details." >&5
3367 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3368 See \`config.log' for more details." >&2;}
3369    { (exit 1); exit 1; }; }
3370 fi
3371
3372 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3373 fi
3374 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3375 echo "${ECHO_T}$ac_cv_objext" >&6; }
3376 OBJEXT=$ac_cv_objext
3377 ac_objext=$OBJEXT
3378 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3379 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3380 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3381   echo $ECHO_N "(cached) $ECHO_C" >&6
3382 else
3383   cat >conftest.$ac_ext <<_ACEOF
3384 /* confdefs.h.  */
3385 _ACEOF
3386 cat confdefs.h >>conftest.$ac_ext
3387 cat >>conftest.$ac_ext <<_ACEOF
3388 /* end confdefs.h.  */
3389
3390 int
3391 main ()
3392 {
3393 #ifndef __GNUC__
3394        choke me
3395 #endif
3396
3397   ;
3398   return 0;
3399 }
3400 _ACEOF
3401 rm -f conftest.$ac_objext
3402 if { (ac_try="$ac_compile"
3403 case "(($ac_try" in
3404   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3405   *) ac_try_echo=$ac_try;;
3406 esac
3407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3408   (eval "$ac_compile") 2>conftest.er1
3409   ac_status=$?
3410   grep -v '^ *+' conftest.er1 >conftest.err
3411   rm -f conftest.er1
3412   cat conftest.err >&5
3413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3414   (exit $ac_status); } && {
3415          test -z "$ac_c_werror_flag" ||
3416          test ! -s conftest.err
3417        } && test -s conftest.$ac_objext; then
3418   ac_compiler_gnu=yes
3419 else
3420   echo "$as_me: failed program was:" >&5
3421 sed 's/^/| /' conftest.$ac_ext >&5
3422
3423         ac_compiler_gnu=no
3424 fi
3425
3426 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3427 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3428
3429 fi
3430 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3431 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3432 GCC=`test $ac_compiler_gnu = yes && echo yes`
3433 ac_test_CFLAGS=${CFLAGS+set}
3434 ac_save_CFLAGS=$CFLAGS
3435 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3436 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3437 if test "${ac_cv_prog_cc_g+set}" = set; then
3438   echo $ECHO_N "(cached) $ECHO_C" >&6
3439 else
3440   ac_save_c_werror_flag=$ac_c_werror_flag
3441    ac_c_werror_flag=yes
3442    ac_cv_prog_cc_g=no
3443    CFLAGS="-g"
3444    cat >conftest.$ac_ext <<_ACEOF
3445 /* confdefs.h.  */
3446 _ACEOF
3447 cat confdefs.h >>conftest.$ac_ext
3448 cat >>conftest.$ac_ext <<_ACEOF
3449 /* end confdefs.h.  */
3450
3451 int
3452 main ()
3453 {
3454
3455   ;
3456   return 0;
3457 }
3458 _ACEOF
3459 rm -f conftest.$ac_objext
3460 if { (ac_try="$ac_compile"
3461 case "(($ac_try" in
3462   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3463   *) ac_try_echo=$ac_try;;
3464 esac
3465 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3466   (eval "$ac_compile") 2>conftest.er1
3467   ac_status=$?
3468   grep -v '^ *+' conftest.er1 >conftest.err
3469   rm -f conftest.er1
3470   cat conftest.err >&5
3471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3472   (exit $ac_status); } && {
3473          test -z "$ac_c_werror_flag" ||
3474          test ! -s conftest.err
3475        } && test -s conftest.$ac_objext; then
3476   ac_cv_prog_cc_g=yes
3477 else
3478   echo "$as_me: failed program was:" >&5
3479 sed 's/^/| /' conftest.$ac_ext >&5
3480
3481         CFLAGS=""
3482       cat >conftest.$ac_ext <<_ACEOF
3483 /* confdefs.h.  */
3484 _ACEOF
3485 cat confdefs.h >>conftest.$ac_ext
3486 cat >>conftest.$ac_ext <<_ACEOF
3487 /* end confdefs.h.  */
3488
3489 int
3490 main ()
3491 {
3492
3493   ;
3494   return 0;
3495 }
3496 _ACEOF
3497 rm -f conftest.$ac_objext
3498 if { (ac_try="$ac_compile"
3499 case "(($ac_try" in
3500   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3501   *) ac_try_echo=$ac_try;;
3502 esac
3503 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3504   (eval "$ac_compile") 2>conftest.er1
3505   ac_status=$?
3506   grep -v '^ *+' conftest.er1 >conftest.err
3507   rm -f conftest.er1
3508   cat conftest.err >&5
3509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3510   (exit $ac_status); } && {
3511          test -z "$ac_c_werror_flag" ||
3512          test ! -s conftest.err
3513        } && test -s conftest.$ac_objext; then
3514   :
3515 else
3516   echo "$as_me: failed program was:" >&5
3517 sed 's/^/| /' conftest.$ac_ext >&5
3518
3519         ac_c_werror_flag=$ac_save_c_werror_flag
3520          CFLAGS="-g"
3521          cat >conftest.$ac_ext <<_ACEOF
3522 /* confdefs.h.  */
3523 _ACEOF
3524 cat confdefs.h >>conftest.$ac_ext
3525 cat >>conftest.$ac_ext <<_ACEOF
3526 /* end confdefs.h.  */
3527
3528 int
3529 main ()
3530 {
3531
3532   ;
3533   return 0;
3534 }
3535 _ACEOF
3536 rm -f conftest.$ac_objext
3537 if { (ac_try="$ac_compile"
3538 case "(($ac_try" in
3539   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3540   *) ac_try_echo=$ac_try;;
3541 esac
3542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3543   (eval "$ac_compile") 2>conftest.er1
3544   ac_status=$?
3545   grep -v '^ *+' conftest.er1 >conftest.err
3546   rm -f conftest.er1
3547   cat conftest.err >&5
3548   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3549   (exit $ac_status); } && {
3550          test -z "$ac_c_werror_flag" ||
3551          test ! -s conftest.err
3552        } && test -s conftest.$ac_objext; then
3553   ac_cv_prog_cc_g=yes
3554 else
3555   echo "$as_me: failed program was:" >&5
3556 sed 's/^/| /' conftest.$ac_ext >&5
3557
3558
3559 fi
3560
3561 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3562 fi
3563
3564 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3565 fi
3566
3567 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3568    ac_c_werror_flag=$ac_save_c_werror_flag
3569 fi
3570 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3571 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3572 if test "$ac_test_CFLAGS" = set; then
3573   CFLAGS=$ac_save_CFLAGS
3574 elif test $ac_cv_prog_cc_g = yes; then
3575   if test "$GCC" = yes; then
3576     CFLAGS="-g -O2"
3577   else
3578     CFLAGS="-g"
3579   fi
3580 else
3581   if test "$GCC" = yes; then
3582     CFLAGS="-O2"
3583   else
3584     CFLAGS=
3585   fi
3586 fi
3587 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3588 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3589 if test "${ac_cv_prog_cc_c89+set}" = set; then
3590   echo $ECHO_N "(cached) $ECHO_C" >&6
3591 else
3592   ac_cv_prog_cc_c89=no
3593 ac_save_CC=$CC
3594 cat >conftest.$ac_ext <<_ACEOF
3595 /* confdefs.h.  */
3596 _ACEOF
3597 cat confdefs.h >>conftest.$ac_ext
3598 cat >>conftest.$ac_ext <<_ACEOF
3599 /* end confdefs.h.  */
3600 #include <stdarg.h>
3601 #include <stdio.h>
3602 #include <sys/types.h>
3603 #include <sys/stat.h>
3604 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3605 struct buf { int x; };
3606 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3607 static char *e (p, i)
3608      char **p;
3609      int i;
3610 {
3611   return p[i];
3612 }
3613 static char *f (char * (*g) (char **, int), char **p, ...)
3614 {
3615   char *s;
3616   va_list v;
3617   va_start (v,p);
3618   s = g (p, va_arg (v,int));
3619   va_end (v);
3620   return s;
3621 }
3622
3623 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3624    function prototypes and stuff, but not '\xHH' hex character constants.
3625    These don't provoke an error unfortunately, instead are silently treated
3626    as 'x'.  The following induces an error, until -std is added to get
3627    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3628    array size at least.  It's necessary to write '\x00'==0 to get something
3629    that's true only with -std.  */
3630 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3631
3632 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3633    inside strings and character constants.  */
3634 #define FOO(x) 'x'
3635 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3636
3637 int test (int i, double x);
3638 struct s1 {int (*f) (int a);};
3639 struct s2 {int (*f) (double a);};
3640 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3641 int argc;
3642 char **argv;
3643 int
3644 main ()
3645 {
3646 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3647   ;
3648   return 0;
3649 }
3650 _ACEOF
3651 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3652         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3653 do
3654   CC="$ac_save_CC $ac_arg"
3655   rm -f conftest.$ac_objext
3656 if { (ac_try="$ac_compile"
3657 case "(($ac_try" in
3658   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3659   *) ac_try_echo=$ac_try;;
3660 esac
3661 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3662   (eval "$ac_compile") 2>conftest.er1
3663   ac_status=$?
3664   grep -v '^ *+' conftest.er1 >conftest.err
3665   rm -f conftest.er1
3666   cat conftest.err >&5
3667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3668   (exit $ac_status); } && {
3669          test -z "$ac_c_werror_flag" ||
3670          test ! -s conftest.err
3671        } && test -s conftest.$ac_objext; then
3672   ac_cv_prog_cc_c89=$ac_arg
3673 else
3674   echo "$as_me: failed program was:" >&5
3675 sed 's/^/| /' conftest.$ac_ext >&5
3676
3677
3678 fi
3679
3680 rm -f core conftest.err conftest.$ac_objext
3681   test "x$ac_cv_prog_cc_c89" != "xno" && break
3682 done
3683 rm -f conftest.$ac_ext
3684 CC=$ac_save_CC
3685
3686 fi
3687 # AC_CACHE_VAL
3688 case "x$ac_cv_prog_cc_c89" in
3689   x)
3690     { echo "$as_me:$LINENO: result: none needed" >&5
3691 echo "${ECHO_T}none needed" >&6; } ;;
3692   xno)
3693     { echo "$as_me:$LINENO: result: unsupported" >&5
3694 echo "${ECHO_T}unsupported" >&6; } ;;
3695   *)
3696     CC="$CC $ac_cv_prog_cc_c89"
3697     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3698 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3699 esac
3700
3701
3702 ac_ext=c
3703 ac_cpp='$CPP $CPPFLAGS'
3704 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3705 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3706 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3707
3708 depcc="$CC"   am_compiler_list=
3709
3710 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3711 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3712 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3713   echo $ECHO_N "(cached) $ECHO_C" >&6
3714 else
3715   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3716   # We make a subdir and do the tests there.  Otherwise we can end up
3717   # making bogus files that we don't know about and never remove.  For
3718   # instance it was reported that on HP-UX the gcc test will end up
3719   # making a dummy file named `D' -- because `-MD' means `put the output
3720   # in D'.
3721   mkdir conftest.dir
3722   # Copy depcomp to subdir because otherwise we won't find it if we're
3723   # using a relative directory.
3724   cp "$am_depcomp" conftest.dir
3725   cd conftest.dir
3726   # We will build objects and dependencies in a subdirectory because
3727   # it helps to detect inapplicable dependency modes.  For instance
3728   # both Tru64's cc and ICC support -MD to output dependencies as a
3729   # side effect of compilation, but ICC will put the dependencies in
3730   # the current directory while Tru64 will put them in the object
3731   # directory.
3732   mkdir sub
3733
3734   am_cv_CC_dependencies_compiler_type=none
3735   if test "$am_compiler_list" = ""; then
3736      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3737   fi
3738   for depmode in $am_compiler_list; do
3739     # Setup a source with many dependencies, because some compilers
3740     # like to wrap large dependency lists on column 80 (with \), and
3741     # we should not choose a depcomp mode which is confused by this.
3742     #
3743     # We need to recreate these files for each test, as the compiler may
3744     # overwrite some of them when testing with obscure command lines.
3745     # This happens at least with the AIX C compiler.
3746     : > sub/conftest.c
3747     for i in 1 2 3 4 5 6; do
3748       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3749       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3750       # Solaris 8's {/usr,}/bin/sh.
3751       touch sub/conftst$i.h
3752     done
3753     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3754
3755     case $depmode in
3756     nosideeffect)
3757       # after this tag, mechanisms are not by side-effect, so they'll
3758       # only be used when explicitly requested
3759       if test "x$enable_dependency_tracking" = xyes; then
3760         continue
3761       else
3762         break
3763       fi
3764       ;;
3765     none) break ;;
3766     esac
3767     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3768     # mode.  It turns out that the SunPro C++ compiler does not properly
3769     # handle `-M -o', and we need to detect this.
3770     if depmode=$depmode \
3771        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3772        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3773        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3774          >/dev/null 2>conftest.err &&
3775        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3776        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3777        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3778       # icc doesn't choke on unknown options, it will just issue warnings
3779       # or remarks (even with -Werror).  So we grep stderr for any message
3780       # that says an option was ignored or not supported.
3781       # When given -MP, icc 7.0 and 7.1 complain thusly:
3782       #   icc: Command line warning: ignoring option '-M'; no argument required
3783       # The diagnosis changed in icc 8.0:
3784       #   icc: Command line remark: option '-MP' not supported
3785       if (grep 'ignoring option' conftest.err ||
3786           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3787         am_cv_CC_dependencies_compiler_type=$depmode
3788         break
3789       fi
3790     fi
3791   done
3792
3793   cd ..
3794   rm -rf conftest.dir
3795 else
3796   am_cv_CC_dependencies_compiler_type=none
3797 fi
3798
3799 fi
3800 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3801 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3802 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3803
3804
3805
3806 if
3807   test "x$enable_dependency_tracking" != xno \
3808   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3809   am__fastdepCC_TRUE=
3810   am__fastdepCC_FALSE='#'
3811 else
3812   am__fastdepCC_TRUE='#'
3813   am__fastdepCC_FALSE=
3814 fi
3815
3816
3817
3818
3819   TCPW_MSG="no"
3820
3821 # Check whether --with-tcp-wrappers was given.
3822 if test "${with_tcp_wrappers+set}" = set; then
3823   withval=$with_tcp_wrappers;
3824         if test "x$withval" != "xno" ; then
3825             saved_LIBS="$LIBS"
3826             saved_LDFLAGS="$LDFLAGS"
3827             saved_CPPFLAGS="$CPPFLAGS"
3828             if test -n "${withval}" -a "${withval}" != "yes"; then
3829                 if test -d "${withval}/lib"; then
3830                     if test -n "${need_dash_r}"; then
3831                         LDFLAGS="-L${withval}/lib -R${withval}/lib ${LDFLAGS}"
3832                     else
3833                         LDFLAGS="-L${withval}/lib ${LDFLAGS}"
3834                     fi
3835                 else
3836                     if test -n "${need_dash_r}"; then
3837                         LDFLAGS="-L${withval} -R${withval} ${LDFLAGS}"
3838                     else
3839                         LDFLAGS="-L${withval} ${LDFLAGS}"
3840                     fi
3841                 fi
3842                 if test -d "${withval}/include"; then
3843                     CPPFLAGS="-I${withval}/include ${CPPFLAGS}"
3844                 else
3845                     CPPFLAGS="-I${withval} ${CPPFLAGS}"
3846                 fi
3847             fi
3848             LIBWRAP="-lwrap"
3849             LIBS="$LIBWRAP $LIBS"
3850             { echo "$as_me:$LINENO: checking for libwrap" >&5
3851 echo $ECHO_N "checking for libwrap... $ECHO_C" >&6; }
3852             cat >conftest.$ac_ext <<_ACEOF
3853 /* confdefs.h.  */
3854 _ACEOF
3855 cat confdefs.h >>conftest.$ac_ext
3856 cat >>conftest.$ac_ext <<_ACEOF
3857 /* end confdefs.h.  */
3858
3859                 #include <tcpd.h>
3860                 int deny_severity = 0, allow_severity = 0;
3861
3862 int
3863 main ()
3864 {
3865 hosts_access(0);
3866   ;
3867   return 0;
3868 }
3869 _ACEOF
3870 rm -f conftest.$ac_objext conftest$ac_exeext
3871 if { (ac_try="$ac_link"
3872 case "(($ac_try" in
3873   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3874   *) ac_try_echo=$ac_try;;
3875 esac
3876 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3877   (eval "$ac_link") 2>conftest.er1
3878   ac_status=$?
3879   grep -v '^ *+' conftest.er1 >conftest.err
3880   rm -f conftest.er1
3881   cat conftest.err >&5
3882   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3883   (exit $ac_status); } && {
3884          test -z "$ac_c_werror_flag" ||
3885          test ! -s conftest.err
3886        } && test -s conftest$ac_exeext &&
3887        $as_test_x conftest$ac_exeext; then
3888
3889                 { echo "$as_me:$LINENO: result: yes" >&5
3890 echo "${ECHO_T}yes" >&6; }
3891
3892
3893 cat >>confdefs.h <<\_ACEOF
3894 #define LIBWRAP 1
3895 _ACEOF
3896
3897
3898 cat >>confdefs.h <<\_ACEOF
3899 #define HAVE_LIBWRAP 1
3900 _ACEOF
3901
3902
3903 cat >>confdefs.h <<\_ACEOF
3904 #define HAVE_TCP_WRAPPER 1
3905 _ACEOF
3906
3907                 TCPW_MSG="yes"
3908
3909 else
3910   echo "$as_me: failed program was:" >&5
3911 sed 's/^/| /' conftest.$ac_ext >&5
3912
3913
3914                 { { echo "$as_me:$LINENO: error: *** libwrap missing" >&5
3915 echo "$as_me: error: *** libwrap missing" >&2;}
3916    { (exit 1); exit 1; }; }
3917
3918
3919 fi
3920
3921 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3922       conftest$ac_exeext conftest.$ac_ext
3923             LIBS="$saved_LIBS"
3924         fi
3925
3926
3927 fi
3928
3929
3930
3931
3932
3933
3934
3935 ac_config_headers="$ac_config_headers support/include/config.h"
3936
3937
3938 # Checks for programs.
3939 ac_ext=cpp
3940 ac_cpp='$CXXCPP $CPPFLAGS'
3941 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3942 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3943 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3944 if test -z "$CXX"; then
3945   if test -n "$CCC"; then
3946     CXX=$CCC
3947   else
3948     if test -n "$ac_tool_prefix"; then
3949   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3950   do
3951     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3952 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3953 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3954 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3955 if test "${ac_cv_prog_CXX+set}" = set; then
3956   echo $ECHO_N "(cached) $ECHO_C" >&6
3957 else
3958   if test -n "$CXX"; then
3959   ac_cv_prog_CXX="$CXX" # Let the user override the test.
3960 else
3961 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3962 for as_dir in $PATH
3963 do
3964   IFS=$as_save_IFS
3965   test -z "$as_dir" && as_dir=.
3966   for ac_exec_ext in '' $ac_executable_extensions; do
3967   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3968     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3969     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3970     break 2
3971   fi
3972 done
3973 done
3974 IFS=$as_save_IFS
3975
3976 fi
3977 fi
3978 CXX=$ac_cv_prog_CXX
3979 if test -n "$CXX"; then
3980   { echo "$as_me:$LINENO: result: $CXX" >&5
3981 echo "${ECHO_T}$CXX" >&6; }
3982 else
3983   { echo "$as_me:$LINENO: result: no" >&5
3984 echo "${ECHO_T}no" >&6; }
3985 fi
3986
3987
3988     test -n "$CXX" && break
3989   done
3990 fi
3991 if test -z "$CXX"; then
3992   ac_ct_CXX=$CXX
3993   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3994 do
3995   # Extract the first word of "$ac_prog", so it can be a program name with args.
3996 set dummy $ac_prog; ac_word=$2
3997 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3998 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3999 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
4000   echo $ECHO_N "(cached) $ECHO_C" >&6
4001 else
4002   if test -n "$ac_ct_CXX"; then
4003   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4004 else
4005 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4006 for as_dir in $PATH
4007 do
4008   IFS=$as_save_IFS
4009   test -z "$as_dir" && as_dir=.
4010   for ac_exec_ext in '' $ac_executable_extensions; do
4011   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4012     ac_cv_prog_ac_ct_CXX="$ac_prog"
4013     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4014     break 2
4015   fi
4016 done
4017 done
4018 IFS=$as_save_IFS
4019
4020 fi
4021 fi
4022 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4023 if test -n "$ac_ct_CXX"; then
4024   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
4025 echo "${ECHO_T}$ac_ct_CXX" >&6; }
4026 else
4027   { echo "$as_me:$LINENO: result: no" >&5
4028 echo "${ECHO_T}no" >&6; }
4029 fi
4030
4031
4032   test -n "$ac_ct_CXX" && break
4033 done
4034
4035   if test "x$ac_ct_CXX" = x; then
4036     CXX="g++"
4037   else
4038     case $cross_compiling:$ac_tool_warned in
4039 yes:)
4040 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4041 whose name does not start with the host triplet.  If you think this
4042 configuration is useful to you, please write to autoconf@gnu.org." >&5
4043 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4044 whose name does not start with the host triplet.  If you think this
4045 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4046 ac_tool_warned=yes ;;
4047 esac
4048     CXX=$ac_ct_CXX
4049   fi
4050 fi
4051
4052   fi
4053 fi
4054 # Provide some information about the compiler.
4055 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
4056 ac_compiler=`set X $ac_compile; echo $2`
4057 { (ac_try="$ac_compiler --version >&5"
4058 case "(($ac_try" in
4059   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4060   *) ac_try_echo=$ac_try;;
4061 esac
4062 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4063   (eval "$ac_compiler --version >&5") 2>&5
4064   ac_status=$?
4065   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4066   (exit $ac_status); }
4067 { (ac_try="$ac_compiler -v >&5"
4068 case "(($ac_try" in
4069   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4070   *) ac_try_echo=$ac_try;;
4071 esac
4072 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4073   (eval "$ac_compiler -v >&5") 2>&5
4074   ac_status=$?
4075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4076   (exit $ac_status); }
4077 { (ac_try="$ac_compiler -V >&5"
4078 case "(($ac_try" in
4079   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4080   *) ac_try_echo=$ac_try;;
4081 esac
4082 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4083   (eval "$ac_compiler -V >&5") 2>&5
4084   ac_status=$?
4085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4086   (exit $ac_status); }
4087
4088 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
4089 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
4090 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
4091   echo $ECHO_N "(cached) $ECHO_C" >&6
4092 else
4093   cat >conftest.$ac_ext <<_ACEOF
4094 /* confdefs.h.  */
4095 _ACEOF
4096 cat confdefs.h >>conftest.$ac_ext
4097 cat >>conftest.$ac_ext <<_ACEOF
4098 /* end confdefs.h.  */
4099
4100 int
4101 main ()
4102 {
4103 #ifndef __GNUC__
4104        choke me
4105 #endif
4106
4107   ;
4108   return 0;
4109 }
4110 _ACEOF
4111 rm -f conftest.$ac_objext
4112 if { (ac_try="$ac_compile"
4113 case "(($ac_try" in
4114   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4115   *) ac_try_echo=$ac_try;;
4116 esac
4117 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4118   (eval "$ac_compile") 2>conftest.er1
4119   ac_status=$?
4120   grep -v '^ *+' conftest.er1 >conftest.err
4121   rm -f conftest.er1
4122   cat conftest.err >&5
4123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4124   (exit $ac_status); } && {
4125          test -z "$ac_cxx_werror_flag" ||
4126          test ! -s conftest.err
4127        } && test -s conftest.$ac_objext; then
4128   ac_compiler_gnu=yes
4129 else
4130   echo "$as_me: failed program was:" >&5
4131 sed 's/^/| /' conftest.$ac_ext >&5
4132
4133         ac_compiler_gnu=no
4134 fi
4135
4136 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4137 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4138
4139 fi
4140 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4141 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
4142 GXX=`test $ac_compiler_gnu = yes && echo yes`
4143 ac_test_CXXFLAGS=${CXXFLAGS+set}
4144 ac_save_CXXFLAGS=$CXXFLAGS
4145 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4146 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
4147 if test "${ac_cv_prog_cxx_g+set}" = set; then
4148   echo $ECHO_N "(cached) $ECHO_C" >&6
4149 else
4150   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4151    ac_cxx_werror_flag=yes
4152    ac_cv_prog_cxx_g=no
4153    CXXFLAGS="-g"
4154    cat >conftest.$ac_ext <<_ACEOF
4155 /* confdefs.h.  */
4156 _ACEOF
4157 cat confdefs.h >>conftest.$ac_ext
4158 cat >>conftest.$ac_ext <<_ACEOF
4159 /* end confdefs.h.  */
4160
4161 int
4162 main ()
4163 {
4164
4165   ;
4166   return 0;
4167 }
4168 _ACEOF
4169 rm -f conftest.$ac_objext
4170 if { (ac_try="$ac_compile"
4171 case "(($ac_try" in
4172   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4173   *) ac_try_echo=$ac_try;;
4174 esac
4175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4176   (eval "$ac_compile") 2>conftest.er1
4177   ac_status=$?
4178   grep -v '^ *+' conftest.er1 >conftest.err
4179   rm -f conftest.er1
4180   cat conftest.err >&5
4181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4182   (exit $ac_status); } && {
4183          test -z "$ac_cxx_werror_flag" ||
4184          test ! -s conftest.err
4185        } && test -s conftest.$ac_objext; then
4186   ac_cv_prog_cxx_g=yes
4187 else
4188   echo "$as_me: failed program was:" >&5
4189 sed 's/^/| /' conftest.$ac_ext >&5
4190
4191         CXXFLAGS=""
4192       cat >conftest.$ac_ext <<_ACEOF
4193 /* confdefs.h.  */
4194 _ACEOF
4195 cat confdefs.h >>conftest.$ac_ext
4196 cat >>conftest.$ac_ext <<_ACEOF
4197 /* end confdefs.h.  */
4198
4199 int
4200 main ()
4201 {
4202
4203   ;
4204   return 0;
4205 }
4206 _ACEOF
4207 rm -f conftest.$ac_objext
4208 if { (ac_try="$ac_compile"
4209 case "(($ac_try" in
4210   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4211   *) ac_try_echo=$ac_try;;
4212 esac
4213 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4214   (eval "$ac_compile") 2>conftest.er1
4215   ac_status=$?
4216   grep -v '^ *+' conftest.er1 >conftest.err
4217   rm -f conftest.er1
4218   cat conftest.err >&5
4219   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4220   (exit $ac_status); } && {
4221          test -z "$ac_cxx_werror_flag" ||
4222          test ! -s conftest.err
4223        } && test -s conftest.$ac_objext; then
4224   :
4225 else
4226   echo "$as_me: failed program was:" >&5
4227 sed 's/^/| /' conftest.$ac_ext >&5
4228
4229         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4230          CXXFLAGS="-g"
4231          cat >conftest.$ac_ext <<_ACEOF
4232 /* confdefs.h.  */
4233 _ACEOF
4234 cat confdefs.h >>conftest.$ac_ext
4235 cat >>conftest.$ac_ext <<_ACEOF
4236 /* end confdefs.h.  */
4237
4238 int
4239 main ()
4240 {
4241
4242   ;
4243   return 0;
4244 }
4245 _ACEOF
4246 rm -f conftest.$ac_objext
4247 if { (ac_try="$ac_compile"
4248 case "(($ac_try" in
4249   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4250   *) ac_try_echo=$ac_try;;
4251 esac
4252 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4253   (eval "$ac_compile") 2>conftest.er1
4254   ac_status=$?
4255   grep -v '^ *+' conftest.er1 >conftest.err
4256   rm -f conftest.er1
4257   cat conftest.err >&5
4258   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4259   (exit $ac_status); } && {
4260          test -z "$ac_cxx_werror_flag" ||
4261          test ! -s conftest.err
4262        } && test -s conftest.$ac_objext; then
4263   ac_cv_prog_cxx_g=yes
4264 else
4265   echo "$as_me: failed program was:" >&5
4266 sed 's/^/| /' conftest.$ac_ext >&5
4267
4268
4269 fi
4270
4271 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4272 fi
4273
4274 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4275 fi
4276
4277 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4278    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4279 fi
4280 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4281 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
4282 if test "$ac_test_CXXFLAGS" = set; then
4283   CXXFLAGS=$ac_save_CXXFLAGS
4284 elif test $ac_cv_prog_cxx_g = yes; then
4285   if test "$GXX" = yes; then
4286     CXXFLAGS="-g -O2"
4287   else
4288     CXXFLAGS="-g"
4289   fi
4290 else
4291   if test "$GXX" = yes; then
4292     CXXFLAGS="-O2"
4293   else
4294     CXXFLAGS=
4295   fi
4296 fi
4297 ac_ext=c
4298 ac_cpp='$CPP $CPPFLAGS'
4299 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4300 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4301 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4302
4303 depcc="$CXX"  am_compiler_list=
4304
4305 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4306 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
4307 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
4308   echo $ECHO_N "(cached) $ECHO_C" >&6
4309 else
4310   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4311   # We make a subdir and do the tests there.  Otherwise we can end up
4312   # making bogus files that we don't know about and never remove.  For
4313   # instance it was reported that on HP-UX the gcc test will end up
4314   # making a dummy file named `D' -- because `-MD' means `put the output
4315   # in D'.
4316   mkdir conftest.dir
4317   # Copy depcomp to subdir because otherwise we won't find it if we're
4318   # using a relative directory.
4319   cp "$am_depcomp" conftest.dir
4320   cd conftest.dir
4321   # We will build objects and dependencies in a subdirectory because
4322   # it helps to detect inapplicable dependency modes.  For instance
4323   # both Tru64's cc and ICC support -MD to output dependencies as a
4324   # side effect of compilation, but ICC will put the dependencies in
4325   # the current directory while Tru64 will put them in the object
4326   # directory.
4327   mkdir sub
4328
4329   am_cv_CXX_dependencies_compiler_type=none
4330   if test "$am_compiler_list" = ""; then
4331      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4332   fi
4333   for depmode in $am_compiler_list; do
4334     # Setup a source with many dependencies, because some compilers
4335     # like to wrap large dependency lists on column 80 (with \), and
4336     # we should not choose a depcomp mode which is confused by this.
4337     #
4338     # We need to recreate these files for each test, as the compiler may
4339     # overwrite some of them when testing with obscure command lines.
4340     # This happens at least with the AIX C compiler.
4341     : > sub/conftest.c
4342     for i in 1 2 3 4 5 6; do
4343       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4344       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4345       # Solaris 8's {/usr,}/bin/sh.
4346       touch sub/conftst$i.h
4347     done
4348     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4349
4350     case $depmode in
4351     nosideeffect)
4352       # after this tag, mechanisms are not by side-effect, so they'll
4353       # only be used when explicitly requested
4354       if test "x$enable_dependency_tracking" = xyes; then
4355         continue
4356       else
4357         break
4358       fi
4359       ;;
4360     none) break ;;
4361     esac
4362     # We check with `-c' and `-o' for the sake of the "dashmstdout"
4363     # mode.  It turns out that the SunPro C++ compiler does not properly
4364     # handle `-M -o', and we need to detect this.
4365     if depmode=$depmode \
4366        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4367        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4368        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4369          >/dev/null 2>conftest.err &&
4370        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4371        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4372        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4373       # icc doesn't choke on unknown options, it will just issue warnings
4374       # or remarks (even with -Werror).  So we grep stderr for any message
4375       # that says an option was ignored or not supported.
4376       # When given -MP, icc 7.0 and 7.1 complain thusly:
4377       #   icc: Command line warning: ignoring option '-M'; no argument required
4378       # The diagnosis changed in icc 8.0:
4379       #   icc: Command line remark: option '-MP' not supported
4380       if (grep 'ignoring option' conftest.err ||
4381           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4382         am_cv_CXX_dependencies_compiler_type=$depmode
4383         break
4384       fi
4385     fi
4386   done
4387
4388   cd ..
4389   rm -rf conftest.dir
4390 else
4391   am_cv_CXX_dependencies_compiler_type=none
4392 fi
4393
4394 fi
4395 { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
4396 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
4397 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4398
4399
4400
4401 if
4402   test "x$enable_dependency_tracking" != xno \
4403   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4404   am__fastdepCXX_TRUE=
4405   am__fastdepCXX_FALSE='#'
4406 else
4407   am__fastdepCXX_TRUE='#'
4408   am__fastdepCXX_FALSE=
4409 fi
4410
4411
4412 ac_ext=c
4413 ac_cpp='$CPP $CPPFLAGS'
4414 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4415 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4416 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4417 if test -n "$ac_tool_prefix"; then
4418   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4419 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4420 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4421 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4422 if test "${ac_cv_prog_CC+set}" = set; then
4423   echo $ECHO_N "(cached) $ECHO_C" >&6
4424 else
4425   if test -n "$CC"; then
4426   ac_cv_prog_CC="$CC" # Let the user override the test.
4427 else
4428 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4429 for as_dir in $PATH
4430 do
4431   IFS=$as_save_IFS
4432   test -z "$as_dir" && as_dir=.
4433   for ac_exec_ext in '' $ac_executable_extensions; do
4434   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4435     ac_cv_prog_CC="${ac_tool_prefix}gcc"
4436     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4437     break 2
4438   fi
4439 done
4440 done
4441 IFS=$as_save_IFS
4442
4443 fi
4444 fi
4445 CC=$ac_cv_prog_CC
4446 if test -n "$CC"; then
4447   { echo "$as_me:$LINENO: result: $CC" >&5
4448 echo "${ECHO_T}$CC" >&6; }
4449 else
4450   { echo "$as_me:$LINENO: result: no" >&5
4451 echo "${ECHO_T}no" >&6; }
4452 fi
4453
4454
4455 fi
4456 if test -z "$ac_cv_prog_CC"; then
4457   ac_ct_CC=$CC
4458   # Extract the first word of "gcc", so it can be a program name with args.
4459 set dummy gcc; ac_word=$2
4460 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4461 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4462 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4463   echo $ECHO_N "(cached) $ECHO_C" >&6
4464 else
4465   if test -n "$ac_ct_CC"; then
4466   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4467 else
4468 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4469 for as_dir in $PATH
4470 do
4471   IFS=$as_save_IFS
4472   test -z "$as_dir" && as_dir=.
4473   for ac_exec_ext in '' $ac_executable_extensions; do
4474   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4475     ac_cv_prog_ac_ct_CC="gcc"
4476     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4477     break 2
4478   fi
4479 done
4480 done
4481 IFS=$as_save_IFS
4482
4483 fi
4484 fi
4485 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4486 if test -n "$ac_ct_CC"; then
4487   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4488 echo "${ECHO_T}$ac_ct_CC" >&6; }
4489 else
4490   { echo "$as_me:$LINENO: result: no" >&5
4491 echo "${ECHO_T}no" >&6; }
4492 fi
4493
4494   if test "x$ac_ct_CC" = x; then
4495     CC=""
4496   else
4497     case $cross_compiling:$ac_tool_warned in
4498 yes:)
4499 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4500 whose name does not start with the host triplet.  If you think this
4501 configuration is useful to you, please write to autoconf@gnu.org." >&5
4502 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4503 whose name does not start with the host triplet.  If you think this
4504 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4505 ac_tool_warned=yes ;;
4506 esac
4507     CC=$ac_ct_CC
4508   fi
4509 else
4510   CC="$ac_cv_prog_CC"
4511 fi
4512
4513 if test -z "$CC"; then
4514           if test -n "$ac_tool_prefix"; then
4515     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4516 set dummy ${ac_tool_prefix}cc; ac_word=$2
4517 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4518 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4519 if test "${ac_cv_prog_CC+set}" = set; then
4520   echo $ECHO_N "(cached) $ECHO_C" >&6
4521 else
4522   if test -n "$CC"; then
4523   ac_cv_prog_CC="$CC" # Let the user override the test.
4524 else
4525 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4526 for as_dir in $PATH
4527 do
4528   IFS=$as_save_IFS
4529   test -z "$as_dir" && as_dir=.
4530   for ac_exec_ext in '' $ac_executable_extensions; do
4531   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4532     ac_cv_prog_CC="${ac_tool_prefix}cc"
4533     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4534     break 2
4535   fi
4536 done
4537 done
4538 IFS=$as_save_IFS
4539
4540 fi
4541 fi
4542 CC=$ac_cv_prog_CC
4543 if test -n "$CC"; then
4544   { echo "$as_me:$LINENO: result: $CC" >&5
4545 echo "${ECHO_T}$CC" >&6; }
4546 else
4547   { echo "$as_me:$LINENO: result: no" >&5
4548 echo "${ECHO_T}no" >&6; }
4549 fi
4550
4551
4552   fi
4553 fi
4554 if test -z "$CC"; then
4555   # Extract the first word of "cc", so it can be a program name with args.
4556 set dummy cc; ac_word=$2
4557 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4558 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4559 if test "${ac_cv_prog_CC+set}" = set; then
4560   echo $ECHO_N "(cached) $ECHO_C" >&6
4561 else
4562   if test -n "$CC"; then
4563   ac_cv_prog_CC="$CC" # Let the user override the test.
4564 else
4565   ac_prog_rejected=no
4566 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4567 for as_dir in $PATH
4568 do
4569   IFS=$as_save_IFS
4570   test -z "$as_dir" && as_dir=.
4571   for ac_exec_ext in '' $ac_executable_extensions; do
4572   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4573     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4574        ac_prog_rejected=yes
4575        continue
4576      fi
4577     ac_cv_prog_CC="cc"
4578     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4579     break 2
4580   fi
4581 done
4582 done
4583 IFS=$as_save_IFS
4584
4585 if test $ac_prog_rejected = yes; then
4586   # We found a bogon in the path, so make sure we never use it.
4587   set dummy $ac_cv_prog_CC
4588   shift
4589   if test $# != 0; then
4590     # We chose a different compiler from the bogus one.
4591     # However, it has the same basename, so the bogon will be chosen
4592     # first if we set CC to just the basename; use the full file name.
4593     shift
4594     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4595   fi
4596 fi
4597 fi
4598 fi
4599 CC=$ac_cv_prog_CC
4600 if test -n "$CC"; then
4601   { echo "$as_me:$LINENO: result: $CC" >&5
4602 echo "${ECHO_T}$CC" >&6; }
4603 else
4604   { echo "$as_me:$LINENO: result: no" >&5
4605 echo "${ECHO_T}no" >&6; }
4606 fi
4607
4608
4609 fi
4610 if test -z "$CC"; then
4611   if test -n "$ac_tool_prefix"; then
4612   for ac_prog in cl.exe
4613   do
4614     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4615 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4616 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4617 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4618 if test "${ac_cv_prog_CC+set}" = set; then
4619   echo $ECHO_N "(cached) $ECHO_C" >&6
4620 else
4621   if test -n "$CC"; then
4622   ac_cv_prog_CC="$CC" # Let the user override the test.
4623 else
4624 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4625 for as_dir in $PATH
4626 do
4627   IFS=$as_save_IFS
4628   test -z "$as_dir" && as_dir=.
4629   for ac_exec_ext in '' $ac_executable_extensions; do
4630   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4631     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4632     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4633     break 2
4634   fi
4635 done
4636 done
4637 IFS=$as_save_IFS
4638
4639 fi
4640 fi
4641 CC=$ac_cv_prog_CC
4642 if test -n "$CC"; then
4643   { echo "$as_me:$LINENO: result: $CC" >&5
4644 echo "${ECHO_T}$CC" >&6; }
4645 else
4646   { echo "$as_me:$LINENO: result: no" >&5
4647 echo "${ECHO_T}no" >&6; }
4648 fi
4649
4650
4651     test -n "$CC" && break
4652   done
4653 fi
4654 if test -z "$CC"; then
4655   ac_ct_CC=$CC
4656   for ac_prog in cl.exe
4657 do
4658   # Extract the first word of "$ac_prog", so it can be a program name with args.
4659 set dummy $ac_prog; ac_word=$2
4660 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4661 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4662 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4663   echo $ECHO_N "(cached) $ECHO_C" >&6
4664 else
4665   if test -n "$ac_ct_CC"; then
4666   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4667 else
4668 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4669 for as_dir in $PATH
4670 do
4671   IFS=$as_save_IFS
4672   test -z "$as_dir" && as_dir=.
4673   for ac_exec_ext in '' $ac_executable_extensions; do
4674   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4675     ac_cv_prog_ac_ct_CC="$ac_prog"
4676     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4677     break 2
4678   fi
4679 done
4680 done
4681 IFS=$as_save_IFS
4682
4683 fi
4684 fi
4685 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4686 if test -n "$ac_ct_CC"; then
4687   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4688 echo "${ECHO_T}$ac_ct_CC" >&6; }
4689 else
4690   { echo "$as_me:$LINENO: result: no" >&5
4691 echo "${ECHO_T}no" >&6; }
4692 fi
4693
4694
4695   test -n "$ac_ct_CC" && break
4696 done
4697
4698   if test "x$ac_ct_CC" = x; then
4699     CC=""
4700   else
4701     case $cross_compiling:$ac_tool_warned in
4702 yes:)
4703 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4704 whose name does not start with the host triplet.  If you think this
4705 configuration is useful to you, please write to autoconf@gnu.org." >&5
4706 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4707 whose name does not start with the host triplet.  If you think this
4708 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4709 ac_tool_warned=yes ;;
4710 esac
4711     CC=$ac_ct_CC
4712   fi
4713 fi
4714
4715 fi
4716
4717
4718 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
4719 See \`config.log' for more details." >&5
4720 echo "$as_me: error: no acceptable C compiler found in \$PATH
4721 See \`config.log' for more details." >&2;}
4722    { (exit 1); exit 1; }; }
4723
4724 # Provide some information about the compiler.
4725 echo "$as_me:$LINENO: checking for C compiler version" >&5
4726 ac_compiler=`set X $ac_compile; echo $2`
4727 { (ac_try="$ac_compiler --version >&5"
4728 case "(($ac_try" in
4729   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4730   *) ac_try_echo=$ac_try;;
4731 esac
4732 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4733   (eval "$ac_compiler --version >&5") 2>&5
4734   ac_status=$?
4735   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4736   (exit $ac_status); }
4737 { (ac_try="$ac_compiler -v >&5"
4738 case "(($ac_try" in
4739   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4740   *) ac_try_echo=$ac_try;;
4741 esac
4742 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4743   (eval "$ac_compiler -v >&5") 2>&5
4744   ac_status=$?
4745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4746   (exit $ac_status); }
4747 { (ac_try="$ac_compiler -V >&5"
4748 case "(($ac_try" in
4749   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4750   *) ac_try_echo=$ac_try;;
4751 esac
4752 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4753   (eval "$ac_compiler -V >&5") 2>&5
4754   ac_status=$?
4755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4756   (exit $ac_status); }
4757
4758 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
4759 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
4760 if test "${ac_cv_c_compiler_gnu+set}" = set; then
4761   echo $ECHO_N "(cached) $ECHO_C" >&6
4762 else
4763   cat >conftest.$ac_ext <<_ACEOF
4764 /* confdefs.h.  */
4765 _ACEOF
4766 cat confdefs.h >>conftest.$ac_ext
4767 cat >>conftest.$ac_ext <<_ACEOF
4768 /* end confdefs.h.  */
4769
4770 int
4771 main ()
4772 {
4773 #ifndef __GNUC__
4774        choke me
4775 #endif
4776
4777   ;
4778   return 0;
4779 }
4780 _ACEOF
4781 rm -f conftest.$ac_objext
4782 if { (ac_try="$ac_compile"
4783 case "(($ac_try" in
4784   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4785   *) ac_try_echo=$ac_try;;
4786 esac
4787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4788   (eval "$ac_compile") 2>conftest.er1
4789   ac_status=$?
4790   grep -v '^ *+' conftest.er1 >conftest.err
4791   rm -f conftest.er1
4792   cat conftest.err >&5
4793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4794   (exit $ac_status); } && {
4795          test -z "$ac_c_werror_flag" ||
4796          test ! -s conftest.err
4797        } && test -s conftest.$ac_objext; then
4798   ac_compiler_gnu=yes
4799 else
4800   echo "$as_me: failed program was:" >&5
4801 sed 's/^/| /' conftest.$ac_ext >&5
4802
4803         ac_compiler_gnu=no
4804 fi
4805
4806 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4807 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4808
4809 fi
4810 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4811 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
4812 GCC=`test $ac_compiler_gnu = yes && echo yes`
4813 ac_test_CFLAGS=${CFLAGS+set}
4814 ac_save_CFLAGS=$CFLAGS
4815 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4816 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
4817 if test "${ac_cv_prog_cc_g+set}" = set; then
4818   echo $ECHO_N "(cached) $ECHO_C" >&6
4819 else
4820   ac_save_c_werror_flag=$ac_c_werror_flag
4821    ac_c_werror_flag=yes
4822    ac_cv_prog_cc_g=no
4823    CFLAGS="-g"
4824    cat >conftest.$ac_ext <<_ACEOF
4825 /* confdefs.h.  */
4826 _ACEOF
4827 cat confdefs.h >>conftest.$ac_ext
4828 cat >>conftest.$ac_ext <<_ACEOF
4829 /* end confdefs.h.  */
4830
4831 int
4832 main ()
4833 {
4834
4835   ;
4836   return 0;
4837 }
4838 _ACEOF
4839 rm -f conftest.$ac_objext
4840 if { (ac_try="$ac_compile"
4841 case "(($ac_try" in
4842   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4843   *) ac_try_echo=$ac_try;;
4844 esac
4845 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4846   (eval "$ac_compile") 2>conftest.er1
4847   ac_status=$?
4848   grep -v '^ *+' conftest.er1 >conftest.err
4849   rm -f conftest.er1
4850   cat conftest.err >&5
4851   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4852   (exit $ac_status); } && {
4853          test -z "$ac_c_werror_flag" ||
4854          test ! -s conftest.err
4855        } && test -s conftest.$ac_objext; then
4856   ac_cv_prog_cc_g=yes
4857 else
4858   echo "$as_me: failed program was:" >&5
4859 sed 's/^/| /' conftest.$ac_ext >&5
4860
4861         CFLAGS=""
4862       cat >conftest.$ac_ext <<_ACEOF
4863 /* confdefs.h.  */
4864 _ACEOF
4865 cat confdefs.h >>conftest.$ac_ext
4866 cat >>conftest.$ac_ext <<_ACEOF
4867 /* end confdefs.h.  */
4868
4869 int
4870 main ()
4871 {
4872
4873   ;
4874   return 0;
4875 }
4876 _ACEOF
4877 rm -f conftest.$ac_objext
4878 if { (ac_try="$ac_compile"
4879 case "(($ac_try" in
4880   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4881   *) ac_try_echo=$ac_try;;
4882 esac
4883 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4884   (eval "$ac_compile") 2>conftest.er1
4885   ac_status=$?
4886   grep -v '^ *+' conftest.er1 >conftest.err
4887   rm -f conftest.er1
4888   cat conftest.err >&5
4889   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4890   (exit $ac_status); } && {
4891          test -z "$ac_c_werror_flag" ||
4892          test ! -s conftest.err
4893        } && test -s conftest.$ac_objext; then
4894   :
4895 else
4896   echo "$as_me: failed program was:" >&5
4897 sed 's/^/| /' conftest.$ac_ext >&5
4898
4899         ac_c_werror_flag=$ac_save_c_werror_flag
4900          CFLAGS="-g"
4901          cat >conftest.$ac_ext <<_ACEOF
4902 /* confdefs.h.  */
4903 _ACEOF
4904 cat confdefs.h >>conftest.$ac_ext
4905 cat >>conftest.$ac_ext <<_ACEOF
4906 /* end confdefs.h.  */
4907
4908 int
4909 main ()
4910 {
4911
4912   ;
4913   return 0;
4914 }
4915 _ACEOF
4916 rm -f conftest.$ac_objext
4917 if { (ac_try="$ac_compile"
4918 case "(($ac_try" in
4919   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4920   *) ac_try_echo=$ac_try;;
4921 esac
4922 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4923   (eval "$ac_compile") 2>conftest.er1
4924   ac_status=$?
4925   grep -v '^ *+' conftest.er1 >conftest.err
4926   rm -f conftest.er1
4927   cat conftest.err >&5
4928   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4929   (exit $ac_status); } && {
4930          test -z "$ac_c_werror_flag" ||
4931          test ! -s conftest.err
4932        } && test -s conftest.$ac_objext; then
4933   ac_cv_prog_cc_g=yes
4934 else
4935   echo "$as_me: failed program was:" >&5
4936 sed 's/^/| /' conftest.$ac_ext >&5
4937
4938
4939 fi
4940
4941 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4942 fi
4943
4944 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4945 fi
4946
4947 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4948    ac_c_werror_flag=$ac_save_c_werror_flag
4949 fi
4950 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4951 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
4952 if test "$ac_test_CFLAGS" = set; then
4953   CFLAGS=$ac_save_CFLAGS
4954 elif test $ac_cv_prog_cc_g = yes; then
4955   if test "$GCC" = yes; then
4956     CFLAGS="-g -O2"
4957   else
4958     CFLAGS="-g"
4959   fi
4960 else
4961   if test "$GCC" = yes; then
4962     CFLAGS="-O2"
4963   else
4964     CFLAGS=
4965   fi
4966 fi
4967 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
4968 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
4969 if test "${ac_cv_prog_cc_c89+set}" = set; then
4970   echo $ECHO_N "(cached) $ECHO_C" >&6
4971 else
4972   ac_cv_prog_cc_c89=no
4973 ac_save_CC=$CC
4974 cat >conftest.$ac_ext <<_ACEOF
4975 /* confdefs.h.  */
4976 _ACEOF
4977 cat confdefs.h >>conftest.$ac_ext
4978 cat >>conftest.$ac_ext <<_ACEOF
4979 /* end confdefs.h.  */
4980 #include <stdarg.h>
4981 #include <stdio.h>
4982 #include <sys/types.h>
4983 #include <sys/stat.h>
4984 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4985 struct buf { int x; };
4986 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4987 static char *e (p, i)
4988      char **p;
4989      int i;
4990 {
4991   return p[i];
4992 }
4993 static char *f (char * (*g) (char **, int), char **p, ...)
4994 {
4995   char *s;
4996   va_list v;
4997   va_start (v,p);
4998   s = g (p, va_arg (v,int));
4999   va_end (v);
5000   return s;
5001 }
5002
5003 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
5004    function prototypes and stuff, but not '\xHH' hex character constants.
5005    These don't provoke an error unfortunately, instead are silently treated
5006    as 'x'.  The following induces an error, until -std is added to get
5007    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
5008    array size at least.  It's necessary to write '\x00'==0 to get something
5009    that's true only with -std.  */
5010 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5011
5012 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5013    inside strings and character constants.  */
5014 #define FOO(x) 'x'
5015 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5016
5017 int test (int i, double x);
5018 struct s1 {int (*f) (int a);};
5019 struct s2 {int (*f) (double a);};
5020 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5021 int argc;
5022 char **argv;
5023 int
5024 main ()
5025 {
5026 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
5027   ;
5028   return 0;
5029 }
5030 _ACEOF
5031 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5032         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5033 do
5034   CC="$ac_save_CC $ac_arg"
5035   rm -f conftest.$ac_objext
5036 if { (ac_try="$ac_compile"
5037 case "(($ac_try" in
5038   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5039   *) ac_try_echo=$ac_try;;
5040 esac
5041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5042   (eval "$ac_compile") 2>conftest.er1
5043   ac_status=$?
5044   grep -v '^ *+' conftest.er1 >conftest.err
5045   rm -f conftest.er1
5046   cat conftest.err >&5
5047   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5048   (exit $ac_status); } && {
5049          test -z "$ac_c_werror_flag" ||
5050          test ! -s conftest.err
5051        } && test -s conftest.$ac_objext; then
5052   ac_cv_prog_cc_c89=$ac_arg
5053 else
5054   echo "$as_me: failed program was:" >&5
5055 sed 's/^/| /' conftest.$ac_ext >&5
5056
5057
5058 fi
5059
5060 rm -f core conftest.err conftest.$ac_objext
5061   test "x$ac_cv_prog_cc_c89" != "xno" && break
5062 done
5063 rm -f conftest.$ac_ext
5064 CC=$ac_save_CC
5065
5066 fi
5067 # AC_CACHE_VAL
5068 case "x$ac_cv_prog_cc_c89" in
5069   x)
5070     { echo "$as_me:$LINENO: result: none needed" >&5
5071 echo "${ECHO_T}none needed" >&6; } ;;
5072   xno)
5073     { echo "$as_me:$LINENO: result: unsupported" >&5
5074 echo "${ECHO_T}unsupported" >&6; } ;;
5075   *)
5076     CC="$CC $ac_cv_prog_cc_c89"
5077     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
5078 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
5079 esac
5080
5081
5082 ac_ext=c
5083 ac_cpp='$CPP $CPPFLAGS'
5084 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5085 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5086 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5087
5088 depcc="$CC"   am_compiler_list=
5089
5090 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5091 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
5092 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
5093   echo $ECHO_N "(cached) $ECHO_C" >&6
5094 else
5095   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5096   # We make a subdir and do the tests there.  Otherwise we can end up
5097   # making bogus files that we don't know about and never remove.  For
5098   # instance it was reported that on HP-UX the gcc test will end up
5099   # making a dummy file named `D' -- because `-MD' means `put the output
5100   # in D'.
5101   mkdir conftest.dir
5102   # Copy depcomp to subdir because otherwise we won't find it if we're
5103   # using a relative directory.
5104   cp "$am_depcomp" conftest.dir
5105   cd conftest.dir
5106   # We will build objects and dependencies in a subdirectory because
5107   # it helps to detect inapplicable dependency modes.  For instance
5108   # both Tru64's cc and ICC support -MD to output dependencies as a
5109   # side effect of compilation, but ICC will put the dependencies in
5110   # the current directory while Tru64 will put them in the object
5111   # directory.
5112   mkdir sub
5113
5114   am_cv_CC_dependencies_compiler_type=none
5115   if test "$am_compiler_list" = ""; then
5116      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5117   fi
5118   for depmode in $am_compiler_list; do
5119     # Setup a source with many dependencies, because some compilers
5120     # like to wrap large dependency lists on column 80 (with \), and
5121     # we should not choose a depcomp mode which is confused by this.
5122     #
5123     # We need to recreate these files for each test, as the compiler may
5124     # overwrite some of them when testing with obscure command lines.
5125     # This happens at least with the AIX C compiler.
5126     : > sub/conftest.c
5127     for i in 1 2 3 4 5 6; do
5128       echo '#include "conftst'$i'.h"' >> sub/conftest.c
5129       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5130       # Solaris 8's {/usr,}/bin/sh.
5131       touch sub/conftst$i.h
5132     done
5133     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5134
5135     case $depmode in
5136     nosideeffect)
5137       # after this tag, mechanisms are not by side-effect, so they'll
5138       # only be used when explicitly requested
5139       if test "x$enable_dependency_tracking" = xyes; then
5140         continue
5141       else
5142         break
5143       fi
5144       ;;
5145     none) break ;;
5146     esac
5147     # We check with `-c' and `-o' for the sake of the "dashmstdout"
5148     # mode.  It turns out that the SunPro C++ compiler does not properly
5149     # handle `-M -o', and we need to detect this.
5150     if depmode=$depmode \
5151        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5152        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5153        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5154          >/dev/null 2>conftest.err &&
5155        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5156        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5157        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5158       # icc doesn't choke on unknown options, it will just issue warnings
5159       # or remarks (even with -Werror).  So we grep stderr for any message
5160       # that says an option was ignored or not supported.
5161       # When given -MP, icc 7.0 and 7.1 complain thusly:
5162       #   icc: Command line warning: ignoring option '-M'; no argument required
5163       # The diagnosis changed in icc 8.0:
5164       #   icc: Command line remark: option '-MP' not supported
5165       if (grep 'ignoring option' conftest.err ||
5166           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5167         am_cv_CC_dependencies_compiler_type=$depmode
5168         break
5169       fi
5170     fi
5171   done
5172
5173   cd ..
5174   rm -rf conftest.dir
5175 else
5176   am_cv_CC_dependencies_compiler_type=none
5177 fi
5178
5179 fi
5180 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
5181 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
5182 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5183
5184
5185
5186 if
5187   test "x$enable_dependency_tracking" != xno \
5188   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5189   am__fastdepCC_TRUE=
5190   am__fastdepCC_FALSE='#'
5191 else
5192   am__fastdepCC_TRUE='#'
5193   am__fastdepCC_FALSE=
5194 fi
5195
5196
5197 ac_ext=c
5198 ac_cpp='$CPP $CPPFLAGS'
5199 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5200 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5201 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5202 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5203 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
5204 # On Suns, sometimes $CPP names a directory.
5205 if test -n "$CPP" && test -d "$CPP"; then
5206   CPP=
5207 fi
5208 if test -z "$CPP"; then
5209   if test "${ac_cv_prog_CPP+set}" = set; then
5210   echo $ECHO_N "(cached) $ECHO_C" >&6
5211 else
5212       # Double quotes because CPP needs to be expanded
5213     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5214     do
5215       ac_preproc_ok=false
5216 for ac_c_preproc_warn_flag in '' yes
5217 do
5218   # Use a header file that comes with gcc, so configuring glibc
5219   # with a fresh cross-compiler works.
5220   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5221   # <limits.h> exists even on freestanding compilers.
5222   # On the NeXT, cc -E runs the code through the compiler's parser,
5223   # not just through cpp. "Syntax error" is here to catch this case.
5224   cat >conftest.$ac_ext <<_ACEOF
5225 /* confdefs.h.  */
5226 _ACEOF
5227 cat confdefs.h >>conftest.$ac_ext
5228 cat >>conftest.$ac_ext <<_ACEOF
5229 /* end confdefs.h.  */
5230 #ifdef __STDC__
5231 # include <limits.h>
5232 #else
5233 # include <assert.h>
5234 #endif
5235                      Syntax error
5236 _ACEOF
5237 if { (ac_try="$ac_cpp conftest.$ac_ext"
5238 case "(($ac_try" in
5239   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5240   *) ac_try_echo=$ac_try;;
5241 esac
5242 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5243   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5244   ac_status=$?
5245   grep -v '^ *+' conftest.er1 >conftest.err
5246   rm -f conftest.er1
5247   cat conftest.err >&5
5248   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5249   (exit $ac_status); } >/dev/null && {
5250          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5251          test ! -s conftest.err
5252        }; then
5253   :
5254 else
5255   echo "$as_me: failed program was:" >&5
5256 sed 's/^/| /' conftest.$ac_ext >&5
5257
5258   # Broken: fails on valid input.
5259 continue
5260 fi
5261
5262 rm -f conftest.err conftest.$ac_ext
5263
5264   # OK, works on sane cases.  Now check whether nonexistent headers
5265   # can be detected and how.
5266   cat >conftest.$ac_ext <<_ACEOF
5267 /* confdefs.h.  */
5268 _ACEOF
5269 cat confdefs.h >>conftest.$ac_ext
5270 cat >>conftest.$ac_ext <<_ACEOF
5271 /* end confdefs.h.  */
5272 #include <ac_nonexistent.h>
5273 _ACEOF
5274 if { (ac_try="$ac_cpp conftest.$ac_ext"
5275 case "(($ac_try" in
5276   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5277   *) ac_try_echo=$ac_try;;
5278 esac
5279 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5280   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5281   ac_status=$?
5282   grep -v '^ *+' conftest.er1 >conftest.err
5283   rm -f conftest.er1
5284   cat conftest.err >&5
5285   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5286   (exit $ac_status); } >/dev/null && {
5287          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5288          test ! -s conftest.err
5289        }; then
5290   # Broken: success on invalid input.
5291 continue
5292 else
5293   echo "$as_me: failed program was:" >&5
5294 sed 's/^/| /' conftest.$ac_ext >&5
5295
5296   # Passes both tests.
5297 ac_preproc_ok=:
5298 break
5299 fi
5300
5301 rm -f conftest.err conftest.$ac_ext
5302
5303 done
5304 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5305 rm -f conftest.err conftest.$ac_ext
5306 if $ac_preproc_ok; then
5307   break
5308 fi
5309
5310     done
5311     ac_cv_prog_CPP=$CPP
5312
5313 fi
5314   CPP=$ac_cv_prog_CPP
5315 else
5316   ac_cv_prog_CPP=$CPP
5317 fi
5318 { echo "$as_me:$LINENO: result: $CPP" >&5
5319 echo "${ECHO_T}$CPP" >&6; }
5320 ac_preproc_ok=false
5321 for ac_c_preproc_warn_flag in '' yes
5322 do
5323   # Use a header file that comes with gcc, so configuring glibc
5324   # with a fresh cross-compiler works.
5325   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5326   # <limits.h> exists even on freestanding compilers.
5327   # On the NeXT, cc -E runs the code through the compiler's parser,
5328   # not just through cpp. "Syntax error" is here to catch this case.
5329   cat >conftest.$ac_ext <<_ACEOF
5330 /* confdefs.h.  */
5331 _ACEOF
5332 cat confdefs.h >>conftest.$ac_ext
5333 cat >>conftest.$ac_ext <<_ACEOF
5334 /* end confdefs.h.  */
5335 #ifdef __STDC__
5336 # include <limits.h>
5337 #else
5338 # include <assert.h>
5339 #endif
5340                      Syntax error
5341 _ACEOF
5342 if { (ac_try="$ac_cpp conftest.$ac_ext"
5343 case "(($ac_try" in
5344   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5345   *) ac_try_echo=$ac_try;;
5346 esac
5347 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5348   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5349   ac_status=$?
5350   grep -v '^ *+' conftest.er1 >conftest.err
5351   rm -f conftest.er1
5352   cat conftest.err >&5
5353   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5354   (exit $ac_status); } >/dev/null && {
5355          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5356          test ! -s conftest.err
5357        }; then
5358   :
5359 else
5360   echo "$as_me: failed program was:" >&5
5361 sed 's/^/| /' conftest.$ac_ext >&5
5362
5363   # Broken: fails on valid input.
5364 continue
5365 fi
5366
5367 rm -f conftest.err conftest.$ac_ext
5368
5369   # OK, works on sane cases.  Now check whether nonexistent headers
5370   # can be detected and how.
5371   cat >conftest.$ac_ext <<_ACEOF
5372 /* confdefs.h.  */
5373 _ACEOF
5374 cat confdefs.h >>conftest.$ac_ext
5375 cat >>conftest.$ac_ext <<_ACEOF
5376 /* end confdefs.h.  */
5377 #include <ac_nonexistent.h>
5378 _ACEOF
5379 if { (ac_try="$ac_cpp conftest.$ac_ext"
5380 case "(($ac_try" in
5381   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5382   *) ac_try_echo=$ac_try;;
5383 esac
5384 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5385   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5386   ac_status=$?
5387   grep -v '^ *+' conftest.er1 >conftest.err
5388   rm -f conftest.er1
5389   cat conftest.err >&5
5390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5391   (exit $ac_status); } >/dev/null && {
5392          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5393          test ! -s conftest.err
5394        }; then
5395   # Broken: success on invalid input.
5396 continue
5397 else
5398   echo "$as_me: failed program was:" >&5
5399 sed 's/^/| /' conftest.$ac_ext >&5
5400
5401   # Passes both tests.
5402 ac_preproc_ok=:
5403 break
5404 fi
5405
5406 rm -f conftest.err conftest.$ac_ext
5407
5408 done
5409 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5410 rm -f conftest.err conftest.$ac_ext
5411 if $ac_preproc_ok; then
5412   :
5413 else
5414   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5415 See \`config.log' for more details." >&5
5416 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5417 See \`config.log' for more details." >&2;}
5418    { (exit 1); exit 1; }; }
5419 fi
5420
5421 ac_ext=c
5422 ac_cpp='$CPP $CPPFLAGS'
5423 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5424 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5425 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5426
5427 # Find a good install program.  We prefer a C program (faster),
5428 # so one script is as good as another.  But avoid the broken or
5429 # incompatible versions:
5430 # SysV /etc/install, /usr/sbin/install
5431 # SunOS /usr/etc/install
5432 # IRIX /sbin/install
5433 # AIX /bin/install
5434 # AmigaOS /C/install, which installs bootblocks on floppy discs
5435 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5436 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5437 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5438 # OS/2's system install, which has a completely different semantic
5439 # ./install, which can be erroneously created by make from ./install.sh.
5440 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
5441 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
5442 if test -z "$INSTALL"; then
5443 if test "${ac_cv_path_install+set}" = set; then
5444   echo $ECHO_N "(cached) $ECHO_C" >&6
5445 else
5446   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5447 for as_dir in $PATH
5448 do
5449   IFS=$as_save_IFS
5450   test -z "$as_dir" && as_dir=.
5451   # Account for people who put trailing slashes in PATH elements.
5452 case $as_dir/ in
5453   ./ | .// | /cC/* | \
5454   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5455   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
5456   /usr/ucb/* ) ;;
5457   *)
5458     # OSF1 and SCO ODT 3.0 have their own names for install.
5459     # Don't use installbsd from OSF since it installs stuff as root
5460     # by default.
5461     for ac_prog in ginstall scoinst install; do
5462       for ac_exec_ext in '' $ac_executable_extensions; do
5463         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
5464           if test $ac_prog = install &&
5465             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5466             # AIX install.  It has an incompatible calling convention.
5467             :
5468           elif test $ac_prog = install &&
5469             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5470             # program-specific install script used by HP pwplus--don't use.
5471             :
5472           else
5473             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5474             break 3
5475           fi
5476         fi
5477       done
5478     done
5479     ;;
5480 esac
5481 done
5482 IFS=$as_save_IFS
5483
5484
5485 fi
5486   if test "${ac_cv_path_install+set}" = set; then
5487     INSTALL=$ac_cv_path_install
5488   else
5489     # As a last resort, use the slow shell script.  Don't cache a
5490     # value for INSTALL within a source directory, because that will
5491     # break other packages using the cache if that directory is
5492     # removed, or if the value is a relative name.
5493     INSTALL=$ac_install_sh
5494   fi
5495 fi
5496 { echo "$as_me:$LINENO: result: $INSTALL" >&5
5497 echo "${ECHO_T}$INSTALL" >&6; }
5498
5499 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5500 # It thinks the first close brace ends the variable substitution.
5501 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5502
5503 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5504
5505 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5506
5507 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
5508 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
5509 LN_S=$as_ln_s
5510 if test "$LN_S" = "ln -s"; then
5511   { echo "$as_me:$LINENO: result: yes" >&5
5512 echo "${ECHO_T}yes" >&6; }
5513 else
5514   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5515 echo "${ECHO_T}no, using $LN_S" >&6; }
5516 fi
5517
5518 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5519 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
5520 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
5521 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
5522   echo $ECHO_N "(cached) $ECHO_C" >&6
5523 else
5524   cat >conftest.make <<\_ACEOF
5525 SHELL = /bin/sh
5526 all:
5527         @echo '@@@%%%=$(MAKE)=@@@%%%'
5528 _ACEOF
5529 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5530 case `${MAKE-make} -f conftest.make 2>/dev/null` in
5531   *@@@%%%=?*=@@@%%%*)
5532     eval ac_cv_prog_make_${ac_make}_set=yes;;
5533   *)
5534     eval ac_cv_prog_make_${ac_make}_set=no;;
5535 esac
5536 rm -f conftest.make
5537 fi
5538 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
5539   { echo "$as_me:$LINENO: result: yes" >&5
5540 echo "${ECHO_T}yes" >&6; }
5541   SET_MAKE=
5542 else
5543   { echo "$as_me:$LINENO: result: no" >&5
5544 echo "${ECHO_T}no" >&6; }
5545   SET_MAKE="MAKE=${MAKE-make}"
5546 fi
5547
5548 # Check whether --enable-shared was given.
5549 if test "${enable_shared+set}" = set; then
5550   enableval=$enable_shared; p=${PACKAGE-default}
5551     case $enableval in
5552     yes) enable_shared=yes ;;
5553     no) enable_shared=no ;;
5554     *)
5555       enable_shared=no
5556       # Look at the argument we got.  We use all the common list separators.
5557       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5558       for pkg in $enableval; do
5559         IFS="$lt_save_ifs"
5560         if test "X$pkg" = "X$p"; then
5561           enable_shared=yes
5562         fi
5563       done
5564       IFS="$lt_save_ifs"
5565       ;;
5566     esac
5567 else
5568   enable_shared=yes
5569 fi
5570
5571
5572 # Check whether --enable-static was given.
5573 if test "${enable_static+set}" = set; then
5574   enableval=$enable_static; p=${PACKAGE-default}
5575     case $enableval in
5576     yes) enable_static=yes ;;
5577     no) enable_static=no ;;
5578     *)
5579      enable_static=no
5580       # Look at the argument we got.  We use all the common list separators.
5581       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5582       for pkg in $enableval; do
5583         IFS="$lt_save_ifs"
5584         if test "X$pkg" = "X$p"; then
5585           enable_static=yes
5586         fi
5587       done
5588       IFS="$lt_save_ifs"
5589       ;;
5590     esac
5591 else
5592   enable_static=yes
5593 fi
5594
5595
5596 # Check whether --enable-fast-install was given.
5597 if test "${enable_fast_install+set}" = set; then
5598   enableval=$enable_fast_install; p=${PACKAGE-default}
5599     case $enableval in
5600     yes) enable_fast_install=yes ;;
5601     no) enable_fast_install=no ;;
5602     *)
5603       enable_fast_install=no
5604       # Look at the argument we got.  We use all the common list separators.
5605       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5606       for pkg in $enableval; do
5607         IFS="$lt_save_ifs"
5608         if test "X$pkg" = "X$p"; then
5609           enable_fast_install=yes
5610         fi
5611       done
5612       IFS="$lt_save_ifs"
5613       ;;
5614     esac
5615 else
5616   enable_fast_install=yes
5617 fi
5618
5619
5620 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5621 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
5622 if test "${lt_cv_path_SED+set}" = set; then
5623   echo $ECHO_N "(cached) $ECHO_C" >&6
5624 else
5625   # Loop through the user's path and test for sed and gsed.
5626 # Then use that list of sed's as ones to test for truncation.
5627 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5628 for as_dir in $PATH
5629 do
5630   IFS=$as_save_IFS
5631   test -z "$as_dir" && as_dir=.
5632   for lt_ac_prog in sed gsed; do
5633     for ac_exec_ext in '' $ac_executable_extensions; do
5634       if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
5635         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
5636       fi
5637     done
5638   done
5639 done
5640 lt_ac_max=0
5641 lt_ac_count=0
5642 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
5643 # along with /bin/sed that truncates output.
5644 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
5645   test ! -f $lt_ac_sed && continue
5646   cat /dev/null > conftest.in
5647   lt_ac_count=0
5648   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
5649   # Check for GNU sed and select it if it is found.
5650   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
5651     lt_cv_path_SED=$lt_ac_sed
5652     break
5653   fi
5654   while true; do
5655     cat conftest.in conftest.in >conftest.tmp
5656     mv conftest.tmp conftest.in
5657     cp conftest.in conftest.nl
5658     echo >>conftest.nl
5659     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
5660     cmp -s conftest.out conftest.nl || break
5661     # 10000 chars as input seems more than enough
5662     test $lt_ac_count -gt 10 && break
5663     lt_ac_count=`expr $lt_ac_count + 1`
5664     if test $lt_ac_count -gt $lt_ac_max; then
5665       lt_ac_max=$lt_ac_count
5666       lt_cv_path_SED=$lt_ac_sed
5667     fi
5668   done
5669 done
5670
5671 fi
5672
5673 SED=$lt_cv_path_SED
5674 { echo "$as_me:$LINENO: result: $SED" >&5
5675 echo "${ECHO_T}$SED" >&6; }
5676
5677 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
5678 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
5679 if test "${ac_cv_path_GREP+set}" = set; then
5680   echo $ECHO_N "(cached) $ECHO_C" >&6
5681 else
5682   # Extract the first word of "grep ggrep" to use in msg output
5683 if test -z "$GREP"; then
5684 set dummy grep ggrep; ac_prog_name=$2
5685 if test "${ac_cv_path_GREP+set}" = set; then
5686   echo $ECHO_N "(cached) $ECHO_C" >&6
5687 else
5688   ac_path_GREP_found=false
5689 # Loop through the user's path and test for each of PROGNAME-LIST
5690 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5691 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5692 do
5693   IFS=$as_save_IFS
5694   test -z "$as_dir" && as_dir=.
5695   for ac_prog in grep ggrep; do
5696   for ac_exec_ext in '' $ac_executable_extensions; do
5697     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5698     { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5699     # Check for GNU ac_path_GREP and select it if it is found.
5700   # Check for GNU $ac_path_GREP
5701 case `"$ac_path_GREP" --version 2>&1` in
5702 *GNU*)
5703   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5704 *)
5705   ac_count=0
5706   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5707   while :
5708   do
5709     cat "conftest.in" "conftest.in" >"conftest.tmp"
5710     mv "conftest.tmp" "conftest.in"
5711     cp "conftest.in" "conftest.nl"
5712     echo 'GREP' >> "conftest.nl"
5713     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5714     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5715     ac_count=`expr $ac_count + 1`
5716     if test $ac_count -gt ${ac_path_GREP_max-0}; then
5717       # Best one so far, save it but keep looking for a better one
5718       ac_cv_path_GREP="$ac_path_GREP"
5719       ac_path_GREP_max=$ac_count
5720     fi
5721     # 10*(2^10) chars as input seems more than enough
5722     test $ac_count -gt 10 && break
5723   done
5724   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5725 esac
5726
5727
5728     $ac_path_GREP_found && break 3
5729   done
5730 done
5731
5732 done
5733 IFS=$as_save_IFS
5734
5735
5736 fi
5737
5738 GREP="$ac_cv_path_GREP"
5739 if test -z "$GREP"; then
5740   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5741 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5742    { (exit 1); exit 1; }; }
5743 fi
5744
5745 else
5746   ac_cv_path_GREP=$GREP
5747 fi
5748
5749
5750 fi
5751 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
5752 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
5753  GREP="$ac_cv_path_GREP"
5754
5755
5756 { echo "$as_me:$LINENO: checking for egrep" >&5
5757 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
5758 if test "${ac_cv_path_EGREP+set}" = set; then
5759   echo $ECHO_N "(cached) $ECHO_C" >&6
5760 else
5761   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5762    then ac_cv_path_EGREP="$GREP -E"
5763    else
5764      # Extract the first word of "egrep" to use in msg output
5765 if test -z "$EGREP"; then
5766 set dummy egrep; ac_prog_name=$2
5767 if test "${ac_cv_path_EGREP+set}" = set; then
5768   echo $ECHO_N "(cached) $ECHO_C" >&6
5769 else
5770   ac_path_EGREP_found=false
5771 # Loop through the user's path and test for each of PROGNAME-LIST
5772 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5773 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5774 do
5775   IFS=$as_save_IFS
5776   test -z "$as_dir" && as_dir=.
5777   for ac_prog in egrep; do
5778   for ac_exec_ext in '' $ac_executable_extensions; do
5779     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5780     { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5781     # Check for GNU ac_path_EGREP and select it if it is found.
5782   # Check for GNU $ac_path_EGREP
5783 case `"$ac_path_EGREP" --version 2>&1` in
5784 *GNU*)
5785   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5786 *)
5787   ac_count=0
5788   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5789   while :
5790   do
5791     cat "conftest.in" "conftest.in" >"conftest.tmp"
5792     mv "conftest.tmp" "conftest.in"
5793     cp "conftest.in" "conftest.nl"
5794     echo 'EGREP' >> "conftest.nl"
5795     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5796     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5797     ac_count=`expr $ac_count + 1`
5798     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5799       # Best one so far, save it but keep looking for a better one
5800       ac_cv_path_EGREP="$ac_path_EGREP"
5801       ac_path_EGREP_max=$ac_count
5802     fi
5803     # 10*(2^10) chars as input seems more than enough
5804     test $ac_count -gt 10 && break
5805   done
5806   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5807 esac
5808
5809
5810     $ac_path_EGREP_found && break 3
5811   done
5812 done
5813
5814 done
5815 IFS=$as_save_IFS
5816
5817
5818 fi
5819
5820 EGREP="$ac_cv_path_EGREP"
5821 if test -z "$EGREP"; then
5822   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5823 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5824    { (exit 1); exit 1; }; }
5825 fi
5826
5827 else
5828   ac_cv_path_EGREP=$EGREP
5829 fi
5830
5831
5832    fi
5833 fi
5834 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
5835 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
5836  EGREP="$ac_cv_path_EGREP"
5837
5838
5839
5840 # Check whether --with-gnu-ld was given.
5841 if test "${with_gnu_ld+set}" = set; then
5842   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5843 else
5844   with_gnu_ld=no
5845 fi
5846
5847 ac_prog=ld
5848 if test "$GCC" = yes; then
5849   # Check if gcc -print-prog-name=ld gives a path.
5850   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5851 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
5852   case $host in
5853   *-*-mingw*)
5854     # gcc leaves a trailing carriage return which upsets mingw
5855     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5856   *)
5857     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5858   esac
5859   case $ac_prog in
5860     # Accept absolute paths.
5861     [\\/]* | ?:[\\/]*)
5862       re_direlt='/[^/][^/]*/\.\./'
5863       # Canonicalize the pathname of ld
5864       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
5865       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5866         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
5867       done
5868       test -z "$LD" && LD="$ac_prog"
5869       ;;
5870   "")
5871     # If it fails, then pretend we aren't using GCC.
5872     ac_prog=ld
5873     ;;
5874   *)
5875     # If it is relative, then search for the first ld in PATH.
5876     with_gnu_ld=unknown
5877     ;;
5878   esac
5879 elif test "$with_gnu_ld" = yes; then
5880   { echo "$as_me:$LINENO: checking for GNU ld" >&5
5881 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
5882 else
5883   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5884 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
5885 fi
5886 if test "${lt_cv_path_LD+set}" = set; then
5887   echo $ECHO_N "(cached) $ECHO_C" >&6
5888 else
5889   if test -z "$LD"; then
5890   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5891   for ac_dir in $PATH; do
5892     IFS="$lt_save_ifs"
5893     test -z "$ac_dir" && ac_dir=.
5894     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5895       lt_cv_path_LD="$ac_dir/$ac_prog"
5896       # Check to see if the program is GNU ld.  I'd rather use --version,
5897       # but apparently some variants of GNU ld only accept -v.
5898       # Break only if it was the GNU/non-GNU ld that we prefer.
5899       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5900       *GNU* | *'with BFD'*)
5901         test "$with_gnu_ld" != no && break
5902         ;;
5903       *)
5904         test "$with_gnu_ld" != yes && break
5905         ;;
5906       esac
5907     fi
5908   done
5909   IFS="$lt_save_ifs"
5910 else
5911   lt_cv_path_LD="$LD" # Let the user override the test with a path.
5912 fi
5913 fi
5914
5915 LD="$lt_cv_path_LD"
5916 if test -n "$LD"; then
5917   { echo "$as_me:$LINENO: result: $LD" >&5
5918 echo "${ECHO_T}$LD" >&6; }
5919 else
5920   { echo "$as_me:$LINENO: result: no" >&5
5921 echo "${ECHO_T}no" >&6; }
5922 fi
5923 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5924 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5925    { (exit 1); exit 1; }; }
5926 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5927 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
5928 if test "${lt_cv_prog_gnu_ld+set}" = set; then
5929   echo $ECHO_N "(cached) $ECHO_C" >&6
5930 else
5931   # I'd rather use --version here, but apparently some GNU lds only accept -v.
5932 case `$LD -v 2>&1 </dev/null` in
5933 *GNU* | *'with BFD'*)
5934   lt_cv_prog_gnu_ld=yes
5935   ;;
5936 *)
5937   lt_cv_prog_gnu_ld=no
5938   ;;
5939 esac
5940 fi
5941 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5942 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
5943 with_gnu_ld=$lt_cv_prog_gnu_ld
5944
5945
5946 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5947 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
5948 if test "${lt_cv_ld_reload_flag+set}" = set; then
5949   echo $ECHO_N "(cached) $ECHO_C" >&6
5950 else
5951   lt_cv_ld_reload_flag='-r'
5952 fi
5953 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5954 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
5955 reload_flag=$lt_cv_ld_reload_flag
5956 case $reload_flag in
5957 "" | " "*) ;;
5958 *) reload_flag=" $reload_flag" ;;
5959 esac
5960 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5961 case $host_os in
5962   darwin*)
5963     if test "$GCC" = yes; then
5964       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5965     else
5966       reload_cmds='$LD$reload_flag -o $output$reload_objs'
5967     fi
5968     ;;
5969 esac
5970
5971 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5972 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
5973 if test "${lt_cv_path_NM+set}" = set; then
5974   echo $ECHO_N "(cached) $ECHO_C" >&6
5975 else
5976   if test -n "$NM"; then
5977   # Let the user override the test.
5978   lt_cv_path_NM="$NM"
5979 else
5980   lt_nm_to_check="${ac_tool_prefix}nm"
5981   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5982     lt_nm_to_check="$lt_nm_to_check nm"
5983   fi
5984   for lt_tmp_nm in $lt_nm_to_check; do
5985     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5986     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5987       IFS="$lt_save_ifs"
5988       test -z "$ac_dir" && ac_dir=.
5989       tmp_nm="$ac_dir/$lt_tmp_nm"
5990       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5991         # Check to see if the nm accepts a BSD-compat flag.
5992         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5993         #   nm: unknown option "B" ignored
5994         # Tru64's nm complains that /dev/null is an invalid object file
5995         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5996         */dev/null* | *'Invalid file or object type'*)
5997           lt_cv_path_NM="$tmp_nm -B"
5998           break
5999           ;;
6000         *)
6001           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6002           */dev/null*)
6003             lt_cv_path_NM="$tmp_nm -p"
6004             break
6005             ;;
6006           *)
6007             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6008             continue # so that we can try to find one that supports BSD flags
6009             ;;
6010           esac
6011           ;;
6012         esac
6013       fi
6014     done
6015     IFS="$lt_save_ifs"
6016   done
6017   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6018 fi
6019 fi
6020 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6021 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
6022 NM="$lt_cv_path_NM"
6023
6024 { echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
6025 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
6026 if test "${lt_cv_deplibs_check_method+set}" = set; then
6027   echo $ECHO_N "(cached) $ECHO_C" >&6
6028 else
6029   lt_cv_file_magic_cmd='$MAGIC_CMD'
6030 lt_cv_file_magic_test_file=
6031 lt_cv_deplibs_check_method='unknown'
6032 # Need to set the preceding variable on all platforms that support
6033 # interlibrary dependencies.
6034 # 'none' -- dependencies not supported.
6035 # `unknown' -- same as none, but documents that we really don't know.
6036 # 'pass_all' -- all dependencies passed with no checks.
6037 # 'test_compile' -- check by making test program.
6038 # 'file_magic [[regex]]' -- check by looking for files in library path
6039 # which responds to the $file_magic_cmd with a given extended regex.
6040 # If you have `file' or equivalent on your system and you're not sure
6041 # whether `pass_all' will *always* work, you probably want this one.
6042
6043 case $host_os in
6044 aix4* | aix5*)
6045   lt_cv_deplibs_check_method=pass_all
6046   ;;
6047
6048 beos*)
6049   lt_cv_deplibs_check_method=pass_all
6050   ;;
6051
6052 bsdi[45]*)
6053   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6054   lt_cv_file_magic_cmd='/usr/bin/file -L'
6055   lt_cv_file_magic_test_file=/shlib/libc.so
6056   ;;
6057
6058 cygwin*)
6059   # func_win32_libid is a shell function defined in ltmain.sh
6060   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6061   lt_cv_file_magic_cmd='func_win32_libid'
6062   ;;
6063
6064 mingw* | pw32*)
6065   # Base MSYS/MinGW do not provide the 'file' command needed by
6066   # func_win32_libid shell function, so use a weaker test based on 'objdump'.
6067   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6068   lt_cv_file_magic_cmd='$OBJDUMP -f'
6069   ;;
6070
6071 darwin* | rhapsody*)
6072   lt_cv_deplibs_check_method=pass_all
6073   ;;
6074
6075 freebsd* | dragonfly*)
6076   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
6077     case $host_cpu in
6078     i*86 )
6079       # Not sure whether the presence of OpenBSD here was a mistake.
6080       # Let's accept both of them until this is cleared up.
6081       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6082       lt_cv_file_magic_cmd=/usr/bin/file
6083       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6084       ;;
6085     esac
6086   else
6087     lt_cv_deplibs_check_method=pass_all
6088   fi
6089   ;;
6090
6091 gnu*)
6092   lt_cv_deplibs_check_method=pass_all
6093   ;;
6094
6095 hpux10.20* | hpux11*)
6096   lt_cv_file_magic_cmd=/usr/bin/file
6097   case $host_cpu in
6098   ia64*)
6099     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6100     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6101     ;;
6102   hppa*64*)
6103     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
6104     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6105     ;;
6106   *)
6107     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
6108     lt_cv_file_magic_test_file=/usr/lib/libc.sl
6109     ;;
6110   esac
6111   ;;
6112
6113 interix3*)
6114   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6115   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6116   ;;
6117
6118 irix5* | irix6* | nonstopux*)
6119   case $LD in
6120   *-32|*"-32 ") libmagic=32-bit;;
6121   *-n32|*"-n32 ") libmagic=N32;;
6122   *-64|*"-64 ") libmagic=64-bit;;
6123   *) libmagic=never-match;;
6124   esac
6125   lt_cv_deplibs_check_method=pass_all
6126   ;;
6127
6128 # This must be Linux ELF.
6129 linux* | k*bsd*-gnu)
6130   lt_cv_deplibs_check_method=pass_all
6131   ;;
6132
6133 netbsd* | netbsdelf*-gnu)
6134   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
6135     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6136   else
6137     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6138   fi
6139   ;;
6140
6141 newos6*)
6142   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6143   lt_cv_file_magic_cmd=/usr/bin/file
6144   lt_cv_file_magic_test_file=/usr/lib/libnls.so
6145   ;;
6146
6147 nto-qnx*)
6148   lt_cv_deplibs_check_method=unknown
6149   ;;
6150
6151 openbsd*)
6152   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6153     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6154   else
6155     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6156   fi
6157   ;;
6158
6159 osf3* | osf4* | osf5*)
6160   lt_cv_deplibs_check_method=pass_all
6161   ;;
6162
6163 solaris*)
6164   lt_cv_deplibs_check_method=pass_all
6165   ;;
6166
6167 sysv4 | sysv4.3*)
6168   case $host_vendor in
6169   motorola)
6170     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
6171     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6172     ;;
6173   ncr)
6174     lt_cv_deplibs_check_method=pass_all
6175     ;;
6176   sequent)
6177     lt_cv_file_magic_cmd='/bin/file'
6178     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6179     ;;
6180   sni)
6181     lt_cv_file_magic_cmd='/bin/file'
6182     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6183     lt_cv_file_magic_test_file=/lib/libc.so
6184     ;;
6185   siemens)
6186     lt_cv_deplibs_check_method=pass_all
6187     ;;
6188   pc)
6189     lt_cv_deplibs_check_method=pass_all
6190     ;;
6191   esac
6192   ;;
6193
6194 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6195   lt_cv_deplibs_check_method=pass_all
6196   ;;
6197 esac
6198
6199 fi
6200 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
6201 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
6202 file_magic_cmd=$lt_cv_file_magic_cmd
6203 deplibs_check_method=$lt_cv_deplibs_check_method
6204 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6205
6206
6207
6208
6209 # If no C compiler was specified, use CC.
6210 LTCC=${LTCC-"$CC"}
6211
6212 # If no C compiler flags were specified, use CFLAGS.
6213 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6214
6215 # Allow CC to be a program name with arguments.
6216 compiler=$CC
6217
6218 # Check whether --enable-libtool-lock was given.
6219 if test "${enable_libtool_lock+set}" = set; then
6220   enableval=$enable_libtool_lock;
6221 fi
6222
6223 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6224
6225 # Some flags need to be propagated to the compiler or linker for good
6226 # libtool support.
6227 case $host in
6228 ia64-*-hpux*)
6229   # Find out which ABI we are using.
6230   echo 'int i;' > conftest.$ac_ext
6231   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6232   (eval $ac_compile) 2>&5
6233   ac_status=$?
6234   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6235   (exit $ac_status); }; then
6236     case `/usr/bin/file conftest.$ac_objext` in
6237     *ELF-32*)
6238       HPUX_IA64_MODE="32"
6239       ;;
6240     *ELF-64*)
6241       HPUX_IA64_MODE="64"
6242       ;;
6243     esac
6244   fi
6245   rm -rf conftest*
6246   ;;
6247 *-*-irix6*)
6248   # Find out which ABI we are using.
6249   echo '#line 6249 "configure"' > conftest.$ac_ext
6250   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6251   (eval $ac_compile) 2>&5
6252   ac_status=$?
6253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6254   (exit $ac_status); }; then
6255    if test "$lt_cv_prog_gnu_ld" = yes; then
6256     case `/usr/bin/file conftest.$ac_objext` in
6257     *32-bit*)
6258       LD="${LD-ld} -melf32bsmip"
6259       ;;
6260     *N32*)
6261       LD="${LD-ld} -melf32bmipn32"
6262       ;;
6263     *64-bit*)
6264       LD="${LD-ld} -melf64bmip"
6265       ;;
6266     esac
6267    else
6268     case `/usr/bin/file conftest.$ac_objext` in
6269     *32-bit*)
6270       LD="${LD-ld} -32"
6271       ;;
6272     *N32*)
6273       LD="${LD-ld} -n32"
6274       ;;
6275     *64-bit*)
6276       LD="${LD-ld} -64"
6277       ;;
6278     esac
6279    fi
6280   fi
6281   rm -rf conftest*
6282   ;;
6283
6284 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
6285   # Find out which ABI we are using.
6286   echo 'int i;' > conftest.$ac_ext
6287   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6288   (eval $ac_compile) 2>&5
6289   ac_status=$?
6290   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6291   (exit $ac_status); }; then
6292     case `/usr/bin/file conftest.o` in
6293     *32-bit*)
6294       case $host in
6295         x86_64-*linux*)
6296           LD="${LD-ld} -m elf_i386"
6297           ;;
6298         ppc64-*linux*|powerpc64-*linux*)
6299           LD="${LD-ld} -m elf32ppclinux"
6300           ;;
6301         s390x-*linux*)
6302           LD="${LD-ld} -m elf_s390"
6303           ;;
6304         sparc64-*linux*)
6305           LD="${LD-ld} -m elf32_sparc"
6306           ;;
6307       esac
6308       ;;
6309     *64-bit*)
6310       case $host in
6311         x86_64-*linux*)
6312           LD="${LD-ld} -m elf_x86_64"
6313           ;;
6314         ppc*-*linux*|powerpc*-*linux*)
6315           LD="${LD-ld} -m elf64ppc"
6316           ;;
6317         s390*-*linux*)
6318           LD="${LD-ld} -m elf64_s390"
6319           ;;
6320         sparc*-*linux*)
6321           LD="${LD-ld} -m elf64_sparc"
6322           ;;
6323       esac
6324       ;;
6325     esac
6326   fi
6327   rm -rf conftest*
6328   ;;
6329
6330 *-*-sco3.2v5*)
6331   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6332   SAVE_CFLAGS="$CFLAGS"
6333   CFLAGS="$CFLAGS -belf"
6334   { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
6335 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
6336 if test "${lt_cv_cc_needs_belf+set}" = set; then
6337   echo $ECHO_N "(cached) $ECHO_C" >&6
6338 else
6339   ac_ext=c
6340 ac_cpp='$CPP $CPPFLAGS'
6341 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6342 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6343 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6344
6345      cat >conftest.$ac_ext <<_ACEOF
6346 /* confdefs.h.  */
6347 _ACEOF
6348 cat confdefs.h >>conftest.$ac_ext
6349 cat >>conftest.$ac_ext <<_ACEOF
6350 /* end confdefs.h.  */
6351
6352 int
6353 main ()
6354 {
6355
6356   ;
6357   return 0;
6358 }
6359 _ACEOF
6360 rm -f conftest.$ac_objext conftest$ac_exeext
6361 if { (ac_try="$ac_link"
6362 case "(($ac_try" in
6363   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6364   *) ac_try_echo=$ac_try;;
6365 esac
6366 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6367   (eval "$ac_link") 2>conftest.er1
6368   ac_status=$?
6369   grep -v '^ *+' conftest.er1 >conftest.err
6370   rm -f conftest.er1
6371   cat conftest.err >&5
6372   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6373   (exit $ac_status); } && {
6374          test -z "$ac_c_werror_flag" ||
6375          test ! -s conftest.err
6376        } && test -s conftest$ac_exeext &&
6377        $as_test_x conftest$ac_exeext; then
6378   lt_cv_cc_needs_belf=yes
6379 else
6380   echo "$as_me: failed program was:" >&5
6381 sed 's/^/| /' conftest.$ac_ext >&5
6382
6383         lt_cv_cc_needs_belf=no
6384 fi
6385
6386 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6387       conftest$ac_exeext conftest.$ac_ext
6388      ac_ext=c
6389 ac_cpp='$CPP $CPPFLAGS'
6390 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6391 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6392 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6393
6394 fi
6395 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
6396 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
6397   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6398     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6399     CFLAGS="$SAVE_CFLAGS"
6400   fi
6401   ;;
6402 sparc*-*solaris*)
6403   # Find out which ABI we are using.
6404   echo 'int i;' > conftest.$ac_ext
6405   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6406   (eval $ac_compile) 2>&5
6407   ac_status=$?
6408   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6409   (exit $ac_status); }; then
6410     case `/usr/bin/file conftest.o` in
6411     *64-bit*)
6412       case $lt_cv_prog_gnu_ld in
6413       yes*) LD="${LD-ld} -m elf64_sparc" ;;
6414       *)    LD="${LD-ld} -64" ;;
6415       esac
6416       ;;
6417     esac
6418   fi
6419   rm -rf conftest*
6420   ;;
6421
6422
6423 esac
6424
6425 need_locks="$enable_libtool_lock"
6426
6427
6428
6429 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6430 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
6431 if test "${ac_cv_header_stdc+set}" = set; then
6432   echo $ECHO_N "(cached) $ECHO_C" >&6
6433 else
6434   cat >conftest.$ac_ext <<_ACEOF
6435 /* confdefs.h.  */
6436 _ACEOF
6437 cat confdefs.h >>conftest.$ac_ext
6438 cat >>conftest.$ac_ext <<_ACEOF
6439 /* end confdefs.h.  */
6440 #include <stdlib.h>
6441 #include <stdarg.h>
6442 #include <string.h>
6443 #include <float.h>
6444
6445 int
6446 main ()
6447 {
6448
6449   ;
6450   return 0;
6451 }
6452 _ACEOF
6453 rm -f conftest.$ac_objext
6454 if { (ac_try="$ac_compile"
6455 case "(($ac_try" in
6456   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6457   *) ac_try_echo=$ac_try;;
6458 esac
6459 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6460   (eval "$ac_compile") 2>conftest.er1
6461   ac_status=$?
6462   grep -v '^ *+' conftest.er1 >conftest.err
6463   rm -f conftest.er1
6464   cat conftest.err >&5
6465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6466   (exit $ac_status); } && {
6467          test -z "$ac_c_werror_flag" ||
6468          test ! -s conftest.err
6469        } && test -s conftest.$ac_objext; then
6470   ac_cv_header_stdc=yes
6471 else
6472   echo "$as_me: failed program was:" >&5
6473 sed 's/^/| /' conftest.$ac_ext >&5
6474
6475         ac_cv_header_stdc=no
6476 fi
6477
6478 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6479
6480 if test $ac_cv_header_stdc = yes; then
6481   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6482   cat >conftest.$ac_ext <<_ACEOF
6483 /* confdefs.h.  */
6484 _ACEOF
6485 cat confdefs.h >>conftest.$ac_ext
6486 cat >>conftest.$ac_ext <<_ACEOF
6487 /* end confdefs.h.  */
6488 #include <string.h>
6489
6490 _ACEOF
6491 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6492   $EGREP "memchr" >/dev/null 2>&1; then
6493   :
6494 else
6495   ac_cv_header_stdc=no
6496 fi
6497 rm -f conftest*
6498
6499 fi
6500
6501 if test $ac_cv_header_stdc = yes; then
6502   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6503   cat >conftest.$ac_ext <<_ACEOF
6504 /* confdefs.h.  */
6505 _ACEOF
6506 cat confdefs.h >>conftest.$ac_ext
6507 cat >>conftest.$ac_ext <<_ACEOF
6508 /* end confdefs.h.  */
6509 #include <stdlib.h>
6510
6511 _ACEOF
6512 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6513   $EGREP "free" >/dev/null 2>&1; then
6514   :
6515 else
6516   ac_cv_header_stdc=no
6517 fi
6518 rm -f conftest*
6519
6520 fi
6521
6522 if test $ac_cv_header_stdc = yes; then
6523   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6524   if test "$cross_compiling" = yes; then
6525   :
6526 else
6527   cat >conftest.$ac_ext <<_ACEOF
6528 /* confdefs.h.  */
6529 _ACEOF
6530 cat confdefs.h >>conftest.$ac_ext
6531 cat >>conftest.$ac_ext <<_ACEOF
6532 /* end confdefs.h.  */
6533 #include <ctype.h>
6534 #include <stdlib.h>
6535 #if ((' ' & 0x0FF) == 0x020)
6536 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6537 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6538 #else
6539 # define ISLOWER(c) \
6540                    (('a' <= (c) && (c) <= 'i') \
6541                      || ('j' <= (c) && (c) <= 'r') \
6542                      || ('s' <= (c) && (c) <= 'z'))
6543 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6544 #endif
6545
6546 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6547 int
6548 main ()
6549 {
6550   int i;
6551   for (i = 0; i < 256; i++)
6552     if (XOR (islower (i), ISLOWER (i))
6553         || toupper (i) != TOUPPER (i))
6554       return 2;
6555   return 0;
6556 }
6557 _ACEOF
6558 rm -f conftest$ac_exeext
6559 if { (ac_try="$ac_link"
6560 case "(($ac_try" in
6561   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6562   *) ac_try_echo=$ac_try;;
6563 esac
6564 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6565   (eval "$ac_link") 2>&5
6566   ac_status=$?
6567   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6568   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6569   { (case "(($ac_try" in
6570   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6571   *) ac_try_echo=$ac_try;;
6572 esac
6573 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6574   (eval "$ac_try") 2>&5
6575   ac_status=$?
6576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6577   (exit $ac_status); }; }; then
6578   :
6579 else
6580   echo "$as_me: program exited with status $ac_status" >&5
6581 echo "$as_me: failed program was:" >&5
6582 sed 's/^/| /' conftest.$ac_ext >&5
6583
6584 ( exit $ac_status )
6585 ac_cv_header_stdc=no
6586 fi
6587 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6588 fi
6589
6590
6591 fi
6592 fi
6593 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6594 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
6595 if test $ac_cv_header_stdc = yes; then
6596
6597 cat >>confdefs.h <<\_ACEOF
6598 #define STDC_HEADERS 1
6599 _ACEOF
6600
6601 fi
6602
6603 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6604
6605
6606
6607
6608
6609
6610
6611
6612
6613 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6614                   inttypes.h stdint.h unistd.h
6615 do
6616 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6617 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6618 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6619 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6620   echo $ECHO_N "(cached) $ECHO_C" >&6
6621 else
6622   cat >conftest.$ac_ext <<_ACEOF
6623 /* confdefs.h.  */
6624 _ACEOF
6625 cat confdefs.h >>conftest.$ac_ext
6626 cat >>conftest.$ac_ext <<_ACEOF
6627 /* end confdefs.h.  */
6628 $ac_includes_default
6629
6630 #include <$ac_header>
6631 _ACEOF
6632 rm -f conftest.$ac_objext
6633 if { (ac_try="$ac_compile"
6634 case "(($ac_try" in
6635   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6636   *) ac_try_echo=$ac_try;;
6637 esac
6638 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6639   (eval "$ac_compile") 2>conftest.er1
6640   ac_status=$?
6641   grep -v '^ *+' conftest.er1 >conftest.err
6642   rm -f conftest.er1
6643   cat conftest.err >&5
6644   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6645   (exit $ac_status); } && {
6646          test -z "$ac_c_werror_flag" ||
6647          test ! -s conftest.err
6648        } && test -s conftest.$ac_objext; then
6649   eval "$as_ac_Header=yes"
6650 else
6651   echo "$as_me: failed program was:" >&5
6652 sed 's/^/| /' conftest.$ac_ext >&5
6653
6654         eval "$as_ac_Header=no"
6655 fi
6656
6657 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6658 fi
6659 ac_res=`eval echo '${'$as_ac_Header'}'`
6660                { echo "$as_me:$LINENO: result: $ac_res" >&5
6661 echo "${ECHO_T}$ac_res" >&6; }
6662 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6663   cat >>confdefs.h <<_ACEOF
6664 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6665 _ACEOF
6666
6667 fi
6668
6669 done
6670
6671
6672
6673 for ac_header in dlfcn.h
6674 do
6675 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6676 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6677   { echo "$as_me:$LINENO: checking for $ac_header" >&5
6678 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6679 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6680   echo $ECHO_N "(cached) $ECHO_C" >&6
6681 fi
6682 ac_res=`eval echo '${'$as_ac_Header'}'`
6683                { echo "$as_me:$LINENO: result: $ac_res" >&5
6684 echo "${ECHO_T}$ac_res" >&6; }
6685 else
6686   # Is the header compilable?
6687 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6688 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6689 cat >conftest.$ac_ext <<_ACEOF
6690 /* confdefs.h.  */
6691 _ACEOF
6692 cat confdefs.h >>conftest.$ac_ext
6693 cat >>conftest.$ac_ext <<_ACEOF
6694 /* end confdefs.h.  */
6695 $ac_includes_default
6696 #include <$ac_header>
6697 _ACEOF
6698 rm -f conftest.$ac_objext
6699 if { (ac_try="$ac_compile"
6700 case "(($ac_try" in
6701   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6702   *) ac_try_echo=$ac_try;;
6703 esac
6704 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6705   (eval "$ac_compile") 2>conftest.er1
6706   ac_status=$?
6707   grep -v '^ *+' conftest.er1 >conftest.err
6708   rm -f conftest.er1
6709   cat conftest.err >&5
6710   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6711   (exit $ac_status); } && {
6712          test -z "$ac_c_werror_flag" ||
6713          test ! -s conftest.err
6714        } && test -s conftest.$ac_objext; then
6715   ac_header_compiler=yes
6716 else
6717   echo "$as_me: failed program was:" >&5
6718 sed 's/^/| /' conftest.$ac_ext >&5
6719
6720         ac_header_compiler=no
6721 fi
6722
6723 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6724 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6725 echo "${ECHO_T}$ac_header_compiler" >&6; }
6726
6727 # Is the header present?
6728 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6729 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6730 cat >conftest.$ac_ext <<_ACEOF
6731 /* confdefs.h.  */
6732 _ACEOF
6733 cat confdefs.h >>conftest.$ac_ext
6734 cat >>conftest.$ac_ext <<_ACEOF
6735 /* end confdefs.h.  */
6736 #include <$ac_header>
6737 _ACEOF
6738 if { (ac_try="$ac_cpp conftest.$ac_ext"
6739 case "(($ac_try" in
6740   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6741   *) ac_try_echo=$ac_try;;
6742 esac
6743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6744   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6745   ac_status=$?
6746   grep -v '^ *+' conftest.er1 >conftest.err
6747   rm -f conftest.er1
6748   cat conftest.err >&5
6749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6750   (exit $ac_status); } >/dev/null && {
6751          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6752          test ! -s conftest.err
6753        }; then
6754   ac_header_preproc=yes
6755 else
6756   echo "$as_me: failed program was:" >&5
6757 sed 's/^/| /' conftest.$ac_ext >&5
6758
6759   ac_header_preproc=no
6760 fi
6761
6762 rm -f conftest.err conftest.$ac_ext
6763 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6764 echo "${ECHO_T}$ac_header_preproc" >&6; }
6765
6766 # So?  What about this header?
6767 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6768   yes:no: )
6769     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6770 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6771     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6772 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6773     ac_header_preproc=yes
6774     ;;
6775   no:yes:* )
6776     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6777 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6778     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6779 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6780     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6781 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6782     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6783 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6784     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6785 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6786     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6787 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6788     ( cat <<\_ASBOX
6789 ## ------------------------------- ##
6790 ## Report this to nfs@lists.sf.net ##
6791 ## ------------------------------- ##
6792 _ASBOX
6793      ) | sed "s/^/$as_me: WARNING:     /" >&2
6794     ;;
6795 esac
6796 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6797 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6798 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6799   echo $ECHO_N "(cached) $ECHO_C" >&6
6800 else
6801   eval "$as_ac_Header=\$ac_header_preproc"
6802 fi
6803 ac_res=`eval echo '${'$as_ac_Header'}'`
6804                { echo "$as_me:$LINENO: result: $ac_res" >&5
6805 echo "${ECHO_T}$ac_res" >&6; }
6806
6807 fi
6808 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6809   cat >>confdefs.h <<_ACEOF
6810 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6811 _ACEOF
6812
6813 fi
6814
6815 done
6816
6817
6818
6819 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
6820     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
6821     (test "X$CXX" != "Xg++"))) ; then
6822   ac_ext=cpp
6823 ac_cpp='$CXXCPP $CPPFLAGS'
6824 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6825 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6826 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6827 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
6828 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
6829 if test -z "$CXXCPP"; then
6830   if test "${ac_cv_prog_CXXCPP+set}" = set; then
6831   echo $ECHO_N "(cached) $ECHO_C" >&6
6832 else
6833       # Double quotes because CXXCPP needs to be expanded
6834     for CXXCPP in "$CXX -E" "/lib/cpp"
6835     do
6836       ac_preproc_ok=false
6837 for ac_cxx_preproc_warn_flag in '' yes
6838 do
6839   # Use a header file that comes with gcc, so configuring glibc
6840   # with a fresh cross-compiler works.
6841   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6842   # <limits.h> exists even on freestanding compilers.
6843   # On the NeXT, cc -E runs the code through the compiler's parser,
6844   # not just through cpp. "Syntax error" is here to catch this case.
6845   cat >conftest.$ac_ext <<_ACEOF
6846 /* confdefs.h.  */
6847 _ACEOF
6848 cat confdefs.h >>conftest.$ac_ext
6849 cat >>conftest.$ac_ext <<_ACEOF
6850 /* end confdefs.h.  */
6851 #ifdef __STDC__
6852 # include <limits.h>
6853 #else
6854 # include <assert.h>
6855 #endif
6856                      Syntax error
6857 _ACEOF
6858 if { (ac_try="$ac_cpp conftest.$ac_ext"
6859 case "(($ac_try" in
6860   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6861   *) ac_try_echo=$ac_try;;
6862 esac
6863 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6864   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6865   ac_status=$?
6866   grep -v '^ *+' conftest.er1 >conftest.err
6867   rm -f conftest.er1
6868   cat conftest.err >&5
6869   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6870   (exit $ac_status); } >/dev/null && {
6871          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6872          test ! -s conftest.err
6873        }; then
6874   :
6875 else
6876   echo "$as_me: failed program was:" >&5
6877 sed 's/^/| /' conftest.$ac_ext >&5
6878
6879   # Broken: fails on valid input.
6880 continue
6881 fi
6882
6883 rm -f conftest.err conftest.$ac_ext
6884
6885   # OK, works on sane cases.  Now check whether nonexistent headers
6886   # can be detected and how.
6887   cat >conftest.$ac_ext <<_ACEOF
6888 /* confdefs.h.  */
6889 _ACEOF
6890 cat confdefs.h >>conftest.$ac_ext
6891 cat >>conftest.$ac_ext <<_ACEOF
6892 /* end confdefs.h.  */
6893 #include <ac_nonexistent.h>
6894 _ACEOF
6895 if { (ac_try="$ac_cpp conftest.$ac_ext"
6896 case "(($ac_try" in
6897   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6898   *) ac_try_echo=$ac_try;;
6899 esac
6900 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6901   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6902   ac_status=$?
6903   grep -v '^ *+' conftest.er1 >conftest.err
6904   rm -f conftest.er1
6905   cat conftest.err >&5
6906   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6907   (exit $ac_status); } >/dev/null && {
6908          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6909          test ! -s conftest.err
6910        }; then
6911   # Broken: success on invalid input.
6912 continue
6913 else
6914   echo "$as_me: failed program was:" >&5
6915 sed 's/^/| /' conftest.$ac_ext >&5
6916
6917   # Passes both tests.
6918 ac_preproc_ok=:
6919 break
6920 fi
6921
6922 rm -f conftest.err conftest.$ac_ext
6923
6924 done
6925 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6926 rm -f conftest.err conftest.$ac_ext
6927 if $ac_preproc_ok; then
6928   break
6929 fi
6930
6931     done
6932     ac_cv_prog_CXXCPP=$CXXCPP
6933
6934 fi
6935   CXXCPP=$ac_cv_prog_CXXCPP
6936 else
6937   ac_cv_prog_CXXCPP=$CXXCPP
6938 fi
6939 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
6940 echo "${ECHO_T}$CXXCPP" >&6; }
6941 ac_preproc_ok=false
6942 for ac_cxx_preproc_warn_flag in '' yes
6943 do
6944   # Use a header file that comes with gcc, so configuring glibc
6945   # with a fresh cross-compiler works.
6946   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6947   # <limits.h> exists even on freestanding compilers.
6948   # On the NeXT, cc -E runs the code through the compiler's parser,
6949   # not just through cpp. "Syntax error" is here to catch this case.
6950   cat >conftest.$ac_ext <<_ACEOF
6951 /* confdefs.h.  */
6952 _ACEOF
6953 cat confdefs.h >>conftest.$ac_ext
6954 cat >>conftest.$ac_ext <<_ACEOF
6955 /* end confdefs.h.  */
6956 #ifdef __STDC__
6957 # include <limits.h>
6958 #else
6959 # include <assert.h>
6960 #endif
6961                      Syntax error
6962 _ACEOF
6963 if { (ac_try="$ac_cpp conftest.$ac_ext"
6964 case "(($ac_try" in
6965   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6966   *) ac_try_echo=$ac_try;;
6967 esac
6968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6969   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6970   ac_status=$?
6971   grep -v '^ *+' conftest.er1 >conftest.err
6972   rm -f conftest.er1
6973   cat conftest.err >&5
6974   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6975   (exit $ac_status); } >/dev/null && {
6976          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6977          test ! -s conftest.err
6978        }; then
6979   :
6980 else
6981   echo "$as_me: failed program was:" >&5
6982 sed 's/^/| /' conftest.$ac_ext >&5
6983
6984   # Broken: fails on valid input.
6985 continue
6986 fi
6987
6988 rm -f conftest.err conftest.$ac_ext
6989
6990   # OK, works on sane cases.  Now check whether nonexistent headers
6991   # can be detected and how.
6992   cat >conftest.$ac_ext <<_ACEOF
6993 /* confdefs.h.  */
6994 _ACEOF
6995 cat confdefs.h >>conftest.$ac_ext
6996 cat >>conftest.$ac_ext <<_ACEOF
6997 /* end confdefs.h.  */
6998 #include <ac_nonexistent.h>
6999 _ACEOF
7000 if { (ac_try="$ac_cpp conftest.$ac_ext"
7001 case "(($ac_try" in
7002   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7003   *) ac_try_echo=$ac_try;;
7004 esac
7005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7006   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7007   ac_status=$?
7008   grep -v '^ *+' conftest.er1 >conftest.err
7009   rm -f conftest.er1
7010   cat conftest.err >&5
7011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7012   (exit $ac_status); } >/dev/null && {
7013          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
7014          test ! -s conftest.err
7015        }; then
7016   # Broken: success on invalid input.
7017 continue
7018 else
7019   echo "$as_me: failed program was:" >&5
7020 sed 's/^/| /' conftest.$ac_ext >&5
7021
7022   # Passes both tests.
7023 ac_preproc_ok=:
7024 break
7025 fi
7026
7027 rm -f conftest.err conftest.$ac_ext
7028
7029 done
7030 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7031 rm -f conftest.err conftest.$ac_ext
7032 if $ac_preproc_ok; then
7033   :
7034 else
7035   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
7036 See \`config.log' for more details." >&5
7037 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
7038 See \`config.log' for more details." >&2;}
7039    { (exit 1); exit 1; }; }
7040 fi
7041
7042 ac_ext=cpp
7043 ac_cpp='$CXXCPP $CPPFLAGS'
7044 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7045 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7046 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7047
7048 fi
7049
7050
7051 ac_ext=f
7052 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
7053 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7054 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
7055 if test -n "$ac_tool_prefix"; then
7056   for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn
7057   do
7058     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7059 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7060 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7061 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7062 if test "${ac_cv_prog_F77+set}" = set; then
7063   echo $ECHO_N "(cached) $ECHO_C" >&6
7064 else
7065   if test -n "$F77"; then
7066   ac_cv_prog_F77="$F77" # Let the user override the test.
7067 else
7068 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7069 for as_dir in $PATH
7070 do
7071   IFS=$as_save_IFS
7072   test -z "$as_dir" && as_dir=.
7073   for ac_exec_ext in '' $ac_executable_extensions; do
7074   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7075     ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
7076     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7077     break 2
7078   fi
7079 done
7080 done
7081 IFS=$as_save_IFS
7082
7083 fi
7084 fi
7085 F77=$ac_cv_prog_F77
7086 if test -n "$F77"; then
7087   { echo "$as_me:$LINENO: result: $F77" >&5
7088 echo "${ECHO_T}$F77" >&6; }
7089 else
7090   { echo "$as_me:$LINENO: result: no" >&5
7091 echo "${ECHO_T}no" >&6; }
7092 fi
7093
7094
7095     test -n "$F77" && break
7096   done
7097 fi
7098 if test -z "$F77"; then
7099   ac_ct_F77=$F77
7100   for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn
7101 do
7102   # Extract the first word of "$ac_prog", so it can be a program name with args.
7103 set dummy $ac_prog; ac_word=$2
7104 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7105 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7106 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
7107   echo $ECHO_N "(cached) $ECHO_C" >&6
7108 else
7109   if test -n "$ac_ct_F77"; then
7110   ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
7111 else
7112 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7113 for as_dir in $PATH
7114 do
7115   IFS=$as_save_IFS
7116   test -z "$as_dir" && as_dir=.
7117   for ac_exec_ext in '' $ac_executable_extensions; do
7118   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7119     ac_cv_prog_ac_ct_F77="$ac_prog"
7120     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7121     break 2
7122   fi
7123 done
7124 done
7125 IFS=$as_save_IFS
7126
7127 fi
7128 fi
7129 ac_ct_F77=$ac_cv_prog_ac_ct_F77
7130 if test -n "$ac_ct_F77"; then
7131   { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
7132 echo "${ECHO_T}$ac_ct_F77" >&6; }
7133 else
7134   { echo "$as_me:$LINENO: result: no" >&5
7135 echo "${ECHO_T}no" >&6; }
7136 fi
7137
7138
7139   test -n "$ac_ct_F77" && break
7140 done
7141
7142   if test "x$ac_ct_F77" = x; then
7143     F77=""
7144   else
7145     case $cross_compiling:$ac_tool_warned in
7146 yes:)
7147 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7148 whose name does not start with the host triplet.  If you think this
7149 configuration is useful to you, please write to autoconf@gnu.org." >&5
7150 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7151 whose name does not start with the host triplet.  If you think this
7152 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7153 ac_tool_warned=yes ;;
7154 esac
7155     F77=$ac_ct_F77
7156   fi
7157 fi
7158
7159
7160 # Provide some information about the compiler.
7161 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
7162 ac_compiler=`set X $ac_compile; echo $2`
7163 { (ac_try="$ac_compiler --version >&5"
7164 case "(($ac_try" in
7165   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7166   *) ac_try_echo=$ac_try;;
7167 esac
7168 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7169   (eval "$ac_compiler --version >&5") 2>&5
7170   ac_status=$?
7171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7172   (exit $ac_status); }
7173 { (ac_try="$ac_compiler -v >&5"
7174 case "(($ac_try" in
7175   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7176   *) ac_try_echo=$ac_try;;
7177 esac
7178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7179   (eval "$ac_compiler -v >&5") 2>&5
7180   ac_status=$?
7181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7182   (exit $ac_status); }
7183 { (ac_try="$ac_compiler -V >&5"
7184 case "(($ac_try" in
7185   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7186   *) ac_try_echo=$ac_try;;
7187 esac
7188 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7189   (eval "$ac_compiler -V >&5") 2>&5
7190   ac_status=$?
7191   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7192   (exit $ac_status); }
7193 rm -f a.out
7194
7195 # If we don't use `.F' as extension, the preprocessor is not run on the
7196 # input file.  (Note that this only needs to work for GNU compilers.)
7197 ac_save_ext=$ac_ext
7198 ac_ext=F
7199 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
7200 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
7201 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
7202   echo $ECHO_N "(cached) $ECHO_C" >&6
7203 else
7204   cat >conftest.$ac_ext <<_ACEOF
7205       program main
7206 #ifndef __GNUC__
7207        choke me
7208 #endif
7209
7210       end
7211 _ACEOF
7212 rm -f conftest.$ac_objext
7213 if { (ac_try="$ac_compile"
7214 case "(($ac_try" in
7215   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7216   *) ac_try_echo=$ac_try;;
7217 esac
7218 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7219   (eval "$ac_compile") 2>conftest.er1
7220   ac_status=$?
7221   grep -v '^ *+' conftest.er1 >conftest.err
7222   rm -f conftest.er1
7223   cat conftest.err >&5
7224   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7225   (exit $ac_status); } && {
7226          test -z "$ac_f77_werror_flag" ||
7227          test ! -s conftest.err
7228        } && test -s conftest.$ac_objext; then
7229   ac_compiler_gnu=yes
7230 else
7231   echo "$as_me: failed program was:" >&5
7232 sed 's/^/| /' conftest.$ac_ext >&5
7233
7234         ac_compiler_gnu=no
7235 fi
7236
7237 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7238 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
7239
7240 fi
7241 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
7242 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
7243 ac_ext=$ac_save_ext
7244 ac_test_FFLAGS=${FFLAGS+set}
7245 ac_save_FFLAGS=$FFLAGS
7246 FFLAGS=
7247 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
7248 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
7249 if test "${ac_cv_prog_f77_g+set}" = set; then
7250   echo $ECHO_N "(cached) $ECHO_C" >&6
7251 else
7252   FFLAGS=-g
7253 cat >conftest.$ac_ext <<_ACEOF
7254       program main
7255
7256       end
7257 _ACEOF
7258 rm -f conftest.$ac_objext
7259 if { (ac_try="$ac_compile"
7260 case "(($ac_try" in
7261   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7262   *) ac_try_echo=$ac_try;;
7263 esac
7264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7265   (eval "$ac_compile") 2>conftest.er1
7266   ac_status=$?
7267   grep -v '^ *+' conftest.er1 >conftest.err
7268   rm -f conftest.er1
7269   cat conftest.err >&5
7270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7271   (exit $ac_status); } && {
7272          test -z "$ac_f77_werror_flag" ||
7273          test ! -s conftest.err
7274        } && test -s conftest.$ac_objext; then
7275   ac_cv_prog_f77_g=yes
7276 else
7277   echo "$as_me: failed program was:" >&5
7278 sed 's/^/| /' conftest.$ac_ext >&5
7279
7280         ac_cv_prog_f77_g=no
7281 fi
7282
7283 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7284
7285 fi
7286 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
7287 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
7288 if test "$ac_test_FFLAGS" = set; then
7289   FFLAGS=$ac_save_FFLAGS
7290 elif test $ac_cv_prog_f77_g = yes; then
7291   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
7292     FFLAGS="-g -O2"
7293   else
7294     FFLAGS="-g"
7295   fi
7296 else
7297   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
7298     FFLAGS="-O2"
7299   else
7300     FFLAGS=
7301   fi
7302 fi
7303
7304 G77=`test $ac_compiler_gnu = yes && echo yes`
7305 ac_ext=c
7306 ac_cpp='$CPP $CPPFLAGS'
7307 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7308 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7309 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7310
7311
7312
7313 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
7314
7315 # find the maximum length of command line arguments
7316 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
7317 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
7318 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
7319   echo $ECHO_N "(cached) $ECHO_C" >&6
7320 else
7321     i=0
7322   teststring="ABCD"
7323
7324   case $build_os in
7325   msdosdjgpp*)
7326     # On DJGPP, this test can blow up pretty badly due to problems in libc
7327     # (any single argument exceeding 2000 bytes causes a buffer overrun
7328     # during glob expansion).  Even if it were fixed, the result of this
7329     # check would be larger than it should be.
7330     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
7331     ;;
7332
7333   gnu*)
7334     # Under GNU Hurd, this test is not required because there is
7335     # no limit to the length of command line arguments.
7336     # Libtool will interpret -1 as no limit whatsoever
7337     lt_cv_sys_max_cmd_len=-1;
7338     ;;
7339
7340   cygwin* | mingw*)
7341     # On Win9x/ME, this test blows up -- it succeeds, but takes
7342     # about 5 minutes as the teststring grows exponentially.
7343     # Worse, since 9x/ME are not pre-emptively multitasking,
7344     # you end up with a "frozen" computer, even though with patience
7345     # the test eventually succeeds (with a max line length of 256k).
7346     # Instead, let's just punt: use the minimum linelength reported by
7347     # all of the supported platforms: 8192 (on NT/2K/XP).
7348     lt_cv_sys_max_cmd_len=8192;
7349     ;;
7350
7351   amigaos*)
7352     # On AmigaOS with pdksh, this test takes hours, literally.
7353     # So we just punt and use a minimum line length of 8192.
7354     lt_cv_sys_max_cmd_len=8192;
7355     ;;
7356
7357   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
7358     # This has been around since 386BSD, at least.  Likely further.
7359     if test -x /sbin/sysctl; then
7360       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7361     elif test -x /usr/sbin/sysctl; then
7362       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7363     else
7364       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
7365     fi
7366     # And add a safety zone
7367     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7368     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7369     ;;
7370
7371   interix*)
7372     # We know the value 262144 and hardcode it with a safety zone (like BSD)
7373     lt_cv_sys_max_cmd_len=196608
7374     ;;
7375
7376   osf*)
7377     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7378     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7379     # nice to cause kernel panics so lets avoid the loop below.
7380     # First set a reasonable default.
7381     lt_cv_sys_max_cmd_len=16384
7382     #
7383     if test -x /sbin/sysconfig; then
7384       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7385         *1*) lt_cv_sys_max_cmd_len=-1 ;;
7386       esac
7387     fi
7388     ;;
7389   sco3.2v5*)
7390     lt_cv_sys_max_cmd_len=102400
7391     ;;
7392   sysv5* | sco5v6* | sysv4.2uw2*)
7393     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
7394     if test -n "$kargmax"; then
7395       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
7396     else
7397       lt_cv_sys_max_cmd_len=32768
7398     fi
7399     ;;
7400   *)
7401     # If test is not a shell built-in, we'll probably end up computing a
7402     # maximum length that is only half of the actual maximum length, but
7403     # we can't tell.
7404     SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7405     while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
7406                = "XX$teststring") >/dev/null 2>&1 &&
7407             new_result=`expr "X$teststring" : ".*" 2>&1` &&
7408             lt_cv_sys_max_cmd_len=$new_result &&
7409             test $i != 17 # 1/2 MB should be enough
7410     do
7411       i=`expr $i + 1`
7412       teststring=$teststring$teststring
7413     done
7414     teststring=
7415     # Add a significant safety factor because C++ compilers can tack on massive
7416     # amounts of additional arguments before passing them to the linker.
7417     # It appears as though 1/2 is a usable value.
7418     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7419     ;;
7420   esac
7421
7422 fi
7423
7424 if test -n $lt_cv_sys_max_cmd_len ; then
7425   { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
7426 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
7427 else
7428   { echo "$as_me:$LINENO: result: none" >&5
7429 echo "${ECHO_T}none" >&6; }
7430 fi
7431
7432
7433
7434
7435 # Check for command to grab the raw symbol name followed by C symbol from nm.
7436 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
7437 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
7438 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
7439   echo $ECHO_N "(cached) $ECHO_C" >&6
7440 else
7441
7442 # These are sane defaults that work on at least a few old systems.
7443 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
7444
7445 # Character class describing NM global symbol codes.
7446 symcode='[BCDEGRST]'
7447
7448 # Regexp to match symbols that can be accessed directly from C.
7449 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7450
7451 # Transform an extracted symbol line into a proper C declaration
7452 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
7453
7454 # Transform an extracted symbol line into symbol name and symbol address
7455 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
7456
7457 # Define system-specific variables.
7458 case $host_os in
7459 aix*)
7460   symcode='[BCDT]'
7461   ;;
7462 cygwin* | mingw* | pw32*)
7463   symcode='[ABCDGISTW]'
7464   ;;
7465 hpux*) # Its linker distinguishes data from code symbols
7466   if test "$host_cpu" = ia64; then
7467     symcode='[ABCDEGRST]'
7468   fi
7469   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7470   lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
7471   ;;
7472 linux* | k*bsd*-gnu)
7473   if test "$host_cpu" = ia64; then
7474     symcode='[ABCDGIRSTW]'
7475     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7476     lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
7477   fi
7478   ;;
7479 irix* | nonstopux*)
7480   symcode='[BCDEGRST]'
7481   ;;
7482 osf*)
7483   symcode='[BCDEGQRST]'
7484   ;;
7485 solaris*)
7486   symcode='[BDRT]'
7487   ;;
7488 sco3.2v5*)
7489   symcode='[DT]'
7490   ;;
7491 sysv4.2uw2*)
7492   symcode='[DT]'
7493   ;;
7494 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7495   symcode='[ABDT]'
7496   ;;
7497 sysv4)
7498   symcode='[DFNSTU]'
7499   ;;
7500 esac
7501
7502 # Handle CRLF in mingw tool chain
7503 opt_cr=
7504 case $build_os in
7505 mingw*)
7506   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7507   ;;
7508 esac
7509
7510 # If we're using GNU nm, then use its standard symbol codes.
7511 case `$NM -V 2>&1` in
7512 *GNU* | *'with BFD'*)
7513   symcode='[ABCDGIRSTW]' ;;
7514 esac
7515
7516 # Try without a prefix undercore, then with it.
7517 for ac_symprfx in "" "_"; do
7518
7519   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7520   symxfrm="\\1 $ac_symprfx\\2 \\2"
7521
7522   # Write the raw and C identifiers.
7523   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7524
7525   # Check to see that the pipe works correctly.
7526   pipe_works=no
7527
7528   rm -f conftest*
7529   cat > conftest.$ac_ext <<EOF
7530 #ifdef __cplusplus
7531 extern "C" {
7532 #endif
7533 char nm_test_var;
7534 void nm_test_func(){}
7535 #ifdef __cplusplus
7536 }
7537 #endif
7538 int main(){nm_test_var='a';nm_test_func();return(0);}
7539 EOF
7540
7541   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7542   (eval $ac_compile) 2>&5
7543   ac_status=$?
7544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7545   (exit $ac_status); }; then
7546     # Now try to grab the symbols.
7547     nlist=conftest.nm
7548     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7549   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7550   ac_status=$?
7551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7552   (exit $ac_status); } && test -s "$nlist"; then
7553       # Try sorting and uniquifying the output.
7554       if sort "$nlist" | uniq > "$nlist"T; then
7555         mv -f "$nlist"T "$nlist"
7556       else
7557         rm -f "$nlist"T
7558       fi
7559
7560       # Make sure that we snagged all the symbols we need.
7561       if grep ' nm_test_var$' "$nlist" >/dev/null; then
7562         if grep ' nm_test_func$' "$nlist" >/dev/null; then
7563           cat <<EOF > conftest.$ac_ext
7564 #ifdef __cplusplus
7565 extern "C" {
7566 #endif
7567
7568 EOF
7569           # Now generate the symbol file.
7570           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
7571
7572           cat <<EOF >> conftest.$ac_ext
7573 #if defined (__STDC__) && __STDC__
7574 # define lt_ptr_t void *
7575 #else
7576 # define lt_ptr_t char *
7577 # define const
7578 #endif
7579
7580 /* The mapping between symbol names and symbols. */
7581 const struct {
7582   const char *name;
7583   lt_ptr_t address;
7584 }
7585 lt_preloaded_symbols[] =
7586 {
7587 EOF
7588           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
7589           cat <<\EOF >> conftest.$ac_ext
7590   {0, (lt_ptr_t) 0}
7591 };
7592
7593 #ifdef __cplusplus
7594 }
7595 #endif
7596 EOF
7597           # Now try linking the two files.
7598           mv conftest.$ac_objext conftstm.$ac_objext
7599           lt_save_LIBS="$LIBS"
7600           lt_save_CFLAGS="$CFLAGS"
7601           LIBS="conftstm.$ac_objext"
7602           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7603           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7604   (eval $ac_link) 2>&5
7605   ac_status=$?
7606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7607   (exit $ac_status); } && test -s conftest${ac_exeext}; then
7608             pipe_works=yes
7609           fi
7610           LIBS="$lt_save_LIBS"
7611           CFLAGS="$lt_save_CFLAGS"
7612         else
7613           echo "cannot find nm_test_func in $nlist" >&5
7614         fi
7615       else
7616         echo "cannot find nm_test_var in $nlist" >&5
7617       fi
7618     else
7619       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7620     fi
7621   else
7622     echo "$progname: failed program was:" >&5
7623     cat conftest.$ac_ext >&5
7624   fi
7625   rm -f conftest* conftst*
7626
7627   # Do not use the global_symbol_pipe unless it works.
7628   if test "$pipe_works" = yes; then
7629     break
7630   else
7631     lt_cv_sys_global_symbol_pipe=
7632   fi
7633 done
7634
7635 fi
7636
7637 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7638   lt_cv_sys_global_symbol_to_cdecl=
7639 fi
7640 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7641   { echo "$as_me:$LINENO: result: failed" >&5
7642 echo "${ECHO_T}failed" >&6; }
7643 else
7644   { echo "$as_me:$LINENO: result: ok" >&5
7645 echo "${ECHO_T}ok" >&6; }
7646 fi
7647
7648 { echo "$as_me:$LINENO: checking for objdir" >&5
7649 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
7650 if test "${lt_cv_objdir+set}" = set; then
7651   echo $ECHO_N "(cached) $ECHO_C" >&6
7652 else
7653   rm -f .libs 2>/dev/null
7654 mkdir .libs 2>/dev/null
7655 if test -d .libs; then
7656   lt_cv_objdir=.libs
7657 else
7658   # MS-DOS does not allow filenames that begin with a dot.
7659   lt_cv_objdir=_libs
7660 fi
7661 rmdir .libs 2>/dev/null
7662 fi
7663 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7664 echo "${ECHO_T}$lt_cv_objdir" >&6; }
7665 objdir=$lt_cv_objdir
7666
7667
7668
7669
7670
7671 case $host_os in
7672 aix3*)
7673   # AIX sometimes has problems with the GCC collect2 program.  For some
7674   # reason, if we set the COLLECT_NAMES environment variable, the problems
7675   # vanish in a puff of smoke.
7676   if test "X${COLLECT_NAMES+set}" != Xset; then
7677     COLLECT_NAMES=
7678     export COLLECT_NAMES
7679   fi
7680   ;;
7681 esac
7682
7683 # Sed substitution that helps us do robust quoting.  It backslashifies
7684 # metacharacters that are still active within double-quoted strings.
7685 Xsed='sed -e 1s/^X//'
7686 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
7687
7688 # Same as above, but do not quote variable references.
7689 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
7690
7691 # Sed substitution to delay expansion of an escaped shell variable in a
7692 # double_quote_subst'ed string.
7693 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7694
7695 # Sed substitution to avoid accidental globbing in evaled expressions
7696 no_glob_subst='s/\*/\\\*/g'
7697
7698 # Constants:
7699 rm="rm -f"
7700
7701 # Global variables:
7702 default_ofile=libtool
7703 can_build_shared=yes
7704
7705 # All known linkers require a `.a' archive for static linking (except MSVC,
7706 # which needs '.lib').
7707 libext=a
7708 ltmain="$ac_aux_dir/ltmain.sh"
7709 ofile="$default_ofile"
7710 with_gnu_ld="$lt_cv_prog_gnu_ld"
7711
7712 if test -n "$ac_tool_prefix"; then
7713   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7714 set dummy ${ac_tool_prefix}ar; ac_word=$2
7715 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7716 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7717 if test "${ac_cv_prog_AR+set}" = set; then
7718   echo $ECHO_N "(cached) $ECHO_C" >&6
7719 else
7720   if test -n "$AR"; then
7721   ac_cv_prog_AR="$AR" # Let the user override the test.
7722 else
7723 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7724 for as_dir in $PATH
7725 do
7726   IFS=$as_save_IFS
7727   test -z "$as_dir" && as_dir=.
7728   for ac_exec_ext in '' $ac_executable_extensions; do
7729   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7730     ac_cv_prog_AR="${ac_tool_prefix}ar"
7731     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7732     break 2
7733   fi
7734 done
7735 done
7736 IFS=$as_save_IFS
7737
7738 fi
7739 fi
7740 AR=$ac_cv_prog_AR
7741 if test -n "$AR"; then
7742   { echo "$as_me:$LINENO: result: $AR" >&5
7743 echo "${ECHO_T}$AR" >&6; }
7744 else
7745   { echo "$as_me:$LINENO: result: no" >&5
7746 echo "${ECHO_T}no" >&6; }
7747 fi
7748
7749
7750 fi
7751 if test -z "$ac_cv_prog_AR"; then
7752   ac_ct_AR=$AR
7753   # Extract the first word of "ar", so it can be a program name with args.
7754 set dummy ar; ac_word=$2
7755 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7756 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7757 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7758   echo $ECHO_N "(cached) $ECHO_C" >&6
7759 else
7760   if test -n "$ac_ct_AR"; then
7761   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7762 else
7763 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7764 for as_dir in $PATH
7765 do
7766   IFS=$as_save_IFS
7767   test -z "$as_dir" && as_dir=.
7768   for ac_exec_ext in '' $ac_executable_extensions; do
7769   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7770     ac_cv_prog_ac_ct_AR="ar"
7771     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7772     break 2
7773   fi
7774 done
7775 done
7776 IFS=$as_save_IFS
7777
7778 fi
7779 fi
7780 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7781 if test -n "$ac_ct_AR"; then
7782   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7783 echo "${ECHO_T}$ac_ct_AR" >&6; }
7784 else
7785   { echo "$as_me:$LINENO: result: no" >&5
7786 echo "${ECHO_T}no" >&6; }
7787 fi
7788
7789   if test "x$ac_ct_AR" = x; then
7790     AR="false"
7791   else
7792     case $cross_compiling:$ac_tool_warned in
7793 yes:)
7794 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7795 whose name does not start with the host triplet.  If you think this
7796 configuration is useful to you, please write to autoconf@gnu.org." >&5
7797 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7798 whose name does not start with the host triplet.  If you think this
7799 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7800 ac_tool_warned=yes ;;
7801 esac
7802     AR=$ac_ct_AR
7803   fi
7804 else
7805   AR="$ac_cv_prog_AR"
7806 fi
7807
7808 if test -n "$ac_tool_prefix"; then
7809   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7810 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7811 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7812 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7813 if test "${ac_cv_prog_RANLIB+set}" = set; then
7814   echo $ECHO_N "(cached) $ECHO_C" >&6
7815 else
7816   if test -n "$RANLIB"; then
7817   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7818 else
7819 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7820 for as_dir in $PATH
7821 do
7822   IFS=$as_save_IFS
7823   test -z "$as_dir" && as_dir=.
7824   for ac_exec_ext in '' $ac_executable_extensions; do
7825   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7826     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7827     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7828     break 2
7829   fi
7830 done
7831 done
7832 IFS=$as_save_IFS
7833
7834 fi
7835 fi
7836 RANLIB=$ac_cv_prog_RANLIB
7837 if test -n "$RANLIB"; then
7838   { echo "$as_me:$LINENO: result: $RANLIB" >&5
7839 echo "${ECHO_T}$RANLIB" >&6; }
7840 else
7841   { echo "$as_me:$LINENO: result: no" >&5
7842 echo "${ECHO_T}no" >&6; }
7843 fi
7844
7845
7846 fi
7847 if test -z "$ac_cv_prog_RANLIB"; then
7848   ac_ct_RANLIB=$RANLIB
7849   # Extract the first word of "ranlib", so it can be a program name with args.
7850 set dummy ranlib; ac_word=$2
7851 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7852 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7853 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7854   echo $ECHO_N "(cached) $ECHO_C" >&6
7855 else
7856   if test -n "$ac_ct_RANLIB"; then
7857   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7858 else
7859 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7860 for as_dir in $PATH
7861 do
7862   IFS=$as_save_IFS
7863   test -z "$as_dir" && as_dir=.
7864   for ac_exec_ext in '' $ac_executable_extensions; do
7865   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7866     ac_cv_prog_ac_ct_RANLIB="ranlib"
7867     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7868     break 2
7869   fi
7870 done
7871 done
7872 IFS=$as_save_IFS
7873
7874 fi
7875 fi
7876 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7877 if test -n "$ac_ct_RANLIB"; then
7878   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7879 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
7880 else
7881   { echo "$as_me:$LINENO: result: no" >&5
7882 echo "${ECHO_T}no" >&6; }
7883 fi
7884
7885   if test "x$ac_ct_RANLIB" = x; then
7886     RANLIB=":"
7887   else
7888     case $cross_compiling:$ac_tool_warned in
7889 yes:)
7890 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7891 whose name does not start with the host triplet.  If you think this
7892 configuration is useful to you, please write to autoconf@gnu.org." >&5
7893 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7894 whose name does not start with the host triplet.  If you think this
7895 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7896 ac_tool_warned=yes ;;
7897 esac
7898     RANLIB=$ac_ct_RANLIB
7899   fi
7900 else
7901   RANLIB="$ac_cv_prog_RANLIB"
7902 fi
7903
7904 if test -n "$ac_tool_prefix"; then
7905   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7906 set dummy ${ac_tool_prefix}strip; ac_word=$2
7907 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7908 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7909 if test "${ac_cv_prog_STRIP+set}" = set; then
7910   echo $ECHO_N "(cached) $ECHO_C" >&6
7911 else
7912   if test -n "$STRIP"; then
7913   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7914 else
7915 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7916 for as_dir in $PATH
7917 do
7918   IFS=$as_save_IFS
7919   test -z "$as_dir" && as_dir=.
7920   for ac_exec_ext in '' $ac_executable_extensions; do
7921   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7922     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7923     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7924     break 2
7925   fi
7926 done
7927 done
7928 IFS=$as_save_IFS
7929
7930 fi
7931 fi
7932 STRIP=$ac_cv_prog_STRIP
7933 if test -n "$STRIP"; then
7934   { echo "$as_me:$LINENO: result: $STRIP" >&5
7935 echo "${ECHO_T}$STRIP" >&6; }
7936 else
7937   { echo "$as_me:$LINENO: result: no" >&5
7938 echo "${ECHO_T}no" >&6; }
7939 fi
7940
7941
7942 fi
7943 if test -z "$ac_cv_prog_STRIP"; then
7944   ac_ct_STRIP=$STRIP
7945   # Extract the first word of "strip", so it can be a program name with args.
7946 set dummy strip; ac_word=$2
7947 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7948 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7949 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
7950   echo $ECHO_N "(cached) $ECHO_C" >&6
7951 else
7952   if test -n "$ac_ct_STRIP"; then
7953   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7954 else
7955 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7956 for as_dir in $PATH
7957 do
7958   IFS=$as_save_IFS
7959   test -z "$as_dir" && as_dir=.
7960   for ac_exec_ext in '' $ac_executable_extensions; do
7961   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7962     ac_cv_prog_ac_ct_STRIP="strip"
7963     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7964     break 2
7965   fi
7966 done
7967 done
7968 IFS=$as_save_IFS
7969
7970 fi
7971 fi
7972 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7973 if test -n "$ac_ct_STRIP"; then
7974   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
7975 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
7976 else
7977   { echo "$as_me:$LINENO: result: no" >&5
7978 echo "${ECHO_T}no" >&6; }
7979 fi
7980
7981   if test "x$ac_ct_STRIP" = x; then
7982     STRIP=":"
7983   else
7984     case $cross_compiling:$ac_tool_warned in
7985 yes:)
7986 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7987 whose name does not start with the host triplet.  If you think this
7988 configuration is useful to you, please write to autoconf@gnu.org." >&5
7989 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7990 whose name does not start with the host triplet.  If you think this
7991 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7992 ac_tool_warned=yes ;;
7993 esac
7994     STRIP=$ac_ct_STRIP
7995   fi
7996 else
7997   STRIP="$ac_cv_prog_STRIP"
7998 fi
7999
8000
8001 old_CC="$CC"
8002 old_CFLAGS="$CFLAGS"
8003
8004 # Set sane defaults for various variables
8005 test -z "$AR" && AR=ar
8006 test -z "$AR_FLAGS" && AR_FLAGS=cru
8007 test -z "$AS" && AS=as
8008 test -z "$CC" && CC=cc
8009 test -z "$LTCC" && LTCC=$CC
8010 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8011 test -z "$DLLTOOL" && DLLTOOL=dlltool
8012 test -z "$LD" && LD=ld
8013 test -z "$LN_S" && LN_S="ln -s"
8014 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8015 test -z "$NM" && NM=nm
8016 test -z "$SED" && SED=sed
8017 test -z "$OBJDUMP" && OBJDUMP=objdump
8018 test -z "$RANLIB" && RANLIB=:
8019 test -z "$STRIP" && STRIP=:
8020 test -z "$ac_objext" && ac_objext=o
8021
8022 # Determine commands to create old-style static archives.
8023 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
8024 old_postinstall_cmds='chmod 644 $oldlib'
8025 old_postuninstall_cmds=
8026
8027 if test -n "$RANLIB"; then
8028   case $host_os in
8029   openbsd*)
8030     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
8031     ;;
8032   *)
8033     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
8034     ;;
8035   esac
8036   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
8037 fi
8038
8039 for cc_temp in $compiler""; do
8040   case $cc_temp in
8041     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8042     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8043     \-*) ;;
8044     *) break;;
8045   esac
8046 done
8047 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8048
8049
8050 # Only perform the check for file, if the check method requires it
8051 case $deplibs_check_method in
8052 file_magic*)
8053   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8054     { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
8055 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
8056 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8057   echo $ECHO_N "(cached) $ECHO_C" >&6
8058 else
8059   case $MAGIC_CMD in
8060 [\\/*] |  ?:[\\/]*)
8061   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8062   ;;
8063 *)
8064   lt_save_MAGIC_CMD="$MAGIC_CMD"
8065   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8066   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8067   for ac_dir in $ac_dummy; do
8068     IFS="$lt_save_ifs"
8069     test -z "$ac_dir" && ac_dir=.
8070     if test -f $ac_dir/${ac_tool_prefix}file; then
8071       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8072       if test -n "$file_magic_test_file"; then
8073         case $deplibs_check_method in
8074         "file_magic "*)
8075           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8076           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8077           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8078             $EGREP "$file_magic_regex" > /dev/null; then
8079             :
8080           else
8081             cat <<EOF 1>&2
8082
8083 *** Warning: the command libtool uses to detect shared libraries,
8084 *** $file_magic_cmd, produces output that libtool cannot recognize.
8085 *** The result is that libtool may fail to recognize shared libraries
8086 *** as such.  This will affect the creation of libtool libraries that
8087 *** depend on shared libraries, but programs linked with such libtool
8088 *** libraries will work regardless of this problem.  Nevertheless, you
8089 *** may want to report the problem to your system manager and/or to
8090 *** bug-libtool@gnu.org
8091
8092 EOF
8093           fi ;;
8094         esac
8095       fi
8096       break
8097     fi
8098   done
8099   IFS="$lt_save_ifs"
8100   MAGIC_CMD="$lt_save_MAGIC_CMD"
8101   ;;
8102 esac
8103 fi
8104
8105 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8106 if test -n "$MAGIC_CMD"; then
8107   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8108 echo "${ECHO_T}$MAGIC_CMD" >&6; }
8109 else
8110   { echo "$as_me:$LINENO: result: no" >&5
8111 echo "${ECHO_T}no" >&6; }
8112 fi
8113
8114 if test -z "$lt_cv_path_MAGIC_CMD"; then
8115   if test -n "$ac_tool_prefix"; then
8116     { echo "$as_me:$LINENO: checking for file" >&5
8117 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
8118 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8119   echo $ECHO_N "(cached) $ECHO_C" >&6
8120 else
8121   case $MAGIC_CMD in
8122 [\\/*] |  ?:[\\/]*)
8123   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8124   ;;
8125 *)
8126   lt_save_MAGIC_CMD="$MAGIC_CMD"
8127   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8128   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8129   for ac_dir in $ac_dummy; do
8130     IFS="$lt_save_ifs"
8131     test -z "$ac_dir" && ac_dir=.
8132     if test -f $ac_dir/file; then
8133       lt_cv_path_MAGIC_CMD="$ac_dir/file"
8134       if test -n "$file_magic_test_file"; then
8135         case $deplibs_check_method in
8136         "file_magic "*)
8137           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8138           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8139           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8140             $EGREP "$file_magic_regex" > /dev/null; then
8141             :
8142           else
8143             cat <<EOF 1>&2
8144
8145 *** Warning: the command libtool uses to detect shared libraries,
8146 *** $file_magic_cmd, produces output that libtool cannot recognize.
8147 *** The result is that libtool may fail to recognize shared libraries
8148 *** as such.  This will affect the creation of libtool libraries that
8149 *** depend on shared libraries, but programs linked with such libtool
8150 *** libraries will work regardless of this problem.  Nevertheless, you
8151 *** may want to report the problem to your system manager and/or to
8152 *** bug-libtool@gnu.org
8153
8154 EOF
8155           fi ;;
8156         esac
8157       fi
8158       break
8159     fi
8160   done
8161   IFS="$lt_save_ifs"
8162   MAGIC_CMD="$lt_save_MAGIC_CMD"
8163   ;;
8164 esac
8165 fi
8166
8167 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8168 if test -n "$MAGIC_CMD"; then
8169   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8170 echo "${ECHO_T}$MAGIC_CMD" >&6; }
8171 else
8172   { echo "$as_me:$LINENO: result: no" >&5
8173 echo "${ECHO_T}no" >&6; }
8174 fi
8175
8176   else
8177     MAGIC_CMD=:
8178   fi
8179 fi
8180
8181   fi
8182   ;;
8183 esac
8184
8185 enable_dlopen=no
8186 enable_win32_dll=no
8187
8188 # Check whether --enable-libtool-lock was given.
8189 if test "${enable_libtool_lock+set}" = set; then
8190   enableval=$enable_libtool_lock;
8191 fi
8192
8193 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8194
8195
8196 # Check whether --with-pic was given.
8197 if test "${with_pic+set}" = set; then
8198   withval=$with_pic; pic_mode="$withval"
8199 else
8200   pic_mode=default
8201 fi
8202
8203 test -z "$pic_mode" && pic_mode=default
8204
8205 # Use C for the default configuration in the libtool script
8206 tagname=
8207 lt_save_CC="$CC"
8208 ac_ext=c
8209 ac_cpp='$CPP $CPPFLAGS'
8210 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8211 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8212 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8213
8214
8215 # Source file extension for C test sources.
8216 ac_ext=c
8217
8218 # Object file extension for compiled C test sources.
8219 objext=o
8220 objext=$objext
8221
8222 # Code to be used in simple compile tests
8223 lt_simple_compile_test_code="int some_variable = 0;\n"
8224
8225 # Code to be used in simple link tests
8226 lt_simple_link_test_code='int main(){return(0);}\n'
8227
8228
8229 # If no C compiler was specified, use CC.
8230 LTCC=${LTCC-"$CC"}
8231
8232 # If no C compiler flags were specified, use CFLAGS.
8233 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8234
8235 # Allow CC to be a program name with arguments.
8236 compiler=$CC
8237
8238
8239 # save warnings/boilerplate of simple test code
8240 ac_outfile=conftest.$ac_objext
8241 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
8242 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8243 _lt_compiler_boilerplate=`cat conftest.err`
8244 $rm conftest*
8245
8246 ac_outfile=conftest.$ac_objext
8247 printf "$lt_simple_link_test_code" >conftest.$ac_ext
8248 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8249 _lt_linker_boilerplate=`cat conftest.err`
8250 $rm conftest*
8251
8252
8253
8254 lt_prog_compiler_no_builtin_flag=
8255
8256 if test "$GCC" = yes; then
8257   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
8258
8259
8260 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8261 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
8262 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
8263   echo $ECHO_N "(cached) $ECHO_C" >&6
8264 else
8265   lt_cv_prog_compiler_rtti_exceptions=no
8266   ac_outfile=conftest.$ac_objext
8267    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8268    lt_compiler_flag="-fno-rtti -fno-exceptions"
8269    # Insert the option either (1) after the last *FLAGS variable, or
8270    # (2) before a word containing "conftest.", or (3) at the end.
8271    # Note that $ac_compile itself does not contain backslashes and begins
8272    # with a dollar sign (not a hyphen), so the echo should work correctly.
8273    # The option is referenced via a variable to avoid confusing sed.
8274    lt_compile=`echo "$ac_compile" | $SED \
8275    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8276    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8277    -e 's:$: $lt_compiler_flag:'`
8278    (eval echo "\"\$as_me:8278: $lt_compile\"" >&5)
8279    (eval "$lt_compile" 2>conftest.err)
8280    ac_status=$?
8281    cat conftest.err >&5
8282    echo "$as_me:8282: \$? = $ac_status" >&5
8283    if (exit $ac_status) && test -s "$ac_outfile"; then
8284      # The compiler can only warn and ignore the option if not recognized
8285      # So say no if there are warnings other than the usual output.
8286      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8287      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8288      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8289        lt_cv_prog_compiler_rtti_exceptions=yes
8290      fi
8291    fi
8292    $rm conftest*
8293
8294 fi
8295 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8296 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8297
8298 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8299     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8300 else
8301     :
8302 fi
8303
8304 fi
8305
8306 lt_prog_compiler_wl=
8307 lt_prog_compiler_pic=
8308 lt_prog_compiler_static=
8309
8310 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
8311 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
8312
8313   if test "$GCC" = yes; then
8314     lt_prog_compiler_wl='-Wl,'
8315     lt_prog_compiler_static='-static'
8316
8317     case $host_os in
8318       aix*)
8319       # All AIX code is PIC.
8320       if test "$host_cpu" = ia64; then
8321         # AIX 5 now supports IA64 processor
8322         lt_prog_compiler_static='-Bstatic'
8323       fi
8324       ;;
8325
8326     amigaos*)
8327       # FIXME: we need at least 68020 code to build shared libraries, but
8328       # adding the `-m68020' flag to GCC prevents building anything better,
8329       # like `-m68040'.
8330       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8331       ;;
8332
8333     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8334       # PIC is the default for these OSes.
8335       ;;
8336
8337     mingw* | pw32* | os2*)
8338       # This hack is so that the source file can tell whether it is being
8339       # built for inclusion in a dll (and should export symbols for example).
8340       lt_prog_compiler_pic='-DDLL_EXPORT'
8341       ;;
8342
8343     darwin* | rhapsody*)
8344       # PIC is the default on this platform
8345       # Common symbols not allowed in MH_DYLIB files
8346       lt_prog_compiler_pic='-fno-common'
8347       ;;
8348
8349     interix3*)
8350       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8351       # Instead, we relocate shared libraries at runtime.
8352       ;;
8353
8354     msdosdjgpp*)
8355       # Just because we use GCC doesn't mean we suddenly get shared libraries
8356       # on systems that don't support them.
8357       lt_prog_compiler_can_build_shared=no
8358       enable_shared=no
8359       ;;
8360
8361     sysv4*MP*)
8362       if test -d /usr/nec; then
8363         lt_prog_compiler_pic=-Kconform_pic
8364       fi
8365       ;;
8366
8367     hpux*)
8368       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8369       # not for PA HP-UX.
8370       case $host_cpu in
8371       hppa*64*|ia64*)
8372         # +Z the default
8373         ;;
8374       *)
8375         lt_prog_compiler_pic='-fPIC'
8376         ;;
8377       esac
8378       ;;
8379
8380     *)
8381       lt_prog_compiler_pic='-fPIC'
8382       ;;
8383     esac
8384   else
8385     # PORTME Check for flag to pass linker flags through the system compiler.
8386     case $host_os in
8387     aix*)
8388       lt_prog_compiler_wl='-Wl,'
8389       if test "$host_cpu" = ia64; then
8390         # AIX 5 now supports IA64 processor
8391         lt_prog_compiler_static='-Bstatic'
8392       else
8393         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8394       fi
8395       ;;
8396       darwin*)
8397         # PIC is the default on this platform
8398         # Common symbols not allowed in MH_DYLIB files
8399        case $cc_basename in
8400          xlc*)
8401          lt_prog_compiler_pic='-qnocommon'
8402          lt_prog_compiler_wl='-Wl,'
8403          ;;
8404        esac
8405        ;;
8406
8407     mingw* | pw32* | os2*)
8408       # This hack is so that the source file can tell whether it is being
8409       # built for inclusion in a dll (and should export symbols for example).
8410       lt_prog_compiler_pic='-DDLL_EXPORT'
8411       ;;
8412
8413     hpux9* | hpux10* | hpux11*)
8414       lt_prog_compiler_wl='-Wl,'
8415       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8416       # not for PA HP-UX.
8417       case $host_cpu in
8418       hppa*64*|ia64*)
8419         # +Z the default
8420         ;;
8421       *)
8422         lt_prog_compiler_pic='+Z'
8423         ;;
8424       esac
8425       # Is there a better lt_prog_compiler_static that works with the bundled CC?
8426       lt_prog_compiler_static='${wl}-a ${wl}archive'
8427       ;;
8428
8429     irix5* | irix6* | nonstopux*)
8430       lt_prog_compiler_wl='-Wl,'
8431       # PIC (with -KPIC) is the default.
8432       lt_prog_compiler_static='-non_shared'
8433       ;;
8434
8435     newsos6)
8436       lt_prog_compiler_pic='-KPIC'
8437       lt_prog_compiler_static='-Bstatic'
8438       ;;
8439
8440     linux* | k*bsd*-gnu)
8441       case $cc_basename in
8442       icc* | ecc*)
8443         lt_prog_compiler_wl='-Wl,'
8444         lt_prog_compiler_pic='-KPIC'
8445         lt_prog_compiler_static='-static'
8446         ;;
8447       pgcc* | pgf77* | pgf90* | pgf95*)
8448         # Portland Group compilers (*not* the Pentium gcc compiler,
8449         # which looks to be a dead project)
8450         lt_prog_compiler_wl='-Wl,'
8451         lt_prog_compiler_pic='-fpic'
8452         lt_prog_compiler_static='-Bstatic'
8453         ;;
8454       ccc*)
8455         lt_prog_compiler_wl='-Wl,'
8456         # All Alpha code is PIC.
8457         lt_prog_compiler_static='-non_shared'
8458         ;;
8459       esac
8460       ;;
8461
8462     osf3* | osf4* | osf5*)
8463       lt_prog_compiler_wl='-Wl,'
8464       # All OSF/1 code is PIC.
8465       lt_prog_compiler_static='-non_shared'
8466       ;;
8467
8468     solaris*)
8469       lt_prog_compiler_pic='-KPIC'
8470       lt_prog_compiler_static='-Bstatic'
8471       case $cc_basename in
8472       f77* | f90* | f95*)
8473         lt_prog_compiler_wl='-Qoption ld ';;
8474       *)
8475         lt_prog_compiler_wl='-Wl,';;
8476       esac
8477       ;;
8478
8479     sunos4*)
8480       lt_prog_compiler_wl='-Qoption ld '
8481       lt_prog_compiler_pic='-PIC'
8482       lt_prog_compiler_static='-Bstatic'
8483       ;;
8484
8485     sysv4 | sysv4.2uw2* | sysv4.3*)
8486       lt_prog_compiler_wl='-Wl,'
8487       lt_prog_compiler_pic='-KPIC'
8488       lt_prog_compiler_static='-Bstatic'
8489       ;;
8490
8491     sysv4*MP*)
8492       if test -d /usr/nec ;then
8493         lt_prog_compiler_pic='-Kconform_pic'
8494         lt_prog_compiler_static='-Bstatic'
8495       fi
8496       ;;
8497
8498     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8499       lt_prog_compiler_wl='-Wl,'
8500       lt_prog_compiler_pic='-KPIC'
8501       lt_prog_compiler_static='-Bstatic'
8502       ;;
8503
8504     unicos*)
8505       lt_prog_compiler_wl='-Wl,'
8506       lt_prog_compiler_can_build_shared=no
8507       ;;
8508
8509     uts4*)
8510       lt_prog_compiler_pic='-pic'
8511       lt_prog_compiler_static='-Bstatic'
8512       ;;
8513
8514     *)
8515       lt_prog_compiler_can_build_shared=no
8516       ;;
8517     esac
8518   fi
8519
8520 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
8521 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
8522
8523 #
8524 # Check to make sure the PIC flag actually works.
8525 #
8526 if test -n "$lt_prog_compiler_pic"; then
8527
8528 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8529 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
8530 if test "${lt_prog_compiler_pic_works+set}" = set; then
8531   echo $ECHO_N "(cached) $ECHO_C" >&6
8532 else
8533   lt_prog_compiler_pic_works=no
8534   ac_outfile=conftest.$ac_objext
8535    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8536    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8537    # Insert the option either (1) after the last *FLAGS variable, or
8538    # (2) before a word containing "conftest.", or (3) at the end.
8539    # Note that $ac_compile itself does not contain backslashes and begins
8540    # with a dollar sign (not a hyphen), so the echo should work correctly.
8541    # The option is referenced via a variable to avoid confusing sed.
8542    lt_compile=`echo "$ac_compile" | $SED \
8543    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8544    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8545    -e 's:$: $lt_compiler_flag:'`
8546    (eval echo "\"\$as_me:8546: $lt_compile\"" >&5)
8547    (eval "$lt_compile" 2>conftest.err)
8548    ac_status=$?
8549    cat conftest.err >&5
8550    echo "$as_me:8550: \$? = $ac_status" >&5
8551    if (exit $ac_status) && test -s "$ac_outfile"; then
8552      # The compiler can only warn and ignore the option if not recognized
8553      # So say no if there are warnings other than the usual output.
8554      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8555      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8556      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8557        lt_prog_compiler_pic_works=yes
8558      fi
8559    fi
8560    $rm conftest*
8561
8562 fi
8563 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
8564 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
8565
8566 if test x"$lt_prog_compiler_pic_works" = xyes; then
8567     case $lt_prog_compiler_pic in
8568      "" | " "*) ;;
8569      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8570      esac
8571 else
8572     lt_prog_compiler_pic=
8573      lt_prog_compiler_can_build_shared=no
8574 fi
8575
8576 fi
8577 case $host_os in
8578   # For platforms which do not support PIC, -DPIC is meaningless:
8579   *djgpp*)
8580     lt_prog_compiler_pic=
8581     ;;
8582   *)
8583     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8584     ;;
8585 esac
8586
8587 #
8588 # Check to make sure the static flag actually works.
8589 #
8590 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8591 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8592 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
8593 if test "${lt_prog_compiler_static_works+set}" = set; then
8594   echo $ECHO_N "(cached) $ECHO_C" >&6
8595 else
8596   lt_prog_compiler_static_works=no
8597    save_LDFLAGS="$LDFLAGS"
8598    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8599    printf "$lt_simple_link_test_code" > conftest.$ac_ext
8600    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8601      # The linker can only warn and ignore the option if not recognized
8602      # So say no if there are warnings
8603      if test -s conftest.err; then
8604        # Append any errors to the config.log.
8605        cat conftest.err 1>&5
8606        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8607        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8608        if diff conftest.exp conftest.er2 >/dev/null; then
8609          lt_prog_compiler_static_works=yes
8610        fi
8611      else
8612        lt_prog_compiler_static_works=yes
8613      fi
8614    fi
8615    $rm conftest*
8616    LDFLAGS="$save_LDFLAGS"
8617
8618 fi
8619 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
8620 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
8621
8622 if test x"$lt_prog_compiler_static_works" = xyes; then
8623     :
8624 else
8625     lt_prog_compiler_static=
8626 fi
8627
8628
8629 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8630 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
8631 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8632   echo $ECHO_N "(cached) $ECHO_C" >&6
8633 else
8634   lt_cv_prog_compiler_c_o=no
8635    $rm -r conftest 2>/dev/null
8636    mkdir conftest
8637    cd conftest
8638    mkdir out
8639    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8640
8641    lt_compiler_flag="-o out/conftest2.$ac_objext"
8642    # Insert the option either (1) after the last *FLAGS variable, or
8643    # (2) before a word containing "conftest.", or (3) at the end.
8644    # Note that $ac_compile itself does not contain backslashes and begins
8645    # with a dollar sign (not a hyphen), so the echo should work correctly.
8646    lt_compile=`echo "$ac_compile" | $SED \
8647    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8648    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8649    -e 's:$: $lt_compiler_flag:'`
8650    (eval echo "\"\$as_me:8650: $lt_compile\"" >&5)
8651    (eval "$lt_compile" 2>out/conftest.err)
8652    ac_status=$?
8653    cat out/conftest.err >&5
8654    echo "$as_me:8654: \$? = $ac_status" >&5
8655    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8656    then
8657      # The compiler can only warn and ignore the option if not recognized
8658      # So say no if there are warnings
8659      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8660      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8661      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8662        lt_cv_prog_compiler_c_o=yes
8663      fi
8664    fi
8665    chmod u+w . 2>&5
8666    $rm conftest*
8667    # SGI C++ compiler will create directory out/ii_files/ for
8668    # template instantiation
8669    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
8670    $rm out/* && rmdir out
8671    cd ..
8672    rmdir conftest
8673    $rm conftest*
8674
8675 fi
8676 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8677 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
8678
8679
8680 hard_links="nottested"
8681 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8682   # do not overwrite the value of need_locks provided by the user
8683   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8684 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
8685   hard_links=yes
8686   $rm conftest*
8687   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8688   touch conftest.a
8689   ln conftest.a conftest.b 2>&5 || hard_links=no
8690   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8691   { echo "$as_me:$LINENO: result: $hard_links" >&5
8692 echo "${ECHO_T}$hard_links" >&6; }
8693   if test "$hard_links" = no; then
8694     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8695 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8696     need_locks=warn
8697   fi
8698 else
8699   need_locks=no
8700 fi
8701
8702 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8703 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
8704
8705   runpath_var=
8706   allow_undefined_flag=
8707   enable_shared_with_static_runtimes=no
8708   archive_cmds=
8709   archive_expsym_cmds=
8710   old_archive_From_new_cmds=
8711   old_archive_from_expsyms_cmds=
8712   export_dynamic_flag_spec=
8713   whole_archive_flag_spec=
8714   thread_safe_flag_spec=
8715   hardcode_libdir_flag_spec=
8716   hardcode_libdir_flag_spec_ld=
8717   hardcode_libdir_separator=
8718   hardcode_direct=no
8719   hardcode_minus_L=no
8720   hardcode_shlibpath_var=unsupported
8721   link_all_deplibs=unknown
8722   hardcode_automatic=no
8723   module_cmds=
8724   module_expsym_cmds=
8725   always_export_symbols=no
8726   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8727   # include_expsyms should be a list of space-separated symbols to be *always*
8728   # included in the symbol list
8729   include_expsyms=
8730   # exclude_expsyms can be an extended regexp of symbols to exclude
8731   # it will be wrapped by ` (' and `)$', so one must not match beginning or
8732   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8733   # as well as any symbol that contains `d'.
8734   exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
8735   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8736   # platforms (ab)use it in PIC code, but their linkers get confused if
8737   # the symbol is explicitly referenced.  Since portable code cannot
8738   # rely on this symbol name, it's probably fine to never include it in
8739   # preloaded symbol tables.
8740   extract_expsyms_cmds=
8741   # Just being paranoid about ensuring that cc_basename is set.
8742   for cc_temp in $compiler""; do
8743   case $cc_temp in
8744     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8745     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8746     \-*) ;;
8747     *) break;;
8748   esac
8749 done
8750 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8751
8752   case $host_os in
8753   cygwin* | mingw* | pw32*)
8754     # FIXME: the MSVC++ port hasn't been tested in a loooong time
8755     # When not using gcc, we currently assume that we are using
8756     # Microsoft Visual C++.
8757     if test "$GCC" != yes; then
8758       with_gnu_ld=no
8759     fi
8760     ;;
8761   interix*)
8762     # we just hope/assume this is gcc and not c89 (= MSVC++)
8763     with_gnu_ld=yes
8764     ;;
8765   openbsd*)
8766     with_gnu_ld=no
8767     ;;
8768   esac
8769
8770   ld_shlibs=yes
8771   if test "$with_gnu_ld" = yes; then
8772     # If archive_cmds runs LD, not CC, wlarc should be empty
8773     wlarc='${wl}'
8774
8775     # Set some defaults for GNU ld with shared library support. These
8776     # are reset later if shared libraries are not supported. Putting them
8777     # here allows them to be overridden if necessary.
8778     runpath_var=LD_RUN_PATH
8779     hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8780     export_dynamic_flag_spec='${wl}--export-dynamic'
8781     # ancient GNU ld didn't support --whole-archive et. al.
8782     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8783         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8784       else
8785         whole_archive_flag_spec=
8786     fi
8787     supports_anon_versioning=no
8788     case `$LD -v 2>/dev/null` in
8789       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8790       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8791       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8792       *\ 2.11.*) ;; # other 2.11 versions
8793       *) supports_anon_versioning=yes ;;
8794     esac
8795
8796     # See if GNU ld supports shared libraries.
8797     case $host_os in
8798     aix3* | aix4* | aix5*)
8799       # On AIX/PPC, the GNU linker is very broken
8800       if test "$host_cpu" != ia64; then
8801         ld_shlibs=no
8802         cat <<EOF 1>&2
8803
8804 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8805 *** to be unable to reliably create shared libraries on AIX.
8806 *** Therefore, libtool is disabling shared libraries support.  If you
8807 *** really care for shared libraries, you may want to modify your PATH
8808 *** so that a non-GNU linker is found, and then restart.
8809
8810 EOF
8811       fi
8812       ;;
8813
8814     amigaos*)
8815       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)'
8816       hardcode_libdir_flag_spec='-L$libdir'
8817       hardcode_minus_L=yes
8818
8819       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8820       # that the semantics of dynamic libraries on AmigaOS, at least up
8821       # to version 4, is to share data among multiple programs linked
8822       # with the same dynamic library.  Since this doesn't match the
8823       # behavior of shared libraries on other platforms, we can't use
8824       # them.
8825       ld_shlibs=no
8826       ;;
8827
8828     beos*)
8829       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8830         allow_undefined_flag=unsupported
8831         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8832         # support --undefined.  This deserves some investigation.  FIXME
8833         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8834       else
8835         ld_shlibs=no
8836       fi
8837       ;;
8838
8839     cygwin* | mingw* | pw32*)
8840       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8841       # as there is no search path for DLLs.
8842       hardcode_libdir_flag_spec='-L$libdir'
8843       allow_undefined_flag=unsupported
8844       always_export_symbols=no
8845       enable_shared_with_static_runtimes=yes
8846       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
8847
8848       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8849         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8850         # If the export-symbols file already is a .def file (1st line
8851         # is EXPORTS), use it as is; otherwise, prepend...
8852         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8853           cp $export_symbols $output_objdir/$soname.def;
8854         else
8855           echo EXPORTS > $output_objdir/$soname.def;
8856           cat $export_symbols >> $output_objdir/$soname.def;
8857         fi~
8858         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8859       else
8860         ld_shlibs=no
8861       fi
8862       ;;
8863
8864     interix3*)
8865       hardcode_direct=no
8866       hardcode_shlibpath_var=no
8867       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8868       export_dynamic_flag_spec='${wl}-E'
8869       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8870       # Instead, shared libraries are loaded at an image base (0x10000000 by
8871       # default) and relocated if they conflict, which is a slow very memory
8872       # consuming and fragmenting process.  To avoid this, we pick a random,
8873       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8874       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8875       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8876       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'
8877       ;;
8878
8879     linux* | k*bsd*-gnu)
8880       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8881         tmp_addflag=
8882         case $cc_basename,$host_cpu in
8883         pgcc*)                          # Portland Group C compiler
8884           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'
8885           tmp_addflag=' $pic_flag'
8886           ;;
8887         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
8888           whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
8889           tmp_addflag=' $pic_flag -Mnomain' ;;
8890         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
8891           tmp_addflag=' -i_dynamic' ;;
8892         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
8893           tmp_addflag=' -i_dynamic -nofor_main' ;;
8894         ifc* | ifort*)                  # Intel Fortran compiler
8895           tmp_addflag=' -nofor_main' ;;
8896         esac
8897         archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8898
8899         if test $supports_anon_versioning = yes; then
8900           archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8901   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8902   $echo "local: *; };" >> $output_objdir/$libname.ver~
8903           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8904         fi
8905         link_all_deplibs=no
8906       else
8907         ld_shlibs=no
8908       fi
8909       ;;
8910
8911     netbsd* | netbsdelf*-gnu)
8912       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8913         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8914         wlarc=
8915       else
8916         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8917         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8918       fi
8919       ;;
8920
8921     solaris*)
8922       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8923         ld_shlibs=no
8924         cat <<EOF 1>&2
8925
8926 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8927 *** create shared libraries on Solaris systems.  Therefore, libtool
8928 *** is disabling shared libraries support.  We urge you to upgrade GNU
8929 *** binutils to release 2.9.1 or newer.  Another option is to modify
8930 *** your PATH or compiler configuration so that the native linker is
8931 *** used, and then restart.
8932
8933 EOF
8934       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8935         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8936         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8937       else
8938         ld_shlibs=no
8939       fi
8940       ;;
8941
8942     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8943       case `$LD -v 2>&1` in
8944         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8945         ld_shlibs=no
8946         cat <<_LT_EOF 1>&2
8947
8948 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8949 *** reliably create shared libraries on SCO systems.  Therefore, libtool
8950 *** is disabling shared libraries support.  We urge you to upgrade GNU
8951 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8952 *** your PATH or compiler configuration so that the native linker is
8953 *** used, and then restart.
8954
8955 _LT_EOF
8956         ;;
8957         *)
8958           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8959             hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
8960             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
8961             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
8962           else
8963             ld_shlibs=no
8964           fi
8965         ;;
8966       esac
8967       ;;
8968
8969     sunos4*)
8970       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8971       wlarc=
8972       hardcode_direct=yes
8973       hardcode_shlibpath_var=no
8974       ;;
8975
8976     *)
8977       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8978         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8979         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8980       else
8981         ld_shlibs=no
8982       fi
8983       ;;
8984     esac
8985
8986     if test "$ld_shlibs" = no; then
8987       runpath_var=
8988       hardcode_libdir_flag_spec=
8989       export_dynamic_flag_spec=
8990       whole_archive_flag_spec=
8991     fi
8992   else
8993     # PORTME fill in a description of your system's linker (not GNU ld)
8994     case $host_os in
8995     aix3*)
8996       allow_undefined_flag=unsupported
8997       always_export_symbols=yes
8998       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'
8999       # Note: this linker hardcodes the directories in LIBPATH if there
9000       # are no directories specified by -L.
9001       hardcode_minus_L=yes
9002       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9003         # Neither direct hardcoding nor static linking is supported with a
9004         # broken collect2.
9005         hardcode_direct=unsupported
9006       fi
9007       ;;
9008
9009     aix4* | aix5*)
9010       if test "$host_cpu" = ia64; then
9011         # On IA64, the linker does run time linking by default, so we don't
9012         # have to do anything special.
9013         aix_use_runtimelinking=no
9014         exp_sym_flag='-Bexport'
9015         no_entry_flag=""
9016       else
9017         # If we're using GNU nm, then we don't want the "-C" option.
9018         # -C means demangle to AIX nm, but means don't demangle with GNU nm
9019         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
9020           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'
9021         else
9022           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'
9023         fi
9024         aix_use_runtimelinking=no
9025
9026         # Test if we are trying to use run time linking or normal
9027         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9028         # need to do runtime linking.
9029         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9030           for ld_flag in $LDFLAGS; do
9031           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9032             aix_use_runtimelinking=yes
9033             break
9034           fi
9035           done
9036           ;;
9037         esac
9038
9039         exp_sym_flag='-bexport'
9040         no_entry_flag='-bnoentry'
9041       fi
9042
9043       # When large executables or shared objects are built, AIX ld can
9044       # have problems creating the table of contents.  If linking a library
9045       # or program results in "error TOC overflow" add -mminimal-toc to
9046       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9047       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9048
9049       archive_cmds=''
9050       hardcode_direct=yes
9051       hardcode_libdir_separator=':'
9052       link_all_deplibs=yes
9053
9054       if test "$GCC" = yes; then
9055         case $host_os in aix4.[012]|aix4.[012].*)
9056         # We only want to do this on AIX 4.2 and lower, the check
9057         # below for broken collect2 doesn't work under 4.3+
9058           collect2name=`${CC} -print-prog-name=collect2`
9059           if test -f "$collect2name" && \
9060            strings "$collect2name" | grep resolve_lib_name >/dev/null
9061           then
9062           # We have reworked collect2
9063           hardcode_direct=yes
9064           else
9065           # We have old collect2
9066           hardcode_direct=unsupported
9067           # It fails to find uninstalled libraries when the uninstalled
9068           # path is not listed in the libpath.  Setting hardcode_minus_L
9069           # to unsupported forces relinking
9070           hardcode_minus_L=yes
9071           hardcode_libdir_flag_spec='-L$libdir'
9072           hardcode_libdir_separator=
9073           fi
9074           ;;
9075         esac
9076         shared_flag='-shared'
9077         if test "$aix_use_runtimelinking" = yes; then
9078           shared_flag="$shared_flag "'${wl}-G'
9079         fi
9080       else
9081         # not using gcc
9082         if test "$host_cpu" = ia64; then
9083         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9084         # chokes on -Wl,-G. The following line is correct:
9085           shared_flag='-G'
9086         else
9087           if test "$aix_use_runtimelinking" = yes; then
9088             shared_flag='${wl}-G'
9089           else
9090             shared_flag='${wl}-bM:SRE'
9091           fi
9092         fi
9093       fi
9094
9095       # It seems that -bexpall does not export symbols beginning with
9096       # underscore (_), so it is better to generate a list of symbols to export.
9097       always_export_symbols=yes
9098       if test "$aix_use_runtimelinking" = yes; then
9099         # Warning - without using the other runtime loading flags (-brtl),
9100         # -berok will link without error, but may produce a broken library.
9101         allow_undefined_flag='-berok'
9102        # Determine the default libpath from the value encoded in an empty executable.
9103        cat >conftest.$ac_ext <<_ACEOF
9104 /* confdefs.h.  */
9105 _ACEOF
9106 cat confdefs.h >>conftest.$ac_ext
9107 cat >>conftest.$ac_ext <<_ACEOF
9108 /* end confdefs.h.  */
9109
9110 int
9111 main ()
9112 {
9113
9114   ;
9115   return 0;
9116 }
9117 _ACEOF
9118 rm -f conftest.$ac_objext conftest$ac_exeext
9119 if { (ac_try="$ac_link"
9120 case "(($ac_try" in
9121   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9122   *) ac_try_echo=$ac_try;;
9123 esac
9124 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9125   (eval "$ac_link") 2>conftest.er1
9126   ac_status=$?
9127   grep -v '^ *+' conftest.er1 >conftest.err
9128   rm -f conftest.er1
9129   cat conftest.err >&5
9130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9131   (exit $ac_status); } && {
9132          test -z "$ac_c_werror_flag" ||
9133          test ! -s conftest.err
9134        } && test -s conftest$ac_exeext &&
9135        $as_test_x conftest$ac_exeext; then
9136
9137 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9138 }'`
9139 # Check for a 64-bit object if we didn't find anything.
9140 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9141 }'`; fi
9142 else
9143   echo "$as_me: failed program was:" >&5
9144 sed 's/^/| /' conftest.$ac_ext >&5
9145
9146
9147 fi
9148
9149 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9150       conftest$ac_exeext conftest.$ac_ext
9151 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9152
9153        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9154         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"
9155        else
9156         if test "$host_cpu" = ia64; then
9157           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9158           allow_undefined_flag="-z nodefs"
9159           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"
9160         else
9161          # Determine the default libpath from the value encoded in an empty executable.
9162          cat >conftest.$ac_ext <<_ACEOF
9163 /* confdefs.h.  */
9164 _ACEOF
9165 cat confdefs.h >>conftest.$ac_ext
9166 cat >>conftest.$ac_ext <<_ACEOF
9167 /* end confdefs.h.  */
9168
9169 int
9170 main ()
9171 {
9172
9173   ;
9174   return 0;
9175 }
9176 _ACEOF
9177 rm -f conftest.$ac_objext conftest$ac_exeext
9178 if { (ac_try="$ac_link"
9179 case "(($ac_try" in
9180   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9181   *) ac_try_echo=$ac_try;;
9182 esac
9183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9184   (eval "$ac_link") 2>conftest.er1
9185   ac_status=$?
9186   grep -v '^ *+' conftest.er1 >conftest.err
9187   rm -f conftest.er1
9188   cat conftest.err >&5
9189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9190   (exit $ac_status); } && {
9191          test -z "$ac_c_werror_flag" ||
9192          test ! -s conftest.err
9193        } && test -s conftest$ac_exeext &&
9194        $as_test_x conftest$ac_exeext; then
9195
9196 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9197 }'`
9198 # Check for a 64-bit object if we didn't find anything.
9199 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9200 }'`; fi
9201 else
9202   echo "$as_me: failed program was:" >&5
9203 sed 's/^/| /' conftest.$ac_ext >&5
9204
9205
9206 fi
9207
9208 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9209       conftest$ac_exeext conftest.$ac_ext
9210 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9211
9212          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9213           # Warning - without using the other run time loading flags,
9214           # -berok will link without error, but may produce a broken library.
9215           no_undefined_flag=' ${wl}-bernotok'
9216           allow_undefined_flag=' ${wl}-berok'
9217           # Exported symbols can be pulled into shared objects from archives
9218           whole_archive_flag_spec='$convenience'
9219           archive_cmds_need_lc=yes
9220           # This is similar to how AIX traditionally builds its shared libraries.
9221           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'
9222         fi
9223       fi
9224       ;;
9225
9226     amigaos*)
9227       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)'
9228       hardcode_libdir_flag_spec='-L$libdir'
9229       hardcode_minus_L=yes
9230       # see comment about different semantics on the GNU ld section
9231       ld_shlibs=no
9232       ;;
9233
9234     bsdi[45]*)
9235       export_dynamic_flag_spec=-rdynamic
9236       ;;
9237
9238     cygwin* | mingw* | pw32*)
9239       # When not using gcc, we currently assume that we are using
9240       # Microsoft Visual C++.
9241       # hardcode_libdir_flag_spec is actually meaningless, as there is
9242       # no search path for DLLs.
9243       hardcode_libdir_flag_spec=' '
9244       allow_undefined_flag=unsupported
9245       # Tell ltmain to make .lib files, not .a files.
9246       libext=lib
9247       # Tell ltmain to make .dll files, not .so files.
9248       shrext_cmds=".dll"
9249       # FIXME: Setting linknames here is a bad hack.
9250       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
9251       # The linker will automatically build a .lib file if we build a DLL.
9252       old_archive_From_new_cmds='true'
9253       # FIXME: Should let the user specify the lib program.
9254       old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
9255       fix_srcfile_path='`cygpath -w "$srcfile"`'
9256       enable_shared_with_static_runtimes=yes
9257       ;;
9258
9259     darwin* | rhapsody*)
9260       case $host_os in
9261         rhapsody* | darwin1.[012])
9262          allow_undefined_flag='${wl}-undefined ${wl}suppress'
9263          ;;
9264        *) # Darwin 1.3 on
9265          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
9266            allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9267          else
9268            case ${MACOSX_DEPLOYMENT_TARGET} in
9269              10.[012])
9270                allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9271                ;;
9272              10.*)
9273                allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
9274                ;;
9275            esac
9276          fi
9277          ;;
9278       esac
9279       archive_cmds_need_lc=no
9280       hardcode_direct=no
9281       hardcode_automatic=yes
9282       hardcode_shlibpath_var=unsupported
9283       whole_archive_flag_spec=''
9284       link_all_deplibs=yes
9285     if test "$GCC" = yes ; then
9286         output_verbose_link_cmd='echo'
9287         archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9288       module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9289       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
9290       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}'
9291       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}'
9292     else
9293       case $cc_basename in
9294         xlc*)
9295          output_verbose_link_cmd='echo'
9296          archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
9297          module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9298           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
9299          archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
9300           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}'
9301           ;;
9302        *)
9303          ld_shlibs=no
9304           ;;
9305       esac
9306     fi
9307       ;;
9308
9309     dgux*)
9310       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9311       hardcode_libdir_flag_spec='-L$libdir'
9312       hardcode_shlibpath_var=no
9313       ;;
9314
9315     freebsd1*)
9316       ld_shlibs=no
9317       ;;
9318
9319     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9320     # support.  Future versions do this automatically, but an explicit c++rt0.o
9321     # does not break anything, and helps significantly (at the cost of a little
9322     # extra space).
9323     freebsd2.2*)
9324       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9325       hardcode_libdir_flag_spec='-R$libdir'
9326       hardcode_direct=yes
9327       hardcode_shlibpath_var=no
9328       ;;
9329
9330     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9331     freebsd2*)
9332       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9333       hardcode_direct=yes
9334       hardcode_minus_L=yes
9335       hardcode_shlibpath_var=no
9336       ;;
9337
9338     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9339     freebsd* | dragonfly*)
9340       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9341       hardcode_libdir_flag_spec='-R$libdir'
9342       hardcode_direct=yes
9343       hardcode_shlibpath_var=no
9344       ;;
9345
9346     hpux9*)
9347       if test "$GCC" = yes; then
9348         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'
9349       else
9350         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'
9351       fi
9352       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9353       hardcode_libdir_separator=:
9354       hardcode_direct=yes
9355
9356       # hardcode_minus_L: Not really in the search PATH,
9357       # but as the default location of the library.
9358       hardcode_minus_L=yes
9359       export_dynamic_flag_spec='${wl}-E'
9360       ;;
9361
9362     hpux10*)
9363       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9364         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9365       else
9366         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9367       fi
9368       if test "$with_gnu_ld" = no; then
9369         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9370         hardcode_libdir_separator=:
9371
9372         hardcode_direct=yes
9373         export_dynamic_flag_spec='${wl}-E'
9374
9375         # hardcode_minus_L: Not really in the search PATH,
9376         # but as the default location of the library.
9377         hardcode_minus_L=yes
9378       fi
9379       ;;
9380
9381     hpux11*)
9382       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9383         case $host_cpu in
9384         hppa*64*)
9385           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9386           ;;
9387         ia64*)
9388           archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9389           ;;
9390         *)
9391           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9392           ;;
9393         esac
9394       else
9395         case $host_cpu in
9396         hppa*64*)
9397           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9398           ;;
9399         ia64*)
9400           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9401           ;;
9402         *)
9403           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9404           ;;
9405         esac
9406       fi
9407       if test "$with_gnu_ld" = no; then
9408         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9409         hardcode_libdir_separator=:
9410
9411         case $host_cpu in
9412         hppa*64*|ia64*)
9413           hardcode_libdir_flag_spec_ld='+b $libdir'
9414           hardcode_direct=no
9415           hardcode_shlibpath_var=no
9416           ;;
9417         *)
9418           hardcode_direct=yes
9419           export_dynamic_flag_spec='${wl}-E'
9420
9421           # hardcode_minus_L: Not really in the search PATH,
9422           # but as the default location of the library.
9423           hardcode_minus_L=yes
9424           ;;
9425         esac
9426       fi
9427       ;;
9428
9429     irix5* | irix6* | nonstopux*)
9430       if test "$GCC" = yes; then
9431         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'
9432       else
9433         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'
9434         hardcode_libdir_flag_spec_ld='-rpath $libdir'
9435       fi
9436       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9437       hardcode_libdir_separator=:
9438       link_all_deplibs=yes
9439       ;;
9440
9441     netbsd* | netbsdelf*-gnu)
9442       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9443         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9444       else
9445         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9446       fi
9447       hardcode_libdir_flag_spec='-R$libdir'
9448       hardcode_direct=yes
9449       hardcode_shlibpath_var=no
9450       ;;
9451
9452     newsos6)
9453       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9454       hardcode_direct=yes
9455       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9456       hardcode_libdir_separator=:
9457       hardcode_shlibpath_var=no
9458       ;;
9459
9460     openbsd*)
9461       hardcode_direct=yes
9462       hardcode_shlibpath_var=no
9463       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9464         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9465         archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9466         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9467         export_dynamic_flag_spec='${wl}-E'
9468       else
9469        case $host_os in
9470          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9471            archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9472            hardcode_libdir_flag_spec='-R$libdir'
9473            ;;
9474          *)
9475            archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9476            hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9477            ;;
9478        esac
9479       fi
9480       ;;
9481
9482     os2*)
9483       hardcode_libdir_flag_spec='-L$libdir'
9484       hardcode_minus_L=yes
9485       allow_undefined_flag=unsupported
9486       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'
9487       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9488       ;;
9489
9490     osf3*)
9491       if test "$GCC" = yes; then
9492         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9493         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'
9494       else
9495         allow_undefined_flag=' -expect_unresolved \*'
9496         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'
9497       fi
9498       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9499       hardcode_libdir_separator=:
9500       ;;
9501
9502     osf4* | osf5*)      # as osf3* with the addition of -msym flag
9503       if test "$GCC" = yes; then
9504         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9505         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'
9506         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9507       else
9508         allow_undefined_flag=' -expect_unresolved \*'
9509         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'
9510         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
9511         $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'
9512
9513         # Both c and cxx compiler support -rpath directly
9514         hardcode_libdir_flag_spec='-rpath $libdir'
9515       fi
9516       hardcode_libdir_separator=:
9517       ;;
9518
9519     solaris*)
9520       no_undefined_flag=' -z text'
9521       if test "$GCC" = yes; then
9522         wlarc='${wl}'
9523         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9524         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9525           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
9526       else
9527         wlarc=''
9528         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9529         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9530         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
9531       fi
9532       hardcode_libdir_flag_spec='-R$libdir'
9533       hardcode_shlibpath_var=no
9534       case $host_os in
9535       solaris2.[0-5] | solaris2.[0-5].*) ;;
9536       *)
9537         # The compiler driver will combine linker options so we
9538         # cannot just pass the convience library names through
9539         # without $wl, iff we do not link with $LD.
9540         # Luckily, gcc supports the same syntax we need for Sun Studio.
9541         # Supported since Solaris 2.6 (maybe 2.5.1?)
9542         case $wlarc in
9543         '')
9544           whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
9545         *)
9546           whole_archive_flag_spec='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
9547         esac ;;
9548       esac
9549       link_all_deplibs=yes
9550       ;;
9551
9552     sunos4*)
9553       if test "x$host_vendor" = xsequent; then
9554         # Use $CC to link under sequent, because it throws in some extra .o
9555         # files that make .init and .fini sections work.
9556         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9557       else
9558         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9559       fi
9560       hardcode_libdir_flag_spec='-L$libdir'
9561       hardcode_direct=yes
9562       hardcode_minus_L=yes
9563       hardcode_shlibpath_var=no
9564       ;;
9565
9566     sysv4)
9567       case $host_vendor in
9568         sni)
9569           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9570           hardcode_direct=yes # is this really true???
9571         ;;
9572         siemens)
9573           ## LD is ld it makes a PLAMLIB
9574           ## CC just makes a GrossModule.
9575           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9576           reload_cmds='$CC -r -o $output$reload_objs'
9577           hardcode_direct=no
9578         ;;
9579         motorola)
9580           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9581           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9582         ;;
9583       esac
9584       runpath_var='LD_RUN_PATH'
9585       hardcode_shlibpath_var=no
9586       ;;
9587
9588     sysv4.3*)
9589       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9590       hardcode_shlibpath_var=no
9591       export_dynamic_flag_spec='-Bexport'
9592       ;;
9593
9594     sysv4*MP*)
9595       if test -d /usr/nec; then
9596         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9597         hardcode_shlibpath_var=no
9598         runpath_var=LD_RUN_PATH
9599         hardcode_runpath_var=yes
9600         ld_shlibs=yes
9601       fi
9602       ;;
9603
9604     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
9605       no_undefined_flag='${wl}-z,text'
9606       archive_cmds_need_lc=no
9607       hardcode_shlibpath_var=no
9608       runpath_var='LD_RUN_PATH'
9609
9610       if test "$GCC" = yes; then
9611         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9612         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9613       else
9614         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9615         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9616       fi
9617       ;;
9618
9619     sysv5* | sco3.2v5* | sco5v6*)
9620       # Note: We can NOT use -z defs as we might desire, because we do not
9621       # link with -lc, and that would cause any symbols used from libc to
9622       # always be unresolved, which means just about no library would
9623       # ever link correctly.  If we're not using GNU ld we use -z text
9624       # though, which does catch some bad symbols but isn't as heavy-handed
9625       # as -z defs.
9626       no_undefined_flag='${wl}-z,text'
9627       allow_undefined_flag='${wl}-z,nodefs'
9628       archive_cmds_need_lc=no
9629       hardcode_shlibpath_var=no
9630       hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
9631       hardcode_libdir_separator=':'
9632       link_all_deplibs=yes
9633       export_dynamic_flag_spec='${wl}-Bexport'
9634       runpath_var='LD_RUN_PATH'
9635
9636       if test "$GCC" = yes; then
9637         archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9638         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9639       else
9640         archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9641         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9642       fi
9643       ;;
9644
9645     uts4*)
9646       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9647       hardcode_libdir_flag_spec='-L$libdir'
9648       hardcode_shlibpath_var=no
9649       ;;
9650
9651     *)
9652       ld_shlibs=no
9653       ;;
9654     esac
9655   fi
9656
9657 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9658 echo "${ECHO_T}$ld_shlibs" >&6; }
9659 test "$ld_shlibs" = no && can_build_shared=no
9660
9661 #
9662 # Do we need to explicitly link libc?
9663 #
9664 case "x$archive_cmds_need_lc" in
9665 x|xyes)
9666   # Assume -lc should be added
9667   archive_cmds_need_lc=yes
9668
9669   if test "$enable_shared" = yes && test "$GCC" = yes; then
9670     case $archive_cmds in
9671     *'~'*)
9672       # FIXME: we may have to deal with multi-command sequences.
9673       ;;
9674     '$CC '*)
9675       # Test whether the compiler implicitly links with -lc since on some
9676       # systems, -lgcc has to come before -lc. If gcc already passes -lc
9677       # to ld, don't add -lc before -lgcc.
9678       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9679 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
9680       $rm conftest*
9681       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9682
9683       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9684   (eval $ac_compile) 2>&5
9685   ac_status=$?
9686   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9687   (exit $ac_status); } 2>conftest.err; then
9688         soname=conftest
9689         lib=conftest
9690         libobjs=conftest.$ac_objext
9691         deplibs=
9692         wl=$lt_prog_compiler_wl
9693         pic_flag=$lt_prog_compiler_pic
9694         compiler_flags=-v
9695         linker_flags=-v
9696         verstring=
9697         output_objdir=.
9698         libname=conftest
9699         lt_save_allow_undefined_flag=$allow_undefined_flag
9700         allow_undefined_flag=
9701         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
9702   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
9703   ac_status=$?
9704   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9705   (exit $ac_status); }
9706         then
9707           archive_cmds_need_lc=no
9708         else
9709           archive_cmds_need_lc=yes
9710         fi
9711         allow_undefined_flag=$lt_save_allow_undefined_flag
9712       else
9713         cat conftest.err 1>&5
9714       fi
9715       $rm conftest*
9716       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9717 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
9718       ;;
9719     esac
9720   fi
9721   ;;
9722 esac
9723
9724 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9725 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
9726 library_names_spec=
9727 libname_spec='lib$name'
9728 soname_spec=
9729 shrext_cmds=".so"
9730 postinstall_cmds=
9731 postuninstall_cmds=
9732 finish_cmds=
9733 finish_eval=
9734 shlibpath_var=
9735 shlibpath_overrides_runpath=unknown
9736 version_type=none
9737 dynamic_linker="$host_os ld.so"
9738 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9739 if test "$GCC" = yes; then
9740   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9741   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9742     # if the path contains ";" then we assume it to be the separator
9743     # otherwise default to the standard path separator (i.e. ":") - it is
9744     # assumed that no part of a normal pathname contains ";" but that should
9745     # okay in the real world where ";" in dirpaths is itself problematic.
9746     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9747   else
9748     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9749   fi
9750 else
9751   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9752 fi
9753 need_lib_prefix=unknown
9754 hardcode_into_libs=no
9755
9756 # when you set need_version to no, make sure it does not cause -set_version
9757 # flags to be left without arguments
9758 need_version=unknown
9759
9760 case $host_os in
9761 aix3*)
9762   version_type=linux
9763   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9764   shlibpath_var=LIBPATH
9765
9766   # AIX 3 has no versioning support, so we append a major version to the name.
9767   soname_spec='${libname}${release}${shared_ext}$major'
9768   ;;
9769
9770 aix4* | aix5*)
9771   version_type=linux
9772   need_lib_prefix=no
9773   need_version=no
9774   hardcode_into_libs=yes
9775   if test "$host_cpu" = ia64; then
9776     # AIX 5 supports IA64
9777     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9778     shlibpath_var=LD_LIBRARY_PATH
9779   else
9780     # With GCC up to 2.95.x, collect2 would create an import file
9781     # for dependence libraries.  The import file would start with
9782     # the line `#! .'.  This would cause the generated library to
9783     # depend on `.', always an invalid library.  This was fixed in
9784     # development snapshots of GCC prior to 3.0.
9785     case $host_os in
9786       aix4 | aix4.[01] | aix4.[01].*)
9787       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9788            echo ' yes '
9789            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9790         :
9791       else
9792         can_build_shared=no
9793       fi
9794       ;;
9795     esac
9796     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9797     # soname into executable. Probably we can add versioning support to
9798     # collect2, so additional links can be useful in future.
9799     if test "$aix_use_runtimelinking" = yes; then
9800       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9801       # instead of lib<name>.a to let people know that these are not
9802       # typical AIX shared libraries.
9803       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9804     else
9805       # We preserve .a as extension for shared libraries through AIX4.2
9806       # and later when we are not doing run time linking.
9807       library_names_spec='${libname}${release}.a $libname.a'
9808       soname_spec='${libname}${release}${shared_ext}$major'
9809     fi
9810     shlibpath_var=LIBPATH
9811   fi
9812   ;;
9813
9814 amigaos*)
9815   library_names_spec='$libname.ixlibrary $libname.a'
9816   # Create ${libname}_ixlibrary.a entries in /sys/libs.
9817   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'
9818   ;;
9819
9820 beos*)
9821   library_names_spec='${libname}${shared_ext}'
9822   dynamic_linker="$host_os ld.so"
9823   shlibpath_var=LIBRARY_PATH
9824   ;;
9825
9826 bsdi[45]*)
9827   version_type=linux
9828   need_version=no
9829   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9830   soname_spec='${libname}${release}${shared_ext}$major'
9831   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9832   shlibpath_var=LD_LIBRARY_PATH
9833   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9834   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9835   # the default ld.so.conf also contains /usr/contrib/lib and
9836   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9837   # libtool to hard-code these into programs
9838   ;;
9839
9840 cygwin* | mingw* | pw32*)
9841   version_type=windows
9842   shrext_cmds=".dll"
9843   need_version=no
9844   need_lib_prefix=no
9845
9846   case $GCC,$host_os in
9847   yes,cygwin* | yes,mingw* | yes,pw32*)
9848     library_names_spec='$libname.dll.a'
9849     # DLL is installed to $(libdir)/../bin by postinstall_cmds
9850     postinstall_cmds='base_file=`basename \${file}`~
9851       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9852       dldir=$destdir/`dirname \$dlpath`~
9853       test -d \$dldir || mkdir -p \$dldir~
9854       $install_prog $dir/$dlname \$dldir/$dlname~
9855       chmod a+x \$dldir/$dlname'
9856     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9857       dlpath=$dir/\$dldll~
9858        $rm \$dlpath'
9859     shlibpath_overrides_runpath=yes
9860
9861     case $host_os in
9862     cygwin*)
9863       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9864       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9865       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9866       ;;
9867     mingw*)
9868       # MinGW DLLs use traditional 'lib' prefix
9869       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9870       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9871       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9872         # It is most probably a Windows format PATH printed by
9873         # mingw gcc, but we are running on Cygwin. Gcc prints its search
9874         # path with ; separators, and with drive letters. We can handle the
9875         # drive letters (cygwin fileutils understands them), so leave them,
9876         # especially as we might pass files found there to a mingw objdump,
9877         # which wouldn't understand a cygwinified path. Ahh.
9878         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9879       else
9880         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9881       fi
9882       ;;
9883     pw32*)
9884       # pw32 DLLs use 'pw' prefix rather than 'lib'
9885       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9886       ;;
9887     esac
9888     ;;
9889
9890   *)
9891     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9892     ;;
9893   esac
9894   dynamic_linker='Win32 ld.exe'
9895   # FIXME: first we should search . and the directory the executable is in
9896   shlibpath_var=PATH
9897   ;;
9898
9899 darwin* | rhapsody*)
9900   dynamic_linker="$host_os dyld"
9901   version_type=darwin
9902   need_lib_prefix=no
9903   need_version=no
9904   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9905   soname_spec='${libname}${release}${major}$shared_ext'
9906   shlibpath_overrides_runpath=yes
9907   shlibpath_var=DYLD_LIBRARY_PATH
9908   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9909   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9910   if test "$GCC" = yes; then
9911     sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
9912   else
9913     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9914   fi
9915   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9916   ;;
9917
9918 dgux*)
9919   version_type=linux
9920   need_lib_prefix=no
9921   need_version=no
9922   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9923   soname_spec='${libname}${release}${shared_ext}$major'
9924   shlibpath_var=LD_LIBRARY_PATH
9925   ;;
9926
9927 freebsd1*)
9928   dynamic_linker=no
9929   ;;
9930
9931 freebsd* | dragonfly*)
9932   # DragonFly does not have aout.  When/if they implement a new
9933   # versioning mechanism, adjust this.
9934   if test -x /usr/bin/objformat; then
9935     objformat=`/usr/bin/objformat`
9936   else
9937     case $host_os in
9938     freebsd[123]*) objformat=aout ;;
9939     *) objformat=elf ;;
9940     esac
9941   fi
9942   version_type=freebsd-$objformat
9943   case $version_type in
9944     freebsd-elf*)
9945       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9946       need_version=no
9947       need_lib_prefix=no
9948       ;;
9949     freebsd-*)
9950       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9951       need_version=yes
9952       ;;
9953   esac
9954   shlibpath_var=LD_LIBRARY_PATH
9955   case $host_os in
9956   freebsd2*)
9957     shlibpath_overrides_runpath=yes
9958     ;;
9959   freebsd3.[01]* | freebsdelf3.[01]*)
9960     shlibpath_overrides_runpath=yes
9961     hardcode_into_libs=yes
9962     ;;
9963   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9964   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9965     shlibpath_overrides_runpath=no
9966     hardcode_into_libs=yes
9967     ;;
9968   freebsd*) # from 4.6 on
9969     shlibpath_overrides_runpath=yes
9970     hardcode_into_libs=yes
9971     ;;
9972   esac
9973   ;;
9974
9975 gnu*)
9976   version_type=linux
9977   need_lib_prefix=no
9978   need_version=no
9979   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9980   soname_spec='${libname}${release}${shared_ext}$major'
9981   shlibpath_var=LD_LIBRARY_PATH
9982   hardcode_into_libs=yes
9983   ;;
9984
9985 hpux9* | hpux10* | hpux11*)
9986   # Give a soname corresponding to the major version so that dld.sl refuses to
9987   # link against other versions.
9988   version_type=sunos
9989   need_lib_prefix=no
9990   need_version=no
9991   case $host_cpu in
9992   ia64*)
9993     shrext_cmds='.so'
9994     hardcode_into_libs=yes
9995     dynamic_linker="$host_os dld.so"
9996     shlibpath_var=LD_LIBRARY_PATH
9997     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9998     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9999     soname_spec='${libname}${release}${shared_ext}$major'
10000     if test "X$HPUX_IA64_MODE" = X32; then
10001       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10002     else
10003       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10004     fi
10005     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10006     ;;
10007    hppa*64*)
10008      shrext_cmds='.sl'
10009      hardcode_into_libs=yes
10010      dynamic_linker="$host_os dld.sl"
10011      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10012      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10013      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10014      soname_spec='${libname}${release}${shared_ext}$major'
10015      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10016      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10017      ;;
10018    *)
10019     shrext_cmds='.sl'
10020     dynamic_linker="$host_os dld.sl"
10021     shlibpath_var=SHLIB_PATH
10022     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10023     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10024     soname_spec='${libname}${release}${shared_ext}$major'
10025     ;;
10026   esac
10027   # HP-UX runs *really* slowly unless shared libraries are mode 555.
10028   postinstall_cmds='chmod 555 $lib'
10029   ;;
10030
10031 interix3*)
10032   version_type=linux
10033   need_lib_prefix=no
10034   need_version=no
10035   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10036   soname_spec='${libname}${release}${shared_ext}$major'
10037   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10038   shlibpath_var=LD_LIBRARY_PATH
10039   shlibpath_overrides_runpath=no
10040   hardcode_into_libs=yes
10041   ;;
10042
10043 irix5* | irix6* | nonstopux*)
10044   case $host_os in
10045     nonstopux*) version_type=nonstopux ;;
10046     *)
10047         if test "$lt_cv_prog_gnu_ld" = yes; then
10048                 version_type=linux
10049         else
10050                 version_type=irix
10051         fi ;;
10052   esac
10053   need_lib_prefix=no
10054   need_version=no
10055   soname_spec='${libname}${release}${shared_ext}$major'
10056   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10057   case $host_os in
10058   irix5* | nonstopux*)
10059     libsuff= shlibsuff=
10060     ;;
10061   *)
10062     case $LD in # libtool.m4 will add one of these switches to LD
10063     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10064       libsuff= shlibsuff= libmagic=32-bit;;
10065     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10066       libsuff=32 shlibsuff=N32 libmagic=N32;;
10067     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10068       libsuff=64 shlibsuff=64 libmagic=64-bit;;
10069     *) libsuff= shlibsuff= libmagic=never-match;;
10070     esac
10071     ;;
10072   esac
10073   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10074   shlibpath_overrides_runpath=no
10075   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10076   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10077   hardcode_into_libs=yes
10078   ;;
10079
10080 # No shared lib support for Linux oldld, aout, or coff.
10081 linux*oldld* | linux*aout* | linux*coff*)
10082   dynamic_linker=no
10083   ;;
10084
10085 # This must be Linux ELF.
10086 linux* | k*bsd*-gnu)
10087   version_type=linux
10088   need_lib_prefix=no
10089   need_version=no
10090   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10091   soname_spec='${libname}${release}${shared_ext}$major'
10092   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10093   shlibpath_var=LD_LIBRARY_PATH
10094   shlibpath_overrides_runpath=no
10095   # This implies no fast_install, which is unacceptable.
10096   # Some rework will be needed to allow for fast_install
10097   # before this can be enabled.
10098   hardcode_into_libs=yes
10099
10100   # Append ld.so.conf contents to the search path
10101   if test -f /etc/ld.so.conf; then
10102     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,        ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
10103     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10104   fi
10105
10106   # We used to test for /lib/ld.so.1 and disable shared libraries on
10107   # powerpc, because MkLinux only supported shared libraries with the
10108   # GNU dynamic linker.  Since this was broken with cross compilers,
10109   # most powerpc-linux boxes support dynamic linking these days and
10110   # people can always --disable-shared, the test was removed, and we
10111   # assume the GNU/Linux dynamic linker is in use.
10112   dynamic_linker='GNU/Linux ld.so'
10113   ;;
10114
10115 netbsdelf*-gnu)
10116   version_type=linux
10117   need_lib_prefix=no
10118   need_version=no
10119   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10120   soname_spec='${libname}${release}${shared_ext}$major'
10121   shlibpath_var=LD_LIBRARY_PATH
10122   shlibpath_overrides_runpath=no
10123   hardcode_into_libs=yes
10124   dynamic_linker='NetBSD ld.elf_so'
10125   ;;
10126
10127 netbsd*)
10128   version_type=sunos
10129   need_lib_prefix=no
10130   need_version=no
10131   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10132     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10133     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10134     dynamic_linker='NetBSD (a.out) ld.so'
10135   else
10136     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10137     soname_spec='${libname}${release}${shared_ext}$major'
10138     dynamic_linker='NetBSD ld.elf_so'
10139   fi
10140   shlibpath_var=LD_LIBRARY_PATH
10141   shlibpath_overrides_runpath=yes
10142   hardcode_into_libs=yes
10143   ;;
10144
10145 newsos6)
10146   version_type=linux
10147   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10148   shlibpath_var=LD_LIBRARY_PATH
10149   shlibpath_overrides_runpath=yes
10150   ;;
10151
10152 nto-qnx*)
10153   version_type=linux
10154   need_lib_prefix=no
10155   need_version=no
10156   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10157   soname_spec='${libname}${release}${shared_ext}$major'
10158   shlibpath_var=LD_LIBRARY_PATH
10159   shlibpath_overrides_runpath=yes
10160   ;;
10161
10162 openbsd*)
10163   version_type=sunos
10164   sys_lib_dlsearch_path_spec="/usr/lib"
10165   need_lib_prefix=no
10166   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10167   case $host_os in
10168     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10169     *)                         need_version=no  ;;
10170   esac
10171   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10172   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10173   shlibpath_var=LD_LIBRARY_PATH
10174   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10175     case $host_os in
10176       openbsd2.[89] | openbsd2.[89].*)
10177         shlibpath_overrides_runpath=no
10178         ;;
10179       *)
10180         shlibpath_overrides_runpath=yes
10181         ;;
10182       esac
10183   else
10184     shlibpath_overrides_runpath=yes
10185   fi
10186   ;;
10187
10188 os2*)
10189   libname_spec='$name'
10190   shrext_cmds=".dll"
10191   need_lib_prefix=no
10192   library_names_spec='$libname${shared_ext} $libname.a'
10193   dynamic_linker='OS/2 ld.exe'
10194   shlibpath_var=LIBPATH
10195   ;;
10196
10197 osf3* | osf4* | osf5*)
10198   version_type=osf
10199   need_lib_prefix=no
10200   need_version=no
10201   soname_spec='${libname}${release}${shared_ext}$major'
10202   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10203   shlibpath_var=LD_LIBRARY_PATH
10204   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10205   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10206   ;;
10207
10208 solaris*)
10209   version_type=linux
10210   need_lib_prefix=no
10211   need_version=no
10212   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10213   soname_spec='${libname}${release}${shared_ext}$major'
10214   shlibpath_var=LD_LIBRARY_PATH
10215   shlibpath_overrides_runpath=yes
10216   hardcode_into_libs=yes
10217   # ldd complains unless libraries are executable
10218   postinstall_cmds='chmod +x $lib'
10219   ;;
10220
10221 sunos4*)
10222   version_type=sunos
10223   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10224   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10225   shlibpath_var=LD_LIBRARY_PATH
10226   shlibpath_overrides_runpath=yes
10227   if test "$with_gnu_ld" = yes; then
10228     need_lib_prefix=no
10229   fi
10230   need_version=yes
10231   ;;
10232
10233 sysv4 | sysv4.3*)
10234   version_type=linux
10235   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10236   soname_spec='${libname}${release}${shared_ext}$major'
10237   shlibpath_var=LD_LIBRARY_PATH
10238   case $host_vendor in
10239     sni)
10240       shlibpath_overrides_runpath=no
10241       need_lib_prefix=no
10242       export_dynamic_flag_spec='${wl}-Blargedynsym'
10243       runpath_var=LD_RUN_PATH
10244       ;;
10245     siemens)
10246       need_lib_prefix=no
10247       ;;
10248     motorola)
10249       need_lib_prefix=no
10250       need_version=no
10251       shlibpath_overrides_runpath=no
10252       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10253       ;;
10254   esac
10255   ;;
10256
10257 sysv4*MP*)
10258   if test -d /usr/nec ;then
10259     version_type=linux
10260     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10261     soname_spec='$libname${shared_ext}.$major'
10262     shlibpath_var=LD_LIBRARY_PATH
10263   fi
10264   ;;
10265
10266 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10267   version_type=freebsd-elf
10268   need_lib_prefix=no
10269   need_version=no
10270   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10271   soname_spec='${libname}${release}${shared_ext}$major'
10272   shlibpath_var=LD_LIBRARY_PATH
10273   hardcode_into_libs=yes
10274   if test "$with_gnu_ld" = yes; then
10275     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10276     shlibpath_overrides_runpath=no
10277   else
10278     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10279     shlibpath_overrides_runpath=yes
10280     case $host_os in
10281       sco3.2v5*)
10282         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10283         ;;
10284     esac
10285   fi
10286   sys_lib_dlsearch_path_spec='/usr/lib'
10287   ;;
10288
10289 uts4*)
10290   version_type=linux
10291   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10292   soname_spec='${libname}${release}${shared_ext}$major'
10293   shlibpath_var=LD_LIBRARY_PATH
10294   ;;
10295
10296 *)
10297   dynamic_linker=no
10298   ;;
10299 esac
10300 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10301 echo "${ECHO_T}$dynamic_linker" >&6; }
10302 test "$dynamic_linker" = no && can_build_shared=no
10303
10304 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10305 if test "$GCC" = yes; then
10306   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10307 fi
10308
10309 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10310 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
10311 hardcode_action=
10312 if test -n "$hardcode_libdir_flag_spec" || \
10313    test -n "$runpath_var" || \
10314    test "X$hardcode_automatic" = "Xyes" ; then
10315
10316   # We can hardcode non-existant directories.
10317   if test "$hardcode_direct" != no &&
10318      # If the only mechanism to avoid hardcoding is shlibpath_var, we
10319      # have to relink, otherwise we might link with an installed library
10320      # when we should be linking with a yet-to-be-installed one
10321      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
10322      test "$hardcode_minus_L" != no; then
10323     # Linking always hardcodes the temporary library directory.
10324     hardcode_action=relink
10325   else
10326     # We can link without hardcoding, and we can hardcode nonexisting dirs.
10327     hardcode_action=immediate
10328   fi
10329 else
10330   # We cannot hardcode anything, or else we can only hardcode existing
10331   # directories.
10332   hardcode_action=unsupported
10333 fi
10334 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
10335 echo "${ECHO_T}$hardcode_action" >&6; }
10336
10337 if test "$hardcode_action" = relink; then
10338   # Fast installation is not supported
10339   enable_fast_install=no
10340 elif test "$shlibpath_overrides_runpath" = yes ||
10341      test "$enable_shared" = no; then
10342   # Fast installation is not necessary
10343   enable_fast_install=needless
10344 fi
10345
10346 striplib=
10347 old_striplib=
10348 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10349 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
10350 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
10351   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10352   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10353   { echo "$as_me:$LINENO: result: yes" >&5
10354 echo "${ECHO_T}yes" >&6; }
10355 else
10356 # FIXME - insert some real tests, host_os isn't really good enough
10357   case $host_os in
10358    darwin*)
10359        if test -n "$STRIP" ; then
10360          striplib="$STRIP -x"
10361          { echo "$as_me:$LINENO: result: yes" >&5
10362 echo "${ECHO_T}yes" >&6; }
10363        else
10364   { echo "$as_me:$LINENO: result: no" >&5
10365 echo "${ECHO_T}no" >&6; }
10366 fi
10367        ;;
10368    *)
10369   { echo "$as_me:$LINENO: result: no" >&5
10370 echo "${ECHO_T}no" >&6; }
10371     ;;
10372   esac
10373 fi
10374
10375 if test "x$enable_dlopen" != xyes; then
10376   enable_dlopen=unknown
10377   enable_dlopen_self=unknown
10378   enable_dlopen_self_static=unknown
10379 else
10380   lt_cv_dlopen=no
10381   lt_cv_dlopen_libs=
10382
10383   case $host_os in
10384   beos*)
10385     lt_cv_dlopen="load_add_on"
10386     lt_cv_dlopen_libs=
10387     lt_cv_dlopen_self=yes
10388     ;;
10389
10390   mingw* | pw32*)
10391     lt_cv_dlopen="LoadLibrary"
10392     lt_cv_dlopen_libs=
10393    ;;
10394
10395   cygwin*)
10396     lt_cv_dlopen="dlopen"
10397     lt_cv_dlopen_libs=
10398    ;;
10399
10400   darwin*)
10401   # if libdl is installed we need to link against it
10402     { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10403 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10404 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10405   echo $ECHO_N "(cached) $ECHO_C" >&6
10406 else
10407   ac_check_lib_save_LIBS=$LIBS
10408 LIBS="-ldl  $LIBS"
10409 cat >conftest.$ac_ext <<_ACEOF
10410 /* confdefs.h.  */
10411 _ACEOF
10412 cat confdefs.h >>conftest.$ac_ext
10413 cat >>conftest.$ac_ext <<_ACEOF
10414 /* end confdefs.h.  */
10415
10416 /* Override any GCC internal prototype to avoid an error.
10417    Use char because int might match the return type of a GCC
10418    builtin and then its argument prototype would still apply.  */
10419 #ifdef __cplusplus
10420 extern "C"
10421 #endif
10422 char dlopen ();
10423 int
10424 main ()
10425 {
10426 return dlopen ();
10427   ;
10428   return 0;
10429 }
10430 _ACEOF
10431 rm -f conftest.$ac_objext conftest$ac_exeext
10432 if { (ac_try="$ac_link"
10433 case "(($ac_try" in
10434   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10435   *) ac_try_echo=$ac_try;;
10436 esac
10437 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10438   (eval "$ac_link") 2>conftest.er1
10439   ac_status=$?
10440   grep -v '^ *+' conftest.er1 >conftest.err
10441   rm -f conftest.er1
10442   cat conftest.err >&5
10443   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10444   (exit $ac_status); } && {
10445          test -z "$ac_c_werror_flag" ||
10446          test ! -s conftest.err
10447        } && test -s conftest$ac_exeext &&
10448        $as_test_x conftest$ac_exeext; then
10449   ac_cv_lib_dl_dlopen=yes
10450 else
10451   echo "$as_me: failed program was:" >&5
10452 sed 's/^/| /' conftest.$ac_ext >&5
10453
10454         ac_cv_lib_dl_dlopen=no
10455 fi
10456
10457 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10458       conftest$ac_exeext conftest.$ac_ext
10459 LIBS=$ac_check_lib_save_LIBS
10460 fi
10461 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10462 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10463 if test $ac_cv_lib_dl_dlopen = yes; then
10464   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10465 else
10466
10467     lt_cv_dlopen="dyld"
10468     lt_cv_dlopen_libs=
10469     lt_cv_dlopen_self=yes
10470
10471 fi
10472
10473    ;;
10474
10475   *)
10476     { echo "$as_me:$LINENO: checking for shl_load" >&5
10477 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
10478 if test "${ac_cv_func_shl_load+set}" = set; then
10479   echo $ECHO_N "(cached) $ECHO_C" >&6
10480 else
10481   cat >conftest.$ac_ext <<_ACEOF
10482 /* confdefs.h.  */
10483 _ACEOF
10484 cat confdefs.h >>conftest.$ac_ext
10485 cat >>conftest.$ac_ext <<_ACEOF
10486 /* end confdefs.h.  */
10487 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10488    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10489 #define shl_load innocuous_shl_load
10490
10491 /* System header to define __stub macros and hopefully few prototypes,
10492     which can conflict with char shl_load (); below.
10493     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10494     <limits.h> exists even on freestanding compilers.  */
10495
10496 #ifdef __STDC__
10497 # include <limits.h>
10498 #else
10499 # include <assert.h>
10500 #endif
10501
10502 #undef shl_load
10503
10504 /* Override any GCC internal prototype to avoid an error.
10505    Use char because int might match the return type of a GCC
10506    builtin and then its argument prototype would still apply.  */
10507 #ifdef __cplusplus
10508 extern "C"
10509 #endif
10510 char shl_load ();
10511 /* The GNU C library defines this for functions which it implements
10512     to always fail with ENOSYS.  Some functions are actually named
10513     something starting with __ and the normal name is an alias.  */
10514 #if defined __stub_shl_load || defined __stub___shl_load
10515 choke me
10516 #endif
10517
10518 int
10519 main ()
10520 {
10521 return shl_load ();
10522   ;
10523   return 0;
10524 }
10525 _ACEOF
10526 rm -f conftest.$ac_objext conftest$ac_exeext
10527 if { (ac_try="$ac_link"
10528 case "(($ac_try" in
10529   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10530   *) ac_try_echo=$ac_try;;
10531 esac
10532 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10533   (eval "$ac_link") 2>conftest.er1
10534   ac_status=$?
10535   grep -v '^ *+' conftest.er1 >conftest.err
10536   rm -f conftest.er1
10537   cat conftest.err >&5
10538   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10539   (exit $ac_status); } && {
10540          test -z "$ac_c_werror_flag" ||
10541          test ! -s conftest.err
10542        } && test -s conftest$ac_exeext &&
10543        $as_test_x conftest$ac_exeext; then
10544   ac_cv_func_shl_load=yes
10545 else
10546   echo "$as_me: failed program was:" >&5
10547 sed 's/^/| /' conftest.$ac_ext >&5
10548
10549         ac_cv_func_shl_load=no
10550 fi
10551
10552 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10553       conftest$ac_exeext conftest.$ac_ext
10554 fi
10555 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10556 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
10557 if test $ac_cv_func_shl_load = yes; then
10558   lt_cv_dlopen="shl_load"
10559 else
10560   { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10561 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
10562 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10563   echo $ECHO_N "(cached) $ECHO_C" >&6
10564 else
10565   ac_check_lib_save_LIBS=$LIBS
10566 LIBS="-ldld  $LIBS"
10567 cat >conftest.$ac_ext <<_ACEOF
10568 /* confdefs.h.  */
10569 _ACEOF
10570 cat confdefs.h >>conftest.$ac_ext
10571 cat >>conftest.$ac_ext <<_ACEOF
10572 /* end confdefs.h.  */
10573
10574 /* Override any GCC internal prototype to avoid an error.
10575    Use char because int might match the return type of a GCC
10576    builtin and then its argument prototype would still apply.  */
10577 #ifdef __cplusplus
10578 extern "C"
10579 #endif
10580 char shl_load ();
10581 int
10582 main ()
10583 {
10584 return shl_load ();
10585   ;
10586   return 0;
10587 }
10588 _ACEOF
10589 rm -f conftest.$ac_objext conftest$ac_exeext
10590 if { (ac_try="$ac_link"
10591 case "(($ac_try" in
10592   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10593   *) ac_try_echo=$ac_try;;
10594 esac
10595 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10596   (eval "$ac_link") 2>conftest.er1
10597   ac_status=$?
10598   grep -v '^ *+' conftest.er1 >conftest.err
10599   rm -f conftest.er1
10600   cat conftest.err >&5
10601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10602   (exit $ac_status); } && {
10603          test -z "$ac_c_werror_flag" ||
10604          test ! -s conftest.err
10605        } && test -s conftest$ac_exeext &&
10606        $as_test_x conftest$ac_exeext; then
10607   ac_cv_lib_dld_shl_load=yes
10608 else
10609   echo "$as_me: failed program was:" >&5
10610 sed 's/^/| /' conftest.$ac_ext >&5
10611
10612         ac_cv_lib_dld_shl_load=no
10613 fi
10614
10615 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10616       conftest$ac_exeext conftest.$ac_ext
10617 LIBS=$ac_check_lib_save_LIBS
10618 fi
10619 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10620 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
10621 if test $ac_cv_lib_dld_shl_load = yes; then
10622   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
10623 else
10624   { echo "$as_me:$LINENO: checking for dlopen" >&5
10625 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
10626 if test "${ac_cv_func_dlopen+set}" = set; then
10627   echo $ECHO_N "(cached) $ECHO_C" >&6
10628 else
10629   cat >conftest.$ac_ext <<_ACEOF
10630 /* confdefs.h.  */
10631 _ACEOF
10632 cat confdefs.h >>conftest.$ac_ext
10633 cat >>conftest.$ac_ext <<_ACEOF
10634 /* end confdefs.h.  */
10635 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10636    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10637 #define dlopen innocuous_dlopen
10638
10639 /* System header to define __stub macros and hopefully few prototypes,
10640     which can conflict with char dlopen (); below.
10641     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10642     <limits.h> exists even on freestanding compilers.  */
10643
10644 #ifdef __STDC__
10645 # include <limits.h>
10646 #else
10647 # include <assert.h>
10648 #endif
10649
10650 #undef dlopen
10651
10652 /* Override any GCC internal prototype to avoid an error.
10653    Use char because int might match the return type of a GCC
10654    builtin and then its argument prototype would still apply.  */
10655 #ifdef __cplusplus
10656 extern "C"
10657 #endif
10658 char dlopen ();
10659 /* The GNU C library defines this for functions which it implements
10660     to always fail with ENOSYS.  Some functions are actually named
10661     something starting with __ and the normal name is an alias.  */
10662 #if defined __stub_dlopen || defined __stub___dlopen
10663 choke me
10664 #endif
10665
10666 int
10667 main ()
10668 {
10669 return dlopen ();
10670   ;
10671   return 0;
10672 }
10673 _ACEOF
10674 rm -f conftest.$ac_objext conftest$ac_exeext
10675 if { (ac_try="$ac_link"
10676 case "(($ac_try" in
10677   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10678   *) ac_try_echo=$ac_try;;
10679 esac
10680 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10681   (eval "$ac_link") 2>conftest.er1
10682   ac_status=$?
10683   grep -v '^ *+' conftest.er1 >conftest.err
10684   rm -f conftest.er1
10685   cat conftest.err >&5
10686   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10687   (exit $ac_status); } && {
10688          test -z "$ac_c_werror_flag" ||
10689          test ! -s conftest.err
10690        } && test -s conftest$ac_exeext &&
10691        $as_test_x conftest$ac_exeext; then
10692   ac_cv_func_dlopen=yes
10693 else
10694   echo "$as_me: failed program was:" >&5
10695 sed 's/^/| /' conftest.$ac_ext >&5
10696
10697         ac_cv_func_dlopen=no
10698 fi
10699
10700 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10701       conftest$ac_exeext conftest.$ac_ext
10702 fi
10703 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10704 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
10705 if test $ac_cv_func_dlopen = yes; then
10706   lt_cv_dlopen="dlopen"
10707 else
10708   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10709 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10710 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10711   echo $ECHO_N "(cached) $ECHO_C" >&6
10712 else
10713   ac_check_lib_save_LIBS=$LIBS
10714 LIBS="-ldl  $LIBS"
10715 cat >conftest.$ac_ext <<_ACEOF
10716 /* confdefs.h.  */
10717 _ACEOF
10718 cat confdefs.h >>conftest.$ac_ext
10719 cat >>conftest.$ac_ext <<_ACEOF
10720 /* end confdefs.h.  */
10721
10722 /* Override any GCC internal prototype to avoid an error.
10723    Use char because int might match the return type of a GCC
10724    builtin and then its argument prototype would still apply.  */
10725 #ifdef __cplusplus
10726 extern "C"
10727 #endif
10728 char dlopen ();
10729 int
10730 main ()
10731 {
10732 return dlopen ();
10733   ;
10734   return 0;
10735 }
10736 _ACEOF
10737 rm -f conftest.$ac_objext conftest$ac_exeext
10738 if { (ac_try="$ac_link"
10739 case "(($ac_try" in
10740   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10741   *) ac_try_echo=$ac_try;;
10742 esac
10743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10744   (eval "$ac_link") 2>conftest.er1
10745   ac_status=$?
10746   grep -v '^ *+' conftest.er1 >conftest.err
10747   rm -f conftest.er1
10748   cat conftest.err >&5
10749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10750   (exit $ac_status); } && {
10751          test -z "$ac_c_werror_flag" ||
10752          test ! -s conftest.err
10753        } && test -s conftest$ac_exeext &&
10754        $as_test_x conftest$ac_exeext; then
10755   ac_cv_lib_dl_dlopen=yes
10756 else
10757   echo "$as_me: failed program was:" >&5
10758 sed 's/^/| /' conftest.$ac_ext >&5
10759
10760         ac_cv_lib_dl_dlopen=no
10761 fi
10762
10763 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10764       conftest$ac_exeext conftest.$ac_ext
10765 LIBS=$ac_check_lib_save_LIBS
10766 fi
10767 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10768 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10769 if test $ac_cv_lib_dl_dlopen = yes; then
10770   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10771 else
10772   { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10773 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10774 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10775   echo $ECHO_N "(cached) $ECHO_C" >&6
10776 else
10777   ac_check_lib_save_LIBS=$LIBS
10778 LIBS="-lsvld  $LIBS"
10779 cat >conftest.$ac_ext <<_ACEOF
10780 /* confdefs.h.  */
10781 _ACEOF
10782 cat confdefs.h >>conftest.$ac_ext
10783 cat >>conftest.$ac_ext <<_ACEOF
10784 /* end confdefs.h.  */
10785
10786 /* Override any GCC internal prototype to avoid an error.
10787    Use char because int might match the return type of a GCC
10788    builtin and then its argument prototype would still apply.  */
10789 #ifdef __cplusplus
10790 extern "C"
10791 #endif
10792 char dlopen ();
10793 int
10794 main ()
10795 {
10796 return dlopen ();
10797   ;
10798   return 0;
10799 }
10800 _ACEOF
10801 rm -f conftest.$ac_objext conftest$ac_exeext
10802 if { (ac_try="$ac_link"
10803 case "(($ac_try" in
10804   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10805   *) ac_try_echo=$ac_try;;
10806 esac
10807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10808   (eval "$ac_link") 2>conftest.er1
10809   ac_status=$?
10810   grep -v '^ *+' conftest.er1 >conftest.err
10811   rm -f conftest.er1
10812   cat conftest.err >&5
10813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10814   (exit $ac_status); } && {
10815          test -z "$ac_c_werror_flag" ||
10816          test ! -s conftest.err
10817        } && test -s conftest$ac_exeext &&
10818        $as_test_x conftest$ac_exeext; then
10819   ac_cv_lib_svld_dlopen=yes
10820 else
10821   echo "$as_me: failed program was:" >&5
10822 sed 's/^/| /' conftest.$ac_ext >&5
10823
10824         ac_cv_lib_svld_dlopen=no
10825 fi
10826
10827 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10828       conftest$ac_exeext conftest.$ac_ext
10829 LIBS=$ac_check_lib_save_LIBS
10830 fi
10831 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10832 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10833 if test $ac_cv_lib_svld_dlopen = yes; then
10834   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10835 else
10836   { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10837 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10838 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10839   echo $ECHO_N "(cached) $ECHO_C" >&6
10840 else
10841   ac_check_lib_save_LIBS=$LIBS
10842 LIBS="-ldld  $LIBS"
10843 cat >conftest.$ac_ext <<_ACEOF
10844 /* confdefs.h.  */
10845 _ACEOF
10846 cat confdefs.h >>conftest.$ac_ext
10847 cat >>conftest.$ac_ext <<_ACEOF
10848 /* end confdefs.h.  */
10849
10850 /* Override any GCC internal prototype to avoid an error.
10851    Use char because int might match the return type of a GCC
10852    builtin and then its argument prototype would still apply.  */
10853 #ifdef __cplusplus
10854 extern "C"
10855 #endif
10856 char dld_link ();
10857 int
10858 main ()
10859 {
10860 return dld_link ();
10861   ;
10862   return 0;
10863 }
10864 _ACEOF
10865 rm -f conftest.$ac_objext conftest$ac_exeext
10866 if { (ac_try="$ac_link"
10867 case "(($ac_try" in
10868   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10869   *) ac_try_echo=$ac_try;;
10870 esac
10871 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10872   (eval "$ac_link") 2>conftest.er1
10873   ac_status=$?
10874   grep -v '^ *+' conftest.er1 >conftest.err
10875   rm -f conftest.er1
10876   cat conftest.err >&5
10877   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10878   (exit $ac_status); } && {
10879          test -z "$ac_c_werror_flag" ||
10880          test ! -s conftest.err
10881        } && test -s conftest$ac_exeext &&
10882        $as_test_x conftest$ac_exeext; then
10883   ac_cv_lib_dld_dld_link=yes
10884 else
10885   echo "$as_me: failed program was:" >&5
10886 sed 's/^/| /' conftest.$ac_ext >&5
10887
10888         ac_cv_lib_dld_dld_link=no
10889 fi
10890
10891 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10892       conftest$ac_exeext conftest.$ac_ext
10893 LIBS=$ac_check_lib_save_LIBS
10894 fi
10895 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10896 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10897 if test $ac_cv_lib_dld_dld_link = yes; then
10898   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
10899 fi
10900
10901
10902 fi
10903
10904
10905 fi
10906
10907
10908 fi
10909
10910
10911 fi
10912
10913
10914 fi
10915
10916     ;;
10917   esac
10918
10919   if test "x$lt_cv_dlopen" != xno; then
10920     enable_dlopen=yes
10921   else
10922     enable_dlopen=no
10923   fi
10924
10925   case $lt_cv_dlopen in
10926   dlopen)
10927     save_CPPFLAGS="$CPPFLAGS"
10928     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10929
10930     save_LDFLAGS="$LDFLAGS"
10931     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10932
10933     save_LIBS="$LIBS"
10934     LIBS="$lt_cv_dlopen_libs $LIBS"
10935
10936     { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10937 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
10938 if test "${lt_cv_dlopen_self+set}" = set; then
10939   echo $ECHO_N "(cached) $ECHO_C" >&6
10940 else
10941           if test "$cross_compiling" = yes; then :
10942   lt_cv_dlopen_self=cross
10943 else
10944   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10945   lt_status=$lt_dlunknown
10946   cat > conftest.$ac_ext <<EOF
10947 #line 10947 "configure"
10948 #include "confdefs.h"
10949
10950 #if HAVE_DLFCN_H
10951 #include <dlfcn.h>
10952 #endif
10953
10954 #include <stdio.h>
10955
10956 #ifdef RTLD_GLOBAL
10957 #  define LT_DLGLOBAL           RTLD_GLOBAL
10958 #else
10959 #  ifdef DL_GLOBAL
10960 #    define LT_DLGLOBAL         DL_GLOBAL
10961 #  else
10962 #    define LT_DLGLOBAL         0
10963 #  endif
10964 #endif
10965
10966 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10967    find out it does not work in some platform. */
10968 #ifndef LT_DLLAZY_OR_NOW
10969 #  ifdef RTLD_LAZY
10970 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10971 #  else
10972 #    ifdef DL_LAZY
10973 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10974 #    else
10975 #      ifdef RTLD_NOW
10976 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10977 #      else
10978 #        ifdef DL_NOW
10979 #          define LT_DLLAZY_OR_NOW      DL_NOW
10980 #        else
10981 #          define LT_DLLAZY_OR_NOW      0
10982 #        endif
10983 #      endif
10984 #    endif
10985 #  endif
10986 #endif
10987
10988 #ifdef __cplusplus
10989 extern "C" void exit (int);
10990 #endif
10991
10992 void fnord() { int i=42;}
10993 int main ()
10994 {
10995   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10996   int status = $lt_dlunknown;
10997
10998   if (self)
10999     {
11000       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11001       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11002       /* dlclose (self); */
11003     }
11004   else
11005     puts (dlerror ());
11006
11007     exit (status);
11008 }
11009 EOF
11010   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11011   (eval $ac_link) 2>&5
11012   ac_status=$?
11013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11014   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11015     (./conftest; exit; ) >&5 2>/dev/null
11016     lt_status=$?
11017     case x$lt_status in
11018       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11019       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11020       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11021     esac
11022   else :
11023     # compilation failed
11024     lt_cv_dlopen_self=no
11025   fi
11026 fi
11027 rm -fr conftest*
11028
11029
11030 fi
11031 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
11032 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
11033
11034     if test "x$lt_cv_dlopen_self" = xyes; then
11035       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11036       { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
11037 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
11038 if test "${lt_cv_dlopen_self_static+set}" = set; then
11039   echo $ECHO_N "(cached) $ECHO_C" >&6
11040 else
11041           if test "$cross_compiling" = yes; then :
11042   lt_cv_dlopen_self_static=cross
11043 else
11044   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11045   lt_status=$lt_dlunknown
11046   cat > conftest.$ac_ext <<EOF
11047 #line 11047 "configure"
11048 #include "confdefs.h"
11049
11050 #if HAVE_DLFCN_H
11051 #include <dlfcn.h>
11052 #endif
11053
11054 #include <stdio.h>
11055
11056 #ifdef RTLD_GLOBAL
11057 #  define LT_DLGLOBAL           RTLD_GLOBAL
11058 #else
11059 #  ifdef DL_GLOBAL
11060 #    define LT_DLGLOBAL         DL_GLOBAL
11061 #  else
11062 #    define LT_DLGLOBAL         0
11063 #  endif
11064 #endif
11065
11066 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11067    find out it does not work in some platform. */
11068 #ifndef LT_DLLAZY_OR_NOW
11069 #  ifdef RTLD_LAZY
11070 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11071 #  else
11072 #    ifdef DL_LAZY
11073 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11074 #    else
11075 #      ifdef RTLD_NOW
11076 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11077 #      else
11078 #        ifdef DL_NOW
11079 #          define LT_DLLAZY_OR_NOW      DL_NOW
11080 #        else
11081 #          define LT_DLLAZY_OR_NOW      0
11082 #        endif
11083 #      endif
11084 #    endif
11085 #  endif
11086 #endif
11087
11088 #ifdef __cplusplus
11089 extern "C" void exit (int);
11090 #endif
11091
11092 void fnord() { int i=42;}
11093 int main ()
11094 {
11095   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11096   int status = $lt_dlunknown;
11097
11098   if (self)
11099     {
11100       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11101       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11102       /* dlclose (self); */
11103     }
11104   else
11105     puts (dlerror ());
11106
11107     exit (status);
11108 }
11109 EOF
11110   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11111   (eval $ac_link) 2>&5
11112   ac_status=$?
11113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11114   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11115     (./conftest; exit; ) >&5 2>/dev/null
11116     lt_status=$?
11117     case x$lt_status in
11118       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11119       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11120       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11121     esac
11122   else :
11123     # compilation failed
11124     lt_cv_dlopen_self_static=no
11125   fi
11126 fi
11127 rm -fr conftest*
11128
11129
11130 fi
11131 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
11132 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
11133     fi
11134
11135     CPPFLAGS="$save_CPPFLAGS"
11136     LDFLAGS="$save_LDFLAGS"
11137     LIBS="$save_LIBS"
11138     ;;
11139   esac
11140
11141   case $lt_cv_dlopen_self in
11142   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11143   *) enable_dlopen_self=unknown ;;
11144   esac
11145
11146   case $lt_cv_dlopen_self_static in
11147   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11148   *) enable_dlopen_self_static=unknown ;;
11149   esac
11150 fi
11151
11152
11153 # Report which library types will actually be built
11154 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
11155 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
11156 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
11157 echo "${ECHO_T}$can_build_shared" >&6; }
11158
11159 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
11160 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
11161 test "$can_build_shared" = "no" && enable_shared=no
11162
11163 # On AIX, shared libraries and static libraries use the same namespace, and
11164 # are all built from PIC.
11165 case $host_os in
11166 aix3*)
11167   test "$enable_shared" = yes && enable_static=no
11168   if test -n "$RANLIB"; then
11169     archive_cmds="$archive_cmds~\$RANLIB \$lib"
11170     postinstall_cmds='$RANLIB $lib'
11171   fi
11172   ;;
11173
11174 aix4* | aix5*)
11175   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11176     test "$enable_shared" = yes && enable_static=no
11177   fi
11178     ;;
11179 esac
11180 { echo "$as_me:$LINENO: result: $enable_shared" >&5
11181 echo "${ECHO_T}$enable_shared" >&6; }
11182
11183 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
11184 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
11185 # Make sure either enable_shared or enable_static is yes.
11186 test "$enable_shared" = yes || enable_static=yes
11187 { echo "$as_me:$LINENO: result: $enable_static" >&5
11188 echo "${ECHO_T}$enable_static" >&6; }
11189
11190 # The else clause should only fire when bootstrapping the
11191 # libtool distribution, otherwise you forgot to ship ltmain.sh
11192 # with your package, and you will get complaints that there are
11193 # no rules to generate ltmain.sh.
11194 if test -f "$ltmain"; then
11195   # See if we are running on zsh, and set the options which allow our commands through
11196   # without removal of \ escapes.
11197   if test -n "${ZSH_VERSION+set}" ; then
11198     setopt NO_GLOB_SUBST
11199   fi
11200   # Now quote all the things that may contain metacharacters while being
11201   # careful not to overquote the AC_SUBSTed values.  We take copies of the
11202   # variables and quote the copies for generation of the libtool script.
11203   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
11204     SED SHELL STRIP \
11205     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
11206     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
11207     deplibs_check_method reload_flag reload_cmds need_locks \
11208     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
11209     lt_cv_sys_global_symbol_to_c_name_address \
11210     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
11211     old_postinstall_cmds old_postuninstall_cmds \
11212     compiler \
11213     CC \
11214     LD \
11215     lt_prog_compiler_wl \
11216     lt_prog_compiler_pic \
11217     lt_prog_compiler_static \
11218     lt_prog_compiler_no_builtin_flag \
11219     export_dynamic_flag_spec \
11220     thread_safe_flag_spec \
11221     whole_archive_flag_spec \
11222     enable_shared_with_static_runtimes \
11223     old_archive_cmds \
11224     old_archive_from_new_cmds \
11225     predep_objects \
11226     postdep_objects \
11227     predeps \
11228     postdeps \
11229     compiler_lib_search_path \
11230     archive_cmds \
11231     archive_expsym_cmds \
11232     postinstall_cmds \
11233     postuninstall_cmds \
11234     old_archive_from_expsyms_cmds \
11235     allow_undefined_flag \
11236     no_undefined_flag \
11237     export_symbols_cmds \
11238     hardcode_libdir_flag_spec \
11239     hardcode_libdir_flag_spec_ld \
11240     hardcode_libdir_separator \
11241     hardcode_automatic \
11242     module_cmds \
11243     module_expsym_cmds \
11244     lt_cv_prog_compiler_c_o \
11245     exclude_expsyms \
11246     include_expsyms; do
11247
11248     case $var in
11249     old_archive_cmds | \
11250     old_archive_from_new_cmds | \
11251     archive_cmds | \
11252     archive_expsym_cmds | \
11253     module_cmds | \
11254     module_expsym_cmds | \
11255     old_archive_from_expsyms_cmds | \
11256     export_symbols_cmds | \
11257     extract_expsyms_cmds | reload_cmds | finish_cmds | \
11258     postinstall_cmds | postuninstall_cmds | \
11259     old_postinstall_cmds | old_postuninstall_cmds | \
11260     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
11261       # Double-quote double-evaled strings.
11262       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
11263       ;;
11264     *)
11265       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
11266       ;;
11267     esac
11268   done
11269
11270   case $lt_echo in
11271   *'\$0 --fallback-echo"')
11272     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
11273     ;;
11274   esac
11275
11276 cfgfile="${ofile}T"
11277   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
11278   $rm -f "$cfgfile"
11279   { echo "$as_me:$LINENO: creating $ofile" >&5
11280 echo "$as_me: creating $ofile" >&6;}
11281
11282   cat <<__EOF__ >> "$cfgfile"
11283 #! $SHELL
11284
11285 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
11286 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
11287 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
11288 #
11289 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
11290 # Free Software Foundation, Inc.
11291 #
11292 # This file is part of GNU Libtool:
11293 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
11294 #
11295 # This program is free software; you can redistribute it and/or modify
11296 # it under the terms of the GNU General Public License as published by
11297 # the Free Software Foundation; either version 2 of the License, or
11298 # (at your option) any later version.
11299 #
11300 # This program is distributed in the hope that it will be useful, but
11301 # WITHOUT ANY WARRANTY; without even the implied warranty of
11302 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
11303 # General Public License for more details.
11304 #
11305 # You should have received a copy of the GNU General Public License
11306 # along with this program; if not, write to the Free Software
11307 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
11308 #
11309 # As a special exception to the GNU General Public License, if you
11310 # distribute this file as part of a program that contains a
11311 # configuration script generated by Autoconf, you may include it under
11312 # the same distribution terms that you use for the rest of that program.
11313
11314 # A sed program that does not truncate output.
11315 SED=$lt_SED
11316
11317 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
11318 Xsed="$SED -e 1s/^X//"
11319
11320 # The HP-UX ksh and POSIX shell print the target directory to stdout
11321 # if CDPATH is set.
11322 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11323
11324 # The names of the tagged configurations supported by this script.
11325 available_tags=
11326
11327 # ### BEGIN LIBTOOL CONFIG
11328
11329 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
11330
11331 # Shell to use when invoking shell scripts.
11332 SHELL=$lt_SHELL
11333
11334 # Whether or not to build shared libraries.
11335 build_libtool_libs=$enable_shared
11336
11337 # Whether or not to build static libraries.
11338 build_old_libs=$enable_static
11339
11340 # Whether or not to add -lc for building shared libraries.
11341 build_libtool_need_lc=$archive_cmds_need_lc
11342
11343 # Whether or not to disallow shared libs when runtime libs are static
11344 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
11345
11346 # Whether or not to optimize for fast installation.
11347 fast_install=$enable_fast_install
11348
11349 # The host system.
11350 host_alias=$host_alias
11351 host=$host
11352 host_os=$host_os
11353
11354 # The build system.
11355 build_alias=$build_alias
11356 build=$build
11357 build_os=$build_os
11358
11359 # An echo program that does not interpret backslashes.
11360 echo=$lt_echo
11361
11362 # The archiver.
11363 AR=$lt_AR
11364 AR_FLAGS=$lt_AR_FLAGS
11365
11366 # A C compiler.
11367 LTCC=$lt_LTCC
11368
11369 # LTCC compiler flags.
11370 LTCFLAGS=$lt_LTCFLAGS
11371
11372 # A language-specific compiler.
11373 CC=$lt_compiler
11374
11375 # Is the compiler the GNU C compiler?
11376 with_gcc=$GCC
11377
11378 # An ERE matcher.
11379 EGREP=$lt_EGREP
11380
11381 # The linker used to build libraries.
11382 LD=$lt_LD
11383
11384 # Whether we need hard or soft links.
11385 LN_S=$lt_LN_S
11386
11387 # A BSD-compatible nm program.
11388 NM=$lt_NM
11389
11390 # A symbol stripping program
11391 STRIP=$lt_STRIP
11392
11393 # Used to examine libraries when file_magic_cmd begins "file"
11394 MAGIC_CMD=$MAGIC_CMD
11395
11396 # Used on cygwin: DLL creation program.
11397 DLLTOOL="$DLLTOOL"
11398
11399 # Used on cygwin: object dumper.
11400 OBJDUMP="$OBJDUMP"
11401
11402 # Used on cygwin: assembler.
11403 AS="$AS"
11404
11405 # The name of the directory that contains temporary libtool files.
11406 objdir=$objdir
11407
11408 # How to create reloadable object files.
11409 reload_flag=$lt_reload_flag
11410 reload_cmds=$lt_reload_cmds
11411
11412 # How to pass a linker flag through the compiler.
11413 wl=$lt_lt_prog_compiler_wl
11414
11415 # Object file suffix (normally "o").
11416 objext="$ac_objext"
11417
11418 # Old archive suffix (normally "a").
11419 libext="$libext"
11420
11421 # Shared library suffix (normally ".so").
11422 shrext_cmds='$shrext_cmds'
11423
11424 # Executable file suffix (normally "").
11425 exeext="$exeext"
11426
11427 # Additional compiler flags for building library objects.
11428 pic_flag=$lt_lt_prog_compiler_pic
11429 pic_mode=$pic_mode
11430
11431 # What is the maximum length of a command?
11432 max_cmd_len=$lt_cv_sys_max_cmd_len
11433
11434 # Does compiler simultaneously support -c and -o options?
11435 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
11436
11437 # Must we lock files when doing compilation?
11438 need_locks=$lt_need_locks
11439
11440 # Do we need the lib prefix for modules?
11441 need_lib_prefix=$need_lib_prefix
11442
11443 # Do we need a version for libraries?
11444 need_version=$need_version
11445
11446 # Whether dlopen is supported.
11447 dlopen_support=$enable_dlopen
11448
11449 # Whether dlopen of programs is supported.
11450 dlopen_self=$enable_dlopen_self
11451
11452 # Whether dlopen of statically linked programs is supported.
11453 dlopen_self_static=$enable_dlopen_self_static
11454
11455 # Compiler flag to prevent dynamic linking.
11456 link_static_flag=$lt_lt_prog_compiler_static
11457
11458 # Compiler flag to turn off builtin functions.
11459 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
11460
11461 # Compiler flag to allow reflexive dlopens.
11462 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
11463
11464 # Compiler flag to generate shared objects directly from archives.
11465 whole_archive_flag_spec=$lt_whole_archive_flag_spec
11466
11467 # Compiler flag to generate thread-safe objects.
11468 thread_safe_flag_spec=$lt_thread_safe_flag_spec
11469
11470 # Library versioning type.
11471 version_type=$version_type
11472
11473 # Format of library name prefix.
11474 libname_spec=$lt_libname_spec
11475
11476 # List of archive names.  First name is the real one, the rest are links.
11477 # The last name is the one that the linker finds with -lNAME.
11478 library_names_spec=$lt_library_names_spec
11479
11480 # The coded name of the library, if different from the real name.
11481 soname_spec=$lt_soname_spec
11482
11483 # Commands used to build and install an old-style archive.
11484 RANLIB=$lt_RANLIB
11485 old_archive_cmds=$lt_old_archive_cmds
11486 old_postinstall_cmds=$lt_old_postinstall_cmds
11487 old_postuninstall_cmds=$lt_old_postuninstall_cmds
11488
11489 # Create an old-style archive from a shared archive.
11490 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
11491
11492 # Create a temporary old-style archive to link instead of a shared archive.
11493 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
11494
11495 # Commands used to build and install a shared archive.
11496 archive_cmds=$lt_archive_cmds
11497 archive_expsym_cmds=$lt_archive_expsym_cmds
11498 postinstall_cmds=$lt_postinstall_cmds
11499 postuninstall_cmds=$lt_postuninstall_cmds
11500
11501 # Commands used to build a loadable module (assumed same as above if empty)
11502 module_cmds=$lt_module_cmds
11503 module_expsym_cmds=$lt_module_expsym_cmds
11504
11505 # Commands to strip libraries.
11506 old_striplib=$lt_old_striplib
11507 striplib=$lt_striplib
11508
11509 # Dependencies to place before the objects being linked to create a
11510 # shared library.
11511 predep_objects=$lt_predep_objects
11512
11513 # Dependencies to place after the objects being linked to create a
11514 # shared library.
11515 postdep_objects=$lt_postdep_objects
11516
11517 # Dependencies to place before the objects being linked to create a
11518 # shared library.
11519 predeps=$lt_predeps
11520
11521 # Dependencies to place after the objects being linked to create a
11522 # shared library.
11523 postdeps=$lt_postdeps
11524
11525 # The library search path used internally by the compiler when linking
11526 # a shared library.
11527 compiler_lib_search_path=$lt_compiler_lib_search_path
11528
11529 # Method to check whether dependent libraries are shared objects.
11530 deplibs_check_method=$lt_deplibs_check_method
11531
11532 # Command to use when deplibs_check_method == file_magic.
11533 file_magic_cmd=$lt_file_magic_cmd
11534
11535 # Flag that allows shared libraries with undefined symbols to be built.
11536 allow_undefined_flag=$lt_allow_undefined_flag
11537
11538 # Flag that forces no undefined symbols.
11539 no_undefined_flag=$lt_no_undefined_flag
11540
11541 # Commands used to finish a libtool library installation in a directory.
11542 finish_cmds=$lt_finish_cmds
11543
11544 # Same as above, but a single script fragment to be evaled but not shown.
11545 finish_eval=$lt_finish_eval
11546
11547 # Take the output of nm and produce a listing of raw symbols and C names.
11548 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
11549
11550 # Transform the output of nm in a proper C declaration
11551 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
11552
11553 # Transform the output of nm in a C name address pair
11554 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
11555
11556 # This is the shared library runtime path variable.
11557 runpath_var=$runpath_var
11558
11559 # This is the shared library path variable.
11560 shlibpath_var=$shlibpath_var
11561
11562 # Is shlibpath searched before the hard-coded library search path?
11563 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
11564
11565 # How to hardcode a shared library path into an executable.
11566 hardcode_action=$hardcode_action
11567
11568 # Whether we should hardcode library paths into libraries.
11569 hardcode_into_libs=$hardcode_into_libs
11570
11571 # Flag to hardcode \$libdir into a binary during linking.
11572 # This must work even if \$libdir does not exist.
11573 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
11574
11575 # If ld is used when linking, flag to hardcode \$libdir into
11576 # a binary during linking. This must work even if \$libdir does
11577 # not exist.
11578 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
11579
11580 # Whether we need a single -rpath flag with a separated argument.
11581 hardcode_libdir_separator=$lt_hardcode_libdir_separator
11582
11583 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
11584 # resulting binary.
11585 hardcode_direct=$hardcode_direct
11586
11587 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
11588 # resulting binary.
11589 hardcode_minus_L=$hardcode_minus_L
11590
11591 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
11592 # the resulting binary.
11593 hardcode_shlibpath_var=$hardcode_shlibpath_var
11594
11595 # Set to yes if building a shared library automatically hardcodes DIR into the library
11596 # and all subsequent libraries and executables linked against it.
11597 hardcode_automatic=$hardcode_automatic
11598
11599 # Variables whose values should be saved in libtool wrapper scripts and
11600 # restored at relink time.
11601 variables_saved_for_relink="$variables_saved_for_relink"
11602
11603 # Whether libtool must link a program against all its dependency libraries.
11604 link_all_deplibs=$link_all_deplibs
11605
11606 # Compile-time system search path for libraries
11607 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
11608
11609 # Run-time system search path for libraries
11610 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
11611
11612 # Fix the shell variable \$srcfile for the compiler.
11613 fix_srcfile_path="$fix_srcfile_path"
11614
11615 # Set to yes if exported symbols are required.
11616 always_export_symbols=$always_export_symbols
11617
11618 # The commands to list exported symbols.
11619 export_symbols_cmds=$lt_export_symbols_cmds
11620
11621 # The commands to extract the exported symbol list from a shared archive.
11622 extract_expsyms_cmds=$lt_extract_expsyms_cmds
11623
11624 # Symbols that should not be listed in the preloaded symbols.
11625 exclude_expsyms=$lt_exclude_expsyms
11626
11627 # Symbols that must always be exported.
11628 include_expsyms=$lt_include_expsyms
11629
11630 # ### END LIBTOOL CONFIG
11631
11632 __EOF__
11633
11634
11635   case $host_os in
11636   aix3*)
11637     cat <<\EOF >> "$cfgfile"
11638
11639 # AIX sometimes has problems with the GCC collect2 program.  For some
11640 # reason, if we set the COLLECT_NAMES environment variable, the problems
11641 # vanish in a puff of smoke.
11642 if test "X${COLLECT_NAMES+set}" != Xset; then
11643   COLLECT_NAMES=
11644   export COLLECT_NAMES
11645 fi
11646 EOF
11647     ;;
11648   esac
11649
11650   # We use sed instead of cat because bash on DJGPP gets confused if
11651   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
11652   # text mode, it properly converts lines to CR/LF.  This bash problem
11653   # is reportedly fixed, but why not run on old versions too?
11654   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
11655
11656   mv -f "$cfgfile" "$ofile" || \
11657     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
11658   chmod +x "$ofile"
11659
11660 else
11661   # If there is no Makefile yet, we rely on a make rule to execute
11662   # `config.status --recheck' to rerun these tests and create the
11663   # libtool script then.
11664   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
11665   if test -f "$ltmain_in"; then
11666     test -f Makefile && make "$ltmain"
11667   fi
11668 fi
11669
11670
11671 ac_ext=c
11672 ac_cpp='$CPP $CPPFLAGS'
11673 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11674 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11675 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11676
11677 CC="$lt_save_CC"
11678
11679
11680 # Check whether --with-tags was given.
11681 if test "${with_tags+set}" = set; then
11682   withval=$with_tags; tagnames="$withval"
11683 fi
11684
11685
11686 if test -f "$ltmain" && test -n "$tagnames"; then
11687   if test ! -f "${ofile}"; then
11688     { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
11689 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
11690   fi
11691
11692   if test -z "$LTCC"; then
11693     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
11694     if test -z "$LTCC"; then
11695       { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
11696 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
11697     else
11698       { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
11699 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
11700     fi
11701   fi
11702   if test -z "$LTCFLAGS"; then
11703     eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
11704   fi
11705
11706   # Extract list of available tagged configurations in $ofile.
11707   # Note that this assumes the entire list is on one line.
11708   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
11709
11710   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11711   for tagname in $tagnames; do
11712     IFS="$lt_save_ifs"
11713     # Check whether tagname contains only valid characters
11714     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
11715     "") ;;
11716     *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
11717 echo "$as_me: error: invalid tag name: $tagname" >&2;}
11718    { (exit 1); exit 1; }; }
11719         ;;
11720     esac
11721
11722     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
11723     then
11724       { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
11725 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
11726    { (exit 1); exit 1; }; }
11727     fi
11728
11729     # Update the list of available tags.
11730     if test -n "$tagname"; then
11731       echo appending configuration tag \"$tagname\" to $ofile
11732
11733       case $tagname in
11734       CXX)
11735         if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11736             ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11737             (test "X$CXX" != "Xg++"))) ; then
11738           ac_ext=cpp
11739 ac_cpp='$CXXCPP $CPPFLAGS'
11740 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11741 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11742 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11743
11744
11745
11746
11747 archive_cmds_need_lc_CXX=no
11748 allow_undefined_flag_CXX=
11749 always_export_symbols_CXX=no
11750 archive_expsym_cmds_CXX=
11751 export_dynamic_flag_spec_CXX=
11752 hardcode_direct_CXX=no
11753 hardcode_libdir_flag_spec_CXX=
11754 hardcode_libdir_flag_spec_ld_CXX=
11755 hardcode_libdir_separator_CXX=
11756 hardcode_minus_L_CXX=no
11757 hardcode_shlibpath_var_CXX=unsupported
11758 hardcode_automatic_CXX=no
11759 module_cmds_CXX=
11760 module_expsym_cmds_CXX=
11761 link_all_deplibs_CXX=unknown
11762 old_archive_cmds_CXX=$old_archive_cmds
11763 no_undefined_flag_CXX=
11764 whole_archive_flag_spec_CXX=
11765 enable_shared_with_static_runtimes_CXX=no
11766
11767 # Dependencies to place before and after the object being linked:
11768 predep_objects_CXX=
11769 postdep_objects_CXX=
11770 predeps_CXX=
11771 postdeps_CXX=
11772 compiler_lib_search_path_CXX=
11773
11774 # Source file extension for C++ test sources.
11775 ac_ext=cpp
11776
11777 # Object file extension for compiled C++ test sources.
11778 objext=o
11779 objext_CXX=$objext
11780
11781 # Code to be used in simple compile tests
11782 lt_simple_compile_test_code="int some_variable = 0;\n"
11783
11784 # Code to be used in simple link tests
11785 lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
11786
11787 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11788
11789 # If no C compiler was specified, use CC.
11790 LTCC=${LTCC-"$CC"}
11791
11792 # If no C compiler flags were specified, use CFLAGS.
11793 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11794
11795 # Allow CC to be a program name with arguments.
11796 compiler=$CC
11797
11798
11799 # save warnings/boilerplate of simple test code
11800 ac_outfile=conftest.$ac_objext
11801 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
11802 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11803 _lt_compiler_boilerplate=`cat conftest.err`
11804 $rm conftest*
11805
11806 ac_outfile=conftest.$ac_objext
11807 printf "$lt_simple_link_test_code" >conftest.$ac_ext
11808 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11809 _lt_linker_boilerplate=`cat conftest.err`
11810 $rm conftest*
11811
11812
11813 # Allow CC to be a program name with arguments.
11814 lt_save_CC=$CC
11815 lt_save_LD=$LD
11816 lt_save_GCC=$GCC
11817 GCC=$GXX
11818 lt_save_with_gnu_ld=$with_gnu_ld
11819 lt_save_path_LD=$lt_cv_path_LD
11820 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11821   lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11822 else
11823   $as_unset lt_cv_prog_gnu_ld
11824 fi
11825 if test -n "${lt_cv_path_LDCXX+set}"; then
11826   lt_cv_path_LD=$lt_cv_path_LDCXX
11827 else
11828   $as_unset lt_cv_path_LD
11829 fi
11830 test -z "${LDCXX+set}" || LD=$LDCXX
11831 CC=${CXX-"c++"}
11832 compiler=$CC
11833 compiler_CXX=$CC
11834 for cc_temp in $compiler""; do
11835   case $cc_temp in
11836     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11837     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11838     \-*) ;;
11839     *) break;;
11840   esac
11841 done
11842 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11843
11844
11845 # We don't want -fno-exception wen compiling C++ code, so set the
11846 # no_builtin_flag separately
11847 if test "$GXX" = yes; then
11848   lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11849 else
11850   lt_prog_compiler_no_builtin_flag_CXX=
11851 fi
11852
11853 if test "$GXX" = yes; then
11854   # Set up default GNU C++ configuration
11855
11856
11857 # Check whether --with-gnu-ld was given.
11858 if test "${with_gnu_ld+set}" = set; then
11859   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11860 else
11861   with_gnu_ld=no
11862 fi
11863
11864 ac_prog=ld
11865 if test "$GCC" = yes; then
11866   # Check if gcc -print-prog-name=ld gives a path.
11867   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
11868 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
11869   case $host in
11870   *-*-mingw*)
11871     # gcc leaves a trailing carriage return which upsets mingw
11872     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11873   *)
11874     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11875   esac
11876   case $ac_prog in
11877     # Accept absolute paths.
11878     [\\/]* | ?:[\\/]*)
11879       re_direlt='/[^/][^/]*/\.\./'
11880       # Canonicalize the pathname of ld
11881       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
11882       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11883         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
11884       done
11885       test -z "$LD" && LD="$ac_prog"
11886       ;;
11887   "")
11888     # If it fails, then pretend we aren't using GCC.
11889     ac_prog=ld
11890     ;;
11891   *)
11892     # If it is relative, then search for the first ld in PATH.
11893     with_gnu_ld=unknown
11894     ;;
11895   esac
11896 elif test "$with_gnu_ld" = yes; then
11897   { echo "$as_me:$LINENO: checking for GNU ld" >&5
11898 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
11899 else
11900   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
11901 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
11902 fi
11903 if test "${lt_cv_path_LD+set}" = set; then
11904   echo $ECHO_N "(cached) $ECHO_C" >&6
11905 else
11906   if test -z "$LD"; then
11907   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11908   for ac_dir in $PATH; do
11909     IFS="$lt_save_ifs"
11910     test -z "$ac_dir" && ac_dir=.
11911     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11912       lt_cv_path_LD="$ac_dir/$ac_prog"
11913       # Check to see if the program is GNU ld.  I'd rather use --version,
11914       # but apparently some variants of GNU ld only accept -v.
11915       # Break only if it was the GNU/non-GNU ld that we prefer.
11916       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11917       *GNU* | *'with BFD'*)
11918         test "$with_gnu_ld" != no && break
11919         ;;
11920       *)
11921         test "$with_gnu_ld" != yes && break
11922         ;;
11923       esac
11924     fi
11925   done
11926   IFS="$lt_save_ifs"
11927 else
11928   lt_cv_path_LD="$LD" # Let the user override the test with a path.
11929 fi
11930 fi
11931
11932 LD="$lt_cv_path_LD"
11933 if test -n "$LD"; then
11934   { echo "$as_me:$LINENO: result: $LD" >&5
11935 echo "${ECHO_T}$LD" >&6; }
11936 else
11937   { echo "$as_me:$LINENO: result: no" >&5
11938 echo "${ECHO_T}no" >&6; }
11939 fi
11940 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
11941 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
11942    { (exit 1); exit 1; }; }
11943 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
11944 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
11945 if test "${lt_cv_prog_gnu_ld+set}" = set; then
11946   echo $ECHO_N "(cached) $ECHO_C" >&6
11947 else
11948   # I'd rather use --version here, but apparently some GNU lds only accept -v.
11949 case `$LD -v 2>&1 </dev/null` in
11950 *GNU* | *'with BFD'*)
11951   lt_cv_prog_gnu_ld=yes
11952   ;;
11953 *)
11954   lt_cv_prog_gnu_ld=no
11955   ;;
11956 esac
11957 fi
11958 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
11959 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
11960 with_gnu_ld=$lt_cv_prog_gnu_ld
11961
11962
11963
11964   # Check if GNU C++ uses GNU ld as the underlying linker, since the
11965   # archiving commands below assume that GNU ld is being used.
11966   if test "$with_gnu_ld" = yes; then
11967     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11968     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'
11969
11970     hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11971     export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11972
11973     # If archive_cmds runs LD, not CC, wlarc should be empty
11974     # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11975     #     investigate it a little bit more. (MM)
11976     wlarc='${wl}'
11977
11978     # ancient GNU ld didn't support --whole-archive et. al.
11979     if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
11980         grep 'no-whole-archive' > /dev/null; then
11981       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11982     else
11983       whole_archive_flag_spec_CXX=
11984     fi
11985   else
11986     with_gnu_ld=no
11987     wlarc=
11988
11989     # A generic and very simple default shared library creation
11990     # command for GNU C++ for the case where it uses the native
11991     # linker, instead of GNU ld.  If possible, this setting should
11992     # overridden to take advantage of the native linker features on
11993     # the platform it is being used on.
11994     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11995   fi
11996
11997   # Commands to make compiler produce verbose output that lists
11998   # what "hidden" libraries, object files and flags are used when
11999   # linking a shared library.
12000   output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12001
12002 else
12003   GXX=no
12004   with_gnu_ld=no
12005   wlarc=
12006 fi
12007
12008 # PORTME: fill in a description of your system's C++ link characteristics
12009 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12010 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
12011 ld_shlibs_CXX=yes
12012 case $host_os in
12013   aix3*)
12014     # FIXME: insert proper C++ library support
12015     ld_shlibs_CXX=no
12016     ;;
12017   aix4* | aix5*)
12018     if test "$host_cpu" = ia64; then
12019       # On IA64, the linker does run time linking by default, so we don't
12020       # have to do anything special.
12021       aix_use_runtimelinking=no
12022       exp_sym_flag='-Bexport'
12023       no_entry_flag=""
12024     else
12025       aix_use_runtimelinking=no
12026
12027       # Test if we are trying to use run time linking or normal
12028       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12029       # need to do runtime linking.
12030       case $host_os in aix4.[23]|aix4.[23].*|aix5*)
12031         for ld_flag in $LDFLAGS; do
12032           case $ld_flag in
12033           *-brtl*)
12034             aix_use_runtimelinking=yes
12035             break
12036             ;;
12037           esac
12038         done
12039         ;;
12040       esac
12041
12042       exp_sym_flag='-bexport'
12043       no_entry_flag='-bnoentry'
12044     fi
12045
12046     # When large executables or shared objects are built, AIX ld can
12047     # have problems creating the table of contents.  If linking a library
12048     # or program results in "error TOC overflow" add -mminimal-toc to
12049     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
12050     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12051
12052     archive_cmds_CXX=''
12053     hardcode_direct_CXX=yes
12054     hardcode_libdir_separator_CXX=':'
12055     link_all_deplibs_CXX=yes
12056
12057     if test "$GXX" = yes; then
12058       case $host_os in aix4.[012]|aix4.[012].*)
12059       # We only want to do this on AIX 4.2 and lower, the check
12060       # below for broken collect2 doesn't work under 4.3+
12061         collect2name=`${CC} -print-prog-name=collect2`
12062         if test -f "$collect2name" && \
12063            strings "$collect2name" | grep resolve_lib_name >/dev/null
12064         then
12065           # We have reworked collect2
12066           hardcode_direct_CXX=yes
12067         else
12068           # We have old collect2
12069           hardcode_direct_CXX=unsupported
12070           # It fails to find uninstalled libraries when the uninstalled
12071           # path is not listed in the libpath.  Setting hardcode_minus_L
12072           # to unsupported forces relinking
12073           hardcode_minus_L_CXX=yes
12074           hardcode_libdir_flag_spec_CXX='-L$libdir'
12075           hardcode_libdir_separator_CXX=
12076         fi
12077         ;;
12078       esac
12079       shared_flag='-shared'
12080       if test "$aix_use_runtimelinking" = yes; then
12081         shared_flag="$shared_flag "'${wl}-G'
12082       fi
12083     else
12084       # not using gcc
12085       if test "$host_cpu" = ia64; then
12086         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12087         # chokes on -Wl,-G. The following line is correct:
12088         shared_flag='-G'
12089       else
12090         if test "$aix_use_runtimelinking" = yes; then
12091           shared_flag='${wl}-G'
12092         else
12093           shared_flag='${wl}-bM:SRE'
12094         fi
12095       fi
12096     fi
12097
12098     # It seems that -bexpall does not export symbols beginning with
12099     # underscore (_), so it is better to generate a list of symbols to export.
12100     always_export_symbols_CXX=yes
12101     if test "$aix_use_runtimelinking" = yes; then
12102       # Warning - without using the other runtime loading flags (-brtl),
12103       # -berok will link without error, but may produce a broken library.
12104       allow_undefined_flag_CXX='-berok'
12105       # Determine the default libpath from the value encoded in an empty executable.
12106       cat >conftest.$ac_ext <<_ACEOF
12107 /* confdefs.h.  */
12108 _ACEOF
12109 cat confdefs.h >>conftest.$ac_ext
12110 cat >>conftest.$ac_ext <<_ACEOF
12111 /* end confdefs.h.  */
12112
12113 int
12114 main ()
12115 {
12116
12117   ;
12118   return 0;
12119 }
12120 _ACEOF
12121 rm -f conftest.$ac_objext conftest$ac_exeext
12122 if { (ac_try="$ac_link"
12123 case "(($ac_try" in
12124   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12125   *) ac_try_echo=$ac_try;;
12126 esac
12127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12128   (eval "$ac_link") 2>conftest.er1
12129   ac_status=$?
12130   grep -v '^ *+' conftest.er1 >conftest.err
12131   rm -f conftest.er1
12132   cat conftest.err >&5
12133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12134   (exit $ac_status); } && {
12135          test -z "$ac_cxx_werror_flag" ||
12136          test ! -s conftest.err
12137        } && test -s conftest$ac_exeext &&
12138        $as_test_x conftest$ac_exeext; then
12139
12140 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
12141 }'`
12142 # Check for a 64-bit object if we didn't find anything.
12143 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
12144 }'`; fi
12145 else
12146   echo "$as_me: failed program was:" >&5
12147 sed 's/^/| /' conftest.$ac_ext >&5
12148
12149
12150 fi
12151
12152 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12153       conftest$ac_exeext conftest.$ac_ext
12154 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12155
12156       hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12157
12158       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"
12159      else
12160       if test "$host_cpu" = ia64; then
12161         hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12162         allow_undefined_flag_CXX="-z nodefs"
12163         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"
12164       else
12165         # Determine the default libpath from the value encoded in an empty executable.
12166         cat >conftest.$ac_ext <<_ACEOF
12167 /* confdefs.h.  */
12168 _ACEOF
12169 cat confdefs.h >>conftest.$ac_ext
12170 cat >>conftest.$ac_ext <<_ACEOF
12171 /* end confdefs.h.  */
12172
12173 int
12174 main ()
12175 {
12176
12177   ;
12178   return 0;
12179 }
12180 _ACEOF
12181 rm -f conftest.$ac_objext conftest$ac_exeext
12182 if { (ac_try="$ac_link"
12183 case "(($ac_try" in
12184   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12185   *) ac_try_echo=$ac_try;;
12186 esac
12187 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12188   (eval "$ac_link") 2>conftest.er1
12189   ac_status=$?
12190   grep -v '^ *+' conftest.er1 >conftest.err
12191   rm -f conftest.er1
12192   cat conftest.err >&5
12193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12194   (exit $ac_status); } && {
12195          test -z "$ac_cxx_werror_flag" ||
12196          test ! -s conftest.err
12197        } && test -s conftest$ac_exeext &&
12198        $as_test_x conftest$ac_exeext; then
12199
12200 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
12201 }'`
12202 # Check for a 64-bit object if we didn't find anything.
12203 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
12204 }'`; fi
12205 else
12206   echo "$as_me: failed program was:" >&5
12207 sed 's/^/| /' conftest.$ac_ext >&5
12208
12209
12210 fi
12211
12212 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12213       conftest$ac_exeext conftest.$ac_ext
12214 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12215
12216         hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12217         # Warning - without using the other run time loading flags,
12218         # -berok will link without error, but may produce a broken library.
12219         no_undefined_flag_CXX=' ${wl}-bernotok'
12220         allow_undefined_flag_CXX=' ${wl}-berok'
12221         # Exported symbols can be pulled into shared objects from archives
12222         whole_archive_flag_spec_CXX='$convenience'
12223         archive_cmds_need_lc_CXX=yes
12224         # This is similar to how AIX traditionally builds its shared libraries.
12225         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'
12226       fi
12227     fi
12228     ;;
12229
12230   beos*)
12231     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12232       allow_undefined_flag_CXX=unsupported
12233       # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12234       # support --undefined.  This deserves some investigation.  FIXME
12235       archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12236     else
12237       ld_shlibs_CXX=no
12238     fi
12239     ;;
12240
12241   chorus*)
12242     case $cc_basename in
12243       *)
12244         # FIXME: insert proper C++ library support
12245         ld_shlibs_CXX=no
12246         ;;
12247     esac
12248     ;;
12249
12250   cygwin* | mingw* | pw32*)
12251     # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12252     # as there is no search path for DLLs.
12253     hardcode_libdir_flag_spec_CXX='-L$libdir'
12254     allow_undefined_flag_CXX=unsupported
12255     always_export_symbols_CXX=no
12256     enable_shared_with_static_runtimes_CXX=yes
12257
12258     if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
12259       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'
12260       # If the export-symbols file already is a .def file (1st line
12261       # is EXPORTS), use it as is; otherwise, prepend...
12262       archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12263         cp $export_symbols $output_objdir/$soname.def;
12264       else
12265         echo EXPORTS > $output_objdir/$soname.def;
12266         cat $export_symbols >> $output_objdir/$soname.def;
12267       fi~
12268       $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'
12269     else
12270       ld_shlibs_CXX=no
12271     fi
12272   ;;
12273       darwin* | rhapsody*)
12274         case $host_os in
12275         rhapsody* | darwin1.[012])
12276          allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
12277          ;;
12278        *) # Darwin 1.3 on
12279          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
12280            allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
12281          else
12282            case ${MACOSX_DEPLOYMENT_TARGET} in
12283              10.[012])
12284                allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
12285                ;;
12286              10.*)
12287                allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
12288                ;;
12289            esac
12290          fi
12291          ;;
12292         esac
12293       archive_cmds_need_lc_CXX=no
12294       hardcode_direct_CXX=no
12295       hardcode_automatic_CXX=yes
12296       hardcode_shlibpath_var_CXX=unsupported
12297       whole_archive_flag_spec_CXX=''
12298       link_all_deplibs_CXX=yes
12299
12300     if test "$GXX" = yes ; then
12301       lt_int_apple_cc_single_mod=no
12302       output_verbose_link_cmd='echo'
12303       if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
12304        lt_int_apple_cc_single_mod=yes
12305       fi
12306       if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
12307        archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
12308       else
12309           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'
12310         fi
12311         module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12312         # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
12313           if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
12314             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}'
12315           else
12316             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}'
12317           fi
12318             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}'
12319       else
12320       case $cc_basename in
12321         xlc*)
12322          output_verbose_link_cmd='echo'
12323           archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
12324           module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12325           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
12326           archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
12327           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}'
12328           ;;
12329        *)
12330          ld_shlibs_CXX=no
12331           ;;
12332       esac
12333       fi
12334         ;;
12335
12336   dgux*)
12337     case $cc_basename in
12338       ec++*)
12339         # FIXME: insert proper C++ library support
12340         ld_shlibs_CXX=no
12341         ;;
12342       ghcx*)
12343         # Green Hills C++ Compiler
12344         # FIXME: insert proper C++ library support
12345         ld_shlibs_CXX=no
12346         ;;
12347       *)
12348         # FIXME: insert proper C++ library support
12349         ld_shlibs_CXX=no
12350         ;;
12351     esac
12352     ;;
12353   freebsd[12]*)
12354     # C++ shared libraries reported to be fairly broken before switch to ELF
12355     ld_shlibs_CXX=no
12356     ;;
12357   freebsd-elf*)
12358     archive_cmds_need_lc_CXX=no
12359     ;;
12360   freebsd* | dragonfly*)
12361     # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12362     # conventions
12363     ld_shlibs_CXX=yes
12364     ;;
12365   gnu*)
12366     ;;
12367   hpux9*)
12368     hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12369     hardcode_libdir_separator_CXX=:
12370     export_dynamic_flag_spec_CXX='${wl}-E'
12371     hardcode_direct_CXX=yes
12372     hardcode_minus_L_CXX=yes # Not in the search PATH,
12373                                 # but as the default
12374                                 # location of the library.
12375
12376     case $cc_basename in
12377     CC*)
12378       # FIXME: insert proper C++ library support
12379       ld_shlibs_CXX=no
12380       ;;
12381     aCC*)
12382       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'
12383       # Commands to make compiler produce verbose output that lists
12384       # what "hidden" libraries, object files and flags are used when
12385       # linking a shared library.
12386       #
12387       # There doesn't appear to be a way to prevent this compiler from
12388       # explicitly linking system object files so we need to strip them
12389       # from the output so that they don't get included in the library
12390       # dependencies.
12391       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'
12392       ;;
12393     *)
12394       if test "$GXX" = yes; then
12395         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'
12396       else
12397         # FIXME: insert proper C++ library support
12398         ld_shlibs_CXX=no
12399       fi
12400       ;;
12401     esac
12402     ;;
12403   hpux10*|hpux11*)
12404     if test $with_gnu_ld = no; then
12405       hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12406       hardcode_libdir_separator_CXX=:
12407
12408       case $host_cpu in
12409       hppa*64*|ia64*)
12410         hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
12411         ;;
12412       *)
12413         export_dynamic_flag_spec_CXX='${wl}-E'
12414         ;;
12415       esac
12416     fi
12417     case $host_cpu in
12418     hppa*64*|ia64*)
12419       hardcode_direct_CXX=no
12420       hardcode_shlibpath_var_CXX=no
12421       ;;
12422     *)
12423       hardcode_direct_CXX=yes
12424       hardcode_minus_L_CXX=yes # Not in the search PATH,
12425                                               # but as the default
12426                                               # location of the library.
12427       ;;
12428     esac
12429
12430     case $cc_basename in
12431       CC*)
12432         # FIXME: insert proper C++ library support
12433         ld_shlibs_CXX=no
12434         ;;
12435       aCC*)
12436         case $host_cpu in
12437         hppa*64*)
12438           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12439           ;;
12440         ia64*)
12441           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12442           ;;
12443         *)
12444           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12445           ;;
12446         esac
12447         # Commands to make compiler produce verbose output that lists
12448         # what "hidden" libraries, object files and flags are used when
12449         # linking a shared library.
12450         #
12451         # There doesn't appear to be a way to prevent this compiler from
12452         # explicitly linking system object files so we need to strip them
12453         # from the output so that they don't get included in the library
12454         # dependencies.
12455         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'
12456         ;;
12457       *)
12458         if test "$GXX" = yes; then
12459           if test $with_gnu_ld = no; then
12460             case $host_cpu in
12461             hppa*64*)
12462               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12463               ;;
12464             ia64*)
12465               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12466               ;;
12467             *)
12468               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'
12469               ;;
12470             esac
12471           fi
12472         else
12473           # FIXME: insert proper C++ library support
12474           ld_shlibs_CXX=no
12475         fi
12476         ;;
12477     esac
12478     ;;
12479   interix3*)
12480     hardcode_direct_CXX=no
12481     hardcode_shlibpath_var_CXX=no
12482     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12483     export_dynamic_flag_spec_CXX='${wl}-E'
12484     # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12485     # Instead, shared libraries are loaded at an image base (0x10000000 by
12486     # default) and relocated if they conflict, which is a slow very memory
12487     # consuming and fragmenting process.  To avoid this, we pick a random,
12488     # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12489     # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
12490     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'
12491     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'
12492     ;;
12493   irix5* | irix6*)
12494     case $cc_basename in
12495       CC*)
12496         # SGI C++
12497         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'
12498
12499         # Archives containing C++ object files must be created using
12500         # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
12501         # necessary to make sure instantiated templates are included
12502         # in the archive.
12503         old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12504         ;;
12505       *)
12506         if test "$GXX" = yes; then
12507           if test "$with_gnu_ld" = no; then
12508             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'
12509           else
12510             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'
12511           fi
12512         fi
12513         link_all_deplibs_CXX=yes
12514         ;;
12515     esac
12516     hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12517     hardcode_libdir_separator_CXX=:
12518     ;;
12519   linux* | k*bsd*-gnu)
12520     case $cc_basename in
12521       KCC*)
12522         # Kuck and Associates, Inc. (KAI) C++ Compiler
12523
12524         # KCC will only create a shared library if the output file
12525         # ends with ".so" (or ".sl" for HP-UX), so rename the library
12526         # to its proper name (with version) after linking.
12527         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'
12528         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'
12529         # Commands to make compiler produce verbose output that lists
12530         # what "hidden" libraries, object files and flags are used when
12531         # linking a shared library.
12532         #
12533         # There doesn't appear to be a way to prevent this compiler from
12534         # explicitly linking system object files so we need to strip them
12535         # from the output so that they don't get included in the library
12536         # dependencies.
12537         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'
12538
12539         hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
12540         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12541
12542         # Archives containing C++ object files must be created using
12543         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12544         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12545         ;;
12546       icpc*)
12547         # Intel C++
12548         with_gnu_ld=yes
12549         # version 8.0 and above of icpc choke on multiply defined symbols
12550         # if we add $predep_objects and $postdep_objects, however 7.1 and
12551         # earlier do not add the objects themselves.
12552         case `$CC -V 2>&1` in
12553         *"Version 7."*)
12554           archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12555           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'
12556           ;;
12557         *)  # Version 8.0 or newer
12558           tmp_idyn=
12559           case $host_cpu in
12560             ia64*) tmp_idyn=' -i_dynamic';;
12561           esac
12562           archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12563           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'
12564           ;;
12565         esac
12566         archive_cmds_need_lc_CXX=no
12567         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12568         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12569         whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12570         ;;
12571       pgCC*)
12572         # Portland Group C++ compiler
12573         archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12574         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'
12575
12576         hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12577         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12578         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'
12579         ;;
12580       cxx*)
12581         # Compaq C++
12582         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12583         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'
12584
12585         runpath_var=LD_RUN_PATH
12586         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12587         hardcode_libdir_separator_CXX=:
12588
12589         # Commands to make compiler produce verbose output that lists
12590         # what "hidden" libraries, object files and flags are used when
12591         # linking a shared library.
12592         #
12593         # There doesn't appear to be a way to prevent this compiler from
12594         # explicitly linking system object files so we need to strip them
12595         # from the output so that they don't get included in the library
12596         # dependencies.
12597         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'
12598         ;;
12599     esac
12600     ;;
12601   lynxos*)
12602     # FIXME: insert proper C++ library support
12603     ld_shlibs_CXX=no
12604     ;;
12605   m88k*)
12606     # FIXME: insert proper C++ library support
12607     ld_shlibs_CXX=no
12608     ;;
12609   mvs*)
12610     case $cc_basename in
12611       cxx*)
12612         # FIXME: insert proper C++ library support
12613         ld_shlibs_CXX=no
12614         ;;
12615       *)
12616         # FIXME: insert proper C++ library support
12617         ld_shlibs_CXX=no
12618         ;;
12619     esac
12620     ;;
12621   netbsd* | netbsdelf*-gnu)
12622     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12623       archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
12624       wlarc=
12625       hardcode_libdir_flag_spec_CXX='-R$libdir'
12626       hardcode_direct_CXX=yes
12627       hardcode_shlibpath_var_CXX=no
12628     fi
12629     # Workaround some broken pre-1.5 toolchains
12630     output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
12631     ;;
12632   openbsd2*)
12633     # C++ shared libraries are fairly broken
12634     ld_shlibs_CXX=no
12635     ;;
12636   openbsd*)
12637     hardcode_direct_CXX=yes
12638     hardcode_shlibpath_var_CXX=no
12639     archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12640     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12641     if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12642       archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
12643       export_dynamic_flag_spec_CXX='${wl}-E'
12644       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12645     fi
12646     output_verbose_link_cmd='echo'
12647     ;;
12648   osf3*)
12649     case $cc_basename in
12650       KCC*)
12651         # Kuck and Associates, Inc. (KAI) C++ Compiler
12652
12653         # KCC will only create a shared library if the output file
12654         # ends with ".so" (or ".sl" for HP-UX), so rename the library
12655         # to its proper name (with version) after linking.
12656         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'
12657
12658         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12659         hardcode_libdir_separator_CXX=:
12660
12661         # Archives containing C++ object files must be created using
12662         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12663         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12664
12665         ;;
12666       RCC*)
12667         # Rational C++ 2.4.1
12668         # FIXME: insert proper C++ library support
12669         ld_shlibs_CXX=no
12670         ;;
12671       cxx*)
12672         allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12673         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'
12674
12675         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12676         hardcode_libdir_separator_CXX=:
12677
12678         # Commands to make compiler produce verbose output that lists
12679         # what "hidden" libraries, object files and flags are used when
12680         # linking a shared library.
12681         #
12682         # There doesn't appear to be a way to prevent this compiler from
12683         # explicitly linking system object files so we need to strip them
12684         # from the output so that they don't get included in the library
12685         # dependencies.
12686         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'
12687         ;;
12688       *)
12689         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12690           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12691           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'
12692
12693           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12694           hardcode_libdir_separator_CXX=:
12695
12696           # Commands to make compiler produce verbose output that lists
12697           # what "hidden" libraries, object files and flags are used when
12698           # linking a shared library.
12699           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12700
12701         else
12702           # FIXME: insert proper C++ library support
12703           ld_shlibs_CXX=no
12704         fi
12705         ;;
12706     esac
12707     ;;
12708   osf4* | osf5*)
12709     case $cc_basename in
12710       KCC*)
12711         # Kuck and Associates, Inc. (KAI) C++ Compiler
12712
12713         # KCC will only create a shared library if the output file
12714         # ends with ".so" (or ".sl" for HP-UX), so rename the library
12715         # to its proper name (with version) after linking.
12716         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'
12717
12718         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12719         hardcode_libdir_separator_CXX=:
12720
12721         # Archives containing C++ object files must be created using
12722         # the KAI C++ compiler.
12723         old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
12724         ;;
12725       RCC*)
12726         # Rational C++ 2.4.1
12727         # FIXME: insert proper C++ library support
12728         ld_shlibs_CXX=no
12729         ;;
12730       cxx*)
12731         allow_undefined_flag_CXX=' -expect_unresolved \*'
12732         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'
12733         archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12734           echo "-hidden">> $lib.exp~
12735           $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~
12736           $rm $lib.exp'
12737
12738         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12739         hardcode_libdir_separator_CXX=:
12740
12741         # Commands to make compiler produce verbose output that lists
12742         # what "hidden" libraries, object files and flags are used when
12743         # linking a shared library.
12744         #
12745         # There doesn't appear to be a way to prevent this compiler from
12746         # explicitly linking system object files so we need to strip them
12747         # from the output so that they don't get included in the library
12748         # dependencies.
12749         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'
12750         ;;
12751       *)
12752         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12753           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12754          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'
12755
12756           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12757           hardcode_libdir_separator_CXX=:
12758
12759           # Commands to make compiler produce verbose output that lists
12760           # what "hidden" libraries, object files and flags are used when
12761           # linking a shared library.
12762           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12763
12764         else
12765           # FIXME: insert proper C++ library support
12766           ld_shlibs_CXX=no
12767         fi
12768         ;;
12769     esac
12770     ;;
12771   psos*)
12772     # FIXME: insert proper C++ library support
12773     ld_shlibs_CXX=no
12774     ;;
12775   sunos4*)
12776     case $cc_basename in
12777       CC*)
12778         # Sun C++ 4.x
12779         # FIXME: insert proper C++ library support
12780         ld_shlibs_CXX=no
12781         ;;
12782       lcc*)
12783         # Lucid
12784         # FIXME: insert proper C++ library support
12785         ld_shlibs_CXX=no
12786         ;;
12787       *)
12788         # FIXME: insert proper C++ library support
12789         ld_shlibs_CXX=no
12790         ;;
12791     esac
12792     ;;
12793   solaris*)
12794     case $cc_basename in
12795       CC*)
12796         # Sun C++ 4.2, 5.x and Centerline C++
12797         archive_cmds_need_lc_CXX=yes
12798         no_undefined_flag_CXX=' -zdefs'
12799         archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12800         archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12801         $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'
12802
12803         hardcode_libdir_flag_spec_CXX='-R$libdir'
12804         hardcode_shlibpath_var_CXX=no
12805         case $host_os in
12806           solaris2.[0-5] | solaris2.[0-5].*) ;;
12807           *)
12808             # The C++ compiler is used as linker so we must use $wl
12809             # flag to pass the commands to the underlying system
12810             # linker. We must also pass each convience library through
12811             # to the system linker between allextract/defaultextract.
12812             # The C++ compiler will combine linker options so we
12813             # cannot just pass the convience library names through
12814             # without $wl.
12815             # Supported since Solaris 2.6 (maybe 2.5.1?)
12816             whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract'
12817             ;;
12818         esac
12819         link_all_deplibs_CXX=yes
12820
12821         output_verbose_link_cmd='echo'
12822
12823         # Archives containing C++ object files must be created using
12824         # "CC -xar", where "CC" is the Sun C++ compiler.  This is
12825         # necessary to make sure instantiated templates are included
12826         # in the archive.
12827         old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12828         ;;
12829       gcx*)
12830         # Green Hills C++ Compiler
12831         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12832
12833         # The C++ compiler must be used to create the archive.
12834         old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12835         ;;
12836       *)
12837         # GNU C++ compiler with Solaris linker
12838         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12839           no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12840           if $CC --version | grep -v '^2\.7' > /dev/null; then
12841             archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12842             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12843                 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12844
12845             # Commands to make compiler produce verbose output that lists
12846             # what "hidden" libraries, object files and flags are used when
12847             # linking a shared library.
12848             output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12849           else
12850             # g++ 2.7 appears to require `-G' NOT `-shared' on this
12851             # platform.
12852             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12853             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12854                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12855
12856             # Commands to make compiler produce verbose output that lists
12857             # what "hidden" libraries, object files and flags are used when
12858             # linking a shared library.
12859             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12860           fi
12861
12862           hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12863         fi
12864         ;;
12865     esac
12866     ;;
12867   sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12868     no_undefined_flag_CXX='${wl}-z,text'
12869     archive_cmds_need_lc_CXX=no
12870     hardcode_shlibpath_var_CXX=no
12871     runpath_var='LD_RUN_PATH'
12872
12873     case $cc_basename in
12874       CC*)
12875         archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12876         archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12877         ;;
12878       *)
12879         archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12880         archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12881         ;;
12882     esac
12883     ;;
12884   sysv5* | sco3.2v5* | sco5v6*)
12885     # Note: We can NOT use -z defs as we might desire, because we do not
12886     # link with -lc, and that would cause any symbols used from libc to
12887     # always be unresolved, which means just about no library would
12888     # ever link correctly.  If we're not using GNU ld we use -z text
12889     # though, which does catch some bad symbols but isn't as heavy-handed
12890     # as -z defs.
12891     # For security reasons, it is highly recommended that you always
12892     # use absolute paths for naming shared libraries, and exclude the
12893     # DT_RUNPATH tag from executables and libraries.  But doing so
12894     # requires that you compile everything twice, which is a pain.
12895     # So that behaviour is only enabled if SCOABSPATH is set to a
12896     # non-empty value in the environment.  Most likely only useful for
12897     # creating official distributions of packages.
12898     # This is a hack until libtool officially supports absolute path
12899     # names for shared libraries.
12900     no_undefined_flag_CXX='${wl}-z,text'
12901     allow_undefined_flag_CXX='${wl}-z,nodefs'
12902     archive_cmds_need_lc_CXX=no
12903     hardcode_shlibpath_var_CXX=no
12904     hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
12905     hardcode_libdir_separator_CXX=':'
12906     link_all_deplibs_CXX=yes
12907     export_dynamic_flag_spec_CXX='${wl}-Bexport'
12908     runpath_var='LD_RUN_PATH'
12909
12910     case $cc_basename in
12911       CC*)
12912         archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12913         archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12914         ;;
12915       *)
12916         archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12917         archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12918         ;;
12919     esac
12920     ;;
12921   tandem*)
12922     case $cc_basename in
12923       NCC*)
12924         # NonStop-UX NCC 3.20
12925         # FIXME: insert proper C++ library support
12926         ld_shlibs_CXX=no
12927         ;;
12928       *)
12929         # FIXME: insert proper C++ library support
12930         ld_shlibs_CXX=no
12931         ;;
12932     esac
12933     ;;
12934   vxworks*)
12935     # FIXME: insert proper C++ library support
12936     ld_shlibs_CXX=no
12937     ;;
12938   *)
12939     # FIXME: insert proper C++ library support
12940     ld_shlibs_CXX=no
12941     ;;
12942 esac
12943 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12944 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12945 test "$ld_shlibs_CXX" = no && can_build_shared=no
12946
12947 GCC_CXX="$GXX"
12948 LD_CXX="$LD"
12949
12950
12951 cat > conftest.$ac_ext <<EOF
12952 class Foo
12953 {
12954 public:
12955   Foo (void) { a = 0; }
12956 private:
12957   int a;
12958 };
12959 EOF
12960
12961 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12962   (eval $ac_compile) 2>&5
12963   ac_status=$?
12964   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12965   (exit $ac_status); }; then
12966   # Parse the compiler output and extract the necessary
12967   # objects, libraries and library flags.
12968
12969   # Sentinel used to keep track of whether or not we are before
12970   # the conftest object file.
12971   pre_test_object_deps_done=no
12972
12973   # The `*' in the case matches for architectures that use `case' in
12974   # $output_verbose_cmd can trigger glob expansion during the loop
12975   # eval without this substitution.
12976   output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
12977
12978   for p in `eval $output_verbose_link_cmd`; do
12979     case $p in
12980
12981     -L* | -R* | -l*)
12982        # Some compilers place space between "-{L,R}" and the path.
12983        # Remove the space.
12984        if test $p = "-L" \
12985           || test $p = "-R"; then
12986          prev=$p
12987          continue
12988        else
12989          prev=
12990        fi
12991
12992        if test "$pre_test_object_deps_done" = no; then
12993          case $p in
12994          -L* | -R*)
12995            # Internal compiler library paths should come after those
12996            # provided the user.  The postdeps already come after the
12997            # user supplied libs so there is no need to process them.
12998            if test -z "$compiler_lib_search_path_CXX"; then
12999              compiler_lib_search_path_CXX="${prev}${p}"
13000            else
13001              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13002            fi
13003            ;;
13004          # The "-l" case would never come before the object being
13005          # linked, so don't bother handling this case.
13006          esac
13007        else
13008          if test -z "$postdeps_CXX"; then
13009            postdeps_CXX="${prev}${p}"
13010          else
13011            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13012          fi
13013        fi
13014        ;;
13015
13016     *.$objext)
13017        # This assumes that the test object file only shows up
13018        # once in the compiler output.
13019        if test "$p" = "conftest.$objext"; then
13020          pre_test_object_deps_done=yes
13021          continue
13022        fi
13023
13024        if test "$pre_test_object_deps_done" = no; then
13025          if test -z "$predep_objects_CXX"; then
13026            predep_objects_CXX="$p"
13027          else
13028            predep_objects_CXX="$predep_objects_CXX $p"
13029          fi
13030        else
13031          if test -z "$postdep_objects_CXX"; then
13032            postdep_objects_CXX="$p"
13033          else
13034            postdep_objects_CXX="$postdep_objects_CXX $p"
13035          fi
13036        fi
13037        ;;
13038
13039     *) ;; # Ignore the rest.
13040
13041     esac
13042   done
13043
13044   # Clean up.
13045   rm -f a.out a.exe
13046 else
13047   echo "libtool.m4: error: problem compiling CXX test program"
13048 fi
13049
13050 $rm -f confest.$objext
13051
13052 # PORTME: override above test on systems where it is broken
13053 case $host_os in
13054 interix3*)
13055   # Interix 3.5 installs completely hosed .la files for C++, so rather than
13056   # hack all around it, let's just trust "g++" to DTRT.
13057   predep_objects_CXX=
13058   postdep_objects_CXX=
13059   postdeps_CXX=
13060   ;;
13061
13062 solaris*)
13063   case $cc_basename in
13064   CC*)
13065     # Adding this requires a known-good setup of shared libraries for
13066     # Sun compiler versions before 5.6, else PIC objects from an old
13067     # archive will be linked into the output, leading to subtle bugs.
13068     postdeps_CXX='-lCstd -lCrun'
13069     ;;
13070   esac
13071   ;;
13072 esac
13073
13074
13075 case " $postdeps_CXX " in
13076 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
13077 esac
13078
13079 lt_prog_compiler_wl_CXX=
13080 lt_prog_compiler_pic_CXX=
13081 lt_prog_compiler_static_CXX=
13082
13083 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13084 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
13085
13086   # C++ specific cases for pic, static, wl, etc.
13087   if test "$GXX" = yes; then
13088     lt_prog_compiler_wl_CXX='-Wl,'
13089     lt_prog_compiler_static_CXX='-static'
13090
13091     case $host_os in
13092     aix*)
13093       # All AIX code is PIC.
13094       if test "$host_cpu" = ia64; then
13095         # AIX 5 now supports IA64 processor
13096         lt_prog_compiler_static_CXX='-Bstatic'
13097       fi
13098       ;;
13099     amigaos*)
13100       # FIXME: we need at least 68020 code to build shared libraries, but
13101       # adding the `-m68020' flag to GCC prevents building anything better,
13102       # like `-m68040'.
13103       lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
13104       ;;
13105     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13106       # PIC is the default for these OSes.
13107       ;;
13108     mingw* | os2* | pw32*)
13109       # This hack is so that the source file can tell whether it is being
13110       # built for inclusion in a dll (and should export symbols for example).
13111       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13112       ;;
13113     darwin* | rhapsody*)
13114       # PIC is the default on this platform
13115       # Common symbols not allowed in MH_DYLIB files
13116       lt_prog_compiler_pic_CXX='-fno-common'
13117       ;;
13118     *djgpp*)
13119       # DJGPP does not support shared libraries at all
13120       lt_prog_compiler_pic_CXX=
13121       ;;
13122     interix3*)
13123       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13124       # Instead, we relocate shared libraries at runtime.
13125       ;;
13126     sysv4*MP*)
13127       if test -d /usr/nec; then
13128         lt_prog_compiler_pic_CXX=-Kconform_pic
13129       fi
13130       ;;
13131     hpux*)
13132       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13133       # not for PA HP-UX.
13134       case $host_cpu in
13135       hppa*64*|ia64*)
13136         ;;
13137       *)
13138         lt_prog_compiler_pic_CXX='-fPIC'
13139         ;;
13140       esac
13141       ;;
13142     *)
13143       lt_prog_compiler_pic_CXX='-fPIC'
13144       ;;
13145     esac
13146   else
13147     case $host_os in
13148       aix4* | aix5*)
13149         # All AIX code is PIC.
13150         if test "$host_cpu" = ia64; then
13151           # AIX 5 now supports IA64 processor
13152           lt_prog_compiler_static_CXX='-Bstatic'
13153         else
13154           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
13155         fi
13156         ;;
13157       chorus*)
13158         case $cc_basename in
13159         cxch68*)
13160           # Green Hills C++ Compiler
13161           # _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"
13162           ;;
13163         esac
13164         ;;
13165        darwin*)
13166          # PIC is the default on this platform
13167          # Common symbols not allowed in MH_DYLIB files
13168          case $cc_basename in
13169            xlc*)
13170            lt_prog_compiler_pic_CXX='-qnocommon'
13171            lt_prog_compiler_wl_CXX='-Wl,'
13172            ;;
13173          esac
13174        ;;
13175       dgux*)
13176         case $cc_basename in
13177           ec++*)
13178             lt_prog_compiler_pic_CXX='-KPIC'
13179             ;;
13180           ghcx*)
13181             # Green Hills C++ Compiler
13182             lt_prog_compiler_pic_CXX='-pic'
13183             ;;
13184           *)
13185             ;;
13186         esac
13187         ;;
13188       freebsd* | dragonfly*)
13189         # FreeBSD uses GNU C++
13190         ;;
13191       hpux9* | hpux10* | hpux11*)
13192         case $cc_basename in
13193           CC*)
13194             lt_prog_compiler_wl_CXX='-Wl,'
13195             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13196             if test "$host_cpu" != ia64; then
13197               lt_prog_compiler_pic_CXX='+Z'
13198             fi
13199             ;;
13200           aCC*)
13201             lt_prog_compiler_wl_CXX='-Wl,'
13202             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13203             case $host_cpu in
13204             hppa*64*|ia64*)
13205               # +Z the default
13206               ;;
13207             *)
13208               lt_prog_compiler_pic_CXX='+Z'
13209               ;;
13210             esac
13211             ;;
13212           *)
13213             ;;
13214         esac
13215         ;;
13216       interix*)
13217         # This is c89, which is MS Visual C++ (no shared libs)
13218         # Anyone wants to do a port?
13219         ;;
13220       irix5* | irix6* | nonstopux*)
13221         case $cc_basename in
13222           CC*)
13223             lt_prog_compiler_wl_CXX='-Wl,'
13224             lt_prog_compiler_static_CXX='-non_shared'
13225             # CC pic flag -KPIC is the default.
13226             ;;
13227           *)
13228             ;;
13229         esac
13230         ;;
13231       linux* | k*bsd*-gnu)
13232         case $cc_basename in
13233           KCC*)
13234             # KAI C++ Compiler
13235             lt_prog_compiler_wl_CXX='--backend -Wl,'
13236             lt_prog_compiler_pic_CXX='-fPIC'
13237             ;;
13238           icpc* | ecpc*)
13239             # Intel C++
13240             lt_prog_compiler_wl_CXX='-Wl,'
13241             lt_prog_compiler_pic_CXX='-KPIC'
13242             lt_prog_compiler_static_CXX='-static'
13243             ;;
13244           pgCC*)
13245             # Portland Group C++ compiler.
13246             lt_prog_compiler_wl_CXX='-Wl,'
13247             lt_prog_compiler_pic_CXX='-fpic'
13248             lt_prog_compiler_static_CXX='-Bstatic'
13249             ;;
13250           cxx*)
13251             # Compaq C++
13252             # Make sure the PIC flag is empty.  It appears that all Alpha
13253             # Linux and Compaq Tru64 Unix objects are PIC.
13254             lt_prog_compiler_pic_CXX=
13255             lt_prog_compiler_static_CXX='-non_shared'
13256             ;;
13257           *)
13258             ;;
13259         esac
13260         ;;
13261       lynxos*)
13262         ;;
13263       m88k*)
13264         ;;
13265       mvs*)
13266         case $cc_basename in
13267           cxx*)
13268             lt_prog_compiler_pic_CXX='-W c,exportall'
13269             ;;
13270           *)
13271             ;;
13272         esac
13273         ;;
13274       netbsd* | netbsdelf*-gnu)
13275         ;;
13276       osf3* | osf4* | osf5*)
13277         case $cc_basename in
13278           KCC*)
13279             lt_prog_compiler_wl_CXX='--backend -Wl,'
13280             ;;
13281           RCC*)
13282             # Rational C++ 2.4.1
13283             lt_prog_compiler_pic_CXX='-pic'
13284             ;;
13285           cxx*)
13286             # Digital/Compaq C++
13287             lt_prog_compiler_wl_CXX='-Wl,'
13288             # Make sure the PIC flag is empty.  It appears that all Alpha
13289             # Linux and Compaq Tru64 Unix objects are PIC.
13290             lt_prog_compiler_pic_CXX=
13291             lt_prog_compiler_static_CXX='-non_shared'
13292             ;;
13293           *)
13294             ;;
13295         esac
13296         ;;
13297       psos*)
13298         ;;
13299       solaris*)
13300         case $cc_basename in
13301           CC*)
13302             # Sun C++ 4.2, 5.x and Centerline C++
13303             lt_prog_compiler_pic_CXX='-KPIC'
13304             lt_prog_compiler_static_CXX='-Bstatic'
13305             lt_prog_compiler_wl_CXX='-Qoption ld '
13306             ;;
13307           gcx*)
13308             # Green Hills C++ Compiler
13309             lt_prog_compiler_pic_CXX='-PIC'
13310             ;;
13311           *)
13312             ;;
13313         esac
13314         ;;
13315       sunos4*)
13316         case $cc_basename in
13317           CC*)
13318             # Sun C++ 4.x
13319             lt_prog_compiler_pic_CXX='-pic'
13320             lt_prog_compiler_static_CXX='-Bstatic'
13321             ;;
13322           lcc*)
13323             # Lucid
13324             lt_prog_compiler_pic_CXX='-pic'
13325             ;;
13326           *)
13327             ;;
13328         esac
13329         ;;
13330       tandem*)
13331         case $cc_basename in
13332           NCC*)
13333             # NonStop-UX NCC 3.20
13334             lt_prog_compiler_pic_CXX='-KPIC'
13335             ;;
13336           *)
13337             ;;
13338         esac
13339         ;;
13340       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13341         case $cc_basename in
13342           CC*)
13343             lt_prog_compiler_wl_CXX='-Wl,'
13344             lt_prog_compiler_pic_CXX='-KPIC'
13345             lt_prog_compiler_static_CXX='-Bstatic'
13346             ;;
13347         esac
13348         ;;
13349       vxworks*)
13350         ;;
13351       *)
13352         lt_prog_compiler_can_build_shared_CXX=no
13353         ;;
13354     esac
13355   fi
13356
13357 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
13358 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
13359
13360 #
13361 # Check to make sure the PIC flag actually works.
13362 #
13363 if test -n "$lt_prog_compiler_pic_CXX"; then
13364
13365 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
13366 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
13367 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
13368   echo $ECHO_N "(cached) $ECHO_C" >&6
13369 else
13370   lt_prog_compiler_pic_works_CXX=no
13371   ac_outfile=conftest.$ac_objext
13372    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13373    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
13374    # Insert the option either (1) after the last *FLAGS variable, or
13375    # (2) before a word containing "conftest.", or (3) at the end.
13376    # Note that $ac_compile itself does not contain backslashes and begins
13377    # with a dollar sign (not a hyphen), so the echo should work correctly.
13378    # The option is referenced via a variable to avoid confusing sed.
13379    lt_compile=`echo "$ac_compile" | $SED \
13380    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13381    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13382    -e 's:$: $lt_compiler_flag:'`
13383    (eval echo "\"\$as_me:13383: $lt_compile\"" >&5)
13384    (eval "$lt_compile" 2>conftest.err)
13385    ac_status=$?
13386    cat conftest.err >&5
13387    echo "$as_me:13387: \$? = $ac_status" >&5
13388    if (exit $ac_status) && test -s "$ac_outfile"; then
13389      # The compiler can only warn and ignore the option if not recognized
13390      # So say no if there are warnings other than the usual output.
13391      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13392      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13393      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13394        lt_prog_compiler_pic_works_CXX=yes
13395      fi
13396    fi
13397    $rm conftest*
13398
13399 fi
13400 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
13401 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
13402
13403 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
13404     case $lt_prog_compiler_pic_CXX in
13405      "" | " "*) ;;
13406      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
13407      esac
13408 else
13409     lt_prog_compiler_pic_CXX=
13410      lt_prog_compiler_can_build_shared_CXX=no
13411 fi
13412
13413 fi
13414 case $host_os in
13415   # For platforms which do not support PIC, -DPIC is meaningless:
13416   *djgpp*)
13417     lt_prog_compiler_pic_CXX=
13418     ;;
13419   *)
13420     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
13421     ;;
13422 esac
13423
13424 #
13425 # Check to make sure the static flag actually works.
13426 #
13427 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
13428 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13429 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
13430 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
13431   echo $ECHO_N "(cached) $ECHO_C" >&6
13432 else
13433   lt_prog_compiler_static_works_CXX=no
13434    save_LDFLAGS="$LDFLAGS"
13435    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13436    printf "$lt_simple_link_test_code" > conftest.$ac_ext
13437    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13438      # The linker can only warn and ignore the option if not recognized
13439      # So say no if there are warnings
13440      if test -s conftest.err; then
13441        # Append any errors to the config.log.
13442        cat conftest.err 1>&5
13443        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
13444        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13445        if diff conftest.exp conftest.er2 >/dev/null; then
13446          lt_prog_compiler_static_works_CXX=yes
13447        fi
13448      else
13449        lt_prog_compiler_static_works_CXX=yes
13450      fi
13451    fi
13452    $rm conftest*
13453    LDFLAGS="$save_LDFLAGS"
13454
13455 fi
13456 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
13457 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
13458
13459 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
13460     :
13461 else
13462     lt_prog_compiler_static_CXX=
13463 fi
13464
13465
13466 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13467 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
13468 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
13469   echo $ECHO_N "(cached) $ECHO_C" >&6
13470 else
13471   lt_cv_prog_compiler_c_o_CXX=no
13472    $rm -r conftest 2>/dev/null
13473    mkdir conftest
13474    cd conftest
13475    mkdir out
13476    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13477
13478    lt_compiler_flag="-o out/conftest2.$ac_objext"
13479    # Insert the option either (1) after the last *FLAGS variable, or
13480    # (2) before a word containing "conftest.", or (3) at the end.
13481    # Note that $ac_compile itself does not contain backslashes and begins
13482    # with a dollar sign (not a hyphen), so the echo should work correctly.
13483    lt_compile=`echo "$ac_compile" | $SED \
13484    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13485    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13486    -e 's:$: $lt_compiler_flag:'`
13487    (eval echo "\"\$as_me:13487: $lt_compile\"" >&5)
13488    (eval "$lt_compile" 2>out/conftest.err)
13489    ac_status=$?
13490    cat out/conftest.err >&5
13491    echo "$as_me:13491: \$? = $ac_status" >&5
13492    if (exit $ac_status) && test -s out/conftest2.$ac_objext
13493    then
13494      # The compiler can only warn and ignore the option if not recognized
13495      # So say no if there are warnings
13496      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13497      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13498      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13499        lt_cv_prog_compiler_c_o_CXX=yes
13500      fi
13501    fi
13502    chmod u+w . 2>&5
13503    $rm conftest*
13504    # SGI C++ compiler will create directory out/ii_files/ for
13505    # template instantiation
13506    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13507    $rm out/* && rmdir out
13508    cd ..
13509    rmdir conftest
13510    $rm conftest*
13511
13512 fi
13513 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13514 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
13515
13516
13517 hard_links="nottested"
13518 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
13519   # do not overwrite the value of need_locks provided by the user
13520   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13521 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
13522   hard_links=yes
13523   $rm conftest*
13524   ln conftest.a conftest.b 2>/dev/null && hard_links=no
13525   touch conftest.a
13526   ln conftest.a conftest.b 2>&5 || hard_links=no
13527   ln conftest.a conftest.b 2>/dev/null && hard_links=no
13528   { echo "$as_me:$LINENO: result: $hard_links" >&5
13529 echo "${ECHO_T}$hard_links" >&6; }
13530   if test "$hard_links" = no; then
13531     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13532 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13533     need_locks=warn
13534   fi
13535 else
13536   need_locks=no
13537 fi
13538
13539 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13540 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
13541
13542   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13543   case $host_os in
13544   aix4* | aix5*)
13545     # If we're using GNU nm, then we don't want the "-C" option.
13546     # -C means demangle to AIX nm, but means don't demangle with GNU nm
13547     if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13548       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'
13549     else
13550       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'
13551     fi
13552     ;;
13553   pw32*)
13554     export_symbols_cmds_CXX="$ltdll_cmds"
13555   ;;
13556   cygwin* | mingw*)
13557     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'
13558   ;;
13559   linux* | k*bsd*-gnu)
13560     link_all_deplibs_CXX=no
13561   ;;
13562   *)
13563     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13564   ;;
13565   esac
13566
13567 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
13568 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
13569 test "$ld_shlibs_CXX" = no && can_build_shared=no
13570
13571 #
13572 # Do we need to explicitly link libc?
13573 #
13574 case "x$archive_cmds_need_lc_CXX" in
13575 x|xyes)
13576   # Assume -lc should be added
13577   archive_cmds_need_lc_CXX=yes
13578
13579   if test "$enable_shared" = yes && test "$GCC" = yes; then
13580     case $archive_cmds_CXX in
13581     *'~'*)
13582       # FIXME: we may have to deal with multi-command sequences.
13583       ;;
13584     '$CC '*)
13585       # Test whether the compiler implicitly links with -lc since on some
13586       # systems, -lgcc has to come before -lc. If gcc already passes -lc
13587       # to ld, don't add -lc before -lgcc.
13588       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13589 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
13590       $rm conftest*
13591       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13592
13593       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13594   (eval $ac_compile) 2>&5
13595   ac_status=$?
13596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13597   (exit $ac_status); } 2>conftest.err; then
13598         soname=conftest
13599         lib=conftest
13600         libobjs=conftest.$ac_objext
13601         deplibs=
13602         wl=$lt_prog_compiler_wl_CXX
13603         pic_flag=$lt_prog_compiler_pic_CXX
13604         compiler_flags=-v
13605         linker_flags=-v
13606         verstring=
13607         output_objdir=.
13608         libname=conftest
13609         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
13610         allow_undefined_flag_CXX=
13611         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13612   (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13613   ac_status=$?
13614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13615   (exit $ac_status); }
13616         then
13617           archive_cmds_need_lc_CXX=no
13618         else
13619           archive_cmds_need_lc_CXX=yes
13620         fi
13621         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
13622       else
13623         cat conftest.err 1>&5
13624       fi
13625       $rm conftest*
13626       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
13627 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
13628       ;;
13629     esac
13630   fi
13631   ;;
13632 esac
13633
13634 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13635 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
13636 library_names_spec=
13637 libname_spec='lib$name'
13638 soname_spec=
13639 shrext_cmds=".so"
13640 postinstall_cmds=
13641 postuninstall_cmds=
13642 finish_cmds=
13643 finish_eval=
13644 shlibpath_var=
13645 shlibpath_overrides_runpath=unknown
13646 version_type=none
13647 dynamic_linker="$host_os ld.so"
13648 sys_lib_dlsearch_path_spec="/lib /usr/lib"
13649 if test "$GCC" = yes; then
13650   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13651   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
13652     # if the path contains ";" then we assume it to be the separator
13653     # otherwise default to the standard path separator (i.e. ":") - it is
13654     # assumed that no part of a normal pathname contains ";" but that should
13655     # okay in the real world where ";" in dirpaths is itself problematic.
13656     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13657   else
13658     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
13659   fi
13660 else
13661   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13662 fi
13663 need_lib_prefix=unknown
13664 hardcode_into_libs=no
13665
13666 # when you set need_version to no, make sure it does not cause -set_version
13667 # flags to be left without arguments
13668 need_version=unknown
13669
13670 case $host_os in
13671 aix3*)
13672   version_type=linux
13673   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13674   shlibpath_var=LIBPATH
13675
13676   # AIX 3 has no versioning support, so we append a major version to the name.
13677   soname_spec='${libname}${release}${shared_ext}$major'
13678   ;;
13679
13680 aix4* | aix5*)
13681   version_type=linux
13682   need_lib_prefix=no
13683   need_version=no
13684   hardcode_into_libs=yes
13685   if test "$host_cpu" = ia64; then
13686     # AIX 5 supports IA64
13687     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13688     shlibpath_var=LD_LIBRARY_PATH
13689   else
13690     # With GCC up to 2.95.x, collect2 would create an import file
13691     # for dependence libraries.  The import file would start with
13692     # the line `#! .'.  This would cause the generated library to
13693     # depend on `.', always an invalid library.  This was fixed in
13694     # development snapshots of GCC prior to 3.0.
13695     case $host_os in
13696       aix4 | aix4.[01] | aix4.[01].*)
13697       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13698            echo ' yes '
13699            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13700         :
13701       else
13702         can_build_shared=no
13703       fi
13704       ;;
13705     esac
13706     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13707     # soname into executable. Probably we can add versioning support to
13708     # collect2, so additional links can be useful in future.
13709     if test "$aix_use_runtimelinking" = yes; then
13710       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13711       # instead of lib<name>.a to let people know that these are not
13712       # typical AIX shared libraries.
13713       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13714     else
13715       # We preserve .a as extension for shared libraries through AIX4.2
13716       # and later when we are not doing run time linking.
13717       library_names_spec='${libname}${release}.a $libname.a'
13718       soname_spec='${libname}${release}${shared_ext}$major'
13719     fi
13720     shlibpath_var=LIBPATH
13721   fi
13722   ;;
13723
13724 amigaos*)
13725   library_names_spec='$libname.ixlibrary $libname.a'
13726   # Create ${libname}_ixlibrary.a entries in /sys/libs.
13727   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'
13728   ;;
13729
13730 beos*)
13731   library_names_spec='${libname}${shared_ext}'
13732   dynamic_linker="$host_os ld.so"
13733   shlibpath_var=LIBRARY_PATH
13734   ;;
13735
13736 bsdi[45]*)
13737   version_type=linux
13738   need_version=no
13739   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13740   soname_spec='${libname}${release}${shared_ext}$major'
13741   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13742   shlibpath_var=LD_LIBRARY_PATH
13743   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13744   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13745   # the default ld.so.conf also contains /usr/contrib/lib and
13746   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13747   # libtool to hard-code these into programs
13748   ;;
13749
13750 cygwin* | mingw* | pw32*)
13751   version_type=windows
13752   shrext_cmds=".dll"
13753   need_version=no
13754   need_lib_prefix=no
13755
13756   case $GCC,$host_os in
13757   yes,cygwin* | yes,mingw* | yes,pw32*)
13758     library_names_spec='$libname.dll.a'
13759     # DLL is installed to $(libdir)/../bin by postinstall_cmds
13760     postinstall_cmds='base_file=`basename \${file}`~
13761       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13762       dldir=$destdir/`dirname \$dlpath`~
13763       test -d \$dldir || mkdir -p \$dldir~
13764       $install_prog $dir/$dlname \$dldir/$dlname~
13765       chmod a+x \$dldir/$dlname'
13766     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13767       dlpath=$dir/\$dldll~
13768        $rm \$dlpath'
13769     shlibpath_overrides_runpath=yes
13770
13771     case $host_os in
13772     cygwin*)
13773       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13774       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13775       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13776       ;;
13777     mingw*)
13778       # MinGW DLLs use traditional 'lib' prefix
13779       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13780       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13781       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13782         # It is most probably a Windows format PATH printed by
13783         # mingw gcc, but we are running on Cygwin. Gcc prints its search
13784         # path with ; separators, and with drive letters. We can handle the
13785         # drive letters (cygwin fileutils understands them), so leave them,
13786         # especially as we might pass files found there to a mingw objdump,
13787         # which wouldn't understand a cygwinified path. Ahh.
13788         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13789       else
13790         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
13791       fi
13792       ;;
13793     pw32*)
13794       # pw32 DLLs use 'pw' prefix rather than 'lib'
13795       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13796       ;;
13797     esac
13798     ;;
13799
13800   *)
13801     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13802     ;;
13803   esac
13804   dynamic_linker='Win32 ld.exe'
13805   # FIXME: first we should search . and the directory the executable is in
13806   shlibpath_var=PATH
13807   ;;
13808
13809 darwin* | rhapsody*)
13810   dynamic_linker="$host_os dyld"
13811   version_type=darwin
13812   need_lib_prefix=no
13813   need_version=no
13814   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13815   soname_spec='${libname}${release}${major}$shared_ext'
13816   shlibpath_overrides_runpath=yes
13817   shlibpath_var=DYLD_LIBRARY_PATH
13818   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13819   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
13820   if test "$GCC" = yes; then
13821     sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
13822   else
13823     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
13824   fi
13825   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13826   ;;
13827
13828 dgux*)
13829   version_type=linux
13830   need_lib_prefix=no
13831   need_version=no
13832   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13833   soname_spec='${libname}${release}${shared_ext}$major'
13834   shlibpath_var=LD_LIBRARY_PATH
13835   ;;
13836
13837 freebsd1*)
13838   dynamic_linker=no
13839   ;;
13840
13841 freebsd* | dragonfly*)
13842   # DragonFly does not have aout.  When/if they implement a new
13843   # versioning mechanism, adjust this.
13844   if test -x /usr/bin/objformat; then
13845     objformat=`/usr/bin/objformat`
13846   else
13847     case $host_os in
13848     freebsd[123]*) objformat=aout ;;
13849     *) objformat=elf ;;
13850     esac
13851   fi
13852   version_type=freebsd-$objformat
13853   case $version_type in
13854     freebsd-elf*)
13855       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13856       need_version=no
13857       need_lib_prefix=no
13858       ;;
13859     freebsd-*)
13860       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13861       need_version=yes
13862       ;;
13863   esac
13864   shlibpath_var=LD_LIBRARY_PATH
13865   case $host_os in
13866   freebsd2*)
13867     shlibpath_overrides_runpath=yes
13868     ;;
13869   freebsd3.[01]* | freebsdelf3.[01]*)
13870     shlibpath_overrides_runpath=yes
13871     hardcode_into_libs=yes
13872     ;;
13873   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13874   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13875     shlibpath_overrides_runpath=no
13876     hardcode_into_libs=yes
13877     ;;
13878   freebsd*) # from 4.6 on
13879     shlibpath_overrides_runpath=yes
13880     hardcode_into_libs=yes
13881     ;;
13882   esac
13883   ;;
13884
13885 gnu*)
13886   version_type=linux
13887   need_lib_prefix=no
13888   need_version=no
13889   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13890   soname_spec='${libname}${release}${shared_ext}$major'
13891   shlibpath_var=LD_LIBRARY_PATH
13892   hardcode_into_libs=yes
13893   ;;
13894
13895 hpux9* | hpux10* | hpux11*)
13896   # Give a soname corresponding to the major version so that dld.sl refuses to
13897   # link against other versions.
13898   version_type=sunos
13899   need_lib_prefix=no
13900   need_version=no
13901   case $host_cpu in
13902   ia64*)
13903     shrext_cmds='.so'
13904     hardcode_into_libs=yes
13905     dynamic_linker="$host_os dld.so"
13906     shlibpath_var=LD_LIBRARY_PATH
13907     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13908     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13909     soname_spec='${libname}${release}${shared_ext}$major'
13910     if test "X$HPUX_IA64_MODE" = X32; then
13911       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13912     else
13913       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13914     fi
13915     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13916     ;;
13917    hppa*64*)
13918      shrext_cmds='.sl'
13919      hardcode_into_libs=yes
13920      dynamic_linker="$host_os dld.sl"
13921      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13922      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13923      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13924      soname_spec='${libname}${release}${shared_ext}$major'
13925      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13926      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13927      ;;
13928    *)
13929     shrext_cmds='.sl'
13930     dynamic_linker="$host_os dld.sl"
13931     shlibpath_var=SHLIB_PATH
13932     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13933     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13934     soname_spec='${libname}${release}${shared_ext}$major'
13935     ;;
13936   esac
13937   # HP-UX runs *really* slowly unless shared libraries are mode 555.
13938   postinstall_cmds='chmod 555 $lib'
13939   ;;
13940
13941 interix3*)
13942   version_type=linux
13943   need_lib_prefix=no
13944   need_version=no
13945   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13946   soname_spec='${libname}${release}${shared_ext}$major'
13947   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13948   shlibpath_var=LD_LIBRARY_PATH
13949   shlibpath_overrides_runpath=no
13950   hardcode_into_libs=yes
13951   ;;
13952
13953 irix5* | irix6* | nonstopux*)
13954   case $host_os in
13955     nonstopux*) version_type=nonstopux ;;
13956     *)
13957         if test "$lt_cv_prog_gnu_ld" = yes; then
13958                 version_type=linux
13959         else
13960                 version_type=irix
13961         fi ;;
13962   esac
13963   need_lib_prefix=no
13964   need_version=no
13965   soname_spec='${libname}${release}${shared_ext}$major'
13966   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13967   case $host_os in
13968   irix5* | nonstopux*)
13969     libsuff= shlibsuff=
13970     ;;
13971   *)
13972     case $LD in # libtool.m4 will add one of these switches to LD
13973     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13974       libsuff= shlibsuff= libmagic=32-bit;;
13975     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13976       libsuff=32 shlibsuff=N32 libmagic=N32;;
13977     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13978       libsuff=64 shlibsuff=64 libmagic=64-bit;;
13979     *) libsuff= shlibsuff= libmagic=never-match;;
13980     esac
13981     ;;
13982   esac
13983   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13984   shlibpath_overrides_runpath=no
13985   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13986   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13987   hardcode_into_libs=yes
13988   ;;
13989
13990 # No shared lib support for Linux oldld, aout, or coff.
13991 linux*oldld* | linux*aout* | linux*coff*)
13992   dynamic_linker=no
13993   ;;
13994
13995 # This must be Linux ELF.
13996 linux* | k*bsd*-gnu)
13997   version_type=linux
13998   need_lib_prefix=no
13999   need_version=no
14000   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14001   soname_spec='${libname}${release}${shared_ext}$major'
14002   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14003   shlibpath_var=LD_LIBRARY_PATH
14004   shlibpath_overrides_runpath=no
14005   # This implies no fast_install, which is unacceptable.
14006   # Some rework will be needed to allow for fast_install
14007   # before this can be enabled.
14008   hardcode_into_libs=yes
14009
14010   # Append ld.so.conf contents to the search path
14011   if test -f /etc/ld.so.conf; then
14012     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,        ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
14013     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14014   fi
14015
14016   # We used to test for /lib/ld.so.1 and disable shared libraries on
14017   # powerpc, because MkLinux only supported shared libraries with the
14018   # GNU dynamic linker.  Since this was broken with cross compilers,
14019   # most powerpc-linux boxes support dynamic linking these days and
14020   # people can always --disable-shared, the test was removed, and we
14021   # assume the GNU/Linux dynamic linker is in use.
14022   dynamic_linker='GNU/Linux ld.so'
14023   ;;
14024
14025 netbsdelf*-gnu)
14026   version_type=linux
14027   need_lib_prefix=no
14028   need_version=no
14029   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14030   soname_spec='${libname}${release}${shared_ext}$major'
14031   shlibpath_var=LD_LIBRARY_PATH
14032   shlibpath_overrides_runpath=no
14033   hardcode_into_libs=yes
14034   dynamic_linker='NetBSD ld.elf_so'
14035   ;;
14036
14037 netbsd*)
14038   version_type=sunos
14039   need_lib_prefix=no
14040   need_version=no
14041   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14042     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14043     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14044     dynamic_linker='NetBSD (a.out) ld.so'
14045   else
14046     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14047     soname_spec='${libname}${release}${shared_ext}$major'
14048     dynamic_linker='NetBSD ld.elf_so'
14049   fi
14050   shlibpath_var=LD_LIBRARY_PATH
14051   shlibpath_overrides_runpath=yes
14052   hardcode_into_libs=yes
14053   ;;
14054
14055 newsos6)
14056   version_type=linux
14057   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14058   shlibpath_var=LD_LIBRARY_PATH
14059   shlibpath_overrides_runpath=yes
14060   ;;
14061
14062 nto-qnx*)
14063   version_type=linux
14064   need_lib_prefix=no
14065   need_version=no
14066   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14067   soname_spec='${libname}${release}${shared_ext}$major'
14068   shlibpath_var=LD_LIBRARY_PATH
14069   shlibpath_overrides_runpath=yes
14070   ;;
14071
14072 openbsd*)
14073   version_type=sunos
14074   sys_lib_dlsearch_path_spec="/usr/lib"
14075   need_lib_prefix=no
14076   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14077   case $host_os in
14078     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14079     *)                         need_version=no  ;;
14080   esac
14081   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14082   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14083   shlibpath_var=LD_LIBRARY_PATH
14084   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14085     case $host_os in
14086       openbsd2.[89] | openbsd2.[89].*)
14087         shlibpath_overrides_runpath=no
14088         ;;
14089       *)
14090         shlibpath_overrides_runpath=yes
14091         ;;
14092       esac
14093   else
14094     shlibpath_overrides_runpath=yes
14095   fi
14096   ;;
14097
14098 os2*)
14099   libname_spec='$name'
14100   shrext_cmds=".dll"
14101   need_lib_prefix=no
14102   library_names_spec='$libname${shared_ext} $libname.a'
14103   dynamic_linker='OS/2 ld.exe'
14104   shlibpath_var=LIBPATH
14105   ;;
14106
14107 osf3* | osf4* | osf5*)
14108   version_type=osf
14109   need_lib_prefix=no
14110   need_version=no
14111   soname_spec='${libname}${release}${shared_ext}$major'
14112   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14113   shlibpath_var=LD_LIBRARY_PATH
14114   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14115   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14116   ;;
14117
14118 solaris*)
14119   version_type=linux
14120   need_lib_prefix=no
14121   need_version=no
14122   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14123   soname_spec='${libname}${release}${shared_ext}$major'
14124   shlibpath_var=LD_LIBRARY_PATH
14125   shlibpath_overrides_runpath=yes
14126   hardcode_into_libs=yes
14127   # ldd complains unless libraries are executable
14128   postinstall_cmds='chmod +x $lib'
14129   ;;
14130
14131 sunos4*)
14132   version_type=sunos
14133   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14134   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14135   shlibpath_var=LD_LIBRARY_PATH
14136   shlibpath_overrides_runpath=yes
14137   if test "$with_gnu_ld" = yes; then
14138     need_lib_prefix=no
14139   fi
14140   need_version=yes
14141   ;;
14142
14143 sysv4 | sysv4.3*)
14144   version_type=linux
14145   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14146   soname_spec='${libname}${release}${shared_ext}$major'
14147   shlibpath_var=LD_LIBRARY_PATH
14148   case $host_vendor in
14149     sni)
14150       shlibpath_overrides_runpath=no
14151       need_lib_prefix=no
14152       export_dynamic_flag_spec='${wl}-Blargedynsym'
14153       runpath_var=LD_RUN_PATH
14154       ;;
14155     siemens)
14156       need_lib_prefix=no
14157       ;;
14158     motorola)
14159       need_lib_prefix=no
14160       need_version=no
14161       shlibpath_overrides_runpath=no
14162       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14163       ;;
14164   esac
14165   ;;
14166
14167 sysv4*MP*)
14168   if test -d /usr/nec ;then
14169     version_type=linux
14170     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14171     soname_spec='$libname${shared_ext}.$major'
14172     shlibpath_var=LD_LIBRARY_PATH
14173   fi
14174   ;;
14175
14176 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14177   version_type=freebsd-elf
14178   need_lib_prefix=no
14179   need_version=no
14180   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14181   soname_spec='${libname}${release}${shared_ext}$major'
14182   shlibpath_var=LD_LIBRARY_PATH
14183   hardcode_into_libs=yes
14184   if test "$with_gnu_ld" = yes; then
14185     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14186     shlibpath_overrides_runpath=no
14187   else
14188     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14189     shlibpath_overrides_runpath=yes
14190     case $host_os in
14191       sco3.2v5*)
14192         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14193         ;;
14194     esac
14195   fi
14196   sys_lib_dlsearch_path_spec='/usr/lib'
14197   ;;
14198
14199 uts4*)
14200   version_type=linux
14201   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14202   soname_spec='${libname}${release}${shared_ext}$major'
14203   shlibpath_var=LD_LIBRARY_PATH
14204   ;;
14205
14206 *)
14207   dynamic_linker=no
14208   ;;
14209 esac
14210 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14211 echo "${ECHO_T}$dynamic_linker" >&6; }
14212 test "$dynamic_linker" = no && can_build_shared=no
14213
14214 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14215 if test "$GCC" = yes; then
14216   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14217 fi
14218
14219 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
14220 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
14221 hardcode_action_CXX=
14222 if test -n "$hardcode_libdir_flag_spec_CXX" || \
14223    test -n "$runpath_var_CXX" || \
14224    test "X$hardcode_automatic_CXX" = "Xyes" ; then
14225
14226   # We can hardcode non-existant directories.
14227   if test "$hardcode_direct_CXX" != no &&
14228      # If the only mechanism to avoid hardcoding is shlibpath_var, we
14229      # have to relink, otherwise we might link with an installed library
14230      # when we should be linking with a yet-to-be-installed one
14231      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
14232      test "$hardcode_minus_L_CXX" != no; then
14233     # Linking always hardcodes the temporary library directory.
14234     hardcode_action_CXX=relink
14235   else
14236     # We can link without hardcoding, and we can hardcode nonexisting dirs.
14237     hardcode_action_CXX=immediate
14238   fi
14239 else
14240   # We cannot hardcode anything, or else we can only hardcode existing
14241   # directories.
14242   hardcode_action_CXX=unsupported
14243 fi
14244 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
14245 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
14246
14247 if test "$hardcode_action_CXX" = relink; then
14248   # Fast installation is not supported
14249   enable_fast_install=no
14250 elif test "$shlibpath_overrides_runpath" = yes ||
14251      test "$enable_shared" = no; then
14252   # Fast installation is not necessary
14253   enable_fast_install=needless
14254 fi
14255
14256
14257 # The else clause should only fire when bootstrapping the
14258 # libtool distribution, otherwise you forgot to ship ltmain.sh
14259 # with your package, and you will get complaints that there are
14260 # no rules to generate ltmain.sh.
14261 if test -f "$ltmain"; then
14262   # See if we are running on zsh, and set the options which allow our commands through
14263   # without removal of \ escapes.
14264   if test -n "${ZSH_VERSION+set}" ; then
14265     setopt NO_GLOB_SUBST
14266   fi
14267   # Now quote all the things that may contain metacharacters while being
14268   # careful not to overquote the AC_SUBSTed values.  We take copies of the
14269   # variables and quote the copies for generation of the libtool script.
14270   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
14271     SED SHELL STRIP \
14272     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14273     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14274     deplibs_check_method reload_flag reload_cmds need_locks \
14275     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14276     lt_cv_sys_global_symbol_to_c_name_address \
14277     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14278     old_postinstall_cmds old_postuninstall_cmds \
14279     compiler_CXX \
14280     CC_CXX \
14281     LD_CXX \
14282     lt_prog_compiler_wl_CXX \
14283     lt_prog_compiler_pic_CXX \
14284     lt_prog_compiler_static_CXX \
14285     lt_prog_compiler_no_builtin_flag_CXX \
14286     export_dynamic_flag_spec_CXX \
14287     thread_safe_flag_spec_CXX \
14288     whole_archive_flag_spec_CXX \
14289     enable_shared_with_static_runtimes_CXX \
14290     old_archive_cmds_CXX \
14291     old_archive_from_new_cmds_CXX \
14292     predep_objects_CXX \
14293     postdep_objects_CXX \
14294     predeps_CXX \
14295     postdeps_CXX \
14296     compiler_lib_search_path_CXX \
14297     archive_cmds_CXX \
14298     archive_expsym_cmds_CXX \
14299     postinstall_cmds_CXX \
14300     postuninstall_cmds_CXX \
14301     old_archive_from_expsyms_cmds_CXX \
14302     allow_undefined_flag_CXX \
14303     no_undefined_flag_CXX \
14304     export_symbols_cmds_CXX \
14305     hardcode_libdir_flag_spec_CXX \
14306     hardcode_libdir_flag_spec_ld_CXX \
14307     hardcode_libdir_separator_CXX \
14308     hardcode_automatic_CXX \
14309     module_cmds_CXX \
14310     module_expsym_cmds_CXX \
14311     lt_cv_prog_compiler_c_o_CXX \
14312     exclude_expsyms_CXX \
14313     include_expsyms_CXX; do
14314
14315     case $var in
14316     old_archive_cmds_CXX | \
14317     old_archive_from_new_cmds_CXX | \
14318     archive_cmds_CXX | \
14319     archive_expsym_cmds_CXX | \
14320     module_cmds_CXX | \
14321     module_expsym_cmds_CXX | \
14322     old_archive_from_expsyms_cmds_CXX | \
14323     export_symbols_cmds_CXX | \
14324     extract_expsyms_cmds | reload_cmds | finish_cmds | \
14325     postinstall_cmds | postuninstall_cmds | \
14326     old_postinstall_cmds | old_postuninstall_cmds | \
14327     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14328       # Double-quote double-evaled strings.
14329       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14330       ;;
14331     *)
14332       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14333       ;;
14334     esac
14335   done
14336
14337   case $lt_echo in
14338   *'\$0 --fallback-echo"')
14339     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14340     ;;
14341   esac
14342
14343 cfgfile="$ofile"
14344
14345   cat <<__EOF__ >> "$cfgfile"
14346 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
14347
14348 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14349
14350 # Shell to use when invoking shell scripts.
14351 SHELL=$lt_SHELL
14352
14353 # Whether or not to build shared libraries.
14354 build_libtool_libs=$enable_shared
14355
14356 # Whether or not to build static libraries.
14357 build_old_libs=$enable_static
14358
14359 # Whether or not to add -lc for building shared libraries.
14360 build_libtool_need_lc=$archive_cmds_need_lc_CXX
14361
14362 # Whether or not to disallow shared libs when runtime libs are static
14363 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
14364
14365 # Whether or not to optimize for fast installation.
14366 fast_install=$enable_fast_install
14367
14368 # The host system.
14369 host_alias=$host_alias
14370 host=$host
14371 host_os=$host_os
14372
14373 # The build system.
14374 build_alias=$build_alias
14375 build=$build
14376 build_os=$build_os
14377
14378 # An echo program that does not interpret backslashes.
14379 echo=$lt_echo
14380
14381 # The archiver.
14382 AR=$lt_AR
14383 AR_FLAGS=$lt_AR_FLAGS
14384
14385 # A C compiler.
14386 LTCC=$lt_LTCC
14387
14388 # LTCC compiler flags.
14389 LTCFLAGS=$lt_LTCFLAGS
14390
14391 # A language-specific compiler.
14392 CC=$lt_compiler_CXX
14393
14394 # Is the compiler the GNU C compiler?
14395 with_gcc=$GCC_CXX
14396
14397 # An ERE matcher.
14398 EGREP=$lt_EGREP
14399
14400 # The linker used to build libraries.
14401 LD=$lt_LD_CXX
14402
14403 # Whether we need hard or soft links.
14404 LN_S=$lt_LN_S
14405
14406 # A BSD-compatible nm program.
14407 NM=$lt_NM
14408
14409 # A symbol stripping program
14410 STRIP=$lt_STRIP
14411
14412 # Used to examine libraries when file_magic_cmd begins "file"
14413 MAGIC_CMD=$MAGIC_CMD
14414
14415 # Used on cygwin: DLL creation program.
14416 DLLTOOL="$DLLTOOL"
14417
14418 # Used on cygwin: object dumper.
14419 OBJDUMP="$OBJDUMP"
14420
14421 # Used on cygwin: assembler.
14422 AS="$AS"
14423
14424 # The name of the directory that contains temporary libtool files.
14425 objdir=$objdir
14426
14427 # How to create reloadable object files.
14428 reload_flag=$lt_reload_flag
14429 reload_cmds=$lt_reload_cmds
14430
14431 # How to pass a linker flag through the compiler.
14432 wl=$lt_lt_prog_compiler_wl_CXX
14433
14434 # Object file suffix (normally "o").
14435 objext="$ac_objext"
14436
14437 # Old archive suffix (normally "a").
14438 libext="$libext"
14439
14440 # Shared library suffix (normally ".so").
14441 shrext_cmds='$shrext_cmds'
14442
14443 # Executable file suffix (normally "").
14444 exeext="$exeext"
14445
14446 # Additional compiler flags for building library objects.
14447 pic_flag=$lt_lt_prog_compiler_pic_CXX
14448 pic_mode=$pic_mode
14449
14450 # What is the maximum length of a command?
14451 max_cmd_len=$lt_cv_sys_max_cmd_len
14452
14453 # Does compiler simultaneously support -c and -o options?
14454 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
14455
14456 # Must we lock files when doing compilation?
14457 need_locks=$lt_need_locks
14458
14459 # Do we need the lib prefix for modules?
14460 need_lib_prefix=$need_lib_prefix
14461
14462 # Do we need a version for libraries?
14463 need_version=$need_version
14464
14465 # Whether dlopen is supported.
14466 dlopen_support=$enable_dlopen
14467
14468 # Whether dlopen of programs is supported.
14469 dlopen_self=$enable_dlopen_self
14470
14471 # Whether dlopen of statically linked programs is supported.
14472 dlopen_self_static=$enable_dlopen_self_static
14473
14474 # Compiler flag to prevent dynamic linking.
14475 link_static_flag=$lt_lt_prog_compiler_static_CXX
14476
14477 # Compiler flag to turn off builtin functions.
14478 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
14479
14480 # Compiler flag to allow reflexive dlopens.
14481 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
14482
14483 # Compiler flag to generate shared objects directly from archives.
14484 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
14485
14486 # Compiler flag to generate thread-safe objects.
14487 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
14488
14489 # Library versioning type.
14490 version_type=$version_type
14491
14492 # Format of library name prefix.
14493 libname_spec=$lt_libname_spec
14494
14495 # List of archive names.  First name is the real one, the rest are links.
14496 # The last name is the one that the linker finds with -lNAME.
14497 library_names_spec=$lt_library_names_spec
14498
14499 # The coded name of the library, if different from the real name.
14500 soname_spec=$lt_soname_spec
14501
14502 # Commands used to build and install an old-style archive.
14503 RANLIB=$lt_RANLIB
14504 old_archive_cmds=$lt_old_archive_cmds_CXX
14505 old_postinstall_cmds=$lt_old_postinstall_cmds
14506 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14507
14508 # Create an old-style archive from a shared archive.
14509 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
14510
14511 # Create a temporary old-style archive to link instead of a shared archive.
14512 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
14513
14514 # Commands used to build and install a shared archive.
14515 archive_cmds=$lt_archive_cmds_CXX
14516 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
14517 postinstall_cmds=$lt_postinstall_cmds
14518 postuninstall_cmds=$lt_postuninstall_cmds
14519
14520 # Commands used to build a loadable module (assumed same as above if empty)
14521 module_cmds=$lt_module_cmds_CXX
14522 module_expsym_cmds=$lt_module_expsym_cmds_CXX
14523
14524 # Commands to strip libraries.
14525 old_striplib=$lt_old_striplib
14526 striplib=$lt_striplib
14527
14528 # Dependencies to place before the objects being linked to create a
14529 # shared library.
14530 predep_objects=$lt_predep_objects_CXX
14531
14532 # Dependencies to place after the objects being linked to create a
14533 # shared library.
14534 postdep_objects=$lt_postdep_objects_CXX
14535
14536 # Dependencies to place before the objects being linked to create a
14537 # shared library.
14538 predeps=$lt_predeps_CXX
14539
14540 # Dependencies to place after the objects being linked to create a
14541 # shared library.
14542 postdeps=$lt_postdeps_CXX
14543
14544 # The library search path used internally by the compiler when linking
14545 # a shared library.
14546 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
14547
14548 # Method to check whether dependent libraries are shared objects.
14549 deplibs_check_method=$lt_deplibs_check_method
14550
14551 # Command to use when deplibs_check_method == file_magic.
14552 file_magic_cmd=$lt_file_magic_cmd
14553
14554 # Flag that allows shared libraries with undefined symbols to be built.
14555 allow_undefined_flag=$lt_allow_undefined_flag_CXX
14556
14557 # Flag that forces no undefined symbols.
14558 no_undefined_flag=$lt_no_undefined_flag_CXX
14559
14560 # Commands used to finish a libtool library installation in a directory.
14561 finish_cmds=$lt_finish_cmds
14562
14563 # Same as above, but a single script fragment to be evaled but not shown.
14564 finish_eval=$lt_finish_eval
14565
14566 # Take the output of nm and produce a listing of raw symbols and C names.
14567 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14568
14569 # Transform the output of nm in a proper C declaration
14570 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14571
14572 # Transform the output of nm in a C name address pair
14573 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14574
14575 # This is the shared library runtime path variable.
14576 runpath_var=$runpath_var
14577
14578 # This is the shared library path variable.
14579 shlibpath_var=$shlibpath_var
14580
14581 # Is shlibpath searched before the hard-coded library search path?
14582 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14583
14584 # How to hardcode a shared library path into an executable.
14585 hardcode_action=$hardcode_action_CXX
14586
14587 # Whether we should hardcode library paths into libraries.
14588 hardcode_into_libs=$hardcode_into_libs
14589
14590 # Flag to hardcode \$libdir into a binary during linking.
14591 # This must work even if \$libdir does not exist.
14592 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
14593
14594 # If ld is used when linking, flag to hardcode \$libdir into
14595 # a binary during linking. This must work even if \$libdir does
14596 # not exist.
14597 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
14598
14599 # Whether we need a single -rpath flag with a separated argument.
14600 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
14601
14602 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14603 # resulting binary.
14604 hardcode_direct=$hardcode_direct_CXX
14605
14606 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14607 # resulting binary.
14608 hardcode_minus_L=$hardcode_minus_L_CXX
14609
14610 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14611 # the resulting binary.
14612 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
14613
14614 # Set to yes if building a shared library automatically hardcodes DIR into the library
14615 # and all subsequent libraries and executables linked against it.
14616 hardcode_automatic=$hardcode_automatic_CXX
14617
14618 # Variables whose values should be saved in libtool wrapper scripts and
14619 # restored at relink time.
14620 variables_saved_for_relink="$variables_saved_for_relink"
14621
14622 # Whether libtool must link a program against all its dependency libraries.
14623 link_all_deplibs=$link_all_deplibs_CXX
14624
14625 # Compile-time system search path for libraries
14626 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14627
14628 # Run-time system search path for libraries
14629 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14630
14631 # Fix the shell variable \$srcfile for the compiler.
14632 fix_srcfile_path="$fix_srcfile_path_CXX"
14633
14634 # Set to yes if exported symbols are required.
14635 always_export_symbols=$always_export_symbols_CXX
14636
14637 # The commands to list exported symbols.
14638 export_symbols_cmds=$lt_export_symbols_cmds_CXX
14639
14640 # The commands to extract the exported symbol list from a shared archive.
14641 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14642
14643 # Symbols that should not be listed in the preloaded symbols.
14644 exclude_expsyms=$lt_exclude_expsyms_CXX
14645
14646 # Symbols that must always be exported.
14647 include_expsyms=$lt_include_expsyms_CXX
14648
14649 # ### END LIBTOOL TAG CONFIG: $tagname
14650
14651 __EOF__
14652
14653
14654 else
14655   # If there is no Makefile yet, we rely on a make rule to execute
14656   # `config.status --recheck' to rerun these tests and create the
14657   # libtool script then.
14658   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
14659   if test -f "$ltmain_in"; then
14660     test -f Makefile && make "$ltmain"
14661   fi
14662 fi
14663
14664
14665 ac_ext=c
14666 ac_cpp='$CPP $CPPFLAGS'
14667 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14668 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14669 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14670
14671 CC=$lt_save_CC
14672 LDCXX=$LD
14673 LD=$lt_save_LD
14674 GCC=$lt_save_GCC
14675 with_gnu_ldcxx=$with_gnu_ld
14676 with_gnu_ld=$lt_save_with_gnu_ld
14677 lt_cv_path_LDCXX=$lt_cv_path_LD
14678 lt_cv_path_LD=$lt_save_path_LD
14679 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14680 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14681
14682         else
14683           tagname=""
14684         fi
14685         ;;
14686
14687       F77)
14688         if test -n "$F77" && test "X$F77" != "Xno"; then
14689
14690 ac_ext=f
14691 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
14692 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14693 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
14694
14695
14696 archive_cmds_need_lc_F77=no
14697 allow_undefined_flag_F77=
14698 always_export_symbols_F77=no
14699 archive_expsym_cmds_F77=
14700 export_dynamic_flag_spec_F77=
14701 hardcode_direct_F77=no
14702 hardcode_libdir_flag_spec_F77=
14703 hardcode_libdir_flag_spec_ld_F77=
14704 hardcode_libdir_separator_F77=
14705 hardcode_minus_L_F77=no
14706 hardcode_automatic_F77=no
14707 module_cmds_F77=
14708 module_expsym_cmds_F77=
14709 link_all_deplibs_F77=unknown
14710 old_archive_cmds_F77=$old_archive_cmds
14711 no_undefined_flag_F77=
14712 whole_archive_flag_spec_F77=
14713 enable_shared_with_static_runtimes_F77=no
14714
14715 # Source file extension for f77 test sources.
14716 ac_ext=f
14717
14718 # Object file extension for compiled f77 test sources.
14719 objext=o
14720 objext_F77=$objext
14721
14722 # Code to be used in simple compile tests
14723 lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
14724
14725 # Code to be used in simple link tests
14726 lt_simple_link_test_code="      program t\n      end\n"
14727
14728 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
14729
14730 # If no C compiler was specified, use CC.
14731 LTCC=${LTCC-"$CC"}
14732
14733 # If no C compiler flags were specified, use CFLAGS.
14734 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14735
14736 # Allow CC to be a program name with arguments.
14737 compiler=$CC
14738
14739
14740 # save warnings/boilerplate of simple test code
14741 ac_outfile=conftest.$ac_objext
14742 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
14743 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14744 _lt_compiler_boilerplate=`cat conftest.err`
14745 $rm conftest*
14746
14747 ac_outfile=conftest.$ac_objext
14748 printf "$lt_simple_link_test_code" >conftest.$ac_ext
14749 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14750 _lt_linker_boilerplate=`cat conftest.err`
14751 $rm conftest*
14752
14753
14754 # Allow CC to be a program name with arguments.
14755 lt_save_CC="$CC"
14756 CC=${F77-"f77"}
14757 compiler=$CC
14758 compiler_F77=$CC
14759 for cc_temp in $compiler""; do
14760   case $cc_temp in
14761     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14762     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14763     \-*) ;;
14764     *) break;;
14765   esac
14766 done
14767 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14768
14769
14770 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14771 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
14772 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
14773 echo "${ECHO_T}$can_build_shared" >&6; }
14774
14775 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14776 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
14777 test "$can_build_shared" = "no" && enable_shared=no
14778
14779 # On AIX, shared libraries and static libraries use the same namespace, and
14780 # are all built from PIC.
14781 case $host_os in
14782 aix3*)
14783   test "$enable_shared" = yes && enable_static=no
14784   if test -n "$RANLIB"; then
14785     archive_cmds="$archive_cmds~\$RANLIB \$lib"
14786     postinstall_cmds='$RANLIB $lib'
14787   fi
14788   ;;
14789 aix4* | aix5*)
14790   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14791     test "$enable_shared" = yes && enable_static=no
14792   fi
14793   ;;
14794 esac
14795 { echo "$as_me:$LINENO: result: $enable_shared" >&5
14796 echo "${ECHO_T}$enable_shared" >&6; }
14797
14798 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14799 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
14800 # Make sure either enable_shared or enable_static is yes.
14801 test "$enable_shared" = yes || enable_static=yes
14802 { echo "$as_me:$LINENO: result: $enable_static" >&5
14803 echo "${ECHO_T}$enable_static" >&6; }
14804
14805 GCC_F77="$G77"
14806 LD_F77="$LD"
14807
14808 lt_prog_compiler_wl_F77=
14809 lt_prog_compiler_pic_F77=
14810 lt_prog_compiler_static_F77=
14811
14812 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14813 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
14814
14815   if test "$GCC" = yes; then
14816     lt_prog_compiler_wl_F77='-Wl,'
14817     lt_prog_compiler_static_F77='-static'
14818
14819     case $host_os in
14820       aix*)
14821       # All AIX code is PIC.
14822       if test "$host_cpu" = ia64; then
14823         # AIX 5 now supports IA64 processor
14824         lt_prog_compiler_static_F77='-Bstatic'
14825       fi
14826       ;;
14827
14828     amigaos*)
14829       # FIXME: we need at least 68020 code to build shared libraries, but
14830       # adding the `-m68020' flag to GCC prevents building anything better,
14831       # like `-m68040'.
14832       lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
14833       ;;
14834
14835     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14836       # PIC is the default for these OSes.
14837       ;;
14838
14839     mingw* | pw32* | os2*)
14840       # This hack is so that the source file can tell whether it is being
14841       # built for inclusion in a dll (and should export symbols for example).
14842       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14843       ;;
14844
14845     darwin* | rhapsody*)
14846       # PIC is the default on this platform
14847       # Common symbols not allowed in MH_DYLIB files
14848       lt_prog_compiler_pic_F77='-fno-common'
14849       ;;
14850
14851     interix3*)
14852       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14853       # Instead, we relocate shared libraries at runtime.
14854       ;;
14855
14856     msdosdjgpp*)
14857       # Just because we use GCC doesn't mean we suddenly get shared libraries
14858       # on systems that don't support them.
14859       lt_prog_compiler_can_build_shared_F77=no
14860       enable_shared=no
14861       ;;
14862
14863     sysv4*MP*)
14864       if test -d /usr/nec; then
14865         lt_prog_compiler_pic_F77=-Kconform_pic
14866       fi
14867       ;;
14868
14869     hpux*)
14870       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14871       # not for PA HP-UX.
14872       case $host_cpu in
14873       hppa*64*|ia64*)
14874         # +Z the default
14875         ;;
14876       *)
14877         lt_prog_compiler_pic_F77='-fPIC'
14878         ;;
14879       esac
14880       ;;
14881
14882     *)
14883       lt_prog_compiler_pic_F77='-fPIC'
14884       ;;
14885     esac
14886   else
14887     # PORTME Check for flag to pass linker flags through the system compiler.
14888     case $host_os in
14889     aix*)
14890       lt_prog_compiler_wl_F77='-Wl,'
14891       if test "$host_cpu" = ia64; then
14892         # AIX 5 now supports IA64 processor
14893         lt_prog_compiler_static_F77='-Bstatic'
14894       else
14895         lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
14896       fi
14897       ;;
14898       darwin*)
14899         # PIC is the default on this platform
14900         # Common symbols not allowed in MH_DYLIB files
14901        case $cc_basename in
14902          xlc*)
14903          lt_prog_compiler_pic_F77='-qnocommon'
14904          lt_prog_compiler_wl_F77='-Wl,'
14905          ;;
14906        esac
14907        ;;
14908
14909     mingw* | pw32* | os2*)
14910       # This hack is so that the source file can tell whether it is being
14911       # built for inclusion in a dll (and should export symbols for example).
14912       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14913       ;;
14914
14915     hpux9* | hpux10* | hpux11*)
14916       lt_prog_compiler_wl_F77='-Wl,'
14917       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14918       # not for PA HP-UX.
14919       case $host_cpu in
14920       hppa*64*|ia64*)
14921         # +Z the default
14922         ;;
14923       *)
14924         lt_prog_compiler_pic_F77='+Z'
14925         ;;
14926       esac
14927       # Is there a better lt_prog_compiler_static that works with the bundled CC?
14928       lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
14929       ;;
14930
14931     irix5* | irix6* | nonstopux*)
14932       lt_prog_compiler_wl_F77='-Wl,'
14933       # PIC (with -KPIC) is the default.
14934       lt_prog_compiler_static_F77='-non_shared'
14935       ;;
14936
14937     newsos6)
14938       lt_prog_compiler_pic_F77='-KPIC'
14939       lt_prog_compiler_static_F77='-Bstatic'
14940       ;;
14941
14942     linux* | k*bsd*-gnu)
14943       case $cc_basename in
14944       icc* | ecc*)
14945         lt_prog_compiler_wl_F77='-Wl,'
14946         lt_prog_compiler_pic_F77='-KPIC'
14947         lt_prog_compiler_static_F77='-static'
14948         ;;
14949       pgcc* | pgf77* | pgf90* | pgf95*)
14950         # Portland Group compilers (*not* the Pentium gcc compiler,
14951         # which looks to be a dead project)
14952         lt_prog_compiler_wl_F77='-Wl,'
14953         lt_prog_compiler_pic_F77='-fpic'
14954         lt_prog_compiler_static_F77='-Bstatic'
14955         ;;
14956       ccc*)
14957         lt_prog_compiler_wl_F77='-Wl,'
14958         # All Alpha code is PIC.
14959         lt_prog_compiler_static_F77='-non_shared'
14960         ;;
14961       esac
14962       ;;
14963
14964     osf3* | osf4* | osf5*)
14965       lt_prog_compiler_wl_F77='-Wl,'
14966       # All OSF/1 code is PIC.
14967       lt_prog_compiler_static_F77='-non_shared'
14968       ;;
14969
14970     solaris*)
14971       lt_prog_compiler_pic_F77='-KPIC'
14972       lt_prog_compiler_static_F77='-Bstatic'
14973       case $cc_basename in
14974       f77* | f90* | f95*)
14975         lt_prog_compiler_wl_F77='-Qoption ld ';;
14976       *)
14977         lt_prog_compiler_wl_F77='-Wl,';;
14978       esac
14979       ;;
14980
14981     sunos4*)
14982       lt_prog_compiler_wl_F77='-Qoption ld '
14983       lt_prog_compiler_pic_F77='-PIC'
14984       lt_prog_compiler_static_F77='-Bstatic'
14985       ;;
14986
14987     sysv4 | sysv4.2uw2* | sysv4.3*)
14988       lt_prog_compiler_wl_F77='-Wl,'
14989       lt_prog_compiler_pic_F77='-KPIC'
14990       lt_prog_compiler_static_F77='-Bstatic'
14991       ;;
14992
14993     sysv4*MP*)
14994       if test -d /usr/nec ;then
14995         lt_prog_compiler_pic_F77='-Kconform_pic'
14996         lt_prog_compiler_static_F77='-Bstatic'
14997       fi
14998       ;;
14999
15000     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15001       lt_prog_compiler_wl_F77='-Wl,'
15002       lt_prog_compiler_pic_F77='-KPIC'
15003       lt_prog_compiler_static_F77='-Bstatic'
15004       ;;
15005
15006     unicos*)
15007       lt_prog_compiler_wl_F77='-Wl,'
15008       lt_prog_compiler_can_build_shared_F77=no
15009       ;;
15010
15011     uts4*)
15012       lt_prog_compiler_pic_F77='-pic'
15013       lt_prog_compiler_static_F77='-Bstatic'
15014       ;;
15015
15016     *)
15017       lt_prog_compiler_can_build_shared_F77=no
15018       ;;
15019     esac
15020   fi
15021
15022 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
15023 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
15024
15025 #
15026 # Check to make sure the PIC flag actually works.
15027 #
15028 if test -n "$lt_prog_compiler_pic_F77"; then
15029
15030 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
15031 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
15032 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
15033   echo $ECHO_N "(cached) $ECHO_C" >&6
15034 else
15035   lt_prog_compiler_pic_works_F77=no
15036   ac_outfile=conftest.$ac_objext
15037    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15038    lt_compiler_flag="$lt_prog_compiler_pic_F77"
15039    # Insert the option either (1) after the last *FLAGS variable, or
15040    # (2) before a word containing "conftest.", or (3) at the end.
15041    # Note that $ac_compile itself does not contain backslashes and begins
15042    # with a dollar sign (not a hyphen), so the echo should work correctly.
15043    # The option is referenced via a variable to avoid confusing sed.
15044    lt_compile=`echo "$ac_compile" | $SED \
15045    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15046    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15047    -e 's:$: $lt_compiler_flag:'`
15048    (eval echo "\"\$as_me:15048: $lt_compile\"" >&5)
15049    (eval "$lt_compile" 2>conftest.err)
15050    ac_status=$?
15051    cat conftest.err >&5
15052    echo "$as_me:15052: \$? = $ac_status" >&5
15053    if (exit $ac_status) && test -s "$ac_outfile"; then
15054      # The compiler can only warn and ignore the option if not recognized
15055      # So say no if there are warnings other than the usual output.
15056      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15057      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15058      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15059        lt_prog_compiler_pic_works_F77=yes
15060      fi
15061    fi
15062    $rm conftest*
15063
15064 fi
15065 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
15066 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
15067
15068 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
15069     case $lt_prog_compiler_pic_F77 in
15070      "" | " "*) ;;
15071      *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
15072      esac
15073 else
15074     lt_prog_compiler_pic_F77=
15075      lt_prog_compiler_can_build_shared_F77=no
15076 fi
15077
15078 fi
15079 case $host_os in
15080   # For platforms which do not support PIC, -DPIC is meaningless:
15081   *djgpp*)
15082     lt_prog_compiler_pic_F77=
15083     ;;
15084   *)
15085     lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
15086     ;;
15087 esac
15088
15089 #
15090 # Check to make sure the static flag actually works.
15091 #
15092 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
15093 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15094 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
15095 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
15096   echo $ECHO_N "(cached) $ECHO_C" >&6
15097 else
15098   lt_prog_compiler_static_works_F77=no
15099    save_LDFLAGS="$LDFLAGS"
15100    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15101    printf "$lt_simple_link_test_code" > conftest.$ac_ext
15102    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15103      # The linker can only warn and ignore the option if not recognized
15104      # So say no if there are warnings
15105      if test -s conftest.err; then
15106        # Append any errors to the config.log.
15107        cat conftest.err 1>&5
15108        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
15109        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15110        if diff conftest.exp conftest.er2 >/dev/null; then
15111          lt_prog_compiler_static_works_F77=yes
15112        fi
15113      else
15114        lt_prog_compiler_static_works_F77=yes
15115      fi
15116    fi
15117    $rm conftest*
15118    LDFLAGS="$save_LDFLAGS"
15119
15120 fi
15121 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
15122 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
15123
15124 if test x"$lt_prog_compiler_static_works_F77" = xyes; then
15125     :
15126 else
15127     lt_prog_compiler_static_F77=
15128 fi
15129
15130
15131 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15132 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
15133 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
15134   echo $ECHO_N "(cached) $ECHO_C" >&6
15135 else
15136   lt_cv_prog_compiler_c_o_F77=no
15137    $rm -r conftest 2>/dev/null
15138    mkdir conftest
15139    cd conftest
15140    mkdir out
15141    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15142
15143    lt_compiler_flag="-o out/conftest2.$ac_objext"
15144    # Insert the option either (1) after the last *FLAGS variable, or
15145    # (2) before a word containing "conftest.", or (3) at the end.
15146    # Note that $ac_compile itself does not contain backslashes and begins
15147    # with a dollar sign (not a hyphen), so the echo should work correctly.
15148    lt_compile=`echo "$ac_compile" | $SED \
15149    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15150    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15151    -e 's:$: $lt_compiler_flag:'`
15152    (eval echo "\"\$as_me:15152: $lt_compile\"" >&5)
15153    (eval "$lt_compile" 2>out/conftest.err)
15154    ac_status=$?
15155    cat out/conftest.err >&5
15156    echo "$as_me:15156: \$? = $ac_status" >&5
15157    if (exit $ac_status) && test -s out/conftest2.$ac_objext
15158    then
15159      # The compiler can only warn and ignore the option if not recognized
15160      # So say no if there are warnings
15161      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
15162      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15163      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15164        lt_cv_prog_compiler_c_o_F77=yes
15165      fi
15166    fi
15167    chmod u+w . 2>&5
15168    $rm conftest*
15169    # SGI C++ compiler will create directory out/ii_files/ for
15170    # template instantiation
15171    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15172    $rm out/* && rmdir out
15173    cd ..
15174    rmdir conftest
15175    $rm conftest*
15176
15177 fi
15178 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
15179 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
15180
15181
15182 hard_links="nottested"
15183 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
15184   # do not overwrite the value of need_locks provided by the user
15185   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15186 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
15187   hard_links=yes
15188   $rm conftest*
15189   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15190   touch conftest.a
15191   ln conftest.a conftest.b 2>&5 || hard_links=no
15192   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15193   { echo "$as_me:$LINENO: result: $hard_links" >&5
15194 echo "${ECHO_T}$hard_links" >&6; }
15195   if test "$hard_links" = no; then
15196     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15197 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15198     need_locks=warn
15199   fi
15200 else
15201   need_locks=no
15202 fi
15203
15204 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15205 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
15206
15207   runpath_var=
15208   allow_undefined_flag_F77=
15209   enable_shared_with_static_runtimes_F77=no
15210   archive_cmds_F77=
15211   archive_expsym_cmds_F77=
15212   old_archive_From_new_cmds_F77=
15213   old_archive_from_expsyms_cmds_F77=
15214   export_dynamic_flag_spec_F77=
15215   whole_archive_flag_spec_F77=
15216   thread_safe_flag_spec_F77=
15217   hardcode_libdir_flag_spec_F77=
15218   hardcode_libdir_flag_spec_ld_F77=
15219   hardcode_libdir_separator_F77=
15220   hardcode_direct_F77=no
15221   hardcode_minus_L_F77=no
15222   hardcode_shlibpath_var_F77=unsupported
15223   link_all_deplibs_F77=unknown
15224   hardcode_automatic_F77=no
15225   module_cmds_F77=
15226   module_expsym_cmds_F77=
15227   always_export_symbols_F77=no
15228   export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15229   # include_expsyms should be a list of space-separated symbols to be *always*
15230   # included in the symbol list
15231   include_expsyms_F77=
15232   # exclude_expsyms can be an extended regexp of symbols to exclude
15233   # it will be wrapped by ` (' and `)$', so one must not match beginning or
15234   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15235   # as well as any symbol that contains `d'.
15236   exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
15237   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15238   # platforms (ab)use it in PIC code, but their linkers get confused if
15239   # the symbol is explicitly referenced.  Since portable code cannot
15240   # rely on this symbol name, it's probably fine to never include it in
15241   # preloaded symbol tables.
15242   extract_expsyms_cmds=
15243   # Just being paranoid about ensuring that cc_basename is set.
15244   for cc_temp in $compiler""; do
15245   case $cc_temp in
15246     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15247     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15248     \-*) ;;
15249     *) break;;
15250   esac
15251 done
15252 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15253
15254   case $host_os in
15255   cygwin* | mingw* | pw32*)
15256     # FIXME: the MSVC++ port hasn't been tested in a loooong time
15257     # When not using gcc, we currently assume that we are using
15258     # Microsoft Visual C++.
15259     if test "$GCC" != yes; then
15260       with_gnu_ld=no
15261     fi
15262     ;;
15263   interix*)
15264     # we just hope/assume this is gcc and not c89 (= MSVC++)
15265     with_gnu_ld=yes
15266     ;;
15267   openbsd*)
15268     with_gnu_ld=no
15269     ;;
15270   esac
15271
15272   ld_shlibs_F77=yes
15273   if test "$with_gnu_ld" = yes; then
15274     # If archive_cmds runs LD, not CC, wlarc should be empty
15275     wlarc='${wl}'
15276
15277     # Set some defaults for GNU ld with shared library support. These
15278     # are reset later if shared libraries are not supported. Putting them
15279     # here allows them to be overridden if necessary.
15280     runpath_var=LD_RUN_PATH
15281     hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
15282     export_dynamic_flag_spec_F77='${wl}--export-dynamic'
15283     # ancient GNU ld didn't support --whole-archive et. al.
15284     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15285         whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15286       else
15287         whole_archive_flag_spec_F77=
15288     fi
15289     supports_anon_versioning=no
15290     case `$LD -v 2>/dev/null` in
15291       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15292       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15293       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15294       *\ 2.11.*) ;; # other 2.11 versions
15295       *) supports_anon_versioning=yes ;;
15296     esac
15297
15298     # See if GNU ld supports shared libraries.
15299     case $host_os in
15300     aix3* | aix4* | aix5*)
15301       # On AIX/PPC, the GNU linker is very broken
15302       if test "$host_cpu" != ia64; then
15303         ld_shlibs_F77=no
15304         cat <<EOF 1>&2
15305
15306 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
15307 *** to be unable to reliably create shared libraries on AIX.
15308 *** Therefore, libtool is disabling shared libraries support.  If you
15309 *** really care for shared libraries, you may want to modify your PATH
15310 *** so that a non-GNU linker is found, and then restart.
15311
15312 EOF
15313       fi
15314       ;;
15315
15316     amigaos*)
15317       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)'
15318       hardcode_libdir_flag_spec_F77='-L$libdir'
15319       hardcode_minus_L_F77=yes
15320
15321       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15322       # that the semantics of dynamic libraries on AmigaOS, at least up
15323       # to version 4, is to share data among multiple programs linked
15324       # with the same dynamic library.  Since this doesn't match the
15325       # behavior of shared libraries on other platforms, we can't use
15326       # them.
15327       ld_shlibs_F77=no
15328       ;;
15329
15330     beos*)
15331       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15332         allow_undefined_flag_F77=unsupported
15333         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15334         # support --undefined.  This deserves some investigation.  FIXME
15335         archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15336       else
15337         ld_shlibs_F77=no
15338       fi
15339       ;;
15340
15341     cygwin* | mingw* | pw32*)
15342       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
15343       # as there is no search path for DLLs.
15344       hardcode_libdir_flag_spec_F77='-L$libdir'
15345       allow_undefined_flag_F77=unsupported
15346       always_export_symbols_F77=no
15347       enable_shared_with_static_runtimes_F77=yes
15348       export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15349
15350       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15351         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15352         # If the export-symbols file already is a .def file (1st line
15353         # is EXPORTS), use it as is; otherwise, prepend...
15354         archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15355           cp $export_symbols $output_objdir/$soname.def;
15356         else
15357           echo EXPORTS > $output_objdir/$soname.def;
15358           cat $export_symbols >> $output_objdir/$soname.def;
15359         fi~
15360         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15361       else
15362         ld_shlibs_F77=no
15363       fi
15364       ;;
15365
15366     interix3*)
15367       hardcode_direct_F77=no
15368       hardcode_shlibpath_var_F77=no
15369       hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15370       export_dynamic_flag_spec_F77='${wl}-E'
15371       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15372       # Instead, shared libraries are loaded at an image base (0x10000000 by
15373       # default) and relocated if they conflict, which is a slow very memory
15374       # consuming and fragmenting process.  To avoid this, we pick a random,
15375       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15376       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
15377       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'
15378       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'
15379       ;;
15380
15381     linux* | k*bsd*-gnu)
15382       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15383         tmp_addflag=
15384         case $cc_basename,$host_cpu in
15385         pgcc*)                          # Portland Group C compiler
15386           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'
15387           tmp_addflag=' $pic_flag'
15388           ;;
15389         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
15390           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'
15391           tmp_addflag=' $pic_flag -Mnomain' ;;
15392         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
15393           tmp_addflag=' -i_dynamic' ;;
15394         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
15395           tmp_addflag=' -i_dynamic -nofor_main' ;;
15396         ifc* | ifort*)                  # Intel Fortran compiler
15397           tmp_addflag=' -nofor_main' ;;
15398         esac
15399         archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15400
15401         if test $supports_anon_versioning = yes; then
15402           archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
15403   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15404   $echo "local: *; };" >> $output_objdir/$libname.ver~
15405           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15406         fi
15407         link_all_deplibs_F77=no
15408       else
15409         ld_shlibs_F77=no
15410       fi
15411       ;;
15412
15413     netbsd* | netbsdelf*-gnu)
15414       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15415         archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15416         wlarc=
15417       else
15418         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15419         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15420       fi
15421       ;;
15422
15423     solaris*)
15424       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15425         ld_shlibs_F77=no
15426         cat <<EOF 1>&2
15427
15428 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15429 *** create shared libraries on Solaris systems.  Therefore, libtool
15430 *** is disabling shared libraries support.  We urge you to upgrade GNU
15431 *** binutils to release 2.9.1 or newer.  Another option is to modify
15432 *** your PATH or compiler configuration so that the native linker is
15433 *** used, and then restart.
15434
15435 EOF
15436       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15437         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15438         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15439       else
15440         ld_shlibs_F77=no
15441       fi
15442       ;;
15443
15444     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15445       case `$LD -v 2>&1` in
15446         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15447         ld_shlibs_F77=no
15448         cat <<_LT_EOF 1>&2
15449
15450 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15451 *** reliably create shared libraries on SCO systems.  Therefore, libtool
15452 *** is disabling shared libraries support.  We urge you to upgrade GNU
15453 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
15454 *** your PATH or compiler configuration so that the native linker is
15455 *** used, and then restart.
15456
15457 _LT_EOF
15458         ;;
15459         *)
15460           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15461             hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
15462             archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
15463             archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
15464           else
15465             ld_shlibs_F77=no
15466           fi
15467         ;;
15468       esac
15469       ;;
15470
15471     sunos4*)
15472       archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15473       wlarc=
15474       hardcode_direct_F77=yes
15475       hardcode_shlibpath_var_F77=no
15476       ;;
15477
15478     *)
15479       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15480         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15481         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15482       else
15483         ld_shlibs_F77=no
15484       fi
15485       ;;
15486     esac
15487
15488     if test "$ld_shlibs_F77" = no; then
15489       runpath_var=
15490       hardcode_libdir_flag_spec_F77=
15491       export_dynamic_flag_spec_F77=
15492       whole_archive_flag_spec_F77=
15493     fi
15494   else
15495     # PORTME fill in a description of your system's linker (not GNU ld)
15496     case $host_os in
15497     aix3*)
15498       allow_undefined_flag_F77=unsupported
15499       always_export_symbols_F77=yes
15500       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'
15501       # Note: this linker hardcodes the directories in LIBPATH if there
15502       # are no directories specified by -L.
15503       hardcode_minus_L_F77=yes
15504       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15505         # Neither direct hardcoding nor static linking is supported with a
15506         # broken collect2.
15507         hardcode_direct_F77=unsupported
15508       fi
15509       ;;
15510
15511     aix4* | aix5*)
15512       if test "$host_cpu" = ia64; then
15513         # On IA64, the linker does run time linking by default, so we don't
15514         # have to do anything special.
15515         aix_use_runtimelinking=no
15516         exp_sym_flag='-Bexport'
15517         no_entry_flag=""
15518       else
15519         # If we're using GNU nm, then we don't want the "-C" option.
15520         # -C means demangle to AIX nm, but means don't demangle with GNU nm
15521         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15522           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'
15523         else
15524           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'
15525         fi
15526         aix_use_runtimelinking=no
15527
15528         # Test if we are trying to use run time linking or normal
15529         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15530         # need to do runtime linking.
15531         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15532           for ld_flag in $LDFLAGS; do
15533           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15534             aix_use_runtimelinking=yes
15535             break
15536           fi
15537           done
15538           ;;
15539         esac
15540
15541         exp_sym_flag='-bexport'
15542         no_entry_flag='-bnoentry'
15543       fi
15544
15545       # When large executables or shared objects are built, AIX ld can
15546       # have problems creating the table of contents.  If linking a library
15547       # or program results in "error TOC overflow" add -mminimal-toc to
15548       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
15549       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15550
15551       archive_cmds_F77=''
15552       hardcode_direct_F77=yes
15553       hardcode_libdir_separator_F77=':'
15554       link_all_deplibs_F77=yes
15555
15556       if test "$GCC" = yes; then
15557         case $host_os in aix4.[012]|aix4.[012].*)
15558         # We only want to do this on AIX 4.2 and lower, the check
15559         # below for broken collect2 doesn't work under 4.3+
15560           collect2name=`${CC} -print-prog-name=collect2`
15561           if test -f "$collect2name" && \
15562            strings "$collect2name" | grep resolve_lib_name >/dev/null
15563           then
15564           # We have reworked collect2
15565           hardcode_direct_F77=yes
15566           else
15567           # We have old collect2
15568           hardcode_direct_F77=unsupported
15569           # It fails to find uninstalled libraries when the uninstalled
15570           # path is not listed in the libpath.  Setting hardcode_minus_L
15571           # to unsupported forces relinking
15572           hardcode_minus_L_F77=yes
15573           hardcode_libdir_flag_spec_F77='-L$libdir'
15574           hardcode_libdir_separator_F77=
15575           fi
15576           ;;
15577         esac
15578         shared_flag='-shared'
15579         if test "$aix_use_runtimelinking" = yes; then
15580           shared_flag="$shared_flag "'${wl}-G'
15581         fi
15582       else
15583         # not using gcc
15584         if test "$host_cpu" = ia64; then
15585         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15586         # chokes on -Wl,-G. The following line is correct:
15587           shared_flag='-G'
15588         else
15589           if test "$aix_use_runtimelinking" = yes; then
15590             shared_flag='${wl}-G'
15591           else
15592             shared_flag='${wl}-bM:SRE'
15593           fi
15594         fi
15595       fi
15596
15597       # It seems that -bexpall does not export symbols beginning with
15598       # underscore (_), so it is better to generate a list of symbols to export.
15599       always_export_symbols_F77=yes
15600       if test "$aix_use_runtimelinking" = yes; then
15601         # Warning - without using the other runtime loading flags (-brtl),
15602         # -berok will link without error, but may produce a broken library.
15603         allow_undefined_flag_F77='-berok'
15604        # Determine the default libpath from the value encoded in an empty executable.
15605        cat >conftest.$ac_ext <<_ACEOF
15606       program main
15607
15608       end
15609 _ACEOF
15610 rm -f conftest.$ac_objext conftest$ac_exeext
15611 if { (ac_try="$ac_link"
15612 case "(($ac_try" in
15613   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15614   *) ac_try_echo=$ac_try;;
15615 esac
15616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15617   (eval "$ac_link") 2>conftest.er1
15618   ac_status=$?
15619   grep -v '^ *+' conftest.er1 >conftest.err
15620   rm -f conftest.er1
15621   cat conftest.err >&5
15622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15623   (exit $ac_status); } && {
15624          test -z "$ac_f77_werror_flag" ||
15625          test ! -s conftest.err
15626        } && test -s conftest$ac_exeext &&
15627        $as_test_x conftest$ac_exeext; then
15628
15629 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15630 }'`
15631 # Check for a 64-bit object if we didn't find anything.
15632 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15633 }'`; fi
15634 else
15635   echo "$as_me: failed program was:" >&5
15636 sed 's/^/| /' conftest.$ac_ext >&5
15637
15638
15639 fi
15640
15641 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15642       conftest$ac_exeext conftest.$ac_ext
15643 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15644
15645        hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15646         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"
15647        else
15648         if test "$host_cpu" = ia64; then
15649           hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
15650           allow_undefined_flag_F77="-z nodefs"
15651           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"
15652         else
15653          # Determine the default libpath from the value encoded in an empty executable.
15654          cat >conftest.$ac_ext <<_ACEOF
15655       program main
15656
15657       end
15658 _ACEOF
15659 rm -f conftest.$ac_objext conftest$ac_exeext
15660 if { (ac_try="$ac_link"
15661 case "(($ac_try" in
15662   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15663   *) ac_try_echo=$ac_try;;
15664 esac
15665 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15666   (eval "$ac_link") 2>conftest.er1
15667   ac_status=$?
15668   grep -v '^ *+' conftest.er1 >conftest.err
15669   rm -f conftest.er1
15670   cat conftest.err >&5
15671   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15672   (exit $ac_status); } && {
15673          test -z "$ac_f77_werror_flag" ||
15674          test ! -s conftest.err
15675        } && test -s conftest$ac_exeext &&
15676        $as_test_x conftest$ac_exeext; then
15677
15678 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15679 }'`
15680 # Check for a 64-bit object if we didn't find anything.
15681 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15682 }'`; fi
15683 else
15684   echo "$as_me: failed program was:" >&5
15685 sed 's/^/| /' conftest.$ac_ext >&5
15686
15687
15688 fi
15689
15690 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15691       conftest$ac_exeext conftest.$ac_ext
15692 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15693
15694          hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15695           # Warning - without using the other run time loading flags,
15696           # -berok will link without error, but may produce a broken library.
15697           no_undefined_flag_F77=' ${wl}-bernotok'
15698           allow_undefined_flag_F77=' ${wl}-berok'
15699           # Exported symbols can be pulled into shared objects from archives
15700           whole_archive_flag_spec_F77='$convenience'
15701           archive_cmds_need_lc_F77=yes
15702           # This is similar to how AIX traditionally builds its shared libraries.
15703           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'
15704         fi
15705       fi
15706       ;;
15707
15708     amigaos*)
15709       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)'
15710       hardcode_libdir_flag_spec_F77='-L$libdir'
15711       hardcode_minus_L_F77=yes
15712       # see comment about different semantics on the GNU ld section
15713       ld_shlibs_F77=no
15714       ;;
15715
15716     bsdi[45]*)
15717       export_dynamic_flag_spec_F77=-rdynamic
15718       ;;
15719
15720     cygwin* | mingw* | pw32*)
15721       # When not using gcc, we currently assume that we are using
15722       # Microsoft Visual C++.
15723       # hardcode_libdir_flag_spec is actually meaningless, as there is
15724       # no search path for DLLs.
15725       hardcode_libdir_flag_spec_F77=' '
15726       allow_undefined_flag_F77=unsupported
15727       # Tell ltmain to make .lib files, not .a files.
15728       libext=lib
15729       # Tell ltmain to make .dll files, not .so files.
15730       shrext_cmds=".dll"
15731       # FIXME: Setting linknames here is a bad hack.
15732       archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15733       # The linker will automatically build a .lib file if we build a DLL.
15734       old_archive_From_new_cmds_F77='true'
15735       # FIXME: Should let the user specify the lib program.
15736       old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
15737       fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
15738       enable_shared_with_static_runtimes_F77=yes
15739       ;;
15740
15741     darwin* | rhapsody*)
15742       case $host_os in
15743         rhapsody* | darwin1.[012])
15744          allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
15745          ;;
15746        *) # Darwin 1.3 on
15747          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15748            allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15749          else
15750            case ${MACOSX_DEPLOYMENT_TARGET} in
15751              10.[012])
15752                allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15753                ;;
15754              10.*)
15755                allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
15756                ;;
15757            esac
15758          fi
15759          ;;
15760       esac
15761       archive_cmds_need_lc_F77=no
15762       hardcode_direct_F77=no
15763       hardcode_automatic_F77=yes
15764       hardcode_shlibpath_var_F77=unsupported
15765       whole_archive_flag_spec_F77=''
15766       link_all_deplibs_F77=yes
15767     if test "$GCC" = yes ; then
15768         output_verbose_link_cmd='echo'
15769         archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15770       module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15771       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15772       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}'
15773       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}'
15774     else
15775       case $cc_basename in
15776         xlc*)
15777          output_verbose_link_cmd='echo'
15778          archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
15779          module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15780           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15781          archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15782           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}'
15783           ;;
15784        *)
15785          ld_shlibs_F77=no
15786           ;;
15787       esac
15788     fi
15789       ;;
15790
15791     dgux*)
15792       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15793       hardcode_libdir_flag_spec_F77='-L$libdir'
15794       hardcode_shlibpath_var_F77=no
15795       ;;
15796
15797     freebsd1*)
15798       ld_shlibs_F77=no
15799       ;;
15800
15801     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15802     # support.  Future versions do this automatically, but an explicit c++rt0.o
15803     # does not break anything, and helps significantly (at the cost of a little
15804     # extra space).
15805     freebsd2.2*)
15806       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15807       hardcode_libdir_flag_spec_F77='-R$libdir'
15808       hardcode_direct_F77=yes
15809       hardcode_shlibpath_var_F77=no
15810       ;;
15811
15812     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15813     freebsd2*)
15814       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15815       hardcode_direct_F77=yes
15816       hardcode_minus_L_F77=yes
15817       hardcode_shlibpath_var_F77=no
15818       ;;
15819
15820     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15821     freebsd* | dragonfly*)
15822       archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15823       hardcode_libdir_flag_spec_F77='-R$libdir'
15824       hardcode_direct_F77=yes
15825       hardcode_shlibpath_var_F77=no
15826       ;;
15827
15828     hpux9*)
15829       if test "$GCC" = yes; then
15830         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'
15831       else
15832         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'
15833       fi
15834       hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15835       hardcode_libdir_separator_F77=:
15836       hardcode_direct_F77=yes
15837
15838       # hardcode_minus_L: Not really in the search PATH,
15839       # but as the default location of the library.
15840       hardcode_minus_L_F77=yes
15841       export_dynamic_flag_spec_F77='${wl}-E'
15842       ;;
15843
15844     hpux10*)
15845       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15846         archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15847       else
15848         archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15849       fi
15850       if test "$with_gnu_ld" = no; then
15851         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15852         hardcode_libdir_separator_F77=:
15853
15854         hardcode_direct_F77=yes
15855         export_dynamic_flag_spec_F77='${wl}-E'
15856
15857         # hardcode_minus_L: Not really in the search PATH,
15858         # but as the default location of the library.
15859         hardcode_minus_L_F77=yes
15860       fi
15861       ;;
15862
15863     hpux11*)
15864       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15865         case $host_cpu in
15866         hppa*64*)
15867           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15868           ;;
15869         ia64*)
15870           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15871           ;;
15872         *)
15873           archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15874           ;;
15875         esac
15876       else
15877         case $host_cpu in
15878         hppa*64*)
15879           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15880           ;;
15881         ia64*)
15882           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15883           ;;
15884         *)
15885           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15886           ;;
15887         esac
15888       fi
15889       if test "$with_gnu_ld" = no; then
15890         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15891         hardcode_libdir_separator_F77=:
15892
15893         case $host_cpu in
15894         hppa*64*|ia64*)
15895           hardcode_libdir_flag_spec_ld_F77='+b $libdir'
15896           hardcode_direct_F77=no
15897           hardcode_shlibpath_var_F77=no
15898           ;;
15899         *)
15900           hardcode_direct_F77=yes
15901           export_dynamic_flag_spec_F77='${wl}-E'
15902
15903           # hardcode_minus_L: Not really in the search PATH,
15904           # but as the default location of the library.
15905           hardcode_minus_L_F77=yes
15906           ;;
15907         esac
15908       fi
15909       ;;
15910
15911     irix5* | irix6* | nonstopux*)
15912       if test "$GCC" = yes; then
15913         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'
15914       else
15915         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'
15916         hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
15917       fi
15918       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15919       hardcode_libdir_separator_F77=:
15920       link_all_deplibs_F77=yes
15921       ;;
15922
15923     netbsd* | netbsdelf*-gnu)
15924       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15925         archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
15926       else
15927         archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
15928       fi
15929       hardcode_libdir_flag_spec_F77='-R$libdir'
15930       hardcode_direct_F77=yes
15931       hardcode_shlibpath_var_F77=no
15932       ;;
15933
15934     newsos6)
15935       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15936       hardcode_direct_F77=yes
15937       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15938       hardcode_libdir_separator_F77=:
15939       hardcode_shlibpath_var_F77=no
15940       ;;
15941
15942     openbsd*)
15943       hardcode_direct_F77=yes
15944       hardcode_shlibpath_var_F77=no
15945       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15946         archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15947         archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15948         hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15949         export_dynamic_flag_spec_F77='${wl}-E'
15950       else
15951        case $host_os in
15952          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15953            archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15954            hardcode_libdir_flag_spec_F77='-R$libdir'
15955            ;;
15956          *)
15957            archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15958            hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15959            ;;
15960        esac
15961       fi
15962       ;;
15963
15964     os2*)
15965       hardcode_libdir_flag_spec_F77='-L$libdir'
15966       hardcode_minus_L_F77=yes
15967       allow_undefined_flag_F77=unsupported
15968       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'
15969       old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15970       ;;
15971
15972     osf3*)
15973       if test "$GCC" = yes; then
15974         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15975         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'
15976       else
15977         allow_undefined_flag_F77=' -expect_unresolved \*'
15978         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'
15979       fi
15980       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15981       hardcode_libdir_separator_F77=:
15982       ;;
15983
15984     osf4* | osf5*)      # as osf3* with the addition of -msym flag
15985       if test "$GCC" = yes; then
15986         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15987         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'
15988         hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15989       else
15990         allow_undefined_flag_F77=' -expect_unresolved \*'
15991         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'
15992         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~
15993         $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'
15994
15995         # Both c and cxx compiler support -rpath directly
15996         hardcode_libdir_flag_spec_F77='-rpath $libdir'
15997       fi
15998       hardcode_libdir_separator_F77=:
15999       ;;
16000
16001     solaris*)
16002       no_undefined_flag_F77=' -z text'
16003       if test "$GCC" = yes; then
16004         wlarc='${wl}'
16005         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16006         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16007           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16008       else
16009         wlarc=''
16010         archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16011         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16012         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16013       fi
16014       hardcode_libdir_flag_spec_F77='-R$libdir'
16015       hardcode_shlibpath_var_F77=no
16016       case $host_os in
16017       solaris2.[0-5] | solaris2.[0-5].*) ;;
16018       *)
16019         # The compiler driver will combine linker options so we
16020         # cannot just pass the convience library names through
16021         # without $wl, iff we do not link with $LD.
16022         # Luckily, gcc supports the same syntax we need for Sun Studio.
16023         # Supported since Solaris 2.6 (maybe 2.5.1?)
16024         case $wlarc in
16025         '')
16026           whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
16027         *)
16028           whole_archive_flag_spec_F77='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
16029         esac ;;
16030       esac
16031       link_all_deplibs_F77=yes
16032       ;;
16033
16034     sunos4*)
16035       if test "x$host_vendor" = xsequent; then
16036         # Use $CC to link under sequent, because it throws in some extra .o
16037         # files that make .init and .fini sections work.
16038         archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16039       else
16040         archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16041       fi
16042       hardcode_libdir_flag_spec_F77='-L$libdir'
16043       hardcode_direct_F77=yes
16044       hardcode_minus_L_F77=yes
16045       hardcode_shlibpath_var_F77=no
16046       ;;
16047
16048     sysv4)
16049       case $host_vendor in
16050         sni)
16051           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16052           hardcode_direct_F77=yes # is this really true???
16053         ;;
16054         siemens)
16055           ## LD is ld it makes a PLAMLIB
16056           ## CC just makes a GrossModule.
16057           archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16058           reload_cmds_F77='$CC -r -o $output$reload_objs'
16059           hardcode_direct_F77=no
16060         ;;
16061         motorola)
16062           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16063           hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
16064         ;;
16065       esac
16066       runpath_var='LD_RUN_PATH'
16067       hardcode_shlibpath_var_F77=no
16068       ;;
16069
16070     sysv4.3*)
16071       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16072       hardcode_shlibpath_var_F77=no
16073       export_dynamic_flag_spec_F77='-Bexport'
16074       ;;
16075
16076     sysv4*MP*)
16077       if test -d /usr/nec; then
16078         archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16079         hardcode_shlibpath_var_F77=no
16080         runpath_var=LD_RUN_PATH
16081         hardcode_runpath_var=yes
16082         ld_shlibs_F77=yes
16083       fi
16084       ;;
16085
16086     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
16087       no_undefined_flag_F77='${wl}-z,text'
16088       archive_cmds_need_lc_F77=no
16089       hardcode_shlibpath_var_F77=no
16090       runpath_var='LD_RUN_PATH'
16091
16092       if test "$GCC" = yes; then
16093         archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16094         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16095       else
16096         archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16097         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16098       fi
16099       ;;
16100
16101     sysv5* | sco3.2v5* | sco5v6*)
16102       # Note: We can NOT use -z defs as we might desire, because we do not
16103       # link with -lc, and that would cause any symbols used from libc to
16104       # always be unresolved, which means just about no library would
16105       # ever link correctly.  If we're not using GNU ld we use -z text
16106       # though, which does catch some bad symbols but isn't as heavy-handed
16107       # as -z defs.
16108       no_undefined_flag_F77='${wl}-z,text'
16109       allow_undefined_flag_F77='${wl}-z,nodefs'
16110       archive_cmds_need_lc_F77=no
16111       hardcode_shlibpath_var_F77=no
16112       hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
16113       hardcode_libdir_separator_F77=':'
16114       link_all_deplibs_F77=yes
16115       export_dynamic_flag_spec_F77='${wl}-Bexport'
16116       runpath_var='LD_RUN_PATH'
16117
16118       if test "$GCC" = yes; then
16119         archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16120         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16121       else
16122         archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16123         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16124       fi
16125       ;;
16126
16127     uts4*)
16128       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16129       hardcode_libdir_flag_spec_F77='-L$libdir'
16130       hardcode_shlibpath_var_F77=no
16131       ;;
16132
16133     *)
16134       ld_shlibs_F77=no
16135       ;;
16136     esac
16137   fi
16138
16139 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
16140 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
16141 test "$ld_shlibs_F77" = no && can_build_shared=no
16142
16143 #
16144 # Do we need to explicitly link libc?
16145 #
16146 case "x$archive_cmds_need_lc_F77" in
16147 x|xyes)
16148   # Assume -lc should be added
16149   archive_cmds_need_lc_F77=yes
16150
16151   if test "$enable_shared" = yes && test "$GCC" = yes; then
16152     case $archive_cmds_F77 in
16153     *'~'*)
16154       # FIXME: we may have to deal with multi-command sequences.
16155       ;;
16156     '$CC '*)
16157       # Test whether the compiler implicitly links with -lc since on some
16158       # systems, -lgcc has to come before -lc. If gcc already passes -lc
16159       # to ld, don't add -lc before -lgcc.
16160       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16161 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
16162       $rm conftest*
16163       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16164
16165       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16166   (eval $ac_compile) 2>&5
16167   ac_status=$?
16168   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16169   (exit $ac_status); } 2>conftest.err; then
16170         soname=conftest
16171         lib=conftest
16172         libobjs=conftest.$ac_objext
16173         deplibs=
16174         wl=$lt_prog_compiler_wl_F77
16175         pic_flag=$lt_prog_compiler_pic_F77
16176         compiler_flags=-v
16177         linker_flags=-v
16178         verstring=
16179         output_objdir=.
16180         libname=conftest
16181         lt_save_allow_undefined_flag=$allow_undefined_flag_F77
16182         allow_undefined_flag_F77=
16183         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16184   (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16185   ac_status=$?
16186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16187   (exit $ac_status); }
16188         then
16189           archive_cmds_need_lc_F77=no
16190         else
16191           archive_cmds_need_lc_F77=yes
16192         fi
16193         allow_undefined_flag_F77=$lt_save_allow_undefined_flag
16194       else
16195         cat conftest.err 1>&5
16196       fi
16197       $rm conftest*
16198       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
16199 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
16200       ;;
16201     esac
16202   fi
16203   ;;
16204 esac
16205
16206 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16207 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
16208 library_names_spec=
16209 libname_spec='lib$name'
16210 soname_spec=
16211 shrext_cmds=".so"
16212 postinstall_cmds=
16213 postuninstall_cmds=
16214 finish_cmds=
16215 finish_eval=
16216 shlibpath_var=
16217 shlibpath_overrides_runpath=unknown
16218 version_type=none
16219 dynamic_linker="$host_os ld.so"
16220 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16221 if test "$GCC" = yes; then
16222   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16223   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16224     # if the path contains ";" then we assume it to be the separator
16225     # otherwise default to the standard path separator (i.e. ":") - it is
16226     # assumed that no part of a normal pathname contains ";" but that should
16227     # okay in the real world where ";" in dirpaths is itself problematic.
16228     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16229   else
16230     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16231   fi
16232 else
16233   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16234 fi
16235 need_lib_prefix=unknown
16236 hardcode_into_libs=no
16237
16238 # when you set need_version to no, make sure it does not cause -set_version
16239 # flags to be left without arguments
16240 need_version=unknown
16241
16242 case $host_os in
16243 aix3*)
16244   version_type=linux
16245   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16246   shlibpath_var=LIBPATH
16247
16248   # AIX 3 has no versioning support, so we append a major version to the name.
16249   soname_spec='${libname}${release}${shared_ext}$major'
16250   ;;
16251
16252 aix4* | aix5*)
16253   version_type=linux
16254   need_lib_prefix=no
16255   need_version=no
16256   hardcode_into_libs=yes
16257   if test "$host_cpu" = ia64; then
16258     # AIX 5 supports IA64
16259     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16260     shlibpath_var=LD_LIBRARY_PATH
16261   else
16262     # With GCC up to 2.95.x, collect2 would create an import file
16263     # for dependence libraries.  The import file would start with
16264     # the line `#! .'.  This would cause the generated library to
16265     # depend on `.', always an invalid library.  This was fixed in
16266     # development snapshots of GCC prior to 3.0.
16267     case $host_os in
16268       aix4 | aix4.[01] | aix4.[01].*)
16269       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16270            echo ' yes '
16271            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16272         :
16273       else
16274         can_build_shared=no
16275       fi
16276       ;;
16277     esac
16278     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16279     # soname into executable. Probably we can add versioning support to
16280     # collect2, so additional links can be useful in future.
16281     if test "$aix_use_runtimelinking" = yes; then
16282       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16283       # instead of lib<name>.a to let people know that these are not
16284       # typical AIX shared libraries.
16285       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16286     else
16287       # We preserve .a as extension for shared libraries through AIX4.2
16288       # and later when we are not doing run time linking.
16289       library_names_spec='${libname}${release}.a $libname.a'
16290       soname_spec='${libname}${release}${shared_ext}$major'
16291     fi
16292     shlibpath_var=LIBPATH
16293   fi
16294   ;;
16295
16296 amigaos*)
16297   library_names_spec='$libname.ixlibrary $libname.a'
16298   # Create ${libname}_ixlibrary.a entries in /sys/libs.
16299   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'
16300   ;;
16301
16302 beos*)
16303   library_names_spec='${libname}${shared_ext}'
16304   dynamic_linker="$host_os ld.so"
16305   shlibpath_var=LIBRARY_PATH
16306   ;;
16307
16308 bsdi[45]*)
16309   version_type=linux
16310   need_version=no
16311   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16312   soname_spec='${libname}${release}${shared_ext}$major'
16313   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16314   shlibpath_var=LD_LIBRARY_PATH
16315   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16316   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16317   # the default ld.so.conf also contains /usr/contrib/lib and
16318   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16319   # libtool to hard-code these into programs
16320   ;;
16321
16322 cygwin* | mingw* | pw32*)
16323   version_type=windows
16324   shrext_cmds=".dll"
16325   need_version=no
16326   need_lib_prefix=no
16327
16328   case $GCC,$host_os in
16329   yes,cygwin* | yes,mingw* | yes,pw32*)
16330     library_names_spec='$libname.dll.a'
16331     # DLL is installed to $(libdir)/../bin by postinstall_cmds
16332     postinstall_cmds='base_file=`basename \${file}`~
16333       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16334       dldir=$destdir/`dirname \$dlpath`~
16335       test -d \$dldir || mkdir -p \$dldir~
16336       $install_prog $dir/$dlname \$dldir/$dlname~
16337       chmod a+x \$dldir/$dlname'
16338     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16339       dlpath=$dir/\$dldll~
16340        $rm \$dlpath'
16341     shlibpath_overrides_runpath=yes
16342
16343     case $host_os in
16344     cygwin*)
16345       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16346       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16347       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16348       ;;
16349     mingw*)
16350       # MinGW DLLs use traditional 'lib' prefix
16351       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16352       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16353       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16354         # It is most probably a Windows format PATH printed by
16355         # mingw gcc, but we are running on Cygwin. Gcc prints its search
16356         # path with ; separators, and with drive letters. We can handle the
16357         # drive letters (cygwin fileutils understands them), so leave them,
16358         # especially as we might pass files found there to a mingw objdump,
16359         # which wouldn't understand a cygwinified path. Ahh.
16360         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16361       else
16362         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16363       fi
16364       ;;
16365     pw32*)
16366       # pw32 DLLs use 'pw' prefix rather than 'lib'
16367       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16368       ;;
16369     esac
16370     ;;
16371
16372   *)
16373     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16374     ;;
16375   esac
16376   dynamic_linker='Win32 ld.exe'
16377   # FIXME: first we should search . and the directory the executable is in
16378   shlibpath_var=PATH
16379   ;;
16380
16381 darwin* | rhapsody*)
16382   dynamic_linker="$host_os dyld"
16383   version_type=darwin
16384   need_lib_prefix=no
16385   need_version=no
16386   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16387   soname_spec='${libname}${release}${major}$shared_ext'
16388   shlibpath_overrides_runpath=yes
16389   shlibpath_var=DYLD_LIBRARY_PATH
16390   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16391   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16392   if test "$GCC" = yes; then
16393     sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
16394   else
16395     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
16396   fi
16397   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16398   ;;
16399
16400 dgux*)
16401   version_type=linux
16402   need_lib_prefix=no
16403   need_version=no
16404   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16405   soname_spec='${libname}${release}${shared_ext}$major'
16406   shlibpath_var=LD_LIBRARY_PATH
16407   ;;
16408
16409 freebsd1*)
16410   dynamic_linker=no
16411   ;;
16412
16413 freebsd* | dragonfly*)
16414   # DragonFly does not have aout.  When/if they implement a new
16415   # versioning mechanism, adjust this.
16416   if test -x /usr/bin/objformat; then
16417     objformat=`/usr/bin/objformat`
16418   else
16419     case $host_os in
16420     freebsd[123]*) objformat=aout ;;
16421     *) objformat=elf ;;
16422     esac
16423   fi
16424   version_type=freebsd-$objformat
16425   case $version_type in
16426     freebsd-elf*)
16427       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16428       need_version=no
16429       need_lib_prefix=no
16430       ;;
16431     freebsd-*)
16432       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16433       need_version=yes
16434       ;;
16435   esac
16436   shlibpath_var=LD_LIBRARY_PATH
16437   case $host_os in
16438   freebsd2*)
16439     shlibpath_overrides_runpath=yes
16440     ;;
16441   freebsd3.[01]* | freebsdelf3.[01]*)
16442     shlibpath_overrides_runpath=yes
16443     hardcode_into_libs=yes
16444     ;;
16445   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16446   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16447     shlibpath_overrides_runpath=no
16448     hardcode_into_libs=yes
16449     ;;
16450   freebsd*) # from 4.6 on
16451     shlibpath_overrides_runpath=yes
16452     hardcode_into_libs=yes
16453     ;;
16454   esac
16455   ;;
16456
16457 gnu*)
16458   version_type=linux
16459   need_lib_prefix=no
16460   need_version=no
16461   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16462   soname_spec='${libname}${release}${shared_ext}$major'
16463   shlibpath_var=LD_LIBRARY_PATH
16464   hardcode_into_libs=yes
16465   ;;
16466
16467 hpux9* | hpux10* | hpux11*)
16468   # Give a soname corresponding to the major version so that dld.sl refuses to
16469   # link against other versions.
16470   version_type=sunos
16471   need_lib_prefix=no
16472   need_version=no
16473   case $host_cpu in
16474   ia64*)
16475     shrext_cmds='.so'
16476     hardcode_into_libs=yes
16477     dynamic_linker="$host_os dld.so"
16478     shlibpath_var=LD_LIBRARY_PATH
16479     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16480     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16481     soname_spec='${libname}${release}${shared_ext}$major'
16482     if test "X$HPUX_IA64_MODE" = X32; then
16483       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16484     else
16485       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16486     fi
16487     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16488     ;;
16489    hppa*64*)
16490      shrext_cmds='.sl'
16491      hardcode_into_libs=yes
16492      dynamic_linker="$host_os dld.sl"
16493      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16494      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16495      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16496      soname_spec='${libname}${release}${shared_ext}$major'
16497      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16498      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16499      ;;
16500    *)
16501     shrext_cmds='.sl'
16502     dynamic_linker="$host_os dld.sl"
16503     shlibpath_var=SHLIB_PATH
16504     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16505     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16506     soname_spec='${libname}${release}${shared_ext}$major'
16507     ;;
16508   esac
16509   # HP-UX runs *really* slowly unless shared libraries are mode 555.
16510   postinstall_cmds='chmod 555 $lib'
16511   ;;
16512
16513 interix3*)
16514   version_type=linux
16515   need_lib_prefix=no
16516   need_version=no
16517   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16518   soname_spec='${libname}${release}${shared_ext}$major'
16519   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16520   shlibpath_var=LD_LIBRARY_PATH
16521   shlibpath_overrides_runpath=no
16522   hardcode_into_libs=yes
16523   ;;
16524
16525 irix5* | irix6* | nonstopux*)
16526   case $host_os in
16527     nonstopux*) version_type=nonstopux ;;
16528     *)
16529         if test "$lt_cv_prog_gnu_ld" = yes; then
16530                 version_type=linux
16531         else
16532                 version_type=irix
16533         fi ;;
16534   esac
16535   need_lib_prefix=no
16536   need_version=no
16537   soname_spec='${libname}${release}${shared_ext}$major'
16538   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16539   case $host_os in
16540   irix5* | nonstopux*)
16541     libsuff= shlibsuff=
16542     ;;
16543   *)
16544     case $LD in # libtool.m4 will add one of these switches to LD
16545     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16546       libsuff= shlibsuff= libmagic=32-bit;;
16547     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16548       libsuff=32 shlibsuff=N32 libmagic=N32;;
16549     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16550       libsuff=64 shlibsuff=64 libmagic=64-bit;;
16551     *) libsuff= shlibsuff= libmagic=never-match;;
16552     esac
16553     ;;
16554   esac
16555   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16556   shlibpath_overrides_runpath=no
16557   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16558   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16559   hardcode_into_libs=yes
16560   ;;
16561
16562 # No shared lib support for Linux oldld, aout, or coff.
16563 linux*oldld* | linux*aout* | linux*coff*)
16564   dynamic_linker=no
16565   ;;
16566
16567 # This must be Linux ELF.
16568 linux* | k*bsd*-gnu)
16569   version_type=linux
16570   need_lib_prefix=no
16571   need_version=no
16572   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16573   soname_spec='${libname}${release}${shared_ext}$major'
16574   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16575   shlibpath_var=LD_LIBRARY_PATH
16576   shlibpath_overrides_runpath=no
16577   # This implies no fast_install, which is unacceptable.
16578   # Some rework will be needed to allow for fast_install
16579   # before this can be enabled.
16580   hardcode_into_libs=yes
16581
16582   # Append ld.so.conf contents to the search path
16583   if test -f /etc/ld.so.conf; then
16584     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,        ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
16585     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16586   fi
16587
16588   # We used to test for /lib/ld.so.1 and disable shared libraries on
16589   # powerpc, because MkLinux only supported shared libraries with the
16590   # GNU dynamic linker.  Since this was broken with cross compilers,
16591   # most powerpc-linux boxes support dynamic linking these days and
16592   # people can always --disable-shared, the test was removed, and we
16593   # assume the GNU/Linux dynamic linker is in use.
16594   dynamic_linker='GNU/Linux ld.so'
16595   ;;
16596
16597 netbsdelf*-gnu)
16598   version_type=linux
16599   need_lib_prefix=no
16600   need_version=no
16601   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16602   soname_spec='${libname}${release}${shared_ext}$major'
16603   shlibpath_var=LD_LIBRARY_PATH
16604   shlibpath_overrides_runpath=no
16605   hardcode_into_libs=yes
16606   dynamic_linker='NetBSD ld.elf_so'
16607   ;;
16608
16609 netbsd*)
16610   version_type=sunos
16611   need_lib_prefix=no
16612   need_version=no
16613   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16614     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16615     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16616     dynamic_linker='NetBSD (a.out) ld.so'
16617   else
16618     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16619     soname_spec='${libname}${release}${shared_ext}$major'
16620     dynamic_linker='NetBSD ld.elf_so'
16621   fi
16622   shlibpath_var=LD_LIBRARY_PATH
16623   shlibpath_overrides_runpath=yes
16624   hardcode_into_libs=yes
16625   ;;
16626
16627 newsos6)
16628   version_type=linux
16629   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16630   shlibpath_var=LD_LIBRARY_PATH
16631   shlibpath_overrides_runpath=yes
16632   ;;
16633
16634 nto-qnx*)
16635   version_type=linux
16636   need_lib_prefix=no
16637   need_version=no
16638   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16639   soname_spec='${libname}${release}${shared_ext}$major'
16640   shlibpath_var=LD_LIBRARY_PATH
16641   shlibpath_overrides_runpath=yes
16642   ;;
16643
16644 openbsd*)
16645   version_type=sunos
16646   sys_lib_dlsearch_path_spec="/usr/lib"
16647   need_lib_prefix=no
16648   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16649   case $host_os in
16650     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16651     *)                         need_version=no  ;;
16652   esac
16653   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16654   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16655   shlibpath_var=LD_LIBRARY_PATH
16656   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16657     case $host_os in
16658       openbsd2.[89] | openbsd2.[89].*)
16659         shlibpath_overrides_runpath=no
16660         ;;
16661       *)
16662         shlibpath_overrides_runpath=yes
16663         ;;
16664       esac
16665   else
16666     shlibpath_overrides_runpath=yes
16667   fi
16668   ;;
16669
16670 os2*)
16671   libname_spec='$name'
16672   shrext_cmds=".dll"
16673   need_lib_prefix=no
16674   library_names_spec='$libname${shared_ext} $libname.a'
16675   dynamic_linker='OS/2 ld.exe'
16676   shlibpath_var=LIBPATH
16677   ;;
16678
16679 osf3* | osf4* | osf5*)
16680   version_type=osf
16681   need_lib_prefix=no
16682   need_version=no
16683   soname_spec='${libname}${release}${shared_ext}$major'
16684   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16685   shlibpath_var=LD_LIBRARY_PATH
16686   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16687   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16688   ;;
16689
16690 solaris*)
16691   version_type=linux
16692   need_lib_prefix=no
16693   need_version=no
16694   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16695   soname_spec='${libname}${release}${shared_ext}$major'
16696   shlibpath_var=LD_LIBRARY_PATH
16697   shlibpath_overrides_runpath=yes
16698   hardcode_into_libs=yes
16699   # ldd complains unless libraries are executable
16700   postinstall_cmds='chmod +x $lib'
16701   ;;
16702
16703 sunos4*)
16704   version_type=sunos
16705   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16706   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16707   shlibpath_var=LD_LIBRARY_PATH
16708   shlibpath_overrides_runpath=yes
16709   if test "$with_gnu_ld" = yes; then
16710     need_lib_prefix=no
16711   fi
16712   need_version=yes
16713   ;;
16714
16715 sysv4 | sysv4.3*)
16716   version_type=linux
16717   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16718   soname_spec='${libname}${release}${shared_ext}$major'
16719   shlibpath_var=LD_LIBRARY_PATH
16720   case $host_vendor in
16721     sni)
16722       shlibpath_overrides_runpath=no
16723       need_lib_prefix=no
16724       export_dynamic_flag_spec='${wl}-Blargedynsym'
16725       runpath_var=LD_RUN_PATH
16726       ;;
16727     siemens)
16728       need_lib_prefix=no
16729       ;;
16730     motorola)
16731       need_lib_prefix=no
16732       need_version=no
16733       shlibpath_overrides_runpath=no
16734       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16735       ;;
16736   esac
16737   ;;
16738
16739 sysv4*MP*)
16740   if test -d /usr/nec ;then
16741     version_type=linux
16742     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16743     soname_spec='$libname${shared_ext}.$major'
16744     shlibpath_var=LD_LIBRARY_PATH
16745   fi
16746   ;;
16747
16748 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16749   version_type=freebsd-elf
16750   need_lib_prefix=no
16751   need_version=no
16752   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16753   soname_spec='${libname}${release}${shared_ext}$major'
16754   shlibpath_var=LD_LIBRARY_PATH
16755   hardcode_into_libs=yes
16756   if test "$with_gnu_ld" = yes; then
16757     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16758     shlibpath_overrides_runpath=no
16759   else
16760     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16761     shlibpath_overrides_runpath=yes
16762     case $host_os in
16763       sco3.2v5*)
16764         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16765         ;;
16766     esac
16767   fi
16768   sys_lib_dlsearch_path_spec='/usr/lib'
16769   ;;
16770
16771 uts4*)
16772   version_type=linux
16773   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16774   soname_spec='${libname}${release}${shared_ext}$major'
16775   shlibpath_var=LD_LIBRARY_PATH
16776   ;;
16777
16778 *)
16779   dynamic_linker=no
16780   ;;
16781 esac
16782 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16783 echo "${ECHO_T}$dynamic_linker" >&6; }
16784 test "$dynamic_linker" = no && can_build_shared=no
16785
16786 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16787 if test "$GCC" = yes; then
16788   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16789 fi
16790
16791 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16792 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
16793 hardcode_action_F77=
16794 if test -n "$hardcode_libdir_flag_spec_F77" || \
16795    test -n "$runpath_var_F77" || \
16796    test "X$hardcode_automatic_F77" = "Xyes" ; then
16797
16798   # We can hardcode non-existant directories.
16799   if test "$hardcode_direct_F77" != no &&
16800      # If the only mechanism to avoid hardcoding is shlibpath_var, we
16801      # have to relink, otherwise we might link with an installed library
16802      # when we should be linking with a yet-to-be-installed one
16803      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
16804      test "$hardcode_minus_L_F77" != no; then
16805     # Linking always hardcodes the temporary library directory.
16806     hardcode_action_F77=relink
16807   else
16808     # We can link without hardcoding, and we can hardcode nonexisting dirs.
16809     hardcode_action_F77=immediate
16810   fi
16811 else
16812   # We cannot hardcode anything, or else we can only hardcode existing
16813   # directories.
16814   hardcode_action_F77=unsupported
16815 fi
16816 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
16817 echo "${ECHO_T}$hardcode_action_F77" >&6; }
16818
16819 if test "$hardcode_action_F77" = relink; then
16820   # Fast installation is not supported
16821   enable_fast_install=no
16822 elif test "$shlibpath_overrides_runpath" = yes ||
16823      test "$enable_shared" = no; then
16824   # Fast installation is not necessary
16825   enable_fast_install=needless
16826 fi
16827
16828
16829 # The else clause should only fire when bootstrapping the
16830 # libtool distribution, otherwise you forgot to ship ltmain.sh
16831 # with your package, and you will get complaints that there are
16832 # no rules to generate ltmain.sh.
16833 if test -f "$ltmain"; then
16834   # See if we are running on zsh, and set the options which allow our commands through
16835   # without removal of \ escapes.
16836   if test -n "${ZSH_VERSION+set}" ; then
16837     setopt NO_GLOB_SUBST
16838   fi
16839   # Now quote all the things that may contain metacharacters while being
16840   # careful not to overquote the AC_SUBSTed values.  We take copies of the
16841   # variables and quote the copies for generation of the libtool script.
16842   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
16843     SED SHELL STRIP \
16844     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
16845     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
16846     deplibs_check_method reload_flag reload_cmds need_locks \
16847     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
16848     lt_cv_sys_global_symbol_to_c_name_address \
16849     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
16850     old_postinstall_cmds old_postuninstall_cmds \
16851     compiler_F77 \
16852     CC_F77 \
16853     LD_F77 \
16854     lt_prog_compiler_wl_F77 \
16855     lt_prog_compiler_pic_F77 \
16856     lt_prog_compiler_static_F77 \
16857     lt_prog_compiler_no_builtin_flag_F77 \
16858     export_dynamic_flag_spec_F77 \
16859     thread_safe_flag_spec_F77 \
16860     whole_archive_flag_spec_F77 \
16861     enable_shared_with_static_runtimes_F77 \
16862     old_archive_cmds_F77 \
16863     old_archive_from_new_cmds_F77 \
16864     predep_objects_F77 \
16865     postdep_objects_F77 \
16866     predeps_F77 \
16867     postdeps_F77 \
16868     compiler_lib_search_path_F77 \
16869     archive_cmds_F77 \
16870     archive_expsym_cmds_F77 \
16871     postinstall_cmds_F77 \
16872     postuninstall_cmds_F77 \
16873     old_archive_from_expsyms_cmds_F77 \
16874     allow_undefined_flag_F77 \
16875     no_undefined_flag_F77 \
16876     export_symbols_cmds_F77 \
16877     hardcode_libdir_flag_spec_F77 \
16878     hardcode_libdir_flag_spec_ld_F77 \
16879     hardcode_libdir_separator_F77 \
16880     hardcode_automatic_F77 \
16881     module_cmds_F77 \
16882     module_expsym_cmds_F77 \
16883     lt_cv_prog_compiler_c_o_F77 \
16884     exclude_expsyms_F77 \
16885     include_expsyms_F77; do
16886
16887     case $var in
16888     old_archive_cmds_F77 | \
16889     old_archive_from_new_cmds_F77 | \
16890     archive_cmds_F77 | \
16891     archive_expsym_cmds_F77 | \
16892     module_cmds_F77 | \
16893     module_expsym_cmds_F77 | \
16894     old_archive_from_expsyms_cmds_F77 | \
16895     export_symbols_cmds_F77 | \
16896     extract_expsyms_cmds | reload_cmds | finish_cmds | \
16897     postinstall_cmds | postuninstall_cmds | \
16898     old_postinstall_cmds | old_postuninstall_cmds | \
16899     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
16900       # Double-quote double-evaled strings.
16901       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
16902       ;;
16903     *)
16904       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
16905       ;;
16906     esac
16907   done
16908
16909   case $lt_echo in
16910   *'\$0 --fallback-echo"')
16911     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
16912     ;;
16913   esac
16914
16915 cfgfile="$ofile"
16916
16917   cat <<__EOF__ >> "$cfgfile"
16918 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
16919
16920 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16921
16922 # Shell to use when invoking shell scripts.
16923 SHELL=$lt_SHELL
16924
16925 # Whether or not to build shared libraries.
16926 build_libtool_libs=$enable_shared
16927
16928 # Whether or not to build static libraries.
16929 build_old_libs=$enable_static
16930
16931 # Whether or not to add -lc for building shared libraries.
16932 build_libtool_need_lc=$archive_cmds_need_lc_F77
16933
16934 # Whether or not to disallow shared libs when runtime libs are static
16935 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
16936
16937 # Whether or not to optimize for fast installation.
16938 fast_install=$enable_fast_install
16939
16940 # The host system.
16941 host_alias=$host_alias
16942 host=$host
16943 host_os=$host_os
16944
16945 # The build system.
16946 build_alias=$build_alias
16947 build=$build
16948 build_os=$build_os
16949
16950 # An echo program that does not interpret backslashes.
16951 echo=$lt_echo
16952
16953 # The archiver.
16954 AR=$lt_AR
16955 AR_FLAGS=$lt_AR_FLAGS
16956
16957 # A C compiler.
16958 LTCC=$lt_LTCC
16959
16960 # LTCC compiler flags.
16961 LTCFLAGS=$lt_LTCFLAGS
16962
16963 # A language-specific compiler.
16964 CC=$lt_compiler_F77
16965
16966 # Is the compiler the GNU C compiler?
16967 with_gcc=$GCC_F77
16968
16969 # An ERE matcher.
16970 EGREP=$lt_EGREP
16971
16972 # The linker used to build libraries.
16973 LD=$lt_LD_F77
16974
16975 # Whether we need hard or soft links.
16976 LN_S=$lt_LN_S
16977
16978 # A BSD-compatible nm program.
16979 NM=$lt_NM
16980
16981 # A symbol stripping program
16982 STRIP=$lt_STRIP
16983
16984 # Used to examine libraries when file_magic_cmd begins "file"
16985 MAGIC_CMD=$MAGIC_CMD
16986
16987 # Used on cygwin: DLL creation program.
16988 DLLTOOL="$DLLTOOL"
16989
16990 # Used on cygwin: object dumper.
16991 OBJDUMP="$OBJDUMP"
16992
16993 # Used on cygwin: assembler.
16994 AS="$AS"
16995
16996 # The name of the directory that contains temporary libtool files.
16997 objdir=$objdir
16998
16999 # How to create reloadable object files.
17000 reload_flag=$lt_reload_flag
17001 reload_cmds=$lt_reload_cmds
17002
17003 # How to pass a linker flag through the compiler.
17004 wl=$lt_lt_prog_compiler_wl_F77
17005
17006 # Object file suffix (normally "o").
17007 objext="$ac_objext"
17008
17009 # Old archive suffix (normally "a").
17010 libext="$libext"
17011
17012 # Shared library suffix (normally ".so").
17013 shrext_cmds='$shrext_cmds'
17014
17015 # Executable file suffix (normally "").
17016 exeext="$exeext"
17017
17018 # Additional compiler flags for building library objects.
17019 pic_flag=$lt_lt_prog_compiler_pic_F77
17020 pic_mode=$pic_mode
17021
17022 # What is the maximum length of a command?
17023 max_cmd_len=$lt_cv_sys_max_cmd_len
17024
17025 # Does compiler simultaneously support -c and -o options?
17026 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
17027
17028 # Must we lock files when doing compilation?
17029 need_locks=$lt_need_locks
17030
17031 # Do we need the lib prefix for modules?
17032 need_lib_prefix=$need_lib_prefix
17033
17034 # Do we need a version for libraries?
17035 need_version=$need_version
17036
17037 # Whether dlopen is supported.
17038 dlopen_support=$enable_dlopen
17039
17040 # Whether dlopen of programs is supported.
17041 dlopen_self=$enable_dlopen_self
17042
17043 # Whether dlopen of statically linked programs is supported.
17044 dlopen_self_static=$enable_dlopen_self_static
17045
17046 # Compiler flag to prevent dynamic linking.
17047 link_static_flag=$lt_lt_prog_compiler_static_F77
17048
17049 # Compiler flag to turn off builtin functions.
17050 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
17051
17052 # Compiler flag to allow reflexive dlopens.
17053 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
17054
17055 # Compiler flag to generate shared objects directly from archives.
17056 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
17057
17058 # Compiler flag to generate thread-safe objects.
17059 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
17060
17061 # Library versioning type.
17062 version_type=$version_type
17063
17064 # Format of library name prefix.
17065 libname_spec=$lt_libname_spec
17066
17067 # List of archive names.  First name is the real one, the rest are links.
17068 # The last name is the one that the linker finds with -lNAME.
17069 library_names_spec=$lt_library_names_spec
17070
17071 # The coded name of the library, if different from the real name.
17072 soname_spec=$lt_soname_spec
17073
17074 # Commands used to build and install an old-style archive.
17075 RANLIB=$lt_RANLIB
17076 old_archive_cmds=$lt_old_archive_cmds_F77
17077 old_postinstall_cmds=$lt_old_postinstall_cmds
17078 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17079
17080 # Create an old-style archive from a shared archive.
17081 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
17082
17083 # Create a temporary old-style archive to link instead of a shared archive.
17084 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
17085
17086 # Commands used to build and install a shared archive.
17087 archive_cmds=$lt_archive_cmds_F77
17088 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
17089 postinstall_cmds=$lt_postinstall_cmds
17090 postuninstall_cmds=$lt_postuninstall_cmds
17091
17092 # Commands used to build a loadable module (assumed same as above if empty)
17093 module_cmds=$lt_module_cmds_F77
17094 module_expsym_cmds=$lt_module_expsym_cmds_F77
17095
17096 # Commands to strip libraries.
17097 old_striplib=$lt_old_striplib
17098 striplib=$lt_striplib
17099
17100 # Dependencies to place before the objects being linked to create a
17101 # shared library.
17102 predep_objects=$lt_predep_objects_F77
17103
17104 # Dependencies to place after the objects being linked to create a
17105 # shared library.
17106 postdep_objects=$lt_postdep_objects_F77
17107
17108 # Dependencies to place before the objects being linked to create a
17109 # shared library.
17110 predeps=$lt_predeps_F77
17111
17112 # Dependencies to place after the objects being linked to create a
17113 # shared library.
17114 postdeps=$lt_postdeps_F77
17115
17116 # The library search path used internally by the compiler when linking
17117 # a shared library.
17118 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
17119
17120 # Method to check whether dependent libraries are shared objects.
17121 deplibs_check_method=$lt_deplibs_check_method
17122
17123 # Command to use when deplibs_check_method == file_magic.
17124 file_magic_cmd=$lt_file_magic_cmd
17125
17126 # Flag that allows shared libraries with undefined symbols to be built.
17127 allow_undefined_flag=$lt_allow_undefined_flag_F77
17128
17129 # Flag that forces no undefined symbols.
17130 no_undefined_flag=$lt_no_undefined_flag_F77
17131
17132 # Commands used to finish a libtool library installation in a directory.
17133 finish_cmds=$lt_finish_cmds
17134
17135 # Same as above, but a single script fragment to be evaled but not shown.
17136 finish_eval=$lt_finish_eval
17137
17138 # Take the output of nm and produce a listing of raw symbols and C names.
17139 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17140
17141 # Transform the output of nm in a proper C declaration
17142 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17143
17144 # Transform the output of nm in a C name address pair
17145 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17146
17147 # This is the shared library runtime path variable.
17148 runpath_var=$runpath_var
17149
17150 # This is the shared library path variable.
17151 shlibpath_var=$shlibpath_var
17152
17153 # Is shlibpath searched before the hard-coded library search path?
17154 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17155
17156 # How to hardcode a shared library path into an executable.
17157 hardcode_action=$hardcode_action_F77
17158
17159 # Whether we should hardcode library paths into libraries.
17160 hardcode_into_libs=$hardcode_into_libs
17161
17162 # Flag to hardcode \$libdir into a binary during linking.
17163 # This must work even if \$libdir does not exist.
17164 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
17165
17166 # If ld is used when linking, flag to hardcode \$libdir into
17167 # a binary during linking. This must work even if \$libdir does
17168 # not exist.
17169 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
17170
17171 # Whether we need a single -rpath flag with a separated argument.
17172 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
17173
17174 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17175 # resulting binary.
17176 hardcode_direct=$hardcode_direct_F77
17177
17178 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17179 # resulting binary.
17180 hardcode_minus_L=$hardcode_minus_L_F77
17181
17182 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17183 # the resulting binary.
17184 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
17185
17186 # Set to yes if building a shared library automatically hardcodes DIR into the library
17187 # and all subsequent libraries and executables linked against it.
17188 hardcode_automatic=$hardcode_automatic_F77
17189
17190 # Variables whose values should be saved in libtool wrapper scripts and
17191 # restored at relink time.
17192 variables_saved_for_relink="$variables_saved_for_relink"
17193
17194 # Whether libtool must link a program against all its dependency libraries.
17195 link_all_deplibs=$link_all_deplibs_F77
17196
17197 # Compile-time system search path for libraries
17198 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17199
17200 # Run-time system search path for libraries
17201 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17202
17203 # Fix the shell variable \$srcfile for the compiler.
17204 fix_srcfile_path="$fix_srcfile_path_F77"
17205
17206 # Set to yes if exported symbols are required.
17207 always_export_symbols=$always_export_symbols_F77
17208
17209 # The commands to list exported symbols.
17210 export_symbols_cmds=$lt_export_symbols_cmds_F77
17211
17212 # The commands to extract the exported symbol list from a shared archive.
17213 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17214
17215 # Symbols that should not be listed in the preloaded symbols.
17216 exclude_expsyms=$lt_exclude_expsyms_F77
17217
17218 # Symbols that must always be exported.
17219 include_expsyms=$lt_include_expsyms_F77
17220
17221 # ### END LIBTOOL TAG CONFIG: $tagname
17222
17223 __EOF__
17224
17225
17226 else
17227   # If there is no Makefile yet, we rely on a make rule to execute
17228   # `config.status --recheck' to rerun these tests and create the
17229   # libtool script then.
17230   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
17231   if test -f "$ltmain_in"; then
17232     test -f Makefile && make "$ltmain"
17233   fi
17234 fi
17235
17236
17237 ac_ext=c
17238 ac_cpp='$CPP $CPPFLAGS'
17239 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17240 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17241 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17242
17243 CC="$lt_save_CC"
17244
17245         else
17246           tagname=""
17247         fi
17248         ;;
17249
17250       GCJ)
17251         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
17252
17253
17254 # Source file extension for Java test sources.
17255 ac_ext=java
17256
17257 # Object file extension for compiled Java test sources.
17258 objext=o
17259 objext_GCJ=$objext
17260
17261 # Code to be used in simple compile tests
17262 lt_simple_compile_test_code="class foo {}\n"
17263
17264 # Code to be used in simple link tests
17265 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
17266
17267 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
17268
17269 # If no C compiler was specified, use CC.
17270 LTCC=${LTCC-"$CC"}
17271
17272 # If no C compiler flags were specified, use CFLAGS.
17273 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
17274
17275 # Allow CC to be a program name with arguments.
17276 compiler=$CC
17277
17278
17279 # save warnings/boilerplate of simple test code
17280 ac_outfile=conftest.$ac_objext
17281 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
17282 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17283 _lt_compiler_boilerplate=`cat conftest.err`
17284 $rm conftest*
17285
17286 ac_outfile=conftest.$ac_objext
17287 printf "$lt_simple_link_test_code" >conftest.$ac_ext
17288 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17289 _lt_linker_boilerplate=`cat conftest.err`
17290 $rm conftest*
17291
17292
17293 # Allow CC to be a program name with arguments.
17294 lt_save_CC="$CC"
17295 CC=${GCJ-"gcj"}
17296 compiler=$CC
17297 compiler_GCJ=$CC
17298 for cc_temp in $compiler""; do
17299   case $cc_temp in
17300     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17301     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17302     \-*) ;;
17303     *) break;;
17304   esac
17305 done
17306 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17307
17308
17309 # GCJ did not exist at the time GCC didn't implicitly link libc in.
17310 archive_cmds_need_lc_GCJ=no
17311
17312 old_archive_cmds_GCJ=$old_archive_cmds
17313
17314
17315 lt_prog_compiler_no_builtin_flag_GCJ=
17316
17317 if test "$GCC" = yes; then
17318   lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
17319
17320
17321 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
17322 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
17323 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
17324   echo $ECHO_N "(cached) $ECHO_C" >&6
17325 else
17326   lt_cv_prog_compiler_rtti_exceptions=no
17327   ac_outfile=conftest.$ac_objext
17328    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17329    lt_compiler_flag="-fno-rtti -fno-exceptions"
17330    # Insert the option either (1) after the last *FLAGS variable, or
17331    # (2) before a word containing "conftest.", or (3) at the end.
17332    # Note that $ac_compile itself does not contain backslashes and begins
17333    # with a dollar sign (not a hyphen), so the echo should work correctly.
17334    # The option is referenced via a variable to avoid confusing sed.
17335    lt_compile=`echo "$ac_compile" | $SED \
17336    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17337    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17338    -e 's:$: $lt_compiler_flag:'`
17339    (eval echo "\"\$as_me:17339: $lt_compile\"" >&5)
17340    (eval "$lt_compile" 2>conftest.err)
17341    ac_status=$?
17342    cat conftest.err >&5
17343    echo "$as_me:17343: \$? = $ac_status" >&5
17344    if (exit $ac_status) && test -s "$ac_outfile"; then
17345      # The compiler can only warn and ignore the option if not recognized
17346      # So say no if there are warnings other than the usual output.
17347      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17348      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17349      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17350        lt_cv_prog_compiler_rtti_exceptions=yes
17351      fi
17352    fi
17353    $rm conftest*
17354
17355 fi
17356 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
17357 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
17358
17359 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
17360     lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
17361 else
17362     :
17363 fi
17364
17365 fi
17366
17367 lt_prog_compiler_wl_GCJ=
17368 lt_prog_compiler_pic_GCJ=
17369 lt_prog_compiler_static_GCJ=
17370
17371 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
17372 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
17373
17374   if test "$GCC" = yes; then
17375     lt_prog_compiler_wl_GCJ='-Wl,'
17376     lt_prog_compiler_static_GCJ='-static'
17377
17378     case $host_os in
17379       aix*)
17380       # All AIX code is PIC.
17381       if test "$host_cpu" = ia64; then
17382         # AIX 5 now supports IA64 processor
17383         lt_prog_compiler_static_GCJ='-Bstatic'
17384       fi
17385       ;;
17386
17387     amigaos*)
17388       # FIXME: we need at least 68020 code to build shared libraries, but
17389       # adding the `-m68020' flag to GCC prevents building anything better,
17390       # like `-m68040'.
17391       lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
17392       ;;
17393
17394     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
17395       # PIC is the default for these OSes.
17396       ;;
17397
17398     mingw* | pw32* | os2*)
17399       # This hack is so that the source file can tell whether it is being
17400       # built for inclusion in a dll (and should export symbols for example).
17401       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
17402       ;;
17403
17404     darwin* | rhapsody*)
17405       # PIC is the default on this platform
17406       # Common symbols not allowed in MH_DYLIB files
17407       lt_prog_compiler_pic_GCJ='-fno-common'
17408       ;;
17409
17410     interix3*)
17411       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
17412       # Instead, we relocate shared libraries at runtime.
17413       ;;
17414
17415     msdosdjgpp*)
17416       # Just because we use GCC doesn't mean we suddenly get shared libraries
17417       # on systems that don't support them.
17418       lt_prog_compiler_can_build_shared_GCJ=no
17419       enable_shared=no
17420       ;;
17421
17422     sysv4*MP*)
17423       if test -d /usr/nec; then
17424         lt_prog_compiler_pic_GCJ=-Kconform_pic
17425       fi
17426       ;;
17427
17428     hpux*)
17429       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17430       # not for PA HP-UX.
17431       case $host_cpu in
17432       hppa*64*|ia64*)
17433         # +Z the default
17434         ;;
17435       *)
17436         lt_prog_compiler_pic_GCJ='-fPIC'
17437         ;;
17438       esac
17439       ;;
17440
17441     *)
17442       lt_prog_compiler_pic_GCJ='-fPIC'
17443       ;;
17444     esac
17445   else
17446     # PORTME Check for flag to pass linker flags through the system compiler.
17447     case $host_os in
17448     aix*)
17449       lt_prog_compiler_wl_GCJ='-Wl,'
17450       if test "$host_cpu" = ia64; then
17451         # AIX 5 now supports IA64 processor
17452         lt_prog_compiler_static_GCJ='-Bstatic'
17453       else
17454         lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
17455       fi
17456       ;;
17457       darwin*)
17458         # PIC is the default on this platform
17459         # Common symbols not allowed in MH_DYLIB files
17460        case $cc_basename in
17461          xlc*)
17462          lt_prog_compiler_pic_GCJ='-qnocommon'
17463          lt_prog_compiler_wl_GCJ='-Wl,'
17464          ;;
17465        esac
17466        ;;
17467
17468     mingw* | pw32* | os2*)
17469       # This hack is so that the source file can tell whether it is being
17470       # built for inclusion in a dll (and should export symbols for example).
17471       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
17472       ;;
17473
17474     hpux9* | hpux10* | hpux11*)
17475       lt_prog_compiler_wl_GCJ='-Wl,'
17476       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17477       # not for PA HP-UX.
17478       case $host_cpu in
17479       hppa*64*|ia64*)
17480         # +Z the default
17481         ;;
17482       *)
17483         lt_prog_compiler_pic_GCJ='+Z'
17484         ;;
17485       esac
17486       # Is there a better lt_prog_compiler_static that works with the bundled CC?
17487       lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
17488       ;;
17489
17490     irix5* | irix6* | nonstopux*)
17491       lt_prog_compiler_wl_GCJ='-Wl,'
17492       # PIC (with -KPIC) is the default.
17493       lt_prog_compiler_static_GCJ='-non_shared'
17494       ;;
17495
17496     newsos6)
17497       lt_prog_compiler_pic_GCJ='-KPIC'
17498       lt_prog_compiler_static_GCJ='-Bstatic'
17499       ;;
17500
17501     linux* | k*bsd*-gnu)
17502       case $cc_basename in
17503       icc* | ecc*)
17504         lt_prog_compiler_wl_GCJ='-Wl,'
17505         lt_prog_compiler_pic_GCJ='-KPIC'
17506         lt_prog_compiler_static_GCJ='-static'
17507         ;;
17508       pgcc* | pgf77* | pgf90* | pgf95*)
17509         # Portland Group compilers (*not* the Pentium gcc compiler,
17510         # which looks to be a dead project)
17511         lt_prog_compiler_wl_GCJ='-Wl,'
17512         lt_prog_compiler_pic_GCJ='-fpic'
17513         lt_prog_compiler_static_GCJ='-Bstatic'
17514         ;;
17515       ccc*)
17516         lt_prog_compiler_wl_GCJ='-Wl,'
17517         # All Alpha code is PIC.
17518         lt_prog_compiler_static_GCJ='-non_shared'
17519         ;;
17520       esac
17521       ;;
17522
17523     osf3* | osf4* | osf5*)
17524       lt_prog_compiler_wl_GCJ='-Wl,'
17525       # All OSF/1 code is PIC.
17526       lt_prog_compiler_static_GCJ='-non_shared'
17527       ;;
17528
17529     solaris*)
17530       lt_prog_compiler_pic_GCJ='-KPIC'
17531       lt_prog_compiler_static_GCJ='-Bstatic'
17532       case $cc_basename in
17533       f77* | f90* | f95*)
17534         lt_prog_compiler_wl_GCJ='-Qoption ld ';;
17535       *)
17536         lt_prog_compiler_wl_GCJ='-Wl,';;
17537       esac
17538       ;;
17539
17540     sunos4*)
17541       lt_prog_compiler_wl_GCJ='-Qoption ld '
17542       lt_prog_compiler_pic_GCJ='-PIC'
17543       lt_prog_compiler_static_GCJ='-Bstatic'
17544       ;;
17545
17546     sysv4 | sysv4.2uw2* | sysv4.3*)
17547       lt_prog_compiler_wl_GCJ='-Wl,'
17548       lt_prog_compiler_pic_GCJ='-KPIC'
17549       lt_prog_compiler_static_GCJ='-Bstatic'
17550       ;;
17551
17552     sysv4*MP*)
17553       if test -d /usr/nec ;then
17554         lt_prog_compiler_pic_GCJ='-Kconform_pic'
17555         lt_prog_compiler_static_GCJ='-Bstatic'
17556       fi
17557       ;;
17558
17559     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
17560       lt_prog_compiler_wl_GCJ='-Wl,'
17561       lt_prog_compiler_pic_GCJ='-KPIC'
17562       lt_prog_compiler_static_GCJ='-Bstatic'
17563       ;;
17564
17565     unicos*)
17566       lt_prog_compiler_wl_GCJ='-Wl,'
17567       lt_prog_compiler_can_build_shared_GCJ=no
17568       ;;
17569
17570     uts4*)
17571       lt_prog_compiler_pic_GCJ='-pic'
17572       lt_prog_compiler_static_GCJ='-Bstatic'
17573       ;;
17574
17575     *)
17576       lt_prog_compiler_can_build_shared_GCJ=no
17577       ;;
17578     esac
17579   fi
17580
17581 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
17582 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
17583
17584 #
17585 # Check to make sure the PIC flag actually works.
17586 #
17587 if test -n "$lt_prog_compiler_pic_GCJ"; then
17588
17589 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
17590 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
17591 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
17592   echo $ECHO_N "(cached) $ECHO_C" >&6
17593 else
17594   lt_prog_compiler_pic_works_GCJ=no
17595   ac_outfile=conftest.$ac_objext
17596    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17597    lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
17598    # Insert the option either (1) after the last *FLAGS variable, or
17599    # (2) before a word containing "conftest.", or (3) at the end.
17600    # Note that $ac_compile itself does not contain backslashes and begins
17601    # with a dollar sign (not a hyphen), so the echo should work correctly.
17602    # The option is referenced via a variable to avoid confusing sed.
17603    lt_compile=`echo "$ac_compile" | $SED \
17604    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17605    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17606    -e 's:$: $lt_compiler_flag:'`
17607    (eval echo "\"\$as_me:17607: $lt_compile\"" >&5)
17608    (eval "$lt_compile" 2>conftest.err)
17609    ac_status=$?
17610    cat conftest.err >&5
17611    echo "$as_me:17611: \$? = $ac_status" >&5
17612    if (exit $ac_status) && test -s "$ac_outfile"; then
17613      # The compiler can only warn and ignore the option if not recognized
17614      # So say no if there are warnings other than the usual output.
17615      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17616      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17617      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17618        lt_prog_compiler_pic_works_GCJ=yes
17619      fi
17620    fi
17621    $rm conftest*
17622
17623 fi
17624 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
17625 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
17626
17627 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
17628     case $lt_prog_compiler_pic_GCJ in
17629      "" | " "*) ;;
17630      *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
17631      esac
17632 else
17633     lt_prog_compiler_pic_GCJ=
17634      lt_prog_compiler_can_build_shared_GCJ=no
17635 fi
17636
17637 fi
17638 case $host_os in
17639   # For platforms which do not support PIC, -DPIC is meaningless:
17640   *djgpp*)
17641     lt_prog_compiler_pic_GCJ=
17642     ;;
17643   *)
17644     lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
17645     ;;
17646 esac
17647
17648 #
17649 # Check to make sure the static flag actually works.
17650 #
17651 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
17652 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
17653 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
17654 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
17655   echo $ECHO_N "(cached) $ECHO_C" >&6
17656 else
17657   lt_prog_compiler_static_works_GCJ=no
17658    save_LDFLAGS="$LDFLAGS"
17659    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
17660    printf "$lt_simple_link_test_code" > conftest.$ac_ext
17661    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17662      # The linker can only warn and ignore the option if not recognized
17663      # So say no if there are warnings
17664      if test -s conftest.err; then
17665        # Append any errors to the config.log.
17666        cat conftest.err 1>&5
17667        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
17668        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17669        if diff conftest.exp conftest.er2 >/dev/null; then
17670          lt_prog_compiler_static_works_GCJ=yes
17671        fi
17672      else
17673        lt_prog_compiler_static_works_GCJ=yes
17674      fi
17675    fi
17676    $rm conftest*
17677    LDFLAGS="$save_LDFLAGS"
17678
17679 fi
17680 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
17681 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
17682
17683 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
17684     :
17685 else
17686     lt_prog_compiler_static_GCJ=
17687 fi
17688
17689
17690 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
17691 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
17692 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
17693   echo $ECHO_N "(cached) $ECHO_C" >&6
17694 else
17695   lt_cv_prog_compiler_c_o_GCJ=no
17696    $rm -r conftest 2>/dev/null
17697    mkdir conftest
17698    cd conftest
17699    mkdir out
17700    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17701
17702    lt_compiler_flag="-o out/conftest2.$ac_objext"
17703    # Insert the option either (1) after the last *FLAGS variable, or
17704    # (2) before a word containing "conftest.", or (3) at the end.
17705    # Note that $ac_compile itself does not contain backslashes and begins
17706    # with a dollar sign (not a hyphen), so the echo should work correctly.
17707    lt_compile=`echo "$ac_compile" | $SED \
17708    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17709    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17710    -e 's:$: $lt_compiler_flag:'`
17711    (eval echo "\"\$as_me:17711: $lt_compile\"" >&5)
17712    (eval "$lt_compile" 2>out/conftest.err)
17713    ac_status=$?
17714    cat out/conftest.err >&5
17715    echo "$as_me:17715: \$? = $ac_status" >&5
17716    if (exit $ac_status) && test -s out/conftest2.$ac_objext
17717    then
17718      # The compiler can only warn and ignore the option if not recognized
17719      # So say no if there are warnings
17720      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
17721      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17722      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17723        lt_cv_prog_compiler_c_o_GCJ=yes
17724      fi
17725    fi
17726    chmod u+w . 2>&5
17727    $rm conftest*
17728    # SGI C++ compiler will create directory out/ii_files/ for
17729    # template instantiation
17730    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
17731    $rm out/* && rmdir out
17732    cd ..
17733    rmdir conftest
17734    $rm conftest*
17735
17736 fi
17737 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
17738 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
17739
17740
17741 hard_links="nottested"
17742 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
17743   # do not overwrite the value of need_locks provided by the user
17744   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
17745 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
17746   hard_links=yes
17747   $rm conftest*
17748   ln conftest.a conftest.b 2>/dev/null && hard_links=no
17749   touch conftest.a
17750   ln conftest.a conftest.b 2>&5 || hard_links=no
17751   ln conftest.a conftest.b 2>/dev/null && hard_links=no
17752   { echo "$as_me:$LINENO: result: $hard_links" >&5
17753 echo "${ECHO_T}$hard_links" >&6; }
17754   if test "$hard_links" = no; then
17755     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17756 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17757     need_locks=warn
17758   fi
17759 else
17760   need_locks=no
17761 fi
17762
17763 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17764 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
17765
17766   runpath_var=
17767   allow_undefined_flag_GCJ=
17768   enable_shared_with_static_runtimes_GCJ=no
17769   archive_cmds_GCJ=
17770   archive_expsym_cmds_GCJ=
17771   old_archive_From_new_cmds_GCJ=
17772   old_archive_from_expsyms_cmds_GCJ=
17773   export_dynamic_flag_spec_GCJ=
17774   whole_archive_flag_spec_GCJ=
17775   thread_safe_flag_spec_GCJ=
17776   hardcode_libdir_flag_spec_GCJ=
17777   hardcode_libdir_flag_spec_ld_GCJ=
17778   hardcode_libdir_separator_GCJ=
17779   hardcode_direct_GCJ=no
17780   hardcode_minus_L_GCJ=no
17781   hardcode_shlibpath_var_GCJ=unsupported
17782   link_all_deplibs_GCJ=unknown
17783   hardcode_automatic_GCJ=no
17784   module_cmds_GCJ=
17785   module_expsym_cmds_GCJ=
17786   always_export_symbols_GCJ=no
17787   export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17788   # include_expsyms should be a list of space-separated symbols to be *always*
17789   # included in the symbol list
17790   include_expsyms_GCJ=
17791   # exclude_expsyms can be an extended regexp of symbols to exclude
17792   # it will be wrapped by ` (' and `)$', so one must not match beginning or
17793   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17794   # as well as any symbol that contains `d'.
17795   exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
17796   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17797   # platforms (ab)use it in PIC code, but their linkers get confused if
17798   # the symbol is explicitly referenced.  Since portable code cannot
17799   # rely on this symbol name, it's probably fine to never include it in
17800   # preloaded symbol tables.
17801   extract_expsyms_cmds=
17802   # Just being paranoid about ensuring that cc_basename is set.
17803   for cc_temp in $compiler""; do
17804   case $cc_temp in
17805     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17806     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17807     \-*) ;;
17808     *) break;;
17809   esac
17810 done
17811 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17812
17813   case $host_os in
17814   cygwin* | mingw* | pw32*)
17815     # FIXME: the MSVC++ port hasn't been tested in a loooong time
17816     # When not using gcc, we currently assume that we are using
17817     # Microsoft Visual C++.
17818     if test "$GCC" != yes; then
17819       with_gnu_ld=no
17820     fi
17821     ;;
17822   interix*)
17823     # we just hope/assume this is gcc and not c89 (= MSVC++)
17824     with_gnu_ld=yes
17825     ;;
17826   openbsd*)
17827     with_gnu_ld=no
17828     ;;
17829   esac
17830
17831   ld_shlibs_GCJ=yes
17832   if test "$with_gnu_ld" = yes; then
17833     # If archive_cmds runs LD, not CC, wlarc should be empty
17834     wlarc='${wl}'
17835
17836     # Set some defaults for GNU ld with shared library support. These
17837     # are reset later if shared libraries are not supported. Putting them
17838     # here allows them to be overridden if necessary.
17839     runpath_var=LD_RUN_PATH
17840     hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
17841     export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
17842     # ancient GNU ld didn't support --whole-archive et. al.
17843     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
17844         whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17845       else
17846         whole_archive_flag_spec_GCJ=
17847     fi
17848     supports_anon_versioning=no
17849     case `$LD -v 2>/dev/null` in
17850       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17851       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17852       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17853       *\ 2.11.*) ;; # other 2.11 versions
17854       *) supports_anon_versioning=yes ;;
17855     esac
17856
17857     # See if GNU ld supports shared libraries.
17858     case $host_os in
17859     aix3* | aix4* | aix5*)
17860       # On AIX/PPC, the GNU linker is very broken
17861       if test "$host_cpu" != ia64; then
17862         ld_shlibs_GCJ=no
17863         cat <<EOF 1>&2
17864
17865 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
17866 *** to be unable to reliably create shared libraries on AIX.
17867 *** Therefore, libtool is disabling shared libraries support.  If you
17868 *** really care for shared libraries, you may want to modify your PATH
17869 *** so that a non-GNU linker is found, and then restart.
17870
17871 EOF
17872       fi
17873       ;;
17874
17875     amigaos*)
17876       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)'
17877       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17878       hardcode_minus_L_GCJ=yes
17879
17880       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
17881       # that the semantics of dynamic libraries on AmigaOS, at least up
17882       # to version 4, is to share data among multiple programs linked
17883       # with the same dynamic library.  Since this doesn't match the
17884       # behavior of shared libraries on other platforms, we can't use
17885       # them.
17886       ld_shlibs_GCJ=no
17887       ;;
17888
17889     beos*)
17890       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17891         allow_undefined_flag_GCJ=unsupported
17892         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17893         # support --undefined.  This deserves some investigation.  FIXME
17894         archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17895       else
17896         ld_shlibs_GCJ=no
17897       fi
17898       ;;
17899
17900     cygwin* | mingw* | pw32*)
17901       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
17902       # as there is no search path for DLLs.
17903       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17904       allow_undefined_flag_GCJ=unsupported
17905       always_export_symbols_GCJ=no
17906       enable_shared_with_static_runtimes_GCJ=yes
17907       export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
17908
17909       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
17910         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17911         # If the export-symbols file already is a .def file (1st line
17912         # is EXPORTS), use it as is; otherwise, prepend...
17913         archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17914           cp $export_symbols $output_objdir/$soname.def;
17915         else
17916           echo EXPORTS > $output_objdir/$soname.def;
17917           cat $export_symbols >> $output_objdir/$soname.def;
17918         fi~
17919         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17920       else
17921         ld_shlibs_GCJ=no
17922       fi
17923       ;;
17924
17925     interix3*)
17926       hardcode_direct_GCJ=no
17927       hardcode_shlibpath_var_GCJ=no
17928       hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17929       export_dynamic_flag_spec_GCJ='${wl}-E'
17930       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17931       # Instead, shared libraries are loaded at an image base (0x10000000 by
17932       # default) and relocated if they conflict, which is a slow very memory
17933       # consuming and fragmenting process.  To avoid this, we pick a random,
17934       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17935       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
17936       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'
17937       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'
17938       ;;
17939
17940     linux* | k*bsd*-gnu)
17941       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17942         tmp_addflag=
17943         case $cc_basename,$host_cpu in
17944         pgcc*)                          # Portland Group C compiler
17945           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'
17946           tmp_addflag=' $pic_flag'
17947           ;;
17948         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
17949           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'
17950           tmp_addflag=' $pic_flag -Mnomain' ;;
17951         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
17952           tmp_addflag=' -i_dynamic' ;;
17953         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
17954           tmp_addflag=' -i_dynamic -nofor_main' ;;
17955         ifc* | ifort*)                  # Intel Fortran compiler
17956           tmp_addflag=' -nofor_main' ;;
17957         esac
17958         archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17959
17960         if test $supports_anon_versioning = yes; then
17961           archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
17962   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17963   $echo "local: *; };" >> $output_objdir/$libname.ver~
17964           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17965         fi
17966         link_all_deplibs_GCJ=no
17967       else
17968         ld_shlibs_GCJ=no
17969       fi
17970       ;;
17971
17972     netbsd* | netbsdelf*-gnu)
17973       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17974         archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17975         wlarc=
17976       else
17977         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17978         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17979       fi
17980       ;;
17981
17982     solaris*)
17983       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17984         ld_shlibs_GCJ=no
17985         cat <<EOF 1>&2
17986
17987 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
17988 *** create shared libraries on Solaris systems.  Therefore, libtool
17989 *** is disabling shared libraries support.  We urge you to upgrade GNU
17990 *** binutils to release 2.9.1 or newer.  Another option is to modify
17991 *** your PATH or compiler configuration so that the native linker is
17992 *** used, and then restart.
17993
17994 EOF
17995       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17996         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17997         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17998       else
17999         ld_shlibs_GCJ=no
18000       fi
18001       ;;
18002
18003     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
18004       case `$LD -v 2>&1` in
18005         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
18006         ld_shlibs_GCJ=no
18007         cat <<_LT_EOF 1>&2
18008
18009 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
18010 *** reliably create shared libraries on SCO systems.  Therefore, libtool
18011 *** is disabling shared libraries support.  We urge you to upgrade GNU
18012 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
18013 *** your PATH or compiler configuration so that the native linker is
18014 *** used, and then restart.
18015
18016 _LT_EOF
18017         ;;
18018         *)
18019           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18020             hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
18021             archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
18022             archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
18023           else
18024             ld_shlibs_GCJ=no
18025           fi
18026         ;;
18027       esac
18028       ;;
18029
18030     sunos4*)
18031       archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18032       wlarc=
18033       hardcode_direct_GCJ=yes
18034       hardcode_shlibpath_var_GCJ=no
18035       ;;
18036
18037     *)
18038       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18039         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18040         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18041       else
18042         ld_shlibs_GCJ=no
18043       fi
18044       ;;
18045     esac
18046
18047     if test "$ld_shlibs_GCJ" = no; then
18048       runpath_var=
18049       hardcode_libdir_flag_spec_GCJ=
18050       export_dynamic_flag_spec_GCJ=
18051       whole_archive_flag_spec_GCJ=
18052     fi
18053   else
18054     # PORTME fill in a description of your system's linker (not GNU ld)
18055     case $host_os in
18056     aix3*)
18057       allow_undefined_flag_GCJ=unsupported
18058       always_export_symbols_GCJ=yes
18059       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'
18060       # Note: this linker hardcodes the directories in LIBPATH if there
18061       # are no directories specified by -L.
18062       hardcode_minus_L_GCJ=yes
18063       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
18064         # Neither direct hardcoding nor static linking is supported with a
18065         # broken collect2.
18066         hardcode_direct_GCJ=unsupported
18067       fi
18068       ;;
18069
18070     aix4* | aix5*)
18071       if test "$host_cpu" = ia64; then
18072         # On IA64, the linker does run time linking by default, so we don't
18073         # have to do anything special.
18074         aix_use_runtimelinking=no
18075         exp_sym_flag='-Bexport'
18076         no_entry_flag=""
18077       else
18078         # If we're using GNU nm, then we don't want the "-C" option.
18079         # -C means demangle to AIX nm, but means don't demangle with GNU nm
18080         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
18081           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'
18082         else
18083           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'
18084         fi
18085         aix_use_runtimelinking=no
18086
18087         # Test if we are trying to use run time linking or normal
18088         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18089         # need to do runtime linking.
18090         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
18091           for ld_flag in $LDFLAGS; do
18092           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
18093             aix_use_runtimelinking=yes
18094             break
18095           fi
18096           done
18097           ;;
18098         esac
18099
18100         exp_sym_flag='-bexport'
18101         no_entry_flag='-bnoentry'
18102       fi
18103
18104       # When large executables or shared objects are built, AIX ld can
18105       # have problems creating the table of contents.  If linking a library
18106       # or program results in "error TOC overflow" add -mminimal-toc to
18107       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
18108       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18109
18110       archive_cmds_GCJ=''
18111       hardcode_direct_GCJ=yes
18112       hardcode_libdir_separator_GCJ=':'
18113       link_all_deplibs_GCJ=yes
18114
18115       if test "$GCC" = yes; then
18116         case $host_os in aix4.[012]|aix4.[012].*)
18117         # We only want to do this on AIX 4.2 and lower, the check
18118         # below for broken collect2 doesn't work under 4.3+
18119           collect2name=`${CC} -print-prog-name=collect2`
18120           if test -f "$collect2name" && \
18121            strings "$collect2name" | grep resolve_lib_name >/dev/null
18122           then
18123           # We have reworked collect2
18124           hardcode_direct_GCJ=yes
18125           else
18126           # We have old collect2
18127           hardcode_direct_GCJ=unsupported
18128           # It fails to find uninstalled libraries when the uninstalled
18129           # path is not listed in the libpath.  Setting hardcode_minus_L
18130           # to unsupported forces relinking
18131           hardcode_minus_L_GCJ=yes
18132           hardcode_libdir_flag_spec_GCJ='-L$libdir'
18133           hardcode_libdir_separator_GCJ=
18134           fi
18135           ;;
18136         esac
18137         shared_flag='-shared'
18138         if test "$aix_use_runtimelinking" = yes; then
18139           shared_flag="$shared_flag "'${wl}-G'
18140         fi
18141       else
18142         # not using gcc
18143         if test "$host_cpu" = ia64; then
18144         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18145         # chokes on -Wl,-G. The following line is correct:
18146           shared_flag='-G'
18147         else
18148           if test "$aix_use_runtimelinking" = yes; then
18149             shared_flag='${wl}-G'
18150           else
18151             shared_flag='${wl}-bM:SRE'
18152           fi
18153         fi
18154       fi
18155
18156       # It seems that -bexpall does not export symbols beginning with
18157       # underscore (_), so it is better to generate a list of symbols to export.
18158       always_export_symbols_GCJ=yes
18159       if test "$aix_use_runtimelinking" = yes; then
18160         # Warning - without using the other runtime loading flags (-brtl),
18161         # -berok will link without error, but may produce a broken library.
18162         allow_undefined_flag_GCJ='-berok'
18163        # Determine the default libpath from the value encoded in an empty executable.
18164        cat >conftest.$ac_ext <<_ACEOF
18165 /* confdefs.h.  */
18166 _ACEOF
18167 cat confdefs.h >>conftest.$ac_ext
18168 cat >>conftest.$ac_ext <<_ACEOF
18169 /* end confdefs.h.  */
18170
18171 int
18172 main ()
18173 {
18174
18175   ;
18176   return 0;
18177 }
18178 _ACEOF
18179 rm -f conftest.$ac_objext conftest$ac_exeext
18180 if { (ac_try="$ac_link"
18181 case "(($ac_try" in
18182   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18183   *) ac_try_echo=$ac_try;;
18184 esac
18185 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18186   (eval "$ac_link") 2>conftest.er1
18187   ac_status=$?
18188   grep -v '^ *+' conftest.er1 >conftest.err
18189   rm -f conftest.er1
18190   cat conftest.err >&5
18191   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18192   (exit $ac_status); } && {
18193          test -z "$ac_c_werror_flag" ||
18194          test ! -s conftest.err
18195        } && test -s conftest$ac_exeext &&
18196        $as_test_x conftest$ac_exeext; then
18197
18198 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
18199 }'`
18200 # Check for a 64-bit object if we didn't find anything.
18201 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
18202 }'`; fi
18203 else
18204   echo "$as_me: failed program was:" >&5
18205 sed 's/^/| /' conftest.$ac_ext >&5
18206
18207
18208 fi
18209
18210 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18211       conftest$ac_exeext conftest.$ac_ext
18212 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18213
18214        hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
18215         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"
18216        else
18217         if test "$host_cpu" = ia64; then
18218           hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
18219           allow_undefined_flag_GCJ="-z nodefs"
18220           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"
18221         else
18222          # Determine the default libpath from the value encoded in an empty executable.
18223          cat >conftest.$ac_ext <<_ACEOF
18224 /* confdefs.h.  */
18225 _ACEOF
18226 cat confdefs.h >>conftest.$ac_ext
18227 cat >>conftest.$ac_ext <<_ACEOF
18228 /* end confdefs.h.  */
18229
18230 int
18231 main ()
18232 {
18233
18234   ;
18235   return 0;
18236 }
18237 _ACEOF
18238 rm -f conftest.$ac_objext conftest$ac_exeext
18239 if { (ac_try="$ac_link"
18240 case "(($ac_try" in
18241   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18242   *) ac_try_echo=$ac_try;;
18243 esac
18244 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18245   (eval "$ac_link") 2>conftest.er1
18246   ac_status=$?
18247   grep -v '^ *+' conftest.er1 >conftest.err
18248   rm -f conftest.er1
18249   cat conftest.err >&5
18250   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18251   (exit $ac_status); } && {
18252          test -z "$ac_c_werror_flag" ||
18253          test ! -s conftest.err
18254        } && test -s conftest$ac_exeext &&
18255        $as_test_x conftest$ac_exeext; then
18256
18257 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
18258 }'`
18259 # Check for a 64-bit object if we didn't find anything.
18260 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
18261 }'`; fi
18262 else
18263   echo "$as_me: failed program was:" >&5
18264 sed 's/^/| /' conftest.$ac_ext >&5
18265
18266
18267 fi
18268
18269 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18270       conftest$ac_exeext conftest.$ac_ext
18271 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18272
18273          hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
18274           # Warning - without using the other run time loading flags,
18275           # -berok will link without error, but may produce a broken library.
18276           no_undefined_flag_GCJ=' ${wl}-bernotok'
18277           allow_undefined_flag_GCJ=' ${wl}-berok'
18278           # Exported symbols can be pulled into shared objects from archives
18279           whole_archive_flag_spec_GCJ='$convenience'
18280           archive_cmds_need_lc_GCJ=yes
18281           # This is similar to how AIX traditionally builds its shared libraries.
18282           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'
18283         fi
18284       fi
18285       ;;
18286
18287     amigaos*)
18288       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)'
18289       hardcode_libdir_flag_spec_GCJ='-L$libdir'
18290       hardcode_minus_L_GCJ=yes
18291       # see comment about different semantics on the GNU ld section
18292       ld_shlibs_GCJ=no
18293       ;;
18294
18295     bsdi[45]*)
18296       export_dynamic_flag_spec_GCJ=-rdynamic
18297       ;;
18298
18299     cygwin* | mingw* | pw32*)
18300       # When not using gcc, we currently assume that we are using
18301       # Microsoft Visual C++.
18302       # hardcode_libdir_flag_spec is actually meaningless, as there is
18303       # no search path for DLLs.
18304       hardcode_libdir_flag_spec_GCJ=' '
18305       allow_undefined_flag_GCJ=unsupported
18306       # Tell ltmain to make .lib files, not .a files.
18307       libext=lib
18308       # Tell ltmain to make .dll files, not .so files.
18309       shrext_cmds=".dll"
18310       # FIXME: Setting linknames here is a bad hack.
18311       archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
18312       # The linker will automatically build a .lib file if we build a DLL.
18313       old_archive_From_new_cmds_GCJ='true'
18314       # FIXME: Should let the user specify the lib program.
18315       old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
18316       fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
18317       enable_shared_with_static_runtimes_GCJ=yes
18318       ;;
18319
18320     darwin* | rhapsody*)
18321       case $host_os in
18322         rhapsody* | darwin1.[012])
18323          allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
18324          ;;
18325        *) # Darwin 1.3 on
18326          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
18327            allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18328          else
18329            case ${MACOSX_DEPLOYMENT_TARGET} in
18330              10.[012])
18331                allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18332                ;;
18333              10.*)
18334                allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
18335                ;;
18336            esac
18337          fi
18338          ;;
18339       esac
18340       archive_cmds_need_lc_GCJ=no
18341       hardcode_direct_GCJ=no
18342       hardcode_automatic_GCJ=yes
18343       hardcode_shlibpath_var_GCJ=unsupported
18344       whole_archive_flag_spec_GCJ=''
18345       link_all_deplibs_GCJ=yes
18346     if test "$GCC" = yes ; then
18347         output_verbose_link_cmd='echo'
18348         archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
18349       module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18350       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18351       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}'
18352       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}'
18353     else
18354       case $cc_basename in
18355         xlc*)
18356          output_verbose_link_cmd='echo'
18357          archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
18358          module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18359           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18360          archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
18361           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}'
18362           ;;
18363        *)
18364          ld_shlibs_GCJ=no
18365           ;;
18366       esac
18367     fi
18368       ;;
18369
18370     dgux*)
18371       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18372       hardcode_libdir_flag_spec_GCJ='-L$libdir'
18373       hardcode_shlibpath_var_GCJ=no
18374       ;;
18375
18376     freebsd1*)
18377       ld_shlibs_GCJ=no
18378       ;;
18379
18380     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
18381     # support.  Future versions do this automatically, but an explicit c++rt0.o
18382     # does not break anything, and helps significantly (at the cost of a little
18383     # extra space).
18384     freebsd2.2*)
18385       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
18386       hardcode_libdir_flag_spec_GCJ='-R$libdir'
18387       hardcode_direct_GCJ=yes
18388       hardcode_shlibpath_var_GCJ=no
18389       ;;
18390
18391     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
18392     freebsd2*)
18393       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18394       hardcode_direct_GCJ=yes
18395       hardcode_minus_L_GCJ=yes
18396       hardcode_shlibpath_var_GCJ=no
18397       ;;
18398
18399     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
18400     freebsd* | dragonfly*)
18401       archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
18402       hardcode_libdir_flag_spec_GCJ='-R$libdir'
18403       hardcode_direct_GCJ=yes
18404       hardcode_shlibpath_var_GCJ=no
18405       ;;
18406
18407     hpux9*)
18408       if test "$GCC" = yes; then
18409         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'
18410       else
18411         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'
18412       fi
18413       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18414       hardcode_libdir_separator_GCJ=:
18415       hardcode_direct_GCJ=yes
18416
18417       # hardcode_minus_L: Not really in the search PATH,
18418       # but as the default location of the library.
18419       hardcode_minus_L_GCJ=yes
18420       export_dynamic_flag_spec_GCJ='${wl}-E'
18421       ;;
18422
18423     hpux10*)
18424       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18425         archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18426       else
18427         archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
18428       fi
18429       if test "$with_gnu_ld" = no; then
18430         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18431         hardcode_libdir_separator_GCJ=:
18432
18433         hardcode_direct_GCJ=yes
18434         export_dynamic_flag_spec_GCJ='${wl}-E'
18435
18436         # hardcode_minus_L: Not really in the search PATH,
18437         # but as the default location of the library.
18438         hardcode_minus_L_GCJ=yes
18439       fi
18440       ;;
18441
18442     hpux11*)
18443       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18444         case $host_cpu in
18445         hppa*64*)
18446           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18447           ;;
18448         ia64*)
18449           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18450           ;;
18451         *)
18452           archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18453           ;;
18454         esac
18455       else
18456         case $host_cpu in
18457         hppa*64*)
18458           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18459           ;;
18460         ia64*)
18461           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18462           ;;
18463         *)
18464           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18465           ;;
18466         esac
18467       fi
18468       if test "$with_gnu_ld" = no; then
18469         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18470         hardcode_libdir_separator_GCJ=:
18471
18472         case $host_cpu in
18473         hppa*64*|ia64*)
18474           hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
18475           hardcode_direct_GCJ=no
18476           hardcode_shlibpath_var_GCJ=no
18477           ;;
18478         *)
18479           hardcode_direct_GCJ=yes
18480           export_dynamic_flag_spec_GCJ='${wl}-E'
18481
18482           # hardcode_minus_L: Not really in the search PATH,
18483           # but as the default location of the library.
18484           hardcode_minus_L_GCJ=yes
18485           ;;
18486         esac
18487       fi
18488       ;;
18489
18490     irix5* | irix6* | nonstopux*)
18491       if test "$GCC" = yes; then
18492         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'
18493       else
18494         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'
18495         hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
18496       fi
18497       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18498       hardcode_libdir_separator_GCJ=:
18499       link_all_deplibs_GCJ=yes
18500       ;;
18501
18502     netbsd* | netbsdelf*-gnu)
18503       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18504         archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
18505       else
18506         archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
18507       fi
18508       hardcode_libdir_flag_spec_GCJ='-R$libdir'
18509       hardcode_direct_GCJ=yes
18510       hardcode_shlibpath_var_GCJ=no
18511       ;;
18512
18513     newsos6)
18514       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18515       hardcode_direct_GCJ=yes
18516       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18517       hardcode_libdir_separator_GCJ=:
18518       hardcode_shlibpath_var_GCJ=no
18519       ;;
18520
18521     openbsd*)
18522       hardcode_direct_GCJ=yes
18523       hardcode_shlibpath_var_GCJ=no
18524       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18525         archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18526         archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
18527         hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18528         export_dynamic_flag_spec_GCJ='${wl}-E'
18529       else
18530        case $host_os in
18531          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
18532            archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18533            hardcode_libdir_flag_spec_GCJ='-R$libdir'
18534            ;;
18535          *)
18536            archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18537            hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18538            ;;
18539        esac
18540       fi
18541       ;;
18542
18543     os2*)
18544       hardcode_libdir_flag_spec_GCJ='-L$libdir'
18545       hardcode_minus_L_GCJ=yes
18546       allow_undefined_flag_GCJ=unsupported
18547       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'
18548       old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
18549       ;;
18550
18551     osf3*)
18552       if test "$GCC" = yes; then
18553         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18554         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'
18555       else
18556         allow_undefined_flag_GCJ=' -expect_unresolved \*'
18557         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'
18558       fi
18559       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18560       hardcode_libdir_separator_GCJ=:
18561       ;;
18562
18563     osf4* | osf5*)      # as osf3* with the addition of -msym flag
18564       if test "$GCC" = yes; then
18565         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18566         archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
18567         hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18568       else
18569         allow_undefined_flag_GCJ=' -expect_unresolved \*'
18570         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'
18571         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~
18572         $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'
18573
18574         # Both c and cxx compiler support -rpath directly
18575         hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
18576       fi
18577       hardcode_libdir_separator_GCJ=:
18578       ;;
18579
18580     solaris*)
18581       no_undefined_flag_GCJ=' -z text'
18582       if test "$GCC" = yes; then
18583         wlarc='${wl}'
18584         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18585         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18586           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
18587       else
18588         wlarc=''
18589         archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
18590         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18591         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
18592       fi
18593       hardcode_libdir_flag_spec_GCJ='-R$libdir'
18594       hardcode_shlibpath_var_GCJ=no
18595       case $host_os in
18596       solaris2.[0-5] | solaris2.[0-5].*) ;;
18597       *)
18598         # The compiler driver will combine linker options so we
18599         # cannot just pass the convience library names through
18600         # without $wl, iff we do not link with $LD.
18601         # Luckily, gcc supports the same syntax we need for Sun Studio.
18602         # Supported since Solaris 2.6 (maybe 2.5.1?)
18603         case $wlarc in
18604         '')
18605           whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
18606         *)
18607           whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
18608         esac ;;
18609       esac
18610       link_all_deplibs_GCJ=yes
18611       ;;
18612
18613     sunos4*)
18614       if test "x$host_vendor" = xsequent; then
18615         # Use $CC to link under sequent, because it throws in some extra .o
18616         # files that make .init and .fini sections work.
18617         archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
18618       else
18619         archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
18620       fi
18621       hardcode_libdir_flag_spec_GCJ='-L$libdir'
18622       hardcode_direct_GCJ=yes
18623       hardcode_minus_L_GCJ=yes
18624       hardcode_shlibpath_var_GCJ=no
18625       ;;
18626
18627     sysv4)
18628       case $host_vendor in
18629         sni)
18630           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18631           hardcode_direct_GCJ=yes # is this really true???
18632         ;;
18633         siemens)
18634           ## LD is ld it makes a PLAMLIB
18635           ## CC just makes a GrossModule.
18636           archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18637           reload_cmds_GCJ='$CC -r -o $output$reload_objs'
18638           hardcode_direct_GCJ=no
18639         ;;
18640         motorola)
18641           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18642           hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
18643         ;;
18644       esac
18645       runpath_var='LD_RUN_PATH'
18646       hardcode_shlibpath_var_GCJ=no
18647       ;;
18648
18649     sysv4.3*)
18650       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18651       hardcode_shlibpath_var_GCJ=no
18652       export_dynamic_flag_spec_GCJ='-Bexport'
18653       ;;
18654
18655     sysv4*MP*)
18656       if test -d /usr/nec; then
18657         archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18658         hardcode_shlibpath_var_GCJ=no
18659         runpath_var=LD_RUN_PATH
18660         hardcode_runpath_var=yes
18661         ld_shlibs_GCJ=yes
18662       fi
18663       ;;
18664
18665     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
18666       no_undefined_flag_GCJ='${wl}-z,text'
18667       archive_cmds_need_lc_GCJ=no
18668       hardcode_shlibpath_var_GCJ=no
18669       runpath_var='LD_RUN_PATH'
18670
18671       if test "$GCC" = yes; then
18672         archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18673         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18674       else
18675         archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18676         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18677       fi
18678       ;;
18679
18680     sysv5* | sco3.2v5* | sco5v6*)
18681       # Note: We can NOT use -z defs as we might desire, because we do not
18682       # link with -lc, and that would cause any symbols used from libc to
18683       # always be unresolved, which means just about no library would
18684       # ever link correctly.  If we're not using GNU ld we use -z text
18685       # though, which does catch some bad symbols but isn't as heavy-handed
18686       # as -z defs.
18687       no_undefined_flag_GCJ='${wl}-z,text'
18688       allow_undefined_flag_GCJ='${wl}-z,nodefs'
18689       archive_cmds_need_lc_GCJ=no
18690       hardcode_shlibpath_var_GCJ=no
18691       hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
18692       hardcode_libdir_separator_GCJ=':'
18693       link_all_deplibs_GCJ=yes
18694       export_dynamic_flag_spec_GCJ='${wl}-Bexport'
18695       runpath_var='LD_RUN_PATH'
18696
18697       if test "$GCC" = yes; then
18698         archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18699         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18700       else
18701         archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18702         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18703       fi
18704       ;;
18705
18706     uts4*)
18707       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18708       hardcode_libdir_flag_spec_GCJ='-L$libdir'
18709       hardcode_shlibpath_var_GCJ=no
18710       ;;
18711
18712     *)
18713       ld_shlibs_GCJ=no
18714       ;;
18715     esac
18716   fi
18717
18718 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
18719 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
18720 test "$ld_shlibs_GCJ" = no && can_build_shared=no
18721
18722 #
18723 # Do we need to explicitly link libc?
18724 #
18725 case "x$archive_cmds_need_lc_GCJ" in
18726 x|xyes)
18727   # Assume -lc should be added
18728   archive_cmds_need_lc_GCJ=yes
18729
18730   if test "$enable_shared" = yes && test "$GCC" = yes; then
18731     case $archive_cmds_GCJ in
18732     *'~'*)
18733       # FIXME: we may have to deal with multi-command sequences.
18734       ;;
18735     '$CC '*)
18736       # Test whether the compiler implicitly links with -lc since on some
18737       # systems, -lgcc has to come before -lc. If gcc already passes -lc
18738       # to ld, don't add -lc before -lgcc.
18739       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
18740 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
18741       $rm conftest*
18742       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18743
18744       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18745   (eval $ac_compile) 2>&5
18746   ac_status=$?
18747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18748   (exit $ac_status); } 2>conftest.err; then
18749         soname=conftest
18750         lib=conftest
18751         libobjs=conftest.$ac_objext
18752         deplibs=
18753         wl=$lt_prog_compiler_wl_GCJ
18754         pic_flag=$lt_prog_compiler_pic_GCJ
18755         compiler_flags=-v
18756         linker_flags=-v
18757         verstring=
18758         output_objdir=.
18759         libname=conftest
18760         lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
18761         allow_undefined_flag_GCJ=
18762         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
18763   (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
18764   ac_status=$?
18765   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18766   (exit $ac_status); }
18767         then
18768           archive_cmds_need_lc_GCJ=no
18769         else
18770           archive_cmds_need_lc_GCJ=yes
18771         fi
18772         allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
18773       else
18774         cat conftest.err 1>&5
18775       fi
18776       $rm conftest*
18777       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
18778 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
18779       ;;
18780     esac
18781   fi
18782   ;;
18783 esac
18784
18785 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
18786 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
18787 library_names_spec=
18788 libname_spec='lib$name'
18789 soname_spec=
18790 shrext_cmds=".so"
18791 postinstall_cmds=
18792 postuninstall_cmds=
18793 finish_cmds=
18794 finish_eval=
18795 shlibpath_var=
18796 shlibpath_overrides_runpath=unknown
18797 version_type=none
18798 dynamic_linker="$host_os ld.so"
18799 sys_lib_dlsearch_path_spec="/lib /usr/lib"
18800 if test "$GCC" = yes; then
18801   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18802   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
18803     # if the path contains ";" then we assume it to be the separator
18804     # otherwise default to the standard path separator (i.e. ":") - it is
18805     # assumed that no part of a normal pathname contains ";" but that should
18806     # okay in the real world where ";" in dirpaths is itself problematic.
18807     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18808   else
18809     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
18810   fi
18811 else
18812   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
18813 fi
18814 need_lib_prefix=unknown
18815 hardcode_into_libs=no
18816
18817 # when you set need_version to no, make sure it does not cause -set_version
18818 # flags to be left without arguments
18819 need_version=unknown
18820
18821 case $host_os in
18822 aix3*)
18823   version_type=linux
18824   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18825   shlibpath_var=LIBPATH
18826
18827   # AIX 3 has no versioning support, so we append a major version to the name.
18828   soname_spec='${libname}${release}${shared_ext}$major'
18829   ;;
18830
18831 aix4* | aix5*)
18832   version_type=linux
18833   need_lib_prefix=no
18834   need_version=no
18835   hardcode_into_libs=yes
18836   if test "$host_cpu" = ia64; then
18837     # AIX 5 supports IA64
18838     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18839     shlibpath_var=LD_LIBRARY_PATH
18840   else
18841     # With GCC up to 2.95.x, collect2 would create an import file
18842     # for dependence libraries.  The import file would start with
18843     # the line `#! .'.  This would cause the generated library to
18844     # depend on `.', always an invalid library.  This was fixed in
18845     # development snapshots of GCC prior to 3.0.
18846     case $host_os in
18847       aix4 | aix4.[01] | aix4.[01].*)
18848       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18849            echo ' yes '
18850            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
18851         :
18852       else
18853         can_build_shared=no
18854       fi
18855       ;;
18856     esac
18857     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18858     # soname into executable. Probably we can add versioning support to
18859     # collect2, so additional links can be useful in future.
18860     if test "$aix_use_runtimelinking" = yes; then
18861       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18862       # instead of lib<name>.a to let people know that these are not
18863       # typical AIX shared libraries.
18864       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18865     else
18866       # We preserve .a as extension for shared libraries through AIX4.2
18867       # and later when we are not doing run time linking.
18868       library_names_spec='${libname}${release}.a $libname.a'
18869       soname_spec='${libname}${release}${shared_ext}$major'
18870     fi
18871     shlibpath_var=LIBPATH
18872   fi
18873   ;;
18874
18875 amigaos*)
18876   library_names_spec='$libname.ixlibrary $libname.a'
18877   # Create ${libname}_ixlibrary.a entries in /sys/libs.
18878   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'
18879   ;;
18880
18881 beos*)
18882   library_names_spec='${libname}${shared_ext}'
18883   dynamic_linker="$host_os ld.so"
18884   shlibpath_var=LIBRARY_PATH
18885   ;;
18886
18887 bsdi[45]*)
18888   version_type=linux
18889   need_version=no
18890   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18891   soname_spec='${libname}${release}${shared_ext}$major'
18892   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18893   shlibpath_var=LD_LIBRARY_PATH
18894   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18895   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18896   # the default ld.so.conf also contains /usr/contrib/lib and
18897   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18898   # libtool to hard-code these into programs
18899   ;;
18900
18901 cygwin* | mingw* | pw32*)
18902   version_type=windows
18903   shrext_cmds=".dll"
18904   need_version=no
18905   need_lib_prefix=no
18906
18907   case $GCC,$host_os in
18908   yes,cygwin* | yes,mingw* | yes,pw32*)
18909     library_names_spec='$libname.dll.a'
18910     # DLL is installed to $(libdir)/../bin by postinstall_cmds
18911     postinstall_cmds='base_file=`basename \${file}`~
18912       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
18913       dldir=$destdir/`dirname \$dlpath`~
18914       test -d \$dldir || mkdir -p \$dldir~
18915       $install_prog $dir/$dlname \$dldir/$dlname~
18916       chmod a+x \$dldir/$dlname'
18917     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18918       dlpath=$dir/\$dldll~
18919        $rm \$dlpath'
18920     shlibpath_overrides_runpath=yes
18921
18922     case $host_os in
18923     cygwin*)
18924       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18925       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18926       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18927       ;;
18928     mingw*)
18929       # MinGW DLLs use traditional 'lib' prefix
18930       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18931       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18932       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
18933         # It is most probably a Windows format PATH printed by
18934         # mingw gcc, but we are running on Cygwin. Gcc prints its search
18935         # path with ; separators, and with drive letters. We can handle the
18936         # drive letters (cygwin fileutils understands them), so leave them,
18937         # especially as we might pass files found there to a mingw objdump,
18938         # which wouldn't understand a cygwinified path. Ahh.
18939         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18940       else
18941         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
18942       fi
18943       ;;
18944     pw32*)
18945       # pw32 DLLs use 'pw' prefix rather than 'lib'
18946       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18947       ;;
18948     esac
18949     ;;
18950
18951   *)
18952     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18953     ;;
18954   esac
18955   dynamic_linker='Win32 ld.exe'
18956   # FIXME: first we should search . and the directory the executable is in
18957   shlibpath_var=PATH
18958   ;;
18959
18960 darwin* | rhapsody*)
18961   dynamic_linker="$host_os dyld"
18962   version_type=darwin
18963   need_lib_prefix=no
18964   need_version=no
18965   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18966   soname_spec='${libname}${release}${major}$shared_ext'
18967   shlibpath_overrides_runpath=yes
18968   shlibpath_var=DYLD_LIBRARY_PATH
18969   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18970   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
18971   if test "$GCC" = yes; then
18972     sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
18973   else
18974     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
18975   fi
18976   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18977   ;;
18978
18979 dgux*)
18980   version_type=linux
18981   need_lib_prefix=no
18982   need_version=no
18983   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18984   soname_spec='${libname}${release}${shared_ext}$major'
18985   shlibpath_var=LD_LIBRARY_PATH
18986   ;;
18987
18988 freebsd1*)
18989   dynamic_linker=no
18990   ;;
18991
18992 freebsd* | dragonfly*)
18993   # DragonFly does not have aout.  When/if they implement a new
18994   # versioning mechanism, adjust this.
18995   if test -x /usr/bin/objformat; then
18996     objformat=`/usr/bin/objformat`
18997   else
18998     case $host_os in
18999     freebsd[123]*) objformat=aout ;;
19000     *) objformat=elf ;;
19001     esac
19002   fi
19003   version_type=freebsd-$objformat
19004   case $version_type in
19005     freebsd-elf*)
19006       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19007       need_version=no
19008       need_lib_prefix=no
19009       ;;
19010     freebsd-*)
19011       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
19012       need_version=yes
19013       ;;
19014   esac
19015   shlibpath_var=LD_LIBRARY_PATH
19016   case $host_os in
19017   freebsd2*)
19018     shlibpath_overrides_runpath=yes
19019     ;;
19020   freebsd3.[01]* | freebsdelf3.[01]*)
19021     shlibpath_overrides_runpath=yes
19022     hardcode_into_libs=yes
19023     ;;
19024   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
19025   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
19026     shlibpath_overrides_runpath=no
19027     hardcode_into_libs=yes
19028     ;;
19029   freebsd*) # from 4.6 on
19030     shlibpath_overrides_runpath=yes
19031     hardcode_into_libs=yes
19032     ;;
19033   esac
19034   ;;
19035
19036 gnu*)
19037   version_type=linux
19038   need_lib_prefix=no
19039   need_version=no
19040   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
19041   soname_spec='${libname}${release}${shared_ext}$major'
19042   shlibpath_var=LD_LIBRARY_PATH
19043   hardcode_into_libs=yes
19044   ;;
19045
19046 hpux9* | hpux10* | hpux11*)
19047   # Give a soname corresponding to the major version so that dld.sl refuses to
19048   # link against other versions.
19049   version_type=sunos
19050   need_lib_prefix=no
19051   need_version=no
19052   case $host_cpu in
19053   ia64*)
19054     shrext_cmds='.so'
19055     hardcode_into_libs=yes
19056     dynamic_linker="$host_os dld.so"
19057     shlibpath_var=LD_LIBRARY_PATH
19058     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19059     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19060     soname_spec='${libname}${release}${shared_ext}$major'
19061     if test "X$HPUX_IA64_MODE" = X32; then
19062       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
19063     else
19064       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
19065     fi
19066     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19067     ;;
19068    hppa*64*)
19069      shrext_cmds='.sl'
19070      hardcode_into_libs=yes
19071      dynamic_linker="$host_os dld.sl"
19072      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
19073      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19074      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19075      soname_spec='${libname}${release}${shared_ext}$major'
19076      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
19077      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19078      ;;
19079    *)
19080     shrext_cmds='.sl'
19081     dynamic_linker="$host_os dld.sl"
19082     shlibpath_var=SHLIB_PATH
19083     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
19084     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19085     soname_spec='${libname}${release}${shared_ext}$major'
19086     ;;
19087   esac
19088   # HP-UX runs *really* slowly unless shared libraries are mode 555.
19089   postinstall_cmds='chmod 555 $lib'
19090   ;;
19091
19092 interix3*)
19093   version_type=linux
19094   need_lib_prefix=no
19095   need_version=no
19096   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19097   soname_spec='${libname}${release}${shared_ext}$major'
19098   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
19099   shlibpath_var=LD_LIBRARY_PATH
19100   shlibpath_overrides_runpath=no
19101   hardcode_into_libs=yes
19102   ;;
19103
19104 irix5* | irix6* | nonstopux*)
19105   case $host_os in
19106     nonstopux*) version_type=nonstopux ;;
19107     *)
19108         if test "$lt_cv_prog_gnu_ld" = yes; then
19109                 version_type=linux
19110         else
19111                 version_type=irix
19112         fi ;;
19113   esac
19114   need_lib_prefix=no
19115   need_version=no
19116   soname_spec='${libname}${release}${shared_ext}$major'
19117   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
19118   case $host_os in
19119   irix5* | nonstopux*)
19120     libsuff= shlibsuff=
19121     ;;
19122   *)
19123     case $LD in # libtool.m4 will add one of these switches to LD
19124     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
19125       libsuff= shlibsuff= libmagic=32-bit;;
19126     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
19127       libsuff=32 shlibsuff=N32 libmagic=N32;;
19128     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
19129       libsuff=64 shlibsuff=64 libmagic=64-bit;;
19130     *) libsuff= shlibsuff= libmagic=never-match;;
19131     esac
19132     ;;
19133   esac
19134   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
19135   shlibpath_overrides_runpath=no
19136   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
19137   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
19138   hardcode_into_libs=yes
19139   ;;
19140
19141 # No shared lib support for Linux oldld, aout, or coff.
19142 linux*oldld* | linux*aout* | linux*coff*)
19143   dynamic_linker=no
19144   ;;
19145
19146 # This must be Linux ELF.
19147 linux* | k*bsd*-gnu)
19148   version_type=linux
19149   need_lib_prefix=no
19150   need_version=no
19151   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19152   soname_spec='${libname}${release}${shared_ext}$major'
19153   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
19154   shlibpath_var=LD_LIBRARY_PATH
19155   shlibpath_overrides_runpath=no
19156   # This implies no fast_install, which is unacceptable.
19157   # Some rework will be needed to allow for fast_install
19158   # before this can be enabled.
19159   hardcode_into_libs=yes
19160
19161   # Append ld.so.conf contents to the search path
19162   if test -f /etc/ld.so.conf; then
19163     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,        ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
19164     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
19165   fi
19166
19167   # We used to test for /lib/ld.so.1 and disable shared libraries on
19168   # powerpc, because MkLinux only supported shared libraries with the
19169   # GNU dynamic linker.  Since this was broken with cross compilers,
19170   # most powerpc-linux boxes support dynamic linking these days and
19171   # people can always --disable-shared, the test was removed, and we
19172   # assume the GNU/Linux dynamic linker is in use.
19173   dynamic_linker='GNU/Linux ld.so'
19174   ;;
19175
19176 netbsdelf*-gnu)
19177   version_type=linux
19178   need_lib_prefix=no
19179   need_version=no
19180   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19181   soname_spec='${libname}${release}${shared_ext}$major'
19182   shlibpath_var=LD_LIBRARY_PATH
19183   shlibpath_overrides_runpath=no
19184   hardcode_into_libs=yes
19185   dynamic_linker='NetBSD ld.elf_so'
19186   ;;
19187
19188 netbsd*)
19189   version_type=sunos
19190   need_lib_prefix=no
19191   need_version=no
19192   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19193     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19194     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19195     dynamic_linker='NetBSD (a.out) ld.so'
19196   else
19197     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19198     soname_spec='${libname}${release}${shared_ext}$major'
19199     dynamic_linker='NetBSD ld.elf_so'
19200   fi
19201   shlibpath_var=LD_LIBRARY_PATH
19202   shlibpath_overrides_runpath=yes
19203   hardcode_into_libs=yes
19204   ;;
19205
19206 newsos6)
19207   version_type=linux
19208   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19209   shlibpath_var=LD_LIBRARY_PATH
19210   shlibpath_overrides_runpath=yes
19211   ;;
19212
19213 nto-qnx*)
19214   version_type=linux
19215   need_lib_prefix=no
19216   need_version=no
19217   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19218   soname_spec='${libname}${release}${shared_ext}$major'
19219   shlibpath_var=LD_LIBRARY_PATH
19220   shlibpath_overrides_runpath=yes
19221   ;;
19222
19223 openbsd*)
19224   version_type=sunos
19225   sys_lib_dlsearch_path_spec="/usr/lib"
19226   need_lib_prefix=no
19227   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
19228   case $host_os in
19229     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
19230     *)                         need_version=no  ;;
19231   esac
19232   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19233   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19234   shlibpath_var=LD_LIBRARY_PATH
19235   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19236     case $host_os in
19237       openbsd2.[89] | openbsd2.[89].*)
19238         shlibpath_overrides_runpath=no
19239         ;;
19240       *)
19241         shlibpath_overrides_runpath=yes
19242         ;;
19243       esac
19244   else
19245     shlibpath_overrides_runpath=yes
19246   fi
19247   ;;
19248
19249 os2*)
19250   libname_spec='$name'
19251   shrext_cmds=".dll"
19252   need_lib_prefix=no
19253   library_names_spec='$libname${shared_ext} $libname.a'
19254   dynamic_linker='OS/2 ld.exe'
19255   shlibpath_var=LIBPATH
19256   ;;
19257
19258 osf3* | osf4* | osf5*)
19259   version_type=osf
19260   need_lib_prefix=no
19261   need_version=no
19262   soname_spec='${libname}${release}${shared_ext}$major'
19263   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19264   shlibpath_var=LD_LIBRARY_PATH
19265   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
19266   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
19267   ;;
19268
19269 solaris*)
19270   version_type=linux
19271   need_lib_prefix=no
19272   need_version=no
19273   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19274   soname_spec='${libname}${release}${shared_ext}$major'
19275   shlibpath_var=LD_LIBRARY_PATH
19276   shlibpath_overrides_runpath=yes
19277   hardcode_into_libs=yes
19278   # ldd complains unless libraries are executable
19279   postinstall_cmds='chmod +x $lib'
19280   ;;
19281
19282 sunos4*)
19283   version_type=sunos
19284   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19285   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
19286   shlibpath_var=LD_LIBRARY_PATH
19287   shlibpath_overrides_runpath=yes
19288   if test "$with_gnu_ld" = yes; then
19289     need_lib_prefix=no
19290   fi
19291   need_version=yes
19292   ;;
19293
19294 sysv4 | sysv4.3*)
19295   version_type=linux
19296   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19297   soname_spec='${libname}${release}${shared_ext}$major'
19298   shlibpath_var=LD_LIBRARY_PATH
19299   case $host_vendor in
19300     sni)
19301       shlibpath_overrides_runpath=no
19302       need_lib_prefix=no
19303       export_dynamic_flag_spec='${wl}-Blargedynsym'
19304       runpath_var=LD_RUN_PATH
19305       ;;
19306     siemens)
19307       need_lib_prefix=no
19308       ;;
19309     motorola)
19310       need_lib_prefix=no
19311       need_version=no
19312       shlibpath_overrides_runpath=no
19313       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
19314       ;;
19315   esac
19316   ;;
19317
19318 sysv4*MP*)
19319   if test -d /usr/nec ;then
19320     version_type=linux
19321     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
19322     soname_spec='$libname${shared_ext}.$major'
19323     shlibpath_var=LD_LIBRARY_PATH
19324   fi
19325   ;;
19326
19327 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
19328   version_type=freebsd-elf
19329   need_lib_prefix=no
19330   need_version=no
19331   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19332   soname_spec='${libname}${release}${shared_ext}$major'
19333   shlibpath_var=LD_LIBRARY_PATH
19334   hardcode_into_libs=yes
19335   if test "$with_gnu_ld" = yes; then
19336     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
19337     shlibpath_overrides_runpath=no
19338   else
19339     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
19340     shlibpath_overrides_runpath=yes
19341     case $host_os in
19342       sco3.2v5*)
19343         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
19344         ;;
19345     esac
19346   fi
19347   sys_lib_dlsearch_path_spec='/usr/lib'
19348   ;;
19349
19350 uts4*)
19351   version_type=linux
19352   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19353   soname_spec='${libname}${release}${shared_ext}$major'
19354   shlibpath_var=LD_LIBRARY_PATH
19355   ;;
19356
19357 *)
19358   dynamic_linker=no
19359   ;;
19360 esac
19361 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
19362 echo "${ECHO_T}$dynamic_linker" >&6; }
19363 test "$dynamic_linker" = no && can_build_shared=no
19364
19365 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
19366 if test "$GCC" = yes; then
19367   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
19368 fi
19369
19370 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
19371 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
19372 hardcode_action_GCJ=
19373 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
19374    test -n "$runpath_var_GCJ" || \
19375    test "X$hardcode_automatic_GCJ" = "Xyes" ; then
19376
19377   # We can hardcode non-existant directories.
19378   if test "$hardcode_direct_GCJ" != no &&
19379      # If the only mechanism to avoid hardcoding is shlibpath_var, we
19380      # have to relink, otherwise we might link with an installed library
19381      # when we should be linking with a yet-to-be-installed one
19382      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
19383      test "$hardcode_minus_L_GCJ" != no; then
19384     # Linking always hardcodes the temporary library directory.
19385     hardcode_action_GCJ=relink
19386   else
19387     # We can link without hardcoding, and we can hardcode nonexisting dirs.
19388     hardcode_action_GCJ=immediate
19389   fi
19390 else
19391   # We cannot hardcode anything, or else we can only hardcode existing
19392   # directories.
19393   hardcode_action_GCJ=unsupported
19394 fi
19395 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
19396 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
19397
19398 if test "$hardcode_action_GCJ" = relink; then
19399   # Fast installation is not supported
19400   enable_fast_install=no
19401 elif test "$shlibpath_overrides_runpath" = yes ||
19402      test "$enable_shared" = no; then
19403   # Fast installation is not necessary
19404   enable_fast_install=needless
19405 fi
19406
19407
19408 # The else clause should only fire when bootstrapping the
19409 # libtool distribution, otherwise you forgot to ship ltmain.sh
19410 # with your package, and you will get complaints that there are
19411 # no rules to generate ltmain.sh.
19412 if test -f "$ltmain"; then
19413   # See if we are running on zsh, and set the options which allow our commands through
19414   # without removal of \ escapes.
19415   if test -n "${ZSH_VERSION+set}" ; then
19416     setopt NO_GLOB_SUBST
19417   fi
19418   # Now quote all the things that may contain metacharacters while being
19419   # careful not to overquote the AC_SUBSTed values.  We take copies of the
19420   # variables and quote the copies for generation of the libtool script.
19421   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19422     SED SHELL STRIP \
19423     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19424     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19425     deplibs_check_method reload_flag reload_cmds need_locks \
19426     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19427     lt_cv_sys_global_symbol_to_c_name_address \
19428     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19429     old_postinstall_cmds old_postuninstall_cmds \
19430     compiler_GCJ \
19431     CC_GCJ \
19432     LD_GCJ \
19433     lt_prog_compiler_wl_GCJ \
19434     lt_prog_compiler_pic_GCJ \
19435     lt_prog_compiler_static_GCJ \
19436     lt_prog_compiler_no_builtin_flag_GCJ \
19437     export_dynamic_flag_spec_GCJ \
19438     thread_safe_flag_spec_GCJ \
19439     whole_archive_flag_spec_GCJ \
19440     enable_shared_with_static_runtimes_GCJ \
19441     old_archive_cmds_GCJ \
19442     old_archive_from_new_cmds_GCJ \
19443     predep_objects_GCJ \
19444     postdep_objects_GCJ \
19445     predeps_GCJ \
19446     postdeps_GCJ \
19447     compiler_lib_search_path_GCJ \
19448     archive_cmds_GCJ \
19449     archive_expsym_cmds_GCJ \
19450     postinstall_cmds_GCJ \
19451     postuninstall_cmds_GCJ \
19452     old_archive_from_expsyms_cmds_GCJ \
19453     allow_undefined_flag_GCJ \
19454     no_undefined_flag_GCJ \
19455     export_symbols_cmds_GCJ \
19456     hardcode_libdir_flag_spec_GCJ \
19457     hardcode_libdir_flag_spec_ld_GCJ \
19458     hardcode_libdir_separator_GCJ \
19459     hardcode_automatic_GCJ \
19460     module_cmds_GCJ \
19461     module_expsym_cmds_GCJ \
19462     lt_cv_prog_compiler_c_o_GCJ \
19463     exclude_expsyms_GCJ \
19464     include_expsyms_GCJ; do
19465
19466     case $var in
19467     old_archive_cmds_GCJ | \
19468     old_archive_from_new_cmds_GCJ | \
19469     archive_cmds_GCJ | \
19470     archive_expsym_cmds_GCJ | \
19471     module_cmds_GCJ | \
19472     module_expsym_cmds_GCJ | \
19473     old_archive_from_expsyms_cmds_GCJ | \
19474     export_symbols_cmds_GCJ | \
19475     extract_expsyms_cmds | reload_cmds | finish_cmds | \
19476     postinstall_cmds | postuninstall_cmds | \
19477     old_postinstall_cmds | old_postuninstall_cmds | \
19478     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19479       # Double-quote double-evaled strings.
19480       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19481       ;;
19482     *)
19483       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19484       ;;
19485     esac
19486   done
19487
19488   case $lt_echo in
19489   *'\$0 --fallback-echo"')
19490     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19491     ;;
19492   esac
19493
19494 cfgfile="$ofile"
19495
19496   cat <<__EOF__ >> "$cfgfile"
19497 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19498
19499 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19500
19501 # Shell to use when invoking shell scripts.
19502 SHELL=$lt_SHELL
19503
19504 # Whether or not to build shared libraries.
19505 build_libtool_libs=$enable_shared
19506
19507 # Whether or not to build static libraries.
19508 build_old_libs=$enable_static
19509
19510 # Whether or not to add -lc for building shared libraries.
19511 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
19512
19513 # Whether or not to disallow shared libs when runtime libs are static
19514 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
19515
19516 # Whether or not to optimize for fast installation.
19517 fast_install=$enable_fast_install
19518
19519 # The host system.
19520 host_alias=$host_alias
19521 host=$host
19522 host_os=$host_os
19523
19524 # The build system.
19525 build_alias=$build_alias
19526 build=$build
19527 build_os=$build_os
19528
19529 # An echo program that does not interpret backslashes.
19530 echo=$lt_echo
19531
19532 # The archiver.
19533 AR=$lt_AR
19534 AR_FLAGS=$lt_AR_FLAGS
19535
19536 # A C compiler.
19537 LTCC=$lt_LTCC
19538
19539 # LTCC compiler flags.
19540 LTCFLAGS=$lt_LTCFLAGS
19541
19542 # A language-specific compiler.
19543 CC=$lt_compiler_GCJ
19544
19545 # Is the compiler the GNU C compiler?
19546 with_gcc=$GCC_GCJ
19547
19548 # An ERE matcher.
19549 EGREP=$lt_EGREP
19550
19551 # The linker used to build libraries.
19552 LD=$lt_LD_GCJ
19553
19554 # Whether we need hard or soft links.
19555 LN_S=$lt_LN_S
19556
19557 # A BSD-compatible nm program.
19558 NM=$lt_NM
19559
19560 # A symbol stripping program
19561 STRIP=$lt_STRIP
19562
19563 # Used to examine libraries when file_magic_cmd begins "file"
19564 MAGIC_CMD=$MAGIC_CMD
19565
19566 # Used on cygwin: DLL creation program.
19567 DLLTOOL="$DLLTOOL"
19568
19569 # Used on cygwin: object dumper.
19570 OBJDUMP="$OBJDUMP"
19571
19572 # Used on cygwin: assembler.
19573 AS="$AS"
19574
19575 # The name of the directory that contains temporary libtool files.
19576 objdir=$objdir
19577
19578 # How to create reloadable object files.
19579 reload_flag=$lt_reload_flag
19580 reload_cmds=$lt_reload_cmds
19581
19582 # How to pass a linker flag through the compiler.
19583 wl=$lt_lt_prog_compiler_wl_GCJ
19584
19585 # Object file suffix (normally "o").
19586 objext="$ac_objext"
19587
19588 # Old archive suffix (normally "a").
19589 libext="$libext"
19590
19591 # Shared library suffix (normally ".so").
19592 shrext_cmds='$shrext_cmds'
19593
19594 # Executable file suffix (normally "").
19595 exeext="$exeext"
19596
19597 # Additional compiler flags for building library objects.
19598 pic_flag=$lt_lt_prog_compiler_pic_GCJ
19599 pic_mode=$pic_mode
19600
19601 # What is the maximum length of a command?
19602 max_cmd_len=$lt_cv_sys_max_cmd_len
19603
19604 # Does compiler simultaneously support -c and -o options?
19605 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
19606
19607 # Must we lock files when doing compilation?
19608 need_locks=$lt_need_locks
19609
19610 # Do we need the lib prefix for modules?
19611 need_lib_prefix=$need_lib_prefix
19612
19613 # Do we need a version for libraries?
19614 need_version=$need_version
19615
19616 # Whether dlopen is supported.
19617 dlopen_support=$enable_dlopen
19618
19619 # Whether dlopen of programs is supported.
19620 dlopen_self=$enable_dlopen_self
19621
19622 # Whether dlopen of statically linked programs is supported.
19623 dlopen_self_static=$enable_dlopen_self_static
19624
19625 # Compiler flag to prevent dynamic linking.
19626 link_static_flag=$lt_lt_prog_compiler_static_GCJ
19627
19628 # Compiler flag to turn off builtin functions.
19629 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
19630
19631 # Compiler flag to allow reflexive dlopens.
19632 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
19633
19634 # Compiler flag to generate shared objects directly from archives.
19635 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
19636
19637 # Compiler flag to generate thread-safe objects.
19638 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
19639
19640 # Library versioning type.
19641 version_type=$version_type
19642
19643 # Format of library name prefix.
19644 libname_spec=$lt_libname_spec
19645
19646 # List of archive names.  First name is the real one, the rest are links.
19647 # The last name is the one that the linker finds with -lNAME.
19648 library_names_spec=$lt_library_names_spec
19649
19650 # The coded name of the library, if different from the real name.
19651 soname_spec=$lt_soname_spec
19652
19653 # Commands used to build and install an old-style archive.
19654 RANLIB=$lt_RANLIB
19655 old_archive_cmds=$lt_old_archive_cmds_GCJ
19656 old_postinstall_cmds=$lt_old_postinstall_cmds
19657 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19658
19659 # Create an old-style archive from a shared archive.
19660 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
19661
19662 # Create a temporary old-style archive to link instead of a shared archive.
19663 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
19664
19665 # Commands used to build and install a shared archive.
19666 archive_cmds=$lt_archive_cmds_GCJ
19667 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
19668 postinstall_cmds=$lt_postinstall_cmds
19669 postuninstall_cmds=$lt_postuninstall_cmds
19670
19671 # Commands used to build a loadable module (assumed same as above if empty)
19672 module_cmds=$lt_module_cmds_GCJ
19673 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
19674
19675 # Commands to strip libraries.
19676 old_striplib=$lt_old_striplib
19677 striplib=$lt_striplib
19678
19679 # Dependencies to place before the objects being linked to create a
19680 # shared library.
19681 predep_objects=$lt_predep_objects_GCJ
19682
19683 # Dependencies to place after the objects being linked to create a
19684 # shared library.
19685 postdep_objects=$lt_postdep_objects_GCJ
19686
19687 # Dependencies to place before the objects being linked to create a
19688 # shared library.
19689 predeps=$lt_predeps_GCJ
19690
19691 # Dependencies to place after the objects being linked to create a
19692 # shared library.
19693 postdeps=$lt_postdeps_GCJ
19694
19695 # The library search path used internally by the compiler when linking
19696 # a shared library.
19697 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
19698
19699 # Method to check whether dependent libraries are shared objects.
19700 deplibs_check_method=$lt_deplibs_check_method
19701
19702 # Command to use when deplibs_check_method == file_magic.
19703 file_magic_cmd=$lt_file_magic_cmd
19704
19705 # Flag that allows shared libraries with undefined symbols to be built.
19706 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
19707
19708 # Flag that forces no undefined symbols.
19709 no_undefined_flag=$lt_no_undefined_flag_GCJ
19710
19711 # Commands used to finish a libtool library installation in a directory.
19712 finish_cmds=$lt_finish_cmds
19713
19714 # Same as above, but a single script fragment to be evaled but not shown.
19715 finish_eval=$lt_finish_eval
19716
19717 # Take the output of nm and produce a listing of raw symbols and C names.
19718 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19719
19720 # Transform the output of nm in a proper C declaration
19721 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19722
19723 # Transform the output of nm in a C name address pair
19724 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19725
19726 # This is the shared library runtime path variable.
19727 runpath_var=$runpath_var
19728
19729 # This is the shared library path variable.
19730 shlibpath_var=$shlibpath_var
19731
19732 # Is shlibpath searched before the hard-coded library search path?
19733 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19734
19735 # How to hardcode a shared library path into an executable.
19736 hardcode_action=$hardcode_action_GCJ
19737
19738 # Whether we should hardcode library paths into libraries.
19739 hardcode_into_libs=$hardcode_into_libs
19740
19741 # Flag to hardcode \$libdir into a binary during linking.
19742 # This must work even if \$libdir does not exist.
19743 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
19744
19745 # If ld is used when linking, flag to hardcode \$libdir into
19746 # a binary during linking. This must work even if \$libdir does
19747 # not exist.
19748 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
19749
19750 # Whether we need a single -rpath flag with a separated argument.
19751 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
19752
19753 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19754 # resulting binary.
19755 hardcode_direct=$hardcode_direct_GCJ
19756
19757 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19758 # resulting binary.
19759 hardcode_minus_L=$hardcode_minus_L_GCJ
19760
19761 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19762 # the resulting binary.
19763 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
19764
19765 # Set to yes if building a shared library automatically hardcodes DIR into the library
19766 # and all subsequent libraries and executables linked against it.
19767 hardcode_automatic=$hardcode_automatic_GCJ
19768
19769 # Variables whose values should be saved in libtool wrapper scripts and
19770 # restored at relink time.
19771 variables_saved_for_relink="$variables_saved_for_relink"
19772
19773 # Whether libtool must link a program against all its dependency libraries.
19774 link_all_deplibs=$link_all_deplibs_GCJ
19775
19776 # Compile-time system search path for libraries
19777 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19778
19779 # Run-time system search path for libraries
19780 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19781
19782 # Fix the shell variable \$srcfile for the compiler.
19783 fix_srcfile_path="$fix_srcfile_path_GCJ"
19784
19785 # Set to yes if exported symbols are required.
19786 always_export_symbols=$always_export_symbols_GCJ
19787
19788 # The commands to list exported symbols.
19789 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
19790
19791 # The commands to extract the exported symbol list from a shared archive.
19792 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19793
19794 # Symbols that should not be listed in the preloaded symbols.
19795 exclude_expsyms=$lt_exclude_expsyms_GCJ
19796
19797 # Symbols that must always be exported.
19798 include_expsyms=$lt_include_expsyms_GCJ
19799
19800 # ### END LIBTOOL TAG CONFIG: $tagname
19801
19802 __EOF__
19803
19804
19805 else
19806   # If there is no Makefile yet, we rely on a make rule to execute
19807   # `config.status --recheck' to rerun these tests and create the
19808   # libtool script then.
19809   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19810   if test -f "$ltmain_in"; then
19811     test -f Makefile && make "$ltmain"
19812   fi
19813 fi
19814
19815
19816 ac_ext=c
19817 ac_cpp='$CPP $CPPFLAGS'
19818 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19819 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19820 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19821
19822 CC="$lt_save_CC"
19823
19824         else
19825           tagname=""
19826         fi
19827         ;;
19828
19829       RC)
19830
19831
19832 # Source file extension for RC test sources.
19833 ac_ext=rc
19834
19835 # Object file extension for compiled RC test sources.
19836 objext=o
19837 objext_RC=$objext
19838
19839 # Code to be used in simple compile tests
19840 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
19841
19842 # Code to be used in simple link tests
19843 lt_simple_link_test_code="$lt_simple_compile_test_code"
19844
19845 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
19846
19847 # If no C compiler was specified, use CC.
19848 LTCC=${LTCC-"$CC"}
19849
19850 # If no C compiler flags were specified, use CFLAGS.
19851 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
19852
19853 # Allow CC to be a program name with arguments.
19854 compiler=$CC
19855
19856
19857 # save warnings/boilerplate of simple test code
19858 ac_outfile=conftest.$ac_objext
19859 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
19860 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19861 _lt_compiler_boilerplate=`cat conftest.err`
19862 $rm conftest*
19863
19864 ac_outfile=conftest.$ac_objext
19865 printf "$lt_simple_link_test_code" >conftest.$ac_ext
19866 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19867 _lt_linker_boilerplate=`cat conftest.err`
19868 $rm conftest*
19869
19870
19871 # Allow CC to be a program name with arguments.
19872 lt_save_CC="$CC"
19873 CC=${RC-"windres"}
19874 compiler=$CC
19875 compiler_RC=$CC
19876 for cc_temp in $compiler""; do
19877   case $cc_temp in
19878     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19879     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19880     \-*) ;;
19881     *) break;;
19882   esac
19883 done
19884 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
19885
19886 lt_cv_prog_compiler_c_o_RC=yes
19887
19888 # The else clause should only fire when bootstrapping the
19889 # libtool distribution, otherwise you forgot to ship ltmain.sh
19890 # with your package, and you will get complaints that there are
19891 # no rules to generate ltmain.sh.
19892 if test -f "$ltmain"; then
19893   # See if we are running on zsh, and set the options which allow our commands through
19894   # without removal of \ escapes.
19895   if test -n "${ZSH_VERSION+set}" ; then
19896     setopt NO_GLOB_SUBST
19897   fi
19898   # Now quote all the things that may contain metacharacters while being
19899   # careful not to overquote the AC_SUBSTed values.  We take copies of the
19900   # variables and quote the copies for generation of the libtool script.
19901   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19902     SED SHELL STRIP \
19903     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19904     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19905     deplibs_check_method reload_flag reload_cmds need_locks \
19906     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19907     lt_cv_sys_global_symbol_to_c_name_address \
19908     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19909     old_postinstall_cmds old_postuninstall_cmds \
19910     compiler_RC \
19911     CC_RC \
19912     LD_RC \
19913     lt_prog_compiler_wl_RC \
19914     lt_prog_compiler_pic_RC \
19915     lt_prog_compiler_static_RC \
19916     lt_prog_compiler_no_builtin_flag_RC \
19917     export_dynamic_flag_spec_RC \
19918     thread_safe_flag_spec_RC \
19919     whole_archive_flag_spec_RC \
19920     enable_shared_with_static_runtimes_RC \
19921     old_archive_cmds_RC \
19922     old_archive_from_new_cmds_RC \
19923     predep_objects_RC \
19924     postdep_objects_RC \
19925     predeps_RC \
19926     postdeps_RC \
19927     compiler_lib_search_path_RC \
19928     archive_cmds_RC \
19929     archive_expsym_cmds_RC \
19930     postinstall_cmds_RC \
19931     postuninstall_cmds_RC \
19932     old_archive_from_expsyms_cmds_RC \
19933     allow_undefined_flag_RC \
19934     no_undefined_flag_RC \
19935     export_symbols_cmds_RC \
19936     hardcode_libdir_flag_spec_RC \
19937     hardcode_libdir_flag_spec_ld_RC \
19938     hardcode_libdir_separator_RC \
19939     hardcode_automatic_RC \
19940     module_cmds_RC \
19941     module_expsym_cmds_RC \
19942     lt_cv_prog_compiler_c_o_RC \
19943     exclude_expsyms_RC \
19944     include_expsyms_RC; do
19945
19946     case $var in
19947     old_archive_cmds_RC | \
19948     old_archive_from_new_cmds_RC | \
19949     archive_cmds_RC | \
19950     archive_expsym_cmds_RC | \
19951     module_cmds_RC | \
19952     module_expsym_cmds_RC | \
19953     old_archive_from_expsyms_cmds_RC | \
19954     export_symbols_cmds_RC | \
19955     extract_expsyms_cmds | reload_cmds | finish_cmds | \
19956     postinstall_cmds | postuninstall_cmds | \
19957     old_postinstall_cmds | old_postuninstall_cmds | \
19958     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19959       # Double-quote double-evaled strings.
19960       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19961       ;;
19962     *)
19963       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19964       ;;
19965     esac
19966   done
19967
19968   case $lt_echo in
19969   *'\$0 --fallback-echo"')
19970     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19971     ;;
19972   esac
19973
19974 cfgfile="$ofile"
19975
19976   cat <<__EOF__ >> "$cfgfile"
19977 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19978
19979 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19980
19981 # Shell to use when invoking shell scripts.
19982 SHELL=$lt_SHELL
19983
19984 # Whether or not to build shared libraries.
19985 build_libtool_libs=$enable_shared
19986
19987 # Whether or not to build static libraries.
19988 build_old_libs=$enable_static
19989
19990 # Whether or not to add -lc for building shared libraries.
19991 build_libtool_need_lc=$archive_cmds_need_lc_RC
19992
19993 # Whether or not to disallow shared libs when runtime libs are static
19994 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19995
19996 # Whether or not to optimize for fast installation.
19997 fast_install=$enable_fast_install
19998
19999 # The host system.
20000 host_alias=$host_alias
20001 host=$host
20002 host_os=$host_os
20003
20004 # The build system.
20005 build_alias=$build_alias
20006 build=$build
20007 build_os=$build_os
20008
20009 # An echo program that does not interpret backslashes.
20010 echo=$lt_echo
20011
20012 # The archiver.
20013 AR=$lt_AR
20014 AR_FLAGS=$lt_AR_FLAGS
20015
20016 # A C compiler.
20017 LTCC=$lt_LTCC
20018
20019 # LTCC compiler flags.
20020 LTCFLAGS=$lt_LTCFLAGS
20021
20022 # A language-specific compiler.
20023 CC=$lt_compiler_RC
20024
20025 # Is the compiler the GNU C compiler?
20026 with_gcc=$GCC_RC
20027
20028 # An ERE matcher.
20029 EGREP=$lt_EGREP
20030
20031 # The linker used to build libraries.
20032 LD=$lt_LD_RC
20033
20034 # Whether we need hard or soft links.
20035 LN_S=$lt_LN_S
20036
20037 # A BSD-compatible nm program.
20038 NM=$lt_NM
20039
20040 # A symbol stripping program
20041 STRIP=$lt_STRIP
20042
20043 # Used to examine libraries when file_magic_cmd begins "file"
20044 MAGIC_CMD=$MAGIC_CMD
20045
20046 # Used on cygwin: DLL creation program.
20047 DLLTOOL="$DLLTOOL"
20048
20049 # Used on cygwin: object dumper.
20050 OBJDUMP="$OBJDUMP"
20051
20052 # Used on cygwin: assembler.
20053 AS="$AS"
20054
20055 # The name of the directory that contains temporary libtool files.
20056 objdir=$objdir
20057
20058 # How to create reloadable object files.
20059 reload_flag=$lt_reload_flag
20060 reload_cmds=$lt_reload_cmds
20061
20062 # How to pass a linker flag through the compiler.
20063 wl=$lt_lt_prog_compiler_wl_RC
20064
20065 # Object file suffix (normally "o").
20066 objext="$ac_objext"
20067
20068 # Old archive suffix (normally "a").
20069 libext="$libext"
20070
20071 # Shared library suffix (normally ".so").
20072 shrext_cmds='$shrext_cmds'
20073
20074 # Executable file suffix (normally "").
20075 exeext="$exeext"
20076
20077 # Additional compiler flags for building library objects.
20078 pic_flag=$lt_lt_prog_compiler_pic_RC
20079 pic_mode=$pic_mode
20080
20081 # What is the maximum length of a command?
20082 max_cmd_len=$lt_cv_sys_max_cmd_len
20083
20084 # Does compiler simultaneously support -c and -o options?
20085 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
20086
20087 # Must we lock files when doing compilation?
20088 need_locks=$lt_need_locks
20089
20090 # Do we need the lib prefix for modules?
20091 need_lib_prefix=$need_lib_prefix
20092
20093 # Do we need a version for libraries?
20094 need_version=$need_version
20095
20096 # Whether dlopen is supported.
20097 dlopen_support=$enable_dlopen
20098
20099 # Whether dlopen of programs is supported.
20100 dlopen_self=$enable_dlopen_self
20101
20102 # Whether dlopen of statically linked programs is supported.
20103 dlopen_self_static=$enable_dlopen_self_static
20104
20105 # Compiler flag to prevent dynamic linking.
20106 link_static_flag=$lt_lt_prog_compiler_static_RC
20107
20108 # Compiler flag to turn off builtin functions.
20109 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
20110
20111 # Compiler flag to allow reflexive dlopens.
20112 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
20113
20114 # Compiler flag to generate shared objects directly from archives.
20115 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
20116
20117 # Compiler flag to generate thread-safe objects.
20118 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
20119
20120 # Library versioning type.
20121 version_type=$version_type
20122
20123 # Format of library name prefix.
20124 libname_spec=$lt_libname_spec
20125
20126 # List of archive names.  First name is the real one, the rest are links.
20127 # The last name is the one that the linker finds with -lNAME.
20128 library_names_spec=$lt_library_names_spec
20129
20130 # The coded name of the library, if different from the real name.
20131 soname_spec=$lt_soname_spec
20132
20133 # Commands used to build and install an old-style archive.
20134 RANLIB=$lt_RANLIB
20135 old_archive_cmds=$lt_old_archive_cmds_RC
20136 old_postinstall_cmds=$lt_old_postinstall_cmds
20137 old_postuninstall_cmds=$lt_old_postuninstall_cmds
20138
20139 # Create an old-style archive from a shared archive.
20140 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
20141
20142 # Create a temporary old-style archive to link instead of a shared archive.
20143 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
20144
20145 # Commands used to build and install a shared archive.
20146 archive_cmds=$lt_archive_cmds_RC
20147 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
20148 postinstall_cmds=$lt_postinstall_cmds
20149 postuninstall_cmds=$lt_postuninstall_cmds
20150
20151 # Commands used to build a loadable module (assumed same as above if empty)
20152 module_cmds=$lt_module_cmds_RC
20153 module_expsym_cmds=$lt_module_expsym_cmds_RC
20154
20155 # Commands to strip libraries.
20156 old_striplib=$lt_old_striplib
20157 striplib=$lt_striplib
20158
20159 # Dependencies to place before the objects being linked to create a
20160 # shared library.
20161 predep_objects=$lt_predep_objects_RC
20162
20163 # Dependencies to place after the objects being linked to create a
20164 # shared library.
20165 postdep_objects=$lt_postdep_objects_RC
20166
20167 # Dependencies to place before the objects being linked to create a
20168 # shared library.
20169 predeps=$lt_predeps_RC
20170
20171 # Dependencies to place after the objects being linked to create a
20172 # shared library.
20173 postdeps=$lt_postdeps_RC
20174
20175 # The library search path used internally by the compiler when linking
20176 # a shared library.
20177 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
20178
20179 # Method to check whether dependent libraries are shared objects.
20180 deplibs_check_method=$lt_deplibs_check_method
20181
20182 # Command to use when deplibs_check_method == file_magic.
20183 file_magic_cmd=$lt_file_magic_cmd
20184
20185 # Flag that allows shared libraries with undefined symbols to be built.
20186 allow_undefined_flag=$lt_allow_undefined_flag_RC
20187
20188 # Flag that forces no undefined symbols.
20189 no_undefined_flag=$lt_no_undefined_flag_RC
20190
20191 # Commands used to finish a libtool library installation in a directory.
20192 finish_cmds=$lt_finish_cmds
20193
20194 # Same as above, but a single script fragment to be evaled but not shown.
20195 finish_eval=$lt_finish_eval
20196
20197 # Take the output of nm and produce a listing of raw symbols and C names.
20198 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20199
20200 # Transform the output of nm in a proper C declaration
20201 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20202
20203 # Transform the output of nm in a C name address pair
20204 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20205
20206 # This is the shared library runtime path variable.
20207 runpath_var=$runpath_var
20208
20209 # This is the shared library path variable.
20210 shlibpath_var=$shlibpath_var
20211
20212 # Is shlibpath searched before the hard-coded library search path?
20213 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20214
20215 # How to hardcode a shared library path into an executable.
20216 hardcode_action=$hardcode_action_RC
20217
20218 # Whether we should hardcode library paths into libraries.
20219 hardcode_into_libs=$hardcode_into_libs
20220
20221 # Flag to hardcode \$libdir into a binary during linking.
20222 # This must work even if \$libdir does not exist.
20223 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
20224
20225 # If ld is used when linking, flag to hardcode \$libdir into
20226 # a binary during linking. This must work even if \$libdir does
20227 # not exist.
20228 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
20229
20230 # Whether we need a single -rpath flag with a separated argument.
20231 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
20232
20233 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20234 # resulting binary.
20235 hardcode_direct=$hardcode_direct_RC
20236
20237 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20238 # resulting binary.
20239 hardcode_minus_L=$hardcode_minus_L_RC
20240
20241 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20242 # the resulting binary.
20243 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
20244
20245 # Set to yes if building a shared library automatically hardcodes DIR into the library
20246 # and all subsequent libraries and executables linked against it.
20247 hardcode_automatic=$hardcode_automatic_RC
20248
20249 # Variables whose values should be saved in libtool wrapper scripts and
20250 # restored at relink time.
20251 variables_saved_for_relink="$variables_saved_for_relink"
20252
20253 # Whether libtool must link a program against all its dependency libraries.
20254 link_all_deplibs=$link_all_deplibs_RC
20255
20256 # Compile-time system search path for libraries
20257 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20258
20259 # Run-time system search path for libraries
20260 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20261
20262 # Fix the shell variable \$srcfile for the compiler.
20263 fix_srcfile_path="$fix_srcfile_path_RC"
20264
20265 # Set to yes if exported symbols are required.
20266 always_export_symbols=$always_export_symbols_RC
20267
20268 # The commands to list exported symbols.
20269 export_symbols_cmds=$lt_export_symbols_cmds_RC
20270
20271 # The commands to extract the exported symbol list from a shared archive.
20272 extract_expsyms_cmds=$lt_extract_expsyms_cmds
20273
20274 # Symbols that should not be listed in the preloaded symbols.
20275 exclude_expsyms=$lt_exclude_expsyms_RC
20276
20277 # Symbols that must always be exported.
20278 include_expsyms=$lt_include_expsyms_RC
20279
20280 # ### END LIBTOOL TAG CONFIG: $tagname
20281
20282 __EOF__
20283
20284
20285 else
20286   # If there is no Makefile yet, we rely on a make rule to execute
20287   # `config.status --recheck' to rerun these tests and create the
20288   # libtool script then.
20289   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20290   if test -f "$ltmain_in"; then
20291     test -f Makefile && make "$ltmain"
20292   fi
20293 fi
20294
20295
20296 ac_ext=c
20297 ac_cpp='$CPP $CPPFLAGS'
20298 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20299 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20300 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20301
20302 CC="$lt_save_CC"
20303
20304         ;;
20305
20306       *)
20307         { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
20308 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
20309    { (exit 1); exit 1; }; }
20310         ;;
20311       esac
20312
20313       # Append the new tag name to the list of available tags.
20314       if test -n "$tagname" ; then
20315       available_tags="$available_tags $tagname"
20316     fi
20317     fi
20318   done
20319   IFS="$lt_save_ifs"
20320
20321   # Now substitute the updated list of available tags.
20322   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
20323     mv "${ofile}T" "$ofile"
20324     chmod +x "$ofile"
20325   else
20326     rm -f "${ofile}T"
20327     { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
20328 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
20329    { (exit 1); exit 1; }; }
20330   fi
20331 fi
20332
20333
20334
20335 # This can be used to rebuild libtool when needed
20336 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
20337
20338 # Always use our own libtool.
20339 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
20340
20341 # Prevent multiple expansion
20342
20343
20344
20345
20346
20347
20348
20349
20350
20351
20352
20353
20354
20355
20356
20357
20358
20359
20360
20361
20362
20363 if test "x$cross_compiling" = "xno"; then
20364         CC_FOR_BUILD=${CC_FOR_BUILD-${CC-gcc}}
20365 else
20366         CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
20367 fi
20368
20369
20370
20371 if test -n "$ac_tool_prefix"; then
20372   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
20373 set dummy ${ac_tool_prefix}ar; ac_word=$2
20374 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20375 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20376 if test "${ac_cv_prog_AR+set}" = set; then
20377   echo $ECHO_N "(cached) $ECHO_C" >&6
20378 else
20379   if test -n "$AR"; then
20380   ac_cv_prog_AR="$AR" # Let the user override the test.
20381 else
20382 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20383 for as_dir in $PATH
20384 do
20385   IFS=$as_save_IFS
20386   test -z "$as_dir" && as_dir=.
20387   for ac_exec_ext in '' $ac_executable_extensions; do
20388   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20389     ac_cv_prog_AR="${ac_tool_prefix}ar"
20390     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20391     break 2
20392   fi
20393 done
20394 done
20395 IFS=$as_save_IFS
20396
20397 fi
20398 fi
20399 AR=$ac_cv_prog_AR
20400 if test -n "$AR"; then
20401   { echo "$as_me:$LINENO: result: $AR" >&5
20402 echo "${ECHO_T}$AR" >&6; }
20403 else
20404   { echo "$as_me:$LINENO: result: no" >&5
20405 echo "${ECHO_T}no" >&6; }
20406 fi
20407
20408
20409 fi
20410 if test -z "$ac_cv_prog_AR"; then
20411   ac_ct_AR=$AR
20412   # Extract the first word of "ar", so it can be a program name with args.
20413 set dummy ar; ac_word=$2
20414 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20415 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20416 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
20417   echo $ECHO_N "(cached) $ECHO_C" >&6
20418 else
20419   if test -n "$ac_ct_AR"; then
20420   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
20421 else
20422 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20423 for as_dir in $PATH
20424 do
20425   IFS=$as_save_IFS
20426   test -z "$as_dir" && as_dir=.
20427   for ac_exec_ext in '' $ac_executable_extensions; do
20428   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20429     ac_cv_prog_ac_ct_AR="ar"
20430     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20431     break 2
20432   fi
20433 done
20434 done
20435 IFS=$as_save_IFS
20436
20437 fi
20438 fi
20439 ac_ct_AR=$ac_cv_prog_ac_ct_AR
20440 if test -n "$ac_ct_AR"; then
20441   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
20442 echo "${ECHO_T}$ac_ct_AR" >&6; }
20443 else
20444   { echo "$as_me:$LINENO: result: no" >&5
20445 echo "${ECHO_T}no" >&6; }
20446 fi
20447
20448   if test "x$ac_ct_AR" = x; then
20449     AR=""
20450   else
20451     case $cross_compiling:$ac_tool_warned in
20452 yes:)
20453 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
20454 whose name does not start with the host triplet.  If you think this
20455 configuration is useful to you, please write to autoconf@gnu.org." >&5
20456 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
20457 whose name does not start with the host triplet.  If you think this
20458 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
20459 ac_tool_warned=yes ;;
20460 esac
20461     AR=$ac_ct_AR
20462   fi
20463 else
20464   AR="$ac_cv_prog_AR"
20465 fi
20466
20467 if test -n "$ac_tool_prefix"; then
20468   # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
20469 set dummy ${ac_tool_prefix}ld; ac_word=$2
20470 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20471 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20472 if test "${ac_cv_prog_LD+set}" = set; then
20473   echo $ECHO_N "(cached) $ECHO_C" >&6
20474 else
20475   if test -n "$LD"; then
20476   ac_cv_prog_LD="$LD" # Let the user override the test.
20477 else
20478 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20479 for as_dir in $PATH
20480 do
20481   IFS=$as_save_IFS
20482   test -z "$as_dir" && as_dir=.
20483   for ac_exec_ext in '' $ac_executable_extensions; do
20484   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20485     ac_cv_prog_LD="${ac_tool_prefix}ld"
20486     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20487     break 2
20488   fi
20489 done
20490 done
20491 IFS=$as_save_IFS
20492
20493 fi
20494 fi
20495 LD=$ac_cv_prog_LD
20496 if test -n "$LD"; then
20497   { echo "$as_me:$LINENO: result: $LD" >&5
20498 echo "${ECHO_T}$LD" >&6; }
20499 else
20500   { echo "$as_me:$LINENO: result: no" >&5
20501 echo "${ECHO_T}no" >&6; }
20502 fi
20503
20504
20505 fi
20506 if test -z "$ac_cv_prog_LD"; then
20507   ac_ct_LD=$LD
20508   # Extract the first word of "ld", so it can be a program name with args.
20509 set dummy ld; ac_word=$2
20510 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20511 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20512 if test "${ac_cv_prog_ac_ct_LD+set}" = set; then
20513   echo $ECHO_N "(cached) $ECHO_C" >&6
20514 else
20515   if test -n "$ac_ct_LD"; then
20516   ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
20517 else
20518 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20519 for as_dir in $PATH
20520 do
20521   IFS=$as_save_IFS
20522   test -z "$as_dir" && as_dir=.
20523   for ac_exec_ext in '' $ac_executable_extensions; do
20524   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20525     ac_cv_prog_ac_ct_LD="ld"
20526     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20527     break 2
20528   fi
20529 done
20530 done
20531 IFS=$as_save_IFS
20532
20533 fi
20534 fi
20535 ac_ct_LD=$ac_cv_prog_ac_ct_LD
20536 if test -n "$ac_ct_LD"; then
20537   { echo "$as_me:$LINENO: result: $ac_ct_LD" >&5
20538 echo "${ECHO_T}$ac_ct_LD" >&6; }
20539 else
20540   { echo "$as_me:$LINENO: result: no" >&5
20541 echo "${ECHO_T}no" >&6; }
20542 fi
20543
20544   if test "x$ac_ct_LD" = x; then
20545     LD=""
20546   else
20547     case $cross_compiling:$ac_tool_warned in
20548 yes:)
20549 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
20550 whose name does not start with the host triplet.  If you think this
20551 configuration is useful to you, please write to autoconf@gnu.org." >&5
20552 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
20553 whose name does not start with the host triplet.  If you think this
20554 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
20555 ac_tool_warned=yes ;;
20556 esac
20557     LD=$ac_ct_LD
20558   fi
20559 else
20560   LD="$ac_cv_prog_LD"
20561 fi
20562
20563
20564 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
20565 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
20566 if test "${ac_cv_header_stdc+set}" = set; then
20567   echo $ECHO_N "(cached) $ECHO_C" >&6
20568 else
20569   cat >conftest.$ac_ext <<_ACEOF
20570 /* confdefs.h.  */
20571 _ACEOF
20572 cat confdefs.h >>conftest.$ac_ext
20573 cat >>conftest.$ac_ext <<_ACEOF
20574 /* end confdefs.h.  */
20575 #include <stdlib.h>
20576 #include <stdarg.h>
20577 #include <string.h>
20578 #include <float.h>
20579
20580 int
20581 main ()
20582 {
20583
20584   ;
20585   return 0;
20586 }
20587 _ACEOF
20588 rm -f conftest.$ac_objext
20589 if { (ac_try="$ac_compile"
20590 case "(($ac_try" in
20591   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20592   *) ac_try_echo=$ac_try;;
20593 esac
20594 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20595   (eval "$ac_compile") 2>conftest.er1
20596   ac_status=$?
20597   grep -v '^ *+' conftest.er1 >conftest.err
20598   rm -f conftest.er1
20599   cat conftest.err >&5
20600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20601   (exit $ac_status); } && {
20602          test -z "$ac_c_werror_flag" ||
20603          test ! -s conftest.err
20604        } && test -s conftest.$ac_objext; then
20605   ac_cv_header_stdc=yes
20606 else
20607   echo "$as_me: failed program was:" >&5
20608 sed 's/^/| /' conftest.$ac_ext >&5
20609
20610         ac_cv_header_stdc=no
20611 fi
20612
20613 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20614
20615 if test $ac_cv_header_stdc = yes; then
20616   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
20617   cat >conftest.$ac_ext <<_ACEOF
20618 /* confdefs.h.  */
20619 _ACEOF
20620 cat confdefs.h >>conftest.$ac_ext
20621 cat >>conftest.$ac_ext <<_ACEOF
20622 /* end confdefs.h.  */
20623 #include <string.h>
20624
20625 _ACEOF
20626 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20627   $EGREP "memchr" >/dev/null 2>&1; then
20628   :
20629 else
20630   ac_cv_header_stdc=no
20631 fi
20632 rm -f conftest*
20633
20634 fi
20635
20636 if test $ac_cv_header_stdc = yes; then
20637   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
20638   cat >conftest.$ac_ext <<_ACEOF
20639 /* confdefs.h.  */
20640 _ACEOF
20641 cat confdefs.h >>conftest.$ac_ext
20642 cat >>conftest.$ac_ext <<_ACEOF
20643 /* end confdefs.h.  */
20644 #include <stdlib.h>
20645
20646 _ACEOF
20647 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20648   $EGREP "free" >/dev/null 2>&1; then
20649   :
20650 else
20651   ac_cv_header_stdc=no
20652 fi
20653 rm -f conftest*
20654
20655 fi
20656
20657 if test $ac_cv_header_stdc = yes; then
20658   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
20659   if test "$cross_compiling" = yes; then
20660   :
20661 else
20662   cat >conftest.$ac_ext <<_ACEOF
20663 /* confdefs.h.  */
20664 _ACEOF
20665 cat confdefs.h >>conftest.$ac_ext
20666 cat >>conftest.$ac_ext <<_ACEOF
20667 /* end confdefs.h.  */
20668 #include <ctype.h>
20669 #include <stdlib.h>
20670 #if ((' ' & 0x0FF) == 0x020)
20671 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
20672 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
20673 #else
20674 # define ISLOWER(c) \
20675                    (('a' <= (c) && (c) <= 'i') \
20676                      || ('j' <= (c) && (c) <= 'r') \
20677                      || ('s' <= (c) && (c) <= 'z'))
20678 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
20679 #endif
20680
20681 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
20682 int
20683 main ()
20684 {
20685   int i;
20686   for (i = 0; i < 256; i++)
20687     if (XOR (islower (i), ISLOWER (i))
20688         || toupper (i) != TOUPPER (i))
20689       return 2;
20690   return 0;
20691 }
20692 _ACEOF
20693 rm -f conftest$ac_exeext
20694 if { (ac_try="$ac_link"
20695 case "(($ac_try" in
20696   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20697   *) ac_try_echo=$ac_try;;
20698 esac
20699 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20700   (eval "$ac_link") 2>&5
20701   ac_status=$?
20702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20703   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20704   { (case "(($ac_try" in
20705   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20706   *) ac_try_echo=$ac_try;;
20707 esac
20708 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20709   (eval "$ac_try") 2>&5
20710   ac_status=$?
20711   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20712   (exit $ac_status); }; }; then
20713   :
20714 else
20715   echo "$as_me: program exited with status $ac_status" >&5
20716 echo "$as_me: failed program was:" >&5
20717 sed 's/^/| /' conftest.$ac_ext >&5
20718
20719 ( exit $ac_status )
20720 ac_cv_header_stdc=no
20721 fi
20722 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20723 fi
20724
20725
20726 fi
20727 fi
20728 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
20729 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
20730 if test $ac_cv_header_stdc = yes; then
20731
20732 cat >>confdefs.h <<\_ACEOF
20733 #define STDC_HEADERS 1
20734 _ACEOF
20735
20736 fi
20737
20738
20739   { echo "$as_me:$LINENO: checking for GNU libc2" >&5
20740 echo $ECHO_N "checking for GNU libc2... $ECHO_C" >&6; }
20741   if test "${knfsd_cv_glibc2+set}" = set; then
20742   echo $ECHO_N "(cached) $ECHO_C" >&6
20743 else
20744   cat >conftest.$ac_ext <<_ACEOF
20745 /* confdefs.h.  */
20746 _ACEOF
20747 cat confdefs.h >>conftest.$ac_ext
20748 cat >>conftest.$ac_ext <<_ACEOF
20749 /* end confdefs.h.  */
20750
20751       #include <features.h>
20752       #if !defined(__GLIBC__)
20753       # error Nope
20754       #endif
20755
20756 _ACEOF
20757 if { (ac_try="$ac_cpp conftest.$ac_ext"
20758 case "(($ac_try" in
20759   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20760   *) ac_try_echo=$ac_try;;
20761 esac
20762 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20763   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20764   ac_status=$?
20765   grep -v '^ *+' conftest.er1 >conftest.err
20766   rm -f conftest.er1
20767   cat conftest.err >&5
20768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20769   (exit $ac_status); } >/dev/null && {
20770          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20771          test ! -s conftest.err
20772        }; then
20773   knfsd_cv_glibc2=yes
20774 else
20775   echo "$as_me: failed program was:" >&5
20776 sed 's/^/| /' conftest.$ac_ext >&5
20777
20778   knfsd_cv_glibc2=no
20779 fi
20780
20781 rm -f conftest.err conftest.$ac_ext
20782 fi
20783
20784   { echo "$as_me:$LINENO: result: $knfsd_cv_glibc2" >&5
20785 echo "${ECHO_T}$knfsd_cv_glibc2" >&6; }
20786   if test $knfsd_cv_glibc2 = yes; then
20787     CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE"
20788     CPPFLAGS_FOR_BUILD="$CPPFLAGS_FOR_BUILD -D_GNU_SOURCE"
20789   fi
20790
20791
20792   { echo "$as_me:$LINENO: checking for BSD signal semantics" >&5
20793 echo $ECHO_N "checking for BSD signal semantics... $ECHO_C" >&6; }
20794   if test "${knfsd_cv_bsd_signals+set}" = set; then
20795   echo $ECHO_N "(cached) $ECHO_C" >&6
20796 else
20797   if test "$cross_compiling" = yes; then
20798   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
20799 See \`config.log' for more details." >&5
20800 echo "$as_me: error: cannot run test program while cross compiling
20801 See \`config.log' for more details." >&2;}
20802    { (exit 1); exit 1; }; }
20803 else
20804   cat >conftest.$ac_ext <<_ACEOF
20805 /* confdefs.h.  */
20806 _ACEOF
20807 cat confdefs.h >>conftest.$ac_ext
20808 cat >>conftest.$ac_ext <<_ACEOF
20809 /* end confdefs.h.  */
20810
20811         #include <signal.h>
20812         #include <unistd.h>
20813         #include <sys/wait.h>
20814
20815         static int counter = 0;
20816         static RETSIGTYPE handler(int num) { counter++; }
20817
20818         int main()
20819         {
20820                 int     s;
20821                 if ((s = fork()) < 0) return 1;
20822                 if (s != 0) {
20823                         if (wait(&s) < 0) return 1;
20824                         return WIFSIGNALED(s)? 1 : 0;
20825                 }
20826
20827                 signal(SIGHUP, handler);
20828                 kill(getpid(), SIGHUP); kill(getpid(), SIGHUP);
20829                 return (counter == 2)? 0 : 1;
20830         }
20831
20832 _ACEOF
20833 rm -f conftest$ac_exeext
20834 if { (ac_try="$ac_link"
20835 case "(($ac_try" in
20836   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20837   *) ac_try_echo=$ac_try;;
20838 esac
20839 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20840   (eval "$ac_link") 2>&5
20841   ac_status=$?
20842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20843   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20844   { (case "(($ac_try" in
20845   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20846   *) ac_try_echo=$ac_try;;
20847 esac
20848 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20849   (eval "$ac_try") 2>&5
20850   ac_status=$?
20851   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20852   (exit $ac_status); }; }; then
20853   knfsd_cv_bsd_signals=yes
20854 else
20855   echo "$as_me: program exited with status $ac_status" >&5
20856 echo "$as_me: failed program was:" >&5
20857 sed 's/^/| /' conftest.$ac_ext >&5
20858
20859 ( exit $ac_status )
20860 knfsd_cv_bsd_signals=no
20861 fi
20862 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20863 fi
20864
20865
20866 fi
20867      { echo "$as_me:$LINENO: result: $knfsd_cv_bsd_signals" >&5
20868 echo "${ECHO_T}$knfsd_cv_bsd_signals" >&6; }
20869     test $knfsd_cv_bsd_signals = yes &&
20870 cat >>confdefs.h <<\_ACEOF
20871 #define HAVE_BSD_SIGNALS 1
20872 _ACEOF
20873
20874
20875
20876 { echo "$as_me:$LINENO: checking for gethostbyname" >&5
20877 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; }
20878 if test "${ac_cv_func_gethostbyname+set}" = set; then
20879   echo $ECHO_N "(cached) $ECHO_C" >&6
20880 else
20881   cat >conftest.$ac_ext <<_ACEOF
20882 /* confdefs.h.  */
20883 _ACEOF
20884 cat confdefs.h >>conftest.$ac_ext
20885 cat >>conftest.$ac_ext <<_ACEOF
20886 /* end confdefs.h.  */
20887 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
20888    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20889 #define gethostbyname innocuous_gethostbyname
20890
20891 /* System header to define __stub macros and hopefully few prototypes,
20892     which can conflict with char gethostbyname (); below.
20893     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20894     <limits.h> exists even on freestanding compilers.  */
20895
20896 #ifdef __STDC__
20897 # include <limits.h>
20898 #else
20899 # include <assert.h>
20900 #endif
20901
20902 #undef gethostbyname
20903
20904 /* Override any GCC internal prototype to avoid an error.
20905    Use char because int might match the return type of a GCC
20906    builtin and then its argument prototype would still apply.  */
20907 #ifdef __cplusplus
20908 extern "C"
20909 #endif
20910 char gethostbyname ();
20911 /* The GNU C library defines this for functions which it implements
20912     to always fail with ENOSYS.  Some functions are actually named
20913     something starting with __ and the normal name is an alias.  */
20914 #if defined __stub_gethostbyname || defined __stub___gethostbyname
20915 choke me
20916 #endif
20917
20918 int
20919 main ()
20920 {
20921 return gethostbyname ();
20922   ;
20923   return 0;
20924 }
20925 _ACEOF
20926 rm -f conftest.$ac_objext conftest$ac_exeext
20927 if { (ac_try="$ac_link"
20928 case "(($ac_try" in
20929   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20930   *) ac_try_echo=$ac_try;;
20931 esac
20932 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20933   (eval "$ac_link") 2>conftest.er1
20934   ac_status=$?
20935   grep -v '^ *+' conftest.er1 >conftest.err
20936   rm -f conftest.er1
20937   cat conftest.err >&5
20938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20939   (exit $ac_status); } && {
20940          test -z "$ac_c_werror_flag" ||
20941          test ! -s conftest.err
20942        } && test -s conftest$ac_exeext &&
20943        $as_test_x conftest$ac_exeext; then
20944   ac_cv_func_gethostbyname=yes
20945 else
20946   echo "$as_me: failed program was:" >&5
20947 sed 's/^/| /' conftest.$ac_ext >&5
20948
20949         ac_cv_func_gethostbyname=no
20950 fi
20951
20952 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20953       conftest$ac_exeext conftest.$ac_ext
20954 fi
20955 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
20956 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; }
20957 if test $ac_cv_func_gethostbyname = yes; then
20958   :
20959 else
20960   { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
20961 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; }
20962 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
20963   echo $ECHO_N "(cached) $ECHO_C" >&6
20964 else
20965   ac_check_lib_save_LIBS=$LIBS
20966 LIBS="-lnsl  $LIBS"
20967 cat >conftest.$ac_ext <<_ACEOF
20968 /* confdefs.h.  */
20969 _ACEOF
20970 cat confdefs.h >>conftest.$ac_ext
20971 cat >>conftest.$ac_ext <<_ACEOF
20972 /* end confdefs.h.  */
20973
20974 /* Override any GCC internal prototype to avoid an error.
20975    Use char because int might match the return type of a GCC
20976    builtin and then its argument prototype would still apply.  */
20977 #ifdef __cplusplus
20978 extern "C"
20979 #endif
20980 char gethostbyname ();
20981 int
20982 main ()
20983 {
20984 return gethostbyname ();
20985   ;
20986   return 0;
20987 }
20988 _ACEOF
20989 rm -f conftest.$ac_objext conftest$ac_exeext
20990 if { (ac_try="$ac_link"
20991 case "(($ac_try" in
20992   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20993   *) ac_try_echo=$ac_try;;
20994 esac
20995 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20996   (eval "$ac_link") 2>conftest.er1
20997   ac_status=$?
20998   grep -v '^ *+' conftest.er1 >conftest.err
20999   rm -f conftest.er1
21000   cat conftest.err >&5
21001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21002   (exit $ac_status); } && {
21003          test -z "$ac_c_werror_flag" ||
21004          test ! -s conftest.err
21005        } && test -s conftest$ac_exeext &&
21006        $as_test_x conftest$ac_exeext; then
21007   ac_cv_lib_nsl_gethostbyname=yes
21008 else
21009   echo "$as_me: failed program was:" >&5
21010 sed 's/^/| /' conftest.$ac_ext >&5
21011
21012         ac_cv_lib_nsl_gethostbyname=no
21013 fi
21014
21015 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21016       conftest$ac_exeext conftest.$ac_ext
21017 LIBS=$ac_check_lib_save_LIBS
21018 fi
21019 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
21020 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; }
21021 if test $ac_cv_lib_nsl_gethostbyname = yes; then
21022   LIBNSL="-lnsl"
21023 fi
21024
21025 fi
21026
21027
21028
21029 { echo "$as_me:$LINENO: checking for connect" >&5
21030 echo $ECHO_N "checking for connect... $ECHO_C" >&6; }
21031 if test "${ac_cv_func_connect+set}" = set; then
21032   echo $ECHO_N "(cached) $ECHO_C" >&6
21033 else
21034   cat >conftest.$ac_ext <<_ACEOF
21035 /* confdefs.h.  */
21036 _ACEOF
21037 cat confdefs.h >>conftest.$ac_ext
21038 cat >>conftest.$ac_ext <<_ACEOF
21039 /* end confdefs.h.  */
21040 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
21041    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21042 #define connect innocuous_connect
21043
21044 /* System header to define __stub macros and hopefully few prototypes,
21045     which can conflict with char connect (); below.
21046     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21047     <limits.h> exists even on freestanding compilers.  */
21048
21049 #ifdef __STDC__
21050 # include <limits.h>
21051 #else
21052 # include <assert.h>
21053 #endif
21054
21055 #undef connect
21056
21057 /* Override any GCC internal prototype to avoid an error.
21058    Use char because int might match the return type of a GCC
21059    builtin and then its argument prototype would still apply.  */
21060 #ifdef __cplusplus
21061 extern "C"
21062 #endif
21063 char connect ();
21064 /* The GNU C library defines this for functions which it implements
21065     to always fail with ENOSYS.  Some functions are actually named
21066     something starting with __ and the normal name is an alias.  */
21067 #if defined __stub_connect || defined __stub___connect
21068 choke me
21069 #endif
21070
21071 int
21072 main ()
21073 {
21074 return connect ();
21075   ;
21076   return 0;
21077 }
21078 _ACEOF
21079 rm -f conftest.$ac_objext conftest$ac_exeext
21080 if { (ac_try="$ac_link"
21081 case "(($ac_try" in
21082   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21083   *) ac_try_echo=$ac_try;;
21084 esac
21085 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21086   (eval "$ac_link") 2>conftest.er1
21087   ac_status=$?
21088   grep -v '^ *+' conftest.er1 >conftest.err
21089   rm -f conftest.er1
21090   cat conftest.err >&5
21091   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21092   (exit $ac_status); } && {
21093          test -z "$ac_c_werror_flag" ||
21094          test ! -s conftest.err
21095        } && test -s conftest$ac_exeext &&
21096        $as_test_x conftest$ac_exeext; then
21097   ac_cv_func_connect=yes
21098 else
21099   echo "$as_me: failed program was:" >&5
21100 sed 's/^/| /' conftest.$ac_ext >&5
21101
21102         ac_cv_func_connect=no
21103 fi
21104
21105 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21106       conftest$ac_exeext conftest.$ac_ext
21107 fi
21108 { echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
21109 echo "${ECHO_T}$ac_cv_func_connect" >&6; }
21110 if test $ac_cv_func_connect = yes; then
21111   :
21112 else
21113   { echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
21114 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6; }
21115 if test "${ac_cv_lib_socket_connect+set}" = set; then
21116   echo $ECHO_N "(cached) $ECHO_C" >&6
21117 else
21118   ac_check_lib_save_LIBS=$LIBS
21119 LIBS="-lsocket $LIBNSL $LIBS"
21120 cat >conftest.$ac_ext <<_ACEOF
21121 /* confdefs.h.  */
21122 _ACEOF
21123 cat confdefs.h >>conftest.$ac_ext
21124 cat >>conftest.$ac_ext <<_ACEOF
21125 /* end confdefs.h.  */
21126
21127 /* Override any GCC internal prototype to avoid an error.
21128    Use char because int might match the return type of a GCC
21129    builtin and then its argument prototype would still apply.  */
21130 #ifdef __cplusplus
21131 extern "C"
21132 #endif
21133 char connect ();
21134 int
21135 main ()
21136 {
21137 return connect ();
21138   ;
21139   return 0;
21140 }
21141 _ACEOF
21142 rm -f conftest.$ac_objext conftest$ac_exeext
21143 if { (ac_try="$ac_link"
21144 case "(($ac_try" in
21145   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21146   *) ac_try_echo=$ac_try;;
21147 esac
21148 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21149   (eval "$ac_link") 2>conftest.er1
21150   ac_status=$?
21151   grep -v '^ *+' conftest.er1 >conftest.err
21152   rm -f conftest.er1
21153   cat conftest.err >&5
21154   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21155   (exit $ac_status); } && {
21156          test -z "$ac_c_werror_flag" ||
21157          test ! -s conftest.err
21158        } && test -s conftest$ac_exeext &&
21159        $as_test_x conftest$ac_exeext; then
21160   ac_cv_lib_socket_connect=yes
21161 else
21162   echo "$as_me: failed program was:" >&5
21163 sed 's/^/| /' conftest.$ac_ext >&5
21164
21165         ac_cv_lib_socket_connect=no
21166 fi
21167
21168 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21169       conftest$ac_exeext conftest.$ac_ext
21170 LIBS=$ac_check_lib_save_LIBS
21171 fi
21172 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
21173 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6; }
21174 if test $ac_cv_lib_socket_connect = yes; then
21175   LIBSOCKET="-lsocket"
21176 else
21177   { { echo "$as_me:$LINENO: error: Function 'socket' not found." >&5
21178 echo "$as_me: error: Function 'socket' not found." >&2;}
21179    { (exit 1); exit 1; }; }
21180 fi
21181
21182 fi
21183
21184
21185 { echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
21186 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6; }
21187 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
21188   echo $ECHO_N "(cached) $ECHO_C" >&6
21189 else
21190   ac_check_lib_save_LIBS=$LIBS
21191 LIBS="-lcrypt  $LIBS"
21192 cat >conftest.$ac_ext <<_ACEOF
21193 /* confdefs.h.  */
21194 _ACEOF
21195 cat confdefs.h >>conftest.$ac_ext
21196 cat >>conftest.$ac_ext <<_ACEOF
21197 /* end confdefs.h.  */
21198
21199 /* Override any GCC internal prototype to avoid an error.
21200    Use char because int might match the return type of a GCC
21201    builtin and then its argument prototype would still apply.  */
21202 #ifdef __cplusplus
21203 extern "C"
21204 #endif
21205 char crypt ();
21206 int
21207 main ()
21208 {
21209 return crypt ();
21210   ;
21211   return 0;
21212 }
21213 _ACEOF
21214 rm -f conftest.$ac_objext conftest$ac_exeext
21215 if { (ac_try="$ac_link"
21216 case "(($ac_try" in
21217   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21218   *) ac_try_echo=$ac_try;;
21219 esac
21220 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21221   (eval "$ac_link") 2>conftest.er1
21222   ac_status=$?
21223   grep -v '^ *+' conftest.er1 >conftest.err
21224   rm -f conftest.er1
21225   cat conftest.err >&5
21226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21227   (exit $ac_status); } && {
21228          test -z "$ac_c_werror_flag" ||
21229          test ! -s conftest.err
21230        } && test -s conftest$ac_exeext &&
21231        $as_test_x conftest$ac_exeext; then
21232   ac_cv_lib_crypt_crypt=yes
21233 else
21234   echo "$as_me: failed program was:" >&5
21235 sed 's/^/| /' conftest.$ac_ext >&5
21236
21237         ac_cv_lib_crypt_crypt=no
21238 fi
21239
21240 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21241       conftest$ac_exeext conftest.$ac_ext
21242 LIBS=$ac_check_lib_save_LIBS
21243 fi
21244 { echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
21245 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6; }
21246 if test $ac_cv_lib_crypt_crypt = yes; then
21247   LIBCRYPT="-lcrypt"
21248 fi
21249
21250 if test "$enable_nfsv4" = yes; then
21251     { echo "$as_me:$LINENO: checking for event_dispatch in -levent" >&5
21252 echo $ECHO_N "checking for event_dispatch in -levent... $ECHO_C" >&6; }
21253 if test "${ac_cv_lib_event_event_dispatch+set}" = set; then
21254   echo $ECHO_N "(cached) $ECHO_C" >&6
21255 else
21256   ac_check_lib_save_LIBS=$LIBS
21257 LIBS="-levent  $LIBS"
21258 cat >conftest.$ac_ext <<_ACEOF
21259 /* confdefs.h.  */
21260 _ACEOF
21261 cat confdefs.h >>conftest.$ac_ext
21262 cat >>conftest.$ac_ext <<_ACEOF
21263 /* end confdefs.h.  */
21264
21265 /* Override any GCC internal prototype to avoid an error.
21266    Use char because int might match the return type of a GCC
21267    builtin and then its argument prototype would still apply.  */
21268 #ifdef __cplusplus
21269 extern "C"
21270 #endif
21271 char event_dispatch ();
21272 int
21273 main ()
21274 {
21275 return event_dispatch ();
21276   ;
21277   return 0;
21278 }
21279 _ACEOF
21280 rm -f conftest.$ac_objext conftest$ac_exeext
21281 if { (ac_try="$ac_link"
21282 case "(($ac_try" in
21283   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21284   *) ac_try_echo=$ac_try;;
21285 esac
21286 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21287   (eval "$ac_link") 2>conftest.er1
21288   ac_status=$?
21289   grep -v '^ *+' conftest.er1 >conftest.err
21290   rm -f conftest.er1
21291   cat conftest.err >&5
21292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21293   (exit $ac_status); } && {
21294          test -z "$ac_c_werror_flag" ||
21295          test ! -s conftest.err
21296        } && test -s conftest$ac_exeext &&
21297        $as_test_x conftest$ac_exeext; then
21298   ac_cv_lib_event_event_dispatch=yes
21299 else
21300   echo "$as_me: failed program was:" >&5
21301 sed 's/^/| /' conftest.$ac_ext >&5
21302
21303         ac_cv_lib_event_event_dispatch=no
21304 fi
21305
21306 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21307       conftest$ac_exeext conftest.$ac_ext
21308 LIBS=$ac_check_lib_save_LIBS
21309 fi
21310 { echo "$as_me:$LINENO: result: $ac_cv_lib_event_event_dispatch" >&5
21311 echo "${ECHO_T}$ac_cv_lib_event_event_dispatch" >&6; }
21312 if test $ac_cv_lib_event_event_dispatch = yes; then
21313   libevent=1
21314 else
21315   { { echo "$as_me:$LINENO: error: libevent needed for nfsv4 support" >&5
21316 echo "$as_me: error: libevent needed for nfsv4 support" >&2;}
21317    { (exit 1); exit 1; }; }
21318 fi
21319
21320     { echo "$as_me:$LINENO: checking for nfs4_init_name_mapping in -lnfsidmap" >&5
21321 echo $ECHO_N "checking for nfs4_init_name_mapping in -lnfsidmap... $ECHO_C" >&6; }
21322 if test "${ac_cv_lib_nfsidmap_nfs4_init_name_mapping+set}" = set; then
21323   echo $ECHO_N "(cached) $ECHO_C" >&6
21324 else
21325   ac_check_lib_save_LIBS=$LIBS
21326 LIBS="-lnfsidmap  $LIBS"
21327 cat >conftest.$ac_ext <<_ACEOF
21328 /* confdefs.h.  */
21329 _ACEOF
21330 cat confdefs.h >>conftest.$ac_ext
21331 cat >>conftest.$ac_ext <<_ACEOF
21332 /* end confdefs.h.  */
21333
21334 /* Override any GCC internal prototype to avoid an error.
21335    Use char because int might match the return type of a GCC
21336    builtin and then its argument prototype would still apply.  */
21337 #ifdef __cplusplus
21338 extern "C"
21339 #endif
21340 char nfs4_init_name_mapping ();
21341 int
21342 main ()
21343 {
21344 return nfs4_init_name_mapping ();
21345   ;
21346   return 0;
21347 }
21348 _ACEOF
21349 rm -f conftest.$ac_objext conftest$ac_exeext
21350 if { (ac_try="$ac_link"
21351 case "(($ac_try" in
21352   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21353   *) ac_try_echo=$ac_try;;
21354 esac
21355 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21356   (eval "$ac_link") 2>conftest.er1
21357   ac_status=$?
21358   grep -v '^ *+' conftest.er1 >conftest.err
21359   rm -f conftest.er1
21360   cat conftest.err >&5
21361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21362   (exit $ac_status); } && {
21363          test -z "$ac_c_werror_flag" ||
21364          test ! -s conftest.err
21365        } && test -s conftest$ac_exeext &&
21366        $as_test_x conftest$ac_exeext; then
21367   ac_cv_lib_nfsidmap_nfs4_init_name_mapping=yes
21368 else
21369   echo "$as_me: failed program was:" >&5
21370 sed 's/^/| /' conftest.$ac_ext >&5
21371
21372         ac_cv_lib_nfsidmap_nfs4_init_name_mapping=no
21373 fi
21374
21375 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21376       conftest$ac_exeext conftest.$ac_ext
21377 LIBS=$ac_check_lib_save_LIBS
21378 fi
21379 { echo "$as_me:$LINENO: result: $ac_cv_lib_nfsidmap_nfs4_init_name_mapping" >&5
21380 echo "${ECHO_T}$ac_cv_lib_nfsidmap_nfs4_init_name_mapping" >&6; }
21381 if test $ac_cv_lib_nfsidmap_nfs4_init_name_mapping = yes; then
21382   libnfsidmap=1
21383 else
21384   { { echo "$as_me:$LINENO: error: libnfsidmap needed for nfsv4 support" >&5
21385 echo "$as_me: error: libnfsidmap needed for nfsv4 support" >&2;}
21386    { (exit 1); exit 1; }; }
21387 fi
21388
21389
21390 for ac_header in event.h
21391 do
21392 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21393 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21394   { echo "$as_me:$LINENO: checking for $ac_header" >&5
21395 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21396 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21397   echo $ECHO_N "(cached) $ECHO_C" >&6
21398 fi
21399 ac_res=`eval echo '${'$as_ac_Header'}'`
21400                { echo "$as_me:$LINENO: result: $ac_res" >&5
21401 echo "${ECHO_T}$ac_res" >&6; }
21402 else
21403   # Is the header compilable?
21404 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21405 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21406 cat >conftest.$ac_ext <<_ACEOF
21407 /* confdefs.h.  */
21408 _ACEOF
21409 cat confdefs.h >>conftest.$ac_ext
21410 cat >>conftest.$ac_ext <<_ACEOF
21411 /* end confdefs.h.  */
21412 $ac_includes_default
21413 #include <$ac_header>
21414 _ACEOF
21415 rm -f conftest.$ac_objext
21416 if { (ac_try="$ac_compile"
21417 case "(($ac_try" in
21418   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21419   *) ac_try_echo=$ac_try;;
21420 esac
21421 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21422   (eval "$ac_compile") 2>conftest.er1
21423   ac_status=$?
21424   grep -v '^ *+' conftest.er1 >conftest.err
21425   rm -f conftest.er1
21426   cat conftest.err >&5
21427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21428   (exit $ac_status); } && {
21429          test -z "$ac_c_werror_flag" ||
21430          test ! -s conftest.err
21431        } && test -s conftest.$ac_objext; then
21432   ac_header_compiler=yes
21433 else
21434   echo "$as_me: failed program was:" >&5
21435 sed 's/^/| /' conftest.$ac_ext >&5
21436
21437         ac_header_compiler=no
21438 fi
21439
21440 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21441 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21442 echo "${ECHO_T}$ac_header_compiler" >&6; }
21443
21444 # Is the header present?
21445 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21446 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21447 cat >conftest.$ac_ext <<_ACEOF
21448 /* confdefs.h.  */
21449 _ACEOF
21450 cat confdefs.h >>conftest.$ac_ext
21451 cat >>conftest.$ac_ext <<_ACEOF
21452 /* end confdefs.h.  */
21453 #include <$ac_header>
21454 _ACEOF
21455 if { (ac_try="$ac_cpp conftest.$ac_ext"
21456 case "(($ac_try" in
21457   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21458   *) ac_try_echo=$ac_try;;
21459 esac
21460 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21461   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21462   ac_status=$?
21463   grep -v '^ *+' conftest.er1 >conftest.err
21464   rm -f conftest.er1
21465   cat conftest.err >&5
21466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21467   (exit $ac_status); } >/dev/null && {
21468          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21469          test ! -s conftest.err
21470        }; then
21471   ac_header_preproc=yes
21472 else
21473   echo "$as_me: failed program was:" >&5
21474 sed 's/^/| /' conftest.$ac_ext >&5
21475
21476   ac_header_preproc=no
21477 fi
21478
21479 rm -f conftest.err conftest.$ac_ext
21480 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21481 echo "${ECHO_T}$ac_header_preproc" >&6; }
21482
21483 # So?  What about this header?
21484 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21485   yes:no: )
21486     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21487 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21488     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21489 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21490     ac_header_preproc=yes
21491     ;;
21492   no:yes:* )
21493     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21494 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21495     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
21496 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
21497     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21498 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21499     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
21500 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
21501     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21502 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21503     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21504 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21505     ( cat <<\_ASBOX
21506 ## ------------------------------- ##
21507 ## Report this to nfs@lists.sf.net ##
21508 ## ------------------------------- ##
21509 _ASBOX
21510      ) | sed "s/^/$as_me: WARNING:     /" >&2
21511     ;;
21512 esac
21513 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21514 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21515 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21516   echo $ECHO_N "(cached) $ECHO_C" >&6
21517 else
21518   eval "$as_ac_Header=\$ac_header_preproc"
21519 fi
21520 ac_res=`eval echo '${'$as_ac_Header'}'`
21521                { echo "$as_me:$LINENO: result: $ac_res" >&5
21522 echo "${ECHO_T}$ac_res" >&6; }
21523
21524 fi
21525 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21526   cat >>confdefs.h <<_ACEOF
21527 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21528 _ACEOF
21529
21530 else
21531   { { echo "$as_me:$LINENO: error: libevent needed for nfsv4 support" >&5
21532 echo "$as_me: error: libevent needed for nfsv4 support" >&2;}
21533    { (exit 1); exit 1; }; }
21534 fi
21535
21536 done
21537
21538
21539 for ac_header in nfsidmap.h
21540 do
21541 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21542 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21543   { echo "$as_me:$LINENO: checking for $ac_header" >&5
21544 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21545 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21546   echo $ECHO_N "(cached) $ECHO_C" >&6
21547 fi
21548 ac_res=`eval echo '${'$as_ac_Header'}'`
21549                { echo "$as_me:$LINENO: result: $ac_res" >&5
21550 echo "${ECHO_T}$ac_res" >&6; }
21551 else
21552   # Is the header compilable?
21553 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21554 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21555 cat >conftest.$ac_ext <<_ACEOF
21556 /* confdefs.h.  */
21557 _ACEOF
21558 cat confdefs.h >>conftest.$ac_ext
21559 cat >>conftest.$ac_ext <<_ACEOF
21560 /* end confdefs.h.  */
21561 $ac_includes_default
21562 #include <$ac_header>
21563 _ACEOF
21564 rm -f conftest.$ac_objext
21565 if { (ac_try="$ac_compile"
21566 case "(($ac_try" in
21567   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21568   *) ac_try_echo=$ac_try;;
21569 esac
21570 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21571   (eval "$ac_compile") 2>conftest.er1
21572   ac_status=$?
21573   grep -v '^ *+' conftest.er1 >conftest.err
21574   rm -f conftest.er1
21575   cat conftest.err >&5
21576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21577   (exit $ac_status); } && {
21578          test -z "$ac_c_werror_flag" ||
21579          test ! -s conftest.err
21580        } && test -s conftest.$ac_objext; then
21581   ac_header_compiler=yes
21582 else
21583   echo "$as_me: failed program was:" >&5
21584 sed 's/^/| /' conftest.$ac_ext >&5
21585
21586         ac_header_compiler=no
21587 fi
21588
21589 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21590 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21591 echo "${ECHO_T}$ac_header_compiler" >&6; }
21592
21593 # Is the header present?
21594 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21595 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21596 cat >conftest.$ac_ext <<_ACEOF
21597 /* confdefs.h.  */
21598 _ACEOF
21599 cat confdefs.h >>conftest.$ac_ext
21600 cat >>conftest.$ac_ext <<_ACEOF
21601 /* end confdefs.h.  */
21602 #include <$ac_header>
21603 _ACEOF
21604 if { (ac_try="$ac_cpp conftest.$ac_ext"
21605 case "(($ac_try" in
21606   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21607   *) ac_try_echo=$ac_try;;
21608 esac
21609 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21610   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21611   ac_status=$?
21612   grep -v '^ *+' conftest.er1 >conftest.err
21613   rm -f conftest.er1
21614   cat conftest.err >&5
21615   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21616   (exit $ac_status); } >/dev/null && {
21617          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21618          test ! -s conftest.err
21619        }; then
21620   ac_header_preproc=yes
21621 else
21622   echo "$as_me: failed program was:" >&5
21623 sed 's/^/| /' conftest.$ac_ext >&5
21624
21625   ac_header_preproc=no
21626 fi
21627
21628 rm -f conftest.err conftest.$ac_ext
21629 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21630 echo "${ECHO_T}$ac_header_preproc" >&6; }
21631
21632 # So?  What about this header?
21633 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21634   yes:no: )
21635     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21636 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21637     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21638 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21639     ac_header_preproc=yes
21640     ;;
21641   no:yes:* )
21642     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21643 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21644     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
21645 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
21646     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21647 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21648     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
21649 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
21650     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21651 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21652     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21653 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21654     ( cat <<\_ASBOX
21655 ## ------------------------------- ##
21656 ## Report this to nfs@lists.sf.net ##
21657 ## ------------------------------- ##
21658 _ASBOX
21659      ) | sed "s/^/$as_me: WARNING:     /" >&2
21660     ;;
21661 esac
21662 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21663 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21664 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21665   echo $ECHO_N "(cached) $ECHO_C" >&6
21666 else
21667   eval "$as_ac_Header=\$ac_header_preproc"
21668 fi
21669 ac_res=`eval echo '${'$as_ac_Header'}'`
21670                { echo "$as_me:$LINENO: result: $ac_res" >&5
21671 echo "${ECHO_T}$ac_res" >&6; }
21672
21673 fi
21674 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21675   cat >>confdefs.h <<_ACEOF
21676 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21677 _ACEOF
21678
21679 else
21680   { { echo "$as_me:$LINENO: error: libnfsidmap needed for nfsv4 support" >&5
21681 echo "$as_me: error: libnfsidmap needed for nfsv4 support" >&2;}
21682    { (exit 1); exit 1; }; }
21683 fi
21684
21685 done
21686
21687             if test "$enable_gss" = yes; then
21688
21689
21690 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
21691         if test -n "$ac_tool_prefix"; then
21692   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
21693 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
21694 { echo "$as_me:$LINENO: checking for $ac_word" >&5
21695 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
21696 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
21697   echo $ECHO_N "(cached) $ECHO_C" >&6
21698 else
21699   case $PKG_CONFIG in
21700   [\\/]* | ?:[\\/]*)
21701   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
21702   ;;
21703   *)
21704   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21705 for as_dir in $PATH
21706 do
21707   IFS=$as_save_IFS
21708   test -z "$as_dir" && as_dir=.
21709   for ac_exec_ext in '' $ac_executable_extensions; do
21710   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21711     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
21712     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21713     break 2
21714   fi
21715 done
21716 done
21717 IFS=$as_save_IFS
21718
21719   ;;
21720 esac
21721 fi
21722 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
21723 if test -n "$PKG_CONFIG"; then
21724   { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
21725 echo "${ECHO_T}$PKG_CONFIG" >&6; }
21726 else
21727   { echo "$as_me:$LINENO: result: no" >&5
21728 echo "${ECHO_T}no" >&6; }
21729 fi
21730
21731
21732 fi
21733 if test -z "$ac_cv_path_PKG_CONFIG"; then
21734   ac_pt_PKG_CONFIG=$PKG_CONFIG
21735   # Extract the first word of "pkg-config", so it can be a program name with args.
21736 set dummy pkg-config; ac_word=$2
21737 { echo "$as_me:$LINENO: checking for $ac_word" >&5
21738 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
21739 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
21740   echo $ECHO_N "(cached) $ECHO_C" >&6
21741 else
21742   case $ac_pt_PKG_CONFIG in
21743   [\\/]* | ?:[\\/]*)
21744   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
21745   ;;
21746   *)
21747   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21748 for as_dir in $PATH
21749 do
21750   IFS=$as_save_IFS
21751   test -z "$as_dir" && as_dir=.
21752   for ac_exec_ext in '' $ac_executable_extensions; do
21753   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21754     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
21755     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21756     break 2
21757   fi
21758 done
21759 done
21760 IFS=$as_save_IFS
21761
21762   ;;
21763 esac
21764 fi
21765 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
21766 if test -n "$ac_pt_PKG_CONFIG"; then
21767   { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
21768 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
21769 else
21770   { echo "$as_me:$LINENO: result: no" >&5
21771 echo "${ECHO_T}no" >&6; }
21772 fi
21773
21774   if test "x$ac_pt_PKG_CONFIG" = x; then
21775     PKG_CONFIG=""
21776   else
21777     case $cross_compiling:$ac_tool_warned in
21778 yes:)
21779 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
21780 whose name does not start with the host triplet.  If you think this
21781 configuration is useful to you, please write to autoconf@gnu.org." >&5
21782 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
21783 whose name does not start with the host triplet.  If you think this
21784 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
21785 ac_tool_warned=yes ;;
21786 esac
21787     PKG_CONFIG=$ac_pt_PKG_CONFIG
21788   fi
21789 else
21790   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
21791 fi
21792
21793 fi
21794 if test -n "$PKG_CONFIG"; then
21795         _pkg_min_version=0.9.0
21796         { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
21797 echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
21798         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
21799                 { echo "$as_me:$LINENO: result: yes" >&5
21800 echo "${ECHO_T}yes" >&6; }
21801         else
21802                 { echo "$as_me:$LINENO: result: no" >&5
21803 echo "${ECHO_T}no" >&6; }
21804                 PKG_CONFIG=""
21805         fi
21806
21807 fi
21808
21809 pkg_failed=no
21810 { echo "$as_me:$LINENO: checking for RPCSECGSS" >&5
21811 echo $ECHO_N "checking for RPCSECGSS... $ECHO_C" >&6; }
21812
21813 if test -n "$PKG_CONFIG"; then
21814     if test -n "$RPCSECGSS_CFLAGS"; then
21815         pkg_cv_RPCSECGSS_CFLAGS="$RPCSECGSS_CFLAGS"
21816     else
21817         if test -n "$PKG_CONFIG" && \
21818     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"librpcsecgss >= 0.10\"") >&5
21819   ($PKG_CONFIG --exists --print-errors "librpcsecgss >= 0.10") 2>&5
21820   ac_status=$?
21821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21822   (exit $ac_status); }; then
21823   pkg_cv_RPCSECGSS_CFLAGS=`$PKG_CONFIG --cflags "librpcsecgss >= 0.10" 2>/dev/null`
21824 else
21825   pkg_failed=yes
21826 fi
21827     fi
21828 else
21829         pkg_failed=untried
21830 fi
21831 if test -n "$PKG_CONFIG"; then
21832     if test -n "$RPCSECGSS_LIBS"; then
21833         pkg_cv_RPCSECGSS_LIBS="$RPCSECGSS_LIBS"
21834     else
21835         if test -n "$PKG_CONFIG" && \
21836     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"librpcsecgss >= 0.10\"") >&5
21837   ($PKG_CONFIG --exists --print-errors "librpcsecgss >= 0.10") 2>&5
21838   ac_status=$?
21839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21840   (exit $ac_status); }; then
21841   pkg_cv_RPCSECGSS_LIBS=`$PKG_CONFIG --libs "librpcsecgss >= 0.10" 2>/dev/null`
21842 else
21843   pkg_failed=yes
21844 fi
21845     fi
21846 else
21847         pkg_failed=untried
21848 fi
21849
21850
21851
21852 if test $pkg_failed = yes; then
21853
21854 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
21855         _pkg_short_errors_supported=yes
21856 else
21857         _pkg_short_errors_supported=no
21858 fi
21859         if test $_pkg_short_errors_supported = yes; then
21860                 RPCSECGSS_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "librpcsecgss >= 0.10"`
21861         else
21862                 RPCSECGSS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "librpcsecgss >= 0.10"`
21863         fi
21864         # Put the nasty error message in config.log where it belongs
21865         echo "$RPCSECGSS_PKG_ERRORS" >&5
21866
21867         { echo "$as_me:$LINENO: result: no" >&5
21868 echo "${ECHO_T}no" >&6; }
21869                 { { 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
21870 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;}
21871    { (exit 1); exit 1; }; }
21872
21873
21874 elif test $pkg_failed = untried; then
21875         { { 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
21876 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;}
21877    { (exit 1); exit 1; }; }
21878
21879
21880 else
21881         RPCSECGSS_CFLAGS=$pkg_cv_RPCSECGSS_CFLAGS
21882         RPCSECGSS_LIBS=$pkg_cv_RPCSECGSS_LIBS
21883         { echo "$as_me:$LINENO: result: yes" >&5
21884 echo "${ECHO_T}yes" >&6; }
21885         :
21886 fi
21887
21888 pkg_failed=no
21889 { echo "$as_me:$LINENO: checking for GSSAPI" >&5
21890 echo $ECHO_N "checking for GSSAPI... $ECHO_C" >&6; }
21891
21892 if test -n "$PKG_CONFIG"; then
21893     if test -n "$GSSAPI_CFLAGS"; then
21894         pkg_cv_GSSAPI_CFLAGS="$GSSAPI_CFLAGS"
21895     else
21896         if test -n "$PKG_CONFIG" && \
21897     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libgssapi >= 0.9\"") >&5
21898   ($PKG_CONFIG --exists --print-errors "libgssapi >= 0.9") 2>&5
21899   ac_status=$?
21900   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21901   (exit $ac_status); }; then
21902   pkg_cv_GSSAPI_CFLAGS=`$PKG_CONFIG --cflags "libgssapi >= 0.9" 2>/dev/null`
21903 else
21904   pkg_failed=yes
21905 fi
21906     fi
21907 else
21908         pkg_failed=untried
21909 fi
21910 if test -n "$PKG_CONFIG"; then
21911     if test -n "$GSSAPI_LIBS"; then
21912         pkg_cv_GSSAPI_LIBS="$GSSAPI_LIBS"
21913     else
21914         if test -n "$PKG_CONFIG" && \
21915     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libgssapi >= 0.9\"") >&5
21916   ($PKG_CONFIG --exists --print-errors "libgssapi >= 0.9") 2>&5
21917   ac_status=$?
21918   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21919   (exit $ac_status); }; then
21920   pkg_cv_GSSAPI_LIBS=`$PKG_CONFIG --libs "libgssapi >= 0.9" 2>/dev/null`
21921 else
21922   pkg_failed=yes
21923 fi
21924     fi
21925 else
21926         pkg_failed=untried
21927 fi
21928
21929
21930
21931 if test $pkg_failed = yes; then
21932
21933 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
21934         _pkg_short_errors_supported=yes
21935 else
21936         _pkg_short_errors_supported=no
21937 fi
21938         if test $_pkg_short_errors_supported = yes; then
21939                 GSSAPI_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libgssapi >= 0.9"`
21940         else
21941                 GSSAPI_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libgssapi >= 0.9"`
21942         fi
21943         # Put the nasty error message in config.log where it belongs
21944         echo "$GSSAPI_PKG_ERRORS" >&5
21945
21946         { { echo "$as_me:$LINENO: error: Package requirements (libgssapi >= 0.9) were not met:
21947
21948 $GSSAPI_PKG_ERRORS
21949
21950 Consider adjusting the PKG_CONFIG_PATH environment variable if you
21951 installed software in a non-standard prefix.
21952
21953 Alternatively, you may set the environment variables GSSAPI_CFLAGS
21954 and GSSAPI_LIBS to avoid the need to call pkg-config.
21955 See the pkg-config man page for more details.
21956 " >&5
21957 echo "$as_me: error: Package requirements (libgssapi >= 0.9) were not met:
21958
21959 $GSSAPI_PKG_ERRORS
21960
21961 Consider adjusting the PKG_CONFIG_PATH environment variable if you
21962 installed software in a non-standard prefix.
21963
21964 Alternatively, you may set the environment variables GSSAPI_CFLAGS
21965 and GSSAPI_LIBS to avoid the need to call pkg-config.
21966 See the pkg-config man page for more details.
21967 " >&2;}
21968    { (exit 1); exit 1; }; }
21969 elif test $pkg_failed = untried; then
21970         { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
21971 is in your PATH or set the PKG_CONFIG environment variable to the full
21972 path to pkg-config.
21973
21974 Alternatively, you may set the environment variables GSSAPI_CFLAGS
21975 and GSSAPI_LIBS to avoid the need to call pkg-config.
21976 See the pkg-config man page for more details.
21977
21978 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
21979 See \`config.log' for more details." >&5
21980 echo "$as_me: error: The pkg-config script could not be found or is too old.  Make sure it
21981 is in your PATH or set the PKG_CONFIG environment variable to the full
21982 path to pkg-config.
21983
21984 Alternatively, you may set the environment variables GSSAPI_CFLAGS
21985 and GSSAPI_LIBS to avoid the need to call pkg-config.
21986 See the pkg-config man page for more details.
21987
21988 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
21989 See \`config.log' for more details." >&2;}
21990    { (exit 1); exit 1; }; }
21991 else
21992         GSSAPI_CFLAGS=$pkg_cv_GSSAPI_CFLAGS
21993         GSSAPI_LIBS=$pkg_cv_GSSAPI_LIBS
21994         { echo "$as_me:$LINENO: result: yes" >&5
21995 echo "${ECHO_T}yes" >&6; }
21996         :
21997 fi
21998     fi
21999
22000 fi
22001 if test "$knfsd_cv_glibc2" = no; then
22002     { echo "$as_me:$LINENO: checking for daemon in -lbsd" >&5
22003 echo $ECHO_N "checking for daemon in -lbsd... $ECHO_C" >&6; }
22004 if test "${ac_cv_lib_bsd_daemon+set}" = set; then
22005   echo $ECHO_N "(cached) $ECHO_C" >&6
22006 else
22007   ac_check_lib_save_LIBS=$LIBS
22008 LIBS="-lbsd  $LIBS"
22009 cat >conftest.$ac_ext <<_ACEOF
22010 /* confdefs.h.  */
22011 _ACEOF
22012 cat confdefs.h >>conftest.$ac_ext
22013 cat >>conftest.$ac_ext <<_ACEOF
22014 /* end confdefs.h.  */
22015
22016 /* Override any GCC internal prototype to avoid an error.
22017    Use char because int might match the return type of a GCC
22018    builtin and then its argument prototype would still apply.  */
22019 #ifdef __cplusplus
22020 extern "C"
22021 #endif
22022 char daemon ();
22023 int
22024 main ()
22025 {
22026 return daemon ();
22027   ;
22028   return 0;
22029 }
22030 _ACEOF
22031 rm -f conftest.$ac_objext conftest$ac_exeext
22032 if { (ac_try="$ac_link"
22033 case "(($ac_try" in
22034   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22035   *) ac_try_echo=$ac_try;;
22036 esac
22037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22038   (eval "$ac_link") 2>conftest.er1
22039   ac_status=$?
22040   grep -v '^ *+' conftest.er1 >conftest.err
22041   rm -f conftest.er1
22042   cat conftest.err >&5
22043   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22044   (exit $ac_status); } && {
22045          test -z "$ac_c_werror_flag" ||
22046          test ! -s conftest.err
22047        } && test -s conftest$ac_exeext &&
22048        $as_test_x conftest$ac_exeext; then
22049   ac_cv_lib_bsd_daemon=yes
22050 else
22051   echo "$as_me: failed program was:" >&5
22052 sed 's/^/| /' conftest.$ac_ext >&5
22053
22054         ac_cv_lib_bsd_daemon=no
22055 fi
22056
22057 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22058       conftest$ac_exeext conftest.$ac_ext
22059 LIBS=$ac_check_lib_save_LIBS
22060 fi
22061 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_daemon" >&5
22062 echo "${ECHO_T}$ac_cv_lib_bsd_daemon" >&6; }
22063 if test $ac_cv_lib_bsd_daemon = yes; then
22064   LIBBSD="-lbsd"
22065 fi
22066
22067 fi
22068
22069
22070
22071
22072 if test "$enable_gss" = yes; then
22073
22074 for ac_header in nfsidmap.h
22075 do
22076 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22077 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22078   { echo "$as_me:$LINENO: checking for $ac_header" >&5
22079 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22080 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22081   echo $ECHO_N "(cached) $ECHO_C" >&6
22082 fi
22083 ac_res=`eval echo '${'$as_ac_Header'}'`
22084                { echo "$as_me:$LINENO: result: $ac_res" >&5
22085 echo "${ECHO_T}$ac_res" >&6; }
22086 else
22087   # Is the header compilable?
22088 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
22089 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22090 cat >conftest.$ac_ext <<_ACEOF
22091 /* confdefs.h.  */
22092 _ACEOF
22093 cat confdefs.h >>conftest.$ac_ext
22094 cat >>conftest.$ac_ext <<_ACEOF
22095 /* end confdefs.h.  */
22096 $ac_includes_default
22097 #include <$ac_header>
22098 _ACEOF
22099 rm -f conftest.$ac_objext
22100 if { (ac_try="$ac_compile"
22101 case "(($ac_try" in
22102   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22103   *) ac_try_echo=$ac_try;;
22104 esac
22105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22106   (eval "$ac_compile") 2>conftest.er1
22107   ac_status=$?
22108   grep -v '^ *+' conftest.er1 >conftest.err
22109   rm -f conftest.er1
22110   cat conftest.err >&5
22111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22112   (exit $ac_status); } && {
22113          test -z "$ac_c_werror_flag" ||
22114          test ! -s conftest.err
22115        } && test -s conftest.$ac_objext; then
22116   ac_header_compiler=yes
22117 else
22118   echo "$as_me: failed program was:" >&5
22119 sed 's/^/| /' conftest.$ac_ext >&5
22120
22121         ac_header_compiler=no
22122 fi
22123
22124 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22125 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22126 echo "${ECHO_T}$ac_header_compiler" >&6; }
22127
22128 # Is the header present?
22129 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
22130 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22131 cat >conftest.$ac_ext <<_ACEOF
22132 /* confdefs.h.  */
22133 _ACEOF
22134 cat confdefs.h >>conftest.$ac_ext
22135 cat >>conftest.$ac_ext <<_ACEOF
22136 /* end confdefs.h.  */
22137 #include <$ac_header>
22138 _ACEOF
22139 if { (ac_try="$ac_cpp conftest.$ac_ext"
22140 case "(($ac_try" in
22141   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22142   *) ac_try_echo=$ac_try;;
22143 esac
22144 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22145   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22146   ac_status=$?
22147   grep -v '^ *+' conftest.er1 >conftest.err
22148   rm -f conftest.er1
22149   cat conftest.err >&5
22150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22151   (exit $ac_status); } >/dev/null && {
22152          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22153          test ! -s conftest.err
22154        }; then
22155   ac_header_preproc=yes
22156 else
22157   echo "$as_me: failed program was:" >&5
22158 sed 's/^/| /' conftest.$ac_ext >&5
22159
22160   ac_header_preproc=no
22161 fi
22162
22163 rm -f conftest.err conftest.$ac_ext
22164 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22165 echo "${ECHO_T}$ac_header_preproc" >&6; }
22166
22167 # So?  What about this header?
22168 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22169   yes:no: )
22170     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22171 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22172     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22173 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22174     ac_header_preproc=yes
22175     ;;
22176   no:yes:* )
22177     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22178 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22179     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
22180 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
22181     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22182 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22183     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
22184 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
22185     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22186 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22187     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22188 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22189     ( cat <<\_ASBOX
22190 ## ------------------------------- ##
22191 ## Report this to nfs@lists.sf.net ##
22192 ## ------------------------------- ##
22193 _ASBOX
22194      ) | sed "s/^/$as_me: WARNING:     /" >&2
22195     ;;
22196 esac
22197 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22198 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22199 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22200   echo $ECHO_N "(cached) $ECHO_C" >&6
22201 else
22202   eval "$as_ac_Header=\$ac_header_preproc"
22203 fi
22204 ac_res=`eval echo '${'$as_ac_Header'}'`
22205                { echo "$as_me:$LINENO: result: $ac_res" >&5
22206 echo "${ECHO_T}$ac_res" >&6; }
22207
22208 fi
22209 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22210   cat >>confdefs.h <<_ACEOF
22211 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22212 _ACEOF
22213
22214 else
22215   { { echo "$as_me:$LINENO: error: libnfsidmap needed for gss support" >&5
22216 echo "$as_me: error: libnfsidmap needed for gss support" >&2;}
22217    { (exit 1); exit 1; }; }
22218 fi
22219
22220 done
22221
22222
22223 for ac_header in spkm3.h
22224 do
22225 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22226 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22227   { echo "$as_me:$LINENO: checking for $ac_header" >&5
22228 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22229 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22230   echo $ECHO_N "(cached) $ECHO_C" >&6
22231 fi
22232 ac_res=`eval echo '${'$as_ac_Header'}'`
22233                { echo "$as_me:$LINENO: result: $ac_res" >&5
22234 echo "${ECHO_T}$ac_res" >&6; }
22235 else
22236   # Is the header compilable?
22237 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
22238 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22239 cat >conftest.$ac_ext <<_ACEOF
22240 /* confdefs.h.  */
22241 _ACEOF
22242 cat confdefs.h >>conftest.$ac_ext
22243 cat >>conftest.$ac_ext <<_ACEOF
22244 /* end confdefs.h.  */
22245 $ac_includes_default
22246 #include <$ac_header>
22247 _ACEOF
22248 rm -f conftest.$ac_objext
22249 if { (ac_try="$ac_compile"
22250 case "(($ac_try" in
22251   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22252   *) ac_try_echo=$ac_try;;
22253 esac
22254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22255   (eval "$ac_compile") 2>conftest.er1
22256   ac_status=$?
22257   grep -v '^ *+' conftest.er1 >conftest.err
22258   rm -f conftest.er1
22259   cat conftest.err >&5
22260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22261   (exit $ac_status); } && {
22262          test -z "$ac_c_werror_flag" ||
22263          test ! -s conftest.err
22264        } && test -s conftest.$ac_objext; then
22265   ac_header_compiler=yes
22266 else
22267   echo "$as_me: failed program was:" >&5
22268 sed 's/^/| /' conftest.$ac_ext >&5
22269
22270         ac_header_compiler=no
22271 fi
22272
22273 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22274 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22275 echo "${ECHO_T}$ac_header_compiler" >&6; }
22276
22277 # Is the header present?
22278 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
22279 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22280 cat >conftest.$ac_ext <<_ACEOF
22281 /* confdefs.h.  */
22282 _ACEOF
22283 cat confdefs.h >>conftest.$ac_ext
22284 cat >>conftest.$ac_ext <<_ACEOF
22285 /* end confdefs.h.  */
22286 #include <$ac_header>
22287 _ACEOF
22288 if { (ac_try="$ac_cpp conftest.$ac_ext"
22289 case "(($ac_try" in
22290   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22291   *) ac_try_echo=$ac_try;;
22292 esac
22293 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22294   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22295   ac_status=$?
22296   grep -v '^ *+' conftest.er1 >conftest.err
22297   rm -f conftest.er1
22298   cat conftest.err >&5
22299   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22300   (exit $ac_status); } >/dev/null && {
22301          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22302          test ! -s conftest.err
22303        }; then
22304   ac_header_preproc=yes
22305 else
22306   echo "$as_me: failed program was:" >&5
22307 sed 's/^/| /' conftest.$ac_ext >&5
22308
22309   ac_header_preproc=no
22310 fi
22311
22312 rm -f conftest.err conftest.$ac_ext
22313 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22314 echo "${ECHO_T}$ac_header_preproc" >&6; }
22315
22316 # So?  What about this header?
22317 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22318   yes:no: )
22319     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22320 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22321     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22322 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22323     ac_header_preproc=yes
22324     ;;
22325   no:yes:* )
22326     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22327 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22328     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
22329 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
22330     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22331 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22332     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
22333 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
22334     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22335 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22336     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22337 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22338     ( cat <<\_ASBOX
22339 ## ------------------------------- ##
22340 ## Report this to nfs@lists.sf.net ##
22341 ## ------------------------------- ##
22342 _ASBOX
22343      ) | sed "s/^/$as_me: WARNING:     /" >&2
22344     ;;
22345 esac
22346 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22347 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22348 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22349   echo $ECHO_N "(cached) $ECHO_C" >&6
22350 else
22351   eval "$as_ac_Header=\$ac_header_preproc"
22352 fi
22353 ac_res=`eval echo '${'$as_ac_Header'}'`
22354                { echo "$as_me:$LINENO: result: $ac_res" >&5
22355 echo "${ECHO_T}$ac_res" >&6; }
22356
22357 fi
22358 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22359   cat >>confdefs.h <<_ACEOF
22360 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22361 _ACEOF
22362
22363 else
22364   { echo "$as_me:$LINENO: WARNING: could not locate SPKM3 header; will not have SPKM3 support" >&5
22365 echo "$as_me: WARNING: could not locate SPKM3 header; will not have SPKM3 support" >&2;}
22366 fi
22367
22368 done
22369
22370     { echo "$as_me:$LINENO: checking for nfs4_set_debug in -lnfsidmap" >&5
22371 echo $ECHO_N "checking for nfs4_set_debug in -lnfsidmap... $ECHO_C" >&6; }
22372 if test "${ac_cv_lib_nfsidmap_nfs4_set_debug+set}" = set; then
22373   echo $ECHO_N "(cached) $ECHO_C" >&6
22374 else
22375   ac_check_lib_save_LIBS=$LIBS
22376 LIBS="-lnfsidmap  $LIBS"
22377 cat >conftest.$ac_ext <<_ACEOF
22378 /* confdefs.h.  */
22379 _ACEOF
22380 cat confdefs.h >>conftest.$ac_ext
22381 cat >>conftest.$ac_ext <<_ACEOF
22382 /* end confdefs.h.  */
22383
22384 /* Override any GCC internal prototype to avoid an error.
22385    Use char because int might match the return type of a GCC
22386    builtin and then its argument prototype would still apply.  */
22387 #ifdef __cplusplus
22388 extern "C"
22389 #endif
22390 char nfs4_set_debug ();
22391 int
22392 main ()
22393 {
22394 return nfs4_set_debug ();
22395   ;
22396   return 0;
22397 }
22398 _ACEOF
22399 rm -f conftest.$ac_objext conftest$ac_exeext
22400 if { (ac_try="$ac_link"
22401 case "(($ac_try" in
22402   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22403   *) ac_try_echo=$ac_try;;
22404 esac
22405 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22406   (eval "$ac_link") 2>conftest.er1
22407   ac_status=$?
22408   grep -v '^ *+' conftest.er1 >conftest.err
22409   rm -f conftest.er1
22410   cat conftest.err >&5
22411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22412   (exit $ac_status); } && {
22413          test -z "$ac_c_werror_flag" ||
22414          test ! -s conftest.err
22415        } && test -s conftest$ac_exeext &&
22416        $as_test_x conftest$ac_exeext; then
22417   ac_cv_lib_nfsidmap_nfs4_set_debug=yes
22418 else
22419   echo "$as_me: failed program was:" >&5
22420 sed 's/^/| /' conftest.$ac_ext >&5
22421
22422         ac_cv_lib_nfsidmap_nfs4_set_debug=no
22423 fi
22424
22425 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22426       conftest$ac_exeext conftest.$ac_ext
22427 LIBS=$ac_check_lib_save_LIBS
22428 fi
22429 { echo "$as_me:$LINENO: result: $ac_cv_lib_nfsidmap_nfs4_set_debug" >&5
22430 echo "${ECHO_T}$ac_cv_lib_nfsidmap_nfs4_set_debug" >&6; }
22431 if test $ac_cv_lib_nfsidmap_nfs4_set_debug = yes; then
22432
22433 cat >>confdefs.h <<\_ACEOF
22434 #define HAVE_NFS4_SET_DEBUG 1
22435 _ACEOF
22436
22437 fi
22438
22439
22440
22441   { echo "$as_me:$LINENO: checking for Kerberos v5" >&5
22442 echo $ECHO_N "checking for Kerberos v5... $ECHO_C" >&6; }
22443
22444 # Check whether --with-krb5 was given.
22445 if test "${with_krb5+set}" = set; then
22446   withval=$with_krb5;  case "$withval" in
22447     yes|no)
22448        krb5_with=""
22449        ;;
22450     *)
22451        krb5_with="$withval"
22452        ;;
22453     esac
22454
22455 fi
22456
22457
22458   for dir in $krb5_with /usr /usr/kerberos /usr/local /usr/local/krb5 \
22459              /usr/krb5 /usr/heimdal /usr/local/heimdal /usr/athena ; do
22460             K5CONFIG=""
22461     if test -f $dir/bin/krb5-config; then
22462       K5CONFIG=$dir/bin/krb5-config
22463     elif test -f "/usr/kerberos/bin/krb5-config"; then
22464       K5CONFIG="/usr/kerberos/bin/krb5-config"
22465     elif test -f "/usr/lib/mit/bin/krb5-config"; then
22466       K5CONFIG="/usr/lib/mit/bin/krb5-config"
22467     fi
22468     if test "$K5CONFIG" != ""; then
22469       KRBCFLAGS=`$K5CONFIG --cflags`
22470       KRBLIBS=`$K5CONFIG --libs gssapi`
22471       K5VERS=`$K5CONFIG --version | head -n 1 | awk '{split($(4),v,"."); if (v["3"] == "") v["3"] = "0"; print v["1"]v["2"]v["3"] }'`
22472
22473 cat >>confdefs.h <<_ACEOF
22474 #define KRB5_VERSION $K5VERS
22475 _ACEOF
22476
22477       if test -f $dir/include/gssapi/gssapi_krb5.h -a \
22478                 \( -f $dir/lib/libgssapi_krb5.a -o \
22479                    -f $dir/lib/libgssapi_krb5.so \) ; then
22480
22481 cat >>confdefs.h <<\_ACEOF
22482 #define HAVE_KRB5 1
22483 _ACEOF
22484
22485          KRBDIR="$dir"
22486                      if test $K5VERS -le 131; then
22487
22488 cat >>confdefs.h <<\_ACEOF
22489 #define USE_GSS_KRB5_CCACHE_NAME 1
22490 _ACEOF
22491
22492          fi
22493          gssapi_lib=gssapi_krb5
22494          break
22495                   elif test \( -f $dir/include/heim_err.h -o\
22496                  -f $dir/include/heimdal/heim_err.h \) -a \
22497                 -f $dir/lib/libroken.a; then
22498
22499 cat >>confdefs.h <<\_ACEOF
22500 #define HAVE_HEIMDAL 1
22501 _ACEOF
22502
22503          KRBDIR="$dir"
22504          gssapi_lib=gssapi
22505         break
22506       fi
22507     fi
22508   done
22509     if test "x$KRBDIR" = "x"; then
22510     if test "x$krb5_with" = "x"; then
22511       { { echo "$as_me:$LINENO: error: Kerberos v5 with GSS support not found: consider --disable-gss or --with-krb5=" >&5
22512 echo "$as_me: error: Kerberos v5 with GSS support not found: consider --disable-gss or --with-krb5=" >&2;}
22513    { (exit 1); exit 1; }; }
22514     else
22515       { { echo "$as_me:$LINENO: error: Kerberos v5 with GSS support not found at $krb5_with" >&5
22516 echo "$as_me: error: Kerberos v5 with GSS support not found at $krb5_with" >&2;}
22517    { (exit 1); exit 1; }; }
22518     fi
22519   fi
22520   { echo "$as_me:$LINENO: result: $KRBDIR" >&5
22521 echo "${ECHO_T}$KRBDIR" >&6; }
22522
22523     echo "The current KRBDIR is $KRBDIR"
22524   if test "$KRBDIR/lib" = "/lib" -o "$KRBDIR/lib" = "/usr/lib" \
22525        -o "$KRBDIR/lib" = "//lib" -o "$KRBDIR/lib" = "/usr//lib" ; then
22526     KRBLDFLAGS="";
22527   elif /sbin/ldconfig -p | grep > /dev/null "=> $KRBDIR/lib/"; then
22528     KRBLDFLAGS="";
22529   else
22530     KRBLDFLAGS="-Wl,-rpath=$KRBDIR/lib"
22531   fi
22532
22533     as_ac_Lib=`echo "ac_cv_lib_$gssapi_lib''_gss_krb5_export_lucid_sec_context" | $as_tr_sh`
22534 { echo "$as_me:$LINENO: checking for gss_krb5_export_lucid_sec_context in -l$gssapi_lib" >&5
22535 echo $ECHO_N "checking for gss_krb5_export_lucid_sec_context in -l$gssapi_lib... $ECHO_C" >&6; }
22536 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
22537   echo $ECHO_N "(cached) $ECHO_C" >&6
22538 else
22539   ac_check_lib_save_LIBS=$LIBS
22540 LIBS="-l$gssapi_lib $KRBLIBS $LIBS"
22541 cat >conftest.$ac_ext <<_ACEOF
22542 /* confdefs.h.  */
22543 _ACEOF
22544 cat confdefs.h >>conftest.$ac_ext
22545 cat >>conftest.$ac_ext <<_ACEOF
22546 /* end confdefs.h.  */
22547
22548 /* Override any GCC internal prototype to avoid an error.
22549    Use char because int might match the return type of a GCC
22550    builtin and then its argument prototype would still apply.  */
22551 #ifdef __cplusplus
22552 extern "C"
22553 #endif
22554 char gss_krb5_export_lucid_sec_context ();
22555 int
22556 main ()
22557 {
22558 return gss_krb5_export_lucid_sec_context ();
22559   ;
22560   return 0;
22561 }
22562 _ACEOF
22563 rm -f conftest.$ac_objext conftest$ac_exeext
22564 if { (ac_try="$ac_link"
22565 case "(($ac_try" in
22566   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22567   *) ac_try_echo=$ac_try;;
22568 esac
22569 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22570   (eval "$ac_link") 2>conftest.er1
22571   ac_status=$?
22572   grep -v '^ *+' conftest.er1 >conftest.err
22573   rm -f conftest.er1
22574   cat conftest.err >&5
22575   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22576   (exit $ac_status); } && {
22577          test -z "$ac_c_werror_flag" ||
22578          test ! -s conftest.err
22579        } && test -s conftest$ac_exeext &&
22580        $as_test_x conftest$ac_exeext; then
22581   eval "$as_ac_Lib=yes"
22582 else
22583   echo "$as_me: failed program was:" >&5
22584 sed 's/^/| /' conftest.$ac_ext >&5
22585
22586         eval "$as_ac_Lib=no"
22587 fi
22588
22589 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22590       conftest$ac_exeext conftest.$ac_ext
22591 LIBS=$ac_check_lib_save_LIBS
22592 fi
22593 ac_res=`eval echo '${'$as_ac_Lib'}'`
22594                { echo "$as_me:$LINENO: result: $ac_res" >&5
22595 echo "${ECHO_T}$ac_res" >&6; }
22596 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
22597
22598 cat >>confdefs.h <<\_ACEOF
22599 #define HAVE_LUCID_CONTEXT_SUPPORT 1
22600 _ACEOF
22601
22602 fi
22603
22604   as_ac_Lib=`echo "ac_cv_lib_$gssapi_lib''_gss_krb5_set_allowable_enctypes" | $as_tr_sh`
22605 { echo "$as_me:$LINENO: checking for gss_krb5_set_allowable_enctypes in -l$gssapi_lib" >&5
22606 echo $ECHO_N "checking for gss_krb5_set_allowable_enctypes in -l$gssapi_lib... $ECHO_C" >&6; }
22607 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
22608   echo $ECHO_N "(cached) $ECHO_C" >&6
22609 else
22610   ac_check_lib_save_LIBS=$LIBS
22611 LIBS="-l$gssapi_lib $KRBLIBS $LIBS"
22612 cat >conftest.$ac_ext <<_ACEOF
22613 /* confdefs.h.  */
22614 _ACEOF
22615 cat confdefs.h >>conftest.$ac_ext
22616 cat >>conftest.$ac_ext <<_ACEOF
22617 /* end confdefs.h.  */
22618
22619 /* Override any GCC internal prototype to avoid an error.
22620    Use char because int might match the return type of a GCC
22621    builtin and then its argument prototype would still apply.  */
22622 #ifdef __cplusplus
22623 extern "C"
22624 #endif
22625 char gss_krb5_set_allowable_enctypes ();
22626 int
22627 main ()
22628 {
22629 return gss_krb5_set_allowable_enctypes ();
22630   ;
22631   return 0;
22632 }
22633 _ACEOF
22634 rm -f conftest.$ac_objext conftest$ac_exeext
22635 if { (ac_try="$ac_link"
22636 case "(($ac_try" in
22637   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22638   *) ac_try_echo=$ac_try;;
22639 esac
22640 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22641   (eval "$ac_link") 2>conftest.er1
22642   ac_status=$?
22643   grep -v '^ *+' conftest.er1 >conftest.err
22644   rm -f conftest.er1
22645   cat conftest.err >&5
22646   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22647   (exit $ac_status); } && {
22648          test -z "$ac_c_werror_flag" ||
22649          test ! -s conftest.err
22650        } && test -s conftest$ac_exeext &&
22651        $as_test_x conftest$ac_exeext; then
22652   eval "$as_ac_Lib=yes"
22653 else
22654   echo "$as_me: failed program was:" >&5
22655 sed 's/^/| /' conftest.$ac_ext >&5
22656
22657         eval "$as_ac_Lib=no"
22658 fi
22659
22660 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22661       conftest$ac_exeext conftest.$ac_ext
22662 LIBS=$ac_check_lib_save_LIBS
22663 fi
22664 ac_res=`eval echo '${'$as_ac_Lib'}'`
22665                { echo "$as_me:$LINENO: result: $ac_res" >&5
22666 echo "${ECHO_T}$ac_res" >&6; }
22667 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
22668
22669 cat >>confdefs.h <<\_ACEOF
22670 #define HAVE_SET_ALLOWABLE_ENCTYPES 1
22671 _ACEOF
22672
22673 fi
22674
22675   as_ac_Lib=`echo "ac_cv_lib_$gssapi_lib''_gss_krb5_ccache_name" | $as_tr_sh`
22676 { echo "$as_me:$LINENO: checking for gss_krb5_ccache_name in -l$gssapi_lib" >&5
22677 echo $ECHO_N "checking for gss_krb5_ccache_name in -l$gssapi_lib... $ECHO_C" >&6; }
22678 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
22679   echo $ECHO_N "(cached) $ECHO_C" >&6
22680 else
22681   ac_check_lib_save_LIBS=$LIBS
22682 LIBS="-l$gssapi_lib $KRBLIBS $LIBS"
22683 cat >conftest.$ac_ext <<_ACEOF
22684 /* confdefs.h.  */
22685 _ACEOF
22686 cat confdefs.h >>conftest.$ac_ext
22687 cat >>conftest.$ac_ext <<_ACEOF
22688 /* end confdefs.h.  */
22689
22690 /* Override any GCC internal prototype to avoid an error.
22691    Use char because int might match the return type of a GCC
22692    builtin and then its argument prototype would still apply.  */
22693 #ifdef __cplusplus
22694 extern "C"
22695 #endif
22696 char gss_krb5_ccache_name ();
22697 int
22698 main ()
22699 {
22700 return gss_krb5_ccache_name ();
22701   ;
22702   return 0;
22703 }
22704 _ACEOF
22705 rm -f conftest.$ac_objext conftest$ac_exeext
22706 if { (ac_try="$ac_link"
22707 case "(($ac_try" in
22708   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22709   *) ac_try_echo=$ac_try;;
22710 esac
22711 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22712   (eval "$ac_link") 2>conftest.er1
22713   ac_status=$?
22714   grep -v '^ *+' conftest.er1 >conftest.err
22715   rm -f conftest.er1
22716   cat conftest.err >&5
22717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22718   (exit $ac_status); } && {
22719          test -z "$ac_c_werror_flag" ||
22720          test ! -s conftest.err
22721        } && test -s conftest$ac_exeext &&
22722        $as_test_x conftest$ac_exeext; then
22723   eval "$as_ac_Lib=yes"
22724 else
22725   echo "$as_me: failed program was:" >&5
22726 sed 's/^/| /' conftest.$ac_ext >&5
22727
22728         eval "$as_ac_Lib=no"
22729 fi
22730
22731 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22732       conftest$ac_exeext conftest.$ac_ext
22733 LIBS=$ac_check_lib_save_LIBS
22734 fi
22735 ac_res=`eval echo '${'$as_ac_Lib'}'`
22736                { echo "$as_me:$LINENO: result: $ac_res" >&5
22737 echo "${ECHO_T}$ac_res" >&6; }
22738 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
22739
22740 cat >>confdefs.h <<\_ACEOF
22741 #define HAVE_GSS_KRB5_CCACHE_NAME 1
22742 _ACEOF
22743
22744 fi
22745
22746
22747     if test "x$krb5_with" != "x" -a "$krb5_with" != "$KRBDIR"; then
22748     { echo "$as_me:$LINENO: WARNING: Using $KRBDIR instead of requested value of $krb5_with for Kerberos!" >&5
22749 echo "$as_me: WARNING: Using $KRBDIR instead of requested value of $krb5_with for Kerberos!" >&2;}
22750   fi
22751
22752
22753
22754
22755
22756
22757
22758
22759
22760       { echo "$as_me:$LINENO: checking for authgss_create_default in -lrpcsecgss" >&5
22761 echo $ECHO_N "checking for authgss_create_default in -lrpcsecgss... $ECHO_C" >&6; }
22762 if test "${ac_cv_lib_rpcsecgss_authgss_create_default+set}" = set; then
22763   echo $ECHO_N "(cached) $ECHO_C" >&6
22764 else
22765   ac_check_lib_save_LIBS=$LIBS
22766 LIBS="-lrpcsecgss -lgssapi -ldl $LIBS"
22767 cat >conftest.$ac_ext <<_ACEOF
22768 /* confdefs.h.  */
22769 _ACEOF
22770 cat confdefs.h >>conftest.$ac_ext
22771 cat >>conftest.$ac_ext <<_ACEOF
22772 /* end confdefs.h.  */
22773
22774 /* Override any GCC internal prototype to avoid an error.
22775    Use char because int might match the return type of a GCC
22776    builtin and then its argument prototype would still apply.  */
22777 #ifdef __cplusplus
22778 extern "C"
22779 #endif
22780 char authgss_create_default ();
22781 int
22782 main ()
22783 {
22784 return authgss_create_default ();
22785   ;
22786   return 0;
22787 }
22788 _ACEOF
22789 rm -f conftest.$ac_objext conftest$ac_exeext
22790 if { (ac_try="$ac_link"
22791 case "(($ac_try" in
22792   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22793   *) ac_try_echo=$ac_try;;
22794 esac
22795 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22796   (eval "$ac_link") 2>conftest.er1
22797   ac_status=$?
22798   grep -v '^ *+' conftest.er1 >conftest.err
22799   rm -f conftest.er1
22800   cat conftest.err >&5
22801   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22802   (exit $ac_status); } && {
22803          test -z "$ac_c_werror_flag" ||
22804          test ! -s conftest.err
22805        } && test -s conftest$ac_exeext &&
22806        $as_test_x conftest$ac_exeext; then
22807   ac_cv_lib_rpcsecgss_authgss_create_default=yes
22808 else
22809   echo "$as_me: failed program was:" >&5
22810 sed 's/^/| /' conftest.$ac_ext >&5
22811
22812         ac_cv_lib_rpcsecgss_authgss_create_default=no
22813 fi
22814
22815 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22816       conftest$ac_exeext conftest.$ac_ext
22817 LIBS=$ac_check_lib_save_LIBS
22818 fi
22819 { echo "$as_me:$LINENO: result: $ac_cv_lib_rpcsecgss_authgss_create_default" >&5
22820 echo "${ECHO_T}$ac_cv_lib_rpcsecgss_authgss_create_default" >&6; }
22821 if test $ac_cv_lib_rpcsecgss_authgss_create_default = yes; then
22822   librpcsecgss=1
22823 else
22824   { { echo "$as_me:$LINENO: error: librpcsecgss needed for nfsv4 support" >&5
22825 echo "$as_me: error: librpcsecgss needed for nfsv4 support" >&2;}
22826    { (exit 1); exit 1; }; }
22827 fi
22828
22829   { echo "$as_me:$LINENO: checking for authgss_set_debug_level in -lrpcsecgss" >&5
22830 echo $ECHO_N "checking for authgss_set_debug_level in -lrpcsecgss... $ECHO_C" >&6; }
22831 if test "${ac_cv_lib_rpcsecgss_authgss_set_debug_level+set}" = set; then
22832   echo $ECHO_N "(cached) $ECHO_C" >&6
22833 else
22834   ac_check_lib_save_LIBS=$LIBS
22835 LIBS="-lrpcsecgss -lgssapi -ldl $LIBS"
22836 cat >conftest.$ac_ext <<_ACEOF
22837 /* confdefs.h.  */
22838 _ACEOF
22839 cat confdefs.h >>conftest.$ac_ext
22840 cat >>conftest.$ac_ext <<_ACEOF
22841 /* end confdefs.h.  */
22842
22843 /* Override any GCC internal prototype to avoid an error.
22844    Use char because int might match the return type of a GCC
22845    builtin and then its argument prototype would still apply.  */
22846 #ifdef __cplusplus
22847 extern "C"
22848 #endif
22849 char authgss_set_debug_level ();
22850 int
22851 main ()
22852 {
22853 return authgss_set_debug_level ();
22854   ;
22855   return 0;
22856 }
22857 _ACEOF
22858 rm -f conftest.$ac_objext conftest$ac_exeext
22859 if { (ac_try="$ac_link"
22860 case "(($ac_try" in
22861   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22862   *) ac_try_echo=$ac_try;;
22863 esac
22864 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22865   (eval "$ac_link") 2>conftest.er1
22866   ac_status=$?
22867   grep -v '^ *+' conftest.er1 >conftest.err
22868   rm -f conftest.er1
22869   cat conftest.err >&5
22870   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22871   (exit $ac_status); } && {
22872          test -z "$ac_c_werror_flag" ||
22873          test ! -s conftest.err
22874        } && test -s conftest$ac_exeext &&
22875        $as_test_x conftest$ac_exeext; then
22876   ac_cv_lib_rpcsecgss_authgss_set_debug_level=yes
22877 else
22878   echo "$as_me: failed program was:" >&5
22879 sed 's/^/| /' conftest.$ac_ext >&5
22880
22881         ac_cv_lib_rpcsecgss_authgss_set_debug_level=no
22882 fi
22883
22884 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22885       conftest$ac_exeext conftest.$ac_ext
22886 LIBS=$ac_check_lib_save_LIBS
22887 fi
22888 { echo "$as_me:$LINENO: result: $ac_cv_lib_rpcsecgss_authgss_set_debug_level" >&5
22889 echo "${ECHO_T}$ac_cv_lib_rpcsecgss_authgss_set_debug_level" >&6; }
22890 if test $ac_cv_lib_rpcsecgss_authgss_set_debug_level = yes; then
22891
22892 cat >>confdefs.h <<\_ACEOF
22893 #define HAVE_AUTHGSS_SET_DEBUG_LEVEL 1
22894 _ACEOF
22895
22896 fi
22897
22898
22899 fi
22900
22901
22902
22903
22904
22905
22906
22907
22908
22909
22910
22911
22912
22913
22914
22915
22916
22917
22918
22919
22920
22921
22922
22923
22924 for ac_header in arpa/inet.h fcntl.h libintl.h limits.h \
22925                  malloc.h memory.h netdb.h netinet/in.h paths.h \
22926                  stdlib.h string.h sys/file.h sys/ioctl.h sys/mount.h \
22927                  sys/param.h sys/socket.h sys/time.h sys/vfs.h \
22928                  syslog.h unistd.h com_err.h et/com_err.h \
22929                  ifaddrs.h
22930 do
22931 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22932 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22933   { echo "$as_me:$LINENO: checking for $ac_header" >&5
22934 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22935 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22936   echo $ECHO_N "(cached) $ECHO_C" >&6
22937 fi
22938 ac_res=`eval echo '${'$as_ac_Header'}'`
22939                { echo "$as_me:$LINENO: result: $ac_res" >&5
22940 echo "${ECHO_T}$ac_res" >&6; }
22941 else
22942   # Is the header compilable?
22943 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
22944 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22945 cat >conftest.$ac_ext <<_ACEOF
22946 /* confdefs.h.  */
22947 _ACEOF
22948 cat confdefs.h >>conftest.$ac_ext
22949 cat >>conftest.$ac_ext <<_ACEOF
22950 /* end confdefs.h.  */
22951 $ac_includes_default
22952 #include <$ac_header>
22953 _ACEOF
22954 rm -f conftest.$ac_objext
22955 if { (ac_try="$ac_compile"
22956 case "(($ac_try" in
22957   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22958   *) ac_try_echo=$ac_try;;
22959 esac
22960 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22961   (eval "$ac_compile") 2>conftest.er1
22962   ac_status=$?
22963   grep -v '^ *+' conftest.er1 >conftest.err
22964   rm -f conftest.er1
22965   cat conftest.err >&5
22966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22967   (exit $ac_status); } && {
22968          test -z "$ac_c_werror_flag" ||
22969          test ! -s conftest.err
22970        } && test -s conftest.$ac_objext; then
22971   ac_header_compiler=yes
22972 else
22973   echo "$as_me: failed program was:" >&5
22974 sed 's/^/| /' conftest.$ac_ext >&5
22975
22976         ac_header_compiler=no
22977 fi
22978
22979 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22980 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22981 echo "${ECHO_T}$ac_header_compiler" >&6; }
22982
22983 # Is the header present?
22984 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
22985 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22986 cat >conftest.$ac_ext <<_ACEOF
22987 /* confdefs.h.  */
22988 _ACEOF
22989 cat confdefs.h >>conftest.$ac_ext
22990 cat >>conftest.$ac_ext <<_ACEOF
22991 /* end confdefs.h.  */
22992 #include <$ac_header>
22993 _ACEOF
22994 if { (ac_try="$ac_cpp conftest.$ac_ext"
22995 case "(($ac_try" in
22996   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22997   *) ac_try_echo=$ac_try;;
22998 esac
22999 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23000   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23001   ac_status=$?
23002   grep -v '^ *+' conftest.er1 >conftest.err
23003   rm -f conftest.er1
23004   cat conftest.err >&5
23005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23006   (exit $ac_status); } >/dev/null && {
23007          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23008          test ! -s conftest.err
23009        }; then
23010   ac_header_preproc=yes
23011 else
23012   echo "$as_me: failed program was:" >&5
23013 sed 's/^/| /' conftest.$ac_ext >&5
23014
23015   ac_header_preproc=no
23016 fi
23017
23018 rm -f conftest.err conftest.$ac_ext
23019 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23020 echo "${ECHO_T}$ac_header_preproc" >&6; }
23021
23022 # So?  What about this header?
23023 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23024   yes:no: )
23025     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23026 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23027     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23028 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23029     ac_header_preproc=yes
23030     ;;
23031   no:yes:* )
23032     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23033 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23034     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
23035 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
23036     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23037 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23038     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
23039 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
23040     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23041 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23042     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23043 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23044     ( cat <<\_ASBOX
23045 ## ------------------------------- ##
23046 ## Report this to nfs@lists.sf.net ##
23047 ## ------------------------------- ##
23048 _ASBOX
23049      ) | sed "s/^/$as_me: WARNING:     /" >&2
23050     ;;
23051 esac
23052 { echo "$as_me:$LINENO: checking for $ac_header" >&5
23053 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23054 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23055   echo $ECHO_N "(cached) $ECHO_C" >&6
23056 else
23057   eval "$as_ac_Header=\$ac_header_preproc"
23058 fi
23059 ac_res=`eval echo '${'$as_ac_Header'}'`
23060                { echo "$as_me:$LINENO: result: $ac_res" >&5
23061 echo "${ECHO_T}$ac_res" >&6; }
23062
23063 fi
23064 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23065   cat >>confdefs.h <<_ACEOF
23066 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23067 _ACEOF
23068
23069 fi
23070
23071 done
23072
23073
23074 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
23075 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
23076 if test "${ac_cv_c_const+set}" = set; then
23077   echo $ECHO_N "(cached) $ECHO_C" >&6
23078 else
23079   cat >conftest.$ac_ext <<_ACEOF
23080 /* confdefs.h.  */
23081 _ACEOF
23082 cat confdefs.h >>conftest.$ac_ext
23083 cat >>conftest.$ac_ext <<_ACEOF
23084 /* end confdefs.h.  */
23085
23086 int
23087 main ()
23088 {
23089 /* FIXME: Include the comments suggested by Paul. */
23090 #ifndef __cplusplus
23091   /* Ultrix mips cc rejects this.  */
23092   typedef int charset[2];
23093   const charset cs;
23094   /* SunOS 4.1.1 cc rejects this.  */
23095   char const *const *pcpcc;
23096   char **ppc;
23097   /* NEC SVR4.0.2 mips cc rejects this.  */
23098   struct point {int x, y;};
23099   static struct point const zero = {0,0};
23100   /* AIX XL C 1.02.0.0 rejects this.
23101      It does not let you subtract one const X* pointer from another in
23102      an arm of an if-expression whose if-part is not a constant
23103      expression */
23104   const char *g = "string";
23105   pcpcc = &g + (g ? g-g : 0);
23106   /* HPUX 7.0 cc rejects these. */
23107   ++pcpcc;
23108   ppc = (char**) pcpcc;
23109   pcpcc = (char const *const *) ppc;
23110   { /* SCO 3.2v4 cc rejects this.  */
23111     char *t;
23112     char const *s = 0 ? (char *) 0 : (char const *) 0;
23113
23114     *t++ = 0;
23115     if (s) return 0;
23116   }
23117   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
23118     int x[] = {25, 17};
23119     const int *foo = &x[0];
23120     ++foo;
23121   }
23122   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
23123     typedef const int *iptr;
23124     iptr p = 0;
23125     ++p;
23126   }
23127   { /* AIX XL C 1.02.0.0 rejects this saying
23128        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
23129     struct s { int j; const int *ap[3]; };
23130     struct s *b; b->j = 5;
23131   }
23132   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
23133     const int foo = 10;
23134     if (!foo) return 0;
23135   }
23136   return !cs[0] && !zero.x;
23137 #endif
23138
23139   ;
23140   return 0;
23141 }
23142 _ACEOF
23143 rm -f conftest.$ac_objext
23144 if { (ac_try="$ac_compile"
23145 case "(($ac_try" in
23146   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23147   *) ac_try_echo=$ac_try;;
23148 esac
23149 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23150   (eval "$ac_compile") 2>conftest.er1
23151   ac_status=$?
23152   grep -v '^ *+' conftest.er1 >conftest.err
23153   rm -f conftest.er1
23154   cat conftest.err >&5
23155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23156   (exit $ac_status); } && {
23157          test -z "$ac_c_werror_flag" ||
23158          test ! -s conftest.err
23159        } && test -s conftest.$ac_objext; then
23160   ac_cv_c_const=yes
23161 else
23162   echo "$as_me: failed program was:" >&5
23163 sed 's/^/| /' conftest.$ac_ext >&5
23164
23165         ac_cv_c_const=no
23166 fi
23167
23168 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23169 fi
23170 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
23171 echo "${ECHO_T}$ac_cv_c_const" >&6; }
23172 if test $ac_cv_c_const = no; then
23173
23174 cat >>confdefs.h <<\_ACEOF
23175 #define const
23176 _ACEOF
23177
23178 fi
23179
23180 { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
23181 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
23182 if test "${ac_cv_type_uid_t+set}" = set; then
23183   echo $ECHO_N "(cached) $ECHO_C" >&6
23184 else
23185   cat >conftest.$ac_ext <<_ACEOF
23186 /* confdefs.h.  */
23187 _ACEOF
23188 cat confdefs.h >>conftest.$ac_ext
23189 cat >>conftest.$ac_ext <<_ACEOF
23190 /* end confdefs.h.  */
23191 #include <sys/types.h>
23192
23193 _ACEOF
23194 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23195   $EGREP "uid_t" >/dev/null 2>&1; then
23196   ac_cv_type_uid_t=yes
23197 else
23198   ac_cv_type_uid_t=no
23199 fi
23200 rm -f conftest*
23201
23202 fi
23203 { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
23204 echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
23205 if test $ac_cv_type_uid_t = no; then
23206
23207 cat >>confdefs.h <<\_ACEOF
23208 #define uid_t int
23209 _ACEOF
23210
23211
23212 cat >>confdefs.h <<\_ACEOF
23213 #define gid_t int
23214 _ACEOF
23215
23216 fi
23217
23218 { echo "$as_me:$LINENO: checking for inline" >&5
23219 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
23220 if test "${ac_cv_c_inline+set}" = set; then
23221   echo $ECHO_N "(cached) $ECHO_C" >&6
23222 else
23223   ac_cv_c_inline=no
23224 for ac_kw in inline __inline__ __inline; do
23225   cat >conftest.$ac_ext <<_ACEOF
23226 /* confdefs.h.  */
23227 _ACEOF
23228 cat confdefs.h >>conftest.$ac_ext
23229 cat >>conftest.$ac_ext <<_ACEOF
23230 /* end confdefs.h.  */
23231 #ifndef __cplusplus
23232 typedef int foo_t;
23233 static $ac_kw foo_t static_foo () {return 0; }
23234 $ac_kw foo_t foo () {return 0; }
23235 #endif
23236
23237 _ACEOF
23238 rm -f conftest.$ac_objext
23239 if { (ac_try="$ac_compile"
23240 case "(($ac_try" in
23241   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23242   *) ac_try_echo=$ac_try;;
23243 esac
23244 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23245   (eval "$ac_compile") 2>conftest.er1
23246   ac_status=$?
23247   grep -v '^ *+' conftest.er1 >conftest.err
23248   rm -f conftest.er1
23249   cat conftest.err >&5
23250   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23251   (exit $ac_status); } && {
23252          test -z "$ac_c_werror_flag" ||
23253          test ! -s conftest.err
23254        } && test -s conftest.$ac_objext; then
23255   ac_cv_c_inline=$ac_kw
23256 else
23257   echo "$as_me: failed program was:" >&5
23258 sed 's/^/| /' conftest.$ac_ext >&5
23259
23260
23261 fi
23262
23263 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23264   test "$ac_cv_c_inline" != no && break
23265 done
23266
23267 fi
23268 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
23269 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
23270
23271
23272 case $ac_cv_c_inline in
23273   inline | yes) ;;
23274   *)
23275     case $ac_cv_c_inline in
23276       no) ac_val=;;
23277       *) ac_val=$ac_cv_c_inline;;
23278     esac
23279     cat >>confdefs.h <<_ACEOF
23280 #ifndef __cplusplus
23281 #define inline $ac_val
23282 #endif
23283 _ACEOF
23284     ;;
23285 esac
23286
23287 { echo "$as_me:$LINENO: checking for off_t" >&5
23288 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
23289 if test "${ac_cv_type_off_t+set}" = set; then
23290   echo $ECHO_N "(cached) $ECHO_C" >&6
23291 else
23292   cat >conftest.$ac_ext <<_ACEOF
23293 /* confdefs.h.  */
23294 _ACEOF
23295 cat confdefs.h >>conftest.$ac_ext
23296 cat >>conftest.$ac_ext <<_ACEOF
23297 /* end confdefs.h.  */
23298 $ac_includes_default
23299 typedef off_t ac__type_new_;
23300 int
23301 main ()
23302 {
23303 if ((ac__type_new_ *) 0)
23304   return 0;
23305 if (sizeof (ac__type_new_))
23306   return 0;
23307   ;
23308   return 0;
23309 }
23310 _ACEOF
23311 rm -f conftest.$ac_objext
23312 if { (ac_try="$ac_compile"
23313 case "(($ac_try" in
23314   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23315   *) ac_try_echo=$ac_try;;
23316 esac
23317 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23318   (eval "$ac_compile") 2>conftest.er1
23319   ac_status=$?
23320   grep -v '^ *+' conftest.er1 >conftest.err
23321   rm -f conftest.er1
23322   cat conftest.err >&5
23323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23324   (exit $ac_status); } && {
23325          test -z "$ac_c_werror_flag" ||
23326          test ! -s conftest.err
23327        } && test -s conftest.$ac_objext; then
23328   ac_cv_type_off_t=yes
23329 else
23330   echo "$as_me: failed program was:" >&5
23331 sed 's/^/| /' conftest.$ac_ext >&5
23332
23333         ac_cv_type_off_t=no
23334 fi
23335
23336 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23337 fi
23338 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
23339 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
23340 if test $ac_cv_type_off_t = yes; then
23341   :
23342 else
23343
23344 cat >>confdefs.h <<_ACEOF
23345 #define off_t long int
23346 _ACEOF
23347
23348 fi
23349
23350 { echo "$as_me:$LINENO: checking for pid_t" >&5
23351 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
23352 if test "${ac_cv_type_pid_t+set}" = set; then
23353   echo $ECHO_N "(cached) $ECHO_C" >&6
23354 else
23355   cat >conftest.$ac_ext <<_ACEOF
23356 /* confdefs.h.  */
23357 _ACEOF
23358 cat confdefs.h >>conftest.$ac_ext
23359 cat >>conftest.$ac_ext <<_ACEOF
23360 /* end confdefs.h.  */
23361 $ac_includes_default
23362 typedef pid_t ac__type_new_;
23363 int
23364 main ()
23365 {
23366 if ((ac__type_new_ *) 0)
23367   return 0;
23368 if (sizeof (ac__type_new_))
23369   return 0;
23370   ;
23371   return 0;
23372 }
23373 _ACEOF
23374 rm -f conftest.$ac_objext
23375 if { (ac_try="$ac_compile"
23376 case "(($ac_try" in
23377   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23378   *) ac_try_echo=$ac_try;;
23379 esac
23380 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23381   (eval "$ac_compile") 2>conftest.er1
23382   ac_status=$?
23383   grep -v '^ *+' conftest.er1 >conftest.err
23384   rm -f conftest.er1
23385   cat conftest.err >&5
23386   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23387   (exit $ac_status); } && {
23388          test -z "$ac_c_werror_flag" ||
23389          test ! -s conftest.err
23390        } && test -s conftest.$ac_objext; then
23391   ac_cv_type_pid_t=yes
23392 else
23393   echo "$as_me: failed program was:" >&5
23394 sed 's/^/| /' conftest.$ac_ext >&5
23395
23396         ac_cv_type_pid_t=no
23397 fi
23398
23399 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23400 fi
23401 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
23402 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
23403 if test $ac_cv_type_pid_t = yes; then
23404   :
23405 else
23406
23407 cat >>confdefs.h <<_ACEOF
23408 #define pid_t int
23409 _ACEOF
23410
23411 fi
23412
23413 { echo "$as_me:$LINENO: checking for size_t" >&5
23414 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
23415 if test "${ac_cv_type_size_t+set}" = set; then
23416   echo $ECHO_N "(cached) $ECHO_C" >&6
23417 else
23418   cat >conftest.$ac_ext <<_ACEOF
23419 /* confdefs.h.  */
23420 _ACEOF
23421 cat confdefs.h >>conftest.$ac_ext
23422 cat >>conftest.$ac_ext <<_ACEOF
23423 /* end confdefs.h.  */
23424 $ac_includes_default
23425 typedef size_t ac__type_new_;
23426 int
23427 main ()
23428 {
23429 if ((ac__type_new_ *) 0)
23430   return 0;
23431 if (sizeof (ac__type_new_))
23432   return 0;
23433   ;
23434   return 0;
23435 }
23436 _ACEOF
23437 rm -f conftest.$ac_objext
23438 if { (ac_try="$ac_compile"
23439 case "(($ac_try" in
23440   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23441   *) ac_try_echo=$ac_try;;
23442 esac
23443 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23444   (eval "$ac_compile") 2>conftest.er1
23445   ac_status=$?
23446   grep -v '^ *+' conftest.er1 >conftest.err
23447   rm -f conftest.er1
23448   cat conftest.err >&5
23449   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23450   (exit $ac_status); } && {
23451          test -z "$ac_c_werror_flag" ||
23452          test ! -s conftest.err
23453        } && test -s conftest.$ac_objext; then
23454   ac_cv_type_size_t=yes
23455 else
23456   echo "$as_me: failed program was:" >&5
23457 sed 's/^/| /' conftest.$ac_ext >&5
23458
23459         ac_cv_type_size_t=no
23460 fi
23461
23462 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23463 fi
23464 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
23465 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
23466 if test $ac_cv_type_size_t = yes; then
23467   :
23468 else
23469
23470 cat >>confdefs.h <<_ACEOF
23471 #define size_t unsigned int
23472 _ACEOF
23473
23474 fi
23475
23476 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
23477 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
23478 if test "${ac_cv_header_time+set}" = set; then
23479   echo $ECHO_N "(cached) $ECHO_C" >&6
23480 else
23481   cat >conftest.$ac_ext <<_ACEOF
23482 /* confdefs.h.  */
23483 _ACEOF
23484 cat confdefs.h >>conftest.$ac_ext
23485 cat >>conftest.$ac_ext <<_ACEOF
23486 /* end confdefs.h.  */
23487 #include <sys/types.h>
23488 #include <sys/time.h>
23489 #include <time.h>
23490
23491 int
23492 main ()
23493 {
23494 if ((struct tm *) 0)
23495 return 0;
23496   ;
23497   return 0;
23498 }
23499 _ACEOF
23500 rm -f conftest.$ac_objext
23501 if { (ac_try="$ac_compile"
23502 case "(($ac_try" in
23503   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23504   *) ac_try_echo=$ac_try;;
23505 esac
23506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23507   (eval "$ac_compile") 2>conftest.er1
23508   ac_status=$?
23509   grep -v '^ *+' conftest.er1 >conftest.err
23510   rm -f conftest.er1
23511   cat conftest.err >&5
23512   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23513   (exit $ac_status); } && {
23514          test -z "$ac_c_werror_flag" ||
23515          test ! -s conftest.err
23516        } && test -s conftest.$ac_objext; then
23517   ac_cv_header_time=yes
23518 else
23519   echo "$as_me: failed program was:" >&5
23520 sed 's/^/| /' conftest.$ac_ext >&5
23521
23522         ac_cv_header_time=no
23523 fi
23524
23525 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23526 fi
23527 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
23528 echo "${ECHO_T}$ac_cv_header_time" >&6; }
23529 if test $ac_cv_header_time = yes; then
23530
23531 cat >>confdefs.h <<\_ACEOF
23532 #define TIME_WITH_SYS_TIME 1
23533 _ACEOF
23534
23535 fi
23536
23537 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
23538 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
23539 if test "${ac_cv_struct_tm+set}" = set; then
23540   echo $ECHO_N "(cached) $ECHO_C" >&6
23541 else
23542   cat >conftest.$ac_ext <<_ACEOF
23543 /* confdefs.h.  */
23544 _ACEOF
23545 cat confdefs.h >>conftest.$ac_ext
23546 cat >>conftest.$ac_ext <<_ACEOF
23547 /* end confdefs.h.  */
23548 #include <sys/types.h>
23549 #include <time.h>
23550
23551 int
23552 main ()
23553 {
23554 struct tm tm;
23555                                      int *p = &tm.tm_sec;
23556                                      return !p;
23557   ;
23558   return 0;
23559 }
23560 _ACEOF
23561 rm -f conftest.$ac_objext
23562 if { (ac_try="$ac_compile"
23563 case "(($ac_try" in
23564   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23565   *) ac_try_echo=$ac_try;;
23566 esac
23567 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23568   (eval "$ac_compile") 2>conftest.er1
23569   ac_status=$?
23570   grep -v '^ *+' conftest.er1 >conftest.err
23571   rm -f conftest.er1
23572   cat conftest.err >&5
23573   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23574   (exit $ac_status); } && {
23575          test -z "$ac_c_werror_flag" ||
23576          test ! -s conftest.err
23577        } && test -s conftest.$ac_objext; then
23578   ac_cv_struct_tm=time.h
23579 else
23580   echo "$as_me: failed program was:" >&5
23581 sed 's/^/| /' conftest.$ac_ext >&5
23582
23583         ac_cv_struct_tm=sys/time.h
23584 fi
23585
23586 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23587 fi
23588 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
23589 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
23590 if test $ac_cv_struct_tm = sys/time.h; then
23591
23592 cat >>confdefs.h <<\_ACEOF
23593 #define TM_IN_SYS_TIME 1
23594 _ACEOF
23595
23596 fi
23597
23598
23599 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
23600 # for constant arguments.  Useless!
23601 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
23602 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
23603 if test "${ac_cv_working_alloca_h+set}" = set; then
23604   echo $ECHO_N "(cached) $ECHO_C" >&6
23605 else
23606   cat >conftest.$ac_ext <<_ACEOF
23607 /* confdefs.h.  */
23608 _ACEOF
23609 cat confdefs.h >>conftest.$ac_ext
23610 cat >>conftest.$ac_ext <<_ACEOF
23611 /* end confdefs.h.  */
23612 #include <alloca.h>
23613 int
23614 main ()
23615 {
23616 char *p = (char *) alloca (2 * sizeof (int));
23617                           if (p) return 0;
23618   ;
23619   return 0;
23620 }
23621 _ACEOF
23622 rm -f conftest.$ac_objext conftest$ac_exeext
23623 if { (ac_try="$ac_link"
23624 case "(($ac_try" in
23625   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23626   *) ac_try_echo=$ac_try;;
23627 esac
23628 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23629   (eval "$ac_link") 2>conftest.er1
23630   ac_status=$?
23631   grep -v '^ *+' conftest.er1 >conftest.err
23632   rm -f conftest.er1
23633   cat conftest.err >&5
23634   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23635   (exit $ac_status); } && {
23636          test -z "$ac_c_werror_flag" ||
23637          test ! -s conftest.err
23638        } && test -s conftest$ac_exeext &&
23639        $as_test_x conftest$ac_exeext; then
23640   ac_cv_working_alloca_h=yes
23641 else
23642   echo "$as_me: failed program was:" >&5
23643 sed 's/^/| /' conftest.$ac_ext >&5
23644
23645         ac_cv_working_alloca_h=no
23646 fi
23647
23648 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23649       conftest$ac_exeext conftest.$ac_ext
23650 fi
23651 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
23652 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
23653 if test $ac_cv_working_alloca_h = yes; then
23654
23655 cat >>confdefs.h <<\_ACEOF
23656 #define HAVE_ALLOCA_H 1
23657 _ACEOF
23658
23659 fi
23660
23661 { echo "$as_me:$LINENO: checking for alloca" >&5
23662 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
23663 if test "${ac_cv_func_alloca_works+set}" = set; then
23664   echo $ECHO_N "(cached) $ECHO_C" >&6
23665 else
23666   cat >conftest.$ac_ext <<_ACEOF
23667 /* confdefs.h.  */
23668 _ACEOF
23669 cat confdefs.h >>conftest.$ac_ext
23670 cat >>conftest.$ac_ext <<_ACEOF
23671 /* end confdefs.h.  */
23672 #ifdef __GNUC__
23673 # define alloca __builtin_alloca
23674 #else
23675 # ifdef _MSC_VER
23676 #  include <malloc.h>
23677 #  define alloca _alloca
23678 # else
23679 #  ifdef HAVE_ALLOCA_H
23680 #   include <alloca.h>
23681 #  else
23682 #   ifdef _AIX
23683  #pragma alloca
23684 #   else
23685 #    ifndef alloca /* predefined by HP cc +Olibcalls */
23686 char *alloca ();
23687 #    endif
23688 #   endif
23689 #  endif
23690 # endif
23691 #endif
23692
23693 int
23694 main ()
23695 {
23696 char *p = (char *) alloca (1);
23697                                     if (p) return 0;
23698   ;
23699   return 0;
23700 }
23701 _ACEOF
23702 rm -f conftest.$ac_objext conftest$ac_exeext
23703 if { (ac_try="$ac_link"
23704 case "(($ac_try" in
23705   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23706   *) ac_try_echo=$ac_try;;
23707 esac
23708 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23709   (eval "$ac_link") 2>conftest.er1
23710   ac_status=$?
23711   grep -v '^ *+' conftest.er1 >conftest.err
23712   rm -f conftest.er1
23713   cat conftest.err >&5
23714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23715   (exit $ac_status); } && {
23716          test -z "$ac_c_werror_flag" ||
23717          test ! -s conftest.err
23718        } && test -s conftest$ac_exeext &&
23719        $as_test_x conftest$ac_exeext; then
23720   ac_cv_func_alloca_works=yes
23721 else
23722   echo "$as_me: failed program was:" >&5
23723 sed 's/^/| /' conftest.$ac_ext >&5
23724
23725         ac_cv_func_alloca_works=no
23726 fi
23727
23728 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23729       conftest$ac_exeext conftest.$ac_ext
23730 fi
23731 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
23732 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
23733
23734 if test $ac_cv_func_alloca_works = yes; then
23735
23736 cat >>confdefs.h <<\_ACEOF
23737 #define HAVE_ALLOCA 1
23738 _ACEOF
23739
23740 else
23741   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
23742 # that cause trouble.  Some versions do not even contain alloca or
23743 # contain a buggy version.  If you still want to use their alloca,
23744 # use ar to extract alloca.o from them instead of compiling alloca.c.
23745
23746 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
23747
23748 cat >>confdefs.h <<\_ACEOF
23749 #define C_ALLOCA 1
23750 _ACEOF
23751
23752
23753 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
23754 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
23755 if test "${ac_cv_os_cray+set}" = set; then
23756   echo $ECHO_N "(cached) $ECHO_C" >&6
23757 else
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 #if defined CRAY && ! defined CRAY2
23765 webecray
23766 #else
23767 wenotbecray
23768 #endif
23769
23770 _ACEOF
23771 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23772   $EGREP "webecray" >/dev/null 2>&1; then
23773   ac_cv_os_cray=yes
23774 else
23775   ac_cv_os_cray=no
23776 fi
23777 rm -f conftest*
23778
23779 fi
23780 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
23781 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
23782 if test $ac_cv_os_cray = yes; then
23783   for ac_func in _getb67 GETB67 getb67; do
23784     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23785 { echo "$as_me:$LINENO: checking for $ac_func" >&5
23786 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
23787 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
23788   echo $ECHO_N "(cached) $ECHO_C" >&6
23789 else
23790   cat >conftest.$ac_ext <<_ACEOF
23791 /* confdefs.h.  */
23792 _ACEOF
23793 cat confdefs.h >>conftest.$ac_ext
23794 cat >>conftest.$ac_ext <<_ACEOF
23795 /* end confdefs.h.  */
23796 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23797    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
23798 #define $ac_func innocuous_$ac_func
23799
23800 /* System header to define __stub macros and hopefully few prototypes,
23801     which can conflict with char $ac_func (); below.
23802     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23803     <limits.h> exists even on freestanding compilers.  */
23804
23805 #ifdef __STDC__
23806 # include <limits.h>
23807 #else
23808 # include <assert.h>
23809 #endif
23810
23811 #undef $ac_func
23812
23813 /* Override any GCC internal prototype to avoid an error.
23814    Use char because int might match the return type of a GCC
23815    builtin and then its argument prototype would still apply.  */
23816 #ifdef __cplusplus
23817 extern "C"
23818 #endif
23819 char $ac_func ();
23820 /* The GNU C library defines this for functions which it implements
23821     to always fail with ENOSYS.  Some functions are actually named
23822     something starting with __ and the normal name is an alias.  */
23823 #if defined __stub_$ac_func || defined __stub___$ac_func
23824 choke me
23825 #endif
23826
23827 int
23828 main ()
23829 {
23830 return $ac_func ();
23831   ;
23832   return 0;
23833 }
23834 _ACEOF
23835 rm -f conftest.$ac_objext conftest$ac_exeext
23836 if { (ac_try="$ac_link"
23837 case "(($ac_try" in
23838   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23839   *) ac_try_echo=$ac_try;;
23840 esac
23841 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23842   (eval "$ac_link") 2>conftest.er1
23843   ac_status=$?
23844   grep -v '^ *+' conftest.er1 >conftest.err
23845   rm -f conftest.er1
23846   cat conftest.err >&5
23847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23848   (exit $ac_status); } && {
23849          test -z "$ac_c_werror_flag" ||
23850          test ! -s conftest.err
23851        } && test -s conftest$ac_exeext &&
23852        $as_test_x conftest$ac_exeext; then
23853   eval "$as_ac_var=yes"
23854 else
23855   echo "$as_me: failed program was:" >&5
23856 sed 's/^/| /' conftest.$ac_ext >&5
23857
23858         eval "$as_ac_var=no"
23859 fi
23860
23861 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23862       conftest$ac_exeext conftest.$ac_ext
23863 fi
23864 ac_res=`eval echo '${'$as_ac_var'}'`
23865                { echo "$as_me:$LINENO: result: $ac_res" >&5
23866 echo "${ECHO_T}$ac_res" >&6; }
23867 if test `eval echo '${'$as_ac_var'}'` = yes; then
23868
23869 cat >>confdefs.h <<_ACEOF
23870 #define CRAY_STACKSEG_END $ac_func
23871 _ACEOF
23872
23873     break
23874 fi
23875
23876   done
23877 fi
23878
23879 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
23880 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
23881 if test "${ac_cv_c_stack_direction+set}" = set; then
23882   echo $ECHO_N "(cached) $ECHO_C" >&6
23883 else
23884   if test "$cross_compiling" = yes; then
23885   ac_cv_c_stack_direction=0
23886 else
23887   cat >conftest.$ac_ext <<_ACEOF
23888 /* confdefs.h.  */
23889 _ACEOF
23890 cat confdefs.h >>conftest.$ac_ext
23891 cat >>conftest.$ac_ext <<_ACEOF
23892 /* end confdefs.h.  */
23893 $ac_includes_default
23894 int
23895 find_stack_direction ()
23896 {
23897   static char *addr = 0;
23898   auto char dummy;
23899   if (addr == 0)
23900     {
23901       addr = &dummy;
23902       return find_stack_direction ();
23903     }
23904   else
23905     return (&dummy > addr) ? 1 : -1;
23906 }
23907
23908 int
23909 main ()
23910 {
23911   return find_stack_direction () < 0;
23912 }
23913 _ACEOF
23914 rm -f conftest$ac_exeext
23915 if { (ac_try="$ac_link"
23916 case "(($ac_try" in
23917   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23918   *) ac_try_echo=$ac_try;;
23919 esac
23920 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23921   (eval "$ac_link") 2>&5
23922   ac_status=$?
23923   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23924   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23925   { (case "(($ac_try" in
23926   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23927   *) ac_try_echo=$ac_try;;
23928 esac
23929 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23930   (eval "$ac_try") 2>&5
23931   ac_status=$?
23932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23933   (exit $ac_status); }; }; then
23934   ac_cv_c_stack_direction=1
23935 else
23936   echo "$as_me: program exited with status $ac_status" >&5
23937 echo "$as_me: failed program was:" >&5
23938 sed 's/^/| /' conftest.$ac_ext >&5
23939
23940 ( exit $ac_status )
23941 ac_cv_c_stack_direction=-1
23942 fi
23943 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23944 fi
23945
23946
23947 fi
23948 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
23949 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
23950
23951 cat >>confdefs.h <<_ACEOF
23952 #define STACK_DIRECTION $ac_cv_c_stack_direction
23953 _ACEOF
23954
23955
23956 fi
23957
23958
23959
23960
23961
23962
23963 ac_header_dirent=no
23964 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
23965   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
23966 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
23967 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
23968 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23969   echo $ECHO_N "(cached) $ECHO_C" >&6
23970 else
23971   cat >conftest.$ac_ext <<_ACEOF
23972 /* confdefs.h.  */
23973 _ACEOF
23974 cat confdefs.h >>conftest.$ac_ext
23975 cat >>conftest.$ac_ext <<_ACEOF
23976 /* end confdefs.h.  */
23977 #include <sys/types.h>
23978 #include <$ac_hdr>
23979
23980 int
23981 main ()
23982 {
23983 if ((DIR *) 0)
23984 return 0;
23985   ;
23986   return 0;
23987 }
23988 _ACEOF
23989 rm -f conftest.$ac_objext
23990 if { (ac_try="$ac_compile"
23991 case "(($ac_try" in
23992   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23993   *) ac_try_echo=$ac_try;;
23994 esac
23995 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23996   (eval "$ac_compile") 2>conftest.er1
23997   ac_status=$?
23998   grep -v '^ *+' conftest.er1 >conftest.err
23999   rm -f conftest.er1
24000   cat conftest.err >&5
24001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24002   (exit $ac_status); } && {
24003          test -z "$ac_c_werror_flag" ||
24004          test ! -s conftest.err
24005        } && test -s conftest.$ac_objext; then
24006   eval "$as_ac_Header=yes"
24007 else
24008   echo "$as_me: failed program was:" >&5
24009 sed 's/^/| /' conftest.$ac_ext >&5
24010
24011         eval "$as_ac_Header=no"
24012 fi
24013
24014 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24015 fi
24016 ac_res=`eval echo '${'$as_ac_Header'}'`
24017                { echo "$as_me:$LINENO: result: $ac_res" >&5
24018 echo "${ECHO_T}$ac_res" >&6; }
24019 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24020   cat >>confdefs.h <<_ACEOF
24021 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
24022 _ACEOF
24023
24024 ac_header_dirent=$ac_hdr; break
24025 fi
24026
24027 done
24028 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
24029 if test $ac_header_dirent = dirent.h; then
24030   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
24031 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
24032 if test "${ac_cv_search_opendir+set}" = set; then
24033   echo $ECHO_N "(cached) $ECHO_C" >&6
24034 else
24035   ac_func_search_save_LIBS=$LIBS
24036 cat >conftest.$ac_ext <<_ACEOF
24037 /* confdefs.h.  */
24038 _ACEOF
24039 cat confdefs.h >>conftest.$ac_ext
24040 cat >>conftest.$ac_ext <<_ACEOF
24041 /* end confdefs.h.  */
24042
24043 /* Override any GCC internal prototype to avoid an error.
24044    Use char because int might match the return type of a GCC
24045    builtin and then its argument prototype would still apply.  */
24046 #ifdef __cplusplus
24047 extern "C"
24048 #endif
24049 char opendir ();
24050 int
24051 main ()
24052 {
24053 return opendir ();
24054   ;
24055   return 0;
24056 }
24057 _ACEOF
24058 for ac_lib in '' dir; do
24059   if test -z "$ac_lib"; then
24060     ac_res="none required"
24061   else
24062     ac_res=-l$ac_lib
24063     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
24064   fi
24065   rm -f conftest.$ac_objext conftest$ac_exeext
24066 if { (ac_try="$ac_link"
24067 case "(($ac_try" in
24068   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24069   *) ac_try_echo=$ac_try;;
24070 esac
24071 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24072   (eval "$ac_link") 2>conftest.er1
24073   ac_status=$?
24074   grep -v '^ *+' conftest.er1 >conftest.err
24075   rm -f conftest.er1
24076   cat conftest.err >&5
24077   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24078   (exit $ac_status); } && {
24079          test -z "$ac_c_werror_flag" ||
24080          test ! -s conftest.err
24081        } && test -s conftest$ac_exeext &&
24082        $as_test_x conftest$ac_exeext; then
24083   ac_cv_search_opendir=$ac_res
24084 else
24085   echo "$as_me: failed program was:" >&5
24086 sed 's/^/| /' conftest.$ac_ext >&5
24087
24088
24089 fi
24090
24091 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24092       conftest$ac_exeext
24093   if test "${ac_cv_search_opendir+set}" = set; then
24094   break
24095 fi
24096 done
24097 if test "${ac_cv_search_opendir+set}" = set; then
24098   :
24099 else
24100   ac_cv_search_opendir=no
24101 fi
24102 rm conftest.$ac_ext
24103 LIBS=$ac_func_search_save_LIBS
24104 fi
24105 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
24106 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
24107 ac_res=$ac_cv_search_opendir
24108 if test "$ac_res" != no; then
24109   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
24110
24111 fi
24112
24113 else
24114   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
24115 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
24116 if test "${ac_cv_search_opendir+set}" = set; then
24117   echo $ECHO_N "(cached) $ECHO_C" >&6
24118 else
24119   ac_func_search_save_LIBS=$LIBS
24120 cat >conftest.$ac_ext <<_ACEOF
24121 /* confdefs.h.  */
24122 _ACEOF
24123 cat confdefs.h >>conftest.$ac_ext
24124 cat >>conftest.$ac_ext <<_ACEOF
24125 /* end confdefs.h.  */
24126
24127 /* Override any GCC internal prototype to avoid an error.
24128    Use char because int might match the return type of a GCC
24129    builtin and then its argument prototype would still apply.  */
24130 #ifdef __cplusplus
24131 extern "C"
24132 #endif
24133 char opendir ();
24134 int
24135 main ()
24136 {
24137 return opendir ();
24138   ;
24139   return 0;
24140 }
24141 _ACEOF
24142 for ac_lib in '' x; do
24143   if test -z "$ac_lib"; then
24144     ac_res="none required"
24145   else
24146     ac_res=-l$ac_lib
24147     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
24148   fi
24149   rm -f conftest.$ac_objext conftest$ac_exeext
24150 if { (ac_try="$ac_link"
24151 case "(($ac_try" in
24152   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24153   *) ac_try_echo=$ac_try;;
24154 esac
24155 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24156   (eval "$ac_link") 2>conftest.er1
24157   ac_status=$?
24158   grep -v '^ *+' conftest.er1 >conftest.err
24159   rm -f conftest.er1
24160   cat conftest.err >&5
24161   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24162   (exit $ac_status); } && {
24163          test -z "$ac_c_werror_flag" ||
24164          test ! -s conftest.err
24165        } && test -s conftest$ac_exeext &&
24166        $as_test_x conftest$ac_exeext; then
24167   ac_cv_search_opendir=$ac_res
24168 else
24169   echo "$as_me: failed program was:" >&5
24170 sed 's/^/| /' conftest.$ac_ext >&5
24171
24172
24173 fi
24174
24175 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24176       conftest$ac_exeext
24177   if test "${ac_cv_search_opendir+set}" = set; then
24178   break
24179 fi
24180 done
24181 if test "${ac_cv_search_opendir+set}" = set; then
24182   :
24183 else
24184   ac_cv_search_opendir=no
24185 fi
24186 rm conftest.$ac_ext
24187 LIBS=$ac_func_search_save_LIBS
24188 fi
24189 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
24190 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
24191 ac_res=$ac_cv_search_opendir
24192 if test "$ac_res" != no; then
24193   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
24194
24195 fi
24196
24197 fi
24198
24199 { echo "$as_me:$LINENO: checking whether closedir returns void" >&5
24200 echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6; }
24201 if test "${ac_cv_func_closedir_void+set}" = set; then
24202   echo $ECHO_N "(cached) $ECHO_C" >&6
24203 else
24204   if test "$cross_compiling" = yes; then
24205   ac_cv_func_closedir_void=yes
24206 else
24207   cat >conftest.$ac_ext <<_ACEOF
24208 /* confdefs.h.  */
24209 _ACEOF
24210 cat confdefs.h >>conftest.$ac_ext
24211 cat >>conftest.$ac_ext <<_ACEOF
24212 /* end confdefs.h.  */
24213 $ac_includes_default
24214 #include <$ac_header_dirent>
24215 #ifndef __cplusplus
24216 int closedir ();
24217 #endif
24218
24219 int
24220 main ()
24221 {
24222 return closedir (opendir (".")) != 0;
24223   ;
24224   return 0;
24225 }
24226 _ACEOF
24227 rm -f conftest$ac_exeext
24228 if { (ac_try="$ac_link"
24229 case "(($ac_try" in
24230   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24231   *) ac_try_echo=$ac_try;;
24232 esac
24233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24234   (eval "$ac_link") 2>&5
24235   ac_status=$?
24236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24237   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24238   { (case "(($ac_try" in
24239   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24240   *) ac_try_echo=$ac_try;;
24241 esac
24242 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24243   (eval "$ac_try") 2>&5
24244   ac_status=$?
24245   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24246   (exit $ac_status); }; }; then
24247   ac_cv_func_closedir_void=no
24248 else
24249   echo "$as_me: program exited with status $ac_status" >&5
24250 echo "$as_me: failed program was:" >&5
24251 sed 's/^/| /' conftest.$ac_ext >&5
24252
24253 ( exit $ac_status )
24254 ac_cv_func_closedir_void=yes
24255 fi
24256 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24257 fi
24258
24259
24260 fi
24261 { echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
24262 echo "${ECHO_T}$ac_cv_func_closedir_void" >&6; }
24263 if test $ac_cv_func_closedir_void = yes; then
24264
24265 cat >>confdefs.h <<\_ACEOF
24266 #define CLOSEDIR_VOID 1
24267 _ACEOF
24268
24269 fi
24270
24271 { echo "$as_me:$LINENO: checking for error_at_line" >&5
24272 echo $ECHO_N "checking for error_at_line... $ECHO_C" >&6; }
24273 if test "${ac_cv_lib_error_at_line+set}" = set; then
24274   echo $ECHO_N "(cached) $ECHO_C" >&6
24275 else
24276   cat >conftest.$ac_ext <<_ACEOF
24277 /* confdefs.h.  */
24278 _ACEOF
24279 cat confdefs.h >>conftest.$ac_ext
24280 cat >>conftest.$ac_ext <<_ACEOF
24281 /* end confdefs.h.  */
24282 #include <error.h>
24283 int
24284 main ()
24285 {
24286 error_at_line (0, 0, "", 0, "an error occurred");
24287   ;
24288   return 0;
24289 }
24290 _ACEOF
24291 rm -f conftest.$ac_objext conftest$ac_exeext
24292 if { (ac_try="$ac_link"
24293 case "(($ac_try" in
24294   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24295   *) ac_try_echo=$ac_try;;
24296 esac
24297 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24298   (eval "$ac_link") 2>conftest.er1
24299   ac_status=$?
24300   grep -v '^ *+' conftest.er1 >conftest.err
24301   rm -f conftest.er1
24302   cat conftest.err >&5
24303   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24304   (exit $ac_status); } && {
24305          test -z "$ac_c_werror_flag" ||
24306          test ! -s conftest.err
24307        } && test -s conftest$ac_exeext &&
24308        $as_test_x conftest$ac_exeext; then
24309   ac_cv_lib_error_at_line=yes
24310 else
24311   echo "$as_me: failed program was:" >&5
24312 sed 's/^/| /' conftest.$ac_ext >&5
24313
24314         ac_cv_lib_error_at_line=no
24315 fi
24316
24317 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24318       conftest$ac_exeext conftest.$ac_ext
24319 fi
24320 { echo "$as_me:$LINENO: result: $ac_cv_lib_error_at_line" >&5
24321 echo "${ECHO_T}$ac_cv_lib_error_at_line" >&6; }
24322 if test $ac_cv_lib_error_at_line = no; then
24323   case " $LIBOBJS " in
24324   *" error.$ac_objext "* ) ;;
24325   *) LIBOBJS="$LIBOBJS error.$ac_objext"
24326  ;;
24327 esac
24328
24329 fi
24330
24331
24332 for ac_header in vfork.h
24333 do
24334 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24335 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24336   { echo "$as_me:$LINENO: checking for $ac_header" >&5
24337 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24338 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24339   echo $ECHO_N "(cached) $ECHO_C" >&6
24340 fi
24341 ac_res=`eval echo '${'$as_ac_Header'}'`
24342                { echo "$as_me:$LINENO: result: $ac_res" >&5
24343 echo "${ECHO_T}$ac_res" >&6; }
24344 else
24345   # Is the header compilable?
24346 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
24347 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
24348 cat >conftest.$ac_ext <<_ACEOF
24349 /* confdefs.h.  */
24350 _ACEOF
24351 cat confdefs.h >>conftest.$ac_ext
24352 cat >>conftest.$ac_ext <<_ACEOF
24353 /* end confdefs.h.  */
24354 $ac_includes_default
24355 #include <$ac_header>
24356 _ACEOF
24357 rm -f conftest.$ac_objext
24358 if { (ac_try="$ac_compile"
24359 case "(($ac_try" in
24360   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24361   *) ac_try_echo=$ac_try;;
24362 esac
24363 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24364   (eval "$ac_compile") 2>conftest.er1
24365   ac_status=$?
24366   grep -v '^ *+' conftest.er1 >conftest.err
24367   rm -f conftest.er1
24368   cat conftest.err >&5
24369   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24370   (exit $ac_status); } && {
24371          test -z "$ac_c_werror_flag" ||
24372          test ! -s conftest.err
24373        } && test -s conftest.$ac_objext; then
24374   ac_header_compiler=yes
24375 else
24376   echo "$as_me: failed program was:" >&5
24377 sed 's/^/| /' conftest.$ac_ext >&5
24378
24379         ac_header_compiler=no
24380 fi
24381
24382 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24383 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24384 echo "${ECHO_T}$ac_header_compiler" >&6; }
24385
24386 # Is the header present?
24387 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
24388 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
24389 cat >conftest.$ac_ext <<_ACEOF
24390 /* confdefs.h.  */
24391 _ACEOF
24392 cat confdefs.h >>conftest.$ac_ext
24393 cat >>conftest.$ac_ext <<_ACEOF
24394 /* end confdefs.h.  */
24395 #include <$ac_header>
24396 _ACEOF
24397 if { (ac_try="$ac_cpp conftest.$ac_ext"
24398 case "(($ac_try" in
24399   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24400   *) ac_try_echo=$ac_try;;
24401 esac
24402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24403   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24404   ac_status=$?
24405   grep -v '^ *+' conftest.er1 >conftest.err
24406   rm -f conftest.er1
24407   cat conftest.err >&5
24408   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24409   (exit $ac_status); } >/dev/null && {
24410          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24411          test ! -s conftest.err
24412        }; then
24413   ac_header_preproc=yes
24414 else
24415   echo "$as_me: failed program was:" >&5
24416 sed 's/^/| /' conftest.$ac_ext >&5
24417
24418   ac_header_preproc=no
24419 fi
24420
24421 rm -f conftest.err conftest.$ac_ext
24422 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24423 echo "${ECHO_T}$ac_header_preproc" >&6; }
24424
24425 # So?  What about this header?
24426 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24427   yes:no: )
24428     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24429 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24430     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24431 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24432     ac_header_preproc=yes
24433     ;;
24434   no:yes:* )
24435     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24436 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24437     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
24438 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
24439     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24440 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24441     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
24442 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
24443     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24444 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24445     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24446 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24447     ( cat <<\_ASBOX
24448 ## ------------------------------- ##
24449 ## Report this to nfs@lists.sf.net ##
24450 ## ------------------------------- ##
24451 _ASBOX
24452      ) | sed "s/^/$as_me: WARNING:     /" >&2
24453     ;;
24454 esac
24455 { echo "$as_me:$LINENO: checking for $ac_header" >&5
24456 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24457 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24458   echo $ECHO_N "(cached) $ECHO_C" >&6
24459 else
24460   eval "$as_ac_Header=\$ac_header_preproc"
24461 fi
24462 ac_res=`eval echo '${'$as_ac_Header'}'`
24463                { echo "$as_me:$LINENO: result: $ac_res" >&5
24464 echo "${ECHO_T}$ac_res" >&6; }
24465
24466 fi
24467 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24468   cat >>confdefs.h <<_ACEOF
24469 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24470 _ACEOF
24471
24472 fi
24473
24474 done
24475
24476
24477
24478 for ac_func in fork vfork
24479 do
24480 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24481 { echo "$as_me:$LINENO: checking for $ac_func" >&5
24482 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
24483 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
24484   echo $ECHO_N "(cached) $ECHO_C" >&6
24485 else
24486   cat >conftest.$ac_ext <<_ACEOF
24487 /* confdefs.h.  */
24488 _ACEOF
24489 cat confdefs.h >>conftest.$ac_ext
24490 cat >>conftest.$ac_ext <<_ACEOF
24491 /* end confdefs.h.  */
24492 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24493    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24494 #define $ac_func innocuous_$ac_func
24495
24496 /* System header to define __stub macros and hopefully few prototypes,
24497     which can conflict with char $ac_func (); below.
24498     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24499     <limits.h> exists even on freestanding compilers.  */
24500
24501 #ifdef __STDC__
24502 # include <limits.h>
24503 #else
24504 # include <assert.h>
24505 #endif
24506
24507 #undef $ac_func
24508
24509 /* Override any GCC internal prototype to avoid an error.
24510    Use char because int might match the return type of a GCC
24511    builtin and then its argument prototype would still apply.  */
24512 #ifdef __cplusplus
24513 extern "C"
24514 #endif
24515 char $ac_func ();
24516 /* The GNU C library defines this for functions which it implements
24517     to always fail with ENOSYS.  Some functions are actually named
24518     something starting with __ and the normal name is an alias.  */
24519 #if defined __stub_$ac_func || defined __stub___$ac_func
24520 choke me
24521 #endif
24522
24523 int
24524 main ()
24525 {
24526 return $ac_func ();
24527   ;
24528   return 0;
24529 }
24530 _ACEOF
24531 rm -f conftest.$ac_objext conftest$ac_exeext
24532 if { (ac_try="$ac_link"
24533 case "(($ac_try" in
24534   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24535   *) ac_try_echo=$ac_try;;
24536 esac
24537 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24538   (eval "$ac_link") 2>conftest.er1
24539   ac_status=$?
24540   grep -v '^ *+' conftest.er1 >conftest.err
24541   rm -f conftest.er1
24542   cat conftest.err >&5
24543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24544   (exit $ac_status); } && {
24545          test -z "$ac_c_werror_flag" ||
24546          test ! -s conftest.err
24547        } && test -s conftest$ac_exeext &&
24548        $as_test_x conftest$ac_exeext; then
24549   eval "$as_ac_var=yes"
24550 else
24551   echo "$as_me: failed program was:" >&5
24552 sed 's/^/| /' conftest.$ac_ext >&5
24553
24554         eval "$as_ac_var=no"
24555 fi
24556
24557 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24558       conftest$ac_exeext conftest.$ac_ext
24559 fi
24560 ac_res=`eval echo '${'$as_ac_var'}'`
24561                { echo "$as_me:$LINENO: result: $ac_res" >&5
24562 echo "${ECHO_T}$ac_res" >&6; }
24563 if test `eval echo '${'$as_ac_var'}'` = yes; then
24564   cat >>confdefs.h <<_ACEOF
24565 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24566 _ACEOF
24567
24568 fi
24569 done
24570
24571 if test "x$ac_cv_func_fork" = xyes; then
24572   { echo "$as_me:$LINENO: checking for working fork" >&5
24573 echo $ECHO_N "checking for working fork... $ECHO_C" >&6; }
24574 if test "${ac_cv_func_fork_works+set}" = set; then
24575   echo $ECHO_N "(cached) $ECHO_C" >&6
24576 else
24577   if test "$cross_compiling" = yes; then
24578   ac_cv_func_fork_works=cross
24579 else
24580   cat >conftest.$ac_ext <<_ACEOF
24581 /* confdefs.h.  */
24582 _ACEOF
24583 cat confdefs.h >>conftest.$ac_ext
24584 cat >>conftest.$ac_ext <<_ACEOF
24585 /* end confdefs.h.  */
24586 $ac_includes_default
24587 int
24588 main ()
24589 {
24590
24591           /* By Ruediger Kuhlmann. */
24592           return fork () < 0;
24593
24594   ;
24595   return 0;
24596 }
24597 _ACEOF
24598 rm -f conftest$ac_exeext
24599 if { (ac_try="$ac_link"
24600 case "(($ac_try" in
24601   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24602   *) ac_try_echo=$ac_try;;
24603 esac
24604 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24605   (eval "$ac_link") 2>&5
24606   ac_status=$?
24607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24608   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24609   { (case "(($ac_try" in
24610   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24611   *) ac_try_echo=$ac_try;;
24612 esac
24613 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24614   (eval "$ac_try") 2>&5
24615   ac_status=$?
24616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24617   (exit $ac_status); }; }; then
24618   ac_cv_func_fork_works=yes
24619 else
24620   echo "$as_me: program exited with status $ac_status" >&5
24621 echo "$as_me: failed program was:" >&5
24622 sed 's/^/| /' conftest.$ac_ext >&5
24623
24624 ( exit $ac_status )
24625 ac_cv_func_fork_works=no
24626 fi
24627 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24628 fi
24629
24630
24631 fi
24632 { echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
24633 echo "${ECHO_T}$ac_cv_func_fork_works" >&6; }
24634
24635 else
24636   ac_cv_func_fork_works=$ac_cv_func_fork
24637 fi
24638 if test "x$ac_cv_func_fork_works" = xcross; then
24639   case $host in
24640     *-*-amigaos* | *-*-msdosdjgpp*)
24641       # Override, as these systems have only a dummy fork() stub
24642       ac_cv_func_fork_works=no
24643       ;;
24644     *)
24645       ac_cv_func_fork_works=yes
24646       ;;
24647   esac
24648   { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
24649 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
24650 fi
24651 ac_cv_func_vfork_works=$ac_cv_func_vfork
24652 if test "x$ac_cv_func_vfork" = xyes; then
24653   { echo "$as_me:$LINENO: checking for working vfork" >&5
24654 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6; }
24655 if test "${ac_cv_func_vfork_works+set}" = set; then
24656   echo $ECHO_N "(cached) $ECHO_C" >&6
24657 else
24658   if test "$cross_compiling" = yes; then
24659   ac_cv_func_vfork_works=cross
24660 else
24661   cat >conftest.$ac_ext <<_ACEOF
24662 /* confdefs.h.  */
24663 _ACEOF
24664 cat confdefs.h >>conftest.$ac_ext
24665 cat >>conftest.$ac_ext <<_ACEOF
24666 /* end confdefs.h.  */
24667 /* Thanks to Paul Eggert for this test.  */
24668 $ac_includes_default
24669 #include <sys/wait.h>
24670 #ifdef HAVE_VFORK_H
24671 # include <vfork.h>
24672 #endif
24673 /* On some sparc systems, changes by the child to local and incoming
24674    argument registers are propagated back to the parent.  The compiler
24675    is told about this with #include <vfork.h>, but some compilers
24676    (e.g. gcc -O) don't grok <vfork.h>.  Test for this by using a
24677    static variable whose address is put into a register that is
24678    clobbered by the vfork.  */
24679 static void
24680 #ifdef __cplusplus
24681 sparc_address_test (int arg)
24682 # else
24683 sparc_address_test (arg) int arg;
24684 #endif
24685 {
24686   static pid_t child;
24687   if (!child) {
24688     child = vfork ();
24689     if (child < 0) {
24690       perror ("vfork");
24691       _exit(2);
24692     }
24693     if (!child) {
24694       arg = getpid();
24695       write(-1, "", 0);
24696       _exit (arg);
24697     }
24698   }
24699 }
24700
24701 int
24702 main ()
24703 {
24704   pid_t parent = getpid ();
24705   pid_t child;
24706
24707   sparc_address_test (0);
24708
24709   child = vfork ();
24710
24711   if (child == 0) {
24712     /* Here is another test for sparc vfork register problems.  This
24713        test uses lots of local variables, at least as many local
24714        variables as main has allocated so far including compiler
24715        temporaries.  4 locals are enough for gcc 1.40.3 on a Solaris
24716        4.1.3 sparc, but we use 8 to be safe.  A buggy compiler should
24717        reuse the register of parent for one of the local variables,
24718        since it will think that parent can't possibly be used any more
24719        in this routine.  Assigning to the local variable will thus
24720        munge parent in the parent process.  */
24721     pid_t
24722       p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
24723       p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
24724     /* Convince the compiler that p..p7 are live; otherwise, it might
24725        use the same hardware register for all 8 local variables.  */
24726     if (p != p1 || p != p2 || p != p3 || p != p4
24727         || p != p5 || p != p6 || p != p7)
24728       _exit(1);
24729
24730     /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
24731        from child file descriptors.  If the child closes a descriptor
24732        before it execs or exits, this munges the parent's descriptor
24733        as well.  Test for this by closing stdout in the child.  */
24734     _exit(close(fileno(stdout)) != 0);
24735   } else {
24736     int status;
24737     struct stat st;
24738
24739     while (wait(&status) != child)
24740       ;
24741     return (
24742          /* Was there some problem with vforking?  */
24743          child < 0
24744
24745          /* Did the child fail?  (This shouldn't happen.)  */
24746          || status
24747
24748          /* Did the vfork/compiler bug occur?  */
24749          || parent != getpid()
24750
24751          /* Did the file descriptor bug occur?  */
24752          || fstat(fileno(stdout), &st) != 0
24753          );
24754   }
24755 }
24756 _ACEOF
24757 rm -f conftest$ac_exeext
24758 if { (ac_try="$ac_link"
24759 case "(($ac_try" in
24760   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24761   *) ac_try_echo=$ac_try;;
24762 esac
24763 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24764   (eval "$ac_link") 2>&5
24765   ac_status=$?
24766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24767   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24768   { (case "(($ac_try" in
24769   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24770   *) ac_try_echo=$ac_try;;
24771 esac
24772 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24773   (eval "$ac_try") 2>&5
24774   ac_status=$?
24775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24776   (exit $ac_status); }; }; then
24777   ac_cv_func_vfork_works=yes
24778 else
24779   echo "$as_me: program exited with status $ac_status" >&5
24780 echo "$as_me: failed program was:" >&5
24781 sed 's/^/| /' conftest.$ac_ext >&5
24782
24783 ( exit $ac_status )
24784 ac_cv_func_vfork_works=no
24785 fi
24786 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24787 fi
24788
24789
24790 fi
24791 { echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
24792 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6; }
24793
24794 fi;
24795 if test "x$ac_cv_func_fork_works" = xcross; then
24796   ac_cv_func_vfork_works=$ac_cv_func_vfork
24797   { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
24798 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
24799 fi
24800
24801 if test "x$ac_cv_func_vfork_works" = xyes; then
24802
24803 cat >>confdefs.h <<\_ACEOF
24804 #define HAVE_WORKING_VFORK 1
24805 _ACEOF
24806
24807 else
24808
24809 cat >>confdefs.h <<\_ACEOF
24810 #define vfork fork
24811 _ACEOF
24812
24813 fi
24814 if test "x$ac_cv_func_fork_works" = xyes; then
24815
24816 cat >>confdefs.h <<\_ACEOF
24817 #define HAVE_WORKING_FORK 1
24818 _ACEOF
24819
24820 fi
24821
24822 { echo "$as_me:$LINENO: checking type of array argument to getgroups" >&5
24823 echo $ECHO_N "checking type of array argument to getgroups... $ECHO_C" >&6; }
24824 if test "${ac_cv_type_getgroups+set}" = set; then
24825   echo $ECHO_N "(cached) $ECHO_C" >&6
24826 else
24827   if test "$cross_compiling" = yes; then
24828   ac_cv_type_getgroups=cross
24829 else
24830   cat >conftest.$ac_ext <<_ACEOF
24831 /* confdefs.h.  */
24832 _ACEOF
24833 cat confdefs.h >>conftest.$ac_ext
24834 cat >>conftest.$ac_ext <<_ACEOF
24835 /* end confdefs.h.  */
24836 /* Thanks to Mike Rendell for this test.  */
24837 $ac_includes_default
24838 #define NGID 256
24839 #undef MAX
24840 #define MAX(x, y) ((x) > (y) ? (x) : (y))
24841
24842 int
24843 main ()
24844 {
24845   gid_t gidset[NGID];
24846   int i, n;
24847   union { gid_t gval; long int lval; }  val;
24848
24849   val.lval = -1;
24850   for (i = 0; i < NGID; i++)
24851     gidset[i] = val.gval;
24852   n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
24853                  gidset);
24854   /* Exit non-zero if getgroups seems to require an array of ints.  This
24855      happens when gid_t is short int but getgroups modifies an array
24856      of ints.  */
24857   return n > 0 && gidset[n] != val.gval;
24858 }
24859 _ACEOF
24860 rm -f conftest$ac_exeext
24861 if { (ac_try="$ac_link"
24862 case "(($ac_try" in
24863   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24864   *) ac_try_echo=$ac_try;;
24865 esac
24866 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24867   (eval "$ac_link") 2>&5
24868   ac_status=$?
24869   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24870   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24871   { (case "(($ac_try" in
24872   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24873   *) ac_try_echo=$ac_try;;
24874 esac
24875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24876   (eval "$ac_try") 2>&5
24877   ac_status=$?
24878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24879   (exit $ac_status); }; }; then
24880   ac_cv_type_getgroups=gid_t
24881 else
24882   echo "$as_me: program exited with status $ac_status" >&5
24883 echo "$as_me: failed program was:" >&5
24884 sed 's/^/| /' conftest.$ac_ext >&5
24885
24886 ( exit $ac_status )
24887 ac_cv_type_getgroups=int
24888 fi
24889 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24890 fi
24891
24892
24893 if test $ac_cv_type_getgroups = cross; then
24894         cat >conftest.$ac_ext <<_ACEOF
24895 /* confdefs.h.  */
24896 _ACEOF
24897 cat confdefs.h >>conftest.$ac_ext
24898 cat >>conftest.$ac_ext <<_ACEOF
24899 /* end confdefs.h.  */
24900 #include <unistd.h>
24901
24902 _ACEOF
24903 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24904   $EGREP "getgroups.*int.*gid_t" >/dev/null 2>&1; then
24905   ac_cv_type_getgroups=gid_t
24906 else
24907   ac_cv_type_getgroups=int
24908 fi
24909 rm -f conftest*
24910
24911 fi
24912 fi
24913 { echo "$as_me:$LINENO: result: $ac_cv_type_getgroups" >&5
24914 echo "${ECHO_T}$ac_cv_type_getgroups" >&6; }
24915
24916 cat >>confdefs.h <<_ACEOF
24917 #define GETGROUPS_T $ac_cv_type_getgroups
24918 _ACEOF
24919
24920
24921 { echo "$as_me:$LINENO: checking for getgroups" >&5
24922 echo $ECHO_N "checking for getgroups... $ECHO_C" >&6; }
24923 if test "${ac_cv_func_getgroups+set}" = set; then
24924   echo $ECHO_N "(cached) $ECHO_C" >&6
24925 else
24926   cat >conftest.$ac_ext <<_ACEOF
24927 /* confdefs.h.  */
24928 _ACEOF
24929 cat confdefs.h >>conftest.$ac_ext
24930 cat >>conftest.$ac_ext <<_ACEOF
24931 /* end confdefs.h.  */
24932 /* Define getgroups to an innocuous variant, in case <limits.h> declares getgroups.
24933    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24934 #define getgroups innocuous_getgroups
24935
24936 /* System header to define __stub macros and hopefully few prototypes,
24937     which can conflict with char getgroups (); below.
24938     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24939     <limits.h> exists even on freestanding compilers.  */
24940
24941 #ifdef __STDC__
24942 # include <limits.h>
24943 #else
24944 # include <assert.h>
24945 #endif
24946
24947 #undef getgroups
24948
24949 /* Override any GCC internal prototype to avoid an error.
24950    Use char because int might match the return type of a GCC
24951    builtin and then its argument prototype would still apply.  */
24952 #ifdef __cplusplus
24953 extern "C"
24954 #endif
24955 char getgroups ();
24956 /* The GNU C library defines this for functions which it implements
24957     to always fail with ENOSYS.  Some functions are actually named
24958     something starting with __ and the normal name is an alias.  */
24959 #if defined __stub_getgroups || defined __stub___getgroups
24960 choke me
24961 #endif
24962
24963 int
24964 main ()
24965 {
24966 return getgroups ();
24967   ;
24968   return 0;
24969 }
24970 _ACEOF
24971 rm -f conftest.$ac_objext conftest$ac_exeext
24972 if { (ac_try="$ac_link"
24973 case "(($ac_try" in
24974   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24975   *) ac_try_echo=$ac_try;;
24976 esac
24977 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24978   (eval "$ac_link") 2>conftest.er1
24979   ac_status=$?
24980   grep -v '^ *+' conftest.er1 >conftest.err
24981   rm -f conftest.er1
24982   cat conftest.err >&5
24983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24984   (exit $ac_status); } && {
24985          test -z "$ac_c_werror_flag" ||
24986          test ! -s conftest.err
24987        } && test -s conftest$ac_exeext &&
24988        $as_test_x conftest$ac_exeext; then
24989   ac_cv_func_getgroups=yes
24990 else
24991   echo "$as_me: failed program was:" >&5
24992 sed 's/^/| /' conftest.$ac_ext >&5
24993
24994         ac_cv_func_getgroups=no
24995 fi
24996
24997 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24998       conftest$ac_exeext conftest.$ac_ext
24999 fi
25000 { echo "$as_me:$LINENO: result: $ac_cv_func_getgroups" >&5
25001 echo "${ECHO_T}$ac_cv_func_getgroups" >&6; }
25002
25003
25004 # If we don't yet have getgroups, see if it's in -lbsd.
25005 # This is reported to be necessary on an ITOS 3000WS running SEIUX 3.1.
25006 ac_save_LIBS=$LIBS
25007 if test $ac_cv_func_getgroups = no; then
25008   { echo "$as_me:$LINENO: checking for getgroups in -lbsd" >&5
25009 echo $ECHO_N "checking for getgroups in -lbsd... $ECHO_C" >&6; }
25010 if test "${ac_cv_lib_bsd_getgroups+set}" = set; then
25011   echo $ECHO_N "(cached) $ECHO_C" >&6
25012 else
25013   ac_check_lib_save_LIBS=$LIBS
25014 LIBS="-lbsd  $LIBS"
25015 cat >conftest.$ac_ext <<_ACEOF
25016 /* confdefs.h.  */
25017 _ACEOF
25018 cat confdefs.h >>conftest.$ac_ext
25019 cat >>conftest.$ac_ext <<_ACEOF
25020 /* end confdefs.h.  */
25021
25022 /* Override any GCC internal prototype to avoid an error.
25023    Use char because int might match the return type of a GCC
25024    builtin and then its argument prototype would still apply.  */
25025 #ifdef __cplusplus
25026 extern "C"
25027 #endif
25028 char getgroups ();
25029 int
25030 main ()
25031 {
25032 return getgroups ();
25033   ;
25034   return 0;
25035 }
25036 _ACEOF
25037 rm -f conftest.$ac_objext conftest$ac_exeext
25038 if { (ac_try="$ac_link"
25039 case "(($ac_try" in
25040   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25041   *) ac_try_echo=$ac_try;;
25042 esac
25043 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25044   (eval "$ac_link") 2>conftest.er1
25045   ac_status=$?
25046   grep -v '^ *+' conftest.er1 >conftest.err
25047   rm -f conftest.er1
25048   cat conftest.err >&5
25049   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25050   (exit $ac_status); } && {
25051          test -z "$ac_c_werror_flag" ||
25052          test ! -s conftest.err
25053        } && test -s conftest$ac_exeext &&
25054        $as_test_x conftest$ac_exeext; then
25055   ac_cv_lib_bsd_getgroups=yes
25056 else
25057   echo "$as_me: failed program was:" >&5
25058 sed 's/^/| /' conftest.$ac_ext >&5
25059
25060         ac_cv_lib_bsd_getgroups=no
25061 fi
25062
25063 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25064       conftest$ac_exeext conftest.$ac_ext
25065 LIBS=$ac_check_lib_save_LIBS
25066 fi
25067 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_getgroups" >&5
25068 echo "${ECHO_T}$ac_cv_lib_bsd_getgroups" >&6; }
25069 if test $ac_cv_lib_bsd_getgroups = yes; then
25070   GETGROUPS_LIB=-lbsd
25071 fi
25072
25073 fi
25074
25075 # Run the program to test the functionality of the system-supplied
25076 # getgroups function only if there is such a function.
25077 if test $ac_cv_func_getgroups = yes; then
25078   { echo "$as_me:$LINENO: checking for working getgroups" >&5
25079 echo $ECHO_N "checking for working getgroups... $ECHO_C" >&6; }
25080 if test "${ac_cv_func_getgroups_works+set}" = set; then
25081   echo $ECHO_N "(cached) $ECHO_C" >&6
25082 else
25083   if test "$cross_compiling" = yes; then
25084   ac_cv_func_getgroups_works=no
25085 else
25086   cat >conftest.$ac_ext <<_ACEOF
25087 /* confdefs.h.  */
25088 _ACEOF
25089 cat confdefs.h >>conftest.$ac_ext
25090 cat >>conftest.$ac_ext <<_ACEOF
25091 /* end confdefs.h.  */
25092 $ac_includes_default
25093 int
25094 main ()
25095 {
25096 /* On Ultrix 4.3, getgroups (0, 0) always fails.  */
25097        return getgroups (0, 0) == -1;
25098   ;
25099   return 0;
25100 }
25101 _ACEOF
25102 rm -f conftest$ac_exeext
25103 if { (ac_try="$ac_link"
25104 case "(($ac_try" in
25105   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25106   *) ac_try_echo=$ac_try;;
25107 esac
25108 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25109   (eval "$ac_link") 2>&5
25110   ac_status=$?
25111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25112   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25113   { (case "(($ac_try" in
25114   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25115   *) ac_try_echo=$ac_try;;
25116 esac
25117 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25118   (eval "$ac_try") 2>&5
25119   ac_status=$?
25120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25121   (exit $ac_status); }; }; then
25122   ac_cv_func_getgroups_works=yes
25123 else
25124   echo "$as_me: program exited with status $ac_status" >&5
25125 echo "$as_me: failed program was:" >&5
25126 sed 's/^/| /' conftest.$ac_ext >&5
25127
25128 ( exit $ac_status )
25129 ac_cv_func_getgroups_works=no
25130 fi
25131 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25132 fi
25133
25134
25135
25136 fi
25137 { echo "$as_me:$LINENO: result: $ac_cv_func_getgroups_works" >&5
25138 echo "${ECHO_T}$ac_cv_func_getgroups_works" >&6; }
25139   if test $ac_cv_func_getgroups_works = yes; then
25140
25141 cat >>confdefs.h <<\_ACEOF
25142 #define HAVE_GETGROUPS 1
25143 _ACEOF
25144
25145   fi
25146 fi
25147 LIBS=$ac_save_LIBS
25148
25149 # getmntent is in the standard C library on UNICOS, in -lsun on Irix 4,
25150 # -lseq on Dynix/PTX, -lgen on Unixware.
25151 { echo "$as_me:$LINENO: checking for library containing getmntent" >&5
25152 echo $ECHO_N "checking for library containing getmntent... $ECHO_C" >&6; }
25153 if test "${ac_cv_search_getmntent+set}" = set; then
25154   echo $ECHO_N "(cached) $ECHO_C" >&6
25155 else
25156   ac_func_search_save_LIBS=$LIBS
25157 cat >conftest.$ac_ext <<_ACEOF
25158 /* confdefs.h.  */
25159 _ACEOF
25160 cat confdefs.h >>conftest.$ac_ext
25161 cat >>conftest.$ac_ext <<_ACEOF
25162 /* end confdefs.h.  */
25163
25164 /* Override any GCC internal prototype to avoid an error.
25165    Use char because int might match the return type of a GCC
25166    builtin and then its argument prototype would still apply.  */
25167 #ifdef __cplusplus
25168 extern "C"
25169 #endif
25170 char getmntent ();
25171 int
25172 main ()
25173 {
25174 return getmntent ();
25175   ;
25176   return 0;
25177 }
25178 _ACEOF
25179 for ac_lib in '' sun seq gen; do
25180   if test -z "$ac_lib"; then
25181     ac_res="none required"
25182   else
25183     ac_res=-l$ac_lib
25184     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
25185   fi
25186   rm -f conftest.$ac_objext conftest$ac_exeext
25187 if { (ac_try="$ac_link"
25188 case "(($ac_try" in
25189   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25190   *) ac_try_echo=$ac_try;;
25191 esac
25192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25193   (eval "$ac_link") 2>conftest.er1
25194   ac_status=$?
25195   grep -v '^ *+' conftest.er1 >conftest.err
25196   rm -f conftest.er1
25197   cat conftest.err >&5
25198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25199   (exit $ac_status); } && {
25200          test -z "$ac_c_werror_flag" ||
25201          test ! -s conftest.err
25202        } && test -s conftest$ac_exeext &&
25203        $as_test_x conftest$ac_exeext; then
25204   ac_cv_search_getmntent=$ac_res
25205 else
25206   echo "$as_me: failed program was:" >&5
25207 sed 's/^/| /' conftest.$ac_ext >&5
25208
25209
25210 fi
25211
25212 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25213       conftest$ac_exeext
25214   if test "${ac_cv_search_getmntent+set}" = set; then
25215   break
25216 fi
25217 done
25218 if test "${ac_cv_search_getmntent+set}" = set; then
25219   :
25220 else
25221   ac_cv_search_getmntent=no
25222 fi
25223 rm conftest.$ac_ext
25224 LIBS=$ac_func_search_save_LIBS
25225 fi
25226 { echo "$as_me:$LINENO: result: $ac_cv_search_getmntent" >&5
25227 echo "${ECHO_T}$ac_cv_search_getmntent" >&6; }
25228 ac_res=$ac_cv_search_getmntent
25229 if test "$ac_res" != no; then
25230   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25231   ac_cv_func_getmntent=yes
25232
25233 cat >>confdefs.h <<\_ACEOF
25234 #define HAVE_GETMNTENT 1
25235 _ACEOF
25236
25237 else
25238   ac_cv_func_getmntent=no
25239 fi
25240
25241
25242 if test $ac_cv_c_compiler_gnu = yes; then
25243     { echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
25244 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6; }
25245 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
25246   echo $ECHO_N "(cached) $ECHO_C" >&6
25247 else
25248     ac_pattern="Autoconf.*'x'"
25249   cat >conftest.$ac_ext <<_ACEOF
25250 /* confdefs.h.  */
25251 _ACEOF
25252 cat confdefs.h >>conftest.$ac_ext
25253 cat >>conftest.$ac_ext <<_ACEOF
25254 /* end confdefs.h.  */
25255 #include <sgtty.h>
25256 Autoconf TIOCGETP
25257 _ACEOF
25258 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25259   $EGREP "$ac_pattern" >/dev/null 2>&1; then
25260   ac_cv_prog_gcc_traditional=yes
25261 else
25262   ac_cv_prog_gcc_traditional=no
25263 fi
25264 rm -f conftest*
25265
25266
25267   if test $ac_cv_prog_gcc_traditional = no; then
25268     cat >conftest.$ac_ext <<_ACEOF
25269 /* confdefs.h.  */
25270 _ACEOF
25271 cat confdefs.h >>conftest.$ac_ext
25272 cat >>conftest.$ac_ext <<_ACEOF
25273 /* end confdefs.h.  */
25274 #include <termio.h>
25275 Autoconf TCGETA
25276 _ACEOF
25277 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25278   $EGREP "$ac_pattern" >/dev/null 2>&1; then
25279   ac_cv_prog_gcc_traditional=yes
25280 fi
25281 rm -f conftest*
25282
25283   fi
25284 fi
25285 { echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
25286 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6; }
25287   if test $ac_cv_prog_gcc_traditional = yes; then
25288     CC="$CC -traditional"
25289   fi
25290 fi
25291
25292 { echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
25293 echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6; }
25294 if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
25295   echo $ECHO_N "(cached) $ECHO_C" >&6
25296 else
25297   rm -f conftest.sym conftest.file
25298 echo >conftest.file
25299 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
25300   if test "$cross_compiling" = yes; then
25301   ac_cv_func_lstat_dereferences_slashed_symlink=no
25302 else
25303   cat >conftest.$ac_ext <<_ACEOF
25304 /* confdefs.h.  */
25305 _ACEOF
25306 cat confdefs.h >>conftest.$ac_ext
25307 cat >>conftest.$ac_ext <<_ACEOF
25308 /* end confdefs.h.  */
25309 $ac_includes_default
25310 int
25311 main ()
25312 {
25313 struct stat sbuf;
25314      /* Linux will dereference the symlink and fail.
25315         That is better in the sense that it means we will not
25316         have to compile and use the lstat wrapper.  */
25317      return lstat ("conftest.sym/", &sbuf) == 0;
25318   ;
25319   return 0;
25320 }
25321 _ACEOF
25322 rm -f conftest$ac_exeext
25323 if { (ac_try="$ac_link"
25324 case "(($ac_try" in
25325   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25326   *) ac_try_echo=$ac_try;;
25327 esac
25328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25329   (eval "$ac_link") 2>&5
25330   ac_status=$?
25331   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25332   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25333   { (case "(($ac_try" in
25334   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25335   *) ac_try_echo=$ac_try;;
25336 esac
25337 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25338   (eval "$ac_try") 2>&5
25339   ac_status=$?
25340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25341   (exit $ac_status); }; }; then
25342   ac_cv_func_lstat_dereferences_slashed_symlink=yes
25343 else
25344   echo "$as_me: program exited with status $ac_status" >&5
25345 echo "$as_me: failed program was:" >&5
25346 sed 's/^/| /' conftest.$ac_ext >&5
25347
25348 ( exit $ac_status )
25349 ac_cv_func_lstat_dereferences_slashed_symlink=no
25350 fi
25351 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25352 fi
25353
25354
25355 else
25356   # If the `ln -s' command failed, then we probably don't even
25357   # have an lstat function.
25358   ac_cv_func_lstat_dereferences_slashed_symlink=no
25359 fi
25360 rm -f conftest.sym conftest.file
25361
25362 fi
25363 { echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
25364 echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
25365
25366 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
25367
25368 cat >>confdefs.h <<_ACEOF
25369 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
25370 _ACEOF
25371
25372
25373 if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
25374   case " $LIBOBJS " in
25375   *" lstat.$ac_objext "* ) ;;
25376   *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
25377  ;;
25378 esac
25379
25380 fi
25381
25382 { echo "$as_me:$LINENO: checking whether lstat accepts an empty string" >&5
25383 echo $ECHO_N "checking whether lstat accepts an empty string... $ECHO_C" >&6; }
25384 if test "${ac_cv_func_lstat_empty_string_bug+set}" = set; then
25385   echo $ECHO_N "(cached) $ECHO_C" >&6
25386 else
25387   if test "$cross_compiling" = yes; then
25388   ac_cv_func_lstat_empty_string_bug=yes
25389 else
25390   cat >conftest.$ac_ext <<_ACEOF
25391 /* confdefs.h.  */
25392 _ACEOF
25393 cat confdefs.h >>conftest.$ac_ext
25394 cat >>conftest.$ac_ext <<_ACEOF
25395 /* end confdefs.h.  */
25396 $ac_includes_default
25397 int
25398 main ()
25399 {
25400 struct stat sbuf;
25401   return lstat ("", &sbuf) == 0;
25402   ;
25403   return 0;
25404 }
25405 _ACEOF
25406 rm -f conftest$ac_exeext
25407 if { (ac_try="$ac_link"
25408 case "(($ac_try" in
25409   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25410   *) ac_try_echo=$ac_try;;
25411 esac
25412 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25413   (eval "$ac_link") 2>&5
25414   ac_status=$?
25415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25416   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25417   { (case "(($ac_try" in
25418   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25419   *) ac_try_echo=$ac_try;;
25420 esac
25421 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25422   (eval "$ac_try") 2>&5
25423   ac_status=$?
25424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25425   (exit $ac_status); }; }; then
25426   ac_cv_func_lstat_empty_string_bug=no
25427 else
25428   echo "$as_me: program exited with status $ac_status" >&5
25429 echo "$as_me: failed program was:" >&5
25430 sed 's/^/| /' conftest.$ac_ext >&5
25431
25432 ( exit $ac_status )
25433 ac_cv_func_lstat_empty_string_bug=yes
25434 fi
25435 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25436 fi
25437
25438
25439 fi
25440 { echo "$as_me:$LINENO: result: $ac_cv_func_lstat_empty_string_bug" >&5
25441 echo "${ECHO_T}$ac_cv_func_lstat_empty_string_bug" >&6; }
25442 if test $ac_cv_func_lstat_empty_string_bug = yes; then
25443   case " $LIBOBJS " in
25444   *" lstat.$ac_objext "* ) ;;
25445   *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
25446  ;;
25447 esac
25448
25449
25450 cat >>confdefs.h <<_ACEOF
25451 #define HAVE_LSTAT_EMPTY_STRING_BUG 1
25452 _ACEOF
25453
25454 fi
25455
25456 { echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
25457 echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6; }
25458 if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
25459   echo $ECHO_N "(cached) $ECHO_C" >&6
25460 else
25461   rm -f conftest.sym conftest.file
25462 echo >conftest.file
25463 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
25464   if test "$cross_compiling" = yes; then
25465   ac_cv_func_lstat_dereferences_slashed_symlink=no
25466 else
25467   cat >conftest.$ac_ext <<_ACEOF
25468 /* confdefs.h.  */
25469 _ACEOF
25470 cat confdefs.h >>conftest.$ac_ext
25471 cat >>conftest.$ac_ext <<_ACEOF
25472 /* end confdefs.h.  */
25473 $ac_includes_default
25474 int
25475 main ()
25476 {
25477 struct stat sbuf;
25478      /* Linux will dereference the symlink and fail.
25479         That is better in the sense that it means we will not
25480         have to compile and use the lstat wrapper.  */
25481      return lstat ("conftest.sym/", &sbuf) == 0;
25482   ;
25483   return 0;
25484 }
25485 _ACEOF
25486 rm -f conftest$ac_exeext
25487 if { (ac_try="$ac_link"
25488 case "(($ac_try" in
25489   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25490   *) ac_try_echo=$ac_try;;
25491 esac
25492 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25493   (eval "$ac_link") 2>&5
25494   ac_status=$?
25495   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25496   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25497   { (case "(($ac_try" in
25498   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25499   *) ac_try_echo=$ac_try;;
25500 esac
25501 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25502   (eval "$ac_try") 2>&5
25503   ac_status=$?
25504   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25505   (exit $ac_status); }; }; then
25506   ac_cv_func_lstat_dereferences_slashed_symlink=yes
25507 else
25508   echo "$as_me: program exited with status $ac_status" >&5
25509 echo "$as_me: failed program was:" >&5
25510 sed 's/^/| /' conftest.$ac_ext >&5
25511
25512 ( exit $ac_status )
25513 ac_cv_func_lstat_dereferences_slashed_symlink=no
25514 fi
25515 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25516 fi
25517
25518
25519 else
25520   # If the `ln -s' command failed, then we probably don't even
25521   # have an lstat function.
25522   ac_cv_func_lstat_dereferences_slashed_symlink=no
25523 fi
25524 rm -f conftest.sym conftest.file
25525
25526 fi
25527 { echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
25528 echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
25529
25530 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
25531
25532 cat >>confdefs.h <<_ACEOF
25533 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
25534 _ACEOF
25535
25536
25537 if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
25538   case " $LIBOBJS " in
25539   *" lstat.$ac_objext "* ) ;;
25540   *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
25541  ;;
25542 esac
25543
25544 fi
25545
25546 { echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
25547 echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6; }
25548 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
25549   echo $ECHO_N "(cached) $ECHO_C" >&6
25550 else
25551   cat >conftest.$ac_ext <<_ACEOF
25552 /* confdefs.h.  */
25553 _ACEOF
25554 cat confdefs.h >>conftest.$ac_ext
25555 cat >>conftest.$ac_ext <<_ACEOF
25556 /* end confdefs.h.  */
25557 #include <sys/types.h>
25558 int
25559 main ()
25560 {
25561 return makedev(0, 0);
25562   ;
25563   return 0;
25564 }
25565 _ACEOF
25566 rm -f conftest.$ac_objext conftest$ac_exeext
25567 if { (ac_try="$ac_link"
25568 case "(($ac_try" in
25569   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25570   *) ac_try_echo=$ac_try;;
25571 esac
25572 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25573   (eval "$ac_link") 2>conftest.er1
25574   ac_status=$?
25575   grep -v '^ *+' conftest.er1 >conftest.err
25576   rm -f conftest.er1
25577   cat conftest.err >&5
25578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25579   (exit $ac_status); } && {
25580          test -z "$ac_c_werror_flag" ||
25581          test ! -s conftest.err
25582        } && test -s conftest$ac_exeext &&
25583        $as_test_x conftest$ac_exeext; then
25584   ac_cv_header_sys_types_h_makedev=yes
25585 else
25586   echo "$as_me: failed program was:" >&5
25587 sed 's/^/| /' conftest.$ac_ext >&5
25588
25589         ac_cv_header_sys_types_h_makedev=no
25590 fi
25591
25592 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25593       conftest$ac_exeext conftest.$ac_ext
25594
25595 fi
25596 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
25597 echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6; }
25598
25599 if test $ac_cv_header_sys_types_h_makedev = no; then
25600 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
25601   { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
25602 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
25603 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
25604   echo $ECHO_N "(cached) $ECHO_C" >&6
25605 fi
25606 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
25607 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
25608 else
25609   # Is the header compilable?
25610 { echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
25611 echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6; }
25612 cat >conftest.$ac_ext <<_ACEOF
25613 /* confdefs.h.  */
25614 _ACEOF
25615 cat confdefs.h >>conftest.$ac_ext
25616 cat >>conftest.$ac_ext <<_ACEOF
25617 /* end confdefs.h.  */
25618 $ac_includes_default
25619 #include <sys/mkdev.h>
25620 _ACEOF
25621 rm -f conftest.$ac_objext
25622 if { (ac_try="$ac_compile"
25623 case "(($ac_try" in
25624   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25625   *) ac_try_echo=$ac_try;;
25626 esac
25627 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25628   (eval "$ac_compile") 2>conftest.er1
25629   ac_status=$?
25630   grep -v '^ *+' conftest.er1 >conftest.err
25631   rm -f conftest.er1
25632   cat conftest.err >&5
25633   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25634   (exit $ac_status); } && {
25635          test -z "$ac_c_werror_flag" ||
25636          test ! -s conftest.err
25637        } && test -s conftest.$ac_objext; then
25638   ac_header_compiler=yes
25639 else
25640   echo "$as_me: failed program was:" >&5
25641 sed 's/^/| /' conftest.$ac_ext >&5
25642
25643         ac_header_compiler=no
25644 fi
25645
25646 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25647 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25648 echo "${ECHO_T}$ac_header_compiler" >&6; }
25649
25650 # Is the header present?
25651 { echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
25652 echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6; }
25653 cat >conftest.$ac_ext <<_ACEOF
25654 /* confdefs.h.  */
25655 _ACEOF
25656 cat confdefs.h >>conftest.$ac_ext
25657 cat >>conftest.$ac_ext <<_ACEOF
25658 /* end confdefs.h.  */
25659 #include <sys/mkdev.h>
25660 _ACEOF
25661 if { (ac_try="$ac_cpp conftest.$ac_ext"
25662 case "(($ac_try" in
25663   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25664   *) ac_try_echo=$ac_try;;
25665 esac
25666 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25667   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25668   ac_status=$?
25669   grep -v '^ *+' conftest.er1 >conftest.err
25670   rm -f conftest.er1
25671   cat conftest.err >&5
25672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25673   (exit $ac_status); } >/dev/null && {
25674          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25675          test ! -s conftest.err
25676        }; then
25677   ac_header_preproc=yes
25678 else
25679   echo "$as_me: failed program was:" >&5
25680 sed 's/^/| /' conftest.$ac_ext >&5
25681
25682   ac_header_preproc=no
25683 fi
25684
25685 rm -f conftest.err conftest.$ac_ext
25686 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25687 echo "${ECHO_T}$ac_header_preproc" >&6; }
25688
25689 # So?  What about this header?
25690 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25691   yes:no: )
25692     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
25693 echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25694     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5
25695 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&2;}
25696     ac_header_preproc=yes
25697     ;;
25698   no:yes:* )
25699     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
25700 echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
25701     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h:     check for missing prerequisite headers?" >&5
25702 echo "$as_me: WARNING: sys/mkdev.h:     check for missing prerequisite headers?" >&2;}
25703     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5
25704 echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;}
25705     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h:     section \"Present But Cannot Be Compiled\"" >&5
25706 echo "$as_me: WARNING: sys/mkdev.h:     section \"Present But Cannot Be Compiled\"" >&2;}
25707     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
25708 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
25709     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5
25710 echo "$as_me: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&2;}
25711     ( cat <<\_ASBOX
25712 ## ------------------------------- ##
25713 ## Report this to nfs@lists.sf.net ##
25714 ## ------------------------------- ##
25715 _ASBOX
25716      ) | sed "s/^/$as_me: WARNING:     /" >&2
25717     ;;
25718 esac
25719 { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
25720 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
25721 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
25722   echo $ECHO_N "(cached) $ECHO_C" >&6
25723 else
25724   ac_cv_header_sys_mkdev_h=$ac_header_preproc
25725 fi
25726 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
25727 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
25728
25729 fi
25730 if test $ac_cv_header_sys_mkdev_h = yes; then
25731
25732 cat >>confdefs.h <<\_ACEOF
25733 #define MAJOR_IN_MKDEV 1
25734 _ACEOF
25735
25736 fi
25737
25738
25739
25740   if test $ac_cv_header_sys_mkdev_h = no; then
25741     if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
25742   { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
25743 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
25744 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
25745   echo $ECHO_N "(cached) $ECHO_C" >&6
25746 fi
25747 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
25748 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
25749 else
25750   # Is the header compilable?
25751 { echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
25752 echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6; }
25753 cat >conftest.$ac_ext <<_ACEOF
25754 /* confdefs.h.  */
25755 _ACEOF
25756 cat confdefs.h >>conftest.$ac_ext
25757 cat >>conftest.$ac_ext <<_ACEOF
25758 /* end confdefs.h.  */
25759 $ac_includes_default
25760 #include <sys/sysmacros.h>
25761 _ACEOF
25762 rm -f conftest.$ac_objext
25763 if { (ac_try="$ac_compile"
25764 case "(($ac_try" in
25765   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25766   *) ac_try_echo=$ac_try;;
25767 esac
25768 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25769   (eval "$ac_compile") 2>conftest.er1
25770   ac_status=$?
25771   grep -v '^ *+' conftest.er1 >conftest.err
25772   rm -f conftest.er1
25773   cat conftest.err >&5
25774   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25775   (exit $ac_status); } && {
25776          test -z "$ac_c_werror_flag" ||
25777          test ! -s conftest.err
25778        } && test -s conftest.$ac_objext; then
25779   ac_header_compiler=yes
25780 else
25781   echo "$as_me: failed program was:" >&5
25782 sed 's/^/| /' conftest.$ac_ext >&5
25783
25784         ac_header_compiler=no
25785 fi
25786
25787 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25788 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25789 echo "${ECHO_T}$ac_header_compiler" >&6; }
25790
25791 # Is the header present?
25792 { echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
25793 echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6; }
25794 cat >conftest.$ac_ext <<_ACEOF
25795 /* confdefs.h.  */
25796 _ACEOF
25797 cat confdefs.h >>conftest.$ac_ext
25798 cat >>conftest.$ac_ext <<_ACEOF
25799 /* end confdefs.h.  */
25800 #include <sys/sysmacros.h>
25801 _ACEOF
25802 if { (ac_try="$ac_cpp conftest.$ac_ext"
25803 case "(($ac_try" in
25804   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25805   *) ac_try_echo=$ac_try;;
25806 esac
25807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25808   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25809   ac_status=$?
25810   grep -v '^ *+' conftest.er1 >conftest.err
25811   rm -f conftest.er1
25812   cat conftest.err >&5
25813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25814   (exit $ac_status); } >/dev/null && {
25815          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25816          test ! -s conftest.err
25817        }; then
25818   ac_header_preproc=yes
25819 else
25820   echo "$as_me: failed program was:" >&5
25821 sed 's/^/| /' conftest.$ac_ext >&5
25822
25823   ac_header_preproc=no
25824 fi
25825
25826 rm -f conftest.err conftest.$ac_ext
25827 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25828 echo "${ECHO_T}$ac_header_preproc" >&6; }
25829
25830 # So?  What about this header?
25831 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25832   yes:no: )
25833     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
25834 echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25835     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5
25836 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&2;}
25837     ac_header_preproc=yes
25838     ;;
25839   no:yes:* )
25840     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
25841 echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
25842     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h:     check for missing prerequisite headers?" >&5
25843 echo "$as_me: WARNING: sys/sysmacros.h:     check for missing prerequisite headers?" >&2;}
25844     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5
25845 echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;}
25846     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h:     section \"Present But Cannot Be Compiled\"" >&5
25847 echo "$as_me: WARNING: sys/sysmacros.h:     section \"Present But Cannot Be Compiled\"" >&2;}
25848     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
25849 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
25850     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5
25851 echo "$as_me: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&2;}
25852     ( cat <<\_ASBOX
25853 ## ------------------------------- ##
25854 ## Report this to nfs@lists.sf.net ##
25855 ## ------------------------------- ##
25856 _ASBOX
25857      ) | sed "s/^/$as_me: WARNING:     /" >&2
25858     ;;
25859 esac
25860 { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
25861 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
25862 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
25863   echo $ECHO_N "(cached) $ECHO_C" >&6
25864 else
25865   ac_cv_header_sys_sysmacros_h=$ac_header_preproc
25866 fi
25867 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
25868 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
25869
25870 fi
25871 if test $ac_cv_header_sys_sysmacros_h = yes; then
25872
25873 cat >>confdefs.h <<\_ACEOF
25874 #define MAJOR_IN_SYSMACROS 1
25875 _ACEOF
25876
25877 fi
25878
25879
25880   fi
25881 fi
25882
25883 #AC_FUNC_MALLOC
25884 { echo "$as_me:$LINENO: checking for working memcmp" >&5
25885 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6; }
25886 if test "${ac_cv_func_memcmp_working+set}" = set; then
25887   echo $ECHO_N "(cached) $ECHO_C" >&6
25888 else
25889   if test "$cross_compiling" = yes; then
25890   ac_cv_func_memcmp_working=no
25891 else
25892   cat >conftest.$ac_ext <<_ACEOF
25893 /* confdefs.h.  */
25894 _ACEOF
25895 cat confdefs.h >>conftest.$ac_ext
25896 cat >>conftest.$ac_ext <<_ACEOF
25897 /* end confdefs.h.  */
25898 $ac_includes_default
25899 int
25900 main ()
25901 {
25902
25903   /* Some versions of memcmp are not 8-bit clean.  */
25904   char c0 = '\100', c1 = '\200', c2 = '\201';
25905   if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
25906     return 1;
25907
25908   /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
25909      or more and with at least one buffer not starting on a 4-byte boundary.
25910      William Lewis provided this test program.   */
25911   {
25912     char foo[21];
25913     char bar[21];
25914     int i;
25915     for (i = 0; i < 4; i++)
25916       {
25917         char *a = foo + i;
25918         char *b = bar + i;
25919         strcpy (a, "--------01111111");
25920         strcpy (b, "--------10000000");
25921         if (memcmp (a, b, 16) >= 0)
25922           return 1;
25923       }
25924     return 0;
25925   }
25926
25927   ;
25928   return 0;
25929 }
25930 _ACEOF
25931 rm -f conftest$ac_exeext
25932 if { (ac_try="$ac_link"
25933 case "(($ac_try" in
25934   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25935   *) ac_try_echo=$ac_try;;
25936 esac
25937 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25938   (eval "$ac_link") 2>&5
25939   ac_status=$?
25940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25941   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25942   { (case "(($ac_try" in
25943   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25944   *) ac_try_echo=$ac_try;;
25945 esac
25946 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25947   (eval "$ac_try") 2>&5
25948   ac_status=$?
25949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25950   (exit $ac_status); }; }; then
25951   ac_cv_func_memcmp_working=yes
25952 else
25953   echo "$as_me: program exited with status $ac_status" >&5
25954 echo "$as_me: failed program was:" >&5
25955 sed 's/^/| /' conftest.$ac_ext >&5
25956
25957 ( exit $ac_status )
25958 ac_cv_func_memcmp_working=no
25959 fi
25960 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25961 fi
25962
25963
25964 fi
25965 { echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
25966 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6; }
25967 test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
25968   *" memcmp.$ac_objext "* ) ;;
25969   *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
25970  ;;
25971 esac
25972
25973
25974 #AC_FUNC_REALLOC
25975
25976
25977 for ac_header in sys/select.h sys/socket.h
25978 do
25979 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25980 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25981   { echo "$as_me:$LINENO: checking for $ac_header" >&5
25982 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
25983 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25984   echo $ECHO_N "(cached) $ECHO_C" >&6
25985 fi
25986 ac_res=`eval echo '${'$as_ac_Header'}'`
25987                { echo "$as_me:$LINENO: result: $ac_res" >&5
25988 echo "${ECHO_T}$ac_res" >&6; }
25989 else
25990   # Is the header compilable?
25991 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
25992 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
25993 cat >conftest.$ac_ext <<_ACEOF
25994 /* confdefs.h.  */
25995 _ACEOF
25996 cat confdefs.h >>conftest.$ac_ext
25997 cat >>conftest.$ac_ext <<_ACEOF
25998 /* end confdefs.h.  */
25999 $ac_includes_default
26000 #include <$ac_header>
26001 _ACEOF
26002 rm -f conftest.$ac_objext
26003 if { (ac_try="$ac_compile"
26004 case "(($ac_try" in
26005   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26006   *) ac_try_echo=$ac_try;;
26007 esac
26008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26009   (eval "$ac_compile") 2>conftest.er1
26010   ac_status=$?
26011   grep -v '^ *+' conftest.er1 >conftest.err
26012   rm -f conftest.er1
26013   cat conftest.err >&5
26014   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26015   (exit $ac_status); } && {
26016          test -z "$ac_c_werror_flag" ||
26017          test ! -s conftest.err
26018        } && test -s conftest.$ac_objext; then
26019   ac_header_compiler=yes
26020 else
26021   echo "$as_me: failed program was:" >&5
26022 sed 's/^/| /' conftest.$ac_ext >&5
26023
26024         ac_header_compiler=no
26025 fi
26026
26027 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26028 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26029 echo "${ECHO_T}$ac_header_compiler" >&6; }
26030
26031 # Is the header present?
26032 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
26033 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
26034 cat >conftest.$ac_ext <<_ACEOF
26035 /* confdefs.h.  */
26036 _ACEOF
26037 cat confdefs.h >>conftest.$ac_ext
26038 cat >>conftest.$ac_ext <<_ACEOF
26039 /* end confdefs.h.  */
26040 #include <$ac_header>
26041 _ACEOF
26042 if { (ac_try="$ac_cpp conftest.$ac_ext"
26043 case "(($ac_try" in
26044   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26045   *) ac_try_echo=$ac_try;;
26046 esac
26047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26048   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26049   ac_status=$?
26050   grep -v '^ *+' conftest.er1 >conftest.err
26051   rm -f conftest.er1
26052   cat conftest.err >&5
26053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26054   (exit $ac_status); } >/dev/null && {
26055          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26056          test ! -s conftest.err
26057        }; then
26058   ac_header_preproc=yes
26059 else
26060   echo "$as_me: failed program was:" >&5
26061 sed 's/^/| /' conftest.$ac_ext >&5
26062
26063   ac_header_preproc=no
26064 fi
26065
26066 rm -f conftest.err conftest.$ac_ext
26067 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26068 echo "${ECHO_T}$ac_header_preproc" >&6; }
26069
26070 # So?  What about this header?
26071 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26072   yes:no: )
26073     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26074 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26075     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26076 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26077     ac_header_preproc=yes
26078     ;;
26079   no:yes:* )
26080     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26081 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26082     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
26083 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
26084     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26085 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26086     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
26087 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
26088     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26089 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26090     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26091 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26092     ( cat <<\_ASBOX
26093 ## ------------------------------- ##
26094 ## Report this to nfs@lists.sf.net ##
26095 ## ------------------------------- ##
26096 _ASBOX
26097      ) | sed "s/^/$as_me: WARNING:     /" >&2
26098     ;;
26099 esac
26100 { echo "$as_me:$LINENO: checking for $ac_header" >&5
26101 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
26102 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26103   echo $ECHO_N "(cached) $ECHO_C" >&6
26104 else
26105   eval "$as_ac_Header=\$ac_header_preproc"
26106 fi
26107 ac_res=`eval echo '${'$as_ac_Header'}'`
26108                { echo "$as_me:$LINENO: result: $ac_res" >&5
26109 echo "${ECHO_T}$ac_res" >&6; }
26110
26111 fi
26112 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26113   cat >>confdefs.h <<_ACEOF
26114 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26115 _ACEOF
26116
26117 fi
26118
26119 done
26120
26121 { echo "$as_me:$LINENO: checking types of arguments for select" >&5
26122 echo $ECHO_N "checking types of arguments for select... $ECHO_C" >&6; }
26123 if test "${ac_cv_func_select_args+set}" = set; then
26124   echo $ECHO_N "(cached) $ECHO_C" >&6
26125 else
26126   for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
26127  for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
26128   for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
26129    cat >conftest.$ac_ext <<_ACEOF
26130 /* confdefs.h.  */
26131 _ACEOF
26132 cat confdefs.h >>conftest.$ac_ext
26133 cat >>conftest.$ac_ext <<_ACEOF
26134 /* end confdefs.h.  */
26135 $ac_includes_default
26136 #ifdef HAVE_SYS_SELECT_H
26137 # include <sys/select.h>
26138 #endif
26139 #ifdef HAVE_SYS_SOCKET_H
26140 # include <sys/socket.h>
26141 #endif
26142
26143 int
26144 main ()
26145 {
26146 extern int select ($ac_arg1,
26147                                             $ac_arg234, $ac_arg234, $ac_arg234,
26148                                             $ac_arg5);
26149   ;
26150   return 0;
26151 }
26152 _ACEOF
26153 rm -f conftest.$ac_objext
26154 if { (ac_try="$ac_compile"
26155 case "(($ac_try" in
26156   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26157   *) ac_try_echo=$ac_try;;
26158 esac
26159 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26160   (eval "$ac_compile") 2>conftest.er1
26161   ac_status=$?
26162   grep -v '^ *+' conftest.er1 >conftest.err
26163   rm -f conftest.er1
26164   cat conftest.err >&5
26165   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26166   (exit $ac_status); } && {
26167          test -z "$ac_c_werror_flag" ||
26168          test ! -s conftest.err
26169        } && test -s conftest.$ac_objext; then
26170   ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
26171 else
26172   echo "$as_me: failed program was:" >&5
26173 sed 's/^/| /' conftest.$ac_ext >&5
26174
26175
26176 fi
26177
26178 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26179   done
26180  done
26181 done
26182 # Provide a safe default value.
26183 : ${ac_cv_func_select_args='int,int *,struct timeval *'}
26184
26185 fi
26186 { echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5
26187 echo "${ECHO_T}$ac_cv_func_select_args" >&6; }
26188 ac_save_IFS=$IFS; IFS=','
26189 set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
26190 IFS=$ac_save_IFS
26191 shift
26192
26193 cat >>confdefs.h <<_ACEOF
26194 #define SELECT_TYPE_ARG1 $1
26195 _ACEOF
26196
26197
26198 cat >>confdefs.h <<_ACEOF
26199 #define SELECT_TYPE_ARG234 ($2)
26200 _ACEOF
26201
26202
26203 cat >>confdefs.h <<_ACEOF
26204 #define SELECT_TYPE_ARG5 ($3)
26205 _ACEOF
26206
26207 rm -f conftest*
26208
26209 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
26210 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
26211 if test "${ac_cv_type_signal+set}" = set; then
26212   echo $ECHO_N "(cached) $ECHO_C" >&6
26213 else
26214   cat >conftest.$ac_ext <<_ACEOF
26215 /* confdefs.h.  */
26216 _ACEOF
26217 cat confdefs.h >>conftest.$ac_ext
26218 cat >>conftest.$ac_ext <<_ACEOF
26219 /* end confdefs.h.  */
26220 #include <sys/types.h>
26221 #include <signal.h>
26222
26223 int
26224 main ()
26225 {
26226 return *(signal (0, 0)) (0) == 1;
26227   ;
26228   return 0;
26229 }
26230 _ACEOF
26231 rm -f conftest.$ac_objext
26232 if { (ac_try="$ac_compile"
26233 case "(($ac_try" in
26234   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26235   *) ac_try_echo=$ac_try;;
26236 esac
26237 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26238   (eval "$ac_compile") 2>conftest.er1
26239   ac_status=$?
26240   grep -v '^ *+' conftest.er1 >conftest.err
26241   rm -f conftest.er1
26242   cat conftest.err >&5
26243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26244   (exit $ac_status); } && {
26245          test -z "$ac_c_werror_flag" ||
26246          test ! -s conftest.err
26247        } && test -s conftest.$ac_objext; then
26248   ac_cv_type_signal=int
26249 else
26250   echo "$as_me: failed program was:" >&5
26251 sed 's/^/| /' conftest.$ac_ext >&5
26252
26253         ac_cv_type_signal=void
26254 fi
26255
26256 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26257 fi
26258 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
26259 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
26260
26261 cat >>confdefs.h <<_ACEOF
26262 #define RETSIGTYPE $ac_cv_type_signal
26263 _ACEOF
26264
26265
26266 { echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5
26267 echo $ECHO_N "checking whether stat accepts an empty string... $ECHO_C" >&6; }
26268 if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then
26269   echo $ECHO_N "(cached) $ECHO_C" >&6
26270 else
26271   if test "$cross_compiling" = yes; then
26272   ac_cv_func_stat_empty_string_bug=yes
26273 else
26274   cat >conftest.$ac_ext <<_ACEOF
26275 /* confdefs.h.  */
26276 _ACEOF
26277 cat confdefs.h >>conftest.$ac_ext
26278 cat >>conftest.$ac_ext <<_ACEOF
26279 /* end confdefs.h.  */
26280 $ac_includes_default
26281 int
26282 main ()
26283 {
26284 struct stat sbuf;
26285   return stat ("", &sbuf) == 0;
26286   ;
26287   return 0;
26288 }
26289 _ACEOF
26290 rm -f conftest$ac_exeext
26291 if { (ac_try="$ac_link"
26292 case "(($ac_try" in
26293   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26294   *) ac_try_echo=$ac_try;;
26295 esac
26296 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26297   (eval "$ac_link") 2>&5
26298   ac_status=$?
26299   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26300   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26301   { (case "(($ac_try" in
26302   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26303   *) ac_try_echo=$ac_try;;
26304 esac
26305 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26306   (eval "$ac_try") 2>&5
26307   ac_status=$?
26308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26309   (exit $ac_status); }; }; then
26310   ac_cv_func_stat_empty_string_bug=no
26311 else
26312   echo "$as_me: program exited with status $ac_status" >&5
26313 echo "$as_me: failed program was:" >&5
26314 sed 's/^/| /' conftest.$ac_ext >&5
26315
26316 ( exit $ac_status )
26317 ac_cv_func_stat_empty_string_bug=yes
26318 fi
26319 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26320 fi
26321
26322
26323 fi
26324 { echo "$as_me:$LINENO: result: $ac_cv_func_stat_empty_string_bug" >&5
26325 echo "${ECHO_T}$ac_cv_func_stat_empty_string_bug" >&6; }
26326 if test $ac_cv_func_stat_empty_string_bug = yes; then
26327   case " $LIBOBJS " in
26328   *" stat.$ac_objext "* ) ;;
26329   *) LIBOBJS="$LIBOBJS stat.$ac_objext"
26330  ;;
26331 esac
26332
26333
26334 cat >>confdefs.h <<_ACEOF
26335 #define HAVE_STAT_EMPTY_STRING_BUG 1
26336 _ACEOF
26337
26338 fi
26339
26340
26341 for ac_func in vprintf
26342 do
26343 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26344 { echo "$as_me:$LINENO: checking for $ac_func" >&5
26345 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
26346 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
26347   echo $ECHO_N "(cached) $ECHO_C" >&6
26348 else
26349   cat >conftest.$ac_ext <<_ACEOF
26350 /* confdefs.h.  */
26351 _ACEOF
26352 cat confdefs.h >>conftest.$ac_ext
26353 cat >>conftest.$ac_ext <<_ACEOF
26354 /* end confdefs.h.  */
26355 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26356    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26357 #define $ac_func innocuous_$ac_func
26358
26359 /* System header to define __stub macros and hopefully few prototypes,
26360     which can conflict with char $ac_func (); below.
26361     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26362     <limits.h> exists even on freestanding compilers.  */
26363
26364 #ifdef __STDC__
26365 # include <limits.h>
26366 #else
26367 # include <assert.h>
26368 #endif
26369
26370 #undef $ac_func
26371
26372 /* Override any GCC internal prototype to avoid an error.
26373    Use char because int might match the return type of a GCC
26374    builtin and then its argument prototype would still apply.  */
26375 #ifdef __cplusplus
26376 extern "C"
26377 #endif
26378 char $ac_func ();
26379 /* The GNU C library defines this for functions which it implements
26380     to always fail with ENOSYS.  Some functions are actually named
26381     something starting with __ and the normal name is an alias.  */
26382 #if defined __stub_$ac_func || defined __stub___$ac_func
26383 choke me
26384 #endif
26385
26386 int
26387 main ()
26388 {
26389 return $ac_func ();
26390   ;
26391   return 0;
26392 }
26393 _ACEOF
26394 rm -f conftest.$ac_objext conftest$ac_exeext
26395 if { (ac_try="$ac_link"
26396 case "(($ac_try" in
26397   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26398   *) ac_try_echo=$ac_try;;
26399 esac
26400 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26401   (eval "$ac_link") 2>conftest.er1
26402   ac_status=$?
26403   grep -v '^ *+' conftest.er1 >conftest.err
26404   rm -f conftest.er1
26405   cat conftest.err >&5
26406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26407   (exit $ac_status); } && {
26408          test -z "$ac_c_werror_flag" ||
26409          test ! -s conftest.err
26410        } && test -s conftest$ac_exeext &&
26411        $as_test_x conftest$ac_exeext; then
26412   eval "$as_ac_var=yes"
26413 else
26414   echo "$as_me: failed program was:" >&5
26415 sed 's/^/| /' conftest.$ac_ext >&5
26416
26417         eval "$as_ac_var=no"
26418 fi
26419
26420 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26421       conftest$ac_exeext conftest.$ac_ext
26422 fi
26423 ac_res=`eval echo '${'$as_ac_var'}'`
26424                { echo "$as_me:$LINENO: result: $ac_res" >&5
26425 echo "${ECHO_T}$ac_res" >&6; }
26426 if test `eval echo '${'$as_ac_var'}'` = yes; then
26427   cat >>confdefs.h <<_ACEOF
26428 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26429 _ACEOF
26430
26431 { echo "$as_me:$LINENO: checking for _doprnt" >&5
26432 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6; }
26433 if test "${ac_cv_func__doprnt+set}" = set; then
26434   echo $ECHO_N "(cached) $ECHO_C" >&6
26435 else
26436   cat >conftest.$ac_ext <<_ACEOF
26437 /* confdefs.h.  */
26438 _ACEOF
26439 cat confdefs.h >>conftest.$ac_ext
26440 cat >>conftest.$ac_ext <<_ACEOF
26441 /* end confdefs.h.  */
26442 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
26443    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26444 #define _doprnt innocuous__doprnt
26445
26446 /* System header to define __stub macros and hopefully few prototypes,
26447     which can conflict with char _doprnt (); below.
26448     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26449     <limits.h> exists even on freestanding compilers.  */
26450
26451 #ifdef __STDC__
26452 # include <limits.h>
26453 #else
26454 # include <assert.h>
26455 #endif
26456
26457 #undef _doprnt
26458
26459 /* Override any GCC internal prototype to avoid an error.
26460    Use char because int might match the return type of a GCC
26461    builtin and then its argument prototype would still apply.  */
26462 #ifdef __cplusplus
26463 extern "C"
26464 #endif
26465 char _doprnt ();
26466 /* The GNU C library defines this for functions which it implements
26467     to always fail with ENOSYS.  Some functions are actually named
26468     something starting with __ and the normal name is an alias.  */
26469 #if defined __stub__doprnt || defined __stub____doprnt
26470 choke me
26471 #endif
26472
26473 int
26474 main ()
26475 {
26476 return _doprnt ();
26477   ;
26478   return 0;
26479 }
26480 _ACEOF
26481 rm -f conftest.$ac_objext conftest$ac_exeext
26482 if { (ac_try="$ac_link"
26483 case "(($ac_try" in
26484   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26485   *) ac_try_echo=$ac_try;;
26486 esac
26487 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26488   (eval "$ac_link") 2>conftest.er1
26489   ac_status=$?
26490   grep -v '^ *+' conftest.er1 >conftest.err
26491   rm -f conftest.er1
26492   cat conftest.err >&5
26493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26494   (exit $ac_status); } && {
26495          test -z "$ac_c_werror_flag" ||
26496          test ! -s conftest.err
26497        } && test -s conftest$ac_exeext &&
26498        $as_test_x conftest$ac_exeext; then
26499   ac_cv_func__doprnt=yes
26500 else
26501   echo "$as_me: failed program was:" >&5
26502 sed 's/^/| /' conftest.$ac_ext >&5
26503
26504         ac_cv_func__doprnt=no
26505 fi
26506
26507 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26508       conftest$ac_exeext conftest.$ac_ext
26509 fi
26510 { echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
26511 echo "${ECHO_T}$ac_cv_func__doprnt" >&6; }
26512 if test $ac_cv_func__doprnt = yes; then
26513
26514 cat >>confdefs.h <<\_ACEOF
26515 #define HAVE_DOPRNT 1
26516 _ACEOF
26517
26518 fi
26519
26520 fi
26521 done
26522
26523
26524
26525
26526
26527
26528
26529
26530
26531
26532
26533
26534
26535
26536
26537
26538
26539
26540
26541
26542
26543
26544
26545
26546
26547
26548
26549
26550
26551
26552
26553 for ac_func in alarm atexit dup2 fdatasync ftruncate getcwd \
26554                gethostbyaddr gethostbyname gethostname getmntent \
26555                gettimeofday hasmntopt inet_ntoa innetgr memset mkdir pathconf \
26556                realpath rmdir select socket strcasecmp strchr strdup \
26557                strerror strrchr strtol strtoul sigprocmask
26558 do
26559 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26560 { echo "$as_me:$LINENO: checking for $ac_func" >&5
26561 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
26562 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
26563   echo $ECHO_N "(cached) $ECHO_C" >&6
26564 else
26565   cat >conftest.$ac_ext <<_ACEOF
26566 /* confdefs.h.  */
26567 _ACEOF
26568 cat confdefs.h >>conftest.$ac_ext
26569 cat >>conftest.$ac_ext <<_ACEOF
26570 /* end confdefs.h.  */
26571 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26572    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26573 #define $ac_func innocuous_$ac_func
26574
26575 /* System header to define __stub macros and hopefully few prototypes,
26576     which can conflict with char $ac_func (); below.
26577     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26578     <limits.h> exists even on freestanding compilers.  */
26579
26580 #ifdef __STDC__
26581 # include <limits.h>
26582 #else
26583 # include <assert.h>
26584 #endif
26585
26586 #undef $ac_func
26587
26588 /* Override any GCC internal prototype to avoid an error.
26589    Use char because int might match the return type of a GCC
26590    builtin and then its argument prototype would still apply.  */
26591 #ifdef __cplusplus
26592 extern "C"
26593 #endif
26594 char $ac_func ();
26595 /* The GNU C library defines this for functions which it implements
26596     to always fail with ENOSYS.  Some functions are actually named
26597     something starting with __ and the normal name is an alias.  */
26598 #if defined __stub_$ac_func || defined __stub___$ac_func
26599 choke me
26600 #endif
26601
26602 int
26603 main ()
26604 {
26605 return $ac_func ();
26606   ;
26607   return 0;
26608 }
26609 _ACEOF
26610 rm -f conftest.$ac_objext conftest$ac_exeext
26611 if { (ac_try="$ac_link"
26612 case "(($ac_try" in
26613   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26614   *) ac_try_echo=$ac_try;;
26615 esac
26616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26617   (eval "$ac_link") 2>conftest.er1
26618   ac_status=$?
26619   grep -v '^ *+' conftest.er1 >conftest.err
26620   rm -f conftest.er1
26621   cat conftest.err >&5
26622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26623   (exit $ac_status); } && {
26624          test -z "$ac_c_werror_flag" ||
26625          test ! -s conftest.err
26626        } && test -s conftest$ac_exeext &&
26627        $as_test_x conftest$ac_exeext; then
26628   eval "$as_ac_var=yes"
26629 else
26630   echo "$as_me: failed program was:" >&5
26631 sed 's/^/| /' conftest.$ac_ext >&5
26632
26633         eval "$as_ac_var=no"
26634 fi
26635
26636 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26637       conftest$ac_exeext conftest.$ac_ext
26638 fi
26639 ac_res=`eval echo '${'$as_ac_var'}'`
26640                { echo "$as_me:$LINENO: result: $ac_res" >&5
26641 echo "${ECHO_T}$ac_res" >&6; }
26642 if test `eval echo '${'$as_ac_var'}'` = yes; then
26643   cat >>confdefs.h <<_ACEOF
26644 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26645 _ACEOF
26646
26647 fi
26648 done
26649
26650
26651
26652 { echo "$as_me:$LINENO: checking for short" >&5
26653 echo $ECHO_N "checking for short... $ECHO_C" >&6; }
26654 if test "${ac_cv_type_short+set}" = set; then
26655   echo $ECHO_N "(cached) $ECHO_C" >&6
26656 else
26657   cat >conftest.$ac_ext <<_ACEOF
26658 /* confdefs.h.  */
26659 _ACEOF
26660 cat confdefs.h >>conftest.$ac_ext
26661 cat >>conftest.$ac_ext <<_ACEOF
26662 /* end confdefs.h.  */
26663 $ac_includes_default
26664 typedef short ac__type_new_;
26665 int
26666 main ()
26667 {
26668 if ((ac__type_new_ *) 0)
26669   return 0;
26670 if (sizeof (ac__type_new_))
26671   return 0;
26672   ;
26673   return 0;
26674 }
26675 _ACEOF
26676 rm -f conftest.$ac_objext
26677 if { (ac_try="$ac_compile"
26678 case "(($ac_try" in
26679   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26680   *) ac_try_echo=$ac_try;;
26681 esac
26682 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26683   (eval "$ac_compile") 2>conftest.er1
26684   ac_status=$?
26685   grep -v '^ *+' conftest.er1 >conftest.err
26686   rm -f conftest.er1
26687   cat conftest.err >&5
26688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26689   (exit $ac_status); } && {
26690          test -z "$ac_c_werror_flag" ||
26691          test ! -s conftest.err
26692        } && test -s conftest.$ac_objext; then
26693   ac_cv_type_short=yes
26694 else
26695   echo "$as_me: failed program was:" >&5
26696 sed 's/^/| /' conftest.$ac_ext >&5
26697
26698         ac_cv_type_short=no
26699 fi
26700
26701 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26702 fi
26703 { echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
26704 echo "${ECHO_T}$ac_cv_type_short" >&6; }
26705
26706 # The cast to long int works around a bug in the HP C Compiler
26707 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
26708 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
26709 # This bug is HP SR number 8606223364.
26710 { echo "$as_me:$LINENO: checking size of short" >&5
26711 echo $ECHO_N "checking size of short... $ECHO_C" >&6; }
26712 if test "${ac_cv_sizeof_short+set}" = set; then
26713   echo $ECHO_N "(cached) $ECHO_C" >&6
26714 else
26715   if test "$cross_compiling" = yes; then
26716   # Depending upon the size, compute the lo and hi bounds.
26717 cat >conftest.$ac_ext <<_ACEOF
26718 /* confdefs.h.  */
26719 _ACEOF
26720 cat confdefs.h >>conftest.$ac_ext
26721 cat >>conftest.$ac_ext <<_ACEOF
26722 /* end confdefs.h.  */
26723 $ac_includes_default
26724    typedef short ac__type_sizeof_;
26725 int
26726 main ()
26727 {
26728 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
26729 test_array [0] = 0
26730
26731   ;
26732   return 0;
26733 }
26734 _ACEOF
26735 rm -f conftest.$ac_objext
26736 if { (ac_try="$ac_compile"
26737 case "(($ac_try" in
26738   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26739   *) ac_try_echo=$ac_try;;
26740 esac
26741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26742   (eval "$ac_compile") 2>conftest.er1
26743   ac_status=$?
26744   grep -v '^ *+' conftest.er1 >conftest.err
26745   rm -f conftest.er1
26746   cat conftest.err >&5
26747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26748   (exit $ac_status); } && {
26749          test -z "$ac_c_werror_flag" ||
26750          test ! -s conftest.err
26751        } && test -s conftest.$ac_objext; then
26752   ac_lo=0 ac_mid=0
26753   while :; do
26754     cat >conftest.$ac_ext <<_ACEOF
26755 /* confdefs.h.  */
26756 _ACEOF
26757 cat confdefs.h >>conftest.$ac_ext
26758 cat >>conftest.$ac_ext <<_ACEOF
26759 /* end confdefs.h.  */
26760 $ac_includes_default
26761    typedef short ac__type_sizeof_;
26762 int
26763 main ()
26764 {
26765 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
26766 test_array [0] = 0
26767
26768   ;
26769   return 0;
26770 }
26771 _ACEOF
26772 rm -f conftest.$ac_objext
26773 if { (ac_try="$ac_compile"
26774 case "(($ac_try" in
26775   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26776   *) ac_try_echo=$ac_try;;
26777 esac
26778 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26779   (eval "$ac_compile") 2>conftest.er1
26780   ac_status=$?
26781   grep -v '^ *+' conftest.er1 >conftest.err
26782   rm -f conftest.er1
26783   cat conftest.err >&5
26784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26785   (exit $ac_status); } && {
26786          test -z "$ac_c_werror_flag" ||
26787          test ! -s conftest.err
26788        } && test -s conftest.$ac_objext; then
26789   ac_hi=$ac_mid; break
26790 else
26791   echo "$as_me: failed program was:" >&5
26792 sed 's/^/| /' conftest.$ac_ext >&5
26793
26794         ac_lo=`expr $ac_mid + 1`
26795                         if test $ac_lo -le $ac_mid; then
26796                           ac_lo= ac_hi=
26797                           break
26798                         fi
26799                         ac_mid=`expr 2 '*' $ac_mid + 1`
26800 fi
26801
26802 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26803   done
26804 else
26805   echo "$as_me: failed program was:" >&5
26806 sed 's/^/| /' conftest.$ac_ext >&5
26807
26808         cat >conftest.$ac_ext <<_ACEOF
26809 /* confdefs.h.  */
26810 _ACEOF
26811 cat confdefs.h >>conftest.$ac_ext
26812 cat >>conftest.$ac_ext <<_ACEOF
26813 /* end confdefs.h.  */
26814 $ac_includes_default
26815    typedef short ac__type_sizeof_;
26816 int
26817 main ()
26818 {
26819 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
26820 test_array [0] = 0
26821
26822   ;
26823   return 0;
26824 }
26825 _ACEOF
26826 rm -f conftest.$ac_objext
26827 if { (ac_try="$ac_compile"
26828 case "(($ac_try" in
26829   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26830   *) ac_try_echo=$ac_try;;
26831 esac
26832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26833   (eval "$ac_compile") 2>conftest.er1
26834   ac_status=$?
26835   grep -v '^ *+' conftest.er1 >conftest.err
26836   rm -f conftest.er1
26837   cat conftest.err >&5
26838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26839   (exit $ac_status); } && {
26840          test -z "$ac_c_werror_flag" ||
26841          test ! -s conftest.err
26842        } && test -s conftest.$ac_objext; then
26843   ac_hi=-1 ac_mid=-1
26844   while :; do
26845     cat >conftest.$ac_ext <<_ACEOF
26846 /* confdefs.h.  */
26847 _ACEOF
26848 cat confdefs.h >>conftest.$ac_ext
26849 cat >>conftest.$ac_ext <<_ACEOF
26850 /* end confdefs.h.  */
26851 $ac_includes_default
26852    typedef short ac__type_sizeof_;
26853 int
26854 main ()
26855 {
26856 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
26857 test_array [0] = 0
26858
26859   ;
26860   return 0;
26861 }
26862 _ACEOF
26863 rm -f conftest.$ac_objext
26864 if { (ac_try="$ac_compile"
26865 case "(($ac_try" in
26866   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26867   *) ac_try_echo=$ac_try;;
26868 esac
26869 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26870   (eval "$ac_compile") 2>conftest.er1
26871   ac_status=$?
26872   grep -v '^ *+' conftest.er1 >conftest.err
26873   rm -f conftest.er1
26874   cat conftest.err >&5
26875   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26876   (exit $ac_status); } && {
26877          test -z "$ac_c_werror_flag" ||
26878          test ! -s conftest.err
26879        } && test -s conftest.$ac_objext; then
26880   ac_lo=$ac_mid; break
26881 else
26882   echo "$as_me: failed program was:" >&5
26883 sed 's/^/| /' conftest.$ac_ext >&5
26884
26885         ac_hi=`expr '(' $ac_mid ')' - 1`
26886                         if test $ac_mid -le $ac_hi; then
26887                           ac_lo= ac_hi=
26888                           break
26889                         fi
26890                         ac_mid=`expr 2 '*' $ac_mid`
26891 fi
26892
26893 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26894   done
26895 else
26896   echo "$as_me: failed program was:" >&5
26897 sed 's/^/| /' conftest.$ac_ext >&5
26898
26899         ac_lo= ac_hi=
26900 fi
26901
26902 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26903 fi
26904
26905 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26906 # Binary search between lo and hi bounds.
26907 while test "x$ac_lo" != "x$ac_hi"; do
26908   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
26909   cat >conftest.$ac_ext <<_ACEOF
26910 /* confdefs.h.  */
26911 _ACEOF
26912 cat confdefs.h >>conftest.$ac_ext
26913 cat >>conftest.$ac_ext <<_ACEOF
26914 /* end confdefs.h.  */
26915 $ac_includes_default
26916    typedef short ac__type_sizeof_;
26917 int
26918 main ()
26919 {
26920 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
26921 test_array [0] = 0
26922
26923   ;
26924   return 0;
26925 }
26926 _ACEOF
26927 rm -f conftest.$ac_objext
26928 if { (ac_try="$ac_compile"
26929 case "(($ac_try" in
26930   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26931   *) ac_try_echo=$ac_try;;
26932 esac
26933 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26934   (eval "$ac_compile") 2>conftest.er1
26935   ac_status=$?
26936   grep -v '^ *+' conftest.er1 >conftest.err
26937   rm -f conftest.er1
26938   cat conftest.err >&5
26939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26940   (exit $ac_status); } && {
26941          test -z "$ac_c_werror_flag" ||
26942          test ! -s conftest.err
26943        } && test -s conftest.$ac_objext; then
26944   ac_hi=$ac_mid
26945 else
26946   echo "$as_me: failed program was:" >&5
26947 sed 's/^/| /' conftest.$ac_ext >&5
26948
26949         ac_lo=`expr '(' $ac_mid ')' + 1`
26950 fi
26951
26952 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26953 done
26954 case $ac_lo in
26955 ?*) ac_cv_sizeof_short=$ac_lo;;
26956 '') if test "$ac_cv_type_short" = yes; then
26957      { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
26958 See \`config.log' for more details." >&5
26959 echo "$as_me: error: cannot compute sizeof (short)
26960 See \`config.log' for more details." >&2;}
26961    { (exit 77); exit 77; }; }
26962    else
26963      ac_cv_sizeof_short=0
26964    fi ;;
26965 esac
26966 else
26967   cat >conftest.$ac_ext <<_ACEOF
26968 /* confdefs.h.  */
26969 _ACEOF
26970 cat confdefs.h >>conftest.$ac_ext
26971 cat >>conftest.$ac_ext <<_ACEOF
26972 /* end confdefs.h.  */
26973 $ac_includes_default
26974    typedef short ac__type_sizeof_;
26975 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
26976 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
26977 #include <stdio.h>
26978 #include <stdlib.h>
26979 int
26980 main ()
26981 {
26982
26983   FILE *f = fopen ("conftest.val", "w");
26984   if (! f)
26985     return 1;
26986   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
26987     {
26988       long int i = longval ();
26989       if (i != ((long int) (sizeof (ac__type_sizeof_))))
26990         return 1;
26991       fprintf (f, "%ld\n", i);
26992     }
26993   else
26994     {
26995       unsigned long int i = ulongval ();
26996       if (i != ((long int) (sizeof (ac__type_sizeof_))))
26997         return 1;
26998       fprintf (f, "%lu\n", i);
26999     }
27000   return ferror (f) || fclose (f) != 0;
27001
27002   ;
27003   return 0;
27004 }
27005 _ACEOF
27006 rm -f conftest$ac_exeext
27007 if { (ac_try="$ac_link"
27008 case "(($ac_try" in
27009   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27010   *) ac_try_echo=$ac_try;;
27011 esac
27012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27013   (eval "$ac_link") 2>&5
27014   ac_status=$?
27015   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27016   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27017   { (case "(($ac_try" in
27018   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27019   *) ac_try_echo=$ac_try;;
27020 esac
27021 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27022   (eval "$ac_try") 2>&5
27023   ac_status=$?
27024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27025   (exit $ac_status); }; }; then
27026   ac_cv_sizeof_short=`cat conftest.val`
27027 else
27028   echo "$as_me: program exited with status $ac_status" >&5
27029 echo "$as_me: failed program was:" >&5
27030 sed 's/^/| /' conftest.$ac_ext >&5
27031
27032 ( exit $ac_status )
27033 if test "$ac_cv_type_short" = yes; then
27034      { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
27035 See \`config.log' for more details." >&5
27036 echo "$as_me: error: cannot compute sizeof (short)
27037 See \`config.log' for more details." >&2;}
27038    { (exit 77); exit 77; }; }
27039    else
27040      ac_cv_sizeof_short=0
27041    fi
27042 fi
27043 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27044 fi
27045 rm -f conftest.val
27046 fi
27047 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
27048 echo "${ECHO_T}$ac_cv_sizeof_short" >&6; }
27049
27050
27051
27052 cat >>confdefs.h <<_ACEOF
27053 #define SIZEOF_SHORT $ac_cv_sizeof_short
27054 _ACEOF
27055
27056
27057 { echo "$as_me:$LINENO: checking for int" >&5
27058 echo $ECHO_N "checking for int... $ECHO_C" >&6; }
27059 if test "${ac_cv_type_int+set}" = set; then
27060   echo $ECHO_N "(cached) $ECHO_C" >&6
27061 else
27062   cat >conftest.$ac_ext <<_ACEOF
27063 /* confdefs.h.  */
27064 _ACEOF
27065 cat confdefs.h >>conftest.$ac_ext
27066 cat >>conftest.$ac_ext <<_ACEOF
27067 /* end confdefs.h.  */
27068 $ac_includes_default
27069 typedef int ac__type_new_;
27070 int
27071 main ()
27072 {
27073 if ((ac__type_new_ *) 0)
27074   return 0;
27075 if (sizeof (ac__type_new_))
27076   return 0;
27077   ;
27078   return 0;
27079 }
27080 _ACEOF
27081 rm -f conftest.$ac_objext
27082 if { (ac_try="$ac_compile"
27083 case "(($ac_try" in
27084   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27085   *) ac_try_echo=$ac_try;;
27086 esac
27087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27088   (eval "$ac_compile") 2>conftest.er1
27089   ac_status=$?
27090   grep -v '^ *+' conftest.er1 >conftest.err
27091   rm -f conftest.er1
27092   cat conftest.err >&5
27093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27094   (exit $ac_status); } && {
27095          test -z "$ac_c_werror_flag" ||
27096          test ! -s conftest.err
27097        } && test -s conftest.$ac_objext; then
27098   ac_cv_type_int=yes
27099 else
27100   echo "$as_me: failed program was:" >&5
27101 sed 's/^/| /' conftest.$ac_ext >&5
27102
27103         ac_cv_type_int=no
27104 fi
27105
27106 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27107 fi
27108 { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
27109 echo "${ECHO_T}$ac_cv_type_int" >&6; }
27110
27111 # The cast to long int works around a bug in the HP C Compiler
27112 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27113 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27114 # This bug is HP SR number 8606223364.
27115 { echo "$as_me:$LINENO: checking size of int" >&5
27116 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
27117 if test "${ac_cv_sizeof_int+set}" = set; then
27118   echo $ECHO_N "(cached) $ECHO_C" >&6
27119 else
27120   if test "$cross_compiling" = yes; then
27121   # Depending upon the size, compute the lo and hi bounds.
27122 cat >conftest.$ac_ext <<_ACEOF
27123 /* confdefs.h.  */
27124 _ACEOF
27125 cat confdefs.h >>conftest.$ac_ext
27126 cat >>conftest.$ac_ext <<_ACEOF
27127 /* end confdefs.h.  */
27128 $ac_includes_default
27129    typedef int ac__type_sizeof_;
27130 int
27131 main ()
27132 {
27133 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
27134 test_array [0] = 0
27135
27136   ;
27137   return 0;
27138 }
27139 _ACEOF
27140 rm -f conftest.$ac_objext
27141 if { (ac_try="$ac_compile"
27142 case "(($ac_try" in
27143   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27144   *) ac_try_echo=$ac_try;;
27145 esac
27146 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27147   (eval "$ac_compile") 2>conftest.er1
27148   ac_status=$?
27149   grep -v '^ *+' conftest.er1 >conftest.err
27150   rm -f conftest.er1
27151   cat conftest.err >&5
27152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27153   (exit $ac_status); } && {
27154          test -z "$ac_c_werror_flag" ||
27155          test ! -s conftest.err
27156        } && test -s conftest.$ac_objext; then
27157   ac_lo=0 ac_mid=0
27158   while :; do
27159     cat >conftest.$ac_ext <<_ACEOF
27160 /* confdefs.h.  */
27161 _ACEOF
27162 cat confdefs.h >>conftest.$ac_ext
27163 cat >>conftest.$ac_ext <<_ACEOF
27164 /* end confdefs.h.  */
27165 $ac_includes_default
27166    typedef int ac__type_sizeof_;
27167 int
27168 main ()
27169 {
27170 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
27171 test_array [0] = 0
27172
27173   ;
27174   return 0;
27175 }
27176 _ACEOF
27177 rm -f conftest.$ac_objext
27178 if { (ac_try="$ac_compile"
27179 case "(($ac_try" in
27180   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27181   *) ac_try_echo=$ac_try;;
27182 esac
27183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27184   (eval "$ac_compile") 2>conftest.er1
27185   ac_status=$?
27186   grep -v '^ *+' conftest.er1 >conftest.err
27187   rm -f conftest.er1
27188   cat conftest.err >&5
27189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27190   (exit $ac_status); } && {
27191          test -z "$ac_c_werror_flag" ||
27192          test ! -s conftest.err
27193        } && test -s conftest.$ac_objext; then
27194   ac_hi=$ac_mid; break
27195 else
27196   echo "$as_me: failed program was:" >&5
27197 sed 's/^/| /' conftest.$ac_ext >&5
27198
27199         ac_lo=`expr $ac_mid + 1`
27200                         if test $ac_lo -le $ac_mid; then
27201                           ac_lo= ac_hi=
27202                           break
27203                         fi
27204                         ac_mid=`expr 2 '*' $ac_mid + 1`
27205 fi
27206
27207 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27208   done
27209 else
27210   echo "$as_me: failed program was:" >&5
27211 sed 's/^/| /' conftest.$ac_ext >&5
27212
27213         cat >conftest.$ac_ext <<_ACEOF
27214 /* confdefs.h.  */
27215 _ACEOF
27216 cat confdefs.h >>conftest.$ac_ext
27217 cat >>conftest.$ac_ext <<_ACEOF
27218 /* end confdefs.h.  */
27219 $ac_includes_default
27220    typedef int ac__type_sizeof_;
27221 int
27222 main ()
27223 {
27224 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
27225 test_array [0] = 0
27226
27227   ;
27228   return 0;
27229 }
27230 _ACEOF
27231 rm -f conftest.$ac_objext
27232 if { (ac_try="$ac_compile"
27233 case "(($ac_try" in
27234   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27235   *) ac_try_echo=$ac_try;;
27236 esac
27237 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27238   (eval "$ac_compile") 2>conftest.er1
27239   ac_status=$?
27240   grep -v '^ *+' conftest.er1 >conftest.err
27241   rm -f conftest.er1
27242   cat conftest.err >&5
27243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27244   (exit $ac_status); } && {
27245          test -z "$ac_c_werror_flag" ||
27246          test ! -s conftest.err
27247        } && test -s conftest.$ac_objext; then
27248   ac_hi=-1 ac_mid=-1
27249   while :; do
27250     cat >conftest.$ac_ext <<_ACEOF
27251 /* confdefs.h.  */
27252 _ACEOF
27253 cat confdefs.h >>conftest.$ac_ext
27254 cat >>conftest.$ac_ext <<_ACEOF
27255 /* end confdefs.h.  */
27256 $ac_includes_default
27257    typedef int ac__type_sizeof_;
27258 int
27259 main ()
27260 {
27261 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
27262 test_array [0] = 0
27263
27264   ;
27265   return 0;
27266 }
27267 _ACEOF
27268 rm -f conftest.$ac_objext
27269 if { (ac_try="$ac_compile"
27270 case "(($ac_try" in
27271   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27272   *) ac_try_echo=$ac_try;;
27273 esac
27274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27275   (eval "$ac_compile") 2>conftest.er1
27276   ac_status=$?
27277   grep -v '^ *+' conftest.er1 >conftest.err
27278   rm -f conftest.er1
27279   cat conftest.err >&5
27280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27281   (exit $ac_status); } && {
27282          test -z "$ac_c_werror_flag" ||
27283          test ! -s conftest.err
27284        } && test -s conftest.$ac_objext; then
27285   ac_lo=$ac_mid; break
27286 else
27287   echo "$as_me: failed program was:" >&5
27288 sed 's/^/| /' conftest.$ac_ext >&5
27289
27290         ac_hi=`expr '(' $ac_mid ')' - 1`
27291                         if test $ac_mid -le $ac_hi; then
27292                           ac_lo= ac_hi=
27293                           break
27294                         fi
27295                         ac_mid=`expr 2 '*' $ac_mid`
27296 fi
27297
27298 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27299   done
27300 else
27301   echo "$as_me: failed program was:" >&5
27302 sed 's/^/| /' conftest.$ac_ext >&5
27303
27304         ac_lo= ac_hi=
27305 fi
27306
27307 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27308 fi
27309
27310 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27311 # Binary search between lo and hi bounds.
27312 while test "x$ac_lo" != "x$ac_hi"; do
27313   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
27314   cat >conftest.$ac_ext <<_ACEOF
27315 /* confdefs.h.  */
27316 _ACEOF
27317 cat confdefs.h >>conftest.$ac_ext
27318 cat >>conftest.$ac_ext <<_ACEOF
27319 /* end confdefs.h.  */
27320 $ac_includes_default
27321    typedef int ac__type_sizeof_;
27322 int
27323 main ()
27324 {
27325 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
27326 test_array [0] = 0
27327
27328   ;
27329   return 0;
27330 }
27331 _ACEOF
27332 rm -f conftest.$ac_objext
27333 if { (ac_try="$ac_compile"
27334 case "(($ac_try" in
27335   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27336   *) ac_try_echo=$ac_try;;
27337 esac
27338 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27339   (eval "$ac_compile") 2>conftest.er1
27340   ac_status=$?
27341   grep -v '^ *+' conftest.er1 >conftest.err
27342   rm -f conftest.er1
27343   cat conftest.err >&5
27344   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27345   (exit $ac_status); } && {
27346          test -z "$ac_c_werror_flag" ||
27347          test ! -s conftest.err
27348        } && test -s conftest.$ac_objext; then
27349   ac_hi=$ac_mid
27350 else
27351   echo "$as_me: failed program was:" >&5
27352 sed 's/^/| /' conftest.$ac_ext >&5
27353
27354         ac_lo=`expr '(' $ac_mid ')' + 1`
27355 fi
27356
27357 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27358 done
27359 case $ac_lo in
27360 ?*) ac_cv_sizeof_int=$ac_lo;;
27361 '') if test "$ac_cv_type_int" = yes; then
27362      { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
27363 See \`config.log' for more details." >&5
27364 echo "$as_me: error: cannot compute sizeof (int)
27365 See \`config.log' for more details." >&2;}
27366    { (exit 77); exit 77; }; }
27367    else
27368      ac_cv_sizeof_int=0
27369    fi ;;
27370 esac
27371 else
27372   cat >conftest.$ac_ext <<_ACEOF
27373 /* confdefs.h.  */
27374 _ACEOF
27375 cat confdefs.h >>conftest.$ac_ext
27376 cat >>conftest.$ac_ext <<_ACEOF
27377 /* end confdefs.h.  */
27378 $ac_includes_default
27379    typedef int ac__type_sizeof_;
27380 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
27381 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
27382 #include <stdio.h>
27383 #include <stdlib.h>
27384 int
27385 main ()
27386 {
27387
27388   FILE *f = fopen ("conftest.val", "w");
27389   if (! f)
27390     return 1;
27391   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
27392     {
27393       long int i = longval ();
27394       if (i != ((long int) (sizeof (ac__type_sizeof_))))
27395         return 1;
27396       fprintf (f, "%ld\n", i);
27397     }
27398   else
27399     {
27400       unsigned long int i = ulongval ();
27401       if (i != ((long int) (sizeof (ac__type_sizeof_))))
27402         return 1;
27403       fprintf (f, "%lu\n", i);
27404     }
27405   return ferror (f) || fclose (f) != 0;
27406
27407   ;
27408   return 0;
27409 }
27410 _ACEOF
27411 rm -f conftest$ac_exeext
27412 if { (ac_try="$ac_link"
27413 case "(($ac_try" in
27414   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27415   *) ac_try_echo=$ac_try;;
27416 esac
27417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27418   (eval "$ac_link") 2>&5
27419   ac_status=$?
27420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27421   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27422   { (case "(($ac_try" in
27423   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27424   *) ac_try_echo=$ac_try;;
27425 esac
27426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27427   (eval "$ac_try") 2>&5
27428   ac_status=$?
27429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27430   (exit $ac_status); }; }; then
27431   ac_cv_sizeof_int=`cat conftest.val`
27432 else
27433   echo "$as_me: program exited with status $ac_status" >&5
27434 echo "$as_me: failed program was:" >&5
27435 sed 's/^/| /' conftest.$ac_ext >&5
27436
27437 ( exit $ac_status )
27438 if test "$ac_cv_type_int" = yes; then
27439      { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
27440 See \`config.log' for more details." >&5
27441 echo "$as_me: error: cannot compute sizeof (int)
27442 See \`config.log' for more details." >&2;}
27443    { (exit 77); exit 77; }; }
27444    else
27445      ac_cv_sizeof_int=0
27446    fi
27447 fi
27448 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27449 fi
27450 rm -f conftest.val
27451 fi
27452 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
27453 echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
27454
27455
27456
27457 cat >>confdefs.h <<_ACEOF
27458 #define SIZEOF_INT $ac_cv_sizeof_int
27459 _ACEOF
27460
27461
27462 { echo "$as_me:$LINENO: checking for long" >&5
27463 echo $ECHO_N "checking for long... $ECHO_C" >&6; }
27464 if test "${ac_cv_type_long+set}" = set; then
27465   echo $ECHO_N "(cached) $ECHO_C" >&6
27466 else
27467   cat >conftest.$ac_ext <<_ACEOF
27468 /* confdefs.h.  */
27469 _ACEOF
27470 cat confdefs.h >>conftest.$ac_ext
27471 cat >>conftest.$ac_ext <<_ACEOF
27472 /* end confdefs.h.  */
27473 $ac_includes_default
27474 typedef long ac__type_new_;
27475 int
27476 main ()
27477 {
27478 if ((ac__type_new_ *) 0)
27479   return 0;
27480 if (sizeof (ac__type_new_))
27481   return 0;
27482   ;
27483   return 0;
27484 }
27485 _ACEOF
27486 rm -f conftest.$ac_objext
27487 if { (ac_try="$ac_compile"
27488 case "(($ac_try" in
27489   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27490   *) ac_try_echo=$ac_try;;
27491 esac
27492 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27493   (eval "$ac_compile") 2>conftest.er1
27494   ac_status=$?
27495   grep -v '^ *+' conftest.er1 >conftest.err
27496   rm -f conftest.er1
27497   cat conftest.err >&5
27498   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27499   (exit $ac_status); } && {
27500          test -z "$ac_c_werror_flag" ||
27501          test ! -s conftest.err
27502        } && test -s conftest.$ac_objext; then
27503   ac_cv_type_long=yes
27504 else
27505   echo "$as_me: failed program was:" >&5
27506 sed 's/^/| /' conftest.$ac_ext >&5
27507
27508         ac_cv_type_long=no
27509 fi
27510
27511 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27512 fi
27513 { echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
27514 echo "${ECHO_T}$ac_cv_type_long" >&6; }
27515
27516 # The cast to long int works around a bug in the HP C Compiler
27517 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27518 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27519 # This bug is HP SR number 8606223364.
27520 { echo "$as_me:$LINENO: checking size of long" >&5
27521 echo $ECHO_N "checking size of long... $ECHO_C" >&6; }
27522 if test "${ac_cv_sizeof_long+set}" = set; then
27523   echo $ECHO_N "(cached) $ECHO_C" >&6
27524 else
27525   if test "$cross_compiling" = yes; then
27526   # Depending upon the size, compute the lo and hi bounds.
27527 cat >conftest.$ac_ext <<_ACEOF
27528 /* confdefs.h.  */
27529 _ACEOF
27530 cat confdefs.h >>conftest.$ac_ext
27531 cat >>conftest.$ac_ext <<_ACEOF
27532 /* end confdefs.h.  */
27533 $ac_includes_default
27534    typedef long ac__type_sizeof_;
27535 int
27536 main ()
27537 {
27538 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
27539 test_array [0] = 0
27540
27541   ;
27542   return 0;
27543 }
27544 _ACEOF
27545 rm -f conftest.$ac_objext
27546 if { (ac_try="$ac_compile"
27547 case "(($ac_try" in
27548   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27549   *) ac_try_echo=$ac_try;;
27550 esac
27551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27552   (eval "$ac_compile") 2>conftest.er1
27553   ac_status=$?
27554   grep -v '^ *+' conftest.er1 >conftest.err
27555   rm -f conftest.er1
27556   cat conftest.err >&5
27557   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27558   (exit $ac_status); } && {
27559          test -z "$ac_c_werror_flag" ||
27560          test ! -s conftest.err
27561        } && test -s conftest.$ac_objext; then
27562   ac_lo=0 ac_mid=0
27563   while :; do
27564     cat >conftest.$ac_ext <<_ACEOF
27565 /* confdefs.h.  */
27566 _ACEOF
27567 cat confdefs.h >>conftest.$ac_ext
27568 cat >>conftest.$ac_ext <<_ACEOF
27569 /* end confdefs.h.  */
27570 $ac_includes_default
27571    typedef long ac__type_sizeof_;
27572 int
27573 main ()
27574 {
27575 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
27576 test_array [0] = 0
27577
27578   ;
27579   return 0;
27580 }
27581 _ACEOF
27582 rm -f conftest.$ac_objext
27583 if { (ac_try="$ac_compile"
27584 case "(($ac_try" in
27585   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27586   *) ac_try_echo=$ac_try;;
27587 esac
27588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27589   (eval "$ac_compile") 2>conftest.er1
27590   ac_status=$?
27591   grep -v '^ *+' conftest.er1 >conftest.err
27592   rm -f conftest.er1
27593   cat conftest.err >&5
27594   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27595   (exit $ac_status); } && {
27596          test -z "$ac_c_werror_flag" ||
27597          test ! -s conftest.err
27598        } && test -s conftest.$ac_objext; then
27599   ac_hi=$ac_mid; break
27600 else
27601   echo "$as_me: failed program was:" >&5
27602 sed 's/^/| /' conftest.$ac_ext >&5
27603
27604         ac_lo=`expr $ac_mid + 1`
27605                         if test $ac_lo -le $ac_mid; then
27606                           ac_lo= ac_hi=
27607                           break
27608                         fi
27609                         ac_mid=`expr 2 '*' $ac_mid + 1`
27610 fi
27611
27612 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27613   done
27614 else
27615   echo "$as_me: failed program was:" >&5
27616 sed 's/^/| /' conftest.$ac_ext >&5
27617
27618         cat >conftest.$ac_ext <<_ACEOF
27619 /* confdefs.h.  */
27620 _ACEOF
27621 cat confdefs.h >>conftest.$ac_ext
27622 cat >>conftest.$ac_ext <<_ACEOF
27623 /* end confdefs.h.  */
27624 $ac_includes_default
27625    typedef long ac__type_sizeof_;
27626 int
27627 main ()
27628 {
27629 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
27630 test_array [0] = 0
27631
27632   ;
27633   return 0;
27634 }
27635 _ACEOF
27636 rm -f conftest.$ac_objext
27637 if { (ac_try="$ac_compile"
27638 case "(($ac_try" in
27639   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27640   *) ac_try_echo=$ac_try;;
27641 esac
27642 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27643   (eval "$ac_compile") 2>conftest.er1
27644   ac_status=$?
27645   grep -v '^ *+' conftest.er1 >conftest.err
27646   rm -f conftest.er1
27647   cat conftest.err >&5
27648   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27649   (exit $ac_status); } && {
27650          test -z "$ac_c_werror_flag" ||
27651          test ! -s conftest.err
27652        } && test -s conftest.$ac_objext; then
27653   ac_hi=-1 ac_mid=-1
27654   while :; do
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 $ac_includes_default
27662    typedef long ac__type_sizeof_;
27663 int
27664 main ()
27665 {
27666 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
27667 test_array [0] = 0
27668
27669   ;
27670   return 0;
27671 }
27672 _ACEOF
27673 rm -f conftest.$ac_objext
27674 if { (ac_try="$ac_compile"
27675 case "(($ac_try" in
27676   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27677   *) ac_try_echo=$ac_try;;
27678 esac
27679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27680   (eval "$ac_compile") 2>conftest.er1
27681   ac_status=$?
27682   grep -v '^ *+' conftest.er1 >conftest.err
27683   rm -f conftest.er1
27684   cat conftest.err >&5
27685   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27686   (exit $ac_status); } && {
27687          test -z "$ac_c_werror_flag" ||
27688          test ! -s conftest.err
27689        } && test -s conftest.$ac_objext; then
27690   ac_lo=$ac_mid; break
27691 else
27692   echo "$as_me: failed program was:" >&5
27693 sed 's/^/| /' conftest.$ac_ext >&5
27694
27695         ac_hi=`expr '(' $ac_mid ')' - 1`
27696                         if test $ac_mid -le $ac_hi; then
27697                           ac_lo= ac_hi=
27698                           break
27699                         fi
27700                         ac_mid=`expr 2 '*' $ac_mid`
27701 fi
27702
27703 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27704   done
27705 else
27706   echo "$as_me: failed program was:" >&5
27707 sed 's/^/| /' conftest.$ac_ext >&5
27708
27709         ac_lo= ac_hi=
27710 fi
27711
27712 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27713 fi
27714
27715 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27716 # Binary search between lo and hi bounds.
27717 while test "x$ac_lo" != "x$ac_hi"; do
27718   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
27719   cat >conftest.$ac_ext <<_ACEOF
27720 /* confdefs.h.  */
27721 _ACEOF
27722 cat confdefs.h >>conftest.$ac_ext
27723 cat >>conftest.$ac_ext <<_ACEOF
27724 /* end confdefs.h.  */
27725 $ac_includes_default
27726    typedef long ac__type_sizeof_;
27727 int
27728 main ()
27729 {
27730 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
27731 test_array [0] = 0
27732
27733   ;
27734   return 0;
27735 }
27736 _ACEOF
27737 rm -f conftest.$ac_objext
27738 if { (ac_try="$ac_compile"
27739 case "(($ac_try" in
27740   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27741   *) ac_try_echo=$ac_try;;
27742 esac
27743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27744   (eval "$ac_compile") 2>conftest.er1
27745   ac_status=$?
27746   grep -v '^ *+' conftest.er1 >conftest.err
27747   rm -f conftest.er1
27748   cat conftest.err >&5
27749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27750   (exit $ac_status); } && {
27751          test -z "$ac_c_werror_flag" ||
27752          test ! -s conftest.err
27753        } && test -s conftest.$ac_objext; then
27754   ac_hi=$ac_mid
27755 else
27756   echo "$as_me: failed program was:" >&5
27757 sed 's/^/| /' conftest.$ac_ext >&5
27758
27759         ac_lo=`expr '(' $ac_mid ')' + 1`
27760 fi
27761
27762 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27763 done
27764 case $ac_lo in
27765 ?*) ac_cv_sizeof_long=$ac_lo;;
27766 '') if test "$ac_cv_type_long" = yes; then
27767      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
27768 See \`config.log' for more details." >&5
27769 echo "$as_me: error: cannot compute sizeof (long)
27770 See \`config.log' for more details." >&2;}
27771    { (exit 77); exit 77; }; }
27772    else
27773      ac_cv_sizeof_long=0
27774    fi ;;
27775 esac
27776 else
27777   cat >conftest.$ac_ext <<_ACEOF
27778 /* confdefs.h.  */
27779 _ACEOF
27780 cat confdefs.h >>conftest.$ac_ext
27781 cat >>conftest.$ac_ext <<_ACEOF
27782 /* end confdefs.h.  */
27783 $ac_includes_default
27784    typedef long ac__type_sizeof_;
27785 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
27786 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
27787 #include <stdio.h>
27788 #include <stdlib.h>
27789 int
27790 main ()
27791 {
27792
27793   FILE *f = fopen ("conftest.val", "w");
27794   if (! f)
27795     return 1;
27796   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
27797     {
27798       long int i = longval ();
27799       if (i != ((long int) (sizeof (ac__type_sizeof_))))
27800         return 1;
27801       fprintf (f, "%ld\n", i);
27802     }
27803   else
27804     {
27805       unsigned long int i = ulongval ();
27806       if (i != ((long int) (sizeof (ac__type_sizeof_))))
27807         return 1;
27808       fprintf (f, "%lu\n", i);
27809     }
27810   return ferror (f) || fclose (f) != 0;
27811
27812   ;
27813   return 0;
27814 }
27815 _ACEOF
27816 rm -f conftest$ac_exeext
27817 if { (ac_try="$ac_link"
27818 case "(($ac_try" in
27819   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27820   *) ac_try_echo=$ac_try;;
27821 esac
27822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27823   (eval "$ac_link") 2>&5
27824   ac_status=$?
27825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27826   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27827   { (case "(($ac_try" in
27828   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27829   *) ac_try_echo=$ac_try;;
27830 esac
27831 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27832   (eval "$ac_try") 2>&5
27833   ac_status=$?
27834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27835   (exit $ac_status); }; }; then
27836   ac_cv_sizeof_long=`cat conftest.val`
27837 else
27838   echo "$as_me: program exited with status $ac_status" >&5
27839 echo "$as_me: failed program was:" >&5
27840 sed 's/^/| /' conftest.$ac_ext >&5
27841
27842 ( exit $ac_status )
27843 if test "$ac_cv_type_long" = yes; then
27844      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
27845 See \`config.log' for more details." >&5
27846 echo "$as_me: error: cannot compute sizeof (long)
27847 See \`config.log' for more details." >&2;}
27848    { (exit 77); exit 77; }; }
27849    else
27850      ac_cv_sizeof_long=0
27851    fi
27852 fi
27853 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27854 fi
27855 rm -f conftest.val
27856 fi
27857 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
27858 echo "${ECHO_T}$ac_cv_sizeof_long" >&6; }
27859
27860
27861
27862 cat >>confdefs.h <<_ACEOF
27863 #define SIZEOF_LONG $ac_cv_sizeof_long
27864 _ACEOF
27865
27866
27867 { echo "$as_me:$LINENO: checking for size_t" >&5
27868 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
27869 if test "${ac_cv_type_size_t+set}" = set; then
27870   echo $ECHO_N "(cached) $ECHO_C" >&6
27871 else
27872   cat >conftest.$ac_ext <<_ACEOF
27873 /* confdefs.h.  */
27874 _ACEOF
27875 cat confdefs.h >>conftest.$ac_ext
27876 cat >>conftest.$ac_ext <<_ACEOF
27877 /* end confdefs.h.  */
27878 $ac_includes_default
27879 typedef size_t ac__type_new_;
27880 int
27881 main ()
27882 {
27883 if ((ac__type_new_ *) 0)
27884   return 0;
27885 if (sizeof (ac__type_new_))
27886   return 0;
27887   ;
27888   return 0;
27889 }
27890 _ACEOF
27891 rm -f conftest.$ac_objext
27892 if { (ac_try="$ac_compile"
27893 case "(($ac_try" in
27894   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27895   *) ac_try_echo=$ac_try;;
27896 esac
27897 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27898   (eval "$ac_compile") 2>conftest.er1
27899   ac_status=$?
27900   grep -v '^ *+' conftest.er1 >conftest.err
27901   rm -f conftest.er1
27902   cat conftest.err >&5
27903   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27904   (exit $ac_status); } && {
27905          test -z "$ac_c_werror_flag" ||
27906          test ! -s conftest.err
27907        } && test -s conftest.$ac_objext; then
27908   ac_cv_type_size_t=yes
27909 else
27910   echo "$as_me: failed program was:" >&5
27911 sed 's/^/| /' conftest.$ac_ext >&5
27912
27913         ac_cv_type_size_t=no
27914 fi
27915
27916 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27917 fi
27918 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
27919 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
27920
27921 # The cast to long int works around a bug in the HP C Compiler
27922 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27923 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27924 # This bug is HP SR number 8606223364.
27925 { echo "$as_me:$LINENO: checking size of size_t" >&5
27926 echo $ECHO_N "checking size of size_t... $ECHO_C" >&6; }
27927 if test "${ac_cv_sizeof_size_t+set}" = set; then
27928   echo $ECHO_N "(cached) $ECHO_C" >&6
27929 else
27930   if test "$cross_compiling" = yes; then
27931   # Depending upon the size, compute the lo and hi bounds.
27932 cat >conftest.$ac_ext <<_ACEOF
27933 /* confdefs.h.  */
27934 _ACEOF
27935 cat confdefs.h >>conftest.$ac_ext
27936 cat >>conftest.$ac_ext <<_ACEOF
27937 /* end confdefs.h.  */
27938 $ac_includes_default
27939    typedef size_t ac__type_sizeof_;
27940 int
27941 main ()
27942 {
27943 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
27944 test_array [0] = 0
27945
27946   ;
27947   return 0;
27948 }
27949 _ACEOF
27950 rm -f conftest.$ac_objext
27951 if { (ac_try="$ac_compile"
27952 case "(($ac_try" in
27953   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27954   *) ac_try_echo=$ac_try;;
27955 esac
27956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27957   (eval "$ac_compile") 2>conftest.er1
27958   ac_status=$?
27959   grep -v '^ *+' conftest.er1 >conftest.err
27960   rm -f conftest.er1
27961   cat conftest.err >&5
27962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27963   (exit $ac_status); } && {
27964          test -z "$ac_c_werror_flag" ||
27965          test ! -s conftest.err
27966        } && test -s conftest.$ac_objext; then
27967   ac_lo=0 ac_mid=0
27968   while :; do
27969     cat >conftest.$ac_ext <<_ACEOF
27970 /* confdefs.h.  */
27971 _ACEOF
27972 cat confdefs.h >>conftest.$ac_ext
27973 cat >>conftest.$ac_ext <<_ACEOF
27974 /* end confdefs.h.  */
27975 $ac_includes_default
27976    typedef size_t ac__type_sizeof_;
27977 int
27978 main ()
27979 {
27980 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
27981 test_array [0] = 0
27982
27983   ;
27984   return 0;
27985 }
27986 _ACEOF
27987 rm -f conftest.$ac_objext
27988 if { (ac_try="$ac_compile"
27989 case "(($ac_try" in
27990   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27991   *) ac_try_echo=$ac_try;;
27992 esac
27993 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27994   (eval "$ac_compile") 2>conftest.er1
27995   ac_status=$?
27996   grep -v '^ *+' conftest.er1 >conftest.err
27997   rm -f conftest.er1
27998   cat conftest.err >&5
27999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28000   (exit $ac_status); } && {
28001          test -z "$ac_c_werror_flag" ||
28002          test ! -s conftest.err
28003        } && test -s conftest.$ac_objext; then
28004   ac_hi=$ac_mid; break
28005 else
28006   echo "$as_me: failed program was:" >&5
28007 sed 's/^/| /' conftest.$ac_ext >&5
28008
28009         ac_lo=`expr $ac_mid + 1`
28010                         if test $ac_lo -le $ac_mid; then
28011                           ac_lo= ac_hi=
28012                           break
28013                         fi
28014                         ac_mid=`expr 2 '*' $ac_mid + 1`
28015 fi
28016
28017 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28018   done
28019 else
28020   echo "$as_me: failed program was:" >&5
28021 sed 's/^/| /' conftest.$ac_ext >&5
28022
28023         cat >conftest.$ac_ext <<_ACEOF
28024 /* confdefs.h.  */
28025 _ACEOF
28026 cat confdefs.h >>conftest.$ac_ext
28027 cat >>conftest.$ac_ext <<_ACEOF
28028 /* end confdefs.h.  */
28029 $ac_includes_default
28030    typedef size_t ac__type_sizeof_;
28031 int
28032 main ()
28033 {
28034 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
28035 test_array [0] = 0
28036
28037   ;
28038   return 0;
28039 }
28040 _ACEOF
28041 rm -f conftest.$ac_objext
28042 if { (ac_try="$ac_compile"
28043 case "(($ac_try" in
28044   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28045   *) ac_try_echo=$ac_try;;
28046 esac
28047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28048   (eval "$ac_compile") 2>conftest.er1
28049   ac_status=$?
28050   grep -v '^ *+' conftest.er1 >conftest.err
28051   rm -f conftest.er1
28052   cat conftest.err >&5
28053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28054   (exit $ac_status); } && {
28055          test -z "$ac_c_werror_flag" ||
28056          test ! -s conftest.err
28057        } && test -s conftest.$ac_objext; then
28058   ac_hi=-1 ac_mid=-1
28059   while :; do
28060     cat >conftest.$ac_ext <<_ACEOF
28061 /* confdefs.h.  */
28062 _ACEOF
28063 cat confdefs.h >>conftest.$ac_ext
28064 cat >>conftest.$ac_ext <<_ACEOF
28065 /* end confdefs.h.  */
28066 $ac_includes_default
28067    typedef size_t ac__type_sizeof_;
28068 int
28069 main ()
28070 {
28071 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
28072 test_array [0] = 0
28073
28074   ;
28075   return 0;
28076 }
28077 _ACEOF
28078 rm -f conftest.$ac_objext
28079 if { (ac_try="$ac_compile"
28080 case "(($ac_try" in
28081   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28082   *) ac_try_echo=$ac_try;;
28083 esac
28084 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28085   (eval "$ac_compile") 2>conftest.er1
28086   ac_status=$?
28087   grep -v '^ *+' conftest.er1 >conftest.err
28088   rm -f conftest.er1
28089   cat conftest.err >&5
28090   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28091   (exit $ac_status); } && {
28092          test -z "$ac_c_werror_flag" ||
28093          test ! -s conftest.err
28094        } && test -s conftest.$ac_objext; then
28095   ac_lo=$ac_mid; break
28096 else
28097   echo "$as_me: failed program was:" >&5
28098 sed 's/^/| /' conftest.$ac_ext >&5
28099
28100         ac_hi=`expr '(' $ac_mid ')' - 1`
28101                         if test $ac_mid -le $ac_hi; then
28102                           ac_lo= ac_hi=
28103                           break
28104                         fi
28105                         ac_mid=`expr 2 '*' $ac_mid`
28106 fi
28107
28108 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28109   done
28110 else
28111   echo "$as_me: failed program was:" >&5
28112 sed 's/^/| /' conftest.$ac_ext >&5
28113
28114         ac_lo= ac_hi=
28115 fi
28116
28117 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28118 fi
28119
28120 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28121 # Binary search between lo and hi bounds.
28122 while test "x$ac_lo" != "x$ac_hi"; do
28123   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
28124   cat >conftest.$ac_ext <<_ACEOF
28125 /* confdefs.h.  */
28126 _ACEOF
28127 cat confdefs.h >>conftest.$ac_ext
28128 cat >>conftest.$ac_ext <<_ACEOF
28129 /* end confdefs.h.  */
28130 $ac_includes_default
28131    typedef size_t ac__type_sizeof_;
28132 int
28133 main ()
28134 {
28135 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
28136 test_array [0] = 0
28137
28138   ;
28139   return 0;
28140 }
28141 _ACEOF
28142 rm -f conftest.$ac_objext
28143 if { (ac_try="$ac_compile"
28144 case "(($ac_try" in
28145   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28146   *) ac_try_echo=$ac_try;;
28147 esac
28148 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28149   (eval "$ac_compile") 2>conftest.er1
28150   ac_status=$?
28151   grep -v '^ *+' conftest.er1 >conftest.err
28152   rm -f conftest.er1
28153   cat conftest.err >&5
28154   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28155   (exit $ac_status); } && {
28156          test -z "$ac_c_werror_flag" ||
28157          test ! -s conftest.err
28158        } && test -s conftest.$ac_objext; then
28159   ac_hi=$ac_mid
28160 else
28161   echo "$as_me: failed program was:" >&5
28162 sed 's/^/| /' conftest.$ac_ext >&5
28163
28164         ac_lo=`expr '(' $ac_mid ')' + 1`
28165 fi
28166
28167 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28168 done
28169 case $ac_lo in
28170 ?*) ac_cv_sizeof_size_t=$ac_lo;;
28171 '') if test "$ac_cv_type_size_t" = yes; then
28172      { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
28173 See \`config.log' for more details." >&5
28174 echo "$as_me: error: cannot compute sizeof (size_t)
28175 See \`config.log' for more details." >&2;}
28176    { (exit 77); exit 77; }; }
28177    else
28178      ac_cv_sizeof_size_t=0
28179    fi ;;
28180 esac
28181 else
28182   cat >conftest.$ac_ext <<_ACEOF
28183 /* confdefs.h.  */
28184 _ACEOF
28185 cat confdefs.h >>conftest.$ac_ext
28186 cat >>conftest.$ac_ext <<_ACEOF
28187 /* end confdefs.h.  */
28188 $ac_includes_default
28189    typedef size_t ac__type_sizeof_;
28190 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
28191 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
28192 #include <stdio.h>
28193 #include <stdlib.h>
28194 int
28195 main ()
28196 {
28197
28198   FILE *f = fopen ("conftest.val", "w");
28199   if (! f)
28200     return 1;
28201   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
28202     {
28203       long int i = longval ();
28204       if (i != ((long int) (sizeof (ac__type_sizeof_))))
28205         return 1;
28206       fprintf (f, "%ld\n", i);
28207     }
28208   else
28209     {
28210       unsigned long int i = ulongval ();
28211       if (i != ((long int) (sizeof (ac__type_sizeof_))))
28212         return 1;
28213       fprintf (f, "%lu\n", i);
28214     }
28215   return ferror (f) || fclose (f) != 0;
28216
28217   ;
28218   return 0;
28219 }
28220 _ACEOF
28221 rm -f conftest$ac_exeext
28222 if { (ac_try="$ac_link"
28223 case "(($ac_try" in
28224   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28225   *) ac_try_echo=$ac_try;;
28226 esac
28227 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28228   (eval "$ac_link") 2>&5
28229   ac_status=$?
28230   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28231   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28232   { (case "(($ac_try" in
28233   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28234   *) ac_try_echo=$ac_try;;
28235 esac
28236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28237   (eval "$ac_try") 2>&5
28238   ac_status=$?
28239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28240   (exit $ac_status); }; }; then
28241   ac_cv_sizeof_size_t=`cat conftest.val`
28242 else
28243   echo "$as_me: program exited with status $ac_status" >&5
28244 echo "$as_me: failed program was:" >&5
28245 sed 's/^/| /' conftest.$ac_ext >&5
28246
28247 ( exit $ac_status )
28248 if test "$ac_cv_type_size_t" = yes; then
28249      { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
28250 See \`config.log' for more details." >&5
28251 echo "$as_me: error: cannot compute sizeof (size_t)
28252 See \`config.log' for more details." >&2;}
28253    { (exit 77); exit 77; }; }
28254    else
28255      ac_cv_sizeof_size_t=0
28256    fi
28257 fi
28258 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28259 fi
28260 rm -f conftest.val
28261 fi
28262 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
28263 echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6; }
28264
28265
28266
28267 cat >>confdefs.h <<_ACEOF
28268 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
28269 _ACEOF
28270
28271
28272 { echo "$as_me:$LINENO: checking for socklen_t" >&5
28273 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; }
28274 if test "${ac_cv_type_socklen_t+set}" = set; then
28275   echo $ECHO_N "(cached) $ECHO_C" >&6
28276 else
28277   cat >conftest.$ac_ext <<_ACEOF
28278 /* confdefs.h.  */
28279 _ACEOF
28280 cat confdefs.h >>conftest.$ac_ext
28281 cat >>conftest.$ac_ext <<_ACEOF
28282 /* end confdefs.h.  */
28283 $ac_includes_default
28284 typedef socklen_t ac__type_new_;
28285 int
28286 main ()
28287 {
28288 if ((ac__type_new_ *) 0)
28289   return 0;
28290 if (sizeof (ac__type_new_))
28291   return 0;
28292   ;
28293   return 0;
28294 }
28295 _ACEOF
28296 rm -f conftest.$ac_objext
28297 if { (ac_try="$ac_compile"
28298 case "(($ac_try" in
28299   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28300   *) ac_try_echo=$ac_try;;
28301 esac
28302 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28303   (eval "$ac_compile") 2>conftest.er1
28304   ac_status=$?
28305   grep -v '^ *+' conftest.er1 >conftest.err
28306   rm -f conftest.er1
28307   cat conftest.err >&5
28308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28309   (exit $ac_status); } && {
28310          test -z "$ac_c_werror_flag" ||
28311          test ! -s conftest.err
28312        } && test -s conftest.$ac_objext; then
28313   ac_cv_type_socklen_t=yes
28314 else
28315   echo "$as_me: failed program was:" >&5
28316 sed 's/^/| /' conftest.$ac_ext >&5
28317
28318         ac_cv_type_socklen_t=no
28319 fi
28320
28321 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28322 fi
28323 { echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
28324 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6; }
28325
28326 # The cast to long int works around a bug in the HP C Compiler
28327 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
28328 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
28329 # This bug is HP SR number 8606223364.
28330 { echo "$as_me:$LINENO: checking size of socklen_t" >&5
28331 echo $ECHO_N "checking size of socklen_t... $ECHO_C" >&6; }
28332 if test "${ac_cv_sizeof_socklen_t+set}" = set; then
28333   echo $ECHO_N "(cached) $ECHO_C" >&6
28334 else
28335   if test "$cross_compiling" = yes; then
28336   # Depending upon the size, compute the lo and hi bounds.
28337 cat >conftest.$ac_ext <<_ACEOF
28338 /* confdefs.h.  */
28339 _ACEOF
28340 cat confdefs.h >>conftest.$ac_ext
28341 cat >>conftest.$ac_ext <<_ACEOF
28342 /* end confdefs.h.  */
28343 $ac_includes_default
28344    typedef socklen_t ac__type_sizeof_;
28345 int
28346 main ()
28347 {
28348 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
28349 test_array [0] = 0
28350
28351   ;
28352   return 0;
28353 }
28354 _ACEOF
28355 rm -f conftest.$ac_objext
28356 if { (ac_try="$ac_compile"
28357 case "(($ac_try" in
28358   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28359   *) ac_try_echo=$ac_try;;
28360 esac
28361 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28362   (eval "$ac_compile") 2>conftest.er1
28363   ac_status=$?
28364   grep -v '^ *+' conftest.er1 >conftest.err
28365   rm -f conftest.er1
28366   cat conftest.err >&5
28367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28368   (exit $ac_status); } && {
28369          test -z "$ac_c_werror_flag" ||
28370          test ! -s conftest.err
28371        } && test -s conftest.$ac_objext; then
28372   ac_lo=0 ac_mid=0
28373   while :; do
28374     cat >conftest.$ac_ext <<_ACEOF
28375 /* confdefs.h.  */
28376 _ACEOF
28377 cat confdefs.h >>conftest.$ac_ext
28378 cat >>conftest.$ac_ext <<_ACEOF
28379 /* end confdefs.h.  */
28380 $ac_includes_default
28381    typedef socklen_t ac__type_sizeof_;
28382 int
28383 main ()
28384 {
28385 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
28386 test_array [0] = 0
28387
28388   ;
28389   return 0;
28390 }
28391 _ACEOF
28392 rm -f conftest.$ac_objext
28393 if { (ac_try="$ac_compile"
28394 case "(($ac_try" in
28395   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28396   *) ac_try_echo=$ac_try;;
28397 esac
28398 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28399   (eval "$ac_compile") 2>conftest.er1
28400   ac_status=$?
28401   grep -v '^ *+' conftest.er1 >conftest.err
28402   rm -f conftest.er1
28403   cat conftest.err >&5
28404   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28405   (exit $ac_status); } && {
28406          test -z "$ac_c_werror_flag" ||
28407          test ! -s conftest.err
28408        } && test -s conftest.$ac_objext; then
28409   ac_hi=$ac_mid; break
28410 else
28411   echo "$as_me: failed program was:" >&5
28412 sed 's/^/| /' conftest.$ac_ext >&5
28413
28414         ac_lo=`expr $ac_mid + 1`
28415                         if test $ac_lo -le $ac_mid; then
28416                           ac_lo= ac_hi=
28417                           break
28418                         fi
28419                         ac_mid=`expr 2 '*' $ac_mid + 1`
28420 fi
28421
28422 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28423   done
28424 else
28425   echo "$as_me: failed program was:" >&5
28426 sed 's/^/| /' conftest.$ac_ext >&5
28427
28428         cat >conftest.$ac_ext <<_ACEOF
28429 /* confdefs.h.  */
28430 _ACEOF
28431 cat confdefs.h >>conftest.$ac_ext
28432 cat >>conftest.$ac_ext <<_ACEOF
28433 /* end confdefs.h.  */
28434 $ac_includes_default
28435    typedef socklen_t ac__type_sizeof_;
28436 int
28437 main ()
28438 {
28439 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
28440 test_array [0] = 0
28441
28442   ;
28443   return 0;
28444 }
28445 _ACEOF
28446 rm -f conftest.$ac_objext
28447 if { (ac_try="$ac_compile"
28448 case "(($ac_try" in
28449   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28450   *) ac_try_echo=$ac_try;;
28451 esac
28452 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28453   (eval "$ac_compile") 2>conftest.er1
28454   ac_status=$?
28455   grep -v '^ *+' conftest.er1 >conftest.err
28456   rm -f conftest.er1
28457   cat conftest.err >&5
28458   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28459   (exit $ac_status); } && {
28460          test -z "$ac_c_werror_flag" ||
28461          test ! -s conftest.err
28462        } && test -s conftest.$ac_objext; then
28463   ac_hi=-1 ac_mid=-1
28464   while :; do
28465     cat >conftest.$ac_ext <<_ACEOF
28466 /* confdefs.h.  */
28467 _ACEOF
28468 cat confdefs.h >>conftest.$ac_ext
28469 cat >>conftest.$ac_ext <<_ACEOF
28470 /* end confdefs.h.  */
28471 $ac_includes_default
28472    typedef socklen_t ac__type_sizeof_;
28473 int
28474 main ()
28475 {
28476 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
28477 test_array [0] = 0
28478
28479   ;
28480   return 0;
28481 }
28482 _ACEOF
28483 rm -f conftest.$ac_objext
28484 if { (ac_try="$ac_compile"
28485 case "(($ac_try" in
28486   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28487   *) ac_try_echo=$ac_try;;
28488 esac
28489 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28490   (eval "$ac_compile") 2>conftest.er1
28491   ac_status=$?
28492   grep -v '^ *+' conftest.er1 >conftest.err
28493   rm -f conftest.er1
28494   cat conftest.err >&5
28495   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28496   (exit $ac_status); } && {
28497          test -z "$ac_c_werror_flag" ||
28498          test ! -s conftest.err
28499        } && test -s conftest.$ac_objext; then
28500   ac_lo=$ac_mid; break
28501 else
28502   echo "$as_me: failed program was:" >&5
28503 sed 's/^/| /' conftest.$ac_ext >&5
28504
28505         ac_hi=`expr '(' $ac_mid ')' - 1`
28506                         if test $ac_mid -le $ac_hi; then
28507                           ac_lo= ac_hi=
28508                           break
28509                         fi
28510                         ac_mid=`expr 2 '*' $ac_mid`
28511 fi
28512
28513 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28514   done
28515 else
28516   echo "$as_me: failed program was:" >&5
28517 sed 's/^/| /' conftest.$ac_ext >&5
28518
28519         ac_lo= ac_hi=
28520 fi
28521
28522 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28523 fi
28524
28525 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28526 # Binary search between lo and hi bounds.
28527 while test "x$ac_lo" != "x$ac_hi"; do
28528   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
28529   cat >conftest.$ac_ext <<_ACEOF
28530 /* confdefs.h.  */
28531 _ACEOF
28532 cat confdefs.h >>conftest.$ac_ext
28533 cat >>conftest.$ac_ext <<_ACEOF
28534 /* end confdefs.h.  */
28535 $ac_includes_default
28536    typedef socklen_t ac__type_sizeof_;
28537 int
28538 main ()
28539 {
28540 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
28541 test_array [0] = 0
28542
28543   ;
28544   return 0;
28545 }
28546 _ACEOF
28547 rm -f conftest.$ac_objext
28548 if { (ac_try="$ac_compile"
28549 case "(($ac_try" in
28550   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28551   *) ac_try_echo=$ac_try;;
28552 esac
28553 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28554   (eval "$ac_compile") 2>conftest.er1
28555   ac_status=$?
28556   grep -v '^ *+' conftest.er1 >conftest.err
28557   rm -f conftest.er1
28558   cat conftest.err >&5
28559   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28560   (exit $ac_status); } && {
28561          test -z "$ac_c_werror_flag" ||
28562          test ! -s conftest.err
28563        } && test -s conftest.$ac_objext; then
28564   ac_hi=$ac_mid
28565 else
28566   echo "$as_me: failed program was:" >&5
28567 sed 's/^/| /' conftest.$ac_ext >&5
28568
28569         ac_lo=`expr '(' $ac_mid ')' + 1`
28570 fi
28571
28572 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28573 done
28574 case $ac_lo in
28575 ?*) ac_cv_sizeof_socklen_t=$ac_lo;;
28576 '') if test "$ac_cv_type_socklen_t" = yes; then
28577      { { echo "$as_me:$LINENO: error: cannot compute sizeof (socklen_t)
28578 See \`config.log' for more details." >&5
28579 echo "$as_me: error: cannot compute sizeof (socklen_t)
28580 See \`config.log' for more details." >&2;}
28581    { (exit 77); exit 77; }; }
28582    else
28583      ac_cv_sizeof_socklen_t=0
28584    fi ;;
28585 esac
28586 else
28587   cat >conftest.$ac_ext <<_ACEOF
28588 /* confdefs.h.  */
28589 _ACEOF
28590 cat confdefs.h >>conftest.$ac_ext
28591 cat >>conftest.$ac_ext <<_ACEOF
28592 /* end confdefs.h.  */
28593 $ac_includes_default
28594    typedef socklen_t ac__type_sizeof_;
28595 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
28596 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
28597 #include <stdio.h>
28598 #include <stdlib.h>
28599 int
28600 main ()
28601 {
28602
28603   FILE *f = fopen ("conftest.val", "w");
28604   if (! f)
28605     return 1;
28606   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
28607     {
28608       long int i = longval ();
28609       if (i != ((long int) (sizeof (ac__type_sizeof_))))
28610         return 1;
28611       fprintf (f, "%ld\n", i);
28612     }
28613   else
28614     {
28615       unsigned long int i = ulongval ();
28616       if (i != ((long int) (sizeof (ac__type_sizeof_))))
28617         return 1;
28618       fprintf (f, "%lu\n", i);
28619     }
28620   return ferror (f) || fclose (f) != 0;
28621
28622   ;
28623   return 0;
28624 }
28625 _ACEOF
28626 rm -f conftest$ac_exeext
28627 if { (ac_try="$ac_link"
28628 case "(($ac_try" in
28629   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28630   *) ac_try_echo=$ac_try;;
28631 esac
28632 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28633   (eval "$ac_link") 2>&5
28634   ac_status=$?
28635   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28636   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28637   { (case "(($ac_try" in
28638   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28639   *) ac_try_echo=$ac_try;;
28640 esac
28641 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28642   (eval "$ac_try") 2>&5
28643   ac_status=$?
28644   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28645   (exit $ac_status); }; }; then
28646   ac_cv_sizeof_socklen_t=`cat conftest.val`
28647 else
28648   echo "$as_me: program exited with status $ac_status" >&5
28649 echo "$as_me: failed program was:" >&5
28650 sed 's/^/| /' conftest.$ac_ext >&5
28651
28652 ( exit $ac_status )
28653 if test "$ac_cv_type_socklen_t" = yes; then
28654      { { echo "$as_me:$LINENO: error: cannot compute sizeof (socklen_t)
28655 See \`config.log' for more details." >&5
28656 echo "$as_me: error: cannot compute sizeof (socklen_t)
28657 See \`config.log' for more details." >&2;}
28658    { (exit 77); exit 77; }; }
28659    else
28660      ac_cv_sizeof_socklen_t=0
28661    fi
28662 fi
28663 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28664 fi
28665 rm -f conftest.val
28666 fi
28667 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_socklen_t" >&5
28668 echo "${ECHO_T}$ac_cv_sizeof_socklen_t" >&6; }
28669
28670
28671
28672 cat >>confdefs.h <<_ACEOF
28673 #define SIZEOF_SOCKLEN_T $ac_cv_sizeof_socklen_t
28674 _ACEOF
28675
28676
28677
28678
28679
28680 cat >>confdefs.h <<_ACEOF
28681 #define NFS_STATEDIR "$statedir"
28682 _ACEOF
28683
28684
28685 if test "x$cross_compiling" = "xno"; then
28686         CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-"$CFLAGS"}
28687         CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-"$CXXFLAGS"}
28688         CPPFLAGS_FOR_BUILD=${CPPFLAGS_FOR_BUILD-"$CPPFLAGS"}
28689         LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-"$LDFLAGS"}
28690 else
28691         CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-""}
28692         CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-""}
28693         CPPFLAGS_FOR_BUILD=${CPPFLAGS_FOR_BUILD-""}
28694         LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-""}
28695 fi
28696
28697
28698
28699
28700
28701
28702
28703
28704
28705
28706
28707 case $host in
28708   alpha*)
28709     ARCHFLAGS="-mno-fp-regs -ffixed-8" ;;
28710   *)
28711     ARCHFLAGS="" ;;
28712 esac
28713
28714 my_am_cflags="-Wall $ARCHFLAGS -pipe"
28715
28716 AM_CPPFLAGS="-I\${top_srcdir}/support/include -D_FILE_OFFSET_BITS=64"
28717
28718 AM_CFLAGS="$my_am_cflags"
28719
28720
28721 # Make sure that $ACLOCAL_FLAGS are used during a rebuild
28722 ACLOCAL_AMFLAGS="-I $ac_macro_dir \$(ACLOCAL_FLAGS)"
28723
28724
28725 ac_config_files="$ac_config_files Makefile linux-nfs/Makefile support/Makefile support/export/Makefile support/include/nfs/Makefile support/include/rpcsvc/Makefile support/include/sys/fs/Makefile support/include/sys/Makefile support/include/Makefile support/misc/Makefile support/nfs/Makefile tools/Makefile tools/getiversion/Makefile tools/getkversion/Makefile tools/locktest/Makefile tools/nlmtest/Makefile tools/rpcdebug/Makefile tools/rpcgen/Makefile utils/Makefile utils/exportfs/Makefile utils/gssd/Makefile utils/idmapd/Makefile utils/lockd/Makefile utils/mount/Makefile utils/mountd/Makefile utils/nfsd/Makefile utils/nfsstat/Makefile utils/rquotad/Makefile utils/showmount/Makefile utils/statd/Makefile"
28726
28727 cat >confcache <<\_ACEOF
28728 # This file is a shell script that caches the results of configure
28729 # tests run on this system so they can be shared between configure
28730 # scripts and configure runs, see configure's option --config-cache.
28731 # It is not useful on other systems.  If it contains results you don't
28732 # want to keep, you may remove or edit it.
28733 #
28734 # config.status only pays attention to the cache file if you give it
28735 # the --recheck option to rerun configure.
28736 #
28737 # `ac_cv_env_foo' variables (set or unset) will be overridden when
28738 # loading this file, other *unset* `ac_cv_foo' will be assigned the
28739 # following values.
28740
28741 _ACEOF
28742
28743 # The following way of writing the cache mishandles newlines in values,
28744 # but we know of no workaround that is simple, portable, and efficient.
28745 # So, we kill variables containing newlines.
28746 # Ultrix sh set writes to stderr and can't be redirected directly,
28747 # and sets the high bit in the cache file unless we assign to the vars.
28748 (
28749   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
28750     eval ac_val=\$$ac_var
28751     case $ac_val in #(
28752     *${as_nl}*)
28753       case $ac_var in #(
28754       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
28755 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
28756       esac
28757       case $ac_var in #(
28758       _ | IFS | as_nl) ;; #(
28759       *) $as_unset $ac_var ;;
28760       esac ;;
28761     esac
28762   done
28763
28764   (set) 2>&1 |
28765     case $as_nl`(ac_space=' '; set) 2>&1` in #(
28766     *${as_nl}ac_space=\ *)
28767       # `set' does not quote correctly, so add quotes (double-quote
28768       # substitution turns \\\\ into \\, and sed turns \\ into \).
28769       sed -n \
28770         "s/'/'\\\\''/g;
28771           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
28772       ;; #(
28773     *)
28774       # `set' quotes correctly as required by POSIX, so do not add quotes.
28775       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
28776       ;;
28777     esac |
28778     sort
28779 ) |
28780   sed '
28781      /^ac_cv_env_/b end
28782      t clear
28783      :clear
28784      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
28785      t end
28786      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
28787      :end' >>confcache
28788 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
28789   if test -w "$cache_file"; then
28790     test "x$cache_file" != "x/dev/null" &&
28791       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
28792 echo "$as_me: updating cache $cache_file" >&6;}
28793     cat confcache >$cache_file
28794   else
28795     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
28796 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
28797   fi
28798 fi
28799 rm -f confcache
28800
28801 test "x$prefix" = xNONE && prefix=$ac_default_prefix
28802 # Let make expand exec_prefix.
28803 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
28804
28805 DEFS=-DHAVE_CONFIG_H
28806
28807 ac_libobjs=
28808 ac_ltlibobjs=
28809 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
28810   # 1. Remove the extension, and $U if already installed.
28811   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
28812   ac_i=`echo "$ac_i" | sed "$ac_script"`
28813   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
28814   #    will be set to the directory where LIBOBJS objects are built.
28815   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
28816   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
28817 done
28818 LIBOBJS=$ac_libobjs
28819
28820 LTLIBOBJS=$ac_ltlibobjs
28821
28822
28823 if test -z "${CONFIG_NFSV4_TRUE}" && test -z "${CONFIG_NFSV4_FALSE}"; then
28824   { { echo "$as_me:$LINENO: error: conditional \"CONFIG_NFSV4\" was never defined.
28825 Usually this means the macro was only invoked conditionally." >&5
28826 echo "$as_me: error: conditional \"CONFIG_NFSV4\" was never defined.
28827 Usually this means the macro was only invoked conditionally." >&2;}
28828    { (exit 1); exit 1; }; }
28829 fi
28830 if test -z "${CONFIG_GSS_TRUE}" && test -z "${CONFIG_GSS_FALSE}"; then
28831   { { echo "$as_me:$LINENO: error: conditional \"CONFIG_GSS\" was never defined.
28832 Usually this means the macro was only invoked conditionally." >&5
28833 echo "$as_me: error: conditional \"CONFIG_GSS\" was never defined.
28834 Usually this means the macro was only invoked conditionally." >&2;}
28835    { (exit 1); exit 1; }; }
28836 fi
28837 if test -z "${CONFIG_RQUOTAD_TRUE}" && test -z "${CONFIG_RQUOTAD_FALSE}"; then
28838   { { echo "$as_me:$LINENO: error: conditional \"CONFIG_RQUOTAD\" was never defined.
28839 Usually this means the macro was only invoked conditionally." >&5
28840 echo "$as_me: error: conditional \"CONFIG_RQUOTAD\" was never defined.
28841 Usually this means the macro was only invoked conditionally." >&2;}
28842    { (exit 1); exit 1; }; }
28843 fi
28844 if test -z "${CONFIG_MOUNT_TRUE}" && test -z "${CONFIG_MOUNT_FALSE}"; then
28845   { { echo "$as_me:$LINENO: error: conditional \"CONFIG_MOUNT\" was never defined.
28846 Usually this means the macro was only invoked conditionally." >&5
28847 echo "$as_me: error: conditional \"CONFIG_MOUNT\" was never defined.
28848 Usually this means the macro was only invoked conditionally." >&2;}
28849    { (exit 1); exit 1; }; }
28850 fi
28851 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
28852   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
28853 Usually this means the macro was only invoked conditionally." >&5
28854 echo "$as_me: error: conditional \"AMDEP\" was never defined.
28855 Usually this means the macro was only invoked conditionally." >&2;}
28856    { (exit 1); exit 1; }; }
28857 fi
28858 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
28859   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
28860 Usually this means the macro was only invoked conditionally." >&5
28861 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
28862 Usually this means the macro was only invoked conditionally." >&2;}
28863    { (exit 1); exit 1; }; }
28864 fi
28865 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
28866   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
28867 Usually this means the macro was only invoked conditionally." >&5
28868 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
28869 Usually this means the macro was only invoked conditionally." >&2;}
28870    { (exit 1); exit 1; }; }
28871 fi
28872 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
28873   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
28874 Usually this means the macro was only invoked conditionally." >&5
28875 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
28876 Usually this means the macro was only invoked conditionally." >&2;}
28877    { (exit 1); exit 1; }; }
28878 fi
28879
28880 : ${CONFIG_STATUS=./config.status}
28881 ac_clean_files_save=$ac_clean_files
28882 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
28883 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
28884 echo "$as_me: creating $CONFIG_STATUS" >&6;}
28885 cat >$CONFIG_STATUS <<_ACEOF
28886 #! $SHELL
28887 # Generated by $as_me.
28888 # Run this file to recreate the current configuration.
28889 # Compiler output produced by configure, useful for debugging
28890 # configure, is in config.log if it exists.
28891
28892 debug=false
28893 ac_cs_recheck=false
28894 ac_cs_silent=false
28895 SHELL=\${CONFIG_SHELL-$SHELL}
28896 _ACEOF
28897
28898 cat >>$CONFIG_STATUS <<\_ACEOF
28899 ## --------------------- ##
28900 ## M4sh Initialization.  ##
28901 ## --------------------- ##
28902
28903 # Be more Bourne compatible
28904 DUALCASE=1; export DUALCASE # for MKS sh
28905 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
28906   emulate sh
28907   NULLCMD=:
28908   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
28909   # is contrary to our usage.  Disable this feature.
28910   alias -g '${1+"$@"}'='"$@"'
28911   setopt NO_GLOB_SUBST
28912 else
28913   case `(set -o) 2>/dev/null` in
28914   *posix*) set -o posix ;;
28915 esac
28916
28917 fi
28918
28919
28920
28921
28922 # PATH needs CR
28923 # Avoid depending upon Character Ranges.
28924 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
28925 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
28926 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
28927 as_cr_digits='0123456789'
28928 as_cr_alnum=$as_cr_Letters$as_cr_digits
28929
28930 # The user is always right.
28931 if test "${PATH_SEPARATOR+set}" != set; then
28932   echo "#! /bin/sh" >conf$$.sh
28933   echo  "exit 0"   >>conf$$.sh
28934   chmod +x conf$$.sh
28935   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
28936     PATH_SEPARATOR=';'
28937   else
28938     PATH_SEPARATOR=:
28939   fi
28940   rm -f conf$$.sh
28941 fi
28942
28943 # Support unset when possible.
28944 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
28945   as_unset=unset
28946 else
28947   as_unset=false
28948 fi
28949
28950
28951 # IFS
28952 # We need space, tab and new line, in precisely that order.  Quoting is
28953 # there to prevent editors from complaining about space-tab.
28954 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
28955 # splitting by setting IFS to empty value.)
28956 as_nl='
28957 '
28958 IFS=" ""        $as_nl"
28959
28960 # Find who we are.  Look in the path if we contain no directory separator.
28961 case $0 in
28962   *[\\/]* ) as_myself=$0 ;;
28963   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28964 for as_dir in $PATH
28965 do
28966   IFS=$as_save_IFS
28967   test -z "$as_dir" && as_dir=.
28968   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
28969 done
28970 IFS=$as_save_IFS
28971
28972      ;;
28973 esac
28974 # We did not find ourselves, most probably we were run as `sh COMMAND'
28975 # in which case we are not to be found in the path.
28976 if test "x$as_myself" = x; then
28977   as_myself=$0
28978 fi
28979 if test ! -f "$as_myself"; then
28980   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
28981   { (exit 1); exit 1; }
28982 fi
28983
28984 # Work around bugs in pre-3.0 UWIN ksh.
28985 for as_var in ENV MAIL MAILPATH
28986 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
28987 done
28988 PS1='$ '
28989 PS2='> '
28990 PS4='+ '
28991
28992 # NLS nuisances.
28993 for as_var in \
28994   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
28995   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
28996   LC_TELEPHONE LC_TIME
28997 do
28998   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
28999     eval $as_var=C; export $as_var
29000   else
29001     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
29002   fi
29003 done
29004
29005 # Required to use basename.
29006 if expr a : '\(a\)' >/dev/null 2>&1 &&
29007    test "X`expr 00001 : '.*\(...\)'`" = X001; then
29008   as_expr=expr
29009 else
29010   as_expr=false
29011 fi
29012
29013 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
29014   as_basename=basename
29015 else
29016   as_basename=false
29017 fi
29018
29019
29020 # Name of the executable.
29021 as_me=`$as_basename -- "$0" ||
29022 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
29023          X"$0" : 'X\(//\)$' \| \
29024          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
29025 echo X/"$0" |
29026     sed '/^.*\/\([^/][^/]*\)\/*$/{
29027             s//\1/
29028             q
29029           }
29030           /^X\/\(\/\/\)$/{
29031             s//\1/
29032             q
29033           }
29034           /^X\/\(\/\).*/{
29035             s//\1/
29036             q
29037           }
29038           s/.*/./; q'`
29039
29040 # CDPATH.
29041 $as_unset CDPATH
29042
29043
29044
29045   as_lineno_1=$LINENO
29046   as_lineno_2=$LINENO
29047   test "x$as_lineno_1" != "x$as_lineno_2" &&
29048   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
29049
29050   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
29051   # uniformly replaced by the line number.  The first 'sed' inserts a
29052   # line-number line after each line using $LINENO; the second 'sed'
29053   # does the real work.  The second script uses 'N' to pair each
29054   # line-number line with the line containing $LINENO, and appends
29055   # trailing '-' during substitution so that $LINENO is not a special
29056   # case at line end.
29057   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
29058   # scripts with optimization help from Paolo Bonzini.  Blame Lee
29059   # E. McMahon (1931-1989) for sed's syntax.  :-)
29060   sed -n '
29061     p
29062     /[$]LINENO/=
29063   ' <$as_myself |
29064     sed '
29065       s/[$]LINENO.*/&-/
29066       t lineno
29067       b
29068       :lineno
29069       N
29070       :loop
29071       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
29072       t loop
29073       s/-\n.*//
29074     ' >$as_me.lineno &&
29075   chmod +x "$as_me.lineno" ||
29076     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
29077    { (exit 1); exit 1; }; }
29078
29079   # Don't try to exec as it changes $[0], causing all sort of problems
29080   # (the dirname of $[0] is not the place where we might find the
29081   # original and so on.  Autoconf is especially sensitive to this).
29082   . "./$as_me.lineno"
29083   # Exit status is that of the last command.
29084   exit
29085 }
29086
29087
29088 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
29089   as_dirname=dirname
29090 else
29091   as_dirname=false
29092 fi
29093
29094 ECHO_C= ECHO_N= ECHO_T=
29095 case `echo -n x` in
29096 -n*)
29097   case `echo 'x\c'` in
29098   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
29099   *)   ECHO_C='\c';;
29100   esac;;
29101 *)
29102   ECHO_N='-n';;
29103 esac
29104
29105 if expr a : '\(a\)' >/dev/null 2>&1 &&
29106    test "X`expr 00001 : '.*\(...\)'`" = X001; then
29107   as_expr=expr
29108 else
29109   as_expr=false
29110 fi
29111
29112 rm -f conf$$ conf$$.exe conf$$.file
29113 if test -d conf$$.dir; then
29114   rm -f conf$$.dir/conf$$.file
29115 else
29116   rm -f conf$$.dir
29117   mkdir conf$$.dir
29118 fi
29119 echo >conf$$.file
29120 if ln -s conf$$.file conf$$ 2>/dev/null; then
29121   as_ln_s='ln -s'
29122   # ... but there are two gotchas:
29123   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
29124   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
29125   # In both cases, we have to default to `cp -p'.
29126   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
29127     as_ln_s='cp -p'
29128 elif ln conf$$.file conf$$ 2>/dev/null; then
29129   as_ln_s=ln
29130 else
29131   as_ln_s='cp -p'
29132 fi
29133 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
29134 rmdir conf$$.dir 2>/dev/null
29135
29136 if mkdir -p . 2>/dev/null; then
29137   as_mkdir_p=:
29138 else
29139   test -d ./-p && rmdir ./-p
29140   as_mkdir_p=false
29141 fi
29142
29143 if test -x / >/dev/null 2>&1; then
29144   as_test_x='test -x'
29145 else
29146   if ls -dL / >/dev/null 2>&1; then
29147     as_ls_L_option=L
29148   else
29149     as_ls_L_option=
29150   fi
29151   as_test_x='
29152     eval sh -c '\''
29153       if test -d "$1"; then
29154         test -d "$1/.";
29155       else
29156         case $1 in
29157         -*)set "./$1";;
29158         esac;
29159         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
29160         ???[sx]*):;;*)false;;esac;fi
29161     '\'' sh
29162   '
29163 fi
29164 as_executable_p=$as_test_x
29165
29166 # Sed expression to map a string onto a valid CPP name.
29167 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
29168
29169 # Sed expression to map a string onto a valid variable name.
29170 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
29171
29172
29173 exec 6>&1
29174
29175 # Save the log message, to keep $[0] and so on meaningful, and to
29176 # report actual input values of CONFIG_FILES etc. instead of their
29177 # values after options handling.
29178 ac_log="
29179 This file was extended by linux nfs-utils $as_me 1.0.10, which was
29180 generated by GNU Autoconf 2.61.  Invocation command line was
29181
29182   CONFIG_FILES    = $CONFIG_FILES
29183   CONFIG_HEADERS  = $CONFIG_HEADERS
29184   CONFIG_LINKS    = $CONFIG_LINKS
29185   CONFIG_COMMANDS = $CONFIG_COMMANDS
29186   $ $0 $@
29187
29188 on `(hostname || uname -n) 2>/dev/null | sed 1q`
29189 "
29190
29191 _ACEOF
29192
29193 cat >>$CONFIG_STATUS <<_ACEOF
29194 # Files that config.status was made for.
29195 config_files="$ac_config_files"
29196 config_headers="$ac_config_headers"
29197 config_commands="$ac_config_commands"
29198
29199 _ACEOF
29200
29201 cat >>$CONFIG_STATUS <<\_ACEOF
29202 ac_cs_usage="\
29203 \`$as_me' instantiates files from templates according to the
29204 current configuration.
29205
29206 Usage: $0 [OPTIONS] [FILE]...
29207
29208   -h, --help       print this help, then exit
29209   -V, --version    print version number and configuration settings, then exit
29210   -q, --quiet      do not print progress messages
29211   -d, --debug      don't remove temporary files
29212       --recheck    update $as_me by reconfiguring in the same conditions
29213   --file=FILE[:TEMPLATE]
29214                    instantiate the configuration file FILE
29215   --header=FILE[:TEMPLATE]
29216                    instantiate the configuration header FILE
29217
29218 Configuration files:
29219 $config_files
29220
29221 Configuration headers:
29222 $config_headers
29223
29224 Configuration commands:
29225 $config_commands
29226
29227 Report bugs to <bug-autoconf@gnu.org>."
29228
29229 _ACEOF
29230 cat >>$CONFIG_STATUS <<_ACEOF
29231 ac_cs_version="\\
29232 linux nfs-utils config.status 1.0.10
29233 configured by $0, generated by GNU Autoconf 2.61,
29234   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
29235
29236 Copyright (C) 2006 Free Software Foundation, Inc.
29237 This config.status script is free software; the Free Software Foundation
29238 gives unlimited permission to copy, distribute and modify it."
29239
29240 ac_pwd='$ac_pwd'
29241 srcdir='$srcdir'
29242 INSTALL='$INSTALL'
29243 _ACEOF
29244
29245 cat >>$CONFIG_STATUS <<\_ACEOF
29246 # If no file are specified by the user, then we need to provide default
29247 # value.  By we need to know if files were specified by the user.
29248 ac_need_defaults=:
29249 while test $# != 0
29250 do
29251   case $1 in
29252   --*=*)
29253     ac_option=`expr "X$1" : 'X\([^=]*\)='`
29254     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
29255     ac_shift=:
29256     ;;
29257   *)
29258     ac_option=$1
29259     ac_optarg=$2
29260     ac_shift=shift
29261     ;;
29262   esac
29263
29264   case $ac_option in
29265   # Handling of the options.
29266   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
29267     ac_cs_recheck=: ;;
29268   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
29269     echo "$ac_cs_version"; exit ;;
29270   --debug | --debu | --deb | --de | --d | -d )
29271     debug=: ;;
29272   --file | --fil | --fi | --f )
29273     $ac_shift
29274     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
29275     ac_need_defaults=false;;
29276   --header | --heade | --head | --hea )
29277     $ac_shift
29278     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
29279     ac_need_defaults=false;;
29280   --he | --h)
29281     # Conflict between --help and --header
29282     { echo "$as_me: error: ambiguous option: $1
29283 Try \`$0 --help' for more information." >&2
29284    { (exit 1); exit 1; }; };;
29285   --help | --hel | -h )
29286     echo "$ac_cs_usage"; exit ;;
29287   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
29288   | -silent | --silent | --silen | --sile | --sil | --si | --s)
29289     ac_cs_silent=: ;;
29290
29291   # This is an error.
29292   -*) { echo "$as_me: error: unrecognized option: $1
29293 Try \`$0 --help' for more information." >&2
29294    { (exit 1); exit 1; }; } ;;
29295
29296   *) ac_config_targets="$ac_config_targets $1"
29297      ac_need_defaults=false ;;
29298
29299   esac
29300   shift
29301 done
29302
29303 ac_configure_extra_args=
29304
29305 if $ac_cs_silent; then
29306   exec 6>/dev/null
29307   ac_configure_extra_args="$ac_configure_extra_args --silent"
29308 fi
29309
29310 _ACEOF
29311 cat >>$CONFIG_STATUS <<_ACEOF
29312 if \$ac_cs_recheck; then
29313   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
29314   CONFIG_SHELL=$SHELL
29315   export CONFIG_SHELL
29316   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
29317 fi
29318
29319 _ACEOF
29320 cat >>$CONFIG_STATUS <<\_ACEOF
29321 exec 5>>config.log
29322 {
29323   echo
29324   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
29325 ## Running $as_me. ##
29326 _ASBOX
29327   echo "$ac_log"
29328 } >&5
29329
29330 _ACEOF
29331 cat >>$CONFIG_STATUS <<_ACEOF
29332 #
29333 # INIT-COMMANDS
29334 #
29335 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
29336
29337 _ACEOF
29338
29339 cat >>$CONFIG_STATUS <<\_ACEOF
29340
29341 # Handling of arguments.
29342 for ac_config_target in $ac_config_targets
29343 do
29344   case $ac_config_target in
29345     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
29346     "support/include/config.h") CONFIG_HEADERS="$CONFIG_HEADERS support/include/config.h" ;;
29347     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
29348     "linux-nfs/Makefile") CONFIG_FILES="$CONFIG_FILES linux-nfs/Makefile" ;;
29349     "support/Makefile") CONFIG_FILES="$CONFIG_FILES support/Makefile" ;;
29350     "support/export/Makefile") CONFIG_FILES="$CONFIG_FILES support/export/Makefile" ;;
29351     "support/include/nfs/Makefile") CONFIG_FILES="$CONFIG_FILES support/include/nfs/Makefile" ;;
29352     "support/include/rpcsvc/Makefile") CONFIG_FILES="$CONFIG_FILES support/include/rpcsvc/Makefile" ;;
29353     "support/include/sys/fs/Makefile") CONFIG_FILES="$CONFIG_FILES support/include/sys/fs/Makefile" ;;
29354     "support/include/sys/Makefile") CONFIG_FILES="$CONFIG_FILES support/include/sys/Makefile" ;;
29355     "support/include/Makefile") CONFIG_FILES="$CONFIG_FILES support/include/Makefile" ;;
29356     "support/misc/Makefile") CONFIG_FILES="$CONFIG_FILES support/misc/Makefile" ;;
29357     "support/nfs/Makefile") CONFIG_FILES="$CONFIG_FILES support/nfs/Makefile" ;;
29358     "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
29359     "tools/getiversion/Makefile") CONFIG_FILES="$CONFIG_FILES tools/getiversion/Makefile" ;;
29360     "tools/getkversion/Makefile") CONFIG_FILES="$CONFIG_FILES tools/getkversion/Makefile" ;;
29361     "tools/locktest/Makefile") CONFIG_FILES="$CONFIG_FILES tools/locktest/Makefile" ;;
29362     "tools/nlmtest/Makefile") CONFIG_FILES="$CONFIG_FILES tools/nlmtest/Makefile" ;;
29363     "tools/rpcdebug/Makefile") CONFIG_FILES="$CONFIG_FILES tools/rpcdebug/Makefile" ;;
29364     "tools/rpcgen/Makefile") CONFIG_FILES="$CONFIG_FILES tools/rpcgen/Makefile" ;;
29365     "utils/Makefile") CONFIG_FILES="$CONFIG_FILES utils/Makefile" ;;
29366     "utils/exportfs/Makefile") CONFIG_FILES="$CONFIG_FILES utils/exportfs/Makefile" ;;
29367     "utils/gssd/Makefile") CONFIG_FILES="$CONFIG_FILES utils/gssd/Makefile" ;;
29368     "utils/idmapd/Makefile") CONFIG_FILES="$CONFIG_FILES utils/idmapd/Makefile" ;;
29369     "utils/lockd/Makefile") CONFIG_FILES="$CONFIG_FILES utils/lockd/Makefile" ;;
29370     "utils/mount/Makefile") CONFIG_FILES="$CONFIG_FILES utils/mount/Makefile" ;;
29371     "utils/mountd/Makefile") CONFIG_FILES="$CONFIG_FILES utils/mountd/Makefile" ;;
29372     "utils/nfsd/Makefile") CONFIG_FILES="$CONFIG_FILES utils/nfsd/Makefile" ;;
29373     "utils/nfsstat/Makefile") CONFIG_FILES="$CONFIG_FILES utils/nfsstat/Makefile" ;;
29374     "utils/rquotad/Makefile") CONFIG_FILES="$CONFIG_FILES utils/rquotad/Makefile" ;;
29375     "utils/showmount/Makefile") CONFIG_FILES="$CONFIG_FILES utils/showmount/Makefile" ;;
29376     "utils/statd/Makefile") CONFIG_FILES="$CONFIG_FILES utils/statd/Makefile" ;;
29377
29378   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
29379 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
29380    { (exit 1); exit 1; }; };;
29381   esac
29382 done
29383
29384
29385 # If the user did not use the arguments to specify the items to instantiate,
29386 # then the envvar interface is used.  Set only those that are not.
29387 # We use the long form for the default assignment because of an extremely
29388 # bizarre bug on SunOS 4.1.3.
29389 if $ac_need_defaults; then
29390   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
29391   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
29392   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
29393 fi
29394
29395 # Have a temporary directory for convenience.  Make it in the build tree
29396 # simply because there is no reason against having it here, and in addition,
29397 # creating and moving files from /tmp can sometimes cause problems.
29398 # Hook for its removal unless debugging.
29399 # Note that there is a small window in which the directory will not be cleaned:
29400 # after its creation but before its name has been assigned to `$tmp'.
29401 $debug ||
29402 {
29403   tmp=
29404   trap 'exit_status=$?
29405   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
29406 ' 0
29407   trap '{ (exit 1); exit 1; }' 1 2 13 15
29408 }
29409 # Create a (secure) tmp directory for tmp files.
29410
29411 {
29412   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
29413   test -n "$tmp" && test -d "$tmp"
29414 }  ||
29415 {
29416   tmp=./conf$$-$RANDOM
29417   (umask 077 && mkdir "$tmp")
29418 } ||
29419 {
29420    echo "$me: cannot create a temporary directory in ." >&2
29421    { (exit 1); exit 1; }
29422 }
29423
29424 #
29425 # Set up the sed scripts for CONFIG_FILES section.
29426 #
29427
29428 # No need to generate the scripts if there are no CONFIG_FILES.
29429 # This happens for instance when ./config.status config.h
29430 if test -n "$CONFIG_FILES"; then
29431
29432 _ACEOF
29433
29434
29435
29436 ac_delim='%!_!# '
29437 for ac_last_try in false false false false false :; do
29438   cat >conf$$subs.sed <<_ACEOF
29439 SHELL!$SHELL$ac_delim
29440 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
29441 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
29442 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
29443 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
29444 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
29445 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
29446 exec_prefix!$exec_prefix$ac_delim
29447 prefix!$prefix$ac_delim
29448 program_transform_name!$program_transform_name$ac_delim
29449 bindir!$bindir$ac_delim
29450 sbindir!$sbindir$ac_delim
29451 libexecdir!$libexecdir$ac_delim
29452 datarootdir!$datarootdir$ac_delim
29453 datadir!$datadir$ac_delim
29454 sysconfdir!$sysconfdir$ac_delim
29455 sharedstatedir!$sharedstatedir$ac_delim
29456 localstatedir!$localstatedir$ac_delim
29457 includedir!$includedir$ac_delim
29458 oldincludedir!$oldincludedir$ac_delim
29459 docdir!$docdir$ac_delim
29460 infodir!$infodir$ac_delim
29461 htmldir!$htmldir$ac_delim
29462 dvidir!$dvidir$ac_delim
29463 pdfdir!$pdfdir$ac_delim
29464 psdir!$psdir$ac_delim
29465 libdir!$libdir$ac_delim
29466 localedir!$localedir$ac_delim
29467 mandir!$mandir$ac_delim
29468 DEFS!$DEFS$ac_delim
29469 ECHO_C!$ECHO_C$ac_delim
29470 ECHO_N!$ECHO_N$ac_delim
29471 ECHO_T!$ECHO_T$ac_delim
29472 LIBS!$LIBS$ac_delim
29473 build_alias!$build_alias$ac_delim
29474 host_alias!$host_alias$ac_delim
29475 target_alias!$target_alias$ac_delim
29476 build!$build$ac_delim
29477 build_cpu!$build_cpu$ac_delim
29478 build_vendor!$build_vendor$ac_delim
29479 build_os!$build_os$ac_delim
29480 host!$host$ac_delim
29481 host_cpu!$host_cpu$ac_delim
29482 host_vendor!$host_vendor$ac_delim
29483 host_os!$host_os$ac_delim
29484 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
29485 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
29486 INSTALL_DATA!$INSTALL_DATA$ac_delim
29487 CYGPATH_W!$CYGPATH_W$ac_delim
29488 PACKAGE!$PACKAGE$ac_delim
29489 VERSION!$VERSION$ac_delim
29490 ACLOCAL!$ACLOCAL$ac_delim
29491 AUTOCONF!$AUTOCONF$ac_delim
29492 AUTOMAKE!$AUTOMAKE$ac_delim
29493 AUTOHEADER!$AUTOHEADER$ac_delim
29494 MAKEINFO!$MAKEINFO$ac_delim
29495 AMTAR!$AMTAR$ac_delim
29496 install_sh!$install_sh$ac_delim
29497 STRIP!$STRIP$ac_delim
29498 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
29499 mkdir_p!$mkdir_p$ac_delim
29500 AWK!$AWK$ac_delim
29501 SET_MAKE!$SET_MAKE$ac_delim
29502 am__leading_dot!$am__leading_dot$ac_delim
29503 RELEASE!$RELEASE$ac_delim
29504 statedir!$statedir$ac_delim
29505 statduser!$statduser$ac_delim
29506 enable_nfsv3!$enable_nfsv3$ac_delim
29507 IDMAPD!$IDMAPD$ac_delim
29508 enable_nfsv4!$enable_nfsv4$ac_delim
29509 CONFIG_NFSV4_TRUE!$CONFIG_NFSV4_TRUE$ac_delim
29510 CONFIG_NFSV4_FALSE!$CONFIG_NFSV4_FALSE$ac_delim
29511 GSSD!$GSSD$ac_delim
29512 SVCGSSD!$SVCGSSD$ac_delim
29513 enable_gss!$enable_gss$ac_delim
29514 CONFIG_GSS_TRUE!$CONFIG_GSS_TRUE$ac_delim
29515 CONFIG_GSS_FALSE!$CONFIG_GSS_FALSE$ac_delim
29516 kprefix!$kprefix$ac_delim
29517 secure_statd!$secure_statd$ac_delim
29518 CONFIG_RQUOTAD_TRUE!$CONFIG_RQUOTAD_TRUE$ac_delim
29519 CONFIG_RQUOTAD_FALSE!$CONFIG_RQUOTAD_FALSE$ac_delim
29520 CONFIG_MOUNT_TRUE!$CONFIG_MOUNT_TRUE$ac_delim
29521 CONFIG_MOUNT_FALSE!$CONFIG_MOUNT_FALSE$ac_delim
29522 CC!$CC$ac_delim
29523 CFLAGS!$CFLAGS$ac_delim
29524 LDFLAGS!$LDFLAGS$ac_delim
29525 CPPFLAGS!$CPPFLAGS$ac_delim
29526 ac_ct_CC!$ac_ct_CC$ac_delim
29527 EXEEXT!$EXEEXT$ac_delim
29528 OBJEXT!$OBJEXT$ac_delim
29529 DEPDIR!$DEPDIR$ac_delim
29530 am__include!$am__include$ac_delim
29531 am__quote!$am__quote$ac_delim
29532 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
29533 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
29534 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
29535 CCDEPMODE!$CCDEPMODE$ac_delim
29536 _ACEOF
29537
29538   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
29539     break
29540   elif $ac_last_try; then
29541     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
29542 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
29543    { (exit 1); exit 1; }; }
29544   else
29545     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
29546   fi
29547 done
29548
29549 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
29550 if test -n "$ac_eof"; then
29551   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
29552   ac_eof=`expr $ac_eof + 1`
29553 fi
29554
29555 cat >>$CONFIG_STATUS <<_ACEOF
29556 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
29557 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
29558 _ACEOF
29559 sed '
29560 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
29561 s/^/s,@/; s/!/@,|#_!!_#|/
29562 :n
29563 t n
29564 s/'"$ac_delim"'$/,g/; t
29565 s/$/\\/; p
29566 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
29567 ' >>$CONFIG_STATUS <conf$$subs.sed
29568 rm -f conf$$subs.sed
29569 cat >>$CONFIG_STATUS <<_ACEOF
29570 CEOF$ac_eof
29571 _ACEOF
29572
29573
29574 ac_delim='%!_!# '
29575 for ac_last_try in false false false false false :; do
29576   cat >conf$$subs.sed <<_ACEOF
29577 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
29578 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
29579 LIBWRAP!$LIBWRAP$ac_delim
29580 HAVE_LIBWRAP!$HAVE_LIBWRAP$ac_delim
29581 HAVE_TCP_WRAPPER!$HAVE_TCP_WRAPPER$ac_delim
29582 CXX!$CXX$ac_delim
29583 CXXFLAGS!$CXXFLAGS$ac_delim
29584 ac_ct_CXX!$ac_ct_CXX$ac_delim
29585 CXXDEPMODE!$CXXDEPMODE$ac_delim
29586 am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
29587 am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
29588 CPP!$CPP$ac_delim
29589 LN_S!$LN_S$ac_delim
29590 GREP!$GREP$ac_delim
29591 EGREP!$EGREP$ac_delim
29592 ECHO!$ECHO$ac_delim
29593 AR!$AR$ac_delim
29594 RANLIB!$RANLIB$ac_delim
29595 CXXCPP!$CXXCPP$ac_delim
29596 F77!$F77$ac_delim
29597 FFLAGS!$FFLAGS$ac_delim
29598 ac_ct_F77!$ac_ct_F77$ac_delim
29599 LIBTOOL!$LIBTOOL$ac_delim
29600 CC_FOR_BUILD!$CC_FOR_BUILD$ac_delim
29601 LD!$LD$ac_delim
29602 LIBNSL!$LIBNSL$ac_delim
29603 PKG_CONFIG!$PKG_CONFIG$ac_delim
29604 RPCSECGSS_CFLAGS!$RPCSECGSS_CFLAGS$ac_delim
29605 RPCSECGSS_LIBS!$RPCSECGSS_LIBS$ac_delim
29606 GSSAPI_CFLAGS!$GSSAPI_CFLAGS$ac_delim
29607 GSSAPI_LIBS!$GSSAPI_LIBS$ac_delim
29608 LIBSOCKET!$LIBSOCKET$ac_delim
29609 LIBCRYPT!$LIBCRYPT$ac_delim
29610 LIBBSD!$LIBBSD$ac_delim
29611 KRBDIR!$KRBDIR$ac_delim
29612 KRBLIBS!$KRBLIBS$ac_delim
29613 KRBCFLAGS!$KRBCFLAGS$ac_delim
29614 KRBLDFLAGS!$KRBLDFLAGS$ac_delim
29615 K5VERS!$K5VERS$ac_delim
29616 ALLOCA!$ALLOCA$ac_delim
29617 LIBOBJS!$LIBOBJS$ac_delim
29618 CFLAGS_FOR_BUILD!$CFLAGS_FOR_BUILD$ac_delim
29619 CXXFLAGS_FOR_BUILD!$CXXFLAGS_FOR_BUILD$ac_delim
29620 CPPFLAGS_FOR_BUILD!$CPPFLAGS_FOR_BUILD$ac_delim
29621 LDFLAGS_FOR_BUILD!$LDFLAGS_FOR_BUILD$ac_delim
29622 AM_CPPFLAGS!$AM_CPPFLAGS$ac_delim
29623 AM_CFLAGS!$AM_CFLAGS$ac_delim
29624 ACLOCAL_AMFLAGS!$ACLOCAL_AMFLAGS$ac_delim
29625 LTLIBOBJS!$LTLIBOBJS$ac_delim
29626 _ACEOF
29627
29628   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 49; then
29629     break
29630   elif $ac_last_try; then
29631     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
29632 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
29633    { (exit 1); exit 1; }; }
29634   else
29635     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
29636   fi
29637 done
29638
29639 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
29640 if test -n "$ac_eof"; then
29641   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
29642   ac_eof=`expr $ac_eof + 1`
29643 fi
29644
29645 cat >>$CONFIG_STATUS <<_ACEOF
29646 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
29647 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
29648 _ACEOF
29649 sed '
29650 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
29651 s/^/s,@/; s/!/@,|#_!!_#|/
29652 :n
29653 t n
29654 s/'"$ac_delim"'$/,g/; t
29655 s/$/\\/; p
29656 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
29657 ' >>$CONFIG_STATUS <conf$$subs.sed
29658 rm -f conf$$subs.sed
29659 cat >>$CONFIG_STATUS <<_ACEOF
29660 :end
29661 s/|#_!!_#|//g
29662 CEOF$ac_eof
29663 _ACEOF
29664
29665
29666 # VPATH may cause trouble with some makes, so we remove $(srcdir),
29667 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
29668 # trailing colons and then remove the whole line if VPATH becomes empty
29669 # (actually we leave an empty line to preserve line numbers).
29670 if test "x$srcdir" = x.; then
29671   ac_vpsub='/^[  ]*VPATH[        ]*=/{
29672 s/:*\$(srcdir):*/:/
29673 s/:*\${srcdir}:*/:/
29674 s/:*@srcdir@:*/:/
29675 s/^\([^=]*=[     ]*\):*/\1/
29676 s/:*$//
29677 s/^[^=]*=[       ]*$//
29678 }'
29679 fi
29680
29681 cat >>$CONFIG_STATUS <<\_ACEOF
29682 fi # test -n "$CONFIG_FILES"
29683
29684
29685 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
29686 do
29687   case $ac_tag in
29688   :[FHLC]) ac_mode=$ac_tag; continue;;
29689   esac
29690   case $ac_mode$ac_tag in
29691   :[FHL]*:*);;
29692   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
29693 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
29694    { (exit 1); exit 1; }; };;
29695   :[FH]-) ac_tag=-:-;;
29696   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
29697   esac
29698   ac_save_IFS=$IFS
29699   IFS=:
29700   set x $ac_tag
29701   IFS=$ac_save_IFS
29702   shift
29703   ac_file=$1
29704   shift
29705
29706   case $ac_mode in
29707   :L) ac_source=$1;;
29708   :[FH])
29709     ac_file_inputs=
29710     for ac_f
29711     do
29712       case $ac_f in
29713       -) ac_f="$tmp/stdin";;
29714       *) # Look for the file first in the build tree, then in the source tree
29715          # (if the path is not absolute).  The absolute path cannot be DOS-style,
29716          # because $ac_f cannot contain `:'.
29717          test -f "$ac_f" ||
29718            case $ac_f in
29719            [\\/$]*) false;;
29720            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
29721            esac ||
29722            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
29723 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
29724    { (exit 1); exit 1; }; };;
29725       esac
29726       ac_file_inputs="$ac_file_inputs $ac_f"
29727     done
29728
29729     # Let's still pretend it is `configure' which instantiates (i.e., don't
29730     # use $as_me), people would be surprised to read:
29731     #    /* config.h.  Generated by config.status.  */
29732     configure_input="Generated from "`IFS=:
29733           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
29734     if test x"$ac_file" != x-; then
29735       configure_input="$ac_file.  $configure_input"
29736       { echo "$as_me:$LINENO: creating $ac_file" >&5
29737 echo "$as_me: creating $ac_file" >&6;}
29738     fi
29739
29740     case $ac_tag in
29741     *:-:* | *:-) cat >"$tmp/stdin";;
29742     esac
29743     ;;
29744   esac
29745
29746   ac_dir=`$as_dirname -- "$ac_file" ||
29747 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29748          X"$ac_file" : 'X\(//\)[^/]' \| \
29749          X"$ac_file" : 'X\(//\)$' \| \
29750          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
29751 echo X"$ac_file" |
29752     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
29753             s//\1/
29754             q
29755           }
29756           /^X\(\/\/\)[^/].*/{
29757             s//\1/
29758             q
29759           }
29760           /^X\(\/\/\)$/{
29761             s//\1/
29762             q
29763           }
29764           /^X\(\/\).*/{
29765             s//\1/
29766             q
29767           }
29768           s/.*/./; q'`
29769   { as_dir="$ac_dir"
29770   case $as_dir in #(
29771   -*) as_dir=./$as_dir;;
29772   esac
29773   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
29774     as_dirs=
29775     while :; do
29776       case $as_dir in #(
29777       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
29778       *) as_qdir=$as_dir;;
29779       esac
29780       as_dirs="'$as_qdir' $as_dirs"
29781       as_dir=`$as_dirname -- "$as_dir" ||
29782 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29783          X"$as_dir" : 'X\(//\)[^/]' \| \
29784          X"$as_dir" : 'X\(//\)$' \| \
29785          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
29786 echo X"$as_dir" |
29787     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
29788             s//\1/
29789             q
29790           }
29791           /^X\(\/\/\)[^/].*/{
29792             s//\1/
29793             q
29794           }
29795           /^X\(\/\/\)$/{
29796             s//\1/
29797             q
29798           }
29799           /^X\(\/\).*/{
29800             s//\1/
29801             q
29802           }
29803           s/.*/./; q'`
29804       test -d "$as_dir" && break
29805     done
29806     test -z "$as_dirs" || eval "mkdir $as_dirs"
29807   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
29808 echo "$as_me: error: cannot create directory $as_dir" >&2;}
29809    { (exit 1); exit 1; }; }; }
29810   ac_builddir=.
29811
29812 case "$ac_dir" in
29813 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
29814 *)
29815   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
29816   # A ".." for each directory in $ac_dir_suffix.
29817   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
29818   case $ac_top_builddir_sub in
29819   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
29820   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
29821   esac ;;
29822 esac
29823 ac_abs_top_builddir=$ac_pwd
29824 ac_abs_builddir=$ac_pwd$ac_dir_suffix
29825 # for backward compatibility:
29826 ac_top_builddir=$ac_top_build_prefix
29827
29828 case $srcdir in
29829   .)  # We are building in place.
29830     ac_srcdir=.
29831     ac_top_srcdir=$ac_top_builddir_sub
29832     ac_abs_top_srcdir=$ac_pwd ;;
29833   [\\/]* | ?:[\\/]* )  # Absolute name.
29834     ac_srcdir=$srcdir$ac_dir_suffix;
29835     ac_top_srcdir=$srcdir
29836     ac_abs_top_srcdir=$srcdir ;;
29837   *) # Relative name.
29838     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
29839     ac_top_srcdir=$ac_top_build_prefix$srcdir
29840     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
29841 esac
29842 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
29843
29844
29845   case $ac_mode in
29846   :F)
29847   #
29848   # CONFIG_FILE
29849   #
29850
29851   case $INSTALL in
29852   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
29853   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
29854   esac
29855 _ACEOF
29856
29857 cat >>$CONFIG_STATUS <<\_ACEOF
29858 # If the template does not know about datarootdir, expand it.
29859 # FIXME: This hack should be removed a few years after 2.60.
29860 ac_datarootdir_hack=; ac_datarootdir_seen=
29861
29862 case `sed -n '/datarootdir/ {
29863   p
29864   q
29865 }
29866 /@datadir@/p
29867 /@docdir@/p
29868 /@infodir@/p
29869 /@localedir@/p
29870 /@mandir@/p
29871 ' $ac_file_inputs` in
29872 *datarootdir*) ac_datarootdir_seen=yes;;
29873 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
29874   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
29875 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
29876 _ACEOF
29877 cat >>$CONFIG_STATUS <<_ACEOF
29878   ac_datarootdir_hack='
29879   s&@datadir@&$datadir&g
29880   s&@docdir@&$docdir&g
29881   s&@infodir@&$infodir&g
29882   s&@localedir@&$localedir&g
29883   s&@mandir@&$mandir&g
29884     s&\\\${datarootdir}&$datarootdir&g' ;;
29885 esac
29886 _ACEOF
29887
29888 # Neutralize VPATH when `$srcdir' = `.'.
29889 # Shell code in configure.ac might set extrasub.
29890 # FIXME: do we really want to maintain this feature?
29891 cat >>$CONFIG_STATUS <<_ACEOF
29892   sed "$ac_vpsub
29893 $extrasub
29894 _ACEOF
29895 cat >>$CONFIG_STATUS <<\_ACEOF
29896 :t
29897 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
29898 s&@configure_input@&$configure_input&;t t
29899 s&@top_builddir@&$ac_top_builddir_sub&;t t
29900 s&@srcdir@&$ac_srcdir&;t t
29901 s&@abs_srcdir@&$ac_abs_srcdir&;t t
29902 s&@top_srcdir@&$ac_top_srcdir&;t t
29903 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
29904 s&@builddir@&$ac_builddir&;t t
29905 s&@abs_builddir@&$ac_abs_builddir&;t t
29906 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
29907 s&@INSTALL@&$ac_INSTALL&;t t
29908 $ac_datarootdir_hack
29909 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
29910
29911 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
29912   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
29913   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
29914   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
29915 which seems to be undefined.  Please make sure it is defined." >&5
29916 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
29917 which seems to be undefined.  Please make sure it is defined." >&2;}
29918
29919   rm -f "$tmp/stdin"
29920   case $ac_file in
29921   -) cat "$tmp/out"; rm -f "$tmp/out";;
29922   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
29923   esac
29924  ;;
29925   :H)
29926   #
29927   # CONFIG_HEADER
29928   #
29929 _ACEOF
29930
29931 # Transform confdefs.h into a sed script `conftest.defines', that
29932 # substitutes the proper values into config.h.in to produce config.h.
29933 rm -f conftest.defines conftest.tail
29934 # First, append a space to every undef/define line, to ease matching.
29935 echo 's/$/ /' >conftest.defines
29936 # Then, protect against being on the right side of a sed subst, or in
29937 # an unquoted here document, in config.status.  If some macros were
29938 # called several times there might be several #defines for the same
29939 # symbol, which is useless.  But do not sort them, since the last
29940 # AC_DEFINE must be honored.
29941 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
29942 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
29943 # NAME is the cpp macro being defined, VALUE is the value it is being given.
29944 # PARAMS is the parameter list in the macro definition--in most cases, it's
29945 # just an empty string.
29946 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
29947 ac_dB='\\)[      (].*,\\1define\\2'
29948 ac_dC=' '
29949 ac_dD=' ,'
29950
29951 uniq confdefs.h |
29952   sed -n '
29953         t rset
29954         :rset
29955         s/^[     ]*#[    ]*define[       ][      ]*//
29956         t ok
29957         d
29958         :ok
29959         s/[\\&,]/\\&/g
29960         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
29961         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
29962   ' >>conftest.defines
29963
29964 # Remove the space that was appended to ease matching.
29965 # Then replace #undef with comments.  This is necessary, for
29966 # example, in the case of _POSIX_SOURCE, which is predefined and required
29967 # on some systems where configure will not decide to define it.
29968 # (The regexp can be short, since the line contains either #define or #undef.)
29969 echo 's/ $//
29970 s,^[     #]*u.*,/* & */,' >>conftest.defines
29971
29972 # Break up conftest.defines:
29973 ac_max_sed_lines=50
29974
29975 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
29976 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
29977 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
29978 # et cetera.
29979 ac_in='$ac_file_inputs'
29980 ac_out='"$tmp/out1"'
29981 ac_nxt='"$tmp/out2"'
29982
29983 while :
29984 do
29985   # Write a here document:
29986     cat >>$CONFIG_STATUS <<_ACEOF
29987     # First, check the format of the line:
29988     cat >"\$tmp/defines.sed" <<\\CEOF
29989 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
29990 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
29991 b
29992 :def
29993 _ACEOF
29994   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
29995   echo 'CEOF
29996     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
29997   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
29998   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
29999   grep . conftest.tail >/dev/null || break
30000   rm -f conftest.defines
30001   mv conftest.tail conftest.defines
30002 done
30003 rm -f conftest.defines conftest.tail
30004
30005 echo "ac_result=$ac_in" >>$CONFIG_STATUS
30006 cat >>$CONFIG_STATUS <<\_ACEOF
30007   if test x"$ac_file" != x-; then
30008     echo "/* $configure_input  */" >"$tmp/config.h"
30009     cat "$ac_result" >>"$tmp/config.h"
30010     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
30011       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
30012 echo "$as_me: $ac_file is unchanged" >&6;}
30013     else
30014       rm -f $ac_file
30015       mv "$tmp/config.h" $ac_file
30016     fi
30017   else
30018     echo "/* $configure_input  */"
30019     cat "$ac_result"
30020   fi
30021   rm -f "$tmp/out12"
30022 # Compute $ac_file's index in $config_headers.
30023 _am_stamp_count=1
30024 for _am_header in $config_headers :; do
30025   case $_am_header in
30026     $ac_file | $ac_file:* )
30027       break ;;
30028     * )
30029       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
30030   esac
30031 done
30032 echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
30033 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30034          X$ac_file : 'X\(//\)[^/]' \| \
30035          X$ac_file : 'X\(//\)$' \| \
30036          X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
30037 echo X$ac_file |
30038     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30039             s//\1/
30040             q
30041           }
30042           /^X\(\/\/\)[^/].*/{
30043             s//\1/
30044             q
30045           }
30046           /^X\(\/\/\)$/{
30047             s//\1/
30048             q
30049           }
30050           /^X\(\/\).*/{
30051             s//\1/
30052             q
30053           }
30054           s/.*/./; q'`/stamp-h$_am_stamp_count
30055  ;;
30056
30057   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
30058 echo "$as_me: executing $ac_file commands" >&6;}
30059  ;;
30060   esac
30061
30062
30063   case $ac_file$ac_mode in
30064     "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
30065   # Strip MF so we end up with the name of the file.
30066   mf=`echo "$mf" | sed -e 's/:.*$//'`
30067   # Check whether this is an Automake generated Makefile or not.
30068   # We used to match only the files named `Makefile.in', but
30069   # some people rename them; so instead we look at the file content.
30070   # Grep'ing the first line is not enough: some people post-process
30071   # each Makefile.in and add a new line on top of each file to say so.
30072   # So let's grep whole file.
30073   if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
30074     dirpart=`$as_dirname -- "$mf" ||
30075 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30076          X"$mf" : 'X\(//\)[^/]' \| \
30077          X"$mf" : 'X\(//\)$' \| \
30078          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
30079 echo X"$mf" |
30080     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30081             s//\1/
30082             q
30083           }
30084           /^X\(\/\/\)[^/].*/{
30085             s//\1/
30086             q
30087           }
30088           /^X\(\/\/\)$/{
30089             s//\1/
30090             q
30091           }
30092           /^X\(\/\).*/{
30093             s//\1/
30094             q
30095           }
30096           s/.*/./; q'`
30097   else
30098     continue
30099   fi
30100   grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
30101   # Extract the definition of DEP_FILES from the Makefile without
30102   # running `make'.
30103   DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
30104   test -z "$DEPDIR" && continue
30105   # When using ansi2knr, U may be empty or an underscore; expand it
30106   U=`sed -n 's/^U = //p' < "$mf"`
30107   test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
30108   # We invoke sed twice because it is the simplest approach to
30109   # changing $(DEPDIR) to its actual value in the expansion.
30110   for file in `sed -n '
30111     /^DEP_FILES = .*\\\\$/ {
30112       s/^DEP_FILES = //
30113       :loop
30114         s/\\\\$//
30115         p
30116         n
30117         /\\\\$/ b loop
30118       p
30119     }
30120     /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
30121        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
30122     # Make sure the directory exists.
30123     test -f "$dirpart/$file" && continue
30124     fdir=`$as_dirname -- "$file" ||
30125 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30126          X"$file" : 'X\(//\)[^/]' \| \
30127          X"$file" : 'X\(//\)$' \| \
30128          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
30129 echo X"$file" |
30130     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30131             s//\1/
30132             q
30133           }
30134           /^X\(\/\/\)[^/].*/{
30135             s//\1/
30136             q
30137           }
30138           /^X\(\/\/\)$/{
30139             s//\1/
30140             q
30141           }
30142           /^X\(\/\).*/{
30143             s//\1/
30144             q
30145           }
30146           s/.*/./; q'`
30147     { as_dir=$dirpart/$fdir
30148   case $as_dir in #(
30149   -*) as_dir=./$as_dir;;
30150   esac
30151   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
30152     as_dirs=
30153     while :; do
30154       case $as_dir in #(
30155       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
30156       *) as_qdir=$as_dir;;
30157       esac
30158       as_dirs="'$as_qdir' $as_dirs"
30159       as_dir=`$as_dirname -- "$as_dir" ||
30160 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30161          X"$as_dir" : 'X\(//\)[^/]' \| \
30162          X"$as_dir" : 'X\(//\)$' \| \
30163          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
30164 echo X"$as_dir" |
30165     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30166             s//\1/
30167             q
30168           }
30169           /^X\(\/\/\)[^/].*/{
30170             s//\1/
30171             q
30172           }
30173           /^X\(\/\/\)$/{
30174             s//\1/
30175             q
30176           }
30177           /^X\(\/\).*/{
30178             s//\1/
30179             q
30180           }
30181           s/.*/./; q'`
30182       test -d "$as_dir" && break
30183     done
30184     test -z "$as_dirs" || eval "mkdir $as_dirs"
30185   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
30186 echo "$as_me: error: cannot create directory $as_dir" >&2;}
30187    { (exit 1); exit 1; }; }; }
30188     # echo "creating $dirpart/$file"
30189     echo '# dummy' > "$dirpart/$file"
30190   done
30191 done
30192  ;;
30193
30194   esac
30195 done # for ac_tag
30196
30197
30198 { (exit 0); exit 0; }
30199 _ACEOF
30200 chmod +x $CONFIG_STATUS
30201 ac_clean_files=$ac_clean_files_save
30202
30203
30204 # configure is writing to config.log, and then calls config.status.
30205 # config.status does its own redirection, appending to config.log.
30206 # Unfortunately, on DOS this fails, as config.log is still kept open
30207 # by configure, so config.status won't be able to write to it; its
30208 # output is simply discarded.  So we exec the FD to /dev/null,
30209 # effectively closing config.log, so it can be properly (re)opened and
30210 # appended to by config.status.  When coming back to configure, we
30211 # need to make the FD available again.
30212 if test "$no_create" != yes; then
30213   ac_cs_success=:
30214   ac_config_status_args=
30215   test "$silent" = yes &&
30216     ac_config_status_args="$ac_config_status_args --quiet"
30217   exec 5>/dev/null
30218   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
30219   exec 5>>config.log
30220   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
30221   # would make configure fail if this is the last instruction.
30222   $ac_cs_success || { (exit 1); exit 1; }
30223 fi
30224
30225