]> git.decadent.org.uk Git - nfs-utils.git/blob - configure
Imported Upstream version 1.1.3
[nfs-utils.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61 for linux nfs-utils 1.1.3.
4 #
5 # Report bugs to <linux-nfs@vger.kernel.org>.
6 #
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## --------------------- ##
12 ## M4sh Initialization.  ##
13 ## --------------------- ##
14
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18   emulate sh
19   NULLCMD=:
20   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21   # is contrary to our usage.  Disable this feature.
22   alias -g '${1+"$@"}'='"$@"'
23   setopt NO_GLOB_SUBST
24 else
25   case `(set -o) 2>/dev/null` in
26   *posix*) set -o posix ;;
27 esac
28
29 fi
30
31
32
33
34 # PATH needs CR
35 # Avoid depending upon Character Ranges.
36 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
37 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
38 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
39 as_cr_digits='0123456789'
40 as_cr_alnum=$as_cr_Letters$as_cr_digits
41
42 # The user is always right.
43 if test "${PATH_SEPARATOR+set}" != set; then
44   echo "#! /bin/sh" >conf$$.sh
45   echo  "exit 0"   >>conf$$.sh
46   chmod +x conf$$.sh
47   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
48     PATH_SEPARATOR=';'
49   else
50     PATH_SEPARATOR=:
51   fi
52   rm -f conf$$.sh
53 fi
54
55 # Support unset when possible.
56 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
57   as_unset=unset
58 else
59   as_unset=false
60 fi
61
62
63 # IFS
64 # We need space, tab and new line, in precisely that order.  Quoting is
65 # there to prevent editors from complaining about space-tab.
66 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
67 # splitting by setting IFS to empty value.)
68 as_nl='
69 '
70 IFS=" ""        $as_nl"
71
72 # Find who we are.  Look in the path if we contain no directory separator.
73 case $0 in
74   *[\\/]* ) as_myself=$0 ;;
75   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
76 for as_dir in $PATH
77 do
78   IFS=$as_save_IFS
79   test -z "$as_dir" && as_dir=.
80   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
81 done
82 IFS=$as_save_IFS
83
84      ;;
85 esac
86 # We did not find ourselves, most probably we were run as `sh COMMAND'
87 # in which case we are not to be found in the path.
88 if test "x$as_myself" = x; then
89   as_myself=$0
90 fi
91 if test ! -f "$as_myself"; then
92   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
93   { (exit 1); exit 1; }
94 fi
95
96 # Work around bugs in pre-3.0 UWIN ksh.
97 for as_var in ENV MAIL MAILPATH
98 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
99 done
100 PS1='$ '
101 PS2='> '
102 PS4='+ '
103
104 # NLS nuisances.
105 for as_var in \
106   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
107   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
108   LC_TELEPHONE LC_TIME
109 do
110   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
111     eval $as_var=C; export $as_var
112   else
113     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
114   fi
115 done
116
117 # Required to use basename.
118 if expr a : '\(a\)' >/dev/null 2>&1 &&
119    test "X`expr 00001 : '.*\(...\)'`" = X001; then
120   as_expr=expr
121 else
122   as_expr=false
123 fi
124
125 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
126   as_basename=basename
127 else
128   as_basename=false
129 fi
130
131
132 # Name of the executable.
133 as_me=`$as_basename -- "$0" ||
134 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
135          X"$0" : 'X\(//\)$' \| \
136          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
137 echo X/"$0" |
138     sed '/^.*\/\([^/][^/]*\)\/*$/{
139             s//\1/
140             q
141           }
142           /^X\/\(\/\/\)$/{
143             s//\1/
144             q
145           }
146           /^X\/\(\/\).*/{
147             s//\1/
148             q
149           }
150           s/.*/./; q'`
151
152 # CDPATH.
153 $as_unset CDPATH
154
155
156 if test "x$CONFIG_SHELL" = x; then
157   if (eval ":") 2>/dev/null; then
158   as_have_required=yes
159 else
160   as_have_required=no
161 fi
162
163   if test $as_have_required = yes &&     (eval ":
164 (as_func_return () {
165   (exit \$1)
166 }
167 as_func_success () {
168   as_func_return 0
169 }
170 as_func_failure () {
171   as_func_return 1
172 }
173 as_func_ret_success () {
174   return 0
175 }
176 as_func_ret_failure () {
177   return 1
178 }
179
180 exitcode=0
181 if as_func_success; then
182   :
183 else
184   exitcode=1
185   echo as_func_success failed.
186 fi
187
188 if as_func_failure; then
189   exitcode=1
190   echo as_func_failure succeeded.
191 fi
192
193 if as_func_ret_success; then
194   :
195 else
196   exitcode=1
197   echo as_func_ret_success failed.
198 fi
199
200 if as_func_ret_failure; then
201   exitcode=1
202   echo as_func_ret_failure succeeded.
203 fi
204
205 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
206   :
207 else
208   exitcode=1
209   echo positional parameters were not saved.
210 fi
211
212 test \$exitcode = 0) || { (exit 1); exit 1; }
213
214 (
215   as_lineno_1=\$LINENO
216   as_lineno_2=\$LINENO
217   test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
218   test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
219 ") 2> /dev/null; then
220   :
221 else
222   as_candidate_shells=
223     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
224 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
225 do
226   IFS=$as_save_IFS
227   test -z "$as_dir" && as_dir=.
228   case $as_dir in
229          /*)
230            for as_base in sh bash ksh sh5; do
231              as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
232            done;;
233        esac
234 done
235 IFS=$as_save_IFS
236
237
238       for as_shell in $as_candidate_shells $SHELL; do
239          # Try only shells that exist, to save several forks.
240          if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
241                 { ("$as_shell") 2> /dev/null <<\_ASEOF
242 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
243   emulate sh
244   NULLCMD=:
245   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
246   # is contrary to our usage.  Disable this feature.
247   alias -g '${1+"$@"}'='"$@"'
248   setopt NO_GLOB_SUBST
249 else
250   case `(set -o) 2>/dev/null` in
251   *posix*) set -o posix ;;
252 esac
253
254 fi
255
256
257 :
258 _ASEOF
259 }; then
260   CONFIG_SHELL=$as_shell
261                as_have_required=yes
262                if { "$as_shell" 2> /dev/null <<\_ASEOF
263 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
264   emulate sh
265   NULLCMD=:
266   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
267   # is contrary to our usage.  Disable this feature.
268   alias -g '${1+"$@"}'='"$@"'
269   setopt NO_GLOB_SUBST
270 else
271   case `(set -o) 2>/dev/null` in
272   *posix*) set -o posix ;;
273 esac
274
275 fi
276
277
278 :
279 (as_func_return () {
280   (exit $1)
281 }
282 as_func_success () {
283   as_func_return 0
284 }
285 as_func_failure () {
286   as_func_return 1
287 }
288 as_func_ret_success () {
289   return 0
290 }
291 as_func_ret_failure () {
292   return 1
293 }
294
295 exitcode=0
296 if as_func_success; then
297   :
298 else
299   exitcode=1
300   echo as_func_success failed.
301 fi
302
303 if as_func_failure; then
304   exitcode=1
305   echo as_func_failure succeeded.
306 fi
307
308 if as_func_ret_success; then
309   :
310 else
311   exitcode=1
312   echo as_func_ret_success failed.
313 fi
314
315 if as_func_ret_failure; then
316   exitcode=1
317   echo as_func_ret_failure succeeded.
318 fi
319
320 if ( set x; as_func_ret_success y && test x = "$1" ); then
321   :
322 else
323   exitcode=1
324   echo positional parameters were not saved.
325 fi
326
327 test $exitcode = 0) || { (exit 1); exit 1; }
328
329 (
330   as_lineno_1=$LINENO
331   as_lineno_2=$LINENO
332   test "x$as_lineno_1" != "x$as_lineno_2" &&
333   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
334
335 _ASEOF
336 }; then
337   break
338 fi
339
340 fi
341
342       done
343
344       if test "x$CONFIG_SHELL" != x; then
345   for as_var in BASH_ENV ENV
346         do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
347         done
348         export CONFIG_SHELL
349         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
350 fi
351
352
353     if test $as_have_required = no; then
354   echo This script requires a shell more modern than all the
355       echo shells that I found on your system.  Please install a
356       echo modern shell, or manually run the script under such a
357       echo shell if you do have one.
358       { (exit 1); exit 1; }
359 fi
360
361
362 fi
363
364 fi
365
366
367
368 (eval "as_func_return () {
369   (exit \$1)
370 }
371 as_func_success () {
372   as_func_return 0
373 }
374 as_func_failure () {
375   as_func_return 1
376 }
377 as_func_ret_success () {
378   return 0
379 }
380 as_func_ret_failure () {
381   return 1
382 }
383
384 exitcode=0
385 if as_func_success; then
386   :
387 else
388   exitcode=1
389   echo as_func_success failed.
390 fi
391
392 if as_func_failure; then
393   exitcode=1
394   echo as_func_failure succeeded.
395 fi
396
397 if as_func_ret_success; then
398   :
399 else
400   exitcode=1
401   echo as_func_ret_success failed.
402 fi
403
404 if as_func_ret_failure; then
405   exitcode=1
406   echo as_func_ret_failure succeeded.
407 fi
408
409 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
410   :
411 else
412   exitcode=1
413   echo positional parameters were not saved.
414 fi
415
416 test \$exitcode = 0") || {
417   echo No shell found that supports shell functions.
418   echo Please tell autoconf@gnu.org about your system,
419   echo including any error possibly output before this
420   echo message
421 }
422
423
424
425   as_lineno_1=$LINENO
426   as_lineno_2=$LINENO
427   test "x$as_lineno_1" != "x$as_lineno_2" &&
428   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
429
430   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
431   # uniformly replaced by the line number.  The first 'sed' inserts a
432   # line-number line after each line using $LINENO; the second 'sed'
433   # does the real work.  The second script uses 'N' to pair each
434   # line-number line with the line containing $LINENO, and appends
435   # trailing '-' during substitution so that $LINENO is not a special
436   # case at line end.
437   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
438   # scripts with optimization help from Paolo Bonzini.  Blame Lee
439   # E. McMahon (1931-1989) for sed's syntax.  :-)
440   sed -n '
441     p
442     /[$]LINENO/=
443   ' <$as_myself |
444     sed '
445       s/[$]LINENO.*/&-/
446       t lineno
447       b
448       :lineno
449       N
450       :loop
451       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
452       t loop
453       s/-\n.*//
454     ' >$as_me.lineno &&
455   chmod +x "$as_me.lineno" ||
456     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
457    { (exit 1); exit 1; }; }
458
459   # Don't try to exec as it changes $[0], causing all sort of problems
460   # (the dirname of $[0] is not the place where we might find the
461   # original and so on.  Autoconf is especially sensitive to this).
462   . "./$as_me.lineno"
463   # Exit status is that of the last command.
464   exit
465 }
466
467
468 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
469   as_dirname=dirname
470 else
471   as_dirname=false
472 fi
473
474 ECHO_C= ECHO_N= ECHO_T=
475 case `echo -n x` in
476 -n*)
477   case `echo 'x\c'` in
478   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
479   *)   ECHO_C='\c';;
480   esac;;
481 *)
482   ECHO_N='-n';;
483 esac
484
485 if expr a : '\(a\)' >/dev/null 2>&1 &&
486    test "X`expr 00001 : '.*\(...\)'`" = X001; then
487   as_expr=expr
488 else
489   as_expr=false
490 fi
491
492 rm -f conf$$ conf$$.exe conf$$.file
493 if test -d conf$$.dir; then
494   rm -f conf$$.dir/conf$$.file
495 else
496   rm -f conf$$.dir
497   mkdir conf$$.dir
498 fi
499 echo >conf$$.file
500 if ln -s conf$$.file conf$$ 2>/dev/null; then
501   as_ln_s='ln -s'
502   # ... but there are two gotchas:
503   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
504   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
505   # In both cases, we have to default to `cp -p'.
506   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
507     as_ln_s='cp -p'
508 elif ln conf$$.file conf$$ 2>/dev/null; then
509   as_ln_s=ln
510 else
511   as_ln_s='cp -p'
512 fi
513 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
514 rmdir conf$$.dir 2>/dev/null
515
516 if mkdir -p . 2>/dev/null; then
517   as_mkdir_p=:
518 else
519   test -d ./-p && rmdir ./-p
520   as_mkdir_p=false
521 fi
522
523 if test -x / >/dev/null 2>&1; then
524   as_test_x='test -x'
525 else
526   if ls -dL / >/dev/null 2>&1; then
527     as_ls_L_option=L
528   else
529     as_ls_L_option=
530   fi
531   as_test_x='
532     eval sh -c '\''
533       if test -d "$1"; then
534         test -d "$1/.";
535       else
536         case $1 in
537         -*)set "./$1";;
538         esac;
539         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
540         ???[sx]*):;;*)false;;esac;fi
541     '\'' sh
542   '
543 fi
544 as_executable_p=$as_test_x
545
546 # Sed expression to map a string onto a valid CPP name.
547 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
548
549 # Sed expression to map a string onto a valid variable name.
550 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
551
552
553
554
555 # Check that we are running under the correct shell.
556 SHELL=${CONFIG_SHELL-/bin/sh}
557
558 case X$ECHO in
559 X*--fallback-echo)
560   # Remove one level of quotation (which was required for Make).
561   ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
562   ;;
563 esac
564
565 echo=${ECHO-echo}
566 if test "X$1" = X--no-reexec; then
567   # Discard the --no-reexec flag, and continue.
568   shift
569 elif test "X$1" = X--fallback-echo; then
570   # Avoid inline document here, it may be left over
571   :
572 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
573   # Yippee, $echo works!
574   :
575 else
576   # Restart under the correct shell.
577   exec $SHELL "$0" --no-reexec ${1+"$@"}
578 fi
579
580 if test "X$1" = X--fallback-echo; then
581   # used as fallback echo
582   shift
583   cat <<EOF
584 $*
585 EOF
586   exit 0
587 fi
588
589 # The HP-UX ksh and POSIX shell print the target directory to stdout
590 # if CDPATH is set.
591 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
592
593 if test -z "$ECHO"; then
594 if test "X${echo_test_string+set}" != Xset; then
595 # find a string as large as possible, as long as the shell can cope with it
596   for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
597     # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
598     if (echo_test_string=`eval $cmd`) 2>/dev/null &&
599        echo_test_string=`eval $cmd` &&
600        (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
601     then
602       break
603     fi
604   done
605 fi
606
607 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
608    echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
609    test "X$echo_testing_string" = "X$echo_test_string"; then
610   :
611 else
612   # The Solaris, AIX, and Digital Unix default echo programs unquote
613   # backslashes.  This makes it impossible to quote backslashes using
614   #   echo "$something" | sed 's/\\/\\\\/g'
615   #
616   # So, first we look for a working echo in the user's PATH.
617
618   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
619   for dir in $PATH /usr/ucb; do
620     IFS="$lt_save_ifs"
621     if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
622        test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
623        echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
624        test "X$echo_testing_string" = "X$echo_test_string"; then
625       echo="$dir/echo"
626       break
627     fi
628   done
629   IFS="$lt_save_ifs"
630
631   if test "X$echo" = Xecho; then
632     # We didn't find a better echo, so look for alternatives.
633     if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
634        echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
635        test "X$echo_testing_string" = "X$echo_test_string"; then
636       # This shell has a builtin print -r that does the trick.
637       echo='print -r'
638     elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
639          test "X$CONFIG_SHELL" != X/bin/ksh; then
640       # If we have ksh, try running configure again with it.
641       ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
642       export ORIGINAL_CONFIG_SHELL
643       CONFIG_SHELL=/bin/ksh
644       export CONFIG_SHELL
645       exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
646     else
647       # Try using printf.
648       echo='printf %s\n'
649       if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
650          echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
651          test "X$echo_testing_string" = "X$echo_test_string"; then
652         # Cool, printf works
653         :
654       elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
655            test "X$echo_testing_string" = 'X\t' &&
656            echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
657            test "X$echo_testing_string" = "X$echo_test_string"; then
658         CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
659         export CONFIG_SHELL
660         SHELL="$CONFIG_SHELL"
661         export SHELL
662         echo="$CONFIG_SHELL $0 --fallback-echo"
663       elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
664            test "X$echo_testing_string" = 'X\t' &&
665            echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
666            test "X$echo_testing_string" = "X$echo_test_string"; then
667         echo="$CONFIG_SHELL $0 --fallback-echo"
668       else
669         # maybe with a smaller string...
670         prev=:
671
672         for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
673           if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
674           then
675             break
676           fi
677           prev="$cmd"
678         done
679
680         if test "$prev" != 'sed 50q "$0"'; then
681           echo_test_string=`eval $prev`
682           export echo_test_string
683           exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
684         else
685           # Oops.  We lost completely, so just stick with echo.
686           echo=echo
687         fi
688       fi
689     fi
690   fi
691 fi
692 fi
693
694 # Copy echo and quote the copy suitably for passing to libtool from
695 # the Makefile, instead of quoting the original, which is used later.
696 ECHO=$echo
697 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
698    ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
699 fi
700
701
702
703
704 tagnames=${tagnames+${tagnames},}CXX
705
706 tagnames=${tagnames+${tagnames},}F77
707
708 exec 7<&0 </dev/null 6>&1
709
710 # Name of the host.
711 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
712 # so uname gets run too.
713 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
714
715 #
716 # Initializations.
717 #
718 ac_default_prefix=/usr/local
719 ac_clean_files=
720 ac_config_libobj_dir=.
721 LIBOBJS=
722 cross_compiling=no
723 subdirs=
724 MFLAGS=
725 MAKEFLAGS=
726 SHELL=${CONFIG_SHELL-/bin/sh}
727
728 # Identity of this package.
729 PACKAGE_NAME='linux nfs-utils'
730 PACKAGE_TARNAME='nfs-utils'
731 PACKAGE_VERSION='1.1.3'
732 PACKAGE_STRING='linux nfs-utils 1.1.3'
733 PACKAGE_BUGREPORT='linux-nfs@vger.kernel.org'
734
735 ac_default_prefix=/usr
736 ac_unique_file="support/include/config.h.in"
737 # Factoring default headers for most tests.
738 ac_includes_default="\
739 #include <stdio.h>
740 #ifdef HAVE_SYS_TYPES_H
741 # include <sys/types.h>
742 #endif
743 #ifdef HAVE_SYS_STAT_H
744 # include <sys/stat.h>
745 #endif
746 #ifdef STDC_HEADERS
747 # include <stdlib.h>
748 # include <stddef.h>
749 #else
750 # ifdef HAVE_STDLIB_H
751 #  include <stdlib.h>
752 # endif
753 #endif
754 #ifdef HAVE_STRING_H
755 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
756 #  include <memory.h>
757 # endif
758 # include <string.h>
759 #endif
760 #ifdef HAVE_STRINGS_H
761 # include <strings.h>
762 #endif
763 #ifdef HAVE_INTTYPES_H
764 # include <inttypes.h>
765 #endif
766 #ifdef HAVE_STDINT_H
767 # include <stdint.h>
768 #endif
769 #ifdef HAVE_UNISTD_H
770 # include <unistd.h>
771 #endif"
772
773 ac_subst_vars='SHELL
774 PATH_SEPARATOR
775 PACKAGE_NAME
776 PACKAGE_TARNAME
777 PACKAGE_VERSION
778 PACKAGE_STRING
779 PACKAGE_BUGREPORT
780 exec_prefix
781 prefix
782 program_transform_name
783 bindir
784 sbindir
785 libexecdir
786 datarootdir
787 datadir
788 sysconfdir
789 sharedstatedir
790 localstatedir
791 includedir
792 oldincludedir
793 docdir
794 infodir
795 htmldir
796 dvidir
797 pdfdir
798 psdir
799 libdir
800 localedir
801 mandir
802 DEFS
803 ECHO_C
804 ECHO_N
805 ECHO_T
806 LIBS
807 build_alias
808 host_alias
809 target_alias
810 build
811 build_cpu
812 build_vendor
813 build_os
814 host
815 host_cpu
816 host_vendor
817 host_os
818 INSTALL_PROGRAM
819 INSTALL_SCRIPT
820 INSTALL_DATA
821 am__isrc
822 CYGPATH_W
823 PACKAGE
824 VERSION
825 ACLOCAL
826 AUTOCONF
827 AUTOMAKE
828 AUTOHEADER
829 MAKEINFO
830 install_sh
831 STRIP
832 INSTALL_STRIP_PROGRAM
833 mkdir_p
834 AWK
835 SET_MAKE
836 am__leading_dot
837 AMTAR
838 am__tar
839 am__untar
840 MAINTAINER_MODE_TRUE
841 MAINTAINER_MODE_FALSE
842 MAINT
843 RELEASE
844 statedir
845 statduser
846 startstatd
847 enable_nfsv3
848 IDMAPD
849 enable_nfsv4
850 CONFIG_NFSV4_TRUE
851 CONFIG_NFSV4_FALSE
852 GSSD
853 SVCGSSD
854 enable_gss
855 CONFIG_GSS_TRUE
856 CONFIG_GSS_FALSE
857 kprefix
858 secure_statd
859 RPCGEN_PATH
860 CONFIG_RPCGEN_TRUE
861 CONFIG_RPCGEN_FALSE
862 CONFIG_MOUNT_TRUE
863 CONFIG_MOUNT_FALSE
864 enable_ipv6
865 CONFIG_IPV6_TRUE
866 CONFIG_IPV6_FALSE
867 CC
868 CFLAGS
869 LDFLAGS
870 CPPFLAGS
871 ac_ct_CC
872 EXEEXT
873 OBJEXT
874 DEPDIR
875 am__include
876 am__quote
877 AMDEP_TRUE
878 AMDEP_FALSE
879 AMDEPBACKSLASH
880 CCDEPMODE
881 am__fastdepCC_TRUE
882 am__fastdepCC_FALSE
883 LIBWRAP
884 HAVE_LIBWRAP
885 HAVE_TCP_WRAPPER
886 CXX
887 CXXFLAGS
888 ac_ct_CXX
889 CXXDEPMODE
890 am__fastdepCXX_TRUE
891 am__fastdepCXX_FALSE
892 CPP
893 LN_S
894 SED
895 GREP
896 EGREP
897 ECHO
898 AR
899 RANLIB
900 CXXCPP
901 F77
902 FFLAGS
903 ac_ct_F77
904 LIBTOOL
905 CC_FOR_BUILD
906 LD
907 LIBNSL
908 PKG_CONFIG
909 RPCSECGSS_CFLAGS
910 RPCSECGSS_LIBS
911 GSSGLUE_CFLAGS
912 GSSGLUE_LIBS
913 LIBSOCKET
914 LIBCRYPT
915 LIBBSD
916 LIBBLKID
917 KRBDIR
918 KRBLIBS
919 KRBCFLAGS
920 KRBLDFLAGS
921 K5VERS
922 ALLOCA
923 LIBOBJS
924 CFLAGS_FOR_BUILD
925 CXXFLAGS_FOR_BUILD
926 CPPFLAGS_FOR_BUILD
927 LDFLAGS_FOR_BUILD
928 AM_CPPFLAGS
929 AM_CFLAGS
930 ACLOCAL_AMFLAGS
931 LTLIBOBJS'
932 ac_subst_files=''
933       ac_precious_vars='build_alias
934 host_alias
935 target_alias
936 CC
937 CFLAGS
938 LDFLAGS
939 LIBS
940 CPPFLAGS
941 CXX
942 CXXFLAGS
943 CCC
944 CPP
945 CXXCPP
946 F77
947 FFLAGS
948 PKG_CONFIG
949 RPCSECGSS_CFLAGS
950 RPCSECGSS_LIBS
951 GSSGLUE_CFLAGS
952 GSSGLUE_LIBS'
953
954
955 # Initialize some variables set by options.
956 ac_init_help=
957 ac_init_version=false
958 # The variables have the same names as the options, with
959 # dashes changed to underlines.
960 cache_file=/dev/null
961 exec_prefix=NONE
962 no_create=
963 no_recursion=
964 prefix=NONE
965 program_prefix=NONE
966 program_suffix=NONE
967 program_transform_name=s,x,x,
968 silent=
969 site=
970 srcdir=
971 verbose=
972 x_includes=NONE
973 x_libraries=NONE
974
975 # Installation directory options.
976 # These are left unexpanded so users can "make install exec_prefix=/foo"
977 # and all the variables that are supposed to be based on exec_prefix
978 # by default will actually change.
979 # Use braces instead of parens because sh, perl, etc. also accept them.
980 # (The list follows the same order as the GNU Coding Standards.)
981 bindir='${exec_prefix}/bin'
982 sbindir='${exec_prefix}/sbin'
983 libexecdir='${exec_prefix}/libexec'
984 datarootdir='${prefix}/share'
985 datadir='${datarootdir}'
986 sysconfdir='${prefix}/etc'
987 sharedstatedir='${prefix}/com'
988 localstatedir='${prefix}/var'
989 includedir='${prefix}/include'
990 oldincludedir='/usr/include'
991 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
992 infodir='${datarootdir}/info'
993 htmldir='${docdir}'
994 dvidir='${docdir}'
995 pdfdir='${docdir}'
996 psdir='${docdir}'
997 libdir='${exec_prefix}/lib'
998 localedir='${datarootdir}/locale'
999 mandir='${datarootdir}/man'
1000
1001 ac_prev=
1002 ac_dashdash=
1003 for ac_option
1004 do
1005   # If the previous option needs an argument, assign it.
1006   if test -n "$ac_prev"; then
1007     eval $ac_prev=\$ac_option
1008     ac_prev=
1009     continue
1010   fi
1011
1012   case $ac_option in
1013   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1014   *)    ac_optarg=yes ;;
1015   esac
1016
1017   # Accept the important Cygnus configure options, so we can diagnose typos.
1018
1019   case $ac_dashdash$ac_option in
1020   --)
1021     ac_dashdash=yes ;;
1022
1023   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1024     ac_prev=bindir ;;
1025   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1026     bindir=$ac_optarg ;;
1027
1028   -build | --build | --buil | --bui | --bu)
1029     ac_prev=build_alias ;;
1030   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1031     build_alias=$ac_optarg ;;
1032
1033   -cache-file | --cache-file | --cache-fil | --cache-fi \
1034   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1035     ac_prev=cache_file ;;
1036   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1037   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1038     cache_file=$ac_optarg ;;
1039
1040   --config-cache | -C)
1041     cache_file=config.cache ;;
1042
1043   -datadir | --datadir | --datadi | --datad)
1044     ac_prev=datadir ;;
1045   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1046     datadir=$ac_optarg ;;
1047
1048   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1049   | --dataroo | --dataro | --datar)
1050     ac_prev=datarootdir ;;
1051   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1052   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1053     datarootdir=$ac_optarg ;;
1054
1055   -disable-* | --disable-*)
1056     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1057     # Reject names that are not valid shell variable names.
1058     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1059       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1060    { (exit 1); exit 1; }; }
1061     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1062     eval enable_$ac_feature=no ;;
1063
1064   -docdir | --docdir | --docdi | --doc | --do)
1065     ac_prev=docdir ;;
1066   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1067     docdir=$ac_optarg ;;
1068
1069   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1070     ac_prev=dvidir ;;
1071   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1072     dvidir=$ac_optarg ;;
1073
1074   -enable-* | --enable-*)
1075     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1076     # Reject names that are not valid shell variable names.
1077     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1078       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1079    { (exit 1); exit 1; }; }
1080     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1081     eval enable_$ac_feature=\$ac_optarg ;;
1082
1083   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1084   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1085   | --exec | --exe | --ex)
1086     ac_prev=exec_prefix ;;
1087   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1088   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1089   | --exec=* | --exe=* | --ex=*)
1090     exec_prefix=$ac_optarg ;;
1091
1092   -gas | --gas | --ga | --g)
1093     # Obsolete; use --with-gas.
1094     with_gas=yes ;;
1095
1096   -help | --help | --hel | --he | -h)
1097     ac_init_help=long ;;
1098   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1099     ac_init_help=recursive ;;
1100   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1101     ac_init_help=short ;;
1102
1103   -host | --host | --hos | --ho)
1104     ac_prev=host_alias ;;
1105   -host=* | --host=* | --hos=* | --ho=*)
1106     host_alias=$ac_optarg ;;
1107
1108   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1109     ac_prev=htmldir ;;
1110   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1111   | --ht=*)
1112     htmldir=$ac_optarg ;;
1113
1114   -includedir | --includedir | --includedi | --included | --include \
1115   | --includ | --inclu | --incl | --inc)
1116     ac_prev=includedir ;;
1117   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1118   | --includ=* | --inclu=* | --incl=* | --inc=*)
1119     includedir=$ac_optarg ;;
1120
1121   -infodir | --infodir | --infodi | --infod | --info | --inf)
1122     ac_prev=infodir ;;
1123   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1124     infodir=$ac_optarg ;;
1125
1126   -libdir | --libdir | --libdi | --libd)
1127     ac_prev=libdir ;;
1128   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1129     libdir=$ac_optarg ;;
1130
1131   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1132   | --libexe | --libex | --libe)
1133     ac_prev=libexecdir ;;
1134   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1135   | --libexe=* | --libex=* | --libe=*)
1136     libexecdir=$ac_optarg ;;
1137
1138   -localedir | --localedir | --localedi | --localed | --locale)
1139     ac_prev=localedir ;;
1140   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1141     localedir=$ac_optarg ;;
1142
1143   -localstatedir | --localstatedir | --localstatedi | --localstated \
1144   | --localstate | --localstat | --localsta | --localst | --locals)
1145     ac_prev=localstatedir ;;
1146   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1147   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1148     localstatedir=$ac_optarg ;;
1149
1150   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1151     ac_prev=mandir ;;
1152   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1153     mandir=$ac_optarg ;;
1154
1155   -nfp | --nfp | --nf)
1156     # Obsolete; use --without-fp.
1157     with_fp=no ;;
1158
1159   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1160   | --no-cr | --no-c | -n)
1161     no_create=yes ;;
1162
1163   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1164   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1165     no_recursion=yes ;;
1166
1167   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1168   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1169   | --oldin | --oldi | --old | --ol | --o)
1170     ac_prev=oldincludedir ;;
1171   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1172   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1173   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1174     oldincludedir=$ac_optarg ;;
1175
1176   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1177     ac_prev=prefix ;;
1178   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1179     prefix=$ac_optarg ;;
1180
1181   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1182   | --program-pre | --program-pr | --program-p)
1183     ac_prev=program_prefix ;;
1184   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1185   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1186     program_prefix=$ac_optarg ;;
1187
1188   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1189   | --program-suf | --program-su | --program-s)
1190     ac_prev=program_suffix ;;
1191   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1192   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1193     program_suffix=$ac_optarg ;;
1194
1195   -program-transform-name | --program-transform-name \
1196   | --program-transform-nam | --program-transform-na \
1197   | --program-transform-n | --program-transform- \
1198   | --program-transform | --program-transfor \
1199   | --program-transfo | --program-transf \
1200   | --program-trans | --program-tran \
1201   | --progr-tra | --program-tr | --program-t)
1202     ac_prev=program_transform_name ;;
1203   -program-transform-name=* | --program-transform-name=* \
1204   | --program-transform-nam=* | --program-transform-na=* \
1205   | --program-transform-n=* | --program-transform-=* \
1206   | --program-transform=* | --program-transfor=* \
1207   | --program-transfo=* | --program-transf=* \
1208   | --program-trans=* | --program-tran=* \
1209   | --progr-tra=* | --program-tr=* | --program-t=*)
1210     program_transform_name=$ac_optarg ;;
1211
1212   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1213     ac_prev=pdfdir ;;
1214   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1215     pdfdir=$ac_optarg ;;
1216
1217   -psdir | --psdir | --psdi | --psd | --ps)
1218     ac_prev=psdir ;;
1219   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1220     psdir=$ac_optarg ;;
1221
1222   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1223   | -silent | --silent | --silen | --sile | --sil)
1224     silent=yes ;;
1225
1226   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1227     ac_prev=sbindir ;;
1228   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1229   | --sbi=* | --sb=*)
1230     sbindir=$ac_optarg ;;
1231
1232   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1233   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1234   | --sharedst | --shareds | --shared | --share | --shar \
1235   | --sha | --sh)
1236     ac_prev=sharedstatedir ;;
1237   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1238   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1239   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1240   | --sha=* | --sh=*)
1241     sharedstatedir=$ac_optarg ;;
1242
1243   -site | --site | --sit)
1244     ac_prev=site ;;
1245   -site=* | --site=* | --sit=*)
1246     site=$ac_optarg ;;
1247
1248   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1249     ac_prev=srcdir ;;
1250   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1251     srcdir=$ac_optarg ;;
1252
1253   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1254   | --syscon | --sysco | --sysc | --sys | --sy)
1255     ac_prev=sysconfdir ;;
1256   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1257   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1258     sysconfdir=$ac_optarg ;;
1259
1260   -target | --target | --targe | --targ | --tar | --ta | --t)
1261     ac_prev=target_alias ;;
1262   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1263     target_alias=$ac_optarg ;;
1264
1265   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1266     verbose=yes ;;
1267
1268   -version | --version | --versio | --versi | --vers | -V)
1269     ac_init_version=: ;;
1270
1271   -with-* | --with-*)
1272     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1273     # Reject names that are not valid shell variable names.
1274     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1275       { echo "$as_me: error: invalid package name: $ac_package" >&2
1276    { (exit 1); exit 1; }; }
1277     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1278     eval with_$ac_package=\$ac_optarg ;;
1279
1280   -without-* | --without-*)
1281     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1282     # Reject names that are not valid shell variable names.
1283     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1284       { echo "$as_me: error: invalid package name: $ac_package" >&2
1285    { (exit 1); exit 1; }; }
1286     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1287     eval with_$ac_package=no ;;
1288
1289   --x)
1290     # Obsolete; use --with-x.
1291     with_x=yes ;;
1292
1293   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1294   | --x-incl | --x-inc | --x-in | --x-i)
1295     ac_prev=x_includes ;;
1296   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1297   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1298     x_includes=$ac_optarg ;;
1299
1300   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1301   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1302     ac_prev=x_libraries ;;
1303   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1304   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1305     x_libraries=$ac_optarg ;;
1306
1307   -*) { echo "$as_me: error: unrecognized option: $ac_option
1308 Try \`$0 --help' for more information." >&2
1309    { (exit 1); exit 1; }; }
1310     ;;
1311
1312   *=*)
1313     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1314     # Reject names that are not valid shell variable names.
1315     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1316       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1317    { (exit 1); exit 1; }; }
1318     eval $ac_envvar=\$ac_optarg
1319     export $ac_envvar ;;
1320
1321   *)
1322     # FIXME: should be removed in autoconf 3.0.
1323     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1324     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1325       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1326     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1327     ;;
1328
1329   esac
1330 done
1331
1332 if test -n "$ac_prev"; then
1333   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1334   { echo "$as_me: error: missing argument to $ac_option" >&2
1335    { (exit 1); exit 1; }; }
1336 fi
1337
1338 # Be sure to have absolute directory names.
1339 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1340                 datadir sysconfdir sharedstatedir localstatedir includedir \
1341                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1342                 libdir localedir mandir
1343 do
1344   eval ac_val=\$$ac_var
1345   case $ac_val in
1346     [\\/$]* | ?:[\\/]* )  continue;;
1347     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1348   esac
1349   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1350    { (exit 1); exit 1; }; }
1351 done
1352
1353 # There might be people who depend on the old broken behavior: `$host'
1354 # used to hold the argument of --host etc.
1355 # FIXME: To remove some day.
1356 build=$build_alias
1357 host=$host_alias
1358 target=$target_alias
1359
1360 # FIXME: To remove some day.
1361 if test "x$host_alias" != x; then
1362   if test "x$build_alias" = x; then
1363     cross_compiling=maybe
1364     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1365     If a cross compiler is detected then cross compile mode will be used." >&2
1366   elif test "x$build_alias" != "x$host_alias"; then
1367     cross_compiling=yes
1368   fi
1369 fi
1370
1371 ac_tool_prefix=
1372 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1373
1374 test "$silent" = yes && exec 6>/dev/null
1375
1376
1377 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1378 ac_ls_di=`ls -di .` &&
1379 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1380   { echo "$as_me: error: Working directory cannot be determined" >&2
1381    { (exit 1); exit 1; }; }
1382 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1383   { echo "$as_me: error: pwd does not report name of working directory" >&2
1384    { (exit 1); exit 1; }; }
1385
1386
1387 # Find the source files, if location was not specified.
1388 if test -z "$srcdir"; then
1389   ac_srcdir_defaulted=yes
1390   # Try the directory containing this script, then the parent directory.
1391   ac_confdir=`$as_dirname -- "$0" ||
1392 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1393          X"$0" : 'X\(//\)[^/]' \| \
1394          X"$0" : 'X\(//\)$' \| \
1395          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1396 echo X"$0" |
1397     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1398             s//\1/
1399             q
1400           }
1401           /^X\(\/\/\)[^/].*/{
1402             s//\1/
1403             q
1404           }
1405           /^X\(\/\/\)$/{
1406             s//\1/
1407             q
1408           }
1409           /^X\(\/\).*/{
1410             s//\1/
1411             q
1412           }
1413           s/.*/./; q'`
1414   srcdir=$ac_confdir
1415   if test ! -r "$srcdir/$ac_unique_file"; then
1416     srcdir=..
1417   fi
1418 else
1419   ac_srcdir_defaulted=no
1420 fi
1421 if test ! -r "$srcdir/$ac_unique_file"; then
1422   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1423   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1424    { (exit 1); exit 1; }; }
1425 fi
1426 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1427 ac_abs_confdir=`(
1428         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1429    { (exit 1); exit 1; }; }
1430         pwd)`
1431 # When building in place, set srcdir=.
1432 if test "$ac_abs_confdir" = "$ac_pwd"; then
1433   srcdir=.
1434 fi
1435 # Remove unnecessary trailing slashes from srcdir.
1436 # Double slashes in file names in object file debugging info
1437 # mess up M-x gdb in Emacs.
1438 case $srcdir in
1439 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1440 esac
1441 for ac_var in $ac_precious_vars; do
1442   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1443   eval ac_env_${ac_var}_value=\$${ac_var}
1444   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1445   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1446 done
1447
1448 #
1449 # Report the --help message.
1450 #
1451 if test "$ac_init_help" = "long"; then
1452   # Omit some internal or obsolete options to make the list less imposing.
1453   # This message is too long to be a string in the A/UX 3.1 sh.
1454   cat <<_ACEOF
1455 \`configure' configures linux nfs-utils 1.1.3 to adapt to many kinds of systems.
1456
1457 Usage: $0 [OPTION]... [VAR=VALUE]...
1458
1459 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1460 VAR=VALUE.  See below for descriptions of some of the useful variables.
1461
1462 Defaults for the options are specified in brackets.
1463
1464 Configuration:
1465   -h, --help              display this help and exit
1466       --help=short        display options specific to this package
1467       --help=recursive    display the short help of all the included packages
1468   -V, --version           display version information and exit
1469   -q, --quiet, --silent   do not print \`checking...' messages
1470       --cache-file=FILE   cache test results in FILE [disabled]
1471   -C, --config-cache      alias for \`--cache-file=config.cache'
1472   -n, --no-create         do not create output files
1473       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1474
1475 Installation directories:
1476   --prefix=PREFIX         install architecture-independent files in PREFIX
1477                           [$ac_default_prefix]
1478   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1479                           [PREFIX]
1480
1481 By default, \`make install' will install all the files in
1482 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1483 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1484 for instance \`--prefix=\$HOME'.
1485
1486 For better control, use the options below.
1487
1488 Fine tuning of the installation directories:
1489   --bindir=DIR           user executables [EPREFIX/bin]
1490   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1491   --libexecdir=DIR       program executables [EPREFIX/libexec]
1492   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1493   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1494   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1495   --libdir=DIR           object code libraries [EPREFIX/lib]
1496   --includedir=DIR       C header files [PREFIX/include]
1497   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1498   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1499   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1500   --infodir=DIR          info documentation [DATAROOTDIR/info]
1501   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1502   --mandir=DIR           man documentation [DATAROOTDIR/man]
1503   --docdir=DIR           documentation root [DATAROOTDIR/doc/nfs-utils]
1504   --htmldir=DIR          html documentation [DOCDIR]
1505   --dvidir=DIR           dvi documentation [DOCDIR]
1506   --pdfdir=DIR           pdf documentation [DOCDIR]
1507   --psdir=DIR            ps documentation [DOCDIR]
1508 _ACEOF
1509
1510   cat <<\_ACEOF
1511
1512 Program names:
1513   --program-prefix=PREFIX            prepend PREFIX to installed program names
1514   --program-suffix=SUFFIX            append SUFFIX to installed program names
1515   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1516
1517 System types:
1518   --build=BUILD     configure for building on BUILD [guessed]
1519   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1520 _ACEOF
1521 fi
1522
1523 if test -n "$ac_init_help"; then
1524   case $ac_init_help in
1525      short | recursive ) echo "Configuration of linux nfs-utils 1.1.3:";;
1526    esac
1527   cat <<\_ACEOF
1528
1529 Optional Features:
1530   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1531   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1532   --enable-maintainer-mode  enable make rules and dependencies not useful
1533                           (and sometimes confusing) to the casual installer
1534   --enable-nfsv3          enable support for NFSv3 [default=yes]
1535   --enable-nfsv4          enable support for NFSv4 [default=yes]
1536   --enable-gss            enable support for rpcsec_gss [default=yes]
1537   --enable-kprefix        install progs as rpc.knfsd etc
1538   --enable-secure-statd   Only lockd can use statd (security)
1539   --without-uuid          Exclude uuid support and so avoid possibly buggy
1540                           libblkid
1541   --enable-mount          Create mount.nfs and don't use the util-linux
1542                           mount(8) functionality. [default=yes]
1543   --enable-ipv6           enable support for IPv6 [default=no]
1544   --disable-dependency-tracking  speeds up one-time build
1545   --enable-dependency-tracking   do not reject slow dependency extractors
1546   --disable-largefile     omit support for large files
1547   --enable-shared[=PKGS]  build shared libraries [default=yes]
1548   --enable-static[=PKGS]  build static libraries [default=yes]
1549   --enable-fast-install[=PKGS]
1550                           optimize for fast installation [default=yes]
1551   --disable-libtool-lock  avoid locking (might break parallel builds)
1552
1553 Optional Packages:
1554   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1555   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1556   --with-release=XXX      set release to XXX [1]
1557   --with-statedir=/foo    use state dir /foo /var/lib/nfs
1558   --with-statduser=rpcuser
1559                           statd to run under [rpcuser or nobody]
1560   --with-start-statd=scriptname
1561                           When an nfs filesystems is mounted with locking, run
1562                           this script
1563   --with-rpcgen=internal  use internal rpcgen instead of system one
1564   --with-tcp-wrappers[=PATH]      Enable tcpwrappers support
1565                  (optionally in PATH)
1566   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1567   --with-pic              try to use only PIC/non-PIC objects [default=use
1568                           both]
1569   --with-tags[=TAGS]      include additional configurations [automatic]
1570   --with-krb5=DIR         use Kerberos v5 installation in DIR
1571
1572 Some influential environment variables:
1573   CC          C compiler command
1574   CFLAGS      C compiler flags
1575   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1576               nonstandard directory <lib dir>
1577   LIBS        libraries to pass to the linker, e.g. -l<library>
1578   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1579               you have headers in a nonstandard directory <include dir>
1580   CXX         C++ compiler command
1581   CXXFLAGS    C++ compiler flags
1582   CPP         C preprocessor
1583   CXXCPP      C++ preprocessor
1584   F77         Fortran 77 compiler command
1585   FFLAGS      Fortran 77 compiler flags
1586   PKG_CONFIG  path to pkg-config utility
1587   RPCSECGSS_CFLAGS
1588               C compiler flags for RPCSECGSS, overriding pkg-config
1589   RPCSECGSS_LIBS
1590               linker flags for RPCSECGSS, overriding pkg-config
1591   GSSGLUE_CFLAGS
1592               C compiler flags for GSSGLUE, overriding pkg-config
1593   GSSGLUE_LIBS
1594               linker flags for GSSGLUE, overriding pkg-config
1595
1596 Use these variables to override the choices made by `configure' or to help
1597 it to find libraries and programs with nonstandard names/locations.
1598
1599 Report bugs to <linux-nfs@vger.kernel.org>.
1600 _ACEOF
1601 ac_status=$?
1602 fi
1603
1604 if test "$ac_init_help" = "recursive"; then
1605   # If there are subdirs, report their specific --help.
1606   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1607     test -d "$ac_dir" || continue
1608     ac_builddir=.
1609
1610 case "$ac_dir" in
1611 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1612 *)
1613   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1614   # A ".." for each directory in $ac_dir_suffix.
1615   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1616   case $ac_top_builddir_sub in
1617   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1618   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1619   esac ;;
1620 esac
1621 ac_abs_top_builddir=$ac_pwd
1622 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1623 # for backward compatibility:
1624 ac_top_builddir=$ac_top_build_prefix
1625
1626 case $srcdir in
1627   .)  # We are building in place.
1628     ac_srcdir=.
1629     ac_top_srcdir=$ac_top_builddir_sub
1630     ac_abs_top_srcdir=$ac_pwd ;;
1631   [\\/]* | ?:[\\/]* )  # Absolute name.
1632     ac_srcdir=$srcdir$ac_dir_suffix;
1633     ac_top_srcdir=$srcdir
1634     ac_abs_top_srcdir=$srcdir ;;
1635   *) # Relative name.
1636     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1637     ac_top_srcdir=$ac_top_build_prefix$srcdir
1638     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1639 esac
1640 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1641
1642     cd "$ac_dir" || { ac_status=$?; continue; }
1643     # Check for guested configure.
1644     if test -f "$ac_srcdir/configure.gnu"; then
1645       echo &&
1646       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1647     elif test -f "$ac_srcdir/configure"; then
1648       echo &&
1649       $SHELL "$ac_srcdir/configure" --help=recursive
1650     else
1651       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1652     fi || ac_status=$?
1653     cd "$ac_pwd" || { ac_status=$?; break; }
1654   done
1655 fi
1656
1657 test -n "$ac_init_help" && exit $ac_status
1658 if $ac_init_version; then
1659   cat <<\_ACEOF
1660 linux nfs-utils configure 1.1.3
1661 generated by GNU Autoconf 2.61
1662
1663 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1664 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1665 This configure script is free software; the Free Software Foundation
1666 gives unlimited permission to copy, distribute and modify it.
1667 _ACEOF
1668   exit
1669 fi
1670 cat >config.log <<_ACEOF
1671 This file contains any messages produced by compilers while
1672 running configure, to aid debugging if configure makes a mistake.
1673
1674 It was created by linux nfs-utils $as_me 1.1.3, which was
1675 generated by GNU Autoconf 2.61.  Invocation command line was
1676
1677   $ $0 $@
1678
1679 _ACEOF
1680 exec 5>>config.log
1681 {
1682 cat <<_ASUNAME
1683 ## --------- ##
1684 ## Platform. ##
1685 ## --------- ##
1686
1687 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1688 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1689 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1690 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1691 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1692
1693 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1694 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1695
1696 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1697 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1698 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1699 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1700 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1701 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1702 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1703
1704 _ASUNAME
1705
1706 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1707 for as_dir in $PATH
1708 do
1709   IFS=$as_save_IFS
1710   test -z "$as_dir" && as_dir=.
1711   echo "PATH: $as_dir"
1712 done
1713 IFS=$as_save_IFS
1714
1715 } >&5
1716
1717 cat >&5 <<_ACEOF
1718
1719
1720 ## ----------- ##
1721 ## Core tests. ##
1722 ## ----------- ##
1723
1724 _ACEOF
1725
1726
1727 # Keep a trace of the command line.
1728 # Strip out --no-create and --no-recursion so they do not pile up.
1729 # Strip out --silent because we don't want to record it for future runs.
1730 # Also quote any args containing shell meta-characters.
1731 # Make two passes to allow for proper duplicate-argument suppression.
1732 ac_configure_args=
1733 ac_configure_args0=
1734 ac_configure_args1=
1735 ac_must_keep_next=false
1736 for ac_pass in 1 2
1737 do
1738   for ac_arg
1739   do
1740     case $ac_arg in
1741     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1742     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1743     | -silent | --silent | --silen | --sile | --sil)
1744       continue ;;
1745     *\'*)
1746       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1747     esac
1748     case $ac_pass in
1749     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1750     2)
1751       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1752       if test $ac_must_keep_next = true; then
1753         ac_must_keep_next=false # Got value, back to normal.
1754       else
1755         case $ac_arg in
1756           *=* | --config-cache | -C | -disable-* | --disable-* \
1757           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1758           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1759           | -with-* | --with-* | -without-* | --without-* | --x)
1760             case "$ac_configure_args0 " in
1761               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1762             esac
1763             ;;
1764           -* ) ac_must_keep_next=true ;;
1765         esac
1766       fi
1767       ac_configure_args="$ac_configure_args '$ac_arg'"
1768       ;;
1769     esac
1770   done
1771 done
1772 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1773 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1774
1775 # When interrupted or exit'd, cleanup temporary files, and complete
1776 # config.log.  We remove comments because anyway the quotes in there
1777 # would cause problems or look ugly.
1778 # WARNING: Use '\'' to represent an apostrophe within the trap.
1779 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1780 trap 'exit_status=$?
1781   # Save into config.log some information that might help in debugging.
1782   {
1783     echo
1784
1785     cat <<\_ASBOX
1786 ## ---------------- ##
1787 ## Cache variables. ##
1788 ## ---------------- ##
1789 _ASBOX
1790     echo
1791     # The following way of writing the cache mishandles newlines in values,
1792 (
1793   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1794     eval ac_val=\$$ac_var
1795     case $ac_val in #(
1796     *${as_nl}*)
1797       case $ac_var in #(
1798       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1799 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1800       esac
1801       case $ac_var in #(
1802       _ | IFS | as_nl) ;; #(
1803       *) $as_unset $ac_var ;;
1804       esac ;;
1805     esac
1806   done
1807   (set) 2>&1 |
1808     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1809     *${as_nl}ac_space=\ *)
1810       sed -n \
1811         "s/'\''/'\''\\\\'\'''\''/g;
1812           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1813       ;; #(
1814     *)
1815       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1816       ;;
1817     esac |
1818     sort
1819 )
1820     echo
1821
1822     cat <<\_ASBOX
1823 ## ----------------- ##
1824 ## Output variables. ##
1825 ## ----------------- ##
1826 _ASBOX
1827     echo
1828     for ac_var in $ac_subst_vars
1829     do
1830       eval ac_val=\$$ac_var
1831       case $ac_val in
1832       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1833       esac
1834       echo "$ac_var='\''$ac_val'\''"
1835     done | sort
1836     echo
1837
1838     if test -n "$ac_subst_files"; then
1839       cat <<\_ASBOX
1840 ## ------------------- ##
1841 ## File substitutions. ##
1842 ## ------------------- ##
1843 _ASBOX
1844       echo
1845       for ac_var in $ac_subst_files
1846       do
1847         eval ac_val=\$$ac_var
1848         case $ac_val in
1849         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1850         esac
1851         echo "$ac_var='\''$ac_val'\''"
1852       done | sort
1853       echo
1854     fi
1855
1856     if test -s confdefs.h; then
1857       cat <<\_ASBOX
1858 ## ----------- ##
1859 ## confdefs.h. ##
1860 ## ----------- ##
1861 _ASBOX
1862       echo
1863       cat confdefs.h
1864       echo
1865     fi
1866     test "$ac_signal" != 0 &&
1867       echo "$as_me: caught signal $ac_signal"
1868     echo "$as_me: exit $exit_status"
1869   } >&5
1870   rm -f core *.core core.conftest.* &&
1871     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1872     exit $exit_status
1873 ' 0
1874 for ac_signal in 1 2 13 15; do
1875   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1876 done
1877 ac_signal=0
1878
1879 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1880 rm -f -r conftest* confdefs.h
1881
1882 # Predefined preprocessor variables.
1883
1884 cat >>confdefs.h <<_ACEOF
1885 #define PACKAGE_NAME "$PACKAGE_NAME"
1886 _ACEOF
1887
1888
1889 cat >>confdefs.h <<_ACEOF
1890 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1891 _ACEOF
1892
1893
1894 cat >>confdefs.h <<_ACEOF
1895 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1896 _ACEOF
1897
1898
1899 cat >>confdefs.h <<_ACEOF
1900 #define PACKAGE_STRING "$PACKAGE_STRING"
1901 _ACEOF
1902
1903
1904 cat >>confdefs.h <<_ACEOF
1905 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1906 _ACEOF
1907
1908
1909 # Let the site file select an alternate cache file if it wants to.
1910 # Prefer explicitly selected file to automatically selected ones.
1911 if test -n "$CONFIG_SITE"; then
1912   set x "$CONFIG_SITE"
1913 elif test "x$prefix" != xNONE; then
1914   set x "$prefix/share/config.site" "$prefix/etc/config.site"
1915 else
1916   set x "$ac_default_prefix/share/config.site" \
1917         "$ac_default_prefix/etc/config.site"
1918 fi
1919 shift
1920 for ac_site_file
1921 do
1922   if test -r "$ac_site_file"; then
1923     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1924 echo "$as_me: loading site script $ac_site_file" >&6;}
1925     sed 's/^/| /' "$ac_site_file" >&5
1926     . "$ac_site_file"
1927   fi
1928 done
1929
1930 if test -r "$cache_file"; then
1931   # Some versions of bash will fail to source /dev/null (special
1932   # files actually), so we avoid doing that.
1933   if test -f "$cache_file"; then
1934     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1935 echo "$as_me: loading cache $cache_file" >&6;}
1936     case $cache_file in
1937       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1938       *)                      . "./$cache_file";;
1939     esac
1940   fi
1941 else
1942   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1943 echo "$as_me: creating cache $cache_file" >&6;}
1944   >$cache_file
1945 fi
1946
1947 # Check that the precious variables saved in the cache have kept the same
1948 # value.
1949 ac_cache_corrupted=false
1950 for ac_var in $ac_precious_vars; do
1951   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1952   eval ac_new_set=\$ac_env_${ac_var}_set
1953   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1954   eval ac_new_val=\$ac_env_${ac_var}_value
1955   case $ac_old_set,$ac_new_set in
1956     set,)
1957       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1958 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1959       ac_cache_corrupted=: ;;
1960     ,set)
1961       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1962 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1963       ac_cache_corrupted=: ;;
1964     ,);;
1965     *)
1966       if test "x$ac_old_val" != "x$ac_new_val"; then
1967         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1968 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1969         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1970 echo "$as_me:   former value:  $ac_old_val" >&2;}
1971         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1972 echo "$as_me:   current value: $ac_new_val" >&2;}
1973         ac_cache_corrupted=:
1974       fi;;
1975   esac
1976   # Pass precious variables to config.status.
1977   if test "$ac_new_set" = set; then
1978     case $ac_new_val in
1979     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1980     *) ac_arg=$ac_var=$ac_new_val ;;
1981     esac
1982     case " $ac_configure_args " in
1983       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1984       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1985     esac
1986   fi
1987 done
1988 if $ac_cache_corrupted; then
1989   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1990 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1991   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1992 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1993    { (exit 1); exit 1; }; }
1994 fi
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020 ac_ext=c
2021 ac_cpp='$CPP $CPPFLAGS'
2022 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2023 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2024 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2025
2026
2027 ac_aux_dir=
2028 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2029   if test -f "$ac_dir/install-sh"; then
2030     ac_aux_dir=$ac_dir
2031     ac_install_sh="$ac_aux_dir/install-sh -c"
2032     break
2033   elif test -f "$ac_dir/install.sh"; then
2034     ac_aux_dir=$ac_dir
2035     ac_install_sh="$ac_aux_dir/install.sh -c"
2036     break
2037   elif test -f "$ac_dir/shtool"; then
2038     ac_aux_dir=$ac_dir
2039     ac_install_sh="$ac_aux_dir/shtool install -c"
2040     break
2041   fi
2042 done
2043 if test -z "$ac_aux_dir"; then
2044   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2045 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2046    { (exit 1); exit 1; }; }
2047 fi
2048
2049 # These three variables are undocumented and unsupported,
2050 # and are intended to be withdrawn in a future Autoconf release.
2051 # They can cause serious problems if a builder's source tree is in a directory
2052 # whose full name contains unusual characters.
2053 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2054 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2055 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2056
2057
2058 # Make sure we can run config.sub.
2059 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2060   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2061 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2062    { (exit 1); exit 1; }; }
2063
2064 { echo "$as_me:$LINENO: checking build system type" >&5
2065 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2066 if test "${ac_cv_build+set}" = set; then
2067   echo $ECHO_N "(cached) $ECHO_C" >&6
2068 else
2069   ac_build_alias=$build_alias
2070 test "x$ac_build_alias" = x &&
2071   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2072 test "x$ac_build_alias" = x &&
2073   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2074 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2075    { (exit 1); exit 1; }; }
2076 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2077   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2078 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2079    { (exit 1); exit 1; }; }
2080
2081 fi
2082 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2083 echo "${ECHO_T}$ac_cv_build" >&6; }
2084 case $ac_cv_build in
2085 *-*-*) ;;
2086 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2087 echo "$as_me: error: invalid value of canonical build" >&2;}
2088    { (exit 1); exit 1; }; };;
2089 esac
2090 build=$ac_cv_build
2091 ac_save_IFS=$IFS; IFS='-'
2092 set x $ac_cv_build
2093 shift
2094 build_cpu=$1
2095 build_vendor=$2
2096 shift; shift
2097 # Remember, the first character of IFS is used to create $*,
2098 # except with old shells:
2099 build_os=$*
2100 IFS=$ac_save_IFS
2101 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2102
2103
2104 { echo "$as_me:$LINENO: checking host system type" >&5
2105 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2106 if test "${ac_cv_host+set}" = set; then
2107   echo $ECHO_N "(cached) $ECHO_C" >&6
2108 else
2109   if test "x$host_alias" = x; then
2110   ac_cv_host=$ac_cv_build
2111 else
2112   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2113     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2114 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2115    { (exit 1); exit 1; }; }
2116 fi
2117
2118 fi
2119 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2120 echo "${ECHO_T}$ac_cv_host" >&6; }
2121 case $ac_cv_host in
2122 *-*-*) ;;
2123 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2124 echo "$as_me: error: invalid value of canonical host" >&2;}
2125    { (exit 1); exit 1; }; };;
2126 esac
2127 host=$ac_cv_host
2128 ac_save_IFS=$IFS; IFS='-'
2129 set x $ac_cv_host
2130 shift
2131 host_cpu=$1
2132 host_vendor=$2
2133 shift; shift
2134 # Remember, the first character of IFS is used to create $*,
2135 # except with old shells:
2136 host_os=$*
2137 IFS=$ac_save_IFS
2138 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2139
2140
2141
2142 am__api_version='1.10'
2143
2144 # Find a good install program.  We prefer a C program (faster),
2145 # so one script is as good as another.  But avoid the broken or
2146 # incompatible versions:
2147 # SysV /etc/install, /usr/sbin/install
2148 # SunOS /usr/etc/install
2149 # IRIX /sbin/install
2150 # AIX /bin/install
2151 # AmigaOS /C/install, which installs bootblocks on floppy discs
2152 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2153 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2154 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2155 # OS/2's system install, which has a completely different semantic
2156 # ./install, which can be erroneously created by make from ./install.sh.
2157 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2158 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
2159 if test -z "$INSTALL"; then
2160 if test "${ac_cv_path_install+set}" = set; then
2161   echo $ECHO_N "(cached) $ECHO_C" >&6
2162 else
2163   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2164 for as_dir in $PATH
2165 do
2166   IFS=$as_save_IFS
2167   test -z "$as_dir" && as_dir=.
2168   # Account for people who put trailing slashes in PATH elements.
2169 case $as_dir/ in
2170   ./ | .// | /cC/* | \
2171   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2172   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2173   /usr/ucb/* ) ;;
2174   *)
2175     # OSF1 and SCO ODT 3.0 have their own names for install.
2176     # Don't use installbsd from OSF since it installs stuff as root
2177     # by default.
2178     for ac_prog in ginstall scoinst install; do
2179       for ac_exec_ext in '' $ac_executable_extensions; do
2180         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2181           if test $ac_prog = install &&
2182             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2183             # AIX install.  It has an incompatible calling convention.
2184             :
2185           elif test $ac_prog = install &&
2186             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2187             # program-specific install script used by HP pwplus--don't use.
2188             :
2189           else
2190             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2191             break 3
2192           fi
2193         fi
2194       done
2195     done
2196     ;;
2197 esac
2198 done
2199 IFS=$as_save_IFS
2200
2201
2202 fi
2203   if test "${ac_cv_path_install+set}" = set; then
2204     INSTALL=$ac_cv_path_install
2205   else
2206     # As a last resort, use the slow shell script.  Don't cache a
2207     # value for INSTALL within a source directory, because that will
2208     # break other packages using the cache if that directory is
2209     # removed, or if the value is a relative name.
2210     INSTALL=$ac_install_sh
2211   fi
2212 fi
2213 { echo "$as_me:$LINENO: result: $INSTALL" >&5
2214 echo "${ECHO_T}$INSTALL" >&6; }
2215
2216 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2217 # It thinks the first close brace ends the variable substitution.
2218 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2219
2220 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2221
2222 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2223
2224 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2225 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2226 # Just in case
2227 sleep 1
2228 echo timestamp > conftest.file
2229 # Do `set' in a subshell so we don't clobber the current shell's
2230 # arguments.  Must try -L first in case configure is actually a
2231 # symlink; some systems play weird games with the mod time of symlinks
2232 # (eg FreeBSD returns the mod time of the symlink's containing
2233 # directory).
2234 if (
2235    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2236    if test "$*" = "X"; then
2237       # -L didn't work.
2238       set X `ls -t $srcdir/configure conftest.file`
2239    fi
2240    rm -f conftest.file
2241    if test "$*" != "X $srcdir/configure conftest.file" \
2242       && test "$*" != "X conftest.file $srcdir/configure"; then
2243
2244       # If neither matched, then we have a broken ls.  This can happen
2245       # if, for instance, CONFIG_SHELL is bash and it inherits a
2246       # broken ls alias from the environment.  This has actually
2247       # happened.  Such a system could not be considered "sane".
2248       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
2249 alias in your environment" >&5
2250 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
2251 alias in your environment" >&2;}
2252    { (exit 1); exit 1; }; }
2253    fi
2254
2255    test "$2" = conftest.file
2256    )
2257 then
2258    # Ok.
2259    :
2260 else
2261    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2262 Check your system clock" >&5
2263 echo "$as_me: error: newly created file is older than distributed files!
2264 Check your system clock" >&2;}
2265    { (exit 1); exit 1; }; }
2266 fi
2267 { echo "$as_me:$LINENO: result: yes" >&5
2268 echo "${ECHO_T}yes" >&6; }
2269 test "$program_prefix" != NONE &&
2270   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2271 # Use a double $ so make ignores it.
2272 test "$program_suffix" != NONE &&
2273   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2274 # Double any \ or $.  echo might interpret backslashes.
2275 # By default was `s,x,x', remove it if useless.
2276 cat <<\_ACEOF >conftest.sed
2277 s/[\\$]/&&/g;s/;s,x,x,$//
2278 _ACEOF
2279 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2280 rm -f conftest.sed
2281
2282 # expand $ac_aux_dir to an absolute path
2283 am_aux_dir=`cd $ac_aux_dir && pwd`
2284
2285 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2286 # Use eval to expand $SHELL
2287 if eval "$MISSING --run true"; then
2288   am_missing_run="$MISSING --run "
2289 else
2290   am_missing_run=
2291   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2292 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2293 fi
2294
2295 { echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2296 echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
2297 if test -z "$MKDIR_P"; then
2298   if test "${ac_cv_path_mkdir+set}" = set; then
2299   echo $ECHO_N "(cached) $ECHO_C" >&6
2300 else
2301   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2302 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2303 do
2304   IFS=$as_save_IFS
2305   test -z "$as_dir" && as_dir=.
2306   for ac_prog in mkdir gmkdir; do
2307          for ac_exec_ext in '' $ac_executable_extensions; do
2308            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2309            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2310              'mkdir (GNU coreutils) '* | \
2311              'mkdir (coreutils) '* | \
2312              'mkdir (fileutils) '4.1*)
2313                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2314                break 3;;
2315            esac
2316          done
2317        done
2318 done
2319 IFS=$as_save_IFS
2320
2321 fi
2322
2323   if test "${ac_cv_path_mkdir+set}" = set; then
2324     MKDIR_P="$ac_cv_path_mkdir -p"
2325   else
2326     # As a last resort, use the slow shell script.  Don't cache a
2327     # value for MKDIR_P within a source directory, because that will
2328     # break other packages using the cache if that directory is
2329     # removed, or if the value is a relative name.
2330     test -d ./--version && rmdir ./--version
2331     MKDIR_P="$ac_install_sh -d"
2332   fi
2333 fi
2334 { echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2335 echo "${ECHO_T}$MKDIR_P" >&6; }
2336
2337 mkdir_p="$MKDIR_P"
2338 case $mkdir_p in
2339   [\\/$]* | ?:[\\/]*) ;;
2340   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2341 esac
2342
2343 for ac_prog in gawk mawk nawk awk
2344 do
2345   # Extract the first word of "$ac_prog", so it can be a program name with args.
2346 set dummy $ac_prog; ac_word=$2
2347 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2348 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2349 if test "${ac_cv_prog_AWK+set}" = set; then
2350   echo $ECHO_N "(cached) $ECHO_C" >&6
2351 else
2352   if test -n "$AWK"; then
2353   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2354 else
2355 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2356 for as_dir in $PATH
2357 do
2358   IFS=$as_save_IFS
2359   test -z "$as_dir" && as_dir=.
2360   for ac_exec_ext in '' $ac_executable_extensions; do
2361   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2362     ac_cv_prog_AWK="$ac_prog"
2363     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2364     break 2
2365   fi
2366 done
2367 done
2368 IFS=$as_save_IFS
2369
2370 fi
2371 fi
2372 AWK=$ac_cv_prog_AWK
2373 if test -n "$AWK"; then
2374   { echo "$as_me:$LINENO: result: $AWK" >&5
2375 echo "${ECHO_T}$AWK" >&6; }
2376 else
2377   { echo "$as_me:$LINENO: result: no" >&5
2378 echo "${ECHO_T}no" >&6; }
2379 fi
2380
2381
2382   test -n "$AWK" && break
2383 done
2384
2385 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2386 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2387 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2388 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2389   echo $ECHO_N "(cached) $ECHO_C" >&6
2390 else
2391   cat >conftest.make <<\_ACEOF
2392 SHELL = /bin/sh
2393 all:
2394         @echo '@@@%%%=$(MAKE)=@@@%%%'
2395 _ACEOF
2396 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2397 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2398   *@@@%%%=?*=@@@%%%*)
2399     eval ac_cv_prog_make_${ac_make}_set=yes;;
2400   *)
2401     eval ac_cv_prog_make_${ac_make}_set=no;;
2402 esac
2403 rm -f conftest.make
2404 fi
2405 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2406   { echo "$as_me:$LINENO: result: yes" >&5
2407 echo "${ECHO_T}yes" >&6; }
2408   SET_MAKE=
2409 else
2410   { echo "$as_me:$LINENO: result: no" >&5
2411 echo "${ECHO_T}no" >&6; }
2412   SET_MAKE="MAKE=${MAKE-make}"
2413 fi
2414
2415 rm -rf .tst 2>/dev/null
2416 mkdir .tst 2>/dev/null
2417 if test -d .tst; then
2418   am__leading_dot=.
2419 else
2420   am__leading_dot=_
2421 fi
2422 rmdir .tst 2>/dev/null
2423
2424 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2425   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2426   # is not polluted with repeated "-I."
2427   am__isrc=' -I$(srcdir)'
2428   # test to see if srcdir already configured
2429   if test -f $srcdir/config.status; then
2430     { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2431 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2432    { (exit 1); exit 1; }; }
2433   fi
2434 fi
2435
2436 # test whether we have cygpath
2437 if test -z "$CYGPATH_W"; then
2438   if (cygpath --version) >/dev/null 2>/dev/null; then
2439     CYGPATH_W='cygpath -w'
2440   else
2441     CYGPATH_W=echo
2442   fi
2443 fi
2444
2445
2446 # Define the identity of the package.
2447  PACKAGE='nfs-utils'
2448  VERSION='1.1.3'
2449
2450
2451 cat >>confdefs.h <<_ACEOF
2452 #define PACKAGE "$PACKAGE"
2453 _ACEOF
2454
2455
2456 cat >>confdefs.h <<_ACEOF
2457 #define VERSION "$VERSION"
2458 _ACEOF
2459
2460 # Some tools Automake needs.
2461
2462 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2463
2464
2465 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2466
2467
2468 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2469
2470
2471 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2472
2473
2474 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2475
2476 install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2477
2478 # Installed binaries are usually stripped using `strip' when the user
2479 # run `make install-strip'.  However `strip' might not be the right
2480 # tool to use in cross-compilation environments, therefore Automake
2481 # will honor the `STRIP' environment variable to overrule this program.
2482 if test "$cross_compiling" != no; then
2483   if test -n "$ac_tool_prefix"; then
2484   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2485 set dummy ${ac_tool_prefix}strip; ac_word=$2
2486 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2487 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2488 if test "${ac_cv_prog_STRIP+set}" = set; then
2489   echo $ECHO_N "(cached) $ECHO_C" >&6
2490 else
2491   if test -n "$STRIP"; then
2492   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2493 else
2494 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2495 for as_dir in $PATH
2496 do
2497   IFS=$as_save_IFS
2498   test -z "$as_dir" && as_dir=.
2499   for ac_exec_ext in '' $ac_executable_extensions; do
2500   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2501     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2502     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2503     break 2
2504   fi
2505 done
2506 done
2507 IFS=$as_save_IFS
2508
2509 fi
2510 fi
2511 STRIP=$ac_cv_prog_STRIP
2512 if test -n "$STRIP"; then
2513   { echo "$as_me:$LINENO: result: $STRIP" >&5
2514 echo "${ECHO_T}$STRIP" >&6; }
2515 else
2516   { echo "$as_me:$LINENO: result: no" >&5
2517 echo "${ECHO_T}no" >&6; }
2518 fi
2519
2520
2521 fi
2522 if test -z "$ac_cv_prog_STRIP"; then
2523   ac_ct_STRIP=$STRIP
2524   # Extract the first word of "strip", so it can be a program name with args.
2525 set dummy strip; ac_word=$2
2526 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2527 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2528 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2529   echo $ECHO_N "(cached) $ECHO_C" >&6
2530 else
2531   if test -n "$ac_ct_STRIP"; then
2532   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2533 else
2534 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2535 for as_dir in $PATH
2536 do
2537   IFS=$as_save_IFS
2538   test -z "$as_dir" && as_dir=.
2539   for ac_exec_ext in '' $ac_executable_extensions; do
2540   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2541     ac_cv_prog_ac_ct_STRIP="strip"
2542     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2543     break 2
2544   fi
2545 done
2546 done
2547 IFS=$as_save_IFS
2548
2549 fi
2550 fi
2551 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2552 if test -n "$ac_ct_STRIP"; then
2553   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2554 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2555 else
2556   { echo "$as_me:$LINENO: result: no" >&5
2557 echo "${ECHO_T}no" >&6; }
2558 fi
2559
2560   if test "x$ac_ct_STRIP" = x; then
2561     STRIP=":"
2562   else
2563     case $cross_compiling:$ac_tool_warned in
2564 yes:)
2565 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2566 whose name does not start with the host triplet.  If you think this
2567 configuration is useful to you, please write to autoconf@gnu.org." >&5
2568 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2569 whose name does not start with the host triplet.  If you think this
2570 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2571 ac_tool_warned=yes ;;
2572 esac
2573     STRIP=$ac_ct_STRIP
2574   fi
2575 else
2576   STRIP="$ac_cv_prog_STRIP"
2577 fi
2578
2579 fi
2580 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2581
2582 # We need awk for the "check" target.  The system "awk" is bad on
2583 # some platforms.
2584 # Always define AMTAR for backward compatibility.
2585
2586 AMTAR=${AMTAR-"${am_missing_run}tar"}
2587
2588 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2589
2590
2591
2592
2593
2594
2595
2596 { echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
2597 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6; }
2598     # Check whether --enable-maintainer-mode was given.
2599 if test "${enable_maintainer_mode+set}" = set; then
2600   enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2601 else
2602   USE_MAINTAINER_MODE=no
2603 fi
2604
2605   { echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
2606 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6; }
2607    if test $USE_MAINTAINER_MODE = yes; then
2608   MAINTAINER_MODE_TRUE=
2609   MAINTAINER_MODE_FALSE='#'
2610 else
2611   MAINTAINER_MODE_TRUE='#'
2612   MAINTAINER_MODE_FALSE=
2613 fi
2614
2615   MAINT=$MAINTAINER_MODE_TRUE
2616
2617
2618
2619
2620 # Check whether --with-release was given.
2621 if test "${with_release+set}" = set; then
2622   withval=$with_release; RELEASE=$withval
2623 else
2624   RELEASE=1
2625 fi
2626
2627
2628
2629 # Check whether --with-statedir was given.
2630 if test "${with_statedir+set}" = set; then
2631   withval=$with_statedir; statedir=$withval
2632 else
2633   statedir=/var/lib/nfs
2634 fi
2635
2636
2637
2638 # Check whether --with-statduser was given.
2639 if test "${with_statduser+set}" = set; then
2640   withval=$with_statduser; statduser=$withval
2641 else
2642   if test "x$cross_compiling" = "xno"; then
2643                 if grep -s '^rpcuser:' /etc/passwd > /dev/null; then
2644                         statduser=rpcuser
2645                 else
2646                         statduser=nobody
2647                 fi
2648         else
2649                 statduser=nobody
2650         fi
2651 fi
2652
2653
2654
2655 # Check whether --with-start-statd was given.
2656 if test "${with_start_statd+set}" = set; then
2657   withval=$with_start_statd; startstatd=$withval
2658 else
2659   startstatd=/usr/sbin/start-statd
2660
2661 fi
2662
2663
2664
2665 cat >>confdefs.h <<_ACEOF
2666 #define START_STATD "$startstatd"
2667 _ACEOF
2668
2669 # Check whether --enable-nfsv3 was given.
2670 if test "${enable_nfsv3+set}" = set; then
2671   enableval=$enable_nfsv3; enable_nfsv3=$enableval
2672 else
2673   enable_nfsv3=yes
2674 fi
2675
2676         if test "$enable_nfsv3" = yes; then
2677
2678 cat >>confdefs.h <<\_ACEOF
2679 #define NFS3_SUPPORTED 1
2680 _ACEOF
2681
2682         else
2683                 enable_nfsv3=
2684         fi
2685
2686 # Check whether --enable-nfsv4 was given.
2687 if test "${enable_nfsv4+set}" = set; then
2688   enableval=$enable_nfsv4; enable_nfsv4=$enableval
2689 else
2690   enable_nfsv4=yes
2691 fi
2692
2693         if test "$enable_nfsv4" = yes; then
2694
2695 cat >>confdefs.h <<\_ACEOF
2696 #define NFS4_SUPPORTED 1
2697 _ACEOF
2698
2699                 IDMAPD=idmapd
2700         else
2701                 enable_nfsv4=
2702                 IDMAPD=
2703         fi
2704
2705
2706          if test "$enable_nfsv4" = "yes"; then
2707   CONFIG_NFSV4_TRUE=
2708   CONFIG_NFSV4_FALSE='#'
2709 else
2710   CONFIG_NFSV4_TRUE='#'
2711   CONFIG_NFSV4_FALSE=
2712 fi
2713
2714 # Check whether --enable-gss was given.
2715 if test "${enable_gss+set}" = set; then
2716   enableval=$enable_gss; enable_gss=$enableval
2717 else
2718   enable_gss=yes
2719 fi
2720
2721         if test "$enable_gss" = yes; then
2722
2723 cat >>confdefs.h <<\_ACEOF
2724 #define GSS_SUPPORTED 1
2725 _ACEOF
2726
2727                 GSSD=gssd
2728                 SVCGSSD=svcgssd
2729         else
2730                 enable_gss=
2731                 GSSD=
2732                 SVCGSSD=
2733         fi
2734
2735
2736
2737          if test "$enable_gss" = "yes"; then
2738   CONFIG_GSS_TRUE=
2739   CONFIG_GSS_FALSE='#'
2740 else
2741   CONFIG_GSS_TRUE='#'
2742   CONFIG_GSS_FALSE=
2743 fi
2744
2745 # Check whether --enable-kprefix was given.
2746 if test "${enable_kprefix+set}" = set; then
2747   enableval=$enable_kprefix; test "$enableval" = "yes" && kprefix=k
2748 else
2749   kprefix=
2750 fi
2751
2752
2753 # Check whether --enable-secure-statd was given.
2754 if test "${enable_secure_statd+set}" = set; then
2755   enableval=$enable_secure_statd; test "$enableval" = "yes" && secure_statd=yes
2756 else
2757   secure_statd=yes
2758 fi
2759
2760         if test "$secure_statd" = yes; then
2761
2762 cat >>confdefs.h <<\_ACEOF
2763 #define RESTRICTED_STATD 1
2764 _ACEOF
2765
2766         fi
2767
2768
2769 # Check whether --with-rpcgen was given.
2770 if test "${with_rpcgen+set}" = set; then
2771   withval=$with_rpcgen; rpcgen_path=$withval
2772 else
2773   rpcgen_path=yes
2774 fi
2775
2776         RPCGEN_PATH=
2777         if test "$rpcgen_path" == "yes"; then
2778             for p in /usr/local/bin/rpcgen /usr/bin/rpcgen /bin/rpcgen
2779             do if test -f $p ; then RPCGEN_PATH=$p ; break; fi ; done
2780         elif test "$rpcgen_path" != "internal"; then
2781             RPCGEN_PATH=$rpcgen_path
2782         fi
2783
2784          if test "$RPCGEN_PATH" == ""; then
2785   CONFIG_RPCGEN_TRUE=
2786   CONFIG_RPCGEN_FALSE='#'
2787 else
2788   CONFIG_RPCGEN_TRUE='#'
2789   CONFIG_RPCGEN_FALSE=
2790 fi
2791
2792 # Check whether --enable-uuid was given.
2793 if test "${enable_uuid+set}" = set; then
2794   enableval=$enable_uuid; if test "$enableval" = "yes" ; then choose_blkid=yes; else choose_blkid=no; fi
2795 else
2796   choose_blkid=default
2797 fi
2798
2799 # Check whether --enable-mount was given.
2800 if test "${enable_mount+set}" = set; then
2801   enableval=$enable_mount; enable_mount=$enableval
2802 else
2803   enable_mount=yes
2804 fi
2805
2806          if test "$enable_mount" = "yes"; then
2807   CONFIG_MOUNT_TRUE=
2808   CONFIG_MOUNT_FALSE='#'
2809 else
2810   CONFIG_MOUNT_TRUE='#'
2811   CONFIG_MOUNT_FALSE=
2812 fi
2813
2814 # Check whether --enable-ipv6 was given.
2815 if test "${enable_ipv6+set}" = set; then
2816   enableval=$enable_ipv6; enable_ipv6=$enableval
2817 else
2818   enable_ipv6=no
2819 fi
2820
2821         if test "$enable_ipv6" = yes; then
2822
2823 cat >>confdefs.h <<\_ACEOF
2824 #define IPV6_SUPPORTED 1
2825 _ACEOF
2826
2827         else
2828                 enable_ipv6=
2829         fi
2830
2831          if test "$enable_ipv6" = "yes"; then
2832   CONFIG_IPV6_TRUE=
2833   CONFIG_IPV6_FALSE='#'
2834 else
2835   CONFIG_IPV6_TRUE='#'
2836   CONFIG_IPV6_FALSE=
2837 fi
2838
2839
2840 # Check whether user wants TCP wrappers support
2841 DEPDIR="${am__leading_dot}deps"
2842
2843 ac_config_commands="$ac_config_commands depfiles"
2844
2845
2846 am_make=${MAKE-make}
2847 cat > confinc << 'END'
2848 am__doit:
2849         @echo done
2850 .PHONY: am__doit
2851 END
2852 # If we don't find an include directive, just comment out the code.
2853 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2854 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
2855 am__include="#"
2856 am__quote=
2857 _am_result=none
2858 # First try GNU make style include.
2859 echo "include confinc" > confmf
2860 # We grep out `Entering directory' and `Leaving directory'
2861 # messages which can occur if `w' ends up in MAKEFLAGS.
2862 # In particular we don't look at `^make:' because GNU make might
2863 # be invoked under some other name (usually "gmake"), in which
2864 # case it prints its new name instead of `make'.
2865 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2866    am__include=include
2867    am__quote=
2868    _am_result=GNU
2869 fi
2870 # Now try BSD make style include.
2871 if test "$am__include" = "#"; then
2872    echo '.include "confinc"' > confmf
2873    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2874       am__include=.include
2875       am__quote="\""
2876       _am_result=BSD
2877    fi
2878 fi
2879
2880
2881 { echo "$as_me:$LINENO: result: $_am_result" >&5
2882 echo "${ECHO_T}$_am_result" >&6; }
2883 rm -f confinc confmf
2884
2885 # Check whether --enable-dependency-tracking was given.
2886 if test "${enable_dependency_tracking+set}" = set; then
2887   enableval=$enable_dependency_tracking;
2888 fi
2889
2890 if test "x$enable_dependency_tracking" != xno; then
2891   am_depcomp="$ac_aux_dir/depcomp"
2892   AMDEPBACKSLASH='\'
2893 fi
2894  if test "x$enable_dependency_tracking" != xno; then
2895   AMDEP_TRUE=
2896   AMDEP_FALSE='#'
2897 else
2898   AMDEP_TRUE='#'
2899   AMDEP_FALSE=
2900 fi
2901
2902
2903 ac_ext=c
2904 ac_cpp='$CPP $CPPFLAGS'
2905 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2906 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2907 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2908 if test -n "$ac_tool_prefix"; then
2909   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2910 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2911 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2912 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2913 if test "${ac_cv_prog_CC+set}" = set; then
2914   echo $ECHO_N "(cached) $ECHO_C" >&6
2915 else
2916   if test -n "$CC"; then
2917   ac_cv_prog_CC="$CC" # Let the user override the test.
2918 else
2919 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2920 for as_dir in $PATH
2921 do
2922   IFS=$as_save_IFS
2923   test -z "$as_dir" && as_dir=.
2924   for ac_exec_ext in '' $ac_executable_extensions; do
2925   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2926     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2927     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2928     break 2
2929   fi
2930 done
2931 done
2932 IFS=$as_save_IFS
2933
2934 fi
2935 fi
2936 CC=$ac_cv_prog_CC
2937 if test -n "$CC"; then
2938   { echo "$as_me:$LINENO: result: $CC" >&5
2939 echo "${ECHO_T}$CC" >&6; }
2940 else
2941   { echo "$as_me:$LINENO: result: no" >&5
2942 echo "${ECHO_T}no" >&6; }
2943 fi
2944
2945
2946 fi
2947 if test -z "$ac_cv_prog_CC"; then
2948   ac_ct_CC=$CC
2949   # Extract the first word of "gcc", so it can be a program name with args.
2950 set dummy gcc; ac_word=$2
2951 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2952 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2953 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2954   echo $ECHO_N "(cached) $ECHO_C" >&6
2955 else
2956   if test -n "$ac_ct_CC"; then
2957   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2958 else
2959 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2960 for as_dir in $PATH
2961 do
2962   IFS=$as_save_IFS
2963   test -z "$as_dir" && as_dir=.
2964   for ac_exec_ext in '' $ac_executable_extensions; do
2965   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2966     ac_cv_prog_ac_ct_CC="gcc"
2967     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2968     break 2
2969   fi
2970 done
2971 done
2972 IFS=$as_save_IFS
2973
2974 fi
2975 fi
2976 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2977 if test -n "$ac_ct_CC"; then
2978   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2979 echo "${ECHO_T}$ac_ct_CC" >&6; }
2980 else
2981   { echo "$as_me:$LINENO: result: no" >&5
2982 echo "${ECHO_T}no" >&6; }
2983 fi
2984
2985   if test "x$ac_ct_CC" = x; then
2986     CC=""
2987   else
2988     case $cross_compiling:$ac_tool_warned in
2989 yes:)
2990 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2991 whose name does not start with the host triplet.  If you think this
2992 configuration is useful to you, please write to autoconf@gnu.org." >&5
2993 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2994 whose name does not start with the host triplet.  If you think this
2995 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2996 ac_tool_warned=yes ;;
2997 esac
2998     CC=$ac_ct_CC
2999   fi
3000 else
3001   CC="$ac_cv_prog_CC"
3002 fi
3003
3004 if test -z "$CC"; then
3005           if test -n "$ac_tool_prefix"; then
3006     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3007 set dummy ${ac_tool_prefix}cc; ac_word=$2
3008 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3009 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3010 if test "${ac_cv_prog_CC+set}" = set; then
3011   echo $ECHO_N "(cached) $ECHO_C" >&6
3012 else
3013   if test -n "$CC"; then
3014   ac_cv_prog_CC="$CC" # Let the user override the test.
3015 else
3016 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3017 for as_dir in $PATH
3018 do
3019   IFS=$as_save_IFS
3020   test -z "$as_dir" && as_dir=.
3021   for ac_exec_ext in '' $ac_executable_extensions; do
3022   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3023     ac_cv_prog_CC="${ac_tool_prefix}cc"
3024     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3025     break 2
3026   fi
3027 done
3028 done
3029 IFS=$as_save_IFS
3030
3031 fi
3032 fi
3033 CC=$ac_cv_prog_CC
3034 if test -n "$CC"; then
3035   { echo "$as_me:$LINENO: result: $CC" >&5
3036 echo "${ECHO_T}$CC" >&6; }
3037 else
3038   { echo "$as_me:$LINENO: result: no" >&5
3039 echo "${ECHO_T}no" >&6; }
3040 fi
3041
3042
3043   fi
3044 fi
3045 if test -z "$CC"; then
3046   # Extract the first word of "cc", so it can be a program name with args.
3047 set dummy cc; ac_word=$2
3048 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3049 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3050 if test "${ac_cv_prog_CC+set}" = set; then
3051   echo $ECHO_N "(cached) $ECHO_C" >&6
3052 else
3053   if test -n "$CC"; then
3054   ac_cv_prog_CC="$CC" # Let the user override the test.
3055 else
3056   ac_prog_rejected=no
3057 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3058 for as_dir in $PATH
3059 do
3060   IFS=$as_save_IFS
3061   test -z "$as_dir" && as_dir=.
3062   for ac_exec_ext in '' $ac_executable_extensions; do
3063   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3064     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3065        ac_prog_rejected=yes
3066        continue
3067      fi
3068     ac_cv_prog_CC="cc"
3069     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3070     break 2
3071   fi
3072 done
3073 done
3074 IFS=$as_save_IFS
3075
3076 if test $ac_prog_rejected = yes; then
3077   # We found a bogon in the path, so make sure we never use it.
3078   set dummy $ac_cv_prog_CC
3079   shift
3080   if test $# != 0; then
3081     # We chose a different compiler from the bogus one.
3082     # However, it has the same basename, so the bogon will be chosen
3083     # first if we set CC to just the basename; use the full file name.
3084     shift
3085     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3086   fi
3087 fi
3088 fi
3089 fi
3090 CC=$ac_cv_prog_CC
3091 if test -n "$CC"; then
3092   { echo "$as_me:$LINENO: result: $CC" >&5
3093 echo "${ECHO_T}$CC" >&6; }
3094 else
3095   { echo "$as_me:$LINENO: result: no" >&5
3096 echo "${ECHO_T}no" >&6; }
3097 fi
3098
3099
3100 fi
3101 if test -z "$CC"; then
3102   if test -n "$ac_tool_prefix"; then
3103   for ac_prog in cl.exe
3104   do
3105     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3106 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3107 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3108 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3109 if test "${ac_cv_prog_CC+set}" = set; then
3110   echo $ECHO_N "(cached) $ECHO_C" >&6
3111 else
3112   if test -n "$CC"; then
3113   ac_cv_prog_CC="$CC" # Let the user override the test.
3114 else
3115 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3116 for as_dir in $PATH
3117 do
3118   IFS=$as_save_IFS
3119   test -z "$as_dir" && as_dir=.
3120   for ac_exec_ext in '' $ac_executable_extensions; do
3121   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3122     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3123     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3124     break 2
3125   fi
3126 done
3127 done
3128 IFS=$as_save_IFS
3129
3130 fi
3131 fi
3132 CC=$ac_cv_prog_CC
3133 if test -n "$CC"; then
3134   { echo "$as_me:$LINENO: result: $CC" >&5
3135 echo "${ECHO_T}$CC" >&6; }
3136 else
3137   { echo "$as_me:$LINENO: result: no" >&5
3138 echo "${ECHO_T}no" >&6; }
3139 fi
3140
3141
3142     test -n "$CC" && break
3143   done
3144 fi
3145 if test -z "$CC"; then
3146   ac_ct_CC=$CC
3147   for ac_prog in cl.exe
3148 do
3149   # Extract the first word of "$ac_prog", so it can be a program name with args.
3150 set dummy $ac_prog; ac_word=$2
3151 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3152 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3153 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3154   echo $ECHO_N "(cached) $ECHO_C" >&6
3155 else
3156   if test -n "$ac_ct_CC"; then
3157   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3158 else
3159 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3160 for as_dir in $PATH
3161 do
3162   IFS=$as_save_IFS
3163   test -z "$as_dir" && as_dir=.
3164   for ac_exec_ext in '' $ac_executable_extensions; do
3165   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3166     ac_cv_prog_ac_ct_CC="$ac_prog"
3167     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3168     break 2
3169   fi
3170 done
3171 done
3172 IFS=$as_save_IFS
3173
3174 fi
3175 fi
3176 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3177 if test -n "$ac_ct_CC"; then
3178   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3179 echo "${ECHO_T}$ac_ct_CC" >&6; }
3180 else
3181   { echo "$as_me:$LINENO: result: no" >&5
3182 echo "${ECHO_T}no" >&6; }
3183 fi
3184
3185
3186   test -n "$ac_ct_CC" && break
3187 done
3188
3189   if test "x$ac_ct_CC" = x; then
3190     CC=""
3191   else
3192     case $cross_compiling:$ac_tool_warned in
3193 yes:)
3194 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3195 whose name does not start with the host triplet.  If you think this
3196 configuration is useful to you, please write to autoconf@gnu.org." >&5
3197 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3198 whose name does not start with the host triplet.  If you think this
3199 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3200 ac_tool_warned=yes ;;
3201 esac
3202     CC=$ac_ct_CC
3203   fi
3204 fi
3205
3206 fi
3207
3208
3209 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3210 See \`config.log' for more details." >&5
3211 echo "$as_me: error: no acceptable C compiler found in \$PATH
3212 See \`config.log' for more details." >&2;}
3213    { (exit 1); exit 1; }; }
3214
3215 # Provide some information about the compiler.
3216 echo "$as_me:$LINENO: checking for C compiler version" >&5
3217 ac_compiler=`set X $ac_compile; echo $2`
3218 { (ac_try="$ac_compiler --version >&5"
3219 case "(($ac_try" in
3220   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3221   *) ac_try_echo=$ac_try;;
3222 esac
3223 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3224   (eval "$ac_compiler --version >&5") 2>&5
3225   ac_status=$?
3226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3227   (exit $ac_status); }
3228 { (ac_try="$ac_compiler -v >&5"
3229 case "(($ac_try" in
3230   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3231   *) ac_try_echo=$ac_try;;
3232 esac
3233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3234   (eval "$ac_compiler -v >&5") 2>&5
3235   ac_status=$?
3236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3237   (exit $ac_status); }
3238 { (ac_try="$ac_compiler -V >&5"
3239 case "(($ac_try" in
3240   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3241   *) ac_try_echo=$ac_try;;
3242 esac
3243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3244   (eval "$ac_compiler -V >&5") 2>&5
3245   ac_status=$?
3246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3247   (exit $ac_status); }
3248
3249 cat >conftest.$ac_ext <<_ACEOF
3250 /* confdefs.h.  */
3251 _ACEOF
3252 cat confdefs.h >>conftest.$ac_ext
3253 cat >>conftest.$ac_ext <<_ACEOF
3254 /* end confdefs.h.  */
3255
3256 int
3257 main ()
3258 {
3259
3260   ;
3261   return 0;
3262 }
3263 _ACEOF
3264 ac_clean_files_save=$ac_clean_files
3265 ac_clean_files="$ac_clean_files a.out a.exe b.out"
3266 # Try to create an executable without -o first, disregard a.out.
3267 # It will help us diagnose broken compilers, and finding out an intuition
3268 # of exeext.
3269 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3270 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
3271 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3272 #
3273 # List of possible output files, starting from the most likely.
3274 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
3275 # only as a last resort.  b.out is created by i960 compilers.
3276 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
3277 #
3278 # The IRIX 6 linker writes into existing files which may not be
3279 # executable, retaining their permissions.  Remove them first so a
3280 # subsequent execution test works.
3281 ac_rmfiles=
3282 for ac_file in $ac_files
3283 do
3284   case $ac_file in
3285     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3286     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3287   esac
3288 done
3289 rm -f $ac_rmfiles
3290
3291 if { (ac_try="$ac_link_default"
3292 case "(($ac_try" in
3293   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3294   *) ac_try_echo=$ac_try;;
3295 esac
3296 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3297   (eval "$ac_link_default") 2>&5
3298   ac_status=$?
3299   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3300   (exit $ac_status); }; then
3301   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3302 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3303 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3304 # so that the user can short-circuit this test for compilers unknown to
3305 # Autoconf.
3306 for ac_file in $ac_files ''
3307 do
3308   test -f "$ac_file" || continue
3309   case $ac_file in
3310     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
3311         ;;
3312     [ab].out )
3313         # We found the default executable, but exeext='' is most
3314         # certainly right.
3315         break;;
3316     *.* )
3317         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3318         then :; else
3319            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3320         fi
3321         # We set ac_cv_exeext here because the later test for it is not
3322         # safe: cross compilers may not add the suffix if given an `-o'
3323         # argument, so we may need to know it at that point already.
3324         # Even if this section looks crufty: it has the advantage of
3325         # actually working.
3326         break;;
3327     * )
3328         break;;
3329   esac
3330 done
3331 test "$ac_cv_exeext" = no && ac_cv_exeext=
3332
3333 else
3334   ac_file=''
3335 fi
3336
3337 { echo "$as_me:$LINENO: result: $ac_file" >&5
3338 echo "${ECHO_T}$ac_file" >&6; }
3339 if test -z "$ac_file"; then
3340   echo "$as_me: failed program was:" >&5
3341 sed 's/^/| /' conftest.$ac_ext >&5
3342
3343 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3344 See \`config.log' for more details." >&5
3345 echo "$as_me: error: C compiler cannot create executables
3346 See \`config.log' for more details." >&2;}
3347    { (exit 77); exit 77; }; }
3348 fi
3349
3350 ac_exeext=$ac_cv_exeext
3351
3352 # Check that the compiler produces executables we can run.  If not, either
3353 # the compiler is broken, or we cross compile.
3354 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3355 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3356 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3357 # If not cross compiling, check that we can run a simple program.
3358 if test "$cross_compiling" != yes; then
3359   if { ac_try='./$ac_file'
3360   { (case "(($ac_try" in
3361   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3362   *) ac_try_echo=$ac_try;;
3363 esac
3364 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3365   (eval "$ac_try") 2>&5
3366   ac_status=$?
3367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3368   (exit $ac_status); }; }; then
3369     cross_compiling=no
3370   else
3371     if test "$cross_compiling" = maybe; then
3372         cross_compiling=yes
3373     else
3374         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3375 If you meant to cross compile, use \`--host'.
3376 See \`config.log' for more details." >&5
3377 echo "$as_me: error: cannot run C compiled programs.
3378 If you meant to cross compile, use \`--host'.
3379 See \`config.log' for more details." >&2;}
3380    { (exit 1); exit 1; }; }
3381     fi
3382   fi
3383 fi
3384 { echo "$as_me:$LINENO: result: yes" >&5
3385 echo "${ECHO_T}yes" >&6; }
3386
3387 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3388 ac_clean_files=$ac_clean_files_save
3389 # Check that the compiler produces executables we can run.  If not, either
3390 # the compiler is broken, or we cross compile.
3391 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3392 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3393 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
3394 echo "${ECHO_T}$cross_compiling" >&6; }
3395
3396 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
3397 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3398 if { (ac_try="$ac_link"
3399 case "(($ac_try" in
3400   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3401   *) ac_try_echo=$ac_try;;
3402 esac
3403 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3404   (eval "$ac_link") 2>&5
3405   ac_status=$?
3406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3407   (exit $ac_status); }; then
3408   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3409 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3410 # work properly (i.e., refer to `conftest.exe'), while it won't with
3411 # `rm'.
3412 for ac_file in conftest.exe conftest conftest.*; do
3413   test -f "$ac_file" || continue
3414   case $ac_file in
3415     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3416     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3417           break;;
3418     * ) break;;
3419   esac
3420 done
3421 else
3422   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3423 See \`config.log' for more details." >&5
3424 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3425 See \`config.log' for more details." >&2;}
3426    { (exit 1); exit 1; }; }
3427 fi
3428
3429 rm -f conftest$ac_cv_exeext
3430 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3431 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3432
3433 rm -f conftest.$ac_ext
3434 EXEEXT=$ac_cv_exeext
3435 ac_exeext=$EXEEXT
3436 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3437 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3438 if test "${ac_cv_objext+set}" = set; then
3439   echo $ECHO_N "(cached) $ECHO_C" >&6
3440 else
3441   cat >conftest.$ac_ext <<_ACEOF
3442 /* confdefs.h.  */
3443 _ACEOF
3444 cat confdefs.h >>conftest.$ac_ext
3445 cat >>conftest.$ac_ext <<_ACEOF
3446 /* end confdefs.h.  */
3447
3448 int
3449 main ()
3450 {
3451
3452   ;
3453   return 0;
3454 }
3455 _ACEOF
3456 rm -f conftest.o conftest.obj
3457 if { (ac_try="$ac_compile"
3458 case "(($ac_try" in
3459   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3460   *) ac_try_echo=$ac_try;;
3461 esac
3462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3463   (eval "$ac_compile") 2>&5
3464   ac_status=$?
3465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3466   (exit $ac_status); }; then
3467   for ac_file in conftest.o conftest.obj conftest.*; do
3468   test -f "$ac_file" || continue;
3469   case $ac_file in
3470     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3471     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3472        break;;
3473   esac
3474 done
3475 else
3476   echo "$as_me: failed program was:" >&5
3477 sed 's/^/| /' conftest.$ac_ext >&5
3478
3479 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3480 See \`config.log' for more details." >&5
3481 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3482 See \`config.log' for more details." >&2;}
3483    { (exit 1); exit 1; }; }
3484 fi
3485
3486 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3487 fi
3488 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3489 echo "${ECHO_T}$ac_cv_objext" >&6; }
3490 OBJEXT=$ac_cv_objext
3491 ac_objext=$OBJEXT
3492 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3493 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3494 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3495   echo $ECHO_N "(cached) $ECHO_C" >&6
3496 else
3497   cat >conftest.$ac_ext <<_ACEOF
3498 /* confdefs.h.  */
3499 _ACEOF
3500 cat confdefs.h >>conftest.$ac_ext
3501 cat >>conftest.$ac_ext <<_ACEOF
3502 /* end confdefs.h.  */
3503
3504 int
3505 main ()
3506 {
3507 #ifndef __GNUC__
3508        choke me
3509 #endif
3510
3511   ;
3512   return 0;
3513 }
3514 _ACEOF
3515 rm -f conftest.$ac_objext
3516 if { (ac_try="$ac_compile"
3517 case "(($ac_try" in
3518   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3519   *) ac_try_echo=$ac_try;;
3520 esac
3521 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3522   (eval "$ac_compile") 2>conftest.er1
3523   ac_status=$?
3524   grep -v '^ *+' conftest.er1 >conftest.err
3525   rm -f conftest.er1
3526   cat conftest.err >&5
3527   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3528   (exit $ac_status); } && {
3529          test -z "$ac_c_werror_flag" ||
3530          test ! -s conftest.err
3531        } && test -s conftest.$ac_objext; then
3532   ac_compiler_gnu=yes
3533 else
3534   echo "$as_me: failed program was:" >&5
3535 sed 's/^/| /' conftest.$ac_ext >&5
3536
3537         ac_compiler_gnu=no
3538 fi
3539
3540 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3541 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3542
3543 fi
3544 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3545 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3546 GCC=`test $ac_compiler_gnu = yes && echo yes`
3547 ac_test_CFLAGS=${CFLAGS+set}
3548 ac_save_CFLAGS=$CFLAGS
3549 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3550 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3551 if test "${ac_cv_prog_cc_g+set}" = set; then
3552   echo $ECHO_N "(cached) $ECHO_C" >&6
3553 else
3554   ac_save_c_werror_flag=$ac_c_werror_flag
3555    ac_c_werror_flag=yes
3556    ac_cv_prog_cc_g=no
3557    CFLAGS="-g"
3558    cat >conftest.$ac_ext <<_ACEOF
3559 /* confdefs.h.  */
3560 _ACEOF
3561 cat confdefs.h >>conftest.$ac_ext
3562 cat >>conftest.$ac_ext <<_ACEOF
3563 /* end confdefs.h.  */
3564
3565 int
3566 main ()
3567 {
3568
3569   ;
3570   return 0;
3571 }
3572 _ACEOF
3573 rm -f conftest.$ac_objext
3574 if { (ac_try="$ac_compile"
3575 case "(($ac_try" in
3576   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3577   *) ac_try_echo=$ac_try;;
3578 esac
3579 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3580   (eval "$ac_compile") 2>conftest.er1
3581   ac_status=$?
3582   grep -v '^ *+' conftest.er1 >conftest.err
3583   rm -f conftest.er1
3584   cat conftest.err >&5
3585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3586   (exit $ac_status); } && {
3587          test -z "$ac_c_werror_flag" ||
3588          test ! -s conftest.err
3589        } && test -s conftest.$ac_objext; then
3590   ac_cv_prog_cc_g=yes
3591 else
3592   echo "$as_me: failed program was:" >&5
3593 sed 's/^/| /' conftest.$ac_ext >&5
3594
3595         CFLAGS=""
3596       cat >conftest.$ac_ext <<_ACEOF
3597 /* confdefs.h.  */
3598 _ACEOF
3599 cat confdefs.h >>conftest.$ac_ext
3600 cat >>conftest.$ac_ext <<_ACEOF
3601 /* end confdefs.h.  */
3602
3603 int
3604 main ()
3605 {
3606
3607   ;
3608   return 0;
3609 }
3610 _ACEOF
3611 rm -f conftest.$ac_objext
3612 if { (ac_try="$ac_compile"
3613 case "(($ac_try" in
3614   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3615   *) ac_try_echo=$ac_try;;
3616 esac
3617 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3618   (eval "$ac_compile") 2>conftest.er1
3619   ac_status=$?
3620   grep -v '^ *+' conftest.er1 >conftest.err
3621   rm -f conftest.er1
3622   cat conftest.err >&5
3623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3624   (exit $ac_status); } && {
3625          test -z "$ac_c_werror_flag" ||
3626          test ! -s conftest.err
3627        } && test -s conftest.$ac_objext; then
3628   :
3629 else
3630   echo "$as_me: failed program was:" >&5
3631 sed 's/^/| /' conftest.$ac_ext >&5
3632
3633         ac_c_werror_flag=$ac_save_c_werror_flag
3634          CFLAGS="-g"
3635          cat >conftest.$ac_ext <<_ACEOF
3636 /* confdefs.h.  */
3637 _ACEOF
3638 cat confdefs.h >>conftest.$ac_ext
3639 cat >>conftest.$ac_ext <<_ACEOF
3640 /* end confdefs.h.  */
3641
3642 int
3643 main ()
3644 {
3645
3646   ;
3647   return 0;
3648 }
3649 _ACEOF
3650 rm -f conftest.$ac_objext
3651 if { (ac_try="$ac_compile"
3652 case "(($ac_try" in
3653   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3654   *) ac_try_echo=$ac_try;;
3655 esac
3656 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3657   (eval "$ac_compile") 2>conftest.er1
3658   ac_status=$?
3659   grep -v '^ *+' conftest.er1 >conftest.err
3660   rm -f conftest.er1
3661   cat conftest.err >&5
3662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3663   (exit $ac_status); } && {
3664          test -z "$ac_c_werror_flag" ||
3665          test ! -s conftest.err
3666        } && test -s conftest.$ac_objext; then
3667   ac_cv_prog_cc_g=yes
3668 else
3669   echo "$as_me: failed program was:" >&5
3670 sed 's/^/| /' conftest.$ac_ext >&5
3671
3672
3673 fi
3674
3675 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3676 fi
3677
3678 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3679 fi
3680
3681 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3682    ac_c_werror_flag=$ac_save_c_werror_flag
3683 fi
3684 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3685 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3686 if test "$ac_test_CFLAGS" = set; then
3687   CFLAGS=$ac_save_CFLAGS
3688 elif test $ac_cv_prog_cc_g = yes; then
3689   if test "$GCC" = yes; then
3690     CFLAGS="-g -O2"
3691   else
3692     CFLAGS="-g"
3693   fi
3694 else
3695   if test "$GCC" = yes; then
3696     CFLAGS="-O2"
3697   else
3698     CFLAGS=
3699   fi
3700 fi
3701 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3702 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3703 if test "${ac_cv_prog_cc_c89+set}" = set; then
3704   echo $ECHO_N "(cached) $ECHO_C" >&6
3705 else
3706   ac_cv_prog_cc_c89=no
3707 ac_save_CC=$CC
3708 cat >conftest.$ac_ext <<_ACEOF
3709 /* confdefs.h.  */
3710 _ACEOF
3711 cat confdefs.h >>conftest.$ac_ext
3712 cat >>conftest.$ac_ext <<_ACEOF
3713 /* end confdefs.h.  */
3714 #include <stdarg.h>
3715 #include <stdio.h>
3716 #include <sys/types.h>
3717 #include <sys/stat.h>
3718 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3719 struct buf { int x; };
3720 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3721 static char *e (p, i)
3722      char **p;
3723      int i;
3724 {
3725   return p[i];
3726 }
3727 static char *f (char * (*g) (char **, int), char **p, ...)
3728 {
3729   char *s;
3730   va_list v;
3731   va_start (v,p);
3732   s = g (p, va_arg (v,int));
3733   va_end (v);
3734   return s;
3735 }
3736
3737 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3738    function prototypes and stuff, but not '\xHH' hex character constants.
3739    These don't provoke an error unfortunately, instead are silently treated
3740    as 'x'.  The following induces an error, until -std is added to get
3741    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3742    array size at least.  It's necessary to write '\x00'==0 to get something
3743    that's true only with -std.  */
3744 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3745
3746 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3747    inside strings and character constants.  */
3748 #define FOO(x) 'x'
3749 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3750
3751 int test (int i, double x);
3752 struct s1 {int (*f) (int a);};
3753 struct s2 {int (*f) (double a);};
3754 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3755 int argc;
3756 char **argv;
3757 int
3758 main ()
3759 {
3760 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3761   ;
3762   return 0;
3763 }
3764 _ACEOF
3765 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3766         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3767 do
3768   CC="$ac_save_CC $ac_arg"
3769   rm -f conftest.$ac_objext
3770 if { (ac_try="$ac_compile"
3771 case "(($ac_try" in
3772   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3773   *) ac_try_echo=$ac_try;;
3774 esac
3775 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3776   (eval "$ac_compile") 2>conftest.er1
3777   ac_status=$?
3778   grep -v '^ *+' conftest.er1 >conftest.err
3779   rm -f conftest.er1
3780   cat conftest.err >&5
3781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3782   (exit $ac_status); } && {
3783          test -z "$ac_c_werror_flag" ||
3784          test ! -s conftest.err
3785        } && test -s conftest.$ac_objext; then
3786   ac_cv_prog_cc_c89=$ac_arg
3787 else
3788   echo "$as_me: failed program was:" >&5
3789 sed 's/^/| /' conftest.$ac_ext >&5
3790
3791
3792 fi
3793
3794 rm -f core conftest.err conftest.$ac_objext
3795   test "x$ac_cv_prog_cc_c89" != "xno" && break
3796 done
3797 rm -f conftest.$ac_ext
3798 CC=$ac_save_CC
3799
3800 fi
3801 # AC_CACHE_VAL
3802 case "x$ac_cv_prog_cc_c89" in
3803   x)
3804     { echo "$as_me:$LINENO: result: none needed" >&5
3805 echo "${ECHO_T}none needed" >&6; } ;;
3806   xno)
3807     { echo "$as_me:$LINENO: result: unsupported" >&5
3808 echo "${ECHO_T}unsupported" >&6; } ;;
3809   *)
3810     CC="$CC $ac_cv_prog_cc_c89"
3811     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3812 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3813 esac
3814
3815
3816 ac_ext=c
3817 ac_cpp='$CPP $CPPFLAGS'
3818 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3819 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3820 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3821
3822 depcc="$CC"   am_compiler_list=
3823
3824 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3825 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3826 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3827   echo $ECHO_N "(cached) $ECHO_C" >&6
3828 else
3829   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3830   # We make a subdir and do the tests there.  Otherwise we can end up
3831   # making bogus files that we don't know about and never remove.  For
3832   # instance it was reported that on HP-UX the gcc test will end up
3833   # making a dummy file named `D' -- because `-MD' means `put the output
3834   # in D'.
3835   mkdir conftest.dir
3836   # Copy depcomp to subdir because otherwise we won't find it if we're
3837   # using a relative directory.
3838   cp "$am_depcomp" conftest.dir
3839   cd conftest.dir
3840   # We will build objects and dependencies in a subdirectory because
3841   # it helps to detect inapplicable dependency modes.  For instance
3842   # both Tru64's cc and ICC support -MD to output dependencies as a
3843   # side effect of compilation, but ICC will put the dependencies in
3844   # the current directory while Tru64 will put them in the object
3845   # directory.
3846   mkdir sub
3847
3848   am_cv_CC_dependencies_compiler_type=none
3849   if test "$am_compiler_list" = ""; then
3850      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3851   fi
3852   for depmode in $am_compiler_list; do
3853     # Setup a source with many dependencies, because some compilers
3854     # like to wrap large dependency lists on column 80 (with \), and
3855     # we should not choose a depcomp mode which is confused by this.
3856     #
3857     # We need to recreate these files for each test, as the compiler may
3858     # overwrite some of them when testing with obscure command lines.
3859     # This happens at least with the AIX C compiler.
3860     : > sub/conftest.c
3861     for i in 1 2 3 4 5 6; do
3862       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3863       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3864       # Solaris 8's {/usr,}/bin/sh.
3865       touch sub/conftst$i.h
3866     done
3867     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3868
3869     case $depmode in
3870     nosideeffect)
3871       # after this tag, mechanisms are not by side-effect, so they'll
3872       # only be used when explicitly requested
3873       if test "x$enable_dependency_tracking" = xyes; then
3874         continue
3875       else
3876         break
3877       fi
3878       ;;
3879     none) break ;;
3880     esac
3881     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3882     # mode.  It turns out that the SunPro C++ compiler does not properly
3883     # handle `-M -o', and we need to detect this.
3884     if depmode=$depmode \
3885        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3886        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3887        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3888          >/dev/null 2>conftest.err &&
3889        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3890        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3891        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3892        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3893       # icc doesn't choke on unknown options, it will just issue warnings
3894       # or remarks (even with -Werror).  So we grep stderr for any message
3895       # that says an option was ignored or not supported.
3896       # When given -MP, icc 7.0 and 7.1 complain thusly:
3897       #   icc: Command line warning: ignoring option '-M'; no argument required
3898       # The diagnosis changed in icc 8.0:
3899       #   icc: Command line remark: option '-MP' not supported
3900       if (grep 'ignoring option' conftest.err ||
3901           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3902         am_cv_CC_dependencies_compiler_type=$depmode
3903         break
3904       fi
3905     fi
3906   done
3907
3908   cd ..
3909   rm -rf conftest.dir
3910 else
3911   am_cv_CC_dependencies_compiler_type=none
3912 fi
3913
3914 fi
3915 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3916 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3917 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3918
3919  if
3920   test "x$enable_dependency_tracking" != xno \
3921   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3922   am__fastdepCC_TRUE=
3923   am__fastdepCC_FALSE='#'
3924 else
3925   am__fastdepCC_TRUE='#'
3926   am__fastdepCC_FALSE=
3927 fi
3928
3929
3930
3931
3932   TCPW_MSG="no"
3933
3934 # Check whether --with-tcp-wrappers was given.
3935 if test "${with_tcp_wrappers+set}" = set; then
3936   withval=$with_tcp_wrappers; with_tcpw=$withval
3937 else
3938   with_tcpw=yes
3939 fi
3940
3941         if test "x$with_tcpw" != "xno" ; then
3942             saved_LIBS="$LIBS"
3943             saved_LDFLAGS="$LDFLAGS"
3944             saved_CPPFLAGS="$CPPFLAGS"
3945             if test -n "${with_tcpw}" -a "${with_tcpw}" != "yes"; then
3946                 if test -d "${with_tcpw}/lib"; then
3947                     if test -n "${need_dash_r}"; then
3948                         LDFLAGS="-L${with_tcpw}/lib -R${with_tcpw}/lib ${LDFLAGS}"
3949                     else
3950                         LDFLAGS="-L${with_tcpw}/lib ${LDFLAGS}"
3951                     fi
3952                 else
3953                     if test -n "${need_dash_r}"; then
3954                         LDFLAGS="-L${with_tcpw} -R${with_tcpw} ${LDFLAGS}"
3955                     else
3956                         LDFLAGS="-L${with_tcpw} ${LDFLAGS}"
3957                     fi
3958                 fi
3959                 if test -d "${with_tcpw}/include"; then
3960                     CPPFLAGS="-I${with_tcpw}/include ${CPPFLAGS}"
3961                 else
3962                     CPPFLAGS="-I${with_tcpw} ${CPPFLAGS}"
3963                 fi
3964             fi
3965             LIBWRAP="-lwrap"
3966             LIBS="$LIBWRAP $LIBS"
3967             { echo "$as_me:$LINENO: checking for libwrap" >&5
3968 echo $ECHO_N "checking for libwrap... $ECHO_C" >&6; }
3969             cat >conftest.$ac_ext <<_ACEOF
3970 /* confdefs.h.  */
3971 _ACEOF
3972 cat confdefs.h >>conftest.$ac_ext
3973 cat >>conftest.$ac_ext <<_ACEOF
3974 /* end confdefs.h.  */
3975
3976                 #include <tcpd.h>
3977                 int deny_severity = 0, allow_severity = 0;
3978
3979 int
3980 main ()
3981 {
3982 hosts_access(0);
3983   ;
3984   return 0;
3985 }
3986 _ACEOF
3987 rm -f conftest.$ac_objext conftest$ac_exeext
3988 if { (ac_try="$ac_link"
3989 case "(($ac_try" in
3990   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3991   *) ac_try_echo=$ac_try;;
3992 esac
3993 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3994   (eval "$ac_link") 2>conftest.er1
3995   ac_status=$?
3996   grep -v '^ *+' conftest.er1 >conftest.err
3997   rm -f conftest.er1
3998   cat conftest.err >&5
3999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4000   (exit $ac_status); } && {
4001          test -z "$ac_c_werror_flag" ||
4002          test ! -s conftest.err
4003        } && test -s conftest$ac_exeext &&
4004        $as_test_x conftest$ac_exeext; then
4005
4006                 { echo "$as_me:$LINENO: result: yes" >&5
4007 echo "${ECHO_T}yes" >&6; }
4008
4009
4010 cat >>confdefs.h <<\_ACEOF
4011 #define LIBWRAP 1
4012 _ACEOF
4013
4014
4015 cat >>confdefs.h <<\_ACEOF
4016 #define HAVE_LIBWRAP 1
4017 _ACEOF
4018
4019
4020 cat >>confdefs.h <<\_ACEOF
4021 #define HAVE_TCP_WRAPPER 1
4022 _ACEOF
4023
4024                 TCPW_MSG="yes"
4025
4026 else
4027   echo "$as_me: failed program was:" >&5
4028 sed 's/^/| /' conftest.$ac_ext >&5
4029
4030
4031                 { { echo "$as_me:$LINENO: error: *** libwrap missing" >&5
4032 echo "$as_me: error: *** libwrap missing" >&2;}
4033    { (exit 1); exit 1; }; }
4034
4035
4036 fi
4037
4038 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4039       conftest$ac_exeext conftest.$ac_ext
4040             LIBS="$saved_LIBS"
4041         fi
4042
4043
4044
4045
4046
4047 # Arrange for large-file support
4048 # Check whether --enable-largefile was given.
4049 if test "${enable_largefile+set}" = set; then
4050   enableval=$enable_largefile;
4051 fi
4052
4053 if test "$enable_largefile" != no; then
4054
4055   { echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
4056 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6; }
4057 if test "${ac_cv_sys_largefile_CC+set}" = set; then
4058   echo $ECHO_N "(cached) $ECHO_C" >&6
4059 else
4060   ac_cv_sys_largefile_CC=no
4061      if test "$GCC" != yes; then
4062        ac_save_CC=$CC
4063        while :; do
4064          # IRIX 6.2 and later do not support large files by default,
4065          # so use the C compiler's -n32 option if that helps.
4066          cat >conftest.$ac_ext <<_ACEOF
4067 /* confdefs.h.  */
4068 _ACEOF
4069 cat confdefs.h >>conftest.$ac_ext
4070 cat >>conftest.$ac_ext <<_ACEOF
4071 /* end confdefs.h.  */
4072 #include <sys/types.h>
4073  /* Check that off_t can represent 2**63 - 1 correctly.
4074     We can't simply define LARGE_OFF_T to be 9223372036854775807,
4075     since some C++ compilers masquerading as C compilers
4076     incorrectly reject 9223372036854775807.  */
4077 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4078   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4079                        && LARGE_OFF_T % 2147483647 == 1)
4080                       ? 1 : -1];
4081 int
4082 main ()
4083 {
4084
4085   ;
4086   return 0;
4087 }
4088 _ACEOF
4089          rm -f conftest.$ac_objext
4090 if { (ac_try="$ac_compile"
4091 case "(($ac_try" in
4092   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4093   *) ac_try_echo=$ac_try;;
4094 esac
4095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4096   (eval "$ac_compile") 2>conftest.er1
4097   ac_status=$?
4098   grep -v '^ *+' conftest.er1 >conftest.err
4099   rm -f conftest.er1
4100   cat conftest.err >&5
4101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4102   (exit $ac_status); } && {
4103          test -z "$ac_c_werror_flag" ||
4104          test ! -s conftest.err
4105        } && test -s conftest.$ac_objext; then
4106   break
4107 else
4108   echo "$as_me: failed program was:" >&5
4109 sed 's/^/| /' conftest.$ac_ext >&5
4110
4111
4112 fi
4113
4114 rm -f core conftest.err conftest.$ac_objext
4115          CC="$CC -n32"
4116          rm -f conftest.$ac_objext
4117 if { (ac_try="$ac_compile"
4118 case "(($ac_try" in
4119   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4120   *) ac_try_echo=$ac_try;;
4121 esac
4122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4123   (eval "$ac_compile") 2>conftest.er1
4124   ac_status=$?
4125   grep -v '^ *+' conftest.er1 >conftest.err
4126   rm -f conftest.er1
4127   cat conftest.err >&5
4128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4129   (exit $ac_status); } && {
4130          test -z "$ac_c_werror_flag" ||
4131          test ! -s conftest.err
4132        } && test -s conftest.$ac_objext; then
4133   ac_cv_sys_largefile_CC=' -n32'; break
4134 else
4135   echo "$as_me: failed program was:" >&5
4136 sed 's/^/| /' conftest.$ac_ext >&5
4137
4138
4139 fi
4140
4141 rm -f core conftest.err conftest.$ac_objext
4142          break
4143        done
4144        CC=$ac_save_CC
4145        rm -f conftest.$ac_ext
4146     fi
4147 fi
4148 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
4149 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; }
4150   if test "$ac_cv_sys_largefile_CC" != no; then
4151     CC=$CC$ac_cv_sys_largefile_CC
4152   fi
4153
4154   { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4155 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
4156 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
4157   echo $ECHO_N "(cached) $ECHO_C" >&6
4158 else
4159   while :; do
4160   cat >conftest.$ac_ext <<_ACEOF
4161 /* confdefs.h.  */
4162 _ACEOF
4163 cat confdefs.h >>conftest.$ac_ext
4164 cat >>conftest.$ac_ext <<_ACEOF
4165 /* end confdefs.h.  */
4166 #include <sys/types.h>
4167  /* Check that off_t can represent 2**63 - 1 correctly.
4168     We can't simply define LARGE_OFF_T to be 9223372036854775807,
4169     since some C++ compilers masquerading as C compilers
4170     incorrectly reject 9223372036854775807.  */
4171 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4172   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4173                        && LARGE_OFF_T % 2147483647 == 1)
4174                       ? 1 : -1];
4175 int
4176 main ()
4177 {
4178
4179   ;
4180   return 0;
4181 }
4182 _ACEOF
4183 rm -f conftest.$ac_objext
4184 if { (ac_try="$ac_compile"
4185 case "(($ac_try" in
4186   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4187   *) ac_try_echo=$ac_try;;
4188 esac
4189 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4190   (eval "$ac_compile") 2>conftest.er1
4191   ac_status=$?
4192   grep -v '^ *+' conftest.er1 >conftest.err
4193   rm -f conftest.er1
4194   cat conftest.err >&5
4195   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4196   (exit $ac_status); } && {
4197          test -z "$ac_c_werror_flag" ||
4198          test ! -s conftest.err
4199        } && test -s conftest.$ac_objext; then
4200   ac_cv_sys_file_offset_bits=no; break
4201 else
4202   echo "$as_me: failed program was:" >&5
4203 sed 's/^/| /' conftest.$ac_ext >&5
4204
4205
4206 fi
4207
4208 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4209   cat >conftest.$ac_ext <<_ACEOF
4210 /* confdefs.h.  */
4211 _ACEOF
4212 cat confdefs.h >>conftest.$ac_ext
4213 cat >>conftest.$ac_ext <<_ACEOF
4214 /* end confdefs.h.  */
4215 #define _FILE_OFFSET_BITS 64
4216 #include <sys/types.h>
4217  /* Check that off_t can represent 2**63 - 1 correctly.
4218     We can't simply define LARGE_OFF_T to be 9223372036854775807,
4219     since some C++ compilers masquerading as C compilers
4220     incorrectly reject 9223372036854775807.  */
4221 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4222   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4223                        && LARGE_OFF_T % 2147483647 == 1)
4224                       ? 1 : -1];
4225 int
4226 main ()
4227 {
4228
4229   ;
4230   return 0;
4231 }
4232 _ACEOF
4233 rm -f conftest.$ac_objext
4234 if { (ac_try="$ac_compile"
4235 case "(($ac_try" in
4236   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4237   *) ac_try_echo=$ac_try;;
4238 esac
4239 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4240   (eval "$ac_compile") 2>conftest.er1
4241   ac_status=$?
4242   grep -v '^ *+' conftest.er1 >conftest.err
4243   rm -f conftest.er1
4244   cat conftest.err >&5
4245   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4246   (exit $ac_status); } && {
4247          test -z "$ac_c_werror_flag" ||
4248          test ! -s conftest.err
4249        } && test -s conftest.$ac_objext; then
4250   ac_cv_sys_file_offset_bits=64; break
4251 else
4252   echo "$as_me: failed program was:" >&5
4253 sed 's/^/| /' conftest.$ac_ext >&5
4254
4255
4256 fi
4257
4258 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4259   ac_cv_sys_file_offset_bits=unknown
4260   break
4261 done
4262 fi
4263 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
4264 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
4265 case $ac_cv_sys_file_offset_bits in #(
4266   no | unknown) ;;
4267   *)
4268 cat >>confdefs.h <<_ACEOF
4269 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4270 _ACEOF
4271 ;;
4272 esac
4273 rm -f conftest*
4274   if test $ac_cv_sys_file_offset_bits = unknown; then
4275     { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
4276 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
4277 if test "${ac_cv_sys_large_files+set}" = set; then
4278   echo $ECHO_N "(cached) $ECHO_C" >&6
4279 else
4280   while :; do
4281   cat >conftest.$ac_ext <<_ACEOF
4282 /* confdefs.h.  */
4283 _ACEOF
4284 cat confdefs.h >>conftest.$ac_ext
4285 cat >>conftest.$ac_ext <<_ACEOF
4286 /* end confdefs.h.  */
4287 #include <sys/types.h>
4288  /* Check that off_t can represent 2**63 - 1 correctly.
4289     We can't simply define LARGE_OFF_T to be 9223372036854775807,
4290     since some C++ compilers masquerading as C compilers
4291     incorrectly reject 9223372036854775807.  */
4292 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4293   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4294                        && LARGE_OFF_T % 2147483647 == 1)
4295                       ? 1 : -1];
4296 int
4297 main ()
4298 {
4299
4300   ;
4301   return 0;
4302 }
4303 _ACEOF
4304 rm -f conftest.$ac_objext
4305 if { (ac_try="$ac_compile"
4306 case "(($ac_try" in
4307   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4308   *) ac_try_echo=$ac_try;;
4309 esac
4310 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4311   (eval "$ac_compile") 2>conftest.er1
4312   ac_status=$?
4313   grep -v '^ *+' conftest.er1 >conftest.err
4314   rm -f conftest.er1
4315   cat conftest.err >&5
4316   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4317   (exit $ac_status); } && {
4318          test -z "$ac_c_werror_flag" ||
4319          test ! -s conftest.err
4320        } && test -s conftest.$ac_objext; then
4321   ac_cv_sys_large_files=no; break
4322 else
4323   echo "$as_me: failed program was:" >&5
4324 sed 's/^/| /' conftest.$ac_ext >&5
4325
4326
4327 fi
4328
4329 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4330   cat >conftest.$ac_ext <<_ACEOF
4331 /* confdefs.h.  */
4332 _ACEOF
4333 cat confdefs.h >>conftest.$ac_ext
4334 cat >>conftest.$ac_ext <<_ACEOF
4335 /* end confdefs.h.  */
4336 #define _LARGE_FILES 1
4337 #include <sys/types.h>
4338  /* Check that off_t can represent 2**63 - 1 correctly.
4339     We can't simply define LARGE_OFF_T to be 9223372036854775807,
4340     since some C++ compilers masquerading as C compilers
4341     incorrectly reject 9223372036854775807.  */
4342 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4343   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4344                        && LARGE_OFF_T % 2147483647 == 1)
4345                       ? 1 : -1];
4346 int
4347 main ()
4348 {
4349
4350   ;
4351   return 0;
4352 }
4353 _ACEOF
4354 rm -f conftest.$ac_objext
4355 if { (ac_try="$ac_compile"
4356 case "(($ac_try" in
4357   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4358   *) ac_try_echo=$ac_try;;
4359 esac
4360 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4361   (eval "$ac_compile") 2>conftest.er1
4362   ac_status=$?
4363   grep -v '^ *+' conftest.er1 >conftest.err
4364   rm -f conftest.er1
4365   cat conftest.err >&5
4366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4367   (exit $ac_status); } && {
4368          test -z "$ac_c_werror_flag" ||
4369          test ! -s conftest.err
4370        } && test -s conftest.$ac_objext; then
4371   ac_cv_sys_large_files=1; break
4372 else
4373   echo "$as_me: failed program was:" >&5
4374 sed 's/^/| /' conftest.$ac_ext >&5
4375
4376
4377 fi
4378
4379 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4380   ac_cv_sys_large_files=unknown
4381   break
4382 done
4383 fi
4384 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
4385 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
4386 case $ac_cv_sys_large_files in #(
4387   no | unknown) ;;
4388   *)
4389 cat >>confdefs.h <<_ACEOF
4390 #define _LARGE_FILES $ac_cv_sys_large_files
4391 _ACEOF
4392 ;;
4393 esac
4394 rm -f conftest*
4395   fi
4396 fi
4397
4398
4399
4400 ac_config_headers="$ac_config_headers support/include/config.h"
4401
4402
4403 # Checks for programs.
4404 ac_ext=cpp
4405 ac_cpp='$CXXCPP $CPPFLAGS'
4406 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4407 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4408 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4409 if test -z "$CXX"; then
4410   if test -n "$CCC"; then
4411     CXX=$CCC
4412   else
4413     if test -n "$ac_tool_prefix"; then
4414   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4415   do
4416     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4417 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4418 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4419 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4420 if test "${ac_cv_prog_CXX+set}" = set; then
4421   echo $ECHO_N "(cached) $ECHO_C" >&6
4422 else
4423   if test -n "$CXX"; then
4424   ac_cv_prog_CXX="$CXX" # Let the user override the test.
4425 else
4426 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4427 for as_dir in $PATH
4428 do
4429   IFS=$as_save_IFS
4430   test -z "$as_dir" && as_dir=.
4431   for ac_exec_ext in '' $ac_executable_extensions; do
4432   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4433     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4434     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4435     break 2
4436   fi
4437 done
4438 done
4439 IFS=$as_save_IFS
4440
4441 fi
4442 fi
4443 CXX=$ac_cv_prog_CXX
4444 if test -n "$CXX"; then
4445   { echo "$as_me:$LINENO: result: $CXX" >&5
4446 echo "${ECHO_T}$CXX" >&6; }
4447 else
4448   { echo "$as_me:$LINENO: result: no" >&5
4449 echo "${ECHO_T}no" >&6; }
4450 fi
4451
4452
4453     test -n "$CXX" && break
4454   done
4455 fi
4456 if test -z "$CXX"; then
4457   ac_ct_CXX=$CXX
4458   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4459 do
4460   # Extract the first word of "$ac_prog", so it can be a program name with args.
4461 set dummy $ac_prog; ac_word=$2
4462 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4463 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4464 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
4465   echo $ECHO_N "(cached) $ECHO_C" >&6
4466 else
4467   if test -n "$ac_ct_CXX"; then
4468   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4469 else
4470 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4471 for as_dir in $PATH
4472 do
4473   IFS=$as_save_IFS
4474   test -z "$as_dir" && as_dir=.
4475   for ac_exec_ext in '' $ac_executable_extensions; do
4476   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4477     ac_cv_prog_ac_ct_CXX="$ac_prog"
4478     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4479     break 2
4480   fi
4481 done
4482 done
4483 IFS=$as_save_IFS
4484
4485 fi
4486 fi
4487 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4488 if test -n "$ac_ct_CXX"; then
4489   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
4490 echo "${ECHO_T}$ac_ct_CXX" >&6; }
4491 else
4492   { echo "$as_me:$LINENO: result: no" >&5
4493 echo "${ECHO_T}no" >&6; }
4494 fi
4495
4496
4497   test -n "$ac_ct_CXX" && break
4498 done
4499
4500   if test "x$ac_ct_CXX" = x; then
4501     CXX="g++"
4502   else
4503     case $cross_compiling:$ac_tool_warned in
4504 yes:)
4505 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4506 whose name does not start with the host triplet.  If you think this
4507 configuration is useful to you, please write to autoconf@gnu.org." >&5
4508 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4509 whose name does not start with the host triplet.  If you think this
4510 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4511 ac_tool_warned=yes ;;
4512 esac
4513     CXX=$ac_ct_CXX
4514   fi
4515 fi
4516
4517   fi
4518 fi
4519 # Provide some information about the compiler.
4520 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
4521 ac_compiler=`set X $ac_compile; echo $2`
4522 { (ac_try="$ac_compiler --version >&5"
4523 case "(($ac_try" in
4524   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4525   *) ac_try_echo=$ac_try;;
4526 esac
4527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4528   (eval "$ac_compiler --version >&5") 2>&5
4529   ac_status=$?
4530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4531   (exit $ac_status); }
4532 { (ac_try="$ac_compiler -v >&5"
4533 case "(($ac_try" in
4534   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4535   *) ac_try_echo=$ac_try;;
4536 esac
4537 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4538   (eval "$ac_compiler -v >&5") 2>&5
4539   ac_status=$?
4540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4541   (exit $ac_status); }
4542 { (ac_try="$ac_compiler -V >&5"
4543 case "(($ac_try" in
4544   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4545   *) ac_try_echo=$ac_try;;
4546 esac
4547 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4548   (eval "$ac_compiler -V >&5") 2>&5
4549   ac_status=$?
4550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4551   (exit $ac_status); }
4552
4553 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
4554 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
4555 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
4556   echo $ECHO_N "(cached) $ECHO_C" >&6
4557 else
4558   cat >conftest.$ac_ext <<_ACEOF
4559 /* confdefs.h.  */
4560 _ACEOF
4561 cat confdefs.h >>conftest.$ac_ext
4562 cat >>conftest.$ac_ext <<_ACEOF
4563 /* end confdefs.h.  */
4564
4565 int
4566 main ()
4567 {
4568 #ifndef __GNUC__
4569        choke me
4570 #endif
4571
4572   ;
4573   return 0;
4574 }
4575 _ACEOF
4576 rm -f conftest.$ac_objext
4577 if { (ac_try="$ac_compile"
4578 case "(($ac_try" in
4579   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4580   *) ac_try_echo=$ac_try;;
4581 esac
4582 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4583   (eval "$ac_compile") 2>conftest.er1
4584   ac_status=$?
4585   grep -v '^ *+' conftest.er1 >conftest.err
4586   rm -f conftest.er1
4587   cat conftest.err >&5
4588   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4589   (exit $ac_status); } && {
4590          test -z "$ac_cxx_werror_flag" ||
4591          test ! -s conftest.err
4592        } && test -s conftest.$ac_objext; then
4593   ac_compiler_gnu=yes
4594 else
4595   echo "$as_me: failed program was:" >&5
4596 sed 's/^/| /' conftest.$ac_ext >&5
4597
4598         ac_compiler_gnu=no
4599 fi
4600
4601 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4602 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4603
4604 fi
4605 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4606 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
4607 GXX=`test $ac_compiler_gnu = yes && echo yes`
4608 ac_test_CXXFLAGS=${CXXFLAGS+set}
4609 ac_save_CXXFLAGS=$CXXFLAGS
4610 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4611 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
4612 if test "${ac_cv_prog_cxx_g+set}" = set; then
4613   echo $ECHO_N "(cached) $ECHO_C" >&6
4614 else
4615   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4616    ac_cxx_werror_flag=yes
4617    ac_cv_prog_cxx_g=no
4618    CXXFLAGS="-g"
4619    cat >conftest.$ac_ext <<_ACEOF
4620 /* confdefs.h.  */
4621 _ACEOF
4622 cat confdefs.h >>conftest.$ac_ext
4623 cat >>conftest.$ac_ext <<_ACEOF
4624 /* end confdefs.h.  */
4625
4626 int
4627 main ()
4628 {
4629
4630   ;
4631   return 0;
4632 }
4633 _ACEOF
4634 rm -f conftest.$ac_objext
4635 if { (ac_try="$ac_compile"
4636 case "(($ac_try" in
4637   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4638   *) ac_try_echo=$ac_try;;
4639 esac
4640 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4641   (eval "$ac_compile") 2>conftest.er1
4642   ac_status=$?
4643   grep -v '^ *+' conftest.er1 >conftest.err
4644   rm -f conftest.er1
4645   cat conftest.err >&5
4646   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4647   (exit $ac_status); } && {
4648          test -z "$ac_cxx_werror_flag" ||
4649          test ! -s conftest.err
4650        } && test -s conftest.$ac_objext; then
4651   ac_cv_prog_cxx_g=yes
4652 else
4653   echo "$as_me: failed program was:" >&5
4654 sed 's/^/| /' conftest.$ac_ext >&5
4655
4656         CXXFLAGS=""
4657       cat >conftest.$ac_ext <<_ACEOF
4658 /* confdefs.h.  */
4659 _ACEOF
4660 cat confdefs.h >>conftest.$ac_ext
4661 cat >>conftest.$ac_ext <<_ACEOF
4662 /* end confdefs.h.  */
4663
4664 int
4665 main ()
4666 {
4667
4668   ;
4669   return 0;
4670 }
4671 _ACEOF
4672 rm -f conftest.$ac_objext
4673 if { (ac_try="$ac_compile"
4674 case "(($ac_try" in
4675   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4676   *) ac_try_echo=$ac_try;;
4677 esac
4678 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4679   (eval "$ac_compile") 2>conftest.er1
4680   ac_status=$?
4681   grep -v '^ *+' conftest.er1 >conftest.err
4682   rm -f conftest.er1
4683   cat conftest.err >&5
4684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4685   (exit $ac_status); } && {
4686          test -z "$ac_cxx_werror_flag" ||
4687          test ! -s conftest.err
4688        } && test -s conftest.$ac_objext; then
4689   :
4690 else
4691   echo "$as_me: failed program was:" >&5
4692 sed 's/^/| /' conftest.$ac_ext >&5
4693
4694         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4695          CXXFLAGS="-g"
4696          cat >conftest.$ac_ext <<_ACEOF
4697 /* confdefs.h.  */
4698 _ACEOF
4699 cat confdefs.h >>conftest.$ac_ext
4700 cat >>conftest.$ac_ext <<_ACEOF
4701 /* end confdefs.h.  */
4702
4703 int
4704 main ()
4705 {
4706
4707   ;
4708   return 0;
4709 }
4710 _ACEOF
4711 rm -f conftest.$ac_objext
4712 if { (ac_try="$ac_compile"
4713 case "(($ac_try" in
4714   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4715   *) ac_try_echo=$ac_try;;
4716 esac
4717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4718   (eval "$ac_compile") 2>conftest.er1
4719   ac_status=$?
4720   grep -v '^ *+' conftest.er1 >conftest.err
4721   rm -f conftest.er1
4722   cat conftest.err >&5
4723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4724   (exit $ac_status); } && {
4725          test -z "$ac_cxx_werror_flag" ||
4726          test ! -s conftest.err
4727        } && test -s conftest.$ac_objext; then
4728   ac_cv_prog_cxx_g=yes
4729 else
4730   echo "$as_me: failed program was:" >&5
4731 sed 's/^/| /' conftest.$ac_ext >&5
4732
4733
4734 fi
4735
4736 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4737 fi
4738
4739 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4740 fi
4741
4742 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4743    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4744 fi
4745 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4746 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
4747 if test "$ac_test_CXXFLAGS" = set; then
4748   CXXFLAGS=$ac_save_CXXFLAGS
4749 elif test $ac_cv_prog_cxx_g = yes; then
4750   if test "$GXX" = yes; then
4751     CXXFLAGS="-g -O2"
4752   else
4753     CXXFLAGS="-g"
4754   fi
4755 else
4756   if test "$GXX" = yes; then
4757     CXXFLAGS="-O2"
4758   else
4759     CXXFLAGS=
4760   fi
4761 fi
4762 ac_ext=c
4763 ac_cpp='$CPP $CPPFLAGS'
4764 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4765 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4766 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4767
4768 depcc="$CXX"  am_compiler_list=
4769
4770 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4771 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
4772 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
4773   echo $ECHO_N "(cached) $ECHO_C" >&6
4774 else
4775   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4776   # We make a subdir and do the tests there.  Otherwise we can end up
4777   # making bogus files that we don't know about and never remove.  For
4778   # instance it was reported that on HP-UX the gcc test will end up
4779   # making a dummy file named `D' -- because `-MD' means `put the output
4780   # in D'.
4781   mkdir conftest.dir
4782   # Copy depcomp to subdir because otherwise we won't find it if we're
4783   # using a relative directory.
4784   cp "$am_depcomp" conftest.dir
4785   cd conftest.dir
4786   # We will build objects and dependencies in a subdirectory because
4787   # it helps to detect inapplicable dependency modes.  For instance
4788   # both Tru64's cc and ICC support -MD to output dependencies as a
4789   # side effect of compilation, but ICC will put the dependencies in
4790   # the current directory while Tru64 will put them in the object
4791   # directory.
4792   mkdir sub
4793
4794   am_cv_CXX_dependencies_compiler_type=none
4795   if test "$am_compiler_list" = ""; then
4796      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4797   fi
4798   for depmode in $am_compiler_list; do
4799     # Setup a source with many dependencies, because some compilers
4800     # like to wrap large dependency lists on column 80 (with \), and
4801     # we should not choose a depcomp mode which is confused by this.
4802     #
4803     # We need to recreate these files for each test, as the compiler may
4804     # overwrite some of them when testing with obscure command lines.
4805     # This happens at least with the AIX C compiler.
4806     : > sub/conftest.c
4807     for i in 1 2 3 4 5 6; do
4808       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4809       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4810       # Solaris 8's {/usr,}/bin/sh.
4811       touch sub/conftst$i.h
4812     done
4813     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4814
4815     case $depmode in
4816     nosideeffect)
4817       # after this tag, mechanisms are not by side-effect, so they'll
4818       # only be used when explicitly requested
4819       if test "x$enable_dependency_tracking" = xyes; then
4820         continue
4821       else
4822         break
4823       fi
4824       ;;
4825     none) break ;;
4826     esac
4827     # We check with `-c' and `-o' for the sake of the "dashmstdout"
4828     # mode.  It turns out that the SunPro C++ compiler does not properly
4829     # handle `-M -o', and we need to detect this.
4830     if depmode=$depmode \
4831        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4832        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4833        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4834          >/dev/null 2>conftest.err &&
4835        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4836        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4837        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4838        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4839       # icc doesn't choke on unknown options, it will just issue warnings
4840       # or remarks (even with -Werror).  So we grep stderr for any message
4841       # that says an option was ignored or not supported.
4842       # When given -MP, icc 7.0 and 7.1 complain thusly:
4843       #   icc: Command line warning: ignoring option '-M'; no argument required
4844       # The diagnosis changed in icc 8.0:
4845       #   icc: Command line remark: option '-MP' not supported
4846       if (grep 'ignoring option' conftest.err ||
4847           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4848         am_cv_CXX_dependencies_compiler_type=$depmode
4849         break
4850       fi
4851     fi
4852   done
4853
4854   cd ..
4855   rm -rf conftest.dir
4856 else
4857   am_cv_CXX_dependencies_compiler_type=none
4858 fi
4859
4860 fi
4861 { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
4862 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
4863 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4864
4865  if
4866   test "x$enable_dependency_tracking" != xno \
4867   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4868   am__fastdepCXX_TRUE=
4869   am__fastdepCXX_FALSE='#'
4870 else
4871   am__fastdepCXX_TRUE='#'
4872   am__fastdepCXX_FALSE=
4873 fi
4874
4875
4876 ac_ext=c
4877 ac_cpp='$CPP $CPPFLAGS'
4878 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4879 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4880 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4881 if test -n "$ac_tool_prefix"; then
4882   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4883 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4884 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4885 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4886 if test "${ac_cv_prog_CC+set}" = set; then
4887   echo $ECHO_N "(cached) $ECHO_C" >&6
4888 else
4889   if test -n "$CC"; then
4890   ac_cv_prog_CC="$CC" # Let the user override the test.
4891 else
4892 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4893 for as_dir in $PATH
4894 do
4895   IFS=$as_save_IFS
4896   test -z "$as_dir" && as_dir=.
4897   for ac_exec_ext in '' $ac_executable_extensions; do
4898   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4899     ac_cv_prog_CC="${ac_tool_prefix}gcc"
4900     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4901     break 2
4902   fi
4903 done
4904 done
4905 IFS=$as_save_IFS
4906
4907 fi
4908 fi
4909 CC=$ac_cv_prog_CC
4910 if test -n "$CC"; then
4911   { echo "$as_me:$LINENO: result: $CC" >&5
4912 echo "${ECHO_T}$CC" >&6; }
4913 else
4914   { echo "$as_me:$LINENO: result: no" >&5
4915 echo "${ECHO_T}no" >&6; }
4916 fi
4917
4918
4919 fi
4920 if test -z "$ac_cv_prog_CC"; then
4921   ac_ct_CC=$CC
4922   # Extract the first word of "gcc", so it can be a program name with args.
4923 set dummy gcc; ac_word=$2
4924 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4925 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4926 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4927   echo $ECHO_N "(cached) $ECHO_C" >&6
4928 else
4929   if test -n "$ac_ct_CC"; then
4930   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4931 else
4932 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4933 for as_dir in $PATH
4934 do
4935   IFS=$as_save_IFS
4936   test -z "$as_dir" && as_dir=.
4937   for ac_exec_ext in '' $ac_executable_extensions; do
4938   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4939     ac_cv_prog_ac_ct_CC="gcc"
4940     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4941     break 2
4942   fi
4943 done
4944 done
4945 IFS=$as_save_IFS
4946
4947 fi
4948 fi
4949 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4950 if test -n "$ac_ct_CC"; then
4951   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4952 echo "${ECHO_T}$ac_ct_CC" >&6; }
4953 else
4954   { echo "$as_me:$LINENO: result: no" >&5
4955 echo "${ECHO_T}no" >&6; }
4956 fi
4957
4958   if test "x$ac_ct_CC" = x; then
4959     CC=""
4960   else
4961     case $cross_compiling:$ac_tool_warned in
4962 yes:)
4963 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4964 whose name does not start with the host triplet.  If you think this
4965 configuration is useful to you, please write to autoconf@gnu.org." >&5
4966 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4967 whose name does not start with the host triplet.  If you think this
4968 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4969 ac_tool_warned=yes ;;
4970 esac
4971     CC=$ac_ct_CC
4972   fi
4973 else
4974   CC="$ac_cv_prog_CC"
4975 fi
4976
4977 if test -z "$CC"; then
4978           if test -n "$ac_tool_prefix"; then
4979     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4980 set dummy ${ac_tool_prefix}cc; ac_word=$2
4981 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4982 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4983 if test "${ac_cv_prog_CC+set}" = set; then
4984   echo $ECHO_N "(cached) $ECHO_C" >&6
4985 else
4986   if test -n "$CC"; then
4987   ac_cv_prog_CC="$CC" # Let the user override the test.
4988 else
4989 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4990 for as_dir in $PATH
4991 do
4992   IFS=$as_save_IFS
4993   test -z "$as_dir" && as_dir=.
4994   for ac_exec_ext in '' $ac_executable_extensions; do
4995   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4996     ac_cv_prog_CC="${ac_tool_prefix}cc"
4997     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4998     break 2
4999   fi
5000 done
5001 done
5002 IFS=$as_save_IFS
5003
5004 fi
5005 fi
5006 CC=$ac_cv_prog_CC
5007 if test -n "$CC"; then
5008   { echo "$as_me:$LINENO: result: $CC" >&5
5009 echo "${ECHO_T}$CC" >&6; }
5010 else
5011   { echo "$as_me:$LINENO: result: no" >&5
5012 echo "${ECHO_T}no" >&6; }
5013 fi
5014
5015
5016   fi
5017 fi
5018 if test -z "$CC"; then
5019   # Extract the first word of "cc", so it can be a program name with args.
5020 set dummy cc; ac_word=$2
5021 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5022 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5023 if test "${ac_cv_prog_CC+set}" = set; then
5024   echo $ECHO_N "(cached) $ECHO_C" >&6
5025 else
5026   if test -n "$CC"; then
5027   ac_cv_prog_CC="$CC" # Let the user override the test.
5028 else
5029   ac_prog_rejected=no
5030 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5031 for as_dir in $PATH
5032 do
5033   IFS=$as_save_IFS
5034   test -z "$as_dir" && as_dir=.
5035   for ac_exec_ext in '' $ac_executable_extensions; do
5036   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5037     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5038        ac_prog_rejected=yes
5039        continue
5040      fi
5041     ac_cv_prog_CC="cc"
5042     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5043     break 2
5044   fi
5045 done
5046 done
5047 IFS=$as_save_IFS
5048
5049 if test $ac_prog_rejected = yes; then
5050   # We found a bogon in the path, so make sure we never use it.
5051   set dummy $ac_cv_prog_CC
5052   shift
5053   if test $# != 0; then
5054     # We chose a different compiler from the bogus one.
5055     # However, it has the same basename, so the bogon will be chosen
5056     # first if we set CC to just the basename; use the full file name.
5057     shift
5058     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
5059   fi
5060 fi
5061 fi
5062 fi
5063 CC=$ac_cv_prog_CC
5064 if test -n "$CC"; then
5065   { echo "$as_me:$LINENO: result: $CC" >&5
5066 echo "${ECHO_T}$CC" >&6; }
5067 else
5068   { echo "$as_me:$LINENO: result: no" >&5
5069 echo "${ECHO_T}no" >&6; }
5070 fi
5071
5072
5073 fi
5074 if test -z "$CC"; then
5075   if test -n "$ac_tool_prefix"; then
5076   for ac_prog in cl.exe
5077   do
5078     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5079 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5080 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5081 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5082 if test "${ac_cv_prog_CC+set}" = set; then
5083   echo $ECHO_N "(cached) $ECHO_C" >&6
5084 else
5085   if test -n "$CC"; then
5086   ac_cv_prog_CC="$CC" # Let the user override the test.
5087 else
5088 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5089 for as_dir in $PATH
5090 do
5091   IFS=$as_save_IFS
5092   test -z "$as_dir" && as_dir=.
5093   for ac_exec_ext in '' $ac_executable_extensions; do
5094   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5095     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5096     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5097     break 2
5098   fi
5099 done
5100 done
5101 IFS=$as_save_IFS
5102
5103 fi
5104 fi
5105 CC=$ac_cv_prog_CC
5106 if test -n "$CC"; then
5107   { echo "$as_me:$LINENO: result: $CC" >&5
5108 echo "${ECHO_T}$CC" >&6; }
5109 else
5110   { echo "$as_me:$LINENO: result: no" >&5
5111 echo "${ECHO_T}no" >&6; }
5112 fi
5113
5114
5115     test -n "$CC" && break
5116   done
5117 fi
5118 if test -z "$CC"; then
5119   ac_ct_CC=$CC
5120   for ac_prog in cl.exe
5121 do
5122   # Extract the first word of "$ac_prog", so it can be a program name with args.
5123 set dummy $ac_prog; ac_word=$2
5124 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5125 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5126 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5127   echo $ECHO_N "(cached) $ECHO_C" >&6
5128 else
5129   if test -n "$ac_ct_CC"; then
5130   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5131 else
5132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5133 for as_dir in $PATH
5134 do
5135   IFS=$as_save_IFS
5136   test -z "$as_dir" && as_dir=.
5137   for ac_exec_ext in '' $ac_executable_extensions; do
5138   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5139     ac_cv_prog_ac_ct_CC="$ac_prog"
5140     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5141     break 2
5142   fi
5143 done
5144 done
5145 IFS=$as_save_IFS
5146
5147 fi
5148 fi
5149 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5150 if test -n "$ac_ct_CC"; then
5151   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5152 echo "${ECHO_T}$ac_ct_CC" >&6; }
5153 else
5154   { echo "$as_me:$LINENO: result: no" >&5
5155 echo "${ECHO_T}no" >&6; }
5156 fi
5157
5158
5159   test -n "$ac_ct_CC" && break
5160 done
5161
5162   if test "x$ac_ct_CC" = x; then
5163     CC=""
5164   else
5165     case $cross_compiling:$ac_tool_warned in
5166 yes:)
5167 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5168 whose name does not start with the host triplet.  If you think this
5169 configuration is useful to you, please write to autoconf@gnu.org." >&5
5170 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5171 whose name does not start with the host triplet.  If you think this
5172 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5173 ac_tool_warned=yes ;;
5174 esac
5175     CC=$ac_ct_CC
5176   fi
5177 fi
5178
5179 fi
5180
5181
5182 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
5183 See \`config.log' for more details." >&5
5184 echo "$as_me: error: no acceptable C compiler found in \$PATH
5185 See \`config.log' for more details." >&2;}
5186    { (exit 1); exit 1; }; }
5187
5188 # Provide some information about the compiler.
5189 echo "$as_me:$LINENO: checking for C compiler version" >&5
5190 ac_compiler=`set X $ac_compile; echo $2`
5191 { (ac_try="$ac_compiler --version >&5"
5192 case "(($ac_try" in
5193   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5194   *) ac_try_echo=$ac_try;;
5195 esac
5196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5197   (eval "$ac_compiler --version >&5") 2>&5
5198   ac_status=$?
5199   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5200   (exit $ac_status); }
5201 { (ac_try="$ac_compiler -v >&5"
5202 case "(($ac_try" in
5203   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5204   *) ac_try_echo=$ac_try;;
5205 esac
5206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5207   (eval "$ac_compiler -v >&5") 2>&5
5208   ac_status=$?
5209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5210   (exit $ac_status); }
5211 { (ac_try="$ac_compiler -V >&5"
5212 case "(($ac_try" in
5213   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5214   *) ac_try_echo=$ac_try;;
5215 esac
5216 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5217   (eval "$ac_compiler -V >&5") 2>&5
5218   ac_status=$?
5219   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5220   (exit $ac_status); }
5221
5222 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
5223 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
5224 if test "${ac_cv_c_compiler_gnu+set}" = set; then
5225   echo $ECHO_N "(cached) $ECHO_C" >&6
5226 else
5227   cat >conftest.$ac_ext <<_ACEOF
5228 /* confdefs.h.  */
5229 _ACEOF
5230 cat confdefs.h >>conftest.$ac_ext
5231 cat >>conftest.$ac_ext <<_ACEOF
5232 /* end confdefs.h.  */
5233
5234 int
5235 main ()
5236 {
5237 #ifndef __GNUC__
5238        choke me
5239 #endif
5240
5241   ;
5242   return 0;
5243 }
5244 _ACEOF
5245 rm -f conftest.$ac_objext
5246 if { (ac_try="$ac_compile"
5247 case "(($ac_try" in
5248   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5249   *) ac_try_echo=$ac_try;;
5250 esac
5251 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5252   (eval "$ac_compile") 2>conftest.er1
5253   ac_status=$?
5254   grep -v '^ *+' conftest.er1 >conftest.err
5255   rm -f conftest.er1
5256   cat conftest.err >&5
5257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5258   (exit $ac_status); } && {
5259          test -z "$ac_c_werror_flag" ||
5260          test ! -s conftest.err
5261        } && test -s conftest.$ac_objext; then
5262   ac_compiler_gnu=yes
5263 else
5264   echo "$as_me: failed program was:" >&5
5265 sed 's/^/| /' conftest.$ac_ext >&5
5266
5267         ac_compiler_gnu=no
5268 fi
5269
5270 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5271 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5272
5273 fi
5274 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
5275 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
5276 GCC=`test $ac_compiler_gnu = yes && echo yes`
5277 ac_test_CFLAGS=${CFLAGS+set}
5278 ac_save_CFLAGS=$CFLAGS
5279 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
5280 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
5281 if test "${ac_cv_prog_cc_g+set}" = set; then
5282   echo $ECHO_N "(cached) $ECHO_C" >&6
5283 else
5284   ac_save_c_werror_flag=$ac_c_werror_flag
5285    ac_c_werror_flag=yes
5286    ac_cv_prog_cc_g=no
5287    CFLAGS="-g"
5288    cat >conftest.$ac_ext <<_ACEOF
5289 /* confdefs.h.  */
5290 _ACEOF
5291 cat confdefs.h >>conftest.$ac_ext
5292 cat >>conftest.$ac_ext <<_ACEOF
5293 /* end confdefs.h.  */
5294
5295 int
5296 main ()
5297 {
5298
5299   ;
5300   return 0;
5301 }
5302 _ACEOF
5303 rm -f conftest.$ac_objext
5304 if { (ac_try="$ac_compile"
5305 case "(($ac_try" in
5306   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5307   *) ac_try_echo=$ac_try;;
5308 esac
5309 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5310   (eval "$ac_compile") 2>conftest.er1
5311   ac_status=$?
5312   grep -v '^ *+' conftest.er1 >conftest.err
5313   rm -f conftest.er1
5314   cat conftest.err >&5
5315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5316   (exit $ac_status); } && {
5317          test -z "$ac_c_werror_flag" ||
5318          test ! -s conftest.err
5319        } && test -s conftest.$ac_objext; then
5320   ac_cv_prog_cc_g=yes
5321 else
5322   echo "$as_me: failed program was:" >&5
5323 sed 's/^/| /' conftest.$ac_ext >&5
5324
5325         CFLAGS=""
5326       cat >conftest.$ac_ext <<_ACEOF
5327 /* confdefs.h.  */
5328 _ACEOF
5329 cat confdefs.h >>conftest.$ac_ext
5330 cat >>conftest.$ac_ext <<_ACEOF
5331 /* end confdefs.h.  */
5332
5333 int
5334 main ()
5335 {
5336
5337   ;
5338   return 0;
5339 }
5340 _ACEOF
5341 rm -f conftest.$ac_objext
5342 if { (ac_try="$ac_compile"
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_compile") 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); } && {
5355          test -z "$ac_c_werror_flag" ||
5356          test ! -s conftest.err
5357        } && test -s conftest.$ac_objext; then
5358   :
5359 else
5360   echo "$as_me: failed program was:" >&5
5361 sed 's/^/| /' conftest.$ac_ext >&5
5362
5363         ac_c_werror_flag=$ac_save_c_werror_flag
5364          CFLAGS="-g"
5365          cat >conftest.$ac_ext <<_ACEOF
5366 /* confdefs.h.  */
5367 _ACEOF
5368 cat confdefs.h >>conftest.$ac_ext
5369 cat >>conftest.$ac_ext <<_ACEOF
5370 /* end confdefs.h.  */
5371
5372 int
5373 main ()
5374 {
5375
5376   ;
5377   return 0;
5378 }
5379 _ACEOF
5380 rm -f conftest.$ac_objext
5381 if { (ac_try="$ac_compile"
5382 case "(($ac_try" in
5383   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5384   *) ac_try_echo=$ac_try;;
5385 esac
5386 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5387   (eval "$ac_compile") 2>conftest.er1
5388   ac_status=$?
5389   grep -v '^ *+' conftest.er1 >conftest.err
5390   rm -f conftest.er1
5391   cat conftest.err >&5
5392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5393   (exit $ac_status); } && {
5394          test -z "$ac_c_werror_flag" ||
5395          test ! -s conftest.err
5396        } && test -s conftest.$ac_objext; then
5397   ac_cv_prog_cc_g=yes
5398 else
5399   echo "$as_me: failed program was:" >&5
5400 sed 's/^/| /' conftest.$ac_ext >&5
5401
5402
5403 fi
5404
5405 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5406 fi
5407
5408 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5409 fi
5410
5411 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5412    ac_c_werror_flag=$ac_save_c_werror_flag
5413 fi
5414 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
5415 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
5416 if test "$ac_test_CFLAGS" = set; then
5417   CFLAGS=$ac_save_CFLAGS
5418 elif test $ac_cv_prog_cc_g = yes; then
5419   if test "$GCC" = yes; then
5420     CFLAGS="-g -O2"
5421   else
5422     CFLAGS="-g"
5423   fi
5424 else
5425   if test "$GCC" = yes; then
5426     CFLAGS="-O2"
5427   else
5428     CFLAGS=
5429   fi
5430 fi
5431 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
5432 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
5433 if test "${ac_cv_prog_cc_c89+set}" = set; then
5434   echo $ECHO_N "(cached) $ECHO_C" >&6
5435 else
5436   ac_cv_prog_cc_c89=no
5437 ac_save_CC=$CC
5438 cat >conftest.$ac_ext <<_ACEOF
5439 /* confdefs.h.  */
5440 _ACEOF
5441 cat confdefs.h >>conftest.$ac_ext
5442 cat >>conftest.$ac_ext <<_ACEOF
5443 /* end confdefs.h.  */
5444 #include <stdarg.h>
5445 #include <stdio.h>
5446 #include <sys/types.h>
5447 #include <sys/stat.h>
5448 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
5449 struct buf { int x; };
5450 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5451 static char *e (p, i)
5452      char **p;
5453      int i;
5454 {
5455   return p[i];
5456 }
5457 static char *f (char * (*g) (char **, int), char **p, ...)
5458 {
5459   char *s;
5460   va_list v;
5461   va_start (v,p);
5462   s = g (p, va_arg (v,int));
5463   va_end (v);
5464   return s;
5465 }
5466
5467 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
5468    function prototypes and stuff, but not '\xHH' hex character constants.
5469    These don't provoke an error unfortunately, instead are silently treated
5470    as 'x'.  The following induces an error, until -std is added to get
5471    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
5472    array size at least.  It's necessary to write '\x00'==0 to get something
5473    that's true only with -std.  */
5474 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5475
5476 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5477    inside strings and character constants.  */
5478 #define FOO(x) 'x'
5479 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5480
5481 int test (int i, double x);
5482 struct s1 {int (*f) (int a);};
5483 struct s2 {int (*f) (double a);};
5484 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5485 int argc;
5486 char **argv;
5487 int
5488 main ()
5489 {
5490 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
5491   ;
5492   return 0;
5493 }
5494 _ACEOF
5495 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5496         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5497 do
5498   CC="$ac_save_CC $ac_arg"
5499   rm -f conftest.$ac_objext
5500 if { (ac_try="$ac_compile"
5501 case "(($ac_try" in
5502   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5503   *) ac_try_echo=$ac_try;;
5504 esac
5505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5506   (eval "$ac_compile") 2>conftest.er1
5507   ac_status=$?
5508   grep -v '^ *+' conftest.er1 >conftest.err
5509   rm -f conftest.er1
5510   cat conftest.err >&5
5511   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5512   (exit $ac_status); } && {
5513          test -z "$ac_c_werror_flag" ||
5514          test ! -s conftest.err
5515        } && test -s conftest.$ac_objext; then
5516   ac_cv_prog_cc_c89=$ac_arg
5517 else
5518   echo "$as_me: failed program was:" >&5
5519 sed 's/^/| /' conftest.$ac_ext >&5
5520
5521
5522 fi
5523
5524 rm -f core conftest.err conftest.$ac_objext
5525   test "x$ac_cv_prog_cc_c89" != "xno" && break
5526 done
5527 rm -f conftest.$ac_ext
5528 CC=$ac_save_CC
5529
5530 fi
5531 # AC_CACHE_VAL
5532 case "x$ac_cv_prog_cc_c89" in
5533   x)
5534     { echo "$as_me:$LINENO: result: none needed" >&5
5535 echo "${ECHO_T}none needed" >&6; } ;;
5536   xno)
5537     { echo "$as_me:$LINENO: result: unsupported" >&5
5538 echo "${ECHO_T}unsupported" >&6; } ;;
5539   *)
5540     CC="$CC $ac_cv_prog_cc_c89"
5541     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
5542 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
5543 esac
5544
5545
5546 ac_ext=c
5547 ac_cpp='$CPP $CPPFLAGS'
5548 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5549 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5550 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5551
5552 depcc="$CC"   am_compiler_list=
5553
5554 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5555 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
5556 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
5557   echo $ECHO_N "(cached) $ECHO_C" >&6
5558 else
5559   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5560   # We make a subdir and do the tests there.  Otherwise we can end up
5561   # making bogus files that we don't know about and never remove.  For
5562   # instance it was reported that on HP-UX the gcc test will end up
5563   # making a dummy file named `D' -- because `-MD' means `put the output
5564   # in D'.
5565   mkdir conftest.dir
5566   # Copy depcomp to subdir because otherwise we won't find it if we're
5567   # using a relative directory.
5568   cp "$am_depcomp" conftest.dir
5569   cd conftest.dir
5570   # We will build objects and dependencies in a subdirectory because
5571   # it helps to detect inapplicable dependency modes.  For instance
5572   # both Tru64's cc and ICC support -MD to output dependencies as a
5573   # side effect of compilation, but ICC will put the dependencies in
5574   # the current directory while Tru64 will put them in the object
5575   # directory.
5576   mkdir sub
5577
5578   am_cv_CC_dependencies_compiler_type=none
5579   if test "$am_compiler_list" = ""; then
5580      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5581   fi
5582   for depmode in $am_compiler_list; do
5583     # Setup a source with many dependencies, because some compilers
5584     # like to wrap large dependency lists on column 80 (with \), and
5585     # we should not choose a depcomp mode which is confused by this.
5586     #
5587     # We need to recreate these files for each test, as the compiler may
5588     # overwrite some of them when testing with obscure command lines.
5589     # This happens at least with the AIX C compiler.
5590     : > sub/conftest.c
5591     for i in 1 2 3 4 5 6; do
5592       echo '#include "conftst'$i'.h"' >> sub/conftest.c
5593       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5594       # Solaris 8's {/usr,}/bin/sh.
5595       touch sub/conftst$i.h
5596     done
5597     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5598
5599     case $depmode in
5600     nosideeffect)
5601       # after this tag, mechanisms are not by side-effect, so they'll
5602       # only be used when explicitly requested
5603       if test "x$enable_dependency_tracking" = xyes; then
5604         continue
5605       else
5606         break
5607       fi
5608       ;;
5609     none) break ;;
5610     esac
5611     # We check with `-c' and `-o' for the sake of the "dashmstdout"
5612     # mode.  It turns out that the SunPro C++ compiler does not properly
5613     # handle `-M -o', and we need to detect this.
5614     if depmode=$depmode \
5615        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5616        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5617        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5618          >/dev/null 2>conftest.err &&
5619        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5620        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5621        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5622        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5623       # icc doesn't choke on unknown options, it will just issue warnings
5624       # or remarks (even with -Werror).  So we grep stderr for any message
5625       # that says an option was ignored or not supported.
5626       # When given -MP, icc 7.0 and 7.1 complain thusly:
5627       #   icc: Command line warning: ignoring option '-M'; no argument required
5628       # The diagnosis changed in icc 8.0:
5629       #   icc: Command line remark: option '-MP' not supported
5630       if (grep 'ignoring option' conftest.err ||
5631           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5632         am_cv_CC_dependencies_compiler_type=$depmode
5633         break
5634       fi
5635     fi
5636   done
5637
5638   cd ..
5639   rm -rf conftest.dir
5640 else
5641   am_cv_CC_dependencies_compiler_type=none
5642 fi
5643
5644 fi
5645 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
5646 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
5647 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5648
5649  if
5650   test "x$enable_dependency_tracking" != xno \
5651   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5652   am__fastdepCC_TRUE=
5653   am__fastdepCC_FALSE='#'
5654 else
5655   am__fastdepCC_TRUE='#'
5656   am__fastdepCC_FALSE=
5657 fi
5658
5659
5660 ac_ext=c
5661 ac_cpp='$CPP $CPPFLAGS'
5662 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5663 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5664 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5665 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5666 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
5667 # On Suns, sometimes $CPP names a directory.
5668 if test -n "$CPP" && test -d "$CPP"; then
5669   CPP=
5670 fi
5671 if test -z "$CPP"; then
5672   if test "${ac_cv_prog_CPP+set}" = set; then
5673   echo $ECHO_N "(cached) $ECHO_C" >&6
5674 else
5675       # Double quotes because CPP needs to be expanded
5676     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5677     do
5678       ac_preproc_ok=false
5679 for ac_c_preproc_warn_flag in '' yes
5680 do
5681   # Use a header file that comes with gcc, so configuring glibc
5682   # with a fresh cross-compiler works.
5683   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5684   # <limits.h> exists even on freestanding compilers.
5685   # On the NeXT, cc -E runs the code through the compiler's parser,
5686   # not just through cpp. "Syntax error" is here to catch this case.
5687   cat >conftest.$ac_ext <<_ACEOF
5688 /* confdefs.h.  */
5689 _ACEOF
5690 cat confdefs.h >>conftest.$ac_ext
5691 cat >>conftest.$ac_ext <<_ACEOF
5692 /* end confdefs.h.  */
5693 #ifdef __STDC__
5694 # include <limits.h>
5695 #else
5696 # include <assert.h>
5697 #endif
5698                      Syntax error
5699 _ACEOF
5700 if { (ac_try="$ac_cpp conftest.$ac_ext"
5701 case "(($ac_try" in
5702   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5703   *) ac_try_echo=$ac_try;;
5704 esac
5705 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5706   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5707   ac_status=$?
5708   grep -v '^ *+' conftest.er1 >conftest.err
5709   rm -f conftest.er1
5710   cat conftest.err >&5
5711   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5712   (exit $ac_status); } >/dev/null && {
5713          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5714          test ! -s conftest.err
5715        }; then
5716   :
5717 else
5718   echo "$as_me: failed program was:" >&5
5719 sed 's/^/| /' conftest.$ac_ext >&5
5720
5721   # Broken: fails on valid input.
5722 continue
5723 fi
5724
5725 rm -f conftest.err conftest.$ac_ext
5726
5727   # OK, works on sane cases.  Now check whether nonexistent headers
5728   # can be detected and how.
5729   cat >conftest.$ac_ext <<_ACEOF
5730 /* confdefs.h.  */
5731 _ACEOF
5732 cat confdefs.h >>conftest.$ac_ext
5733 cat >>conftest.$ac_ext <<_ACEOF
5734 /* end confdefs.h.  */
5735 #include <ac_nonexistent.h>
5736 _ACEOF
5737 if { (ac_try="$ac_cpp conftest.$ac_ext"
5738 case "(($ac_try" in
5739   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5740   *) ac_try_echo=$ac_try;;
5741 esac
5742 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5743   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5744   ac_status=$?
5745   grep -v '^ *+' conftest.er1 >conftest.err
5746   rm -f conftest.er1
5747   cat conftest.err >&5
5748   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5749   (exit $ac_status); } >/dev/null && {
5750          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5751          test ! -s conftest.err
5752        }; then
5753   # Broken: success on invalid input.
5754 continue
5755 else
5756   echo "$as_me: failed program was:" >&5
5757 sed 's/^/| /' conftest.$ac_ext >&5
5758
5759   # Passes both tests.
5760 ac_preproc_ok=:
5761 break
5762 fi
5763
5764 rm -f conftest.err conftest.$ac_ext
5765
5766 done
5767 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5768 rm -f conftest.err conftest.$ac_ext
5769 if $ac_preproc_ok; then
5770   break
5771 fi
5772
5773     done
5774     ac_cv_prog_CPP=$CPP
5775
5776 fi
5777   CPP=$ac_cv_prog_CPP
5778 else
5779   ac_cv_prog_CPP=$CPP
5780 fi
5781 { echo "$as_me:$LINENO: result: $CPP" >&5
5782 echo "${ECHO_T}$CPP" >&6; }
5783 ac_preproc_ok=false
5784 for ac_c_preproc_warn_flag in '' yes
5785 do
5786   # Use a header file that comes with gcc, so configuring glibc
5787   # with a fresh cross-compiler works.
5788   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5789   # <limits.h> exists even on freestanding compilers.
5790   # On the NeXT, cc -E runs the code through the compiler's parser,
5791   # not just through cpp. "Syntax error" is here to catch this case.
5792   cat >conftest.$ac_ext <<_ACEOF
5793 /* confdefs.h.  */
5794 _ACEOF
5795 cat confdefs.h >>conftest.$ac_ext
5796 cat >>conftest.$ac_ext <<_ACEOF
5797 /* end confdefs.h.  */
5798 #ifdef __STDC__
5799 # include <limits.h>
5800 #else
5801 # include <assert.h>
5802 #endif
5803                      Syntax error
5804 _ACEOF
5805 if { (ac_try="$ac_cpp conftest.$ac_ext"
5806 case "(($ac_try" in
5807   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5808   *) ac_try_echo=$ac_try;;
5809 esac
5810 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5811   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5812   ac_status=$?
5813   grep -v '^ *+' conftest.er1 >conftest.err
5814   rm -f conftest.er1
5815   cat conftest.err >&5
5816   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5817   (exit $ac_status); } >/dev/null && {
5818          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5819          test ! -s conftest.err
5820        }; then
5821   :
5822 else
5823   echo "$as_me: failed program was:" >&5
5824 sed 's/^/| /' conftest.$ac_ext >&5
5825
5826   # Broken: fails on valid input.
5827 continue
5828 fi
5829
5830 rm -f conftest.err conftest.$ac_ext
5831
5832   # OK, works on sane cases.  Now check whether nonexistent headers
5833   # can be detected and how.
5834   cat >conftest.$ac_ext <<_ACEOF
5835 /* confdefs.h.  */
5836 _ACEOF
5837 cat confdefs.h >>conftest.$ac_ext
5838 cat >>conftest.$ac_ext <<_ACEOF
5839 /* end confdefs.h.  */
5840 #include <ac_nonexistent.h>
5841 _ACEOF
5842 if { (ac_try="$ac_cpp conftest.$ac_ext"
5843 case "(($ac_try" in
5844   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5845   *) ac_try_echo=$ac_try;;
5846 esac
5847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5848   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5849   ac_status=$?
5850   grep -v '^ *+' conftest.er1 >conftest.err
5851   rm -f conftest.er1
5852   cat conftest.err >&5
5853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5854   (exit $ac_status); } >/dev/null && {
5855          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5856          test ! -s conftest.err
5857        }; then
5858   # Broken: success on invalid input.
5859 continue
5860 else
5861   echo "$as_me: failed program was:" >&5
5862 sed 's/^/| /' conftest.$ac_ext >&5
5863
5864   # Passes both tests.
5865 ac_preproc_ok=:
5866 break
5867 fi
5868
5869 rm -f conftest.err conftest.$ac_ext
5870
5871 done
5872 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5873 rm -f conftest.err conftest.$ac_ext
5874 if $ac_preproc_ok; then
5875   :
5876 else
5877   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5878 See \`config.log' for more details." >&5
5879 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5880 See \`config.log' for more details." >&2;}
5881    { (exit 1); exit 1; }; }
5882 fi
5883
5884 ac_ext=c
5885 ac_cpp='$CPP $CPPFLAGS'
5886 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5887 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5888 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5889
5890 # Find a good install program.  We prefer a C program (faster),
5891 # so one script is as good as another.  But avoid the broken or
5892 # incompatible versions:
5893 # SysV /etc/install, /usr/sbin/install
5894 # SunOS /usr/etc/install
5895 # IRIX /sbin/install
5896 # AIX /bin/install
5897 # AmigaOS /C/install, which installs bootblocks on floppy discs
5898 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5899 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5900 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5901 # OS/2's system install, which has a completely different semantic
5902 # ./install, which can be erroneously created by make from ./install.sh.
5903 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
5904 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
5905 if test -z "$INSTALL"; then
5906 if test "${ac_cv_path_install+set}" = set; then
5907   echo $ECHO_N "(cached) $ECHO_C" >&6
5908 else
5909   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5910 for as_dir in $PATH
5911 do
5912   IFS=$as_save_IFS
5913   test -z "$as_dir" && as_dir=.
5914   # Account for people who put trailing slashes in PATH elements.
5915 case $as_dir/ in
5916   ./ | .// | /cC/* | \
5917   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5918   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
5919   /usr/ucb/* ) ;;
5920   *)
5921     # OSF1 and SCO ODT 3.0 have their own names for install.
5922     # Don't use installbsd from OSF since it installs stuff as root
5923     # by default.
5924     for ac_prog in ginstall scoinst install; do
5925       for ac_exec_ext in '' $ac_executable_extensions; do
5926         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
5927           if test $ac_prog = install &&
5928             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5929             # AIX install.  It has an incompatible calling convention.
5930             :
5931           elif test $ac_prog = install &&
5932             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5933             # program-specific install script used by HP pwplus--don't use.
5934             :
5935           else
5936             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5937             break 3
5938           fi
5939         fi
5940       done
5941     done
5942     ;;
5943 esac
5944 done
5945 IFS=$as_save_IFS
5946
5947
5948 fi
5949   if test "${ac_cv_path_install+set}" = set; then
5950     INSTALL=$ac_cv_path_install
5951   else
5952     # As a last resort, use the slow shell script.  Don't cache a
5953     # value for INSTALL within a source directory, because that will
5954     # break other packages using the cache if that directory is
5955     # removed, or if the value is a relative name.
5956     INSTALL=$ac_install_sh
5957   fi
5958 fi
5959 { echo "$as_me:$LINENO: result: $INSTALL" >&5
5960 echo "${ECHO_T}$INSTALL" >&6; }
5961
5962 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5963 # It thinks the first close brace ends the variable substitution.
5964 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5965
5966 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5967
5968 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5969
5970 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
5971 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
5972 LN_S=$as_ln_s
5973 if test "$LN_S" = "ln -s"; then
5974   { echo "$as_me:$LINENO: result: yes" >&5
5975 echo "${ECHO_T}yes" >&6; }
5976 else
5977   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5978 echo "${ECHO_T}no, using $LN_S" >&6; }
5979 fi
5980
5981 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5982 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
5983 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
5984 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
5985   echo $ECHO_N "(cached) $ECHO_C" >&6
5986 else
5987   cat >conftest.make <<\_ACEOF
5988 SHELL = /bin/sh
5989 all:
5990         @echo '@@@%%%=$(MAKE)=@@@%%%'
5991 _ACEOF
5992 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5993 case `${MAKE-make} -f conftest.make 2>/dev/null` in
5994   *@@@%%%=?*=@@@%%%*)
5995     eval ac_cv_prog_make_${ac_make}_set=yes;;
5996   *)
5997     eval ac_cv_prog_make_${ac_make}_set=no;;
5998 esac
5999 rm -f conftest.make
6000 fi
6001 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
6002   { echo "$as_me:$LINENO: result: yes" >&5
6003 echo "${ECHO_T}yes" >&6; }
6004   SET_MAKE=
6005 else
6006   { echo "$as_me:$LINENO: result: no" >&5
6007 echo "${ECHO_T}no" >&6; }
6008   SET_MAKE="MAKE=${MAKE-make}"
6009 fi
6010
6011 # Check whether --enable-shared was given.
6012 if test "${enable_shared+set}" = set; then
6013   enableval=$enable_shared; p=${PACKAGE-default}
6014     case $enableval in
6015     yes) enable_shared=yes ;;
6016     no) enable_shared=no ;;
6017     *)
6018       enable_shared=no
6019       # Look at the argument we got.  We use all the common list separators.
6020       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6021       for pkg in $enableval; do
6022         IFS="$lt_save_ifs"
6023         if test "X$pkg" = "X$p"; then
6024           enable_shared=yes
6025         fi
6026       done
6027       IFS="$lt_save_ifs"
6028       ;;
6029     esac
6030 else
6031   enable_shared=yes
6032 fi
6033
6034
6035 # Check whether --enable-static was given.
6036 if test "${enable_static+set}" = set; then
6037   enableval=$enable_static; p=${PACKAGE-default}
6038     case $enableval in
6039     yes) enable_static=yes ;;
6040     no) enable_static=no ;;
6041     *)
6042      enable_static=no
6043       # Look at the argument we got.  We use all the common list separators.
6044       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6045       for pkg in $enableval; do
6046         IFS="$lt_save_ifs"
6047         if test "X$pkg" = "X$p"; then
6048           enable_static=yes
6049         fi
6050       done
6051       IFS="$lt_save_ifs"
6052       ;;
6053     esac
6054 else
6055   enable_static=yes
6056 fi
6057
6058
6059 # Check whether --enable-fast-install was given.
6060 if test "${enable_fast_install+set}" = set; then
6061   enableval=$enable_fast_install; p=${PACKAGE-default}
6062     case $enableval in
6063     yes) enable_fast_install=yes ;;
6064     no) enable_fast_install=no ;;
6065     *)
6066       enable_fast_install=no
6067       # Look at the argument we got.  We use all the common list separators.
6068       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6069       for pkg in $enableval; do
6070         IFS="$lt_save_ifs"
6071         if test "X$pkg" = "X$p"; then
6072           enable_fast_install=yes
6073         fi
6074       done
6075       IFS="$lt_save_ifs"
6076       ;;
6077     esac
6078 else
6079   enable_fast_install=yes
6080 fi
6081
6082
6083 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
6084 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
6085 if test "${lt_cv_path_SED+set}" = set; then
6086   echo $ECHO_N "(cached) $ECHO_C" >&6
6087 else
6088   # Loop through the user's path and test for sed and gsed.
6089 # Then use that list of sed's as ones to test for truncation.
6090 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6091 for as_dir in $PATH
6092 do
6093   IFS=$as_save_IFS
6094   test -z "$as_dir" && as_dir=.
6095   for lt_ac_prog in sed gsed; do
6096     for ac_exec_ext in '' $ac_executable_extensions; do
6097       if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then
6098         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
6099       fi
6100     done
6101   done
6102 done
6103 IFS=$as_save_IFS
6104 lt_ac_max=0
6105 lt_ac_count=0
6106 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
6107 # along with /bin/sed that truncates output.
6108 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
6109   test ! -f $lt_ac_sed && continue
6110   cat /dev/null > conftest.in
6111   lt_ac_count=0
6112   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
6113   # Check for GNU sed and select it if it is found.
6114   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
6115     lt_cv_path_SED=$lt_ac_sed
6116     break
6117   fi
6118   while true; do
6119     cat conftest.in conftest.in >conftest.tmp
6120     mv conftest.tmp conftest.in
6121     cp conftest.in conftest.nl
6122     echo >>conftest.nl
6123     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
6124     cmp -s conftest.out conftest.nl || break
6125     # 10000 chars as input seems more than enough
6126     test $lt_ac_count -gt 10 && break
6127     lt_ac_count=`expr $lt_ac_count + 1`
6128     if test $lt_ac_count -gt $lt_ac_max; then
6129       lt_ac_max=$lt_ac_count
6130       lt_cv_path_SED=$lt_ac_sed
6131     fi
6132   done
6133 done
6134
6135 fi
6136
6137 SED=$lt_cv_path_SED
6138
6139 { echo "$as_me:$LINENO: result: $SED" >&5
6140 echo "${ECHO_T}$SED" >&6; }
6141
6142 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
6143 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
6144 if test "${ac_cv_path_GREP+set}" = set; then
6145   echo $ECHO_N "(cached) $ECHO_C" >&6
6146 else
6147   # Extract the first word of "grep ggrep" to use in msg output
6148 if test -z "$GREP"; then
6149 set dummy grep ggrep; ac_prog_name=$2
6150 if test "${ac_cv_path_GREP+set}" = set; then
6151   echo $ECHO_N "(cached) $ECHO_C" >&6
6152 else
6153   ac_path_GREP_found=false
6154 # Loop through the user's path and test for each of PROGNAME-LIST
6155 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6156 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6157 do
6158   IFS=$as_save_IFS
6159   test -z "$as_dir" && as_dir=.
6160   for ac_prog in grep ggrep; do
6161   for ac_exec_ext in '' $ac_executable_extensions; do
6162     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
6163     { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
6164     # Check for GNU ac_path_GREP and select it if it is found.
6165   # Check for GNU $ac_path_GREP
6166 case `"$ac_path_GREP" --version 2>&1` in
6167 *GNU*)
6168   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
6169 *)
6170   ac_count=0
6171   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
6172   while :
6173   do
6174     cat "conftest.in" "conftest.in" >"conftest.tmp"
6175     mv "conftest.tmp" "conftest.in"
6176     cp "conftest.in" "conftest.nl"
6177     echo 'GREP' >> "conftest.nl"
6178     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6179     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6180     ac_count=`expr $ac_count + 1`
6181     if test $ac_count -gt ${ac_path_GREP_max-0}; then
6182       # Best one so far, save it but keep looking for a better one
6183       ac_cv_path_GREP="$ac_path_GREP"
6184       ac_path_GREP_max=$ac_count
6185     fi
6186     # 10*(2^10) chars as input seems more than enough
6187     test $ac_count -gt 10 && break
6188   done
6189   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6190 esac
6191
6192
6193     $ac_path_GREP_found && break 3
6194   done
6195 done
6196
6197 done
6198 IFS=$as_save_IFS
6199
6200
6201 fi
6202
6203 GREP="$ac_cv_path_GREP"
6204 if test -z "$GREP"; then
6205   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
6206 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
6207    { (exit 1); exit 1; }; }
6208 fi
6209
6210 else
6211   ac_cv_path_GREP=$GREP
6212 fi
6213
6214
6215 fi
6216 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
6217 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
6218  GREP="$ac_cv_path_GREP"
6219
6220
6221 { echo "$as_me:$LINENO: checking for egrep" >&5
6222 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
6223 if test "${ac_cv_path_EGREP+set}" = set; then
6224   echo $ECHO_N "(cached) $ECHO_C" >&6
6225 else
6226   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
6227    then ac_cv_path_EGREP="$GREP -E"
6228    else
6229      # Extract the first word of "egrep" to use in msg output
6230 if test -z "$EGREP"; then
6231 set dummy egrep; ac_prog_name=$2
6232 if test "${ac_cv_path_EGREP+set}" = set; then
6233   echo $ECHO_N "(cached) $ECHO_C" >&6
6234 else
6235   ac_path_EGREP_found=false
6236 # Loop through the user's path and test for each of PROGNAME-LIST
6237 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6238 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6239 do
6240   IFS=$as_save_IFS
6241   test -z "$as_dir" && as_dir=.
6242   for ac_prog in egrep; do
6243   for ac_exec_ext in '' $ac_executable_extensions; do
6244     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
6245     { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
6246     # Check for GNU ac_path_EGREP and select it if it is found.
6247   # Check for GNU $ac_path_EGREP
6248 case `"$ac_path_EGREP" --version 2>&1` in
6249 *GNU*)
6250   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6251 *)
6252   ac_count=0
6253   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
6254   while :
6255   do
6256     cat "conftest.in" "conftest.in" >"conftest.tmp"
6257     mv "conftest.tmp" "conftest.in"
6258     cp "conftest.in" "conftest.nl"
6259     echo 'EGREP' >> "conftest.nl"
6260     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6261     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6262     ac_count=`expr $ac_count + 1`
6263     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6264       # Best one so far, save it but keep looking for a better one
6265       ac_cv_path_EGREP="$ac_path_EGREP"
6266       ac_path_EGREP_max=$ac_count
6267     fi
6268     # 10*(2^10) chars as input seems more than enough
6269     test $ac_count -gt 10 && break
6270   done
6271   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6272 esac
6273
6274
6275     $ac_path_EGREP_found && break 3
6276   done
6277 done
6278
6279 done
6280 IFS=$as_save_IFS
6281
6282
6283 fi
6284
6285 EGREP="$ac_cv_path_EGREP"
6286 if test -z "$EGREP"; then
6287   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
6288 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
6289    { (exit 1); exit 1; }; }
6290 fi
6291
6292 else
6293   ac_cv_path_EGREP=$EGREP
6294 fi
6295
6296
6297    fi
6298 fi
6299 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
6300 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
6301  EGREP="$ac_cv_path_EGREP"
6302
6303
6304
6305 # Check whether --with-gnu-ld was given.
6306 if test "${with_gnu_ld+set}" = set; then
6307   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6308 else
6309   with_gnu_ld=no
6310 fi
6311
6312 ac_prog=ld
6313 if test "$GCC" = yes; then
6314   # Check if gcc -print-prog-name=ld gives a path.
6315   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
6316 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
6317   case $host in
6318   *-*-mingw*)
6319     # gcc leaves a trailing carriage return which upsets mingw
6320     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6321   *)
6322     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6323   esac
6324   case $ac_prog in
6325     # Accept absolute paths.
6326     [\\/]* | ?:[\\/]*)
6327       re_direlt='/[^/][^/]*/\.\./'
6328       # Canonicalize the pathname of ld
6329       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
6330       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
6331         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
6332       done
6333       test -z "$LD" && LD="$ac_prog"
6334       ;;
6335   "")
6336     # If it fails, then pretend we aren't using GCC.
6337     ac_prog=ld
6338     ;;
6339   *)
6340     # If it is relative, then search for the first ld in PATH.
6341     with_gnu_ld=unknown
6342     ;;
6343   esac
6344 elif test "$with_gnu_ld" = yes; then
6345   { echo "$as_me:$LINENO: checking for GNU ld" >&5
6346 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
6347 else
6348   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
6349 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
6350 fi
6351 if test "${lt_cv_path_LD+set}" = set; then
6352   echo $ECHO_N "(cached) $ECHO_C" >&6
6353 else
6354   if test -z "$LD"; then
6355   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6356   for ac_dir in $PATH; do
6357     IFS="$lt_save_ifs"
6358     test -z "$ac_dir" && ac_dir=.
6359     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6360       lt_cv_path_LD="$ac_dir/$ac_prog"
6361       # Check to see if the program is GNU ld.  I'd rather use --version,
6362       # but apparently some variants of GNU ld only accept -v.
6363       # Break only if it was the GNU/non-GNU ld that we prefer.
6364       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6365       *GNU* | *'with BFD'*)
6366         test "$with_gnu_ld" != no && break
6367         ;;
6368       *)
6369         test "$with_gnu_ld" != yes && break
6370         ;;
6371       esac
6372     fi
6373   done
6374   IFS="$lt_save_ifs"
6375 else
6376   lt_cv_path_LD="$LD" # Let the user override the test with a path.
6377 fi
6378 fi
6379
6380 LD="$lt_cv_path_LD"
6381 if test -n "$LD"; then
6382   { echo "$as_me:$LINENO: result: $LD" >&5
6383 echo "${ECHO_T}$LD" >&6; }
6384 else
6385   { echo "$as_me:$LINENO: result: no" >&5
6386 echo "${ECHO_T}no" >&6; }
6387 fi
6388 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
6389 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
6390    { (exit 1); exit 1; }; }
6391 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
6392 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
6393 if test "${lt_cv_prog_gnu_ld+set}" = set; then
6394   echo $ECHO_N "(cached) $ECHO_C" >&6
6395 else
6396   # I'd rather use --version here, but apparently some GNU lds only accept -v.
6397 case `$LD -v 2>&1 </dev/null` in
6398 *GNU* | *'with BFD'*)
6399   lt_cv_prog_gnu_ld=yes
6400   ;;
6401 *)
6402   lt_cv_prog_gnu_ld=no
6403   ;;
6404 esac
6405 fi
6406 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
6407 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
6408 with_gnu_ld=$lt_cv_prog_gnu_ld
6409
6410
6411 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
6412 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
6413 if test "${lt_cv_ld_reload_flag+set}" = set; then
6414   echo $ECHO_N "(cached) $ECHO_C" >&6
6415 else
6416   lt_cv_ld_reload_flag='-r'
6417 fi
6418 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
6419 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
6420 reload_flag=$lt_cv_ld_reload_flag
6421 case $reload_flag in
6422 "" | " "*) ;;
6423 *) reload_flag=" $reload_flag" ;;
6424 esac
6425 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6426 case $host_os in
6427   darwin*)
6428     if test "$GCC" = yes; then
6429       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6430     else
6431       reload_cmds='$LD$reload_flag -o $output$reload_objs'
6432     fi
6433     ;;
6434 esac
6435
6436 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6437 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
6438 if test "${lt_cv_path_NM+set}" = set; then
6439   echo $ECHO_N "(cached) $ECHO_C" >&6
6440 else
6441   if test -n "$NM"; then
6442   # Let the user override the test.
6443   lt_cv_path_NM="$NM"
6444 else
6445   lt_nm_to_check="${ac_tool_prefix}nm"
6446   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6447     lt_nm_to_check="$lt_nm_to_check nm"
6448   fi
6449   for lt_tmp_nm in $lt_nm_to_check; do
6450     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6451     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6452       IFS="$lt_save_ifs"
6453       test -z "$ac_dir" && ac_dir=.
6454       tmp_nm="$ac_dir/$lt_tmp_nm"
6455       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6456         # Check to see if the nm accepts a BSD-compat flag.
6457         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6458         #   nm: unknown option "B" ignored
6459         # Tru64's nm complains that /dev/null is an invalid object file
6460         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6461         */dev/null* | *'Invalid file or object type'*)
6462           lt_cv_path_NM="$tmp_nm -B"
6463           break
6464           ;;
6465         *)
6466           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6467           */dev/null*)
6468             lt_cv_path_NM="$tmp_nm -p"
6469             break
6470             ;;
6471           *)
6472             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6473             continue # so that we can try to find one that supports BSD flags
6474             ;;
6475           esac
6476           ;;
6477         esac
6478       fi
6479     done
6480     IFS="$lt_save_ifs"
6481   done
6482   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6483 fi
6484 fi
6485 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6486 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
6487 NM="$lt_cv_path_NM"
6488
6489 { echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
6490 echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; }
6491 if test "${lt_cv_deplibs_check_method+set}" = set; then
6492   echo $ECHO_N "(cached) $ECHO_C" >&6
6493 else
6494   lt_cv_file_magic_cmd='$MAGIC_CMD'
6495 lt_cv_file_magic_test_file=
6496 lt_cv_deplibs_check_method='unknown'
6497 # Need to set the preceding variable on all platforms that support
6498 # interlibrary dependencies.
6499 # 'none' -- dependencies not supported.
6500 # `unknown' -- same as none, but documents that we really don't know.
6501 # 'pass_all' -- all dependencies passed with no checks.
6502 # 'test_compile' -- check by making test program.
6503 # 'file_magic [[regex]]' -- check by looking for files in library path
6504 # which responds to the $file_magic_cmd with a given extended regex.
6505 # If you have `file' or equivalent on your system and you're not sure
6506 # whether `pass_all' will *always* work, you probably want this one.
6507
6508 case $host_os in
6509 aix4* | aix5*)
6510   lt_cv_deplibs_check_method=pass_all
6511   ;;
6512
6513 beos*)
6514   lt_cv_deplibs_check_method=pass_all
6515   ;;
6516
6517 bsdi[45]*)
6518   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6519   lt_cv_file_magic_cmd='/usr/bin/file -L'
6520   lt_cv_file_magic_test_file=/shlib/libc.so
6521   ;;
6522
6523 cygwin*)
6524   # func_win32_libid is a shell function defined in ltmain.sh
6525   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6526   lt_cv_file_magic_cmd='func_win32_libid'
6527   ;;
6528
6529 mingw* | pw32*)
6530   # Base MSYS/MinGW do not provide the 'file' command needed by
6531   # func_win32_libid shell function, so use a weaker test based on 'objdump',
6532   # unless we find 'file', for example because we are cross-compiling.
6533   if ( file / ) >/dev/null 2>&1; then
6534     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6535     lt_cv_file_magic_cmd='func_win32_libid'
6536   else
6537     lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6538     lt_cv_file_magic_cmd='$OBJDUMP -f'
6539   fi
6540   ;;
6541
6542 darwin* | rhapsody*)
6543   lt_cv_deplibs_check_method=pass_all
6544   ;;
6545
6546 freebsd* | dragonfly*)
6547   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
6548     case $host_cpu in
6549     i*86 )
6550       # Not sure whether the presence of OpenBSD here was a mistake.
6551       # Let's accept both of them until this is cleared up.
6552       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6553       lt_cv_file_magic_cmd=/usr/bin/file
6554       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6555       ;;
6556     esac
6557   else
6558     lt_cv_deplibs_check_method=pass_all
6559   fi
6560   ;;
6561
6562 gnu*)
6563   lt_cv_deplibs_check_method=pass_all
6564   ;;
6565
6566 hpux10.20* | hpux11*)
6567   lt_cv_file_magic_cmd=/usr/bin/file
6568   case $host_cpu in
6569   ia64*)
6570     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6571     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6572     ;;
6573   hppa*64*)
6574     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]'
6575     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6576     ;;
6577   *)
6578     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
6579     lt_cv_file_magic_test_file=/usr/lib/libc.sl
6580     ;;
6581   esac
6582   ;;
6583
6584 interix[3-9]*)
6585   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6586   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6587   ;;
6588
6589 irix5* | irix6* | nonstopux*)
6590   case $LD in
6591   *-32|*"-32 ") libmagic=32-bit;;
6592   *-n32|*"-n32 ") libmagic=N32;;
6593   *-64|*"-64 ") libmagic=64-bit;;
6594   *) libmagic=never-match;;
6595   esac
6596   lt_cv_deplibs_check_method=pass_all
6597   ;;
6598
6599 # This must be Linux ELF.
6600 linux* | k*bsd*-gnu)
6601   lt_cv_deplibs_check_method=pass_all
6602   ;;
6603
6604 netbsd*)
6605   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
6606     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6607   else
6608     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6609   fi
6610   ;;
6611
6612 newos6*)
6613   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6614   lt_cv_file_magic_cmd=/usr/bin/file
6615   lt_cv_file_magic_test_file=/usr/lib/libnls.so
6616   ;;
6617
6618 nto-qnx*)
6619   lt_cv_deplibs_check_method=unknown
6620   ;;
6621
6622 openbsd*)
6623   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6624     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6625   else
6626     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6627   fi
6628   ;;
6629
6630 osf3* | osf4* | osf5*)
6631   lt_cv_deplibs_check_method=pass_all
6632   ;;
6633
6634 rdos*)
6635   lt_cv_deplibs_check_method=pass_all
6636   ;;
6637
6638 solaris*)
6639   lt_cv_deplibs_check_method=pass_all
6640   ;;
6641
6642 sysv4 | sysv4.3*)
6643   case $host_vendor in
6644   motorola)
6645     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]'
6646     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6647     ;;
6648   ncr)
6649     lt_cv_deplibs_check_method=pass_all
6650     ;;
6651   sequent)
6652     lt_cv_file_magic_cmd='/bin/file'
6653     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6654     ;;
6655   sni)
6656     lt_cv_file_magic_cmd='/bin/file'
6657     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6658     lt_cv_file_magic_test_file=/lib/libc.so
6659     ;;
6660   siemens)
6661     lt_cv_deplibs_check_method=pass_all
6662     ;;
6663   pc)
6664     lt_cv_deplibs_check_method=pass_all
6665     ;;
6666   esac
6667   ;;
6668
6669 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6670   lt_cv_deplibs_check_method=pass_all
6671   ;;
6672 esac
6673
6674 fi
6675 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
6676 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
6677 file_magic_cmd=$lt_cv_file_magic_cmd
6678 deplibs_check_method=$lt_cv_deplibs_check_method
6679 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6680
6681
6682
6683
6684 # If no C compiler was specified, use CC.
6685 LTCC=${LTCC-"$CC"}
6686
6687 # If no C compiler flags were specified, use CFLAGS.
6688 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6689
6690 # Allow CC to be a program name with arguments.
6691 compiler=$CC
6692
6693 # Check whether --enable-libtool-lock was given.
6694 if test "${enable_libtool_lock+set}" = set; then
6695   enableval=$enable_libtool_lock;
6696 fi
6697
6698 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6699
6700 # Some flags need to be propagated to the compiler or linker for good
6701 # libtool support.
6702 case $host in
6703 ia64-*-hpux*)
6704   # Find out which ABI we are using.
6705   echo 'int i;' > conftest.$ac_ext
6706   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6707   (eval $ac_compile) 2>&5
6708   ac_status=$?
6709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6710   (exit $ac_status); }; then
6711     case `/usr/bin/file conftest.$ac_objext` in
6712     *ELF-32*)
6713       HPUX_IA64_MODE="32"
6714       ;;
6715     *ELF-64*)
6716       HPUX_IA64_MODE="64"
6717       ;;
6718     esac
6719   fi
6720   rm -rf conftest*
6721   ;;
6722 *-*-irix6*)
6723   # Find out which ABI we are using.
6724   echo '#line 6724 "configure"' > conftest.$ac_ext
6725   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6726   (eval $ac_compile) 2>&5
6727   ac_status=$?
6728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6729   (exit $ac_status); }; then
6730    if test "$lt_cv_prog_gnu_ld" = yes; then
6731     case `/usr/bin/file conftest.$ac_objext` in
6732     *32-bit*)
6733       LD="${LD-ld} -melf32bsmip"
6734       ;;
6735     *N32*)
6736       LD="${LD-ld} -melf32bmipn32"
6737       ;;
6738     *64-bit*)
6739       LD="${LD-ld} -melf64bmip"
6740       ;;
6741     esac
6742    else
6743     case `/usr/bin/file conftest.$ac_objext` in
6744     *32-bit*)
6745       LD="${LD-ld} -32"
6746       ;;
6747     *N32*)
6748       LD="${LD-ld} -n32"
6749       ;;
6750     *64-bit*)
6751       LD="${LD-ld} -64"
6752       ;;
6753     esac
6754    fi
6755   fi
6756   rm -rf conftest*
6757   ;;
6758
6759 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6760 s390*-*linux*|sparc*-*linux*)
6761   # Find out which ABI we are using.
6762   echo 'int i;' > conftest.$ac_ext
6763   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6764   (eval $ac_compile) 2>&5
6765   ac_status=$?
6766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6767   (exit $ac_status); }; then
6768     case `/usr/bin/file conftest.o` in
6769     *32-bit*)
6770       case $host in
6771         x86_64-*kfreebsd*-gnu)
6772           LD="${LD-ld} -m elf_i386_fbsd"
6773           ;;
6774         x86_64-*linux*)
6775           LD="${LD-ld} -m elf_i386"
6776           ;;
6777         ppc64-*linux*|powerpc64-*linux*)
6778           LD="${LD-ld} -m elf32ppclinux"
6779           ;;
6780         s390x-*linux*)
6781           LD="${LD-ld} -m elf_s390"
6782           ;;
6783         sparc64-*linux*)
6784           LD="${LD-ld} -m elf32_sparc"
6785           ;;
6786       esac
6787       ;;
6788     *64-bit*)
6789       libsuff=64
6790       case $host in
6791         x86_64-*kfreebsd*-gnu)
6792           LD="${LD-ld} -m elf_x86_64_fbsd"
6793           ;;
6794         x86_64-*linux*)
6795           LD="${LD-ld} -m elf_x86_64"
6796           ;;
6797         ppc*-*linux*|powerpc*-*linux*)
6798           LD="${LD-ld} -m elf64ppc"
6799           ;;
6800         s390*-*linux*)
6801           LD="${LD-ld} -m elf64_s390"
6802           ;;
6803         sparc*-*linux*)
6804           LD="${LD-ld} -m elf64_sparc"
6805           ;;
6806       esac
6807       ;;
6808     esac
6809   fi
6810   rm -rf conftest*
6811   ;;
6812
6813 *-*-sco3.2v5*)
6814   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6815   SAVE_CFLAGS="$CFLAGS"
6816   CFLAGS="$CFLAGS -belf"
6817   { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
6818 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
6819 if test "${lt_cv_cc_needs_belf+set}" = set; then
6820   echo $ECHO_N "(cached) $ECHO_C" >&6
6821 else
6822   ac_ext=c
6823 ac_cpp='$CPP $CPPFLAGS'
6824 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6825 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6826 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6827
6828      cat >conftest.$ac_ext <<_ACEOF
6829 /* confdefs.h.  */
6830 _ACEOF
6831 cat confdefs.h >>conftest.$ac_ext
6832 cat >>conftest.$ac_ext <<_ACEOF
6833 /* end confdefs.h.  */
6834
6835 int
6836 main ()
6837 {
6838
6839   ;
6840   return 0;
6841 }
6842 _ACEOF
6843 rm -f conftest.$ac_objext conftest$ac_exeext
6844 if { (ac_try="$ac_link"
6845 case "(($ac_try" in
6846   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6847   *) ac_try_echo=$ac_try;;
6848 esac
6849 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6850   (eval "$ac_link") 2>conftest.er1
6851   ac_status=$?
6852   grep -v '^ *+' conftest.er1 >conftest.err
6853   rm -f conftest.er1
6854   cat conftest.err >&5
6855   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6856   (exit $ac_status); } && {
6857          test -z "$ac_c_werror_flag" ||
6858          test ! -s conftest.err
6859        } && test -s conftest$ac_exeext &&
6860        $as_test_x conftest$ac_exeext; then
6861   lt_cv_cc_needs_belf=yes
6862 else
6863   echo "$as_me: failed program was:" >&5
6864 sed 's/^/| /' conftest.$ac_ext >&5
6865
6866         lt_cv_cc_needs_belf=no
6867 fi
6868
6869 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6870       conftest$ac_exeext conftest.$ac_ext
6871      ac_ext=c
6872 ac_cpp='$CPP $CPPFLAGS'
6873 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6874 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6875 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6876
6877 fi
6878 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
6879 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
6880   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6881     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6882     CFLAGS="$SAVE_CFLAGS"
6883   fi
6884   ;;
6885 sparc*-*solaris*)
6886   # Find out which ABI we are using.
6887   echo 'int i;' > conftest.$ac_ext
6888   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6889   (eval $ac_compile) 2>&5
6890   ac_status=$?
6891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6892   (exit $ac_status); }; then
6893     case `/usr/bin/file conftest.o` in
6894     *64-bit*)
6895       case $lt_cv_prog_gnu_ld in
6896       yes*) LD="${LD-ld} -m elf64_sparc" ;;
6897       *)    LD="${LD-ld} -64" ;;
6898       esac
6899       ;;
6900     esac
6901   fi
6902   rm -rf conftest*
6903   ;;
6904
6905
6906 esac
6907
6908 need_locks="$enable_libtool_lock"
6909
6910
6911
6912 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6913 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
6914 if test "${ac_cv_header_stdc+set}" = set; then
6915   echo $ECHO_N "(cached) $ECHO_C" >&6
6916 else
6917   cat >conftest.$ac_ext <<_ACEOF
6918 /* confdefs.h.  */
6919 _ACEOF
6920 cat confdefs.h >>conftest.$ac_ext
6921 cat >>conftest.$ac_ext <<_ACEOF
6922 /* end confdefs.h.  */
6923 #include <stdlib.h>
6924 #include <stdarg.h>
6925 #include <string.h>
6926 #include <float.h>
6927
6928 int
6929 main ()
6930 {
6931
6932   ;
6933   return 0;
6934 }
6935 _ACEOF
6936 rm -f conftest.$ac_objext
6937 if { (ac_try="$ac_compile"
6938 case "(($ac_try" in
6939   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6940   *) ac_try_echo=$ac_try;;
6941 esac
6942 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6943   (eval "$ac_compile") 2>conftest.er1
6944   ac_status=$?
6945   grep -v '^ *+' conftest.er1 >conftest.err
6946   rm -f conftest.er1
6947   cat conftest.err >&5
6948   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6949   (exit $ac_status); } && {
6950          test -z "$ac_c_werror_flag" ||
6951          test ! -s conftest.err
6952        } && test -s conftest.$ac_objext; then
6953   ac_cv_header_stdc=yes
6954 else
6955   echo "$as_me: failed program was:" >&5
6956 sed 's/^/| /' conftest.$ac_ext >&5
6957
6958         ac_cv_header_stdc=no
6959 fi
6960
6961 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6962
6963 if test $ac_cv_header_stdc = yes; then
6964   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6965   cat >conftest.$ac_ext <<_ACEOF
6966 /* confdefs.h.  */
6967 _ACEOF
6968 cat confdefs.h >>conftest.$ac_ext
6969 cat >>conftest.$ac_ext <<_ACEOF
6970 /* end confdefs.h.  */
6971 #include <string.h>
6972
6973 _ACEOF
6974 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6975   $EGREP "memchr" >/dev/null 2>&1; then
6976   :
6977 else
6978   ac_cv_header_stdc=no
6979 fi
6980 rm -f conftest*
6981
6982 fi
6983
6984 if test $ac_cv_header_stdc = yes; then
6985   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6986   cat >conftest.$ac_ext <<_ACEOF
6987 /* confdefs.h.  */
6988 _ACEOF
6989 cat confdefs.h >>conftest.$ac_ext
6990 cat >>conftest.$ac_ext <<_ACEOF
6991 /* end confdefs.h.  */
6992 #include <stdlib.h>
6993
6994 _ACEOF
6995 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6996   $EGREP "free" >/dev/null 2>&1; then
6997   :
6998 else
6999   ac_cv_header_stdc=no
7000 fi
7001 rm -f conftest*
7002
7003 fi
7004
7005 if test $ac_cv_header_stdc = yes; then
7006   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7007   if test "$cross_compiling" = yes; then
7008   :
7009 else
7010   cat >conftest.$ac_ext <<_ACEOF
7011 /* confdefs.h.  */
7012 _ACEOF
7013 cat confdefs.h >>conftest.$ac_ext
7014 cat >>conftest.$ac_ext <<_ACEOF
7015 /* end confdefs.h.  */
7016 #include <ctype.h>
7017 #include <stdlib.h>
7018 #if ((' ' & 0x0FF) == 0x020)
7019 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7020 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7021 #else
7022 # define ISLOWER(c) \
7023                    (('a' <= (c) && (c) <= 'i') \
7024                      || ('j' <= (c) && (c) <= 'r') \
7025                      || ('s' <= (c) && (c) <= 'z'))
7026 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7027 #endif
7028
7029 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7030 int
7031 main ()
7032 {
7033   int i;
7034   for (i = 0; i < 256; i++)
7035     if (XOR (islower (i), ISLOWER (i))
7036         || toupper (i) != TOUPPER (i))
7037       return 2;
7038   return 0;
7039 }
7040 _ACEOF
7041 rm -f conftest$ac_exeext
7042 if { (ac_try="$ac_link"
7043 case "(($ac_try" in
7044   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7045   *) ac_try_echo=$ac_try;;
7046 esac
7047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7048   (eval "$ac_link") 2>&5
7049   ac_status=$?
7050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7051   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7052   { (case "(($ac_try" in
7053   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7054   *) ac_try_echo=$ac_try;;
7055 esac
7056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7057   (eval "$ac_try") 2>&5
7058   ac_status=$?
7059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7060   (exit $ac_status); }; }; then
7061   :
7062 else
7063   echo "$as_me: program exited with status $ac_status" >&5
7064 echo "$as_me: failed program was:" >&5
7065 sed 's/^/| /' conftest.$ac_ext >&5
7066
7067 ( exit $ac_status )
7068 ac_cv_header_stdc=no
7069 fi
7070 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7071 fi
7072
7073
7074 fi
7075 fi
7076 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7077 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
7078 if test $ac_cv_header_stdc = yes; then
7079
7080 cat >>confdefs.h <<\_ACEOF
7081 #define STDC_HEADERS 1
7082 _ACEOF
7083
7084 fi
7085
7086 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7087
7088
7089
7090
7091
7092
7093
7094
7095
7096 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7097                   inttypes.h stdint.h unistd.h
7098 do
7099 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7100 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7101 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7102 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7103   echo $ECHO_N "(cached) $ECHO_C" >&6
7104 else
7105   cat >conftest.$ac_ext <<_ACEOF
7106 /* confdefs.h.  */
7107 _ACEOF
7108 cat confdefs.h >>conftest.$ac_ext
7109 cat >>conftest.$ac_ext <<_ACEOF
7110 /* end confdefs.h.  */
7111 $ac_includes_default
7112
7113 #include <$ac_header>
7114 _ACEOF
7115 rm -f conftest.$ac_objext
7116 if { (ac_try="$ac_compile"
7117 case "(($ac_try" in
7118   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7119   *) ac_try_echo=$ac_try;;
7120 esac
7121 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7122   (eval "$ac_compile") 2>conftest.er1
7123   ac_status=$?
7124   grep -v '^ *+' conftest.er1 >conftest.err
7125   rm -f conftest.er1
7126   cat conftest.err >&5
7127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7128   (exit $ac_status); } && {
7129          test -z "$ac_c_werror_flag" ||
7130          test ! -s conftest.err
7131        } && test -s conftest.$ac_objext; then
7132   eval "$as_ac_Header=yes"
7133 else
7134   echo "$as_me: failed program was:" >&5
7135 sed 's/^/| /' conftest.$ac_ext >&5
7136
7137         eval "$as_ac_Header=no"
7138 fi
7139
7140 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7141 fi
7142 ac_res=`eval echo '${'$as_ac_Header'}'`
7143                { echo "$as_me:$LINENO: result: $ac_res" >&5
7144 echo "${ECHO_T}$ac_res" >&6; }
7145 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7146   cat >>confdefs.h <<_ACEOF
7147 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7148 _ACEOF
7149
7150 fi
7151
7152 done
7153
7154
7155
7156 for ac_header in dlfcn.h
7157 do
7158 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7159 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7160   { echo "$as_me:$LINENO: checking for $ac_header" >&5
7161 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7162 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7163   echo $ECHO_N "(cached) $ECHO_C" >&6
7164 fi
7165 ac_res=`eval echo '${'$as_ac_Header'}'`
7166                { echo "$as_me:$LINENO: result: $ac_res" >&5
7167 echo "${ECHO_T}$ac_res" >&6; }
7168 else
7169   # Is the header compilable?
7170 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
7171 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
7172 cat >conftest.$ac_ext <<_ACEOF
7173 /* confdefs.h.  */
7174 _ACEOF
7175 cat confdefs.h >>conftest.$ac_ext
7176 cat >>conftest.$ac_ext <<_ACEOF
7177 /* end confdefs.h.  */
7178 $ac_includes_default
7179 #include <$ac_header>
7180 _ACEOF
7181 rm -f conftest.$ac_objext
7182 if { (ac_try="$ac_compile"
7183 case "(($ac_try" in
7184   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7185   *) ac_try_echo=$ac_try;;
7186 esac
7187 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7188   (eval "$ac_compile") 2>conftest.er1
7189   ac_status=$?
7190   grep -v '^ *+' conftest.er1 >conftest.err
7191   rm -f conftest.er1
7192   cat conftest.err >&5
7193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7194   (exit $ac_status); } && {
7195          test -z "$ac_c_werror_flag" ||
7196          test ! -s conftest.err
7197        } && test -s conftest.$ac_objext; then
7198   ac_header_compiler=yes
7199 else
7200   echo "$as_me: failed program was:" >&5
7201 sed 's/^/| /' conftest.$ac_ext >&5
7202
7203         ac_header_compiler=no
7204 fi
7205
7206 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7207 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7208 echo "${ECHO_T}$ac_header_compiler" >&6; }
7209
7210 # Is the header present?
7211 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
7212 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
7213 cat >conftest.$ac_ext <<_ACEOF
7214 /* confdefs.h.  */
7215 _ACEOF
7216 cat confdefs.h >>conftest.$ac_ext
7217 cat >>conftest.$ac_ext <<_ACEOF
7218 /* end confdefs.h.  */
7219 #include <$ac_header>
7220 _ACEOF
7221 if { (ac_try="$ac_cpp conftest.$ac_ext"
7222 case "(($ac_try" in
7223   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7224   *) ac_try_echo=$ac_try;;
7225 esac
7226 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7227   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7228   ac_status=$?
7229   grep -v '^ *+' conftest.er1 >conftest.err
7230   rm -f conftest.er1
7231   cat conftest.err >&5
7232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7233   (exit $ac_status); } >/dev/null && {
7234          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7235          test ! -s conftest.err
7236        }; then
7237   ac_header_preproc=yes
7238 else
7239   echo "$as_me: failed program was:" >&5
7240 sed 's/^/| /' conftest.$ac_ext >&5
7241
7242   ac_header_preproc=no
7243 fi
7244
7245 rm -f conftest.err conftest.$ac_ext
7246 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7247 echo "${ECHO_T}$ac_header_preproc" >&6; }
7248
7249 # So?  What about this header?
7250 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7251   yes:no: )
7252     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7253 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7254     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7255 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7256     ac_header_preproc=yes
7257     ;;
7258   no:yes:* )
7259     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7260 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7261     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
7262 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
7263     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7264 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7265     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
7266 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
7267     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7268 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7269     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7270 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7271     ( cat <<\_ASBOX
7272 ## ---------------------------------------- ##
7273 ## Report this to linux-nfs@vger.kernel.org ##
7274 ## ---------------------------------------- ##
7275 _ASBOX
7276      ) | sed "s/^/$as_me: WARNING:     /" >&2
7277     ;;
7278 esac
7279 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7280 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7281 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7282   echo $ECHO_N "(cached) $ECHO_C" >&6
7283 else
7284   eval "$as_ac_Header=\$ac_header_preproc"
7285 fi
7286 ac_res=`eval echo '${'$as_ac_Header'}'`
7287                { echo "$as_me:$LINENO: result: $ac_res" >&5
7288 echo "${ECHO_T}$ac_res" >&6; }
7289
7290 fi
7291 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7292   cat >>confdefs.h <<_ACEOF
7293 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7294 _ACEOF
7295
7296 fi
7297
7298 done
7299
7300
7301
7302 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
7303     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
7304     (test "X$CXX" != "Xg++"))) ; then
7305   ac_ext=cpp
7306 ac_cpp='$CXXCPP $CPPFLAGS'
7307 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7308 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7309 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7310 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
7311 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
7312 if test -z "$CXXCPP"; then
7313   if test "${ac_cv_prog_CXXCPP+set}" = set; then
7314   echo $ECHO_N "(cached) $ECHO_C" >&6
7315 else
7316       # Double quotes because CXXCPP needs to be expanded
7317     for CXXCPP in "$CXX -E" "/lib/cpp"
7318     do
7319       ac_preproc_ok=false
7320 for ac_cxx_preproc_warn_flag in '' yes
7321 do
7322   # Use a header file that comes with gcc, so configuring glibc
7323   # with a fresh cross-compiler works.
7324   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7325   # <limits.h> exists even on freestanding compilers.
7326   # On the NeXT, cc -E runs the code through the compiler's parser,
7327   # not just through cpp. "Syntax error" is here to catch this case.
7328   cat >conftest.$ac_ext <<_ACEOF
7329 /* confdefs.h.  */
7330 _ACEOF
7331 cat confdefs.h >>conftest.$ac_ext
7332 cat >>conftest.$ac_ext <<_ACEOF
7333 /* end confdefs.h.  */
7334 #ifdef __STDC__
7335 # include <limits.h>
7336 #else
7337 # include <assert.h>
7338 #endif
7339                      Syntax error
7340 _ACEOF
7341 if { (ac_try="$ac_cpp conftest.$ac_ext"
7342 case "(($ac_try" in
7343   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7344   *) ac_try_echo=$ac_try;;
7345 esac
7346 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7347   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7348   ac_status=$?
7349   grep -v '^ *+' conftest.er1 >conftest.err
7350   rm -f conftest.er1
7351   cat conftest.err >&5
7352   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7353   (exit $ac_status); } >/dev/null && {
7354          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
7355          test ! -s conftest.err
7356        }; then
7357   :
7358 else
7359   echo "$as_me: failed program was:" >&5
7360 sed 's/^/| /' conftest.$ac_ext >&5
7361
7362   # Broken: fails on valid input.
7363 continue
7364 fi
7365
7366 rm -f conftest.err conftest.$ac_ext
7367
7368   # OK, works on sane cases.  Now check whether nonexistent headers
7369   # can be detected and how.
7370   cat >conftest.$ac_ext <<_ACEOF
7371 /* confdefs.h.  */
7372 _ACEOF
7373 cat confdefs.h >>conftest.$ac_ext
7374 cat >>conftest.$ac_ext <<_ACEOF
7375 /* end confdefs.h.  */
7376 #include <ac_nonexistent.h>
7377 _ACEOF
7378 if { (ac_try="$ac_cpp conftest.$ac_ext"
7379 case "(($ac_try" in
7380   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7381   *) ac_try_echo=$ac_try;;
7382 esac
7383 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7384   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7385   ac_status=$?
7386   grep -v '^ *+' conftest.er1 >conftest.err
7387   rm -f conftest.er1
7388   cat conftest.err >&5
7389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7390   (exit $ac_status); } >/dev/null && {
7391          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
7392          test ! -s conftest.err
7393        }; then
7394   # Broken: success on invalid input.
7395 continue
7396 else
7397   echo "$as_me: failed program was:" >&5
7398 sed 's/^/| /' conftest.$ac_ext >&5
7399
7400   # Passes both tests.
7401 ac_preproc_ok=:
7402 break
7403 fi
7404
7405 rm -f conftest.err conftest.$ac_ext
7406
7407 done
7408 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7409 rm -f conftest.err conftest.$ac_ext
7410 if $ac_preproc_ok; then
7411   break
7412 fi
7413
7414     done
7415     ac_cv_prog_CXXCPP=$CXXCPP
7416
7417 fi
7418   CXXCPP=$ac_cv_prog_CXXCPP
7419 else
7420   ac_cv_prog_CXXCPP=$CXXCPP
7421 fi
7422 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
7423 echo "${ECHO_T}$CXXCPP" >&6; }
7424 ac_preproc_ok=false
7425 for ac_cxx_preproc_warn_flag in '' yes
7426 do
7427   # Use a header file that comes with gcc, so configuring glibc
7428   # with a fresh cross-compiler works.
7429   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7430   # <limits.h> exists even on freestanding compilers.
7431   # On the NeXT, cc -E runs the code through the compiler's parser,
7432   # not just through cpp. "Syntax error" is here to catch this case.
7433   cat >conftest.$ac_ext <<_ACEOF
7434 /* confdefs.h.  */
7435 _ACEOF
7436 cat confdefs.h >>conftest.$ac_ext
7437 cat >>conftest.$ac_ext <<_ACEOF
7438 /* end confdefs.h.  */
7439 #ifdef __STDC__
7440 # include <limits.h>
7441 #else
7442 # include <assert.h>
7443 #endif
7444                      Syntax error
7445 _ACEOF
7446 if { (ac_try="$ac_cpp conftest.$ac_ext"
7447 case "(($ac_try" in
7448   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7449   *) ac_try_echo=$ac_try;;
7450 esac
7451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7452   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7453   ac_status=$?
7454   grep -v '^ *+' conftest.er1 >conftest.err
7455   rm -f conftest.er1
7456   cat conftest.err >&5
7457   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7458   (exit $ac_status); } >/dev/null && {
7459          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
7460          test ! -s conftest.err
7461        }; then
7462   :
7463 else
7464   echo "$as_me: failed program was:" >&5
7465 sed 's/^/| /' conftest.$ac_ext >&5
7466
7467   # Broken: fails on valid input.
7468 continue
7469 fi
7470
7471 rm -f conftest.err conftest.$ac_ext
7472
7473   # OK, works on sane cases.  Now check whether nonexistent headers
7474   # can be detected and how.
7475   cat >conftest.$ac_ext <<_ACEOF
7476 /* confdefs.h.  */
7477 _ACEOF
7478 cat confdefs.h >>conftest.$ac_ext
7479 cat >>conftest.$ac_ext <<_ACEOF
7480 /* end confdefs.h.  */
7481 #include <ac_nonexistent.h>
7482 _ACEOF
7483 if { (ac_try="$ac_cpp conftest.$ac_ext"
7484 case "(($ac_try" in
7485   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7486   *) ac_try_echo=$ac_try;;
7487 esac
7488 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7489   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7490   ac_status=$?
7491   grep -v '^ *+' conftest.er1 >conftest.err
7492   rm -f conftest.er1
7493   cat conftest.err >&5
7494   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7495   (exit $ac_status); } >/dev/null && {
7496          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
7497          test ! -s conftest.err
7498        }; then
7499   # Broken: success on invalid input.
7500 continue
7501 else
7502   echo "$as_me: failed program was:" >&5
7503 sed 's/^/| /' conftest.$ac_ext >&5
7504
7505   # Passes both tests.
7506 ac_preproc_ok=:
7507 break
7508 fi
7509
7510 rm -f conftest.err conftest.$ac_ext
7511
7512 done
7513 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7514 rm -f conftest.err conftest.$ac_ext
7515 if $ac_preproc_ok; then
7516   :
7517 else
7518   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
7519 See \`config.log' for more details." >&5
7520 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
7521 See \`config.log' for more details." >&2;}
7522    { (exit 1); exit 1; }; }
7523 fi
7524
7525 ac_ext=cpp
7526 ac_cpp='$CXXCPP $CPPFLAGS'
7527 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7528 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7529 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7530
7531 fi
7532
7533
7534 ac_ext=f
7535 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
7536 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7537 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
7538 if test -n "$ac_tool_prefix"; then
7539   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
7540   do
7541     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7542 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7543 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7544 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7545 if test "${ac_cv_prog_F77+set}" = set; then
7546   echo $ECHO_N "(cached) $ECHO_C" >&6
7547 else
7548   if test -n "$F77"; then
7549   ac_cv_prog_F77="$F77" # Let the user override the test.
7550 else
7551 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7552 for as_dir in $PATH
7553 do
7554   IFS=$as_save_IFS
7555   test -z "$as_dir" && as_dir=.
7556   for ac_exec_ext in '' $ac_executable_extensions; do
7557   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7558     ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
7559     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7560     break 2
7561   fi
7562 done
7563 done
7564 IFS=$as_save_IFS
7565
7566 fi
7567 fi
7568 F77=$ac_cv_prog_F77
7569 if test -n "$F77"; then
7570   { echo "$as_me:$LINENO: result: $F77" >&5
7571 echo "${ECHO_T}$F77" >&6; }
7572 else
7573   { echo "$as_me:$LINENO: result: no" >&5
7574 echo "${ECHO_T}no" >&6; }
7575 fi
7576
7577
7578     test -n "$F77" && break
7579   done
7580 fi
7581 if test -z "$F77"; then
7582   ac_ct_F77=$F77
7583   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
7584 do
7585   # Extract the first word of "$ac_prog", so it can be a program name with args.
7586 set dummy $ac_prog; ac_word=$2
7587 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7588 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7589 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
7590   echo $ECHO_N "(cached) $ECHO_C" >&6
7591 else
7592   if test -n "$ac_ct_F77"; then
7593   ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
7594 else
7595 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7596 for as_dir in $PATH
7597 do
7598   IFS=$as_save_IFS
7599   test -z "$as_dir" && as_dir=.
7600   for ac_exec_ext in '' $ac_executable_extensions; do
7601   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7602     ac_cv_prog_ac_ct_F77="$ac_prog"
7603     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7604     break 2
7605   fi
7606 done
7607 done
7608 IFS=$as_save_IFS
7609
7610 fi
7611 fi
7612 ac_ct_F77=$ac_cv_prog_ac_ct_F77
7613 if test -n "$ac_ct_F77"; then
7614   { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
7615 echo "${ECHO_T}$ac_ct_F77" >&6; }
7616 else
7617   { echo "$as_me:$LINENO: result: no" >&5
7618 echo "${ECHO_T}no" >&6; }
7619 fi
7620
7621
7622   test -n "$ac_ct_F77" && break
7623 done
7624
7625   if test "x$ac_ct_F77" = x; then
7626     F77=""
7627   else
7628     case $cross_compiling:$ac_tool_warned in
7629 yes:)
7630 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7631 whose name does not start with the host triplet.  If you think this
7632 configuration is useful to you, please write to autoconf@gnu.org." >&5
7633 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7634 whose name does not start with the host triplet.  If you think this
7635 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7636 ac_tool_warned=yes ;;
7637 esac
7638     F77=$ac_ct_F77
7639   fi
7640 fi
7641
7642
7643 # Provide some information about the compiler.
7644 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
7645 ac_compiler=`set X $ac_compile; echo $2`
7646 { (ac_try="$ac_compiler --version >&5"
7647 case "(($ac_try" in
7648   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7649   *) ac_try_echo=$ac_try;;
7650 esac
7651 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7652   (eval "$ac_compiler --version >&5") 2>&5
7653   ac_status=$?
7654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7655   (exit $ac_status); }
7656 { (ac_try="$ac_compiler -v >&5"
7657 case "(($ac_try" in
7658   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7659   *) ac_try_echo=$ac_try;;
7660 esac
7661 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7662   (eval "$ac_compiler -v >&5") 2>&5
7663   ac_status=$?
7664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7665   (exit $ac_status); }
7666 { (ac_try="$ac_compiler -V >&5"
7667 case "(($ac_try" in
7668   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7669   *) ac_try_echo=$ac_try;;
7670 esac
7671 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7672   (eval "$ac_compiler -V >&5") 2>&5
7673   ac_status=$?
7674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7675   (exit $ac_status); }
7676 rm -f a.out
7677
7678 # If we don't use `.F' as extension, the preprocessor is not run on the
7679 # input file.  (Note that this only needs to work for GNU compilers.)
7680 ac_save_ext=$ac_ext
7681 ac_ext=F
7682 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
7683 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
7684 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
7685   echo $ECHO_N "(cached) $ECHO_C" >&6
7686 else
7687   cat >conftest.$ac_ext <<_ACEOF
7688       program main
7689 #ifndef __GNUC__
7690        choke me
7691 #endif
7692
7693       end
7694 _ACEOF
7695 rm -f conftest.$ac_objext
7696 if { (ac_try="$ac_compile"
7697 case "(($ac_try" in
7698   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7699   *) ac_try_echo=$ac_try;;
7700 esac
7701 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7702   (eval "$ac_compile") 2>conftest.er1
7703   ac_status=$?
7704   grep -v '^ *+' conftest.er1 >conftest.err
7705   rm -f conftest.er1
7706   cat conftest.err >&5
7707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7708   (exit $ac_status); } && {
7709          test -z "$ac_f77_werror_flag" ||
7710          test ! -s conftest.err
7711        } && test -s conftest.$ac_objext; then
7712   ac_compiler_gnu=yes
7713 else
7714   echo "$as_me: failed program was:" >&5
7715 sed 's/^/| /' conftest.$ac_ext >&5
7716
7717         ac_compiler_gnu=no
7718 fi
7719
7720 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7721 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
7722
7723 fi
7724 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
7725 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
7726 ac_ext=$ac_save_ext
7727 ac_test_FFLAGS=${FFLAGS+set}
7728 ac_save_FFLAGS=$FFLAGS
7729 FFLAGS=
7730 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
7731 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
7732 if test "${ac_cv_prog_f77_g+set}" = set; then
7733   echo $ECHO_N "(cached) $ECHO_C" >&6
7734 else
7735   FFLAGS=-g
7736 cat >conftest.$ac_ext <<_ACEOF
7737       program main
7738
7739       end
7740 _ACEOF
7741 rm -f conftest.$ac_objext
7742 if { (ac_try="$ac_compile"
7743 case "(($ac_try" in
7744   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7745   *) ac_try_echo=$ac_try;;
7746 esac
7747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7748   (eval "$ac_compile") 2>conftest.er1
7749   ac_status=$?
7750   grep -v '^ *+' conftest.er1 >conftest.err
7751   rm -f conftest.er1
7752   cat conftest.err >&5
7753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7754   (exit $ac_status); } && {
7755          test -z "$ac_f77_werror_flag" ||
7756          test ! -s conftest.err
7757        } && test -s conftest.$ac_objext; then
7758   ac_cv_prog_f77_g=yes
7759 else
7760   echo "$as_me: failed program was:" >&5
7761 sed 's/^/| /' conftest.$ac_ext >&5
7762
7763         ac_cv_prog_f77_g=no
7764 fi
7765
7766 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7767
7768 fi
7769 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
7770 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
7771 if test "$ac_test_FFLAGS" = set; then
7772   FFLAGS=$ac_save_FFLAGS
7773 elif test $ac_cv_prog_f77_g = yes; then
7774   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
7775     FFLAGS="-g -O2"
7776   else
7777     FFLAGS="-g"
7778   fi
7779 else
7780   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
7781     FFLAGS="-O2"
7782   else
7783     FFLAGS=
7784   fi
7785 fi
7786
7787 G77=`test $ac_compiler_gnu = yes && echo yes`
7788 ac_ext=c
7789 ac_cpp='$CPP $CPPFLAGS'
7790 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7791 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7792 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7793
7794
7795
7796 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
7797
7798 # find the maximum length of command line arguments
7799 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
7800 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
7801 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
7802   echo $ECHO_N "(cached) $ECHO_C" >&6
7803 else
7804     i=0
7805   teststring="ABCD"
7806
7807   case $build_os in
7808   msdosdjgpp*)
7809     # On DJGPP, this test can blow up pretty badly due to problems in libc
7810     # (any single argument exceeding 2000 bytes causes a buffer overrun
7811     # during glob expansion).  Even if it were fixed, the result of this
7812     # check would be larger than it should be.
7813     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
7814     ;;
7815
7816   gnu*)
7817     # Under GNU Hurd, this test is not required because there is
7818     # no limit to the length of command line arguments.
7819     # Libtool will interpret -1 as no limit whatsoever
7820     lt_cv_sys_max_cmd_len=-1;
7821     ;;
7822
7823   cygwin* | mingw*)
7824     # On Win9x/ME, this test blows up -- it succeeds, but takes
7825     # about 5 minutes as the teststring grows exponentially.
7826     # Worse, since 9x/ME are not pre-emptively multitasking,
7827     # you end up with a "frozen" computer, even though with patience
7828     # the test eventually succeeds (with a max line length of 256k).
7829     # Instead, let's just punt: use the minimum linelength reported by
7830     # all of the supported platforms: 8192 (on NT/2K/XP).
7831     lt_cv_sys_max_cmd_len=8192;
7832     ;;
7833
7834   amigaos*)
7835     # On AmigaOS with pdksh, this test takes hours, literally.
7836     # So we just punt and use a minimum line length of 8192.
7837     lt_cv_sys_max_cmd_len=8192;
7838     ;;
7839
7840   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
7841     # This has been around since 386BSD, at least.  Likely further.
7842     if test -x /sbin/sysctl; then
7843       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7844     elif test -x /usr/sbin/sysctl; then
7845       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7846     else
7847       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
7848     fi
7849     # And add a safety zone
7850     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7851     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7852     ;;
7853
7854   interix*)
7855     # We know the value 262144 and hardcode it with a safety zone (like BSD)
7856     lt_cv_sys_max_cmd_len=196608
7857     ;;
7858
7859   osf*)
7860     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7861     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7862     # nice to cause kernel panics so lets avoid the loop below.
7863     # First set a reasonable default.
7864     lt_cv_sys_max_cmd_len=16384
7865     #
7866     if test -x /sbin/sysconfig; then
7867       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7868         *1*) lt_cv_sys_max_cmd_len=-1 ;;
7869       esac
7870     fi
7871     ;;
7872   sco3.2v5*)
7873     lt_cv_sys_max_cmd_len=102400
7874     ;;
7875   sysv5* | sco5v6* | sysv4.2uw2*)
7876     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
7877     if test -n "$kargmax"; then
7878       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
7879     else
7880       lt_cv_sys_max_cmd_len=32768
7881     fi
7882     ;;
7883   *)
7884     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
7885     if test -n "$lt_cv_sys_max_cmd_len"; then
7886       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7887       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7888     else
7889       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7890       while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
7891                = "XX$teststring") >/dev/null 2>&1 &&
7892               new_result=`expr "X$teststring" : ".*" 2>&1` &&
7893               lt_cv_sys_max_cmd_len=$new_result &&
7894               test $i != 17 # 1/2 MB should be enough
7895       do
7896         i=`expr $i + 1`
7897         teststring=$teststring$teststring
7898       done
7899       teststring=
7900       # Add a significant safety factor because C++ compilers can tack on massive
7901       # amounts of additional arguments before passing them to the linker.
7902       # It appears as though 1/2 is a usable value.
7903       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7904     fi
7905     ;;
7906   esac
7907
7908 fi
7909
7910 if test -n $lt_cv_sys_max_cmd_len ; then
7911   { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
7912 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
7913 else
7914   { echo "$as_me:$LINENO: result: none" >&5
7915 echo "${ECHO_T}none" >&6; }
7916 fi
7917
7918
7919
7920
7921
7922 # Check for command to grab the raw symbol name followed by C symbol from nm.
7923 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
7924 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
7925 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
7926   echo $ECHO_N "(cached) $ECHO_C" >&6
7927 else
7928
7929 # These are sane defaults that work on at least a few old systems.
7930 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
7931
7932 # Character class describing NM global symbol codes.
7933 symcode='[BCDEGRST]'
7934
7935 # Regexp to match symbols that can be accessed directly from C.
7936 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7937
7938 # Transform an extracted symbol line into a proper C declaration
7939 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
7940
7941 # Transform an extracted symbol line into symbol name and symbol address
7942 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'"
7943
7944 # Define system-specific variables.
7945 case $host_os in
7946 aix*)
7947   symcode='[BCDT]'
7948   ;;
7949 cygwin* | mingw* | pw32*)
7950   symcode='[ABCDGISTW]'
7951   ;;
7952 hpux*) # Its linker distinguishes data from code symbols
7953   if test "$host_cpu" = ia64; then
7954     symcode='[ABCDEGRST]'
7955   fi
7956   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7957   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'"
7958   ;;
7959 linux* | k*bsd*-gnu)
7960   if test "$host_cpu" = ia64; then
7961     symcode='[ABCDGIRSTW]'
7962     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7963     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'"
7964   fi
7965   ;;
7966 irix* | nonstopux*)
7967   symcode='[BCDEGRST]'
7968   ;;
7969 osf*)
7970   symcode='[BCDEGQRST]'
7971   ;;
7972 solaris*)
7973   symcode='[BDRT]'
7974   ;;
7975 sco3.2v5*)
7976   symcode='[DT]'
7977   ;;
7978 sysv4.2uw2*)
7979   symcode='[DT]'
7980   ;;
7981 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7982   symcode='[ABDT]'
7983   ;;
7984 sysv4)
7985   symcode='[DFNSTU]'
7986   ;;
7987 esac
7988
7989 # Handle CRLF in mingw tool chain
7990 opt_cr=
7991 case $build_os in
7992 mingw*)
7993   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7994   ;;
7995 esac
7996
7997 # If we're using GNU nm, then use its standard symbol codes.
7998 case `$NM -V 2>&1` in
7999 *GNU* | *'with BFD'*)
8000   symcode='[ABCDGIRSTW]' ;;
8001 esac
8002
8003 # Try without a prefix undercore, then with it.
8004 for ac_symprfx in "" "_"; do
8005
8006   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
8007   symxfrm="\\1 $ac_symprfx\\2 \\2"
8008
8009   # Write the raw and C identifiers.
8010   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
8011
8012   # Check to see that the pipe works correctly.
8013   pipe_works=no
8014
8015   rm -f conftest*
8016   cat > conftest.$ac_ext <<EOF
8017 #ifdef __cplusplus
8018 extern "C" {
8019 #endif
8020 char nm_test_var;
8021 void nm_test_func(){}
8022 #ifdef __cplusplus
8023 }
8024 #endif
8025 int main(){nm_test_var='a';nm_test_func();return(0);}
8026 EOF
8027
8028   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8029   (eval $ac_compile) 2>&5
8030   ac_status=$?
8031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8032   (exit $ac_status); }; then
8033     # Now try to grab the symbols.
8034     nlist=conftest.nm
8035     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
8036   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
8037   ac_status=$?
8038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8039   (exit $ac_status); } && test -s "$nlist"; then
8040       # Try sorting and uniquifying the output.
8041       if sort "$nlist" | uniq > "$nlist"T; then
8042         mv -f "$nlist"T "$nlist"
8043       else
8044         rm -f "$nlist"T
8045       fi
8046
8047       # Make sure that we snagged all the symbols we need.
8048       if grep ' nm_test_var$' "$nlist" >/dev/null; then
8049         if grep ' nm_test_func$' "$nlist" >/dev/null; then
8050           cat <<EOF > conftest.$ac_ext
8051 #ifdef __cplusplus
8052 extern "C" {
8053 #endif
8054
8055 EOF
8056           # Now generate the symbol file.
8057           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
8058
8059           cat <<EOF >> conftest.$ac_ext
8060 #if defined (__STDC__) && __STDC__
8061 # define lt_ptr_t void *
8062 #else
8063 # define lt_ptr_t char *
8064 # define const
8065 #endif
8066
8067 /* The mapping between symbol names and symbols. */
8068 const struct {
8069   const char *name;
8070   lt_ptr_t address;
8071 }
8072 lt_preloaded_symbols[] =
8073 {
8074 EOF
8075           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
8076           cat <<\EOF >> conftest.$ac_ext
8077   {0, (lt_ptr_t) 0}
8078 };
8079
8080 #ifdef __cplusplus
8081 }
8082 #endif
8083 EOF
8084           # Now try linking the two files.
8085           mv conftest.$ac_objext conftstm.$ac_objext
8086           lt_save_LIBS="$LIBS"
8087           lt_save_CFLAGS="$CFLAGS"
8088           LIBS="conftstm.$ac_objext"
8089           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
8090           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8091   (eval $ac_link) 2>&5
8092   ac_status=$?
8093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8094   (exit $ac_status); } && test -s conftest${ac_exeext}; then
8095             pipe_works=yes
8096           fi
8097           LIBS="$lt_save_LIBS"
8098           CFLAGS="$lt_save_CFLAGS"
8099         else
8100           echo "cannot find nm_test_func in $nlist" >&5
8101         fi
8102       else
8103         echo "cannot find nm_test_var in $nlist" >&5
8104       fi
8105     else
8106       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
8107     fi
8108   else
8109     echo "$progname: failed program was:" >&5
8110     cat conftest.$ac_ext >&5
8111   fi
8112   rm -f conftest* conftst*
8113
8114   # Do not use the global_symbol_pipe unless it works.
8115   if test "$pipe_works" = yes; then
8116     break
8117   else
8118     lt_cv_sys_global_symbol_pipe=
8119   fi
8120 done
8121
8122 fi
8123
8124 if test -z "$lt_cv_sys_global_symbol_pipe"; then
8125   lt_cv_sys_global_symbol_to_cdecl=
8126 fi
8127 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
8128   { echo "$as_me:$LINENO: result: failed" >&5
8129 echo "${ECHO_T}failed" >&6; }
8130 else
8131   { echo "$as_me:$LINENO: result: ok" >&5
8132 echo "${ECHO_T}ok" >&6; }
8133 fi
8134
8135 { echo "$as_me:$LINENO: checking for objdir" >&5
8136 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
8137 if test "${lt_cv_objdir+set}" = set; then
8138   echo $ECHO_N "(cached) $ECHO_C" >&6
8139 else
8140   rm -f .libs 2>/dev/null
8141 mkdir .libs 2>/dev/null
8142 if test -d .libs; then
8143   lt_cv_objdir=.libs
8144 else
8145   # MS-DOS does not allow filenames that begin with a dot.
8146   lt_cv_objdir=_libs
8147 fi
8148 rmdir .libs 2>/dev/null
8149 fi
8150 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
8151 echo "${ECHO_T}$lt_cv_objdir" >&6; }
8152 objdir=$lt_cv_objdir
8153
8154
8155
8156
8157
8158 case $host_os in
8159 aix3*)
8160   # AIX sometimes has problems with the GCC collect2 program.  For some
8161   # reason, if we set the COLLECT_NAMES environment variable, the problems
8162   # vanish in a puff of smoke.
8163   if test "X${COLLECT_NAMES+set}" != Xset; then
8164     COLLECT_NAMES=
8165     export COLLECT_NAMES
8166   fi
8167   ;;
8168 esac
8169
8170 # Sed substitution that helps us do robust quoting.  It backslashifies
8171 # metacharacters that are still active within double-quoted strings.
8172 Xsed='sed -e 1s/^X//'
8173 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
8174
8175 # Same as above, but do not quote variable references.
8176 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
8177
8178 # Sed substitution to delay expansion of an escaped shell variable in a
8179 # double_quote_subst'ed string.
8180 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
8181
8182 # Sed substitution to avoid accidental globbing in evaled expressions
8183 no_glob_subst='s/\*/\\\*/g'
8184
8185 # Constants:
8186 rm="rm -f"
8187
8188 # Global variables:
8189 default_ofile=libtool
8190 can_build_shared=yes
8191
8192 # All known linkers require a `.a' archive for static linking (except MSVC,
8193 # which needs '.lib').
8194 libext=a
8195 ltmain="$ac_aux_dir/ltmain.sh"
8196 ofile="$default_ofile"
8197 with_gnu_ld="$lt_cv_prog_gnu_ld"
8198
8199 if test -n "$ac_tool_prefix"; then
8200   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
8201 set dummy ${ac_tool_prefix}ar; ac_word=$2
8202 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8203 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8204 if test "${ac_cv_prog_AR+set}" = set; then
8205   echo $ECHO_N "(cached) $ECHO_C" >&6
8206 else
8207   if test -n "$AR"; then
8208   ac_cv_prog_AR="$AR" # Let the user override the test.
8209 else
8210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8211 for as_dir in $PATH
8212 do
8213   IFS=$as_save_IFS
8214   test -z "$as_dir" && as_dir=.
8215   for ac_exec_ext in '' $ac_executable_extensions; do
8216   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8217     ac_cv_prog_AR="${ac_tool_prefix}ar"
8218     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8219     break 2
8220   fi
8221 done
8222 done
8223 IFS=$as_save_IFS
8224
8225 fi
8226 fi
8227 AR=$ac_cv_prog_AR
8228 if test -n "$AR"; then
8229   { echo "$as_me:$LINENO: result: $AR" >&5
8230 echo "${ECHO_T}$AR" >&6; }
8231 else
8232   { echo "$as_me:$LINENO: result: no" >&5
8233 echo "${ECHO_T}no" >&6; }
8234 fi
8235
8236
8237 fi
8238 if test -z "$ac_cv_prog_AR"; then
8239   ac_ct_AR=$AR
8240   # Extract the first word of "ar", so it can be a program name with args.
8241 set dummy ar; ac_word=$2
8242 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8243 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8244 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
8245   echo $ECHO_N "(cached) $ECHO_C" >&6
8246 else
8247   if test -n "$ac_ct_AR"; then
8248   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
8249 else
8250 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8251 for as_dir in $PATH
8252 do
8253   IFS=$as_save_IFS
8254   test -z "$as_dir" && as_dir=.
8255   for ac_exec_ext in '' $ac_executable_extensions; do
8256   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8257     ac_cv_prog_ac_ct_AR="ar"
8258     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8259     break 2
8260   fi
8261 done
8262 done
8263 IFS=$as_save_IFS
8264
8265 fi
8266 fi
8267 ac_ct_AR=$ac_cv_prog_ac_ct_AR
8268 if test -n "$ac_ct_AR"; then
8269   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
8270 echo "${ECHO_T}$ac_ct_AR" >&6; }
8271 else
8272   { echo "$as_me:$LINENO: result: no" >&5
8273 echo "${ECHO_T}no" >&6; }
8274 fi
8275
8276   if test "x$ac_ct_AR" = x; then
8277     AR="false"
8278   else
8279     case $cross_compiling:$ac_tool_warned in
8280 yes:)
8281 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
8282 whose name does not start with the host triplet.  If you think this
8283 configuration is useful to you, please write to autoconf@gnu.org." >&5
8284 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
8285 whose name does not start with the host triplet.  If you think this
8286 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
8287 ac_tool_warned=yes ;;
8288 esac
8289     AR=$ac_ct_AR
8290   fi
8291 else
8292   AR="$ac_cv_prog_AR"
8293 fi
8294
8295 if test -n "$ac_tool_prefix"; then
8296   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8297 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8298 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8299 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8300 if test "${ac_cv_prog_RANLIB+set}" = set; then
8301   echo $ECHO_N "(cached) $ECHO_C" >&6
8302 else
8303   if test -n "$RANLIB"; then
8304   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8305 else
8306 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8307 for as_dir in $PATH
8308 do
8309   IFS=$as_save_IFS
8310   test -z "$as_dir" && as_dir=.
8311   for ac_exec_ext in '' $ac_executable_extensions; do
8312   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8313     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8314     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8315     break 2
8316   fi
8317 done
8318 done
8319 IFS=$as_save_IFS
8320
8321 fi
8322 fi
8323 RANLIB=$ac_cv_prog_RANLIB
8324 if test -n "$RANLIB"; then
8325   { echo "$as_me:$LINENO: result: $RANLIB" >&5
8326 echo "${ECHO_T}$RANLIB" >&6; }
8327 else
8328   { echo "$as_me:$LINENO: result: no" >&5
8329 echo "${ECHO_T}no" >&6; }
8330 fi
8331
8332
8333 fi
8334 if test -z "$ac_cv_prog_RANLIB"; then
8335   ac_ct_RANLIB=$RANLIB
8336   # Extract the first word of "ranlib", so it can be a program name with args.
8337 set dummy ranlib; ac_word=$2
8338 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8339 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8340 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
8341   echo $ECHO_N "(cached) $ECHO_C" >&6
8342 else
8343   if test -n "$ac_ct_RANLIB"; then
8344   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8345 else
8346 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8347 for as_dir in $PATH
8348 do
8349   IFS=$as_save_IFS
8350   test -z "$as_dir" && as_dir=.
8351   for ac_exec_ext in '' $ac_executable_extensions; do
8352   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8353     ac_cv_prog_ac_ct_RANLIB="ranlib"
8354     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8355     break 2
8356   fi
8357 done
8358 done
8359 IFS=$as_save_IFS
8360
8361 fi
8362 fi
8363 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8364 if test -n "$ac_ct_RANLIB"; then
8365   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
8366 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
8367 else
8368   { echo "$as_me:$LINENO: result: no" >&5
8369 echo "${ECHO_T}no" >&6; }
8370 fi
8371
8372   if test "x$ac_ct_RANLIB" = x; then
8373     RANLIB=":"
8374   else
8375     case $cross_compiling:$ac_tool_warned in
8376 yes:)
8377 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
8378 whose name does not start with the host triplet.  If you think this
8379 configuration is useful to you, please write to autoconf@gnu.org." >&5
8380 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
8381 whose name does not start with the host triplet.  If you think this
8382 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
8383 ac_tool_warned=yes ;;
8384 esac
8385     RANLIB=$ac_ct_RANLIB
8386   fi
8387 else
8388   RANLIB="$ac_cv_prog_RANLIB"
8389 fi
8390
8391 if test -n "$ac_tool_prefix"; then
8392   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
8393 set dummy ${ac_tool_prefix}strip; ac_word=$2
8394 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8395 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8396 if test "${ac_cv_prog_STRIP+set}" = set; then
8397   echo $ECHO_N "(cached) $ECHO_C" >&6
8398 else
8399   if test -n "$STRIP"; then
8400   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8401 else
8402 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8403 for as_dir in $PATH
8404 do
8405   IFS=$as_save_IFS
8406   test -z "$as_dir" && as_dir=.
8407   for ac_exec_ext in '' $ac_executable_extensions; do
8408   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8409     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
8410     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8411     break 2
8412   fi
8413 done
8414 done
8415 IFS=$as_save_IFS
8416
8417 fi
8418 fi
8419 STRIP=$ac_cv_prog_STRIP
8420 if test -n "$STRIP"; then
8421   { echo "$as_me:$LINENO: result: $STRIP" >&5
8422 echo "${ECHO_T}$STRIP" >&6; }
8423 else
8424   { echo "$as_me:$LINENO: result: no" >&5
8425 echo "${ECHO_T}no" >&6; }
8426 fi
8427
8428
8429 fi
8430 if test -z "$ac_cv_prog_STRIP"; then
8431   ac_ct_STRIP=$STRIP
8432   # Extract the first word of "strip", so it can be a program name with args.
8433 set dummy strip; ac_word=$2
8434 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8435 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8436 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
8437   echo $ECHO_N "(cached) $ECHO_C" >&6
8438 else
8439   if test -n "$ac_ct_STRIP"; then
8440   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
8441 else
8442 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8443 for as_dir in $PATH
8444 do
8445   IFS=$as_save_IFS
8446   test -z "$as_dir" && as_dir=.
8447   for ac_exec_ext in '' $ac_executable_extensions; do
8448   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8449     ac_cv_prog_ac_ct_STRIP="strip"
8450     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8451     break 2
8452   fi
8453 done
8454 done
8455 IFS=$as_save_IFS
8456
8457 fi
8458 fi
8459 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
8460 if test -n "$ac_ct_STRIP"; then
8461   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
8462 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
8463 else
8464   { echo "$as_me:$LINENO: result: no" >&5
8465 echo "${ECHO_T}no" >&6; }
8466 fi
8467
8468   if test "x$ac_ct_STRIP" = x; then
8469     STRIP=":"
8470   else
8471     case $cross_compiling:$ac_tool_warned in
8472 yes:)
8473 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
8474 whose name does not start with the host triplet.  If you think this
8475 configuration is useful to you, please write to autoconf@gnu.org." >&5
8476 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
8477 whose name does not start with the host triplet.  If you think this
8478 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
8479 ac_tool_warned=yes ;;
8480 esac
8481     STRIP=$ac_ct_STRIP
8482   fi
8483 else
8484   STRIP="$ac_cv_prog_STRIP"
8485 fi
8486
8487
8488 old_CC="$CC"
8489 old_CFLAGS="$CFLAGS"
8490
8491 # Set sane defaults for various variables
8492 test -z "$AR" && AR=ar
8493 test -z "$AR_FLAGS" && AR_FLAGS=cru
8494 test -z "$AS" && AS=as
8495 test -z "$CC" && CC=cc
8496 test -z "$LTCC" && LTCC=$CC
8497 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8498 test -z "$DLLTOOL" && DLLTOOL=dlltool
8499 test -z "$LD" && LD=ld
8500 test -z "$LN_S" && LN_S="ln -s"
8501 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8502 test -z "$NM" && NM=nm
8503 test -z "$SED" && SED=sed
8504 test -z "$OBJDUMP" && OBJDUMP=objdump
8505 test -z "$RANLIB" && RANLIB=:
8506 test -z "$STRIP" && STRIP=:
8507 test -z "$ac_objext" && ac_objext=o
8508
8509 # Determine commands to create old-style static archives.
8510 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
8511 old_postinstall_cmds='chmod 644 $oldlib'
8512 old_postuninstall_cmds=
8513
8514 if test -n "$RANLIB"; then
8515   case $host_os in
8516   openbsd*)
8517     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
8518     ;;
8519   *)
8520     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
8521     ;;
8522   esac
8523   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
8524 fi
8525
8526 for cc_temp in $compiler""; do
8527   case $cc_temp in
8528     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8529     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8530     \-*) ;;
8531     *) break;;
8532   esac
8533 done
8534 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8535
8536
8537 # Only perform the check for file, if the check method requires it
8538 case $deplibs_check_method in
8539 file_magic*)
8540   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8541     { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
8542 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
8543 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8544   echo $ECHO_N "(cached) $ECHO_C" >&6
8545 else
8546   case $MAGIC_CMD in
8547 [\\/*] |  ?:[\\/]*)
8548   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8549   ;;
8550 *)
8551   lt_save_MAGIC_CMD="$MAGIC_CMD"
8552   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8553   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8554   for ac_dir in $ac_dummy; do
8555     IFS="$lt_save_ifs"
8556     test -z "$ac_dir" && ac_dir=.
8557     if test -f $ac_dir/${ac_tool_prefix}file; then
8558       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8559       if test -n "$file_magic_test_file"; then
8560         case $deplibs_check_method in
8561         "file_magic "*)
8562           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8563           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8564           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8565             $EGREP "$file_magic_regex" > /dev/null; then
8566             :
8567           else
8568             cat <<EOF 1>&2
8569
8570 *** Warning: the command libtool uses to detect shared libraries,
8571 *** $file_magic_cmd, produces output that libtool cannot recognize.
8572 *** The result is that libtool may fail to recognize shared libraries
8573 *** as such.  This will affect the creation of libtool libraries that
8574 *** depend on shared libraries, but programs linked with such libtool
8575 *** libraries will work regardless of this problem.  Nevertheless, you
8576 *** may want to report the problem to your system manager and/or to
8577 *** bug-libtool@gnu.org
8578
8579 EOF
8580           fi ;;
8581         esac
8582       fi
8583       break
8584     fi
8585   done
8586   IFS="$lt_save_ifs"
8587   MAGIC_CMD="$lt_save_MAGIC_CMD"
8588   ;;
8589 esac
8590 fi
8591
8592 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8593 if test -n "$MAGIC_CMD"; then
8594   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8595 echo "${ECHO_T}$MAGIC_CMD" >&6; }
8596 else
8597   { echo "$as_me:$LINENO: result: no" >&5
8598 echo "${ECHO_T}no" >&6; }
8599 fi
8600
8601 if test -z "$lt_cv_path_MAGIC_CMD"; then
8602   if test -n "$ac_tool_prefix"; then
8603     { echo "$as_me:$LINENO: checking for file" >&5
8604 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
8605 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8606   echo $ECHO_N "(cached) $ECHO_C" >&6
8607 else
8608   case $MAGIC_CMD in
8609 [\\/*] |  ?:[\\/]*)
8610   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8611   ;;
8612 *)
8613   lt_save_MAGIC_CMD="$MAGIC_CMD"
8614   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8615   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8616   for ac_dir in $ac_dummy; do
8617     IFS="$lt_save_ifs"
8618     test -z "$ac_dir" && ac_dir=.
8619     if test -f $ac_dir/file; then
8620       lt_cv_path_MAGIC_CMD="$ac_dir/file"
8621       if test -n "$file_magic_test_file"; then
8622         case $deplibs_check_method in
8623         "file_magic "*)
8624           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8625           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8626           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8627             $EGREP "$file_magic_regex" > /dev/null; then
8628             :
8629           else
8630             cat <<EOF 1>&2
8631
8632 *** Warning: the command libtool uses to detect shared libraries,
8633 *** $file_magic_cmd, produces output that libtool cannot recognize.
8634 *** The result is that libtool may fail to recognize shared libraries
8635 *** as such.  This will affect the creation of libtool libraries that
8636 *** depend on shared libraries, but programs linked with such libtool
8637 *** libraries will work regardless of this problem.  Nevertheless, you
8638 *** may want to report the problem to your system manager and/or to
8639 *** bug-libtool@gnu.org
8640
8641 EOF
8642           fi ;;
8643         esac
8644       fi
8645       break
8646     fi
8647   done
8648   IFS="$lt_save_ifs"
8649   MAGIC_CMD="$lt_save_MAGIC_CMD"
8650   ;;
8651 esac
8652 fi
8653
8654 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8655 if test -n "$MAGIC_CMD"; then
8656   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8657 echo "${ECHO_T}$MAGIC_CMD" >&6; }
8658 else
8659   { echo "$as_me:$LINENO: result: no" >&5
8660 echo "${ECHO_T}no" >&6; }
8661 fi
8662
8663   else
8664     MAGIC_CMD=:
8665   fi
8666 fi
8667
8668   fi
8669   ;;
8670 esac
8671
8672 enable_dlopen=no
8673 enable_win32_dll=no
8674
8675 # Check whether --enable-libtool-lock was given.
8676 if test "${enable_libtool_lock+set}" = set; then
8677   enableval=$enable_libtool_lock;
8678 fi
8679
8680 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8681
8682
8683 # Check whether --with-pic was given.
8684 if test "${with_pic+set}" = set; then
8685   withval=$with_pic; pic_mode="$withval"
8686 else
8687   pic_mode=default
8688 fi
8689
8690 test -z "$pic_mode" && pic_mode=default
8691
8692 # Use C for the default configuration in the libtool script
8693 tagname=
8694 lt_save_CC="$CC"
8695 ac_ext=c
8696 ac_cpp='$CPP $CPPFLAGS'
8697 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8698 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8699 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8700
8701
8702 # Source file extension for C test sources.
8703 ac_ext=c
8704
8705 # Object file extension for compiled C test sources.
8706 objext=o
8707 objext=$objext
8708
8709 # Code to be used in simple compile tests
8710 lt_simple_compile_test_code="int some_variable = 0;"
8711
8712 # Code to be used in simple link tests
8713 lt_simple_link_test_code='int main(){return(0);}'
8714
8715
8716 # If no C compiler was specified, use CC.
8717 LTCC=${LTCC-"$CC"}
8718
8719 # If no C compiler flags were specified, use CFLAGS.
8720 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8721
8722 # Allow CC to be a program name with arguments.
8723 compiler=$CC
8724
8725
8726 # save warnings/boilerplate of simple test code
8727 ac_outfile=conftest.$ac_objext
8728 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8729 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8730 _lt_compiler_boilerplate=`cat conftest.err`
8731 $rm conftest*
8732
8733 ac_outfile=conftest.$ac_objext
8734 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8735 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8736 _lt_linker_boilerplate=`cat conftest.err`
8737 $rm conftest*
8738
8739
8740
8741 lt_prog_compiler_no_builtin_flag=
8742
8743 if test "$GCC" = yes; then
8744   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
8745
8746
8747 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8748 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
8749 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
8750   echo $ECHO_N "(cached) $ECHO_C" >&6
8751 else
8752   lt_cv_prog_compiler_rtti_exceptions=no
8753   ac_outfile=conftest.$ac_objext
8754    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8755    lt_compiler_flag="-fno-rtti -fno-exceptions"
8756    # Insert the option either (1) after the last *FLAGS variable, or
8757    # (2) before a word containing "conftest.", or (3) at the end.
8758    # Note that $ac_compile itself does not contain backslashes and begins
8759    # with a dollar sign (not a hyphen), so the echo should work correctly.
8760    # The option is referenced via a variable to avoid confusing sed.
8761    lt_compile=`echo "$ac_compile" | $SED \
8762    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8763    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8764    -e 's:$: $lt_compiler_flag:'`
8765    (eval echo "\"\$as_me:8765: $lt_compile\"" >&5)
8766    (eval "$lt_compile" 2>conftest.err)
8767    ac_status=$?
8768    cat conftest.err >&5
8769    echo "$as_me:8769: \$? = $ac_status" >&5
8770    if (exit $ac_status) && test -s "$ac_outfile"; then
8771      # The compiler can only warn and ignore the option if not recognized
8772      # So say no if there are warnings other than the usual output.
8773      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8774      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8775      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8776        lt_cv_prog_compiler_rtti_exceptions=yes
8777      fi
8778    fi
8779    $rm conftest*
8780
8781 fi
8782 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8783 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8784
8785 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8786     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8787 else
8788     :
8789 fi
8790
8791 fi
8792
8793 lt_prog_compiler_wl=
8794 lt_prog_compiler_pic=
8795 lt_prog_compiler_static=
8796
8797 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
8798 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
8799
8800   if test "$GCC" = yes; then
8801     lt_prog_compiler_wl='-Wl,'
8802     lt_prog_compiler_static='-static'
8803
8804     case $host_os in
8805       aix*)
8806       # All AIX code is PIC.
8807       if test "$host_cpu" = ia64; then
8808         # AIX 5 now supports IA64 processor
8809         lt_prog_compiler_static='-Bstatic'
8810       fi
8811       ;;
8812
8813     amigaos*)
8814       # FIXME: we need at least 68020 code to build shared libraries, but
8815       # adding the `-m68020' flag to GCC prevents building anything better,
8816       # like `-m68040'.
8817       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8818       ;;
8819
8820     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8821       # PIC is the default for these OSes.
8822       ;;
8823
8824     mingw* | cygwin* | pw32* | os2*)
8825       # This hack is so that the source file can tell whether it is being
8826       # built for inclusion in a dll (and should export symbols for example).
8827       # Although the cygwin gcc ignores -fPIC, still need this for old-style
8828       # (--disable-auto-import) libraries
8829       lt_prog_compiler_pic='-DDLL_EXPORT'
8830       ;;
8831
8832     darwin* | rhapsody*)
8833       # PIC is the default on this platform
8834       # Common symbols not allowed in MH_DYLIB files
8835       lt_prog_compiler_pic='-fno-common'
8836       ;;
8837
8838     interix[3-9]*)
8839       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8840       # Instead, we relocate shared libraries at runtime.
8841       ;;
8842
8843     msdosdjgpp*)
8844       # Just because we use GCC doesn't mean we suddenly get shared libraries
8845       # on systems that don't support them.
8846       lt_prog_compiler_can_build_shared=no
8847       enable_shared=no
8848       ;;
8849
8850     sysv4*MP*)
8851       if test -d /usr/nec; then
8852         lt_prog_compiler_pic=-Kconform_pic
8853       fi
8854       ;;
8855
8856     hpux*)
8857       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8858       # not for PA HP-UX.
8859       case $host_cpu in
8860       hppa*64*|ia64*)
8861         # +Z the default
8862         ;;
8863       *)
8864         lt_prog_compiler_pic='-fPIC'
8865         ;;
8866       esac
8867       ;;
8868
8869     *)
8870       lt_prog_compiler_pic='-fPIC'
8871       ;;
8872     esac
8873   else
8874     # PORTME Check for flag to pass linker flags through the system compiler.
8875     case $host_os in
8876     aix*)
8877       lt_prog_compiler_wl='-Wl,'
8878       if test "$host_cpu" = ia64; then
8879         # AIX 5 now supports IA64 processor
8880         lt_prog_compiler_static='-Bstatic'
8881       else
8882         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8883       fi
8884       ;;
8885       darwin*)
8886         # PIC is the default on this platform
8887         # Common symbols not allowed in MH_DYLIB files
8888        case $cc_basename in
8889          xlc*)
8890          lt_prog_compiler_pic='-qnocommon'
8891          lt_prog_compiler_wl='-Wl,'
8892          ;;
8893        esac
8894        ;;
8895
8896     mingw* | cygwin* | pw32* | os2*)
8897       # This hack is so that the source file can tell whether it is being
8898       # built for inclusion in a dll (and should export symbols for example).
8899       lt_prog_compiler_pic='-DDLL_EXPORT'
8900       ;;
8901
8902     hpux9* | hpux10* | hpux11*)
8903       lt_prog_compiler_wl='-Wl,'
8904       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8905       # not for PA HP-UX.
8906       case $host_cpu in
8907       hppa*64*|ia64*)
8908         # +Z the default
8909         ;;
8910       *)
8911         lt_prog_compiler_pic='+Z'
8912         ;;
8913       esac
8914       # Is there a better lt_prog_compiler_static that works with the bundled CC?
8915       lt_prog_compiler_static='${wl}-a ${wl}archive'
8916       ;;
8917
8918     irix5* | irix6* | nonstopux*)
8919       lt_prog_compiler_wl='-Wl,'
8920       # PIC (with -KPIC) is the default.
8921       lt_prog_compiler_static='-non_shared'
8922       ;;
8923
8924     newsos6)
8925       lt_prog_compiler_pic='-KPIC'
8926       lt_prog_compiler_static='-Bstatic'
8927       ;;
8928
8929     linux* | k*bsd*-gnu)
8930       case $cc_basename in
8931       icc* | ecc*)
8932         lt_prog_compiler_wl='-Wl,'
8933         lt_prog_compiler_pic='-KPIC'
8934         lt_prog_compiler_static='-static'
8935         ;;
8936       pgcc* | pgf77* | pgf90* | pgf95*)
8937         # Portland Group compilers (*not* the Pentium gcc compiler,
8938         # which looks to be a dead project)
8939         lt_prog_compiler_wl='-Wl,'
8940         lt_prog_compiler_pic='-fpic'
8941         lt_prog_compiler_static='-Bstatic'
8942         ;;
8943       ccc*)
8944         lt_prog_compiler_wl='-Wl,'
8945         # All Alpha code is PIC.
8946         lt_prog_compiler_static='-non_shared'
8947         ;;
8948       *)
8949         case `$CC -V 2>&1 | sed 5q` in
8950         *Sun\ C*)
8951           # Sun C 5.9
8952           lt_prog_compiler_pic='-KPIC'
8953           lt_prog_compiler_static='-Bstatic'
8954           lt_prog_compiler_wl='-Wl,'
8955           ;;
8956         *Sun\ F*)
8957           # Sun Fortran 8.3 passes all unrecognized flags to the linker
8958           lt_prog_compiler_pic='-KPIC'
8959           lt_prog_compiler_static='-Bstatic'
8960           lt_prog_compiler_wl=''
8961           ;;
8962         esac
8963         ;;
8964       esac
8965       ;;
8966
8967     osf3* | osf4* | osf5*)
8968       lt_prog_compiler_wl='-Wl,'
8969       # All OSF/1 code is PIC.
8970       lt_prog_compiler_static='-non_shared'
8971       ;;
8972
8973     rdos*)
8974       lt_prog_compiler_static='-non_shared'
8975       ;;
8976
8977     solaris*)
8978       lt_prog_compiler_pic='-KPIC'
8979       lt_prog_compiler_static='-Bstatic'
8980       case $cc_basename in
8981       f77* | f90* | f95*)
8982         lt_prog_compiler_wl='-Qoption ld ';;
8983       *)
8984         lt_prog_compiler_wl='-Wl,';;
8985       esac
8986       ;;
8987
8988     sunos4*)
8989       lt_prog_compiler_wl='-Qoption ld '
8990       lt_prog_compiler_pic='-PIC'
8991       lt_prog_compiler_static='-Bstatic'
8992       ;;
8993
8994     sysv4 | sysv4.2uw2* | sysv4.3*)
8995       lt_prog_compiler_wl='-Wl,'
8996       lt_prog_compiler_pic='-KPIC'
8997       lt_prog_compiler_static='-Bstatic'
8998       ;;
8999
9000     sysv4*MP*)
9001       if test -d /usr/nec ;then
9002         lt_prog_compiler_pic='-Kconform_pic'
9003         lt_prog_compiler_static='-Bstatic'
9004       fi
9005       ;;
9006
9007     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9008       lt_prog_compiler_wl='-Wl,'
9009       lt_prog_compiler_pic='-KPIC'
9010       lt_prog_compiler_static='-Bstatic'
9011       ;;
9012
9013     unicos*)
9014       lt_prog_compiler_wl='-Wl,'
9015       lt_prog_compiler_can_build_shared=no
9016       ;;
9017
9018     uts4*)
9019       lt_prog_compiler_pic='-pic'
9020       lt_prog_compiler_static='-Bstatic'
9021       ;;
9022
9023     *)
9024       lt_prog_compiler_can_build_shared=no
9025       ;;
9026     esac
9027   fi
9028
9029 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
9030 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
9031
9032 #
9033 # Check to make sure the PIC flag actually works.
9034 #
9035 if test -n "$lt_prog_compiler_pic"; then
9036
9037 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9038 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
9039 if test "${lt_prog_compiler_pic_works+set}" = set; then
9040   echo $ECHO_N "(cached) $ECHO_C" >&6
9041 else
9042   lt_prog_compiler_pic_works=no
9043   ac_outfile=conftest.$ac_objext
9044    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9045    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9046    # Insert the option either (1) after the last *FLAGS variable, or
9047    # (2) before a word containing "conftest.", or (3) at the end.
9048    # Note that $ac_compile itself does not contain backslashes and begins
9049    # with a dollar sign (not a hyphen), so the echo should work correctly.
9050    # The option is referenced via a variable to avoid confusing sed.
9051    lt_compile=`echo "$ac_compile" | $SED \
9052    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9053    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9054    -e 's:$: $lt_compiler_flag:'`
9055    (eval echo "\"\$as_me:9055: $lt_compile\"" >&5)
9056    (eval "$lt_compile" 2>conftest.err)
9057    ac_status=$?
9058    cat conftest.err >&5
9059    echo "$as_me:9059: \$? = $ac_status" >&5
9060    if (exit $ac_status) && test -s "$ac_outfile"; then
9061      # The compiler can only warn and ignore the option if not recognized
9062      # So say no if there are warnings other than the usual output.
9063      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9064      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9065      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9066        lt_prog_compiler_pic_works=yes
9067      fi
9068    fi
9069    $rm conftest*
9070
9071 fi
9072 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
9073 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
9074
9075 if test x"$lt_prog_compiler_pic_works" = xyes; then
9076     case $lt_prog_compiler_pic in
9077      "" | " "*) ;;
9078      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9079      esac
9080 else
9081     lt_prog_compiler_pic=
9082      lt_prog_compiler_can_build_shared=no
9083 fi
9084
9085 fi
9086 case $host_os in
9087   # For platforms which do not support PIC, -DPIC is meaningless:
9088   *djgpp*)
9089     lt_prog_compiler_pic=
9090     ;;
9091   *)
9092     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9093     ;;
9094 esac
9095
9096 #
9097 # Check to make sure the static flag actually works.
9098 #
9099 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9100 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9101 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
9102 if test "${lt_prog_compiler_static_works+set}" = set; then
9103   echo $ECHO_N "(cached) $ECHO_C" >&6
9104 else
9105   lt_prog_compiler_static_works=no
9106    save_LDFLAGS="$LDFLAGS"
9107    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9108    echo "$lt_simple_link_test_code" > conftest.$ac_ext
9109    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9110      # The linker can only warn and ignore the option if not recognized
9111      # So say no if there are warnings
9112      if test -s conftest.err; then
9113        # Append any errors to the config.log.
9114        cat conftest.err 1>&5
9115        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
9116        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9117        if diff conftest.exp conftest.er2 >/dev/null; then
9118          lt_prog_compiler_static_works=yes
9119        fi
9120      else
9121        lt_prog_compiler_static_works=yes
9122      fi
9123    fi
9124    $rm conftest*
9125    LDFLAGS="$save_LDFLAGS"
9126
9127 fi
9128 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
9129 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
9130
9131 if test x"$lt_prog_compiler_static_works" = xyes; then
9132     :
9133 else
9134     lt_prog_compiler_static=
9135 fi
9136
9137
9138 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
9139 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
9140 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
9141   echo $ECHO_N "(cached) $ECHO_C" >&6
9142 else
9143   lt_cv_prog_compiler_c_o=no
9144    $rm -r conftest 2>/dev/null
9145    mkdir conftest
9146    cd conftest
9147    mkdir out
9148    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9149
9150    lt_compiler_flag="-o out/conftest2.$ac_objext"
9151    # Insert the option either (1) after the last *FLAGS variable, or
9152    # (2) before a word containing "conftest.", or (3) at the end.
9153    # Note that $ac_compile itself does not contain backslashes and begins
9154    # with a dollar sign (not a hyphen), so the echo should work correctly.
9155    lt_compile=`echo "$ac_compile" | $SED \
9156    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9157    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9158    -e 's:$: $lt_compiler_flag:'`
9159    (eval echo "\"\$as_me:9159: $lt_compile\"" >&5)
9160    (eval "$lt_compile" 2>out/conftest.err)
9161    ac_status=$?
9162    cat out/conftest.err >&5
9163    echo "$as_me:9163: \$? = $ac_status" >&5
9164    if (exit $ac_status) && test -s out/conftest2.$ac_objext
9165    then
9166      # The compiler can only warn and ignore the option if not recognized
9167      # So say no if there are warnings
9168      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9169      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9170      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9171        lt_cv_prog_compiler_c_o=yes
9172      fi
9173    fi
9174    chmod u+w . 2>&5
9175    $rm conftest*
9176    # SGI C++ compiler will create directory out/ii_files/ for
9177    # template instantiation
9178    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
9179    $rm out/* && rmdir out
9180    cd ..
9181    rmdir conftest
9182    $rm conftest*
9183
9184 fi
9185 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
9186 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
9187
9188
9189 hard_links="nottested"
9190 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9191   # do not overwrite the value of need_locks provided by the user
9192   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
9193 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
9194   hard_links=yes
9195   $rm conftest*
9196   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9197   touch conftest.a
9198   ln conftest.a conftest.b 2>&5 || hard_links=no
9199   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9200   { echo "$as_me:$LINENO: result: $hard_links" >&5
9201 echo "${ECHO_T}$hard_links" >&6; }
9202   if test "$hard_links" = no; then
9203     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9204 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9205     need_locks=warn
9206   fi
9207 else
9208   need_locks=no
9209 fi
9210
9211 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9212 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
9213
9214   runpath_var=
9215   allow_undefined_flag=
9216   enable_shared_with_static_runtimes=no
9217   archive_cmds=
9218   archive_expsym_cmds=
9219   old_archive_From_new_cmds=
9220   old_archive_from_expsyms_cmds=
9221   export_dynamic_flag_spec=
9222   whole_archive_flag_spec=
9223   thread_safe_flag_spec=
9224   hardcode_libdir_flag_spec=
9225   hardcode_libdir_flag_spec_ld=
9226   hardcode_libdir_separator=
9227   hardcode_direct=no
9228   hardcode_minus_L=no
9229   hardcode_shlibpath_var=unsupported
9230   link_all_deplibs=unknown
9231   hardcode_automatic=no
9232   module_cmds=
9233   module_expsym_cmds=
9234   always_export_symbols=no
9235   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9236   # include_expsyms should be a list of space-separated symbols to be *always*
9237   # included in the symbol list
9238   include_expsyms=
9239   # exclude_expsyms can be an extended regexp of symbols to exclude
9240   # it will be wrapped by ` (' and `)$', so one must not match beginning or
9241   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9242   # as well as any symbol that contains `d'.
9243   exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
9244   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9245   # platforms (ab)use it in PIC code, but their linkers get confused if
9246   # the symbol is explicitly referenced.  Since portable code cannot
9247   # rely on this symbol name, it's probably fine to never include it in
9248   # preloaded symbol tables.
9249   extract_expsyms_cmds=
9250   # Just being paranoid about ensuring that cc_basename is set.
9251   for cc_temp in $compiler""; do
9252   case $cc_temp in
9253     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9254     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9255     \-*) ;;
9256     *) break;;
9257   esac
9258 done
9259 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
9260
9261   case $host_os in
9262   cygwin* | mingw* | pw32*)
9263     # FIXME: the MSVC++ port hasn't been tested in a loooong time
9264     # When not using gcc, we currently assume that we are using
9265     # Microsoft Visual C++.
9266     if test "$GCC" != yes; then
9267       with_gnu_ld=no
9268     fi
9269     ;;
9270   interix*)
9271     # we just hope/assume this is gcc and not c89 (= MSVC++)
9272     with_gnu_ld=yes
9273     ;;
9274   openbsd*)
9275     with_gnu_ld=no
9276     ;;
9277   esac
9278
9279   ld_shlibs=yes
9280   if test "$with_gnu_ld" = yes; then
9281     # If archive_cmds runs LD, not CC, wlarc should be empty
9282     wlarc='${wl}'
9283
9284     # Set some defaults for GNU ld with shared library support. These
9285     # are reset later if shared libraries are not supported. Putting them
9286     # here allows them to be overridden if necessary.
9287     runpath_var=LD_RUN_PATH
9288     hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
9289     export_dynamic_flag_spec='${wl}--export-dynamic'
9290     # ancient GNU ld didn't support --whole-archive et. al.
9291     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
9292         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9293       else
9294         whole_archive_flag_spec=
9295     fi
9296     supports_anon_versioning=no
9297     case `$LD -v 2>/dev/null` in
9298       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9299       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9300       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9301       *\ 2.11.*) ;; # other 2.11 versions
9302       *) supports_anon_versioning=yes ;;
9303     esac
9304
9305     # See if GNU ld supports shared libraries.
9306     case $host_os in
9307     aix3* | aix4* | aix5*)
9308       # On AIX/PPC, the GNU linker is very broken
9309       if test "$host_cpu" != ia64; then
9310         ld_shlibs=no
9311         cat <<EOF 1>&2
9312
9313 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
9314 *** to be unable to reliably create shared libraries on AIX.
9315 *** Therefore, libtool is disabling shared libraries support.  If you
9316 *** really care for shared libraries, you may want to modify your PATH
9317 *** so that a non-GNU linker is found, and then restart.
9318
9319 EOF
9320       fi
9321       ;;
9322
9323     amigaos*)
9324       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)'
9325       hardcode_libdir_flag_spec='-L$libdir'
9326       hardcode_minus_L=yes
9327
9328       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
9329       # that the semantics of dynamic libraries on AmigaOS, at least up
9330       # to version 4, is to share data among multiple programs linked
9331       # with the same dynamic library.  Since this doesn't match the
9332       # behavior of shared libraries on other platforms, we can't use
9333       # them.
9334       ld_shlibs=no
9335       ;;
9336
9337     beos*)
9338       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9339         allow_undefined_flag=unsupported
9340         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9341         # support --undefined.  This deserves some investigation.  FIXME
9342         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9343       else
9344         ld_shlibs=no
9345       fi
9346       ;;
9347
9348     cygwin* | mingw* | pw32*)
9349       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9350       # as there is no search path for DLLs.
9351       hardcode_libdir_flag_spec='-L$libdir'
9352       allow_undefined_flag=unsupported
9353       always_export_symbols=no
9354       enable_shared_with_static_runtimes=yes
9355       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9356
9357       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
9358         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9359         # If the export-symbols file already is a .def file (1st line
9360         # is EXPORTS), use it as is; otherwise, prepend...
9361         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9362           cp $export_symbols $output_objdir/$soname.def;
9363         else
9364           echo EXPORTS > $output_objdir/$soname.def;
9365           cat $export_symbols >> $output_objdir/$soname.def;
9366         fi~
9367         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9368       else
9369         ld_shlibs=no
9370       fi
9371       ;;
9372
9373     interix[3-9]*)
9374       hardcode_direct=no
9375       hardcode_shlibpath_var=no
9376       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9377       export_dynamic_flag_spec='${wl}-E'
9378       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9379       # Instead, shared libraries are loaded at an image base (0x10000000 by
9380       # default) and relocated if they conflict, which is a slow very memory
9381       # consuming and fragmenting process.  To avoid this, we pick a random,
9382       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9383       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9384       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9385       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'
9386       ;;
9387
9388     gnu* | linux* | k*bsd*-gnu)
9389       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9390         tmp_addflag=
9391         case $cc_basename,$host_cpu in
9392         pgcc*)                          # Portland Group C compiler
9393           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'
9394           tmp_addflag=' $pic_flag'
9395           ;;
9396         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
9397           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'
9398           tmp_addflag=' $pic_flag -Mnomain' ;;
9399         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
9400           tmp_addflag=' -i_dynamic' ;;
9401         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
9402           tmp_addflag=' -i_dynamic -nofor_main' ;;
9403         ifc* | ifort*)                  # Intel Fortran compiler
9404           tmp_addflag=' -nofor_main' ;;
9405         esac
9406         case `$CC -V 2>&1 | sed 5q` in
9407         *Sun\ C*)                       # Sun C 5.9
9408           whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
9409           tmp_sharedflag='-G' ;;
9410         *Sun\ F*)                       # Sun Fortran 8.3
9411           tmp_sharedflag='-G' ;;
9412         *)
9413           tmp_sharedflag='-shared' ;;
9414         esac
9415         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9416
9417         if test $supports_anon_versioning = yes; then
9418           archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
9419   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9420   $echo "local: *; };" >> $output_objdir/$libname.ver~
9421           $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9422         fi
9423       else
9424         ld_shlibs=no
9425       fi
9426       ;;
9427
9428     netbsd*)
9429       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9430         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9431         wlarc=
9432       else
9433         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9434         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9435       fi
9436       ;;
9437
9438     solaris*)
9439       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
9440         ld_shlibs=no
9441         cat <<EOF 1>&2
9442
9443 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9444 *** create shared libraries on Solaris systems.  Therefore, libtool
9445 *** is disabling shared libraries support.  We urge you to upgrade GNU
9446 *** binutils to release 2.9.1 or newer.  Another option is to modify
9447 *** your PATH or compiler configuration so that the native linker is
9448 *** used, and then restart.
9449
9450 EOF
9451       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9452         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9453         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9454       else
9455         ld_shlibs=no
9456       fi
9457       ;;
9458
9459     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9460       case `$LD -v 2>&1` in
9461         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9462         ld_shlibs=no
9463         cat <<_LT_EOF 1>&2
9464
9465 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9466 *** reliably create shared libraries on SCO systems.  Therefore, libtool
9467 *** is disabling shared libraries support.  We urge you to upgrade GNU
9468 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9469 *** your PATH or compiler configuration so that the native linker is
9470 *** used, and then restart.
9471
9472 _LT_EOF
9473         ;;
9474         *)
9475           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9476             hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
9477             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
9478             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
9479           else
9480             ld_shlibs=no
9481           fi
9482         ;;
9483       esac
9484       ;;
9485
9486     sunos4*)
9487       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9488       wlarc=
9489       hardcode_direct=yes
9490       hardcode_shlibpath_var=no
9491       ;;
9492
9493     *)
9494       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9495         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9496         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9497       else
9498         ld_shlibs=no
9499       fi
9500       ;;
9501     esac
9502
9503     if test "$ld_shlibs" = no; then
9504       runpath_var=
9505       hardcode_libdir_flag_spec=
9506       export_dynamic_flag_spec=
9507       whole_archive_flag_spec=
9508     fi
9509   else
9510     # PORTME fill in a description of your system's linker (not GNU ld)
9511     case $host_os in
9512     aix3*)
9513       allow_undefined_flag=unsupported
9514       always_export_symbols=yes
9515       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'
9516       # Note: this linker hardcodes the directories in LIBPATH if there
9517       # are no directories specified by -L.
9518       hardcode_minus_L=yes
9519       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9520         # Neither direct hardcoding nor static linking is supported with a
9521         # broken collect2.
9522         hardcode_direct=unsupported
9523       fi
9524       ;;
9525
9526     aix4* | aix5*)
9527       if test "$host_cpu" = ia64; then
9528         # On IA64, the linker does run time linking by default, so we don't
9529         # have to do anything special.
9530         aix_use_runtimelinking=no
9531         exp_sym_flag='-Bexport'
9532         no_entry_flag=""
9533       else
9534         # If we're using GNU nm, then we don't want the "-C" option.
9535         # -C means demangle to AIX nm, but means don't demangle with GNU nm
9536         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
9537           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'
9538         else
9539           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'
9540         fi
9541         aix_use_runtimelinking=no
9542
9543         # Test if we are trying to use run time linking or normal
9544         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9545         # need to do runtime linking.
9546         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9547           for ld_flag in $LDFLAGS; do
9548           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9549             aix_use_runtimelinking=yes
9550             break
9551           fi
9552           done
9553           ;;
9554         esac
9555
9556         exp_sym_flag='-bexport'
9557         no_entry_flag='-bnoentry'
9558       fi
9559
9560       # When large executables or shared objects are built, AIX ld can
9561       # have problems creating the table of contents.  If linking a library
9562       # or program results in "error TOC overflow" add -mminimal-toc to
9563       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9564       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9565
9566       archive_cmds=''
9567       hardcode_direct=yes
9568       hardcode_libdir_separator=':'
9569       link_all_deplibs=yes
9570
9571       if test "$GCC" = yes; then
9572         case $host_os in aix4.[012]|aix4.[012].*)
9573         # We only want to do this on AIX 4.2 and lower, the check
9574         # below for broken collect2 doesn't work under 4.3+
9575           collect2name=`${CC} -print-prog-name=collect2`
9576           if test -f "$collect2name" && \
9577            strings "$collect2name" | grep resolve_lib_name >/dev/null
9578           then
9579           # We have reworked collect2
9580           :
9581           else
9582           # We have old collect2
9583           hardcode_direct=unsupported
9584           # It fails to find uninstalled libraries when the uninstalled
9585           # path is not listed in the libpath.  Setting hardcode_minus_L
9586           # to unsupported forces relinking
9587           hardcode_minus_L=yes
9588           hardcode_libdir_flag_spec='-L$libdir'
9589           hardcode_libdir_separator=
9590           fi
9591           ;;
9592         esac
9593         shared_flag='-shared'
9594         if test "$aix_use_runtimelinking" = yes; then
9595           shared_flag="$shared_flag "'${wl}-G'
9596         fi
9597       else
9598         # not using gcc
9599         if test "$host_cpu" = ia64; then
9600         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9601         # chokes on -Wl,-G. The following line is correct:
9602           shared_flag='-G'
9603         else
9604           if test "$aix_use_runtimelinking" = yes; then
9605             shared_flag='${wl}-G'
9606           else
9607             shared_flag='${wl}-bM:SRE'
9608           fi
9609         fi
9610       fi
9611
9612       # It seems that -bexpall does not export symbols beginning with
9613       # underscore (_), so it is better to generate a list of symbols to export.
9614       always_export_symbols=yes
9615       if test "$aix_use_runtimelinking" = yes; then
9616         # Warning - without using the other runtime loading flags (-brtl),
9617         # -berok will link without error, but may produce a broken library.
9618         allow_undefined_flag='-berok'
9619        # Determine the default libpath from the value encoded in an empty executable.
9620        cat >conftest.$ac_ext <<_ACEOF
9621 /* confdefs.h.  */
9622 _ACEOF
9623 cat confdefs.h >>conftest.$ac_ext
9624 cat >>conftest.$ac_ext <<_ACEOF
9625 /* end confdefs.h.  */
9626
9627 int
9628 main ()
9629 {
9630
9631   ;
9632   return 0;
9633 }
9634 _ACEOF
9635 rm -f conftest.$ac_objext conftest$ac_exeext
9636 if { (ac_try="$ac_link"
9637 case "(($ac_try" in
9638   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9639   *) ac_try_echo=$ac_try;;
9640 esac
9641 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9642   (eval "$ac_link") 2>conftest.er1
9643   ac_status=$?
9644   grep -v '^ *+' conftest.er1 >conftest.err
9645   rm -f conftest.er1
9646   cat conftest.err >&5
9647   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9648   (exit $ac_status); } && {
9649          test -z "$ac_c_werror_flag" ||
9650          test ! -s conftest.err
9651        } && test -s conftest$ac_exeext &&
9652        $as_test_x conftest$ac_exeext; then
9653
9654 lt_aix_libpath_sed='
9655     /Import File Strings/,/^$/ {
9656         /^0/ {
9657             s/^0  *\(.*\)$/\1/
9658             p
9659         }
9660     }'
9661 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9662 # Check for a 64-bit object if we didn't find anything.
9663 if test -z "$aix_libpath"; then
9664   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9665 fi
9666 else
9667   echo "$as_me: failed program was:" >&5
9668 sed 's/^/| /' conftest.$ac_ext >&5
9669
9670
9671 fi
9672
9673 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9674       conftest$ac_exeext conftest.$ac_ext
9675 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9676
9677        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9678         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"
9679        else
9680         if test "$host_cpu" = ia64; then
9681           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9682           allow_undefined_flag="-z nodefs"
9683           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"
9684         else
9685          # Determine the default libpath from the value encoded in an empty executable.
9686          cat >conftest.$ac_ext <<_ACEOF
9687 /* confdefs.h.  */
9688 _ACEOF
9689 cat confdefs.h >>conftest.$ac_ext
9690 cat >>conftest.$ac_ext <<_ACEOF
9691 /* end confdefs.h.  */
9692
9693 int
9694 main ()
9695 {
9696
9697   ;
9698   return 0;
9699 }
9700 _ACEOF
9701 rm -f conftest.$ac_objext conftest$ac_exeext
9702 if { (ac_try="$ac_link"
9703 case "(($ac_try" in
9704   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9705   *) ac_try_echo=$ac_try;;
9706 esac
9707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9708   (eval "$ac_link") 2>conftest.er1
9709   ac_status=$?
9710   grep -v '^ *+' conftest.er1 >conftest.err
9711   rm -f conftest.er1
9712   cat conftest.err >&5
9713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9714   (exit $ac_status); } && {
9715          test -z "$ac_c_werror_flag" ||
9716          test ! -s conftest.err
9717        } && test -s conftest$ac_exeext &&
9718        $as_test_x conftest$ac_exeext; then
9719
9720 lt_aix_libpath_sed='
9721     /Import File Strings/,/^$/ {
9722         /^0/ {
9723             s/^0  *\(.*\)$/\1/
9724             p
9725         }
9726     }'
9727 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9728 # Check for a 64-bit object if we didn't find anything.
9729 if test -z "$aix_libpath"; then
9730   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9731 fi
9732 else
9733   echo "$as_me: failed program was:" >&5
9734 sed 's/^/| /' conftest.$ac_ext >&5
9735
9736
9737 fi
9738
9739 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9740       conftest$ac_exeext conftest.$ac_ext
9741 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9742
9743          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9744           # Warning - without using the other run time loading flags,
9745           # -berok will link without error, but may produce a broken library.
9746           no_undefined_flag=' ${wl}-bernotok'
9747           allow_undefined_flag=' ${wl}-berok'
9748           # Exported symbols can be pulled into shared objects from archives
9749           whole_archive_flag_spec='$convenience'
9750           archive_cmds_need_lc=yes
9751           # This is similar to how AIX traditionally builds its shared libraries.
9752           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'
9753         fi
9754       fi
9755       ;;
9756
9757     amigaos*)
9758       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)'
9759       hardcode_libdir_flag_spec='-L$libdir'
9760       hardcode_minus_L=yes
9761       # see comment about different semantics on the GNU ld section
9762       ld_shlibs=no
9763       ;;
9764
9765     bsdi[45]*)
9766       export_dynamic_flag_spec=-rdynamic
9767       ;;
9768
9769     cygwin* | mingw* | pw32*)
9770       # When not using gcc, we currently assume that we are using
9771       # Microsoft Visual C++.
9772       # hardcode_libdir_flag_spec is actually meaningless, as there is
9773       # no search path for DLLs.
9774       hardcode_libdir_flag_spec=' '
9775       allow_undefined_flag=unsupported
9776       # Tell ltmain to make .lib files, not .a files.
9777       libext=lib
9778       # Tell ltmain to make .dll files, not .so files.
9779       shrext_cmds=".dll"
9780       # FIXME: Setting linknames here is a bad hack.
9781       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
9782       # The linker will automatically build a .lib file if we build a DLL.
9783       old_archive_From_new_cmds='true'
9784       # FIXME: Should let the user specify the lib program.
9785       old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9786       fix_srcfile_path='`cygpath -w "$srcfile"`'
9787       enable_shared_with_static_runtimes=yes
9788       ;;
9789
9790     darwin* | rhapsody*)
9791       case $host_os in
9792         rhapsody* | darwin1.[012])
9793          allow_undefined_flag='${wl}-undefined ${wl}suppress'
9794          ;;
9795        *) # Darwin 1.3 on
9796          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
9797            allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9798          else
9799            case ${MACOSX_DEPLOYMENT_TARGET} in
9800              10.[012])
9801                allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9802                ;;
9803              10.*)
9804                allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
9805                ;;
9806            esac
9807          fi
9808          ;;
9809       esac
9810       archive_cmds_need_lc=no
9811       hardcode_direct=no
9812       hardcode_automatic=yes
9813       hardcode_shlibpath_var=unsupported
9814       whole_archive_flag_spec=''
9815       link_all_deplibs=yes
9816     if test "$GCC" = yes ; then
9817         output_verbose_link_cmd='echo'
9818         archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9819       module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9820       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
9821       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}'
9822       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}'
9823     else
9824       case $cc_basename in
9825         xlc*)
9826          output_verbose_link_cmd='echo'
9827          archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
9828          module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9829           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
9830          archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
9831           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}'
9832           ;;
9833        *)
9834          ld_shlibs=no
9835           ;;
9836       esac
9837     fi
9838       ;;
9839
9840     dgux*)
9841       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9842       hardcode_libdir_flag_spec='-L$libdir'
9843       hardcode_shlibpath_var=no
9844       ;;
9845
9846     freebsd1*)
9847       ld_shlibs=no
9848       ;;
9849
9850     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9851     # support.  Future versions do this automatically, but an explicit c++rt0.o
9852     # does not break anything, and helps significantly (at the cost of a little
9853     # extra space).
9854     freebsd2.2*)
9855       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9856       hardcode_libdir_flag_spec='-R$libdir'
9857       hardcode_direct=yes
9858       hardcode_shlibpath_var=no
9859       ;;
9860
9861     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9862     freebsd2*)
9863       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9864       hardcode_direct=yes
9865       hardcode_minus_L=yes
9866       hardcode_shlibpath_var=no
9867       ;;
9868
9869     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9870     freebsd* | dragonfly*)
9871       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9872       hardcode_libdir_flag_spec='-R$libdir'
9873       hardcode_direct=yes
9874       hardcode_shlibpath_var=no
9875       ;;
9876
9877     hpux9*)
9878       if test "$GCC" = yes; then
9879         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'
9880       else
9881         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'
9882       fi
9883       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9884       hardcode_libdir_separator=:
9885       hardcode_direct=yes
9886
9887       # hardcode_minus_L: Not really in the search PATH,
9888       # but as the default location of the library.
9889       hardcode_minus_L=yes
9890       export_dynamic_flag_spec='${wl}-E'
9891       ;;
9892
9893     hpux10*)
9894       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9895         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9896       else
9897         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9898       fi
9899       if test "$with_gnu_ld" = no; then
9900         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9901         hardcode_libdir_separator=:
9902
9903         hardcode_direct=yes
9904         export_dynamic_flag_spec='${wl}-E'
9905
9906         # hardcode_minus_L: Not really in the search PATH,
9907         # but as the default location of the library.
9908         hardcode_minus_L=yes
9909       fi
9910       ;;
9911
9912     hpux11*)
9913       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9914         case $host_cpu in
9915         hppa*64*)
9916           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9917           ;;
9918         ia64*)
9919           archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9920           ;;
9921         *)
9922           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9923           ;;
9924         esac
9925       else
9926         case $host_cpu in
9927         hppa*64*)
9928           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9929           ;;
9930         ia64*)
9931           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9932           ;;
9933         *)
9934           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9935           ;;
9936         esac
9937       fi
9938       if test "$with_gnu_ld" = no; then
9939         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9940         hardcode_libdir_separator=:
9941
9942         case $host_cpu in
9943         hppa*64*|ia64*)
9944           hardcode_libdir_flag_spec_ld='+b $libdir'
9945           hardcode_direct=no
9946           hardcode_shlibpath_var=no
9947           ;;
9948         *)
9949           hardcode_direct=yes
9950           export_dynamic_flag_spec='${wl}-E'
9951
9952           # hardcode_minus_L: Not really in the search PATH,
9953           # but as the default location of the library.
9954           hardcode_minus_L=yes
9955           ;;
9956         esac
9957       fi
9958       ;;
9959
9960     irix5* | irix6* | nonstopux*)
9961       if test "$GCC" = yes; then
9962         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'
9963       else
9964         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'
9965         hardcode_libdir_flag_spec_ld='-rpath $libdir'
9966       fi
9967       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9968       hardcode_libdir_separator=:
9969       link_all_deplibs=yes
9970       ;;
9971
9972     netbsd*)
9973       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9974         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9975       else
9976         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9977       fi
9978       hardcode_libdir_flag_spec='-R$libdir'
9979       hardcode_direct=yes
9980       hardcode_shlibpath_var=no
9981       ;;
9982
9983     newsos6)
9984       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9985       hardcode_direct=yes
9986       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9987       hardcode_libdir_separator=:
9988       hardcode_shlibpath_var=no
9989       ;;
9990
9991     openbsd*)
9992       if test -f /usr/libexec/ld.so; then
9993         hardcode_direct=yes
9994         hardcode_shlibpath_var=no
9995         if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9996           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9997           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9998           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9999           export_dynamic_flag_spec='${wl}-E'
10000         else
10001           case $host_os in
10002            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10003              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10004              hardcode_libdir_flag_spec='-R$libdir'
10005              ;;
10006            *)
10007              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10008              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10009              ;;
10010           esac
10011         fi
10012       else
10013         ld_shlibs=no
10014       fi
10015       ;;
10016
10017     os2*)
10018       hardcode_libdir_flag_spec='-L$libdir'
10019       hardcode_minus_L=yes
10020       allow_undefined_flag=unsupported
10021       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'
10022       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10023       ;;
10024
10025     osf3*)
10026       if test "$GCC" = yes; then
10027         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10028         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'
10029       else
10030         allow_undefined_flag=' -expect_unresolved \*'
10031         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'
10032       fi
10033       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10034       hardcode_libdir_separator=:
10035       ;;
10036
10037     osf4* | osf5*)      # as osf3* with the addition of -msym flag
10038       if test "$GCC" = yes; then
10039         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10040         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'
10041         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10042       else
10043         allow_undefined_flag=' -expect_unresolved \*'
10044         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'
10045         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
10046         $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'
10047
10048         # Both c and cxx compiler support -rpath directly
10049         hardcode_libdir_flag_spec='-rpath $libdir'
10050       fi
10051       hardcode_libdir_separator=:
10052       ;;
10053
10054     solaris*)
10055       no_undefined_flag=' -z text'
10056       if test "$GCC" = yes; then
10057         wlarc='${wl}'
10058         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10059         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10060           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
10061       else
10062         wlarc=''
10063         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10064         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10065         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
10066       fi
10067       hardcode_libdir_flag_spec='-R$libdir'
10068       hardcode_shlibpath_var=no
10069       case $host_os in
10070       solaris2.[0-5] | solaris2.[0-5].*) ;;
10071       *)
10072         # The compiler driver will combine and reorder linker options,
10073         # but understands `-z linker_flag'.  GCC discards it without `$wl',
10074         # but is careful enough not to reorder.
10075         # Supported since Solaris 2.6 (maybe 2.5.1?)
10076         if test "$GCC" = yes; then
10077           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10078         else
10079           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10080         fi
10081         ;;
10082       esac
10083       link_all_deplibs=yes
10084       ;;
10085
10086     sunos4*)
10087       if test "x$host_vendor" = xsequent; then
10088         # Use $CC to link under sequent, because it throws in some extra .o
10089         # files that make .init and .fini sections work.
10090         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10091       else
10092         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10093       fi
10094       hardcode_libdir_flag_spec='-L$libdir'
10095       hardcode_direct=yes
10096       hardcode_minus_L=yes
10097       hardcode_shlibpath_var=no
10098       ;;
10099
10100     sysv4)
10101       case $host_vendor in
10102         sni)
10103           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10104           hardcode_direct=yes # is this really true???
10105         ;;
10106         siemens)
10107           ## LD is ld it makes a PLAMLIB
10108           ## CC just makes a GrossModule.
10109           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10110           reload_cmds='$CC -r -o $output$reload_objs'
10111           hardcode_direct=no
10112         ;;
10113         motorola)
10114           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10115           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10116         ;;
10117       esac
10118       runpath_var='LD_RUN_PATH'
10119       hardcode_shlibpath_var=no
10120       ;;
10121
10122     sysv4.3*)
10123       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10124       hardcode_shlibpath_var=no
10125       export_dynamic_flag_spec='-Bexport'
10126       ;;
10127
10128     sysv4*MP*)
10129       if test -d /usr/nec; then
10130         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10131         hardcode_shlibpath_var=no
10132         runpath_var=LD_RUN_PATH
10133         hardcode_runpath_var=yes
10134         ld_shlibs=yes
10135       fi
10136       ;;
10137
10138     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10139       no_undefined_flag='${wl}-z,text'
10140       archive_cmds_need_lc=no
10141       hardcode_shlibpath_var=no
10142       runpath_var='LD_RUN_PATH'
10143
10144       if test "$GCC" = yes; then
10145         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10146         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10147       else
10148         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10149         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10150       fi
10151       ;;
10152
10153     sysv5* | sco3.2v5* | sco5v6*)
10154       # Note: We can NOT use -z defs as we might desire, because we do not
10155       # link with -lc, and that would cause any symbols used from libc to
10156       # always be unresolved, which means just about no library would
10157       # ever link correctly.  If we're not using GNU ld we use -z text
10158       # though, which does catch some bad symbols but isn't as heavy-handed
10159       # as -z defs.
10160       no_undefined_flag='${wl}-z,text'
10161       allow_undefined_flag='${wl}-z,nodefs'
10162       archive_cmds_need_lc=no
10163       hardcode_shlibpath_var=no
10164       hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
10165       hardcode_libdir_separator=':'
10166       link_all_deplibs=yes
10167       export_dynamic_flag_spec='${wl}-Bexport'
10168       runpath_var='LD_RUN_PATH'
10169
10170       if test "$GCC" = yes; then
10171         archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10172         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10173       else
10174         archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10175         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10176       fi
10177       ;;
10178
10179     uts4*)
10180       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10181       hardcode_libdir_flag_spec='-L$libdir'
10182       hardcode_shlibpath_var=no
10183       ;;
10184
10185     *)
10186       ld_shlibs=no
10187       ;;
10188     esac
10189   fi
10190
10191 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
10192 echo "${ECHO_T}$ld_shlibs" >&6; }
10193 test "$ld_shlibs" = no && can_build_shared=no
10194
10195 #
10196 # Do we need to explicitly link libc?
10197 #
10198 case "x$archive_cmds_need_lc" in
10199 x|xyes)
10200   # Assume -lc should be added
10201   archive_cmds_need_lc=yes
10202
10203   if test "$enable_shared" = yes && test "$GCC" = yes; then
10204     case $archive_cmds in
10205     *'~'*)
10206       # FIXME: we may have to deal with multi-command sequences.
10207       ;;
10208     '$CC '*)
10209       # Test whether the compiler implicitly links with -lc since on some
10210       # systems, -lgcc has to come before -lc. If gcc already passes -lc
10211       # to ld, don't add -lc before -lgcc.
10212       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
10213 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
10214       $rm conftest*
10215       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10216
10217       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10218   (eval $ac_compile) 2>&5
10219   ac_status=$?
10220   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10221   (exit $ac_status); } 2>conftest.err; then
10222         soname=conftest
10223         lib=conftest
10224         libobjs=conftest.$ac_objext
10225         deplibs=
10226         wl=$lt_prog_compiler_wl
10227         pic_flag=$lt_prog_compiler_pic
10228         compiler_flags=-v
10229         linker_flags=-v
10230         verstring=
10231         output_objdir=.
10232         libname=conftest
10233         lt_save_allow_undefined_flag=$allow_undefined_flag
10234         allow_undefined_flag=
10235         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
10236   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
10237   ac_status=$?
10238   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10239   (exit $ac_status); }
10240         then
10241           archive_cmds_need_lc=no
10242         else
10243           archive_cmds_need_lc=yes
10244         fi
10245         allow_undefined_flag=$lt_save_allow_undefined_flag
10246       else
10247         cat conftest.err 1>&5
10248       fi
10249       $rm conftest*
10250       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
10251 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
10252       ;;
10253     esac
10254   fi
10255   ;;
10256 esac
10257
10258 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
10259 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
10260 library_names_spec=
10261 libname_spec='lib$name'
10262 soname_spec=
10263 shrext_cmds=".so"
10264 postinstall_cmds=
10265 postuninstall_cmds=
10266 finish_cmds=
10267 finish_eval=
10268 shlibpath_var=
10269 shlibpath_overrides_runpath=unknown
10270 version_type=none
10271 dynamic_linker="$host_os ld.so"
10272 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10273
10274 if test "$GCC" = yes; then
10275   case $host_os in
10276     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10277     *) lt_awk_arg="/^libraries:/" ;;
10278   esac
10279   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10280   if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
10281     # if the path contains ";" then we assume it to be the separator
10282     # otherwise default to the standard path separator (i.e. ":") - it is
10283     # assumed that no part of a normal pathname contains ";" but that should
10284     # okay in the real world where ";" in dirpaths is itself problematic.
10285     lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
10286   else
10287     lt_search_path_spec=`echo "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
10288   fi
10289   # Ok, now we have the path, separated by spaces, we can step through it
10290   # and add multilib dir if necessary.
10291   lt_tmp_lt_search_path_spec=
10292   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10293   for lt_sys_path in $lt_search_path_spec; do
10294     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10295       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10296     else
10297       test -d "$lt_sys_path" && \
10298         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10299     fi
10300   done
10301   lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
10302 BEGIN {RS=" "; FS="/|\n";} {
10303   lt_foo="";
10304   lt_count=0;
10305   for (lt_i = NF; lt_i > 0; lt_i--) {
10306     if ($lt_i != "" && $lt_i != ".") {
10307       if ($lt_i == "..") {
10308         lt_count++;
10309       } else {
10310         if (lt_count == 0) {
10311           lt_foo="/" $lt_i lt_foo;
10312         } else {
10313           lt_count--;
10314         }
10315       }
10316     }
10317   }
10318   if (lt_foo != "") { lt_freq[lt_foo]++; }
10319   if (lt_freq[lt_foo] == 1) { print lt_foo; }
10320 }'`
10321   sys_lib_search_path_spec=`echo $lt_search_path_spec`
10322 else
10323   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10324 fi
10325 need_lib_prefix=unknown
10326 hardcode_into_libs=no
10327
10328 # when you set need_version to no, make sure it does not cause -set_version
10329 # flags to be left without arguments
10330 need_version=unknown
10331
10332 case $host_os in
10333 aix3*)
10334   version_type=linux
10335   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10336   shlibpath_var=LIBPATH
10337
10338   # AIX 3 has no versioning support, so we append a major version to the name.
10339   soname_spec='${libname}${release}${shared_ext}$major'
10340   ;;
10341
10342 aix4* | aix5*)
10343   version_type=linux
10344   need_lib_prefix=no
10345   need_version=no
10346   hardcode_into_libs=yes
10347   if test "$host_cpu" = ia64; then
10348     # AIX 5 supports IA64
10349     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10350     shlibpath_var=LD_LIBRARY_PATH
10351   else
10352     # With GCC up to 2.95.x, collect2 would create an import file
10353     # for dependence libraries.  The import file would start with
10354     # the line `#! .'.  This would cause the generated library to
10355     # depend on `.', always an invalid library.  This was fixed in
10356     # development snapshots of GCC prior to 3.0.
10357     case $host_os in
10358       aix4 | aix4.[01] | aix4.[01].*)
10359       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10360            echo ' yes '
10361            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
10362         :
10363       else
10364         can_build_shared=no
10365       fi
10366       ;;
10367     esac
10368     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10369     # soname into executable. Probably we can add versioning support to
10370     # collect2, so additional links can be useful in future.
10371     if test "$aix_use_runtimelinking" = yes; then
10372       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10373       # instead of lib<name>.a to let people know that these are not
10374       # typical AIX shared libraries.
10375       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10376     else
10377       # We preserve .a as extension for shared libraries through AIX4.2
10378       # and later when we are not doing run time linking.
10379       library_names_spec='${libname}${release}.a $libname.a'
10380       soname_spec='${libname}${release}${shared_ext}$major'
10381     fi
10382     shlibpath_var=LIBPATH
10383   fi
10384   ;;
10385
10386 amigaos*)
10387   library_names_spec='$libname.ixlibrary $libname.a'
10388   # Create ${libname}_ixlibrary.a entries in /sys/libs.
10389   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'
10390   ;;
10391
10392 beos*)
10393   library_names_spec='${libname}${shared_ext}'
10394   dynamic_linker="$host_os ld.so"
10395   shlibpath_var=LIBRARY_PATH
10396   ;;
10397
10398 bsdi[45]*)
10399   version_type=linux
10400   need_version=no
10401   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10402   soname_spec='${libname}${release}${shared_ext}$major'
10403   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10404   shlibpath_var=LD_LIBRARY_PATH
10405   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10406   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10407   # the default ld.so.conf also contains /usr/contrib/lib and
10408   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10409   # libtool to hard-code these into programs
10410   ;;
10411
10412 cygwin* | mingw* | pw32*)
10413   version_type=windows
10414   shrext_cmds=".dll"
10415   need_version=no
10416   need_lib_prefix=no
10417
10418   case $GCC,$host_os in
10419   yes,cygwin* | yes,mingw* | yes,pw32*)
10420     library_names_spec='$libname.dll.a'
10421     # DLL is installed to $(libdir)/../bin by postinstall_cmds
10422     postinstall_cmds='base_file=`basename \${file}`~
10423       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
10424       dldir=$destdir/`dirname \$dlpath`~
10425       test -d \$dldir || mkdir -p \$dldir~
10426       $install_prog $dir/$dlname \$dldir/$dlname~
10427       chmod a+x \$dldir/$dlname'
10428     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10429       dlpath=$dir/\$dldll~
10430        $rm \$dlpath'
10431     shlibpath_overrides_runpath=yes
10432
10433     case $host_os in
10434     cygwin*)
10435       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10436       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10437       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
10438       ;;
10439     mingw*)
10440       # MinGW DLLs use traditional 'lib' prefix
10441       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10442       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10443       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
10444         # It is most probably a Windows format PATH printed by
10445         # mingw gcc, but we are running on Cygwin. Gcc prints its search
10446         # path with ; separators, and with drive letters. We can handle the
10447         # drive letters (cygwin fileutils understands them), so leave them,
10448         # especially as we might pass files found there to a mingw objdump,
10449         # which wouldn't understand a cygwinified path. Ahh.
10450         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10451       else
10452         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
10453       fi
10454       ;;
10455     pw32*)
10456       # pw32 DLLs use 'pw' prefix rather than 'lib'
10457       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10458       ;;
10459     esac
10460     ;;
10461
10462   *)
10463     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10464     ;;
10465   esac
10466   dynamic_linker='Win32 ld.exe'
10467   # FIXME: first we should search . and the directory the executable is in
10468   shlibpath_var=PATH
10469   ;;
10470
10471 darwin* | rhapsody*)
10472   dynamic_linker="$host_os dyld"
10473   version_type=darwin
10474   need_lib_prefix=no
10475   need_version=no
10476   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10477   soname_spec='${libname}${release}${major}$shared_ext'
10478   shlibpath_overrides_runpath=yes
10479   shlibpath_var=DYLD_LIBRARY_PATH
10480   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10481
10482   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10483   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10484   ;;
10485
10486 dgux*)
10487   version_type=linux
10488   need_lib_prefix=no
10489   need_version=no
10490   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10491   soname_spec='${libname}${release}${shared_ext}$major'
10492   shlibpath_var=LD_LIBRARY_PATH
10493   ;;
10494
10495 freebsd1*)
10496   dynamic_linker=no
10497   ;;
10498
10499 freebsd* | dragonfly*)
10500   # DragonFly does not have aout.  When/if they implement a new
10501   # versioning mechanism, adjust this.
10502   if test -x /usr/bin/objformat; then
10503     objformat=`/usr/bin/objformat`
10504   else
10505     case $host_os in
10506     freebsd[123]*) objformat=aout ;;
10507     *) objformat=elf ;;
10508     esac
10509   fi
10510   version_type=freebsd-$objformat
10511   case $version_type in
10512     freebsd-elf*)
10513       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10514       need_version=no
10515       need_lib_prefix=no
10516       ;;
10517     freebsd-*)
10518       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10519       need_version=yes
10520       ;;
10521   esac
10522   shlibpath_var=LD_LIBRARY_PATH
10523   case $host_os in
10524   freebsd2*)
10525     shlibpath_overrides_runpath=yes
10526     ;;
10527   freebsd3.[01]* | freebsdelf3.[01]*)
10528     shlibpath_overrides_runpath=yes
10529     hardcode_into_libs=yes
10530     ;;
10531   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10532   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10533     shlibpath_overrides_runpath=no
10534     hardcode_into_libs=yes
10535     ;;
10536   *) # from 4.6 on, and DragonFly
10537     shlibpath_overrides_runpath=yes
10538     hardcode_into_libs=yes
10539     ;;
10540   esac
10541   ;;
10542
10543 gnu*)
10544   version_type=linux
10545   need_lib_prefix=no
10546   need_version=no
10547   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10548   soname_spec='${libname}${release}${shared_ext}$major'
10549   shlibpath_var=LD_LIBRARY_PATH
10550   hardcode_into_libs=yes
10551   ;;
10552
10553 hpux9* | hpux10* | hpux11*)
10554   # Give a soname corresponding to the major version so that dld.sl refuses to
10555   # link against other versions.
10556   version_type=sunos
10557   need_lib_prefix=no
10558   need_version=no
10559   case $host_cpu in
10560   ia64*)
10561     shrext_cmds='.so'
10562     hardcode_into_libs=yes
10563     dynamic_linker="$host_os dld.so"
10564     shlibpath_var=LD_LIBRARY_PATH
10565     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10566     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10567     soname_spec='${libname}${release}${shared_ext}$major'
10568     if test "X$HPUX_IA64_MODE" = X32; then
10569       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10570     else
10571       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10572     fi
10573     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10574     ;;
10575    hppa*64*)
10576      shrext_cmds='.sl'
10577      hardcode_into_libs=yes
10578      dynamic_linker="$host_os dld.sl"
10579      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10580      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10581      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10582      soname_spec='${libname}${release}${shared_ext}$major'
10583      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10584      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10585      ;;
10586    *)
10587     shrext_cmds='.sl'
10588     dynamic_linker="$host_os dld.sl"
10589     shlibpath_var=SHLIB_PATH
10590     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10591     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10592     soname_spec='${libname}${release}${shared_ext}$major'
10593     ;;
10594   esac
10595   # HP-UX runs *really* slowly unless shared libraries are mode 555.
10596   postinstall_cmds='chmod 555 $lib'
10597   ;;
10598
10599 interix[3-9]*)
10600   version_type=linux
10601   need_lib_prefix=no
10602   need_version=no
10603   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10604   soname_spec='${libname}${release}${shared_ext}$major'
10605   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10606   shlibpath_var=LD_LIBRARY_PATH
10607   shlibpath_overrides_runpath=no
10608   hardcode_into_libs=yes
10609   ;;
10610
10611 irix5* | irix6* | nonstopux*)
10612   case $host_os in
10613     nonstopux*) version_type=nonstopux ;;
10614     *)
10615         if test "$lt_cv_prog_gnu_ld" = yes; then
10616                 version_type=linux
10617         else
10618                 version_type=irix
10619         fi ;;
10620   esac
10621   need_lib_prefix=no
10622   need_version=no
10623   soname_spec='${libname}${release}${shared_ext}$major'
10624   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10625   case $host_os in
10626   irix5* | nonstopux*)
10627     libsuff= shlibsuff=
10628     ;;
10629   *)
10630     case $LD in # libtool.m4 will add one of these switches to LD
10631     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10632       libsuff= shlibsuff= libmagic=32-bit;;
10633     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10634       libsuff=32 shlibsuff=N32 libmagic=N32;;
10635     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10636       libsuff=64 shlibsuff=64 libmagic=64-bit;;
10637     *) libsuff= shlibsuff= libmagic=never-match;;
10638     esac
10639     ;;
10640   esac
10641   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10642   shlibpath_overrides_runpath=no
10643   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10644   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10645   hardcode_into_libs=yes
10646   ;;
10647
10648 # No shared lib support for Linux oldld, aout, or coff.
10649 linux*oldld* | linux*aout* | linux*coff*)
10650   dynamic_linker=no
10651   ;;
10652
10653 # This must be Linux ELF.
10654 linux* | k*bsd*-gnu)
10655   version_type=linux
10656   need_lib_prefix=no
10657   need_version=no
10658   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10659   soname_spec='${libname}${release}${shared_ext}$major'
10660   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10661   shlibpath_var=LD_LIBRARY_PATH
10662   shlibpath_overrides_runpath=no
10663   # This implies no fast_install, which is unacceptable.
10664   # Some rework will be needed to allow for fast_install
10665   # before this can be enabled.
10666   hardcode_into_libs=yes
10667   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10668   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10669
10670   # Append ld.so.conf contents to the search path
10671   if test -f /etc/ld.so.conf; then
10672     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[      ]*hwcap[        ]/d;s/[:,       ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
10673     sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
10674   fi
10675
10676   # We used to test for /lib/ld.so.1 and disable shared libraries on
10677   # powerpc, because MkLinux only supported shared libraries with the
10678   # GNU dynamic linker.  Since this was broken with cross compilers,
10679   # most powerpc-linux boxes support dynamic linking these days and
10680   # people can always --disable-shared, the test was removed, and we
10681   # assume the GNU/Linux dynamic linker is in use.
10682   dynamic_linker='GNU/Linux ld.so'
10683   ;;
10684
10685 netbsd*)
10686   version_type=sunos
10687   need_lib_prefix=no
10688   need_version=no
10689   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10690     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10691     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10692     dynamic_linker='NetBSD (a.out) ld.so'
10693   else
10694     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10695     soname_spec='${libname}${release}${shared_ext}$major'
10696     dynamic_linker='NetBSD ld.elf_so'
10697   fi
10698   shlibpath_var=LD_LIBRARY_PATH
10699   shlibpath_overrides_runpath=yes
10700   hardcode_into_libs=yes
10701   ;;
10702
10703 newsos6)
10704   version_type=linux
10705   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10706   shlibpath_var=LD_LIBRARY_PATH
10707   shlibpath_overrides_runpath=yes
10708   ;;
10709
10710 nto-qnx*)
10711   version_type=linux
10712   need_lib_prefix=no
10713   need_version=no
10714   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10715   soname_spec='${libname}${release}${shared_ext}$major'
10716   shlibpath_var=LD_LIBRARY_PATH
10717   shlibpath_overrides_runpath=yes
10718   ;;
10719
10720 openbsd*)
10721   version_type=sunos
10722   sys_lib_dlsearch_path_spec="/usr/lib"
10723   need_lib_prefix=no
10724   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10725   case $host_os in
10726     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10727     *)                         need_version=no  ;;
10728   esac
10729   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10730   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10731   shlibpath_var=LD_LIBRARY_PATH
10732   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10733     case $host_os in
10734       openbsd2.[89] | openbsd2.[89].*)
10735         shlibpath_overrides_runpath=no
10736         ;;
10737       *)
10738         shlibpath_overrides_runpath=yes
10739         ;;
10740       esac
10741   else
10742     shlibpath_overrides_runpath=yes
10743   fi
10744   ;;
10745
10746 os2*)
10747   libname_spec='$name'
10748   shrext_cmds=".dll"
10749   need_lib_prefix=no
10750   library_names_spec='$libname${shared_ext} $libname.a'
10751   dynamic_linker='OS/2 ld.exe'
10752   shlibpath_var=LIBPATH
10753   ;;
10754
10755 osf3* | osf4* | osf5*)
10756   version_type=osf
10757   need_lib_prefix=no
10758   need_version=no
10759   soname_spec='${libname}${release}${shared_ext}$major'
10760   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10761   shlibpath_var=LD_LIBRARY_PATH
10762   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10763   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10764   ;;
10765
10766 rdos*)
10767   dynamic_linker=no
10768   ;;
10769
10770 solaris*)
10771   version_type=linux
10772   need_lib_prefix=no
10773   need_version=no
10774   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10775   soname_spec='${libname}${release}${shared_ext}$major'
10776   shlibpath_var=LD_LIBRARY_PATH
10777   shlibpath_overrides_runpath=yes
10778   hardcode_into_libs=yes
10779   # ldd complains unless libraries are executable
10780   postinstall_cmds='chmod +x $lib'
10781   ;;
10782
10783 sunos4*)
10784   version_type=sunos
10785   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10786   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10787   shlibpath_var=LD_LIBRARY_PATH
10788   shlibpath_overrides_runpath=yes
10789   if test "$with_gnu_ld" = yes; then
10790     need_lib_prefix=no
10791   fi
10792   need_version=yes
10793   ;;
10794
10795 sysv4 | sysv4.3*)
10796   version_type=linux
10797   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10798   soname_spec='${libname}${release}${shared_ext}$major'
10799   shlibpath_var=LD_LIBRARY_PATH
10800   case $host_vendor in
10801     sni)
10802       shlibpath_overrides_runpath=no
10803       need_lib_prefix=no
10804       export_dynamic_flag_spec='${wl}-Blargedynsym'
10805       runpath_var=LD_RUN_PATH
10806       ;;
10807     siemens)
10808       need_lib_prefix=no
10809       ;;
10810     motorola)
10811       need_lib_prefix=no
10812       need_version=no
10813       shlibpath_overrides_runpath=no
10814       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10815       ;;
10816   esac
10817   ;;
10818
10819 sysv4*MP*)
10820   if test -d /usr/nec ;then
10821     version_type=linux
10822     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10823     soname_spec='$libname${shared_ext}.$major'
10824     shlibpath_var=LD_LIBRARY_PATH
10825   fi
10826   ;;
10827
10828 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10829   version_type=freebsd-elf
10830   need_lib_prefix=no
10831   need_version=no
10832   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10833   soname_spec='${libname}${release}${shared_ext}$major'
10834   shlibpath_var=LD_LIBRARY_PATH
10835   hardcode_into_libs=yes
10836   if test "$with_gnu_ld" = yes; then
10837     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10838     shlibpath_overrides_runpath=no
10839   else
10840     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10841     shlibpath_overrides_runpath=yes
10842     case $host_os in
10843       sco3.2v5*)
10844         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10845         ;;
10846     esac
10847   fi
10848   sys_lib_dlsearch_path_spec='/usr/lib'
10849   ;;
10850
10851 uts4*)
10852   version_type=linux
10853   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10854   soname_spec='${libname}${release}${shared_ext}$major'
10855   shlibpath_var=LD_LIBRARY_PATH
10856   ;;
10857
10858 *)
10859   dynamic_linker=no
10860   ;;
10861 esac
10862 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10863 echo "${ECHO_T}$dynamic_linker" >&6; }
10864 test "$dynamic_linker" = no && can_build_shared=no
10865
10866 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10867 if test "$GCC" = yes; then
10868   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10869 fi
10870
10871 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10872 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
10873 hardcode_action=
10874 if test -n "$hardcode_libdir_flag_spec" || \
10875    test -n "$runpath_var" || \
10876    test "X$hardcode_automatic" = "Xyes" ; then
10877
10878   # We can hardcode non-existant directories.
10879   if test "$hardcode_direct" != no &&
10880      # If the only mechanism to avoid hardcoding is shlibpath_var, we
10881      # have to relink, otherwise we might link with an installed library
10882      # when we should be linking with a yet-to-be-installed one
10883      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
10884      test "$hardcode_minus_L" != no; then
10885     # Linking always hardcodes the temporary library directory.
10886     hardcode_action=relink
10887   else
10888     # We can link without hardcoding, and we can hardcode nonexisting dirs.
10889     hardcode_action=immediate
10890   fi
10891 else
10892   # We cannot hardcode anything, or else we can only hardcode existing
10893   # directories.
10894   hardcode_action=unsupported
10895 fi
10896 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
10897 echo "${ECHO_T}$hardcode_action" >&6; }
10898
10899 if test "$hardcode_action" = relink; then
10900   # Fast installation is not supported
10901   enable_fast_install=no
10902 elif test "$shlibpath_overrides_runpath" = yes ||
10903      test "$enable_shared" = no; then
10904   # Fast installation is not necessary
10905   enable_fast_install=needless
10906 fi
10907
10908 striplib=
10909 old_striplib=
10910 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10911 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
10912 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
10913   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10914   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10915   { echo "$as_me:$LINENO: result: yes" >&5
10916 echo "${ECHO_T}yes" >&6; }
10917 else
10918 # FIXME - insert some real tests, host_os isn't really good enough
10919   case $host_os in
10920    darwin*)
10921        if test -n "$STRIP" ; then
10922          striplib="$STRIP -x"
10923          old_striplib="$STRIP -S"
10924          { echo "$as_me:$LINENO: result: yes" >&5
10925 echo "${ECHO_T}yes" >&6; }
10926        else
10927   { echo "$as_me:$LINENO: result: no" >&5
10928 echo "${ECHO_T}no" >&6; }
10929 fi
10930        ;;
10931    *)
10932   { echo "$as_me:$LINENO: result: no" >&5
10933 echo "${ECHO_T}no" >&6; }
10934     ;;
10935   esac
10936 fi
10937
10938 if test "x$enable_dlopen" != xyes; then
10939   enable_dlopen=unknown
10940   enable_dlopen_self=unknown
10941   enable_dlopen_self_static=unknown
10942 else
10943   lt_cv_dlopen=no
10944   lt_cv_dlopen_libs=
10945
10946   case $host_os in
10947   beos*)
10948     lt_cv_dlopen="load_add_on"
10949     lt_cv_dlopen_libs=
10950     lt_cv_dlopen_self=yes
10951     ;;
10952
10953   mingw* | pw32*)
10954     lt_cv_dlopen="LoadLibrary"
10955     lt_cv_dlopen_libs=
10956    ;;
10957
10958   cygwin*)
10959     lt_cv_dlopen="dlopen"
10960     lt_cv_dlopen_libs=
10961    ;;
10962
10963   darwin*)
10964   # if libdl is installed we need to link against it
10965     { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10966 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10967 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10968   echo $ECHO_N "(cached) $ECHO_C" >&6
10969 else
10970   ac_check_lib_save_LIBS=$LIBS
10971 LIBS="-ldl  $LIBS"
10972 cat >conftest.$ac_ext <<_ACEOF
10973 /* confdefs.h.  */
10974 _ACEOF
10975 cat confdefs.h >>conftest.$ac_ext
10976 cat >>conftest.$ac_ext <<_ACEOF
10977 /* end confdefs.h.  */
10978
10979 /* Override any GCC internal prototype to avoid an error.
10980    Use char because int might match the return type of a GCC
10981    builtin and then its argument prototype would still apply.  */
10982 #ifdef __cplusplus
10983 extern "C"
10984 #endif
10985 char dlopen ();
10986 int
10987 main ()
10988 {
10989 return dlopen ();
10990   ;
10991   return 0;
10992 }
10993 _ACEOF
10994 rm -f conftest.$ac_objext conftest$ac_exeext
10995 if { (ac_try="$ac_link"
10996 case "(($ac_try" in
10997   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10998   *) ac_try_echo=$ac_try;;
10999 esac
11000 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11001   (eval "$ac_link") 2>conftest.er1
11002   ac_status=$?
11003   grep -v '^ *+' conftest.er1 >conftest.err
11004   rm -f conftest.er1
11005   cat conftest.err >&5
11006   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11007   (exit $ac_status); } && {
11008          test -z "$ac_c_werror_flag" ||
11009          test ! -s conftest.err
11010        } && test -s conftest$ac_exeext &&
11011        $as_test_x conftest$ac_exeext; then
11012   ac_cv_lib_dl_dlopen=yes
11013 else
11014   echo "$as_me: failed program was:" >&5
11015 sed 's/^/| /' conftest.$ac_ext >&5
11016
11017         ac_cv_lib_dl_dlopen=no
11018 fi
11019
11020 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11021       conftest$ac_exeext conftest.$ac_ext
11022 LIBS=$ac_check_lib_save_LIBS
11023 fi
11024 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11025 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
11026 if test $ac_cv_lib_dl_dlopen = yes; then
11027   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11028 else
11029
11030     lt_cv_dlopen="dyld"
11031     lt_cv_dlopen_libs=
11032     lt_cv_dlopen_self=yes
11033
11034 fi
11035
11036    ;;
11037
11038   *)
11039     { echo "$as_me:$LINENO: checking for shl_load" >&5
11040 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
11041 if test "${ac_cv_func_shl_load+set}" = set; then
11042   echo $ECHO_N "(cached) $ECHO_C" >&6
11043 else
11044   cat >conftest.$ac_ext <<_ACEOF
11045 /* confdefs.h.  */
11046 _ACEOF
11047 cat confdefs.h >>conftest.$ac_ext
11048 cat >>conftest.$ac_ext <<_ACEOF
11049 /* end confdefs.h.  */
11050 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
11051    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11052 #define shl_load innocuous_shl_load
11053
11054 /* System header to define __stub macros and hopefully few prototypes,
11055     which can conflict with char shl_load (); below.
11056     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11057     <limits.h> exists even on freestanding compilers.  */
11058
11059 #ifdef __STDC__
11060 # include <limits.h>
11061 #else
11062 # include <assert.h>
11063 #endif
11064
11065 #undef shl_load
11066
11067 /* Override any GCC internal prototype to avoid an error.
11068    Use char because int might match the return type of a GCC
11069    builtin and then its argument prototype would still apply.  */
11070 #ifdef __cplusplus
11071 extern "C"
11072 #endif
11073 char shl_load ();
11074 /* The GNU C library defines this for functions which it implements
11075     to always fail with ENOSYS.  Some functions are actually named
11076     something starting with __ and the normal name is an alias.  */
11077 #if defined __stub_shl_load || defined __stub___shl_load
11078 choke me
11079 #endif
11080
11081 int
11082 main ()
11083 {
11084 return shl_load ();
11085   ;
11086   return 0;
11087 }
11088 _ACEOF
11089 rm -f conftest.$ac_objext conftest$ac_exeext
11090 if { (ac_try="$ac_link"
11091 case "(($ac_try" in
11092   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11093   *) ac_try_echo=$ac_try;;
11094 esac
11095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11096   (eval "$ac_link") 2>conftest.er1
11097   ac_status=$?
11098   grep -v '^ *+' conftest.er1 >conftest.err
11099   rm -f conftest.er1
11100   cat conftest.err >&5
11101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11102   (exit $ac_status); } && {
11103          test -z "$ac_c_werror_flag" ||
11104          test ! -s conftest.err
11105        } && test -s conftest$ac_exeext &&
11106        $as_test_x conftest$ac_exeext; then
11107   ac_cv_func_shl_load=yes
11108 else
11109   echo "$as_me: failed program was:" >&5
11110 sed 's/^/| /' conftest.$ac_ext >&5
11111
11112         ac_cv_func_shl_load=no
11113 fi
11114
11115 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11116       conftest$ac_exeext conftest.$ac_ext
11117 fi
11118 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
11119 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
11120 if test $ac_cv_func_shl_load = yes; then
11121   lt_cv_dlopen="shl_load"
11122 else
11123   { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
11124 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
11125 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
11126   echo $ECHO_N "(cached) $ECHO_C" >&6
11127 else
11128   ac_check_lib_save_LIBS=$LIBS
11129 LIBS="-ldld  $LIBS"
11130 cat >conftest.$ac_ext <<_ACEOF
11131 /* confdefs.h.  */
11132 _ACEOF
11133 cat confdefs.h >>conftest.$ac_ext
11134 cat >>conftest.$ac_ext <<_ACEOF
11135 /* end confdefs.h.  */
11136
11137 /* Override any GCC internal prototype to avoid an error.
11138    Use char because int might match the return type of a GCC
11139    builtin and then its argument prototype would still apply.  */
11140 #ifdef __cplusplus
11141 extern "C"
11142 #endif
11143 char shl_load ();
11144 int
11145 main ()
11146 {
11147 return shl_load ();
11148   ;
11149   return 0;
11150 }
11151 _ACEOF
11152 rm -f conftest.$ac_objext conftest$ac_exeext
11153 if { (ac_try="$ac_link"
11154 case "(($ac_try" in
11155   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11156   *) ac_try_echo=$ac_try;;
11157 esac
11158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11159   (eval "$ac_link") 2>conftest.er1
11160   ac_status=$?
11161   grep -v '^ *+' conftest.er1 >conftest.err
11162   rm -f conftest.er1
11163   cat conftest.err >&5
11164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11165   (exit $ac_status); } && {
11166          test -z "$ac_c_werror_flag" ||
11167          test ! -s conftest.err
11168        } && test -s conftest$ac_exeext &&
11169        $as_test_x conftest$ac_exeext; then
11170   ac_cv_lib_dld_shl_load=yes
11171 else
11172   echo "$as_me: failed program was:" >&5
11173 sed 's/^/| /' conftest.$ac_ext >&5
11174
11175         ac_cv_lib_dld_shl_load=no
11176 fi
11177
11178 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11179       conftest$ac_exeext conftest.$ac_ext
11180 LIBS=$ac_check_lib_save_LIBS
11181 fi
11182 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
11183 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
11184 if test $ac_cv_lib_dld_shl_load = yes; then
11185   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
11186 else
11187   { echo "$as_me:$LINENO: checking for dlopen" >&5
11188 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
11189 if test "${ac_cv_func_dlopen+set}" = set; then
11190   echo $ECHO_N "(cached) $ECHO_C" >&6
11191 else
11192   cat >conftest.$ac_ext <<_ACEOF
11193 /* confdefs.h.  */
11194 _ACEOF
11195 cat confdefs.h >>conftest.$ac_ext
11196 cat >>conftest.$ac_ext <<_ACEOF
11197 /* end confdefs.h.  */
11198 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
11199    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11200 #define dlopen innocuous_dlopen
11201
11202 /* System header to define __stub macros and hopefully few prototypes,
11203     which can conflict with char dlopen (); below.
11204     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11205     <limits.h> exists even on freestanding compilers.  */
11206
11207 #ifdef __STDC__
11208 # include <limits.h>
11209 #else
11210 # include <assert.h>
11211 #endif
11212
11213 #undef dlopen
11214
11215 /* Override any GCC internal prototype to avoid an error.
11216    Use char because int might match the return type of a GCC
11217    builtin and then its argument prototype would still apply.  */
11218 #ifdef __cplusplus
11219 extern "C"
11220 #endif
11221 char dlopen ();
11222 /* The GNU C library defines this for functions which it implements
11223     to always fail with ENOSYS.  Some functions are actually named
11224     something starting with __ and the normal name is an alias.  */
11225 #if defined __stub_dlopen || defined __stub___dlopen
11226 choke me
11227 #endif
11228
11229 int
11230 main ()
11231 {
11232 return dlopen ();
11233   ;
11234   return 0;
11235 }
11236 _ACEOF
11237 rm -f conftest.$ac_objext conftest$ac_exeext
11238 if { (ac_try="$ac_link"
11239 case "(($ac_try" in
11240   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11241   *) ac_try_echo=$ac_try;;
11242 esac
11243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11244   (eval "$ac_link") 2>conftest.er1
11245   ac_status=$?
11246   grep -v '^ *+' conftest.er1 >conftest.err
11247   rm -f conftest.er1
11248   cat conftest.err >&5
11249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11250   (exit $ac_status); } && {
11251          test -z "$ac_c_werror_flag" ||
11252          test ! -s conftest.err
11253        } && test -s conftest$ac_exeext &&
11254        $as_test_x conftest$ac_exeext; then
11255   ac_cv_func_dlopen=yes
11256 else
11257   echo "$as_me: failed program was:" >&5
11258 sed 's/^/| /' conftest.$ac_ext >&5
11259
11260         ac_cv_func_dlopen=no
11261 fi
11262
11263 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11264       conftest$ac_exeext conftest.$ac_ext
11265 fi
11266 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
11267 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
11268 if test $ac_cv_func_dlopen = yes; then
11269   lt_cv_dlopen="dlopen"
11270 else
11271   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11272 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
11273 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11274   echo $ECHO_N "(cached) $ECHO_C" >&6
11275 else
11276   ac_check_lib_save_LIBS=$LIBS
11277 LIBS="-ldl  $LIBS"
11278 cat >conftest.$ac_ext <<_ACEOF
11279 /* confdefs.h.  */
11280 _ACEOF
11281 cat confdefs.h >>conftest.$ac_ext
11282 cat >>conftest.$ac_ext <<_ACEOF
11283 /* end confdefs.h.  */
11284
11285 /* Override any GCC internal prototype to avoid an error.
11286    Use char because int might match the return type of a GCC
11287    builtin and then its argument prototype would still apply.  */
11288 #ifdef __cplusplus
11289 extern "C"
11290 #endif
11291 char dlopen ();
11292 int
11293 main ()
11294 {
11295 return dlopen ();
11296   ;
11297   return 0;
11298 }
11299 _ACEOF
11300 rm -f conftest.$ac_objext conftest$ac_exeext
11301 if { (ac_try="$ac_link"
11302 case "(($ac_try" in
11303   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11304   *) ac_try_echo=$ac_try;;
11305 esac
11306 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11307   (eval "$ac_link") 2>conftest.er1
11308   ac_status=$?
11309   grep -v '^ *+' conftest.er1 >conftest.err
11310   rm -f conftest.er1
11311   cat conftest.err >&5
11312   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11313   (exit $ac_status); } && {
11314          test -z "$ac_c_werror_flag" ||
11315          test ! -s conftest.err
11316        } && test -s conftest$ac_exeext &&
11317        $as_test_x conftest$ac_exeext; then
11318   ac_cv_lib_dl_dlopen=yes
11319 else
11320   echo "$as_me: failed program was:" >&5
11321 sed 's/^/| /' conftest.$ac_ext >&5
11322
11323         ac_cv_lib_dl_dlopen=no
11324 fi
11325
11326 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11327       conftest$ac_exeext conftest.$ac_ext
11328 LIBS=$ac_check_lib_save_LIBS
11329 fi
11330 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11331 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
11332 if test $ac_cv_lib_dl_dlopen = yes; then
11333   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11334 else
11335   { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
11336 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
11337 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
11338   echo $ECHO_N "(cached) $ECHO_C" >&6
11339 else
11340   ac_check_lib_save_LIBS=$LIBS
11341 LIBS="-lsvld  $LIBS"
11342 cat >conftest.$ac_ext <<_ACEOF
11343 /* confdefs.h.  */
11344 _ACEOF
11345 cat confdefs.h >>conftest.$ac_ext
11346 cat >>conftest.$ac_ext <<_ACEOF
11347 /* end confdefs.h.  */
11348
11349 /* Override any GCC internal prototype to avoid an error.
11350    Use char because int might match the return type of a GCC
11351    builtin and then its argument prototype would still apply.  */
11352 #ifdef __cplusplus
11353 extern "C"
11354 #endif
11355 char dlopen ();
11356 int
11357 main ()
11358 {
11359 return dlopen ();
11360   ;
11361   return 0;
11362 }
11363 _ACEOF
11364 rm -f conftest.$ac_objext conftest$ac_exeext
11365 if { (ac_try="$ac_link"
11366 case "(($ac_try" in
11367   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11368   *) ac_try_echo=$ac_try;;
11369 esac
11370 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11371   (eval "$ac_link") 2>conftest.er1
11372   ac_status=$?
11373   grep -v '^ *+' conftest.er1 >conftest.err
11374   rm -f conftest.er1
11375   cat conftest.err >&5
11376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11377   (exit $ac_status); } && {
11378          test -z "$ac_c_werror_flag" ||
11379          test ! -s conftest.err
11380        } && test -s conftest$ac_exeext &&
11381        $as_test_x conftest$ac_exeext; then
11382   ac_cv_lib_svld_dlopen=yes
11383 else
11384   echo "$as_me: failed program was:" >&5
11385 sed 's/^/| /' conftest.$ac_ext >&5
11386
11387         ac_cv_lib_svld_dlopen=no
11388 fi
11389
11390 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11391       conftest$ac_exeext conftest.$ac_ext
11392 LIBS=$ac_check_lib_save_LIBS
11393 fi
11394 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
11395 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
11396 if test $ac_cv_lib_svld_dlopen = yes; then
11397   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11398 else
11399   { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
11400 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
11401 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
11402   echo $ECHO_N "(cached) $ECHO_C" >&6
11403 else
11404   ac_check_lib_save_LIBS=$LIBS
11405 LIBS="-ldld  $LIBS"
11406 cat >conftest.$ac_ext <<_ACEOF
11407 /* confdefs.h.  */
11408 _ACEOF
11409 cat confdefs.h >>conftest.$ac_ext
11410 cat >>conftest.$ac_ext <<_ACEOF
11411 /* end confdefs.h.  */
11412
11413 /* Override any GCC internal prototype to avoid an error.
11414    Use char because int might match the return type of a GCC
11415    builtin and then its argument prototype would still apply.  */
11416 #ifdef __cplusplus
11417 extern "C"
11418 #endif
11419 char dld_link ();
11420 int
11421 main ()
11422 {
11423 return dld_link ();
11424   ;
11425   return 0;
11426 }
11427 _ACEOF
11428 rm -f conftest.$ac_objext conftest$ac_exeext
11429 if { (ac_try="$ac_link"
11430 case "(($ac_try" in
11431   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11432   *) ac_try_echo=$ac_try;;
11433 esac
11434 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11435   (eval "$ac_link") 2>conftest.er1
11436   ac_status=$?
11437   grep -v '^ *+' conftest.er1 >conftest.err
11438   rm -f conftest.er1
11439   cat conftest.err >&5
11440   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11441   (exit $ac_status); } && {
11442          test -z "$ac_c_werror_flag" ||
11443          test ! -s conftest.err
11444        } && test -s conftest$ac_exeext &&
11445        $as_test_x conftest$ac_exeext; then
11446   ac_cv_lib_dld_dld_link=yes
11447 else
11448   echo "$as_me: failed program was:" >&5
11449 sed 's/^/| /' conftest.$ac_ext >&5
11450
11451         ac_cv_lib_dld_dld_link=no
11452 fi
11453
11454 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11455       conftest$ac_exeext conftest.$ac_ext
11456 LIBS=$ac_check_lib_save_LIBS
11457 fi
11458 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
11459 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
11460 if test $ac_cv_lib_dld_dld_link = yes; then
11461   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
11462 fi
11463
11464
11465 fi
11466
11467
11468 fi
11469
11470
11471 fi
11472
11473
11474 fi
11475
11476
11477 fi
11478
11479     ;;
11480   esac
11481
11482   if test "x$lt_cv_dlopen" != xno; then
11483     enable_dlopen=yes
11484   else
11485     enable_dlopen=no
11486   fi
11487
11488   case $lt_cv_dlopen in
11489   dlopen)
11490     save_CPPFLAGS="$CPPFLAGS"
11491     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11492
11493     save_LDFLAGS="$LDFLAGS"
11494     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11495
11496     save_LIBS="$LIBS"
11497     LIBS="$lt_cv_dlopen_libs $LIBS"
11498
11499     { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
11500 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
11501 if test "${lt_cv_dlopen_self+set}" = set; then
11502   echo $ECHO_N "(cached) $ECHO_C" >&6
11503 else
11504           if test "$cross_compiling" = yes; then :
11505   lt_cv_dlopen_self=cross
11506 else
11507   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11508   lt_status=$lt_dlunknown
11509   cat > conftest.$ac_ext <<EOF
11510 #line 11510 "configure"
11511 #include "confdefs.h"
11512
11513 #if HAVE_DLFCN_H
11514 #include <dlfcn.h>
11515 #endif
11516
11517 #include <stdio.h>
11518
11519 #ifdef RTLD_GLOBAL
11520 #  define LT_DLGLOBAL           RTLD_GLOBAL
11521 #else
11522 #  ifdef DL_GLOBAL
11523 #    define LT_DLGLOBAL         DL_GLOBAL
11524 #  else
11525 #    define LT_DLGLOBAL         0
11526 #  endif
11527 #endif
11528
11529 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11530    find out it does not work in some platform. */
11531 #ifndef LT_DLLAZY_OR_NOW
11532 #  ifdef RTLD_LAZY
11533 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11534 #  else
11535 #    ifdef DL_LAZY
11536 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11537 #    else
11538 #      ifdef RTLD_NOW
11539 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11540 #      else
11541 #        ifdef DL_NOW
11542 #          define LT_DLLAZY_OR_NOW      DL_NOW
11543 #        else
11544 #          define LT_DLLAZY_OR_NOW      0
11545 #        endif
11546 #      endif
11547 #    endif
11548 #  endif
11549 #endif
11550
11551 #ifdef __cplusplus
11552 extern "C" void exit (int);
11553 #endif
11554
11555 void fnord() { int i=42;}
11556 int main ()
11557 {
11558   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11559   int status = $lt_dlunknown;
11560
11561   if (self)
11562     {
11563       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11564       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11565       /* dlclose (self); */
11566     }
11567   else
11568     puts (dlerror ());
11569
11570     exit (status);
11571 }
11572 EOF
11573   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11574   (eval $ac_link) 2>&5
11575   ac_status=$?
11576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11577   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11578     (./conftest; exit; ) >&5 2>/dev/null
11579     lt_status=$?
11580     case x$lt_status in
11581       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11582       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11583       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11584     esac
11585   else :
11586     # compilation failed
11587     lt_cv_dlopen_self=no
11588   fi
11589 fi
11590 rm -fr conftest*
11591
11592
11593 fi
11594 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
11595 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
11596
11597     if test "x$lt_cv_dlopen_self" = xyes; then
11598       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11599       { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
11600 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
11601 if test "${lt_cv_dlopen_self_static+set}" = set; then
11602   echo $ECHO_N "(cached) $ECHO_C" >&6
11603 else
11604           if test "$cross_compiling" = yes; then :
11605   lt_cv_dlopen_self_static=cross
11606 else
11607   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11608   lt_status=$lt_dlunknown
11609   cat > conftest.$ac_ext <<EOF
11610 #line 11610 "configure"
11611 #include "confdefs.h"
11612
11613 #if HAVE_DLFCN_H
11614 #include <dlfcn.h>
11615 #endif
11616
11617 #include <stdio.h>
11618
11619 #ifdef RTLD_GLOBAL
11620 #  define LT_DLGLOBAL           RTLD_GLOBAL
11621 #else
11622 #  ifdef DL_GLOBAL
11623 #    define LT_DLGLOBAL         DL_GLOBAL
11624 #  else
11625 #    define LT_DLGLOBAL         0
11626 #  endif
11627 #endif
11628
11629 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11630    find out it does not work in some platform. */
11631 #ifndef LT_DLLAZY_OR_NOW
11632 #  ifdef RTLD_LAZY
11633 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11634 #  else
11635 #    ifdef DL_LAZY
11636 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11637 #    else
11638 #      ifdef RTLD_NOW
11639 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11640 #      else
11641 #        ifdef DL_NOW
11642 #          define LT_DLLAZY_OR_NOW      DL_NOW
11643 #        else
11644 #          define LT_DLLAZY_OR_NOW      0
11645 #        endif
11646 #      endif
11647 #    endif
11648 #  endif
11649 #endif
11650
11651 #ifdef __cplusplus
11652 extern "C" void exit (int);
11653 #endif
11654
11655 void fnord() { int i=42;}
11656 int main ()
11657 {
11658   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11659   int status = $lt_dlunknown;
11660
11661   if (self)
11662     {
11663       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11664       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11665       /* dlclose (self); */
11666     }
11667   else
11668     puts (dlerror ());
11669
11670     exit (status);
11671 }
11672 EOF
11673   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11674   (eval $ac_link) 2>&5
11675   ac_status=$?
11676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11677   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11678     (./conftest; exit; ) >&5 2>/dev/null
11679     lt_status=$?
11680     case x$lt_status in
11681       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11682       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11683       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11684     esac
11685   else :
11686     # compilation failed
11687     lt_cv_dlopen_self_static=no
11688   fi
11689 fi
11690 rm -fr conftest*
11691
11692
11693 fi
11694 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
11695 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
11696     fi
11697
11698     CPPFLAGS="$save_CPPFLAGS"
11699     LDFLAGS="$save_LDFLAGS"
11700     LIBS="$save_LIBS"
11701     ;;
11702   esac
11703
11704   case $lt_cv_dlopen_self in
11705   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11706   *) enable_dlopen_self=unknown ;;
11707   esac
11708
11709   case $lt_cv_dlopen_self_static in
11710   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11711   *) enable_dlopen_self_static=unknown ;;
11712   esac
11713 fi
11714
11715
11716 # Report which library types will actually be built
11717 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
11718 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
11719 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
11720 echo "${ECHO_T}$can_build_shared" >&6; }
11721
11722 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
11723 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
11724 test "$can_build_shared" = "no" && enable_shared=no
11725
11726 # On AIX, shared libraries and static libraries use the same namespace, and
11727 # are all built from PIC.
11728 case $host_os in
11729 aix3*)
11730   test "$enable_shared" = yes && enable_static=no
11731   if test -n "$RANLIB"; then
11732     archive_cmds="$archive_cmds~\$RANLIB \$lib"
11733     postinstall_cmds='$RANLIB $lib'
11734   fi
11735   ;;
11736
11737 aix4* | aix5*)
11738   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11739     test "$enable_shared" = yes && enable_static=no
11740   fi
11741     ;;
11742 esac
11743 { echo "$as_me:$LINENO: result: $enable_shared" >&5
11744 echo "${ECHO_T}$enable_shared" >&6; }
11745
11746 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
11747 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
11748 # Make sure either enable_shared or enable_static is yes.
11749 test "$enable_shared" = yes || enable_static=yes
11750 { echo "$as_me:$LINENO: result: $enable_static" >&5
11751 echo "${ECHO_T}$enable_static" >&6; }
11752
11753 # The else clause should only fire when bootstrapping the
11754 # libtool distribution, otherwise you forgot to ship ltmain.sh
11755 # with your package, and you will get complaints that there are
11756 # no rules to generate ltmain.sh.
11757 if test -f "$ltmain"; then
11758   # See if we are running on zsh, and set the options which allow our commands through
11759   # without removal of \ escapes.
11760   if test -n "${ZSH_VERSION+set}" ; then
11761     setopt NO_GLOB_SUBST
11762   fi
11763   # Now quote all the things that may contain metacharacters while being
11764   # careful not to overquote the AC_SUBSTed values.  We take copies of the
11765   # variables and quote the copies for generation of the libtool script.
11766   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
11767     SED SHELL STRIP \
11768     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
11769     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
11770     deplibs_check_method reload_flag reload_cmds need_locks \
11771     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
11772     lt_cv_sys_global_symbol_to_c_name_address \
11773     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
11774     old_postinstall_cmds old_postuninstall_cmds \
11775     compiler \
11776     CC \
11777     LD \
11778     lt_prog_compiler_wl \
11779     lt_prog_compiler_pic \
11780     lt_prog_compiler_static \
11781     lt_prog_compiler_no_builtin_flag \
11782     export_dynamic_flag_spec \
11783     thread_safe_flag_spec \
11784     whole_archive_flag_spec \
11785     enable_shared_with_static_runtimes \
11786     old_archive_cmds \
11787     old_archive_from_new_cmds \
11788     predep_objects \
11789     postdep_objects \
11790     predeps \
11791     postdeps \
11792     compiler_lib_search_path \
11793     archive_cmds \
11794     archive_expsym_cmds \
11795     postinstall_cmds \
11796     postuninstall_cmds \
11797     old_archive_from_expsyms_cmds \
11798     allow_undefined_flag \
11799     no_undefined_flag \
11800     export_symbols_cmds \
11801     hardcode_libdir_flag_spec \
11802     hardcode_libdir_flag_spec_ld \
11803     hardcode_libdir_separator \
11804     hardcode_automatic \
11805     module_cmds \
11806     module_expsym_cmds \
11807     lt_cv_prog_compiler_c_o \
11808     fix_srcfile_path \
11809     exclude_expsyms \
11810     include_expsyms; do
11811
11812     case $var in
11813     old_archive_cmds | \
11814     old_archive_from_new_cmds | \
11815     archive_cmds | \
11816     archive_expsym_cmds | \
11817     module_cmds | \
11818     module_expsym_cmds | \
11819     old_archive_from_expsyms_cmds | \
11820     export_symbols_cmds | \
11821     extract_expsyms_cmds | reload_cmds | finish_cmds | \
11822     postinstall_cmds | postuninstall_cmds | \
11823     old_postinstall_cmds | old_postuninstall_cmds | \
11824     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
11825       # Double-quote double-evaled strings.
11826       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
11827       ;;
11828     *)
11829       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
11830       ;;
11831     esac
11832   done
11833
11834   case $lt_echo in
11835   *'\$0 --fallback-echo"')
11836     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
11837     ;;
11838   esac
11839
11840 cfgfile="${ofile}T"
11841   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
11842   $rm -f "$cfgfile"
11843   { echo "$as_me:$LINENO: creating $ofile" >&5
11844 echo "$as_me: creating $ofile" >&6;}
11845
11846   cat <<__EOF__ >> "$cfgfile"
11847 #! $SHELL
11848
11849 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
11850 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
11851 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
11852 #
11853 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007
11854 # Free Software Foundation, Inc.
11855 #
11856 # This file is part of GNU Libtool:
11857 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
11858 #
11859 # This program is free software; you can redistribute it and/or modify
11860 # it under the terms of the GNU General Public License as published by
11861 # the Free Software Foundation; either version 2 of the License, or
11862 # (at your option) any later version.
11863 #
11864 # This program is distributed in the hope that it will be useful, but
11865 # WITHOUT ANY WARRANTY; without even the implied warranty of
11866 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
11867 # General Public License for more details.
11868 #
11869 # You should have received a copy of the GNU General Public License
11870 # along with this program; if not, write to the Free Software
11871 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
11872 #
11873 # As a special exception to the GNU General Public License, if you
11874 # distribute this file as part of a program that contains a
11875 # configuration script generated by Autoconf, you may include it under
11876 # the same distribution terms that you use for the rest of that program.
11877
11878 # A sed program that does not truncate output.
11879 SED=$lt_SED
11880
11881 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
11882 Xsed="$SED -e 1s/^X//"
11883
11884 # The HP-UX ksh and POSIX shell print the target directory to stdout
11885 # if CDPATH is set.
11886 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11887
11888 # The names of the tagged configurations supported by this script.
11889 available_tags=
11890
11891 # ### BEGIN LIBTOOL CONFIG
11892
11893 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
11894
11895 # Shell to use when invoking shell scripts.
11896 SHELL=$lt_SHELL
11897
11898 # Whether or not to build shared libraries.
11899 build_libtool_libs=$enable_shared
11900
11901 # Whether or not to build static libraries.
11902 build_old_libs=$enable_static
11903
11904 # Whether or not to add -lc for building shared libraries.
11905 build_libtool_need_lc=$archive_cmds_need_lc
11906
11907 # Whether or not to disallow shared libs when runtime libs are static
11908 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
11909
11910 # Whether or not to optimize for fast installation.
11911 fast_install=$enable_fast_install
11912
11913 # The host system.
11914 host_alias=$host_alias
11915 host=$host
11916 host_os=$host_os
11917
11918 # The build system.
11919 build_alias=$build_alias
11920 build=$build
11921 build_os=$build_os
11922
11923 # An echo program that does not interpret backslashes.
11924 echo=$lt_echo
11925
11926 # The archiver.
11927 AR=$lt_AR
11928 AR_FLAGS=$lt_AR_FLAGS
11929
11930 # A C compiler.
11931 LTCC=$lt_LTCC
11932
11933 # LTCC compiler flags.
11934 LTCFLAGS=$lt_LTCFLAGS
11935
11936 # A language-specific compiler.
11937 CC=$lt_compiler
11938
11939 # Is the compiler the GNU C compiler?
11940 with_gcc=$GCC
11941
11942 # An ERE matcher.
11943 EGREP=$lt_EGREP
11944
11945 # The linker used to build libraries.
11946 LD=$lt_LD
11947
11948 # Whether we need hard or soft links.
11949 LN_S=$lt_LN_S
11950
11951 # A BSD-compatible nm program.
11952 NM=$lt_NM
11953
11954 # A symbol stripping program
11955 STRIP=$lt_STRIP
11956
11957 # Used to examine libraries when file_magic_cmd begins "file"
11958 MAGIC_CMD=$MAGIC_CMD
11959
11960 # Used on cygwin: DLL creation program.
11961 DLLTOOL="$DLLTOOL"
11962
11963 # Used on cygwin: object dumper.
11964 OBJDUMP="$OBJDUMP"
11965
11966 # Used on cygwin: assembler.
11967 AS="$AS"
11968
11969 # The name of the directory that contains temporary libtool files.
11970 objdir=$objdir
11971
11972 # How to create reloadable object files.
11973 reload_flag=$lt_reload_flag
11974 reload_cmds=$lt_reload_cmds
11975
11976 # How to pass a linker flag through the compiler.
11977 wl=$lt_lt_prog_compiler_wl
11978
11979 # Object file suffix (normally "o").
11980 objext="$ac_objext"
11981
11982 # Old archive suffix (normally "a").
11983 libext="$libext"
11984
11985 # Shared library suffix (normally ".so").
11986 shrext_cmds='$shrext_cmds'
11987
11988 # Executable file suffix (normally "").
11989 exeext="$exeext"
11990
11991 # Additional compiler flags for building library objects.
11992 pic_flag=$lt_lt_prog_compiler_pic
11993 pic_mode=$pic_mode
11994
11995 # What is the maximum length of a command?
11996 max_cmd_len=$lt_cv_sys_max_cmd_len
11997
11998 # Does compiler simultaneously support -c and -o options?
11999 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
12000
12001 # Must we lock files when doing compilation?
12002 need_locks=$lt_need_locks
12003
12004 # Do we need the lib prefix for modules?
12005 need_lib_prefix=$need_lib_prefix
12006
12007 # Do we need a version for libraries?
12008 need_version=$need_version
12009
12010 # Whether dlopen is supported.
12011 dlopen_support=$enable_dlopen
12012
12013 # Whether dlopen of programs is supported.
12014 dlopen_self=$enable_dlopen_self
12015
12016 # Whether dlopen of statically linked programs is supported.
12017 dlopen_self_static=$enable_dlopen_self_static
12018
12019 # Compiler flag to prevent dynamic linking.
12020 link_static_flag=$lt_lt_prog_compiler_static
12021
12022 # Compiler flag to turn off builtin functions.
12023 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
12024
12025 # Compiler flag to allow reflexive dlopens.
12026 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
12027
12028 # Compiler flag to generate shared objects directly from archives.
12029 whole_archive_flag_spec=$lt_whole_archive_flag_spec
12030
12031 # Compiler flag to generate thread-safe objects.
12032 thread_safe_flag_spec=$lt_thread_safe_flag_spec
12033
12034 # Library versioning type.
12035 version_type=$version_type
12036
12037 # Format of library name prefix.
12038 libname_spec=$lt_libname_spec
12039
12040 # List of archive names.  First name is the real one, the rest are links.
12041 # The last name is the one that the linker finds with -lNAME.
12042 library_names_spec=$lt_library_names_spec
12043
12044 # The coded name of the library, if different from the real name.
12045 soname_spec=$lt_soname_spec
12046
12047 # Commands used to build and install an old-style archive.
12048 RANLIB=$lt_RANLIB
12049 old_archive_cmds=$lt_old_archive_cmds
12050 old_postinstall_cmds=$lt_old_postinstall_cmds
12051 old_postuninstall_cmds=$lt_old_postuninstall_cmds
12052
12053 # Create an old-style archive from a shared archive.
12054 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
12055
12056 # Create a temporary old-style archive to link instead of a shared archive.
12057 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
12058
12059 # Commands used to build and install a shared archive.
12060 archive_cmds=$lt_archive_cmds
12061 archive_expsym_cmds=$lt_archive_expsym_cmds
12062 postinstall_cmds=$lt_postinstall_cmds
12063 postuninstall_cmds=$lt_postuninstall_cmds
12064
12065 # Commands used to build a loadable module (assumed same as above if empty)
12066 module_cmds=$lt_module_cmds
12067 module_expsym_cmds=$lt_module_expsym_cmds
12068
12069 # Commands to strip libraries.
12070 old_striplib=$lt_old_striplib
12071 striplib=$lt_striplib
12072
12073 # Dependencies to place before the objects being linked to create a
12074 # shared library.
12075 predep_objects=$lt_predep_objects
12076
12077 # Dependencies to place after the objects being linked to create a
12078 # shared library.
12079 postdep_objects=$lt_postdep_objects
12080
12081 # Dependencies to place before the objects being linked to create a
12082 # shared library.
12083 predeps=$lt_predeps
12084
12085 # Dependencies to place after the objects being linked to create a
12086 # shared library.
12087 postdeps=$lt_postdeps
12088
12089 # The library search path used internally by the compiler when linking
12090 # a shared library.
12091 compiler_lib_search_path=$lt_compiler_lib_search_path
12092
12093 # Method to check whether dependent libraries are shared objects.
12094 deplibs_check_method=$lt_deplibs_check_method
12095
12096 # Command to use when deplibs_check_method == file_magic.
12097 file_magic_cmd=$lt_file_magic_cmd
12098
12099 # Flag that allows shared libraries with undefined symbols to be built.
12100 allow_undefined_flag=$lt_allow_undefined_flag
12101
12102 # Flag that forces no undefined symbols.
12103 no_undefined_flag=$lt_no_undefined_flag
12104
12105 # Commands used to finish a libtool library installation in a directory.
12106 finish_cmds=$lt_finish_cmds
12107
12108 # Same as above, but a single script fragment to be evaled but not shown.
12109 finish_eval=$lt_finish_eval
12110
12111 # Take the output of nm and produce a listing of raw symbols and C names.
12112 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12113
12114 # Transform the output of nm in a proper C declaration
12115 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12116
12117 # Transform the output of nm in a C name address pair
12118 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12119
12120 # This is the shared library runtime path variable.
12121 runpath_var=$runpath_var
12122
12123 # This is the shared library path variable.
12124 shlibpath_var=$shlibpath_var
12125
12126 # Is shlibpath searched before the hard-coded library search path?
12127 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12128
12129 # How to hardcode a shared library path into an executable.
12130 hardcode_action=$hardcode_action
12131
12132 # Whether we should hardcode library paths into libraries.
12133 hardcode_into_libs=$hardcode_into_libs
12134
12135 # Flag to hardcode \$libdir into a binary during linking.
12136 # This must work even if \$libdir does not exist.
12137 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
12138
12139 # If ld is used when linking, flag to hardcode \$libdir into
12140 # a binary during linking. This must work even if \$libdir does
12141 # not exist.
12142 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
12143
12144 # Whether we need a single -rpath flag with a separated argument.
12145 hardcode_libdir_separator=$lt_hardcode_libdir_separator
12146
12147 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
12148 # resulting binary.
12149 hardcode_direct=$hardcode_direct
12150
12151 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
12152 # resulting binary.
12153 hardcode_minus_L=$hardcode_minus_L
12154
12155 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
12156 # the resulting binary.
12157 hardcode_shlibpath_var=$hardcode_shlibpath_var
12158
12159 # Set to yes if building a shared library automatically hardcodes DIR into the library
12160 # and all subsequent libraries and executables linked against it.
12161 hardcode_automatic=$hardcode_automatic
12162
12163 # Variables whose values should be saved in libtool wrapper scripts and
12164 # restored at relink time.
12165 variables_saved_for_relink="$variables_saved_for_relink"
12166
12167 # Whether libtool must link a program against all its dependency libraries.
12168 link_all_deplibs=$link_all_deplibs
12169
12170 # Compile-time system search path for libraries
12171 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12172
12173 # Run-time system search path for libraries
12174 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12175
12176 # Fix the shell variable \$srcfile for the compiler.
12177 fix_srcfile_path=$lt_fix_srcfile_path
12178
12179 # Set to yes if exported symbols are required.
12180 always_export_symbols=$always_export_symbols
12181
12182 # The commands to list exported symbols.
12183 export_symbols_cmds=$lt_export_symbols_cmds
12184
12185 # The commands to extract the exported symbol list from a shared archive.
12186 extract_expsyms_cmds=$lt_extract_expsyms_cmds
12187
12188 # Symbols that should not be listed in the preloaded symbols.
12189 exclude_expsyms=$lt_exclude_expsyms
12190
12191 # Symbols that must always be exported.
12192 include_expsyms=$lt_include_expsyms
12193
12194 # ### END LIBTOOL CONFIG
12195
12196 __EOF__
12197
12198
12199   case $host_os in
12200   aix3*)
12201     cat <<\EOF >> "$cfgfile"
12202
12203 # AIX sometimes has problems with the GCC collect2 program.  For some
12204 # reason, if we set the COLLECT_NAMES environment variable, the problems
12205 # vanish in a puff of smoke.
12206 if test "X${COLLECT_NAMES+set}" != Xset; then
12207   COLLECT_NAMES=
12208   export COLLECT_NAMES
12209 fi
12210 EOF
12211     ;;
12212   esac
12213
12214   # We use sed instead of cat because bash on DJGPP gets confused if
12215   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
12216   # text mode, it properly converts lines to CR/LF.  This bash problem
12217   # is reportedly fixed, but why not run on old versions too?
12218   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
12219
12220   mv -f "$cfgfile" "$ofile" || \
12221     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
12222   chmod +x "$ofile"
12223
12224 else
12225   # If there is no Makefile yet, we rely on a make rule to execute
12226   # `config.status --recheck' to rerun these tests and create the
12227   # libtool script then.
12228   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
12229   if test -f "$ltmain_in"; then
12230     test -f Makefile && make "$ltmain"
12231   fi
12232 fi
12233
12234
12235 ac_ext=c
12236 ac_cpp='$CPP $CPPFLAGS'
12237 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12238 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12239 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12240
12241 CC="$lt_save_CC"
12242
12243
12244 # Check whether --with-tags was given.
12245 if test "${with_tags+set}" = set; then
12246   withval=$with_tags; tagnames="$withval"
12247 fi
12248
12249
12250 if test -f "$ltmain" && test -n "$tagnames"; then
12251   if test ! -f "${ofile}"; then
12252     { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
12253 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
12254   fi
12255
12256   if test -z "$LTCC"; then
12257     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
12258     if test -z "$LTCC"; then
12259       { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
12260 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
12261     else
12262       { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
12263 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
12264     fi
12265   fi
12266   if test -z "$LTCFLAGS"; then
12267     eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
12268   fi
12269
12270   # Extract list of available tagged configurations in $ofile.
12271   # Note that this assumes the entire list is on one line.
12272   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
12273
12274   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12275   for tagname in $tagnames; do
12276     IFS="$lt_save_ifs"
12277     # Check whether tagname contains only valid characters
12278     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
12279     "") ;;
12280     *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
12281 echo "$as_me: error: invalid tag name: $tagname" >&2;}
12282    { (exit 1); exit 1; }; }
12283         ;;
12284     esac
12285
12286     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
12287     then
12288       { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
12289 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
12290    { (exit 1); exit 1; }; }
12291     fi
12292
12293     # Update the list of available tags.
12294     if test -n "$tagname"; then
12295       echo appending configuration tag \"$tagname\" to $ofile
12296
12297       case $tagname in
12298       CXX)
12299         if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12300             ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12301             (test "X$CXX" != "Xg++"))) ; then
12302           ac_ext=cpp
12303 ac_cpp='$CXXCPP $CPPFLAGS'
12304 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12305 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12306 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12307
12308
12309
12310
12311 archive_cmds_need_lc_CXX=no
12312 allow_undefined_flag_CXX=
12313 always_export_symbols_CXX=no
12314 archive_expsym_cmds_CXX=
12315 export_dynamic_flag_spec_CXX=
12316 hardcode_direct_CXX=no
12317 hardcode_libdir_flag_spec_CXX=
12318 hardcode_libdir_flag_spec_ld_CXX=
12319 hardcode_libdir_separator_CXX=
12320 hardcode_minus_L_CXX=no
12321 hardcode_shlibpath_var_CXX=unsupported
12322 hardcode_automatic_CXX=no
12323 module_cmds_CXX=
12324 module_expsym_cmds_CXX=
12325 link_all_deplibs_CXX=unknown
12326 old_archive_cmds_CXX=$old_archive_cmds
12327 no_undefined_flag_CXX=
12328 whole_archive_flag_spec_CXX=
12329 enable_shared_with_static_runtimes_CXX=no
12330
12331 # Dependencies to place before and after the object being linked:
12332 predep_objects_CXX=
12333 postdep_objects_CXX=
12334 predeps_CXX=
12335 postdeps_CXX=
12336 compiler_lib_search_path_CXX=
12337
12338 # Source file extension for C++ test sources.
12339 ac_ext=cpp
12340
12341 # Object file extension for compiled C++ test sources.
12342 objext=o
12343 objext_CXX=$objext
12344
12345 # Code to be used in simple compile tests
12346 lt_simple_compile_test_code="int some_variable = 0;"
12347
12348 # Code to be used in simple link tests
12349 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12350
12351 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12352
12353 # If no C compiler was specified, use CC.
12354 LTCC=${LTCC-"$CC"}
12355
12356 # If no C compiler flags were specified, use CFLAGS.
12357 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12358
12359 # Allow CC to be a program name with arguments.
12360 compiler=$CC
12361
12362
12363 # save warnings/boilerplate of simple test code
12364 ac_outfile=conftest.$ac_objext
12365 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12366 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12367 _lt_compiler_boilerplate=`cat conftest.err`
12368 $rm conftest*
12369
12370 ac_outfile=conftest.$ac_objext
12371 echo "$lt_simple_link_test_code" >conftest.$ac_ext
12372 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12373 _lt_linker_boilerplate=`cat conftest.err`
12374 $rm conftest*
12375
12376
12377 # Allow CC to be a program name with arguments.
12378 lt_save_CC=$CC
12379 lt_save_LD=$LD
12380 lt_save_GCC=$GCC
12381 GCC=$GXX
12382 lt_save_with_gnu_ld=$with_gnu_ld
12383 lt_save_path_LD=$lt_cv_path_LD
12384 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12385   lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12386 else
12387   $as_unset lt_cv_prog_gnu_ld
12388 fi
12389 if test -n "${lt_cv_path_LDCXX+set}"; then
12390   lt_cv_path_LD=$lt_cv_path_LDCXX
12391 else
12392   $as_unset lt_cv_path_LD
12393 fi
12394 test -z "${LDCXX+set}" || LD=$LDCXX
12395 CC=${CXX-"c++"}
12396 compiler=$CC
12397 compiler_CXX=$CC
12398 for cc_temp in $compiler""; do
12399   case $cc_temp in
12400     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12401     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12402     \-*) ;;
12403     *) break;;
12404   esac
12405 done
12406 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
12407
12408
12409 # We don't want -fno-exception wen compiling C++ code, so set the
12410 # no_builtin_flag separately
12411 if test "$GXX" = yes; then
12412   lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12413 else
12414   lt_prog_compiler_no_builtin_flag_CXX=
12415 fi
12416
12417 if test "$GXX" = yes; then
12418   # Set up default GNU C++ configuration
12419
12420
12421 # Check whether --with-gnu-ld was given.
12422 if test "${with_gnu_ld+set}" = set; then
12423   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12424 else
12425   with_gnu_ld=no
12426 fi
12427
12428 ac_prog=ld
12429 if test "$GCC" = yes; then
12430   # Check if gcc -print-prog-name=ld gives a path.
12431   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
12432 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
12433   case $host in
12434   *-*-mingw*)
12435     # gcc leaves a trailing carriage return which upsets mingw
12436     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12437   *)
12438     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12439   esac
12440   case $ac_prog in
12441     # Accept absolute paths.
12442     [\\/]* | ?:[\\/]*)
12443       re_direlt='/[^/][^/]*/\.\./'
12444       # Canonicalize the pathname of ld
12445       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
12446       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
12447         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
12448       done
12449       test -z "$LD" && LD="$ac_prog"
12450       ;;
12451   "")
12452     # If it fails, then pretend we aren't using GCC.
12453     ac_prog=ld
12454     ;;
12455   *)
12456     # If it is relative, then search for the first ld in PATH.
12457     with_gnu_ld=unknown
12458     ;;
12459   esac
12460 elif test "$with_gnu_ld" = yes; then
12461   { echo "$as_me:$LINENO: checking for GNU ld" >&5
12462 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
12463 else
12464   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
12465 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
12466 fi
12467 if test "${lt_cv_path_LD+set}" = set; then
12468   echo $ECHO_N "(cached) $ECHO_C" >&6
12469 else
12470   if test -z "$LD"; then
12471   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12472   for ac_dir in $PATH; do
12473     IFS="$lt_save_ifs"
12474     test -z "$ac_dir" && ac_dir=.
12475     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12476       lt_cv_path_LD="$ac_dir/$ac_prog"
12477       # Check to see if the program is GNU ld.  I'd rather use --version,
12478       # but apparently some variants of GNU ld only accept -v.
12479       # Break only if it was the GNU/non-GNU ld that we prefer.
12480       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12481       *GNU* | *'with BFD'*)
12482         test "$with_gnu_ld" != no && break
12483         ;;
12484       *)
12485         test "$with_gnu_ld" != yes && break
12486         ;;
12487       esac
12488     fi
12489   done
12490   IFS="$lt_save_ifs"
12491 else
12492   lt_cv_path_LD="$LD" # Let the user override the test with a path.
12493 fi
12494 fi
12495
12496 LD="$lt_cv_path_LD"
12497 if test -n "$LD"; then
12498   { echo "$as_me:$LINENO: result: $LD" >&5
12499 echo "${ECHO_T}$LD" >&6; }
12500 else
12501   { echo "$as_me:$LINENO: result: no" >&5
12502 echo "${ECHO_T}no" >&6; }
12503 fi
12504 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
12505 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
12506    { (exit 1); exit 1; }; }
12507 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
12508 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
12509 if test "${lt_cv_prog_gnu_ld+set}" = set; then
12510   echo $ECHO_N "(cached) $ECHO_C" >&6
12511 else
12512   # I'd rather use --version here, but apparently some GNU lds only accept -v.
12513 case `$LD -v 2>&1 </dev/null` in
12514 *GNU* | *'with BFD'*)
12515   lt_cv_prog_gnu_ld=yes
12516   ;;
12517 *)
12518   lt_cv_prog_gnu_ld=no
12519   ;;
12520 esac
12521 fi
12522 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
12523 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
12524 with_gnu_ld=$lt_cv_prog_gnu_ld
12525
12526
12527
12528   # Check if GNU C++ uses GNU ld as the underlying linker, since the
12529   # archiving commands below assume that GNU ld is being used.
12530   if test "$with_gnu_ld" = yes; then
12531     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12532     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'
12533
12534     hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12535     export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12536
12537     # If archive_cmds runs LD, not CC, wlarc should be empty
12538     # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12539     #     investigate it a little bit more. (MM)
12540     wlarc='${wl}'
12541
12542     # ancient GNU ld didn't support --whole-archive et. al.
12543     if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
12544         grep 'no-whole-archive' > /dev/null; then
12545       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12546     else
12547       whole_archive_flag_spec_CXX=
12548     fi
12549   else
12550     with_gnu_ld=no
12551     wlarc=
12552
12553     # A generic and very simple default shared library creation
12554     # command for GNU C++ for the case where it uses the native
12555     # linker, instead of GNU ld.  If possible, this setting should
12556     # overridden to take advantage of the native linker features on
12557     # the platform it is being used on.
12558     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12559   fi
12560
12561   # Commands to make compiler produce verbose output that lists
12562   # what "hidden" libraries, object files and flags are used when
12563   # linking a shared library.
12564   output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12565
12566 else
12567   GXX=no
12568   with_gnu_ld=no
12569   wlarc=
12570 fi
12571
12572 # PORTME: fill in a description of your system's C++ link characteristics
12573 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12574 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
12575 ld_shlibs_CXX=yes
12576 case $host_os in
12577   aix3*)
12578     # FIXME: insert proper C++ library support
12579     ld_shlibs_CXX=no
12580     ;;
12581   aix4* | aix5*)
12582     if test "$host_cpu" = ia64; then
12583       # On IA64, the linker does run time linking by default, so we don't
12584       # have to do anything special.
12585       aix_use_runtimelinking=no
12586       exp_sym_flag='-Bexport'
12587       no_entry_flag=""
12588     else
12589       aix_use_runtimelinking=no
12590
12591       # Test if we are trying to use run time linking or normal
12592       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12593       # need to do runtime linking.
12594       case $host_os in aix4.[23]|aix4.[23].*|aix5*)
12595         for ld_flag in $LDFLAGS; do
12596           case $ld_flag in
12597           *-brtl*)
12598             aix_use_runtimelinking=yes
12599             break
12600             ;;
12601           esac
12602         done
12603         ;;
12604       esac
12605
12606       exp_sym_flag='-bexport'
12607       no_entry_flag='-bnoentry'
12608     fi
12609
12610     # When large executables or shared objects are built, AIX ld can
12611     # have problems creating the table of contents.  If linking a library
12612     # or program results in "error TOC overflow" add -mminimal-toc to
12613     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
12614     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12615
12616     archive_cmds_CXX=''
12617     hardcode_direct_CXX=yes
12618     hardcode_libdir_separator_CXX=':'
12619     link_all_deplibs_CXX=yes
12620
12621     if test "$GXX" = yes; then
12622       case $host_os in aix4.[012]|aix4.[012].*)
12623       # We only want to do this on AIX 4.2 and lower, the check
12624       # below for broken collect2 doesn't work under 4.3+
12625         collect2name=`${CC} -print-prog-name=collect2`
12626         if test -f "$collect2name" && \
12627            strings "$collect2name" | grep resolve_lib_name >/dev/null
12628         then
12629           # We have reworked collect2
12630           :
12631         else
12632           # We have old collect2
12633           hardcode_direct_CXX=unsupported
12634           # It fails to find uninstalled libraries when the uninstalled
12635           # path is not listed in the libpath.  Setting hardcode_minus_L
12636           # to unsupported forces relinking
12637           hardcode_minus_L_CXX=yes
12638           hardcode_libdir_flag_spec_CXX='-L$libdir'
12639           hardcode_libdir_separator_CXX=
12640         fi
12641         ;;
12642       esac
12643       shared_flag='-shared'
12644       if test "$aix_use_runtimelinking" = yes; then
12645         shared_flag="$shared_flag "'${wl}-G'
12646       fi
12647     else
12648       # not using gcc
12649       if test "$host_cpu" = ia64; then
12650         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12651         # chokes on -Wl,-G. The following line is correct:
12652         shared_flag='-G'
12653       else
12654         if test "$aix_use_runtimelinking" = yes; then
12655           shared_flag='${wl}-G'
12656         else
12657           shared_flag='${wl}-bM:SRE'
12658         fi
12659       fi
12660     fi
12661
12662     # It seems that -bexpall does not export symbols beginning with
12663     # underscore (_), so it is better to generate a list of symbols to export.
12664     always_export_symbols_CXX=yes
12665     if test "$aix_use_runtimelinking" = yes; then
12666       # Warning - without using the other runtime loading flags (-brtl),
12667       # -berok will link without error, but may produce a broken library.
12668       allow_undefined_flag_CXX='-berok'
12669       # Determine the default libpath from the value encoded in an empty executable.
12670       cat >conftest.$ac_ext <<_ACEOF
12671 /* confdefs.h.  */
12672 _ACEOF
12673 cat confdefs.h >>conftest.$ac_ext
12674 cat >>conftest.$ac_ext <<_ACEOF
12675 /* end confdefs.h.  */
12676
12677 int
12678 main ()
12679 {
12680
12681   ;
12682   return 0;
12683 }
12684 _ACEOF
12685 rm -f conftest.$ac_objext conftest$ac_exeext
12686 if { (ac_try="$ac_link"
12687 case "(($ac_try" in
12688   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12689   *) ac_try_echo=$ac_try;;
12690 esac
12691 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12692   (eval "$ac_link") 2>conftest.er1
12693   ac_status=$?
12694   grep -v '^ *+' conftest.er1 >conftest.err
12695   rm -f conftest.er1
12696   cat conftest.err >&5
12697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12698   (exit $ac_status); } && {
12699          test -z "$ac_cxx_werror_flag" ||
12700          test ! -s conftest.err
12701        } && test -s conftest$ac_exeext &&
12702        $as_test_x conftest$ac_exeext; then
12703
12704 lt_aix_libpath_sed='
12705     /Import File Strings/,/^$/ {
12706         /^0/ {
12707             s/^0  *\(.*\)$/\1/
12708             p
12709         }
12710     }'
12711 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12712 # Check for a 64-bit object if we didn't find anything.
12713 if test -z "$aix_libpath"; then
12714   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12715 fi
12716 else
12717   echo "$as_me: failed program was:" >&5
12718 sed 's/^/| /' conftest.$ac_ext >&5
12719
12720
12721 fi
12722
12723 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12724       conftest$ac_exeext conftest.$ac_ext
12725 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12726
12727       hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12728
12729       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"
12730      else
12731       if test "$host_cpu" = ia64; then
12732         hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12733         allow_undefined_flag_CXX="-z nodefs"
12734         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"
12735       else
12736         # Determine the default libpath from the value encoded in an empty executable.
12737         cat >conftest.$ac_ext <<_ACEOF
12738 /* confdefs.h.  */
12739 _ACEOF
12740 cat confdefs.h >>conftest.$ac_ext
12741 cat >>conftest.$ac_ext <<_ACEOF
12742 /* end confdefs.h.  */
12743
12744 int
12745 main ()
12746 {
12747
12748   ;
12749   return 0;
12750 }
12751 _ACEOF
12752 rm -f conftest.$ac_objext conftest$ac_exeext
12753 if { (ac_try="$ac_link"
12754 case "(($ac_try" in
12755   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12756   *) ac_try_echo=$ac_try;;
12757 esac
12758 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12759   (eval "$ac_link") 2>conftest.er1
12760   ac_status=$?
12761   grep -v '^ *+' conftest.er1 >conftest.err
12762   rm -f conftest.er1
12763   cat conftest.err >&5
12764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12765   (exit $ac_status); } && {
12766          test -z "$ac_cxx_werror_flag" ||
12767          test ! -s conftest.err
12768        } && test -s conftest$ac_exeext &&
12769        $as_test_x conftest$ac_exeext; then
12770
12771 lt_aix_libpath_sed='
12772     /Import File Strings/,/^$/ {
12773         /^0/ {
12774             s/^0  *\(.*\)$/\1/
12775             p
12776         }
12777     }'
12778 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12779 # Check for a 64-bit object if we didn't find anything.
12780 if test -z "$aix_libpath"; then
12781   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12782 fi
12783 else
12784   echo "$as_me: failed program was:" >&5
12785 sed 's/^/| /' conftest.$ac_ext >&5
12786
12787
12788 fi
12789
12790 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12791       conftest$ac_exeext conftest.$ac_ext
12792 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12793
12794         hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12795         # Warning - without using the other run time loading flags,
12796         # -berok will link without error, but may produce a broken library.
12797         no_undefined_flag_CXX=' ${wl}-bernotok'
12798         allow_undefined_flag_CXX=' ${wl}-berok'
12799         # Exported symbols can be pulled into shared objects from archives
12800         whole_archive_flag_spec_CXX='$convenience'
12801         archive_cmds_need_lc_CXX=yes
12802         # This is similar to how AIX traditionally builds its shared libraries.
12803         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'
12804       fi
12805     fi
12806     ;;
12807
12808   beos*)
12809     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12810       allow_undefined_flag_CXX=unsupported
12811       # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12812       # support --undefined.  This deserves some investigation.  FIXME
12813       archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12814     else
12815       ld_shlibs_CXX=no
12816     fi
12817     ;;
12818
12819   chorus*)
12820     case $cc_basename in
12821       *)
12822         # FIXME: insert proper C++ library support
12823         ld_shlibs_CXX=no
12824         ;;
12825     esac
12826     ;;
12827
12828   cygwin* | mingw* | pw32*)
12829     # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12830     # as there is no search path for DLLs.
12831     hardcode_libdir_flag_spec_CXX='-L$libdir'
12832     allow_undefined_flag_CXX=unsupported
12833     always_export_symbols_CXX=no
12834     enable_shared_with_static_runtimes_CXX=yes
12835
12836     if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
12837       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'
12838       # If the export-symbols file already is a .def file (1st line
12839       # is EXPORTS), use it as is; otherwise, prepend...
12840       archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12841         cp $export_symbols $output_objdir/$soname.def;
12842       else
12843         echo EXPORTS > $output_objdir/$soname.def;
12844         cat $export_symbols >> $output_objdir/$soname.def;
12845       fi~
12846       $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'
12847     else
12848       ld_shlibs_CXX=no
12849     fi
12850   ;;
12851       darwin* | rhapsody*)
12852         case $host_os in
12853         rhapsody* | darwin1.[012])
12854          allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
12855          ;;
12856        *) # Darwin 1.3 on
12857          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
12858            allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
12859          else
12860            case ${MACOSX_DEPLOYMENT_TARGET} in
12861              10.[012])
12862                allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
12863                ;;
12864              10.*)
12865                allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
12866                ;;
12867            esac
12868          fi
12869          ;;
12870         esac
12871       archive_cmds_need_lc_CXX=no
12872       hardcode_direct_CXX=no
12873       hardcode_automatic_CXX=yes
12874       hardcode_shlibpath_var_CXX=unsupported
12875       whole_archive_flag_spec_CXX=''
12876       link_all_deplibs_CXX=yes
12877
12878     if test "$GXX" = yes ; then
12879       lt_int_apple_cc_single_mod=no
12880       output_verbose_link_cmd='echo'
12881       if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
12882        lt_int_apple_cc_single_mod=yes
12883       fi
12884       if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
12885        archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
12886       else
12887           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'
12888         fi
12889         module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12890         # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
12891           if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
12892             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}'
12893           else
12894             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}'
12895           fi
12896             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}'
12897       else
12898       case $cc_basename in
12899         xlc*)
12900          output_verbose_link_cmd='echo'
12901           archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
12902           module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12903           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
12904           archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
12905           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}'
12906           ;;
12907        *)
12908          ld_shlibs_CXX=no
12909           ;;
12910       esac
12911       fi
12912         ;;
12913
12914   dgux*)
12915     case $cc_basename in
12916       ec++*)
12917         # FIXME: insert proper C++ library support
12918         ld_shlibs_CXX=no
12919         ;;
12920       ghcx*)
12921         # Green Hills C++ Compiler
12922         # FIXME: insert proper C++ library support
12923         ld_shlibs_CXX=no
12924         ;;
12925       *)
12926         # FIXME: insert proper C++ library support
12927         ld_shlibs_CXX=no
12928         ;;
12929     esac
12930     ;;
12931   freebsd[12]*)
12932     # C++ shared libraries reported to be fairly broken before switch to ELF
12933     ld_shlibs_CXX=no
12934     ;;
12935   freebsd-elf*)
12936     archive_cmds_need_lc_CXX=no
12937     ;;
12938   freebsd* | dragonfly*)
12939     # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12940     # conventions
12941     ld_shlibs_CXX=yes
12942     ;;
12943   gnu*)
12944     ;;
12945   hpux9*)
12946     hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12947     hardcode_libdir_separator_CXX=:
12948     export_dynamic_flag_spec_CXX='${wl}-E'
12949     hardcode_direct_CXX=yes
12950     hardcode_minus_L_CXX=yes # Not in the search PATH,
12951                                 # but as the default
12952                                 # location of the library.
12953
12954     case $cc_basename in
12955     CC*)
12956       # FIXME: insert proper C++ library support
12957       ld_shlibs_CXX=no
12958       ;;
12959     aCC*)
12960       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'
12961       # Commands to make compiler produce verbose output that lists
12962       # what "hidden" libraries, object files and flags are used when
12963       # linking a shared library.
12964       #
12965       # There doesn't appear to be a way to prevent this compiler from
12966       # explicitly linking system object files so we need to strip them
12967       # from the output so that they don't get included in the library
12968       # dependencies.
12969       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'
12970       ;;
12971     *)
12972       if test "$GXX" = yes; then
12973         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'
12974       else
12975         # FIXME: insert proper C++ library support
12976         ld_shlibs_CXX=no
12977       fi
12978       ;;
12979     esac
12980     ;;
12981   hpux10*|hpux11*)
12982     if test $with_gnu_ld = no; then
12983       hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12984       hardcode_libdir_separator_CXX=:
12985
12986       case $host_cpu in
12987       hppa*64*|ia64*) ;;
12988       *)
12989         export_dynamic_flag_spec_CXX='${wl}-E'
12990         ;;
12991       esac
12992     fi
12993     case $host_cpu in
12994     hppa*64*|ia64*)
12995       hardcode_direct_CXX=no
12996       hardcode_shlibpath_var_CXX=no
12997       ;;
12998     *)
12999       hardcode_direct_CXX=yes
13000       hardcode_minus_L_CXX=yes # Not in the search PATH,
13001                                               # but as the default
13002                                               # location of the library.
13003       ;;
13004     esac
13005
13006     case $cc_basename in
13007       CC*)
13008         # FIXME: insert proper C++ library support
13009         ld_shlibs_CXX=no
13010         ;;
13011       aCC*)
13012         case $host_cpu in
13013         hppa*64*)
13014           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13015           ;;
13016         ia64*)
13017           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13018           ;;
13019         *)
13020           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13021           ;;
13022         esac
13023         # Commands to make compiler produce verbose output that lists
13024         # what "hidden" libraries, object files and flags are used when
13025         # linking a shared library.
13026         #
13027         # There doesn't appear to be a way to prevent this compiler from
13028         # explicitly linking system object files so we need to strip them
13029         # from the output so that they don't get included in the library
13030         # dependencies.
13031         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'
13032         ;;
13033       *)
13034         if test "$GXX" = yes; then
13035           if test $with_gnu_ld = no; then
13036             case $host_cpu in
13037             hppa*64*)
13038               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13039               ;;
13040             ia64*)
13041               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13042               ;;
13043             *)
13044               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'
13045               ;;
13046             esac
13047           fi
13048         else
13049           # FIXME: insert proper C++ library support
13050           ld_shlibs_CXX=no
13051         fi
13052         ;;
13053     esac
13054     ;;
13055   interix[3-9]*)
13056     hardcode_direct_CXX=no
13057     hardcode_shlibpath_var_CXX=no
13058     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13059     export_dynamic_flag_spec_CXX='${wl}-E'
13060     # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13061     # Instead, shared libraries are loaded at an image base (0x10000000 by
13062     # default) and relocated if they conflict, which is a slow very memory
13063     # consuming and fragmenting process.  To avoid this, we pick a random,
13064     # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13065     # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
13066     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'
13067     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'
13068     ;;
13069   irix5* | irix6*)
13070     case $cc_basename in
13071       CC*)
13072         # SGI C++
13073         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'
13074
13075         # Archives containing C++ object files must be created using
13076         # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
13077         # necessary to make sure instantiated templates are included
13078         # in the archive.
13079         old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13080         ;;
13081       *)
13082         if test "$GXX" = yes; then
13083           if test "$with_gnu_ld" = no; then
13084             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'
13085           else
13086             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'
13087           fi
13088         fi
13089         link_all_deplibs_CXX=yes
13090         ;;
13091     esac
13092     hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13093     hardcode_libdir_separator_CXX=:
13094     ;;
13095   linux* | k*bsd*-gnu)
13096     case $cc_basename in
13097       KCC*)
13098         # Kuck and Associates, Inc. (KAI) C++ Compiler
13099
13100         # KCC will only create a shared library if the output file
13101         # ends with ".so" (or ".sl" for HP-UX), so rename the library
13102         # to its proper name (with version) after linking.
13103         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'
13104         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'
13105         # Commands to make compiler produce verbose output that lists
13106         # what "hidden" libraries, object files and flags are used when
13107         # linking a shared library.
13108         #
13109         # There doesn't appear to be a way to prevent this compiler from
13110         # explicitly linking system object files so we need to strip them
13111         # from the output so that they don't get included in the library
13112         # dependencies.
13113         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'
13114
13115         hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
13116         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13117
13118         # Archives containing C++ object files must be created using
13119         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13120         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13121         ;;
13122       icpc*)
13123         # Intel C++
13124         with_gnu_ld=yes
13125         # version 8.0 and above of icpc choke on multiply defined symbols
13126         # if we add $predep_objects and $postdep_objects, however 7.1 and
13127         # earlier do not add the objects themselves.
13128         case `$CC -V 2>&1` in
13129         *"Version 7."*)
13130           archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13131           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'
13132           ;;
13133         *)  # Version 8.0 or newer
13134           tmp_idyn=
13135           case $host_cpu in
13136             ia64*) tmp_idyn=' -i_dynamic';;
13137           esac
13138           archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13139           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'
13140           ;;
13141         esac
13142         archive_cmds_need_lc_CXX=no
13143         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13144         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13145         whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13146         ;;
13147       pgCC*)
13148         # Portland Group C++ compiler
13149         archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13150         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'
13151
13152         hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13153         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13154         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'
13155         ;;
13156       cxx*)
13157         # Compaq C++
13158         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13159         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'
13160
13161         runpath_var=LD_RUN_PATH
13162         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13163         hardcode_libdir_separator_CXX=:
13164
13165         # Commands to make compiler produce verbose output that lists
13166         # what "hidden" libraries, object files and flags are used when
13167         # linking a shared library.
13168         #
13169         # There doesn't appear to be a way to prevent this compiler from
13170         # explicitly linking system object files so we need to strip them
13171         # from the output so that they don't get included in the library
13172         # dependencies.
13173         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'
13174         ;;
13175       *)
13176         case `$CC -V 2>&1 | sed 5q` in
13177         *Sun\ C*)
13178           # Sun C++ 5.9
13179           no_undefined_flag_CXX=' -zdefs'
13180           archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13181           archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
13182           hardcode_libdir_flag_spec_CXX='-R$libdir'
13183           whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
13184
13185           # Not sure whether something based on
13186           # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13187           # would be better.
13188           output_verbose_link_cmd='echo'
13189
13190           # Archives containing C++ object files must be created using
13191           # "CC -xar", where "CC" is the Sun C++ compiler.  This is
13192           # necessary to make sure instantiated templates are included
13193           # in the archive.
13194           old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13195           ;;
13196         esac
13197         ;;
13198     esac
13199     ;;
13200   lynxos*)
13201     # FIXME: insert proper C++ library support
13202     ld_shlibs_CXX=no
13203     ;;
13204   m88k*)
13205     # FIXME: insert proper C++ library support
13206     ld_shlibs_CXX=no
13207     ;;
13208   mvs*)
13209     case $cc_basename in
13210       cxx*)
13211         # FIXME: insert proper C++ library support
13212         ld_shlibs_CXX=no
13213         ;;
13214       *)
13215         # FIXME: insert proper C++ library support
13216         ld_shlibs_CXX=no
13217         ;;
13218     esac
13219     ;;
13220   netbsd*)
13221     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13222       archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13223       wlarc=
13224       hardcode_libdir_flag_spec_CXX='-R$libdir'
13225       hardcode_direct_CXX=yes
13226       hardcode_shlibpath_var_CXX=no
13227     fi
13228     # Workaround some broken pre-1.5 toolchains
13229     output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13230     ;;
13231   openbsd2*)
13232     # C++ shared libraries are fairly broken
13233     ld_shlibs_CXX=no
13234     ;;
13235   openbsd*)
13236     if test -f /usr/libexec/ld.so; then
13237       hardcode_direct_CXX=yes
13238       hardcode_shlibpath_var_CXX=no
13239       archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13240       hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13241       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13242         archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13243         export_dynamic_flag_spec_CXX='${wl}-E'
13244         whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13245       fi
13246       output_verbose_link_cmd='echo'
13247     else
13248       ld_shlibs_CXX=no
13249     fi
13250     ;;
13251   osf3*)
13252     case $cc_basename in
13253       KCC*)
13254         # Kuck and Associates, Inc. (KAI) C++ Compiler
13255
13256         # KCC will only create a shared library if the output file
13257         # ends with ".so" (or ".sl" for HP-UX), so rename the library
13258         # to its proper name (with version) after linking.
13259         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'
13260
13261         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13262         hardcode_libdir_separator_CXX=:
13263
13264         # Archives containing C++ object files must be created using
13265         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13266         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13267
13268         ;;
13269       RCC*)
13270         # Rational C++ 2.4.1
13271         # FIXME: insert proper C++ library support
13272         ld_shlibs_CXX=no
13273         ;;
13274       cxx*)
13275         allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13276         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'
13277
13278         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13279         hardcode_libdir_separator_CXX=:
13280
13281         # Commands to make compiler produce verbose output that lists
13282         # what "hidden" libraries, object files and flags are used when
13283         # linking a shared library.
13284         #
13285         # There doesn't appear to be a way to prevent this compiler from
13286         # explicitly linking system object files so we need to strip them
13287         # from the output so that they don't get included in the library
13288         # dependencies.
13289         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'
13290         ;;
13291       *)
13292         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13293           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13294           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'
13295
13296           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13297           hardcode_libdir_separator_CXX=:
13298
13299           # Commands to make compiler produce verbose output that lists
13300           # what "hidden" libraries, object files and flags are used when
13301           # linking a shared library.
13302           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
13303
13304         else
13305           # FIXME: insert proper C++ library support
13306           ld_shlibs_CXX=no
13307         fi
13308         ;;
13309     esac
13310     ;;
13311   osf4* | osf5*)
13312     case $cc_basename in
13313       KCC*)
13314         # Kuck and Associates, Inc. (KAI) C++ Compiler
13315
13316         # KCC will only create a shared library if the output file
13317         # ends with ".so" (or ".sl" for HP-UX), so rename the library
13318         # to its proper name (with version) after linking.
13319         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'
13320
13321         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13322         hardcode_libdir_separator_CXX=:
13323
13324         # Archives containing C++ object files must be created using
13325         # the KAI C++ compiler.
13326         old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
13327         ;;
13328       RCC*)
13329         # Rational C++ 2.4.1
13330         # FIXME: insert proper C++ library support
13331         ld_shlibs_CXX=no
13332         ;;
13333       cxx*)
13334         allow_undefined_flag_CXX=' -expect_unresolved \*'
13335         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'
13336         archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13337           echo "-hidden">> $lib.exp~
13338           $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~
13339           $rm $lib.exp'
13340
13341         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13342         hardcode_libdir_separator_CXX=:
13343
13344         # Commands to make compiler produce verbose output that lists
13345         # what "hidden" libraries, object files and flags are used when
13346         # linking a shared library.
13347         #
13348         # There doesn't appear to be a way to prevent this compiler from
13349         # explicitly linking system object files so we need to strip them
13350         # from the output so that they don't get included in the library
13351         # dependencies.
13352         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'
13353         ;;
13354       *)
13355         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13356           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13357          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'
13358
13359           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13360           hardcode_libdir_separator_CXX=:
13361
13362           # Commands to make compiler produce verbose output that lists
13363           # what "hidden" libraries, object files and flags are used when
13364           # linking a shared library.
13365           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
13366
13367         else
13368           # FIXME: insert proper C++ library support
13369           ld_shlibs_CXX=no
13370         fi
13371         ;;
13372     esac
13373     ;;
13374   psos*)
13375     # FIXME: insert proper C++ library support
13376     ld_shlibs_CXX=no
13377     ;;
13378   sunos4*)
13379     case $cc_basename in
13380       CC*)
13381         # Sun C++ 4.x
13382         # FIXME: insert proper C++ library support
13383         ld_shlibs_CXX=no
13384         ;;
13385       lcc*)
13386         # Lucid
13387         # FIXME: insert proper C++ library support
13388         ld_shlibs_CXX=no
13389         ;;
13390       *)
13391         # FIXME: insert proper C++ library support
13392         ld_shlibs_CXX=no
13393         ;;
13394     esac
13395     ;;
13396   solaris*)
13397     case $cc_basename in
13398       CC*)
13399         # Sun C++ 4.2, 5.x and Centerline C++
13400         archive_cmds_need_lc_CXX=yes
13401         no_undefined_flag_CXX=' -zdefs'
13402         archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13403         archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13404         $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'
13405
13406         hardcode_libdir_flag_spec_CXX='-R$libdir'
13407         hardcode_shlibpath_var_CXX=no
13408         case $host_os in
13409           solaris2.[0-5] | solaris2.[0-5].*) ;;
13410           *)
13411             # The compiler driver will combine and reorder linker options,
13412             # but understands `-z linker_flag'.
13413             # Supported since Solaris 2.6 (maybe 2.5.1?)
13414             whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
13415             ;;
13416         esac
13417         link_all_deplibs_CXX=yes
13418
13419         output_verbose_link_cmd='echo'
13420
13421         # Archives containing C++ object files must be created using
13422         # "CC -xar", where "CC" is the Sun C++ compiler.  This is
13423         # necessary to make sure instantiated templates are included
13424         # in the archive.
13425         old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13426         ;;
13427       gcx*)
13428         # Green Hills C++ Compiler
13429         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13430
13431         # The C++ compiler must be used to create the archive.
13432         old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13433         ;;
13434       *)
13435         # GNU C++ compiler with Solaris linker
13436         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13437           no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13438           if $CC --version | grep -v '^2\.7' > /dev/null; then
13439             archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13440             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13441                 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
13442
13443             # Commands to make compiler produce verbose output that lists
13444             # what "hidden" libraries, object files and flags are used when
13445             # linking a shared library.
13446             output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
13447           else
13448             # g++ 2.7 appears to require `-G' NOT `-shared' on this
13449             # platform.
13450             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13451             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13452                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
13453
13454             # Commands to make compiler produce verbose output that lists
13455             # what "hidden" libraries, object files and flags are used when
13456             # linking a shared library.
13457             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
13458           fi
13459
13460           hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13461           case $host_os in
13462           solaris2.[0-5] | solaris2.[0-5].*) ;;
13463           *)
13464             whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13465             ;;
13466           esac
13467         fi
13468         ;;
13469     esac
13470     ;;
13471   sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13472     no_undefined_flag_CXX='${wl}-z,text'
13473     archive_cmds_need_lc_CXX=no
13474     hardcode_shlibpath_var_CXX=no
13475     runpath_var='LD_RUN_PATH'
13476
13477     case $cc_basename in
13478       CC*)
13479         archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13480         archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13481         ;;
13482       *)
13483         archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13484         archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13485         ;;
13486     esac
13487     ;;
13488   sysv5* | sco3.2v5* | sco5v6*)
13489     # Note: We can NOT use -z defs as we might desire, because we do not
13490     # link with -lc, and that would cause any symbols used from libc to
13491     # always be unresolved, which means just about no library would
13492     # ever link correctly.  If we're not using GNU ld we use -z text
13493     # though, which does catch some bad symbols but isn't as heavy-handed
13494     # as -z defs.
13495     # For security reasons, it is highly recommended that you always
13496     # use absolute paths for naming shared libraries, and exclude the
13497     # DT_RUNPATH tag from executables and libraries.  But doing so
13498     # requires that you compile everything twice, which is a pain.
13499     # So that behaviour is only enabled if SCOABSPATH is set to a
13500     # non-empty value in the environment.  Most likely only useful for
13501     # creating official distributions of packages.
13502     # This is a hack until libtool officially supports absolute path
13503     # names for shared libraries.
13504     no_undefined_flag_CXX='${wl}-z,text'
13505     allow_undefined_flag_CXX='${wl}-z,nodefs'
13506     archive_cmds_need_lc_CXX=no
13507     hardcode_shlibpath_var_CXX=no
13508     hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
13509     hardcode_libdir_separator_CXX=':'
13510     link_all_deplibs_CXX=yes
13511     export_dynamic_flag_spec_CXX='${wl}-Bexport'
13512     runpath_var='LD_RUN_PATH'
13513
13514     case $cc_basename in
13515       CC*)
13516         archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
13517         archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
13518         ;;
13519       *)
13520         archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
13521         archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
13522         ;;
13523     esac
13524     ;;
13525   tandem*)
13526     case $cc_basename in
13527       NCC*)
13528         # NonStop-UX NCC 3.20
13529         # FIXME: insert proper C++ library support
13530         ld_shlibs_CXX=no
13531         ;;
13532       *)
13533         # FIXME: insert proper C++ library support
13534         ld_shlibs_CXX=no
13535         ;;
13536     esac
13537     ;;
13538   vxworks*)
13539     # FIXME: insert proper C++ library support
13540     ld_shlibs_CXX=no
13541     ;;
13542   *)
13543     # FIXME: insert proper C++ library support
13544     ld_shlibs_CXX=no
13545     ;;
13546 esac
13547 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
13548 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
13549 test "$ld_shlibs_CXX" = no && can_build_shared=no
13550
13551 GCC_CXX="$GXX"
13552 LD_CXX="$LD"
13553
13554
13555 cat > conftest.$ac_ext <<EOF
13556 class Foo
13557 {
13558 public:
13559   Foo (void) { a = 0; }
13560 private:
13561   int a;
13562 };
13563 EOF
13564
13565 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13566   (eval $ac_compile) 2>&5
13567   ac_status=$?
13568   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13569   (exit $ac_status); }; then
13570   # Parse the compiler output and extract the necessary
13571   # objects, libraries and library flags.
13572
13573   # Sentinel used to keep track of whether or not we are before
13574   # the conftest object file.
13575   pre_test_object_deps_done=no
13576
13577   # The `*' in the case matches for architectures that use `case' in
13578   # $output_verbose_cmd can trigger glob expansion during the loop
13579   # eval without this substitution.
13580   output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
13581
13582   for p in `eval $output_verbose_link_cmd`; do
13583     case $p in
13584
13585     -L* | -R* | -l*)
13586        # Some compilers place space between "-{L,R}" and the path.
13587        # Remove the space.
13588        if test $p = "-L" \
13589           || test $p = "-R"; then
13590          prev=$p
13591          continue
13592        else
13593          prev=
13594        fi
13595
13596        if test "$pre_test_object_deps_done" = no; then
13597          case $p in
13598          -L* | -R*)
13599            # Internal compiler library paths should come after those
13600            # provided the user.  The postdeps already come after the
13601            # user supplied libs so there is no need to process them.
13602            if test -z "$compiler_lib_search_path_CXX"; then
13603              compiler_lib_search_path_CXX="${prev}${p}"
13604            else
13605              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13606            fi
13607            ;;
13608          # The "-l" case would never come before the object being
13609          # linked, so don't bother handling this case.
13610          esac
13611        else
13612          if test -z "$postdeps_CXX"; then
13613            postdeps_CXX="${prev}${p}"
13614          else
13615            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13616          fi
13617        fi
13618        ;;
13619
13620     *.$objext)
13621        # This assumes that the test object file only shows up
13622        # once in the compiler output.
13623        if test "$p" = "conftest.$objext"; then
13624          pre_test_object_deps_done=yes
13625          continue
13626        fi
13627
13628        if test "$pre_test_object_deps_done" = no; then
13629          if test -z "$predep_objects_CXX"; then
13630            predep_objects_CXX="$p"
13631          else
13632            predep_objects_CXX="$predep_objects_CXX $p"
13633          fi
13634        else
13635          if test -z "$postdep_objects_CXX"; then
13636            postdep_objects_CXX="$p"
13637          else
13638            postdep_objects_CXX="$postdep_objects_CXX $p"
13639          fi
13640        fi
13641        ;;
13642
13643     *) ;; # Ignore the rest.
13644
13645     esac
13646   done
13647
13648   # Clean up.
13649   rm -f a.out a.exe
13650 else
13651   echo "libtool.m4: error: problem compiling CXX test program"
13652 fi
13653
13654 $rm -f confest.$objext
13655
13656 # PORTME: override above test on systems where it is broken
13657 case $host_os in
13658 interix[3-9]*)
13659   # Interix 3.5 installs completely hosed .la files for C++, so rather than
13660   # hack all around it, let's just trust "g++" to DTRT.
13661   predep_objects_CXX=
13662   postdep_objects_CXX=
13663   postdeps_CXX=
13664   ;;
13665
13666 linux*)
13667   case `$CC -V 2>&1 | sed 5q` in
13668   *Sun\ C*)
13669     # Sun C++ 5.9
13670     #
13671     # The more standards-conforming stlport4 library is
13672     # incompatible with the Cstd library. Avoid specifying
13673     # it if it's in CXXFLAGS. Ignore libCrun as
13674     # -library=stlport4 depends on it.
13675     case " $CXX $CXXFLAGS " in
13676     *" -library=stlport4 "*)
13677       solaris_use_stlport4=yes
13678       ;;
13679     esac
13680     if test "$solaris_use_stlport4" != yes; then
13681       postdeps_CXX='-library=Cstd -library=Crun'
13682     fi
13683     ;;
13684   esac
13685   ;;
13686
13687 solaris*)
13688   case $cc_basename in
13689   CC*)
13690     # The more standards-conforming stlport4 library is
13691     # incompatible with the Cstd library. Avoid specifying
13692     # it if it's in CXXFLAGS. Ignore libCrun as
13693     # -library=stlport4 depends on it.
13694     case " $CXX $CXXFLAGS " in
13695     *" -library=stlport4 "*)
13696       solaris_use_stlport4=yes
13697       ;;
13698     esac
13699
13700     # Adding this requires a known-good setup of shared libraries for
13701     # Sun compiler versions before 5.6, else PIC objects from an old
13702     # archive will be linked into the output, leading to subtle bugs.
13703     if test "$solaris_use_stlport4" != yes; then
13704       postdeps_CXX='-library=Cstd -library=Crun'
13705     fi
13706     ;;
13707   esac
13708   ;;
13709 esac
13710
13711
13712 case " $postdeps_CXX " in
13713 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
13714 esac
13715
13716 lt_prog_compiler_wl_CXX=
13717 lt_prog_compiler_pic_CXX=
13718 lt_prog_compiler_static_CXX=
13719
13720 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13721 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
13722
13723   # C++ specific cases for pic, static, wl, etc.
13724   if test "$GXX" = yes; then
13725     lt_prog_compiler_wl_CXX='-Wl,'
13726     lt_prog_compiler_static_CXX='-static'
13727
13728     case $host_os in
13729     aix*)
13730       # All AIX code is PIC.
13731       if test "$host_cpu" = ia64; then
13732         # AIX 5 now supports IA64 processor
13733         lt_prog_compiler_static_CXX='-Bstatic'
13734       fi
13735       ;;
13736     amigaos*)
13737       # FIXME: we need at least 68020 code to build shared libraries, but
13738       # adding the `-m68020' flag to GCC prevents building anything better,
13739       # like `-m68040'.
13740       lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
13741       ;;
13742     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13743       # PIC is the default for these OSes.
13744       ;;
13745     mingw* | cygwin* | os2* | pw32*)
13746       # This hack is so that the source file can tell whether it is being
13747       # built for inclusion in a dll (and should export symbols for example).
13748       # Although the cygwin gcc ignores -fPIC, still need this for old-style
13749       # (--disable-auto-import) libraries
13750       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13751       ;;
13752     darwin* | rhapsody*)
13753       # PIC is the default on this platform
13754       # Common symbols not allowed in MH_DYLIB files
13755       lt_prog_compiler_pic_CXX='-fno-common'
13756       ;;
13757     *djgpp*)
13758       # DJGPP does not support shared libraries at all
13759       lt_prog_compiler_pic_CXX=
13760       ;;
13761     interix[3-9]*)
13762       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13763       # Instead, we relocate shared libraries at runtime.
13764       ;;
13765     sysv4*MP*)
13766       if test -d /usr/nec; then
13767         lt_prog_compiler_pic_CXX=-Kconform_pic
13768       fi
13769       ;;
13770     hpux*)
13771       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13772       # not for PA HP-UX.
13773       case $host_cpu in
13774       hppa*64*|ia64*)
13775         ;;
13776       *)
13777         lt_prog_compiler_pic_CXX='-fPIC'
13778         ;;
13779       esac
13780       ;;
13781     *)
13782       lt_prog_compiler_pic_CXX='-fPIC'
13783       ;;
13784     esac
13785   else
13786     case $host_os in
13787       aix4* | aix5*)
13788         # All AIX code is PIC.
13789         if test "$host_cpu" = ia64; then
13790           # AIX 5 now supports IA64 processor
13791           lt_prog_compiler_static_CXX='-Bstatic'
13792         else
13793           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
13794         fi
13795         ;;
13796       chorus*)
13797         case $cc_basename in
13798         cxch68*)
13799           # Green Hills C++ Compiler
13800           # _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"
13801           ;;
13802         esac
13803         ;;
13804        darwin*)
13805          # PIC is the default on this platform
13806          # Common symbols not allowed in MH_DYLIB files
13807          case $cc_basename in
13808            xlc*)
13809            lt_prog_compiler_pic_CXX='-qnocommon'
13810            lt_prog_compiler_wl_CXX='-Wl,'
13811            ;;
13812          esac
13813        ;;
13814       dgux*)
13815         case $cc_basename in
13816           ec++*)
13817             lt_prog_compiler_pic_CXX='-KPIC'
13818             ;;
13819           ghcx*)
13820             # Green Hills C++ Compiler
13821             lt_prog_compiler_pic_CXX='-pic'
13822             ;;
13823           *)
13824             ;;
13825         esac
13826         ;;
13827       freebsd* | dragonfly*)
13828         # FreeBSD uses GNU C++
13829         ;;
13830       hpux9* | hpux10* | hpux11*)
13831         case $cc_basename in
13832           CC*)
13833             lt_prog_compiler_wl_CXX='-Wl,'
13834             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13835             if test "$host_cpu" != ia64; then
13836               lt_prog_compiler_pic_CXX='+Z'
13837             fi
13838             ;;
13839           aCC*)
13840             lt_prog_compiler_wl_CXX='-Wl,'
13841             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13842             case $host_cpu in
13843             hppa*64*|ia64*)
13844               # +Z the default
13845               ;;
13846             *)
13847               lt_prog_compiler_pic_CXX='+Z'
13848               ;;
13849             esac
13850             ;;
13851           *)
13852             ;;
13853         esac
13854         ;;
13855       interix*)
13856         # This is c89, which is MS Visual C++ (no shared libs)
13857         # Anyone wants to do a port?
13858         ;;
13859       irix5* | irix6* | nonstopux*)
13860         case $cc_basename in
13861           CC*)
13862             lt_prog_compiler_wl_CXX='-Wl,'
13863             lt_prog_compiler_static_CXX='-non_shared'
13864             # CC pic flag -KPIC is the default.
13865             ;;
13866           *)
13867             ;;
13868         esac
13869         ;;
13870       linux* | k*bsd*-gnu)
13871         case $cc_basename in
13872           KCC*)
13873             # KAI C++ Compiler
13874             lt_prog_compiler_wl_CXX='--backend -Wl,'
13875             lt_prog_compiler_pic_CXX='-fPIC'
13876             ;;
13877           icpc* | ecpc*)
13878             # Intel C++
13879             lt_prog_compiler_wl_CXX='-Wl,'
13880             lt_prog_compiler_pic_CXX='-KPIC'
13881             lt_prog_compiler_static_CXX='-static'
13882             ;;
13883           pgCC*)
13884             # Portland Group C++ compiler.
13885             lt_prog_compiler_wl_CXX='-Wl,'
13886             lt_prog_compiler_pic_CXX='-fpic'
13887             lt_prog_compiler_static_CXX='-Bstatic'
13888             ;;
13889           cxx*)
13890             # Compaq C++
13891             # Make sure the PIC flag is empty.  It appears that all Alpha
13892             # Linux and Compaq Tru64 Unix objects are PIC.
13893             lt_prog_compiler_pic_CXX=
13894             lt_prog_compiler_static_CXX='-non_shared'
13895             ;;
13896           *)
13897             case `$CC -V 2>&1 | sed 5q` in
13898             *Sun\ C*)
13899               # Sun C++ 5.9
13900               lt_prog_compiler_pic_CXX='-KPIC'
13901               lt_prog_compiler_static_CXX='-Bstatic'
13902               lt_prog_compiler_wl_CXX='-Qoption ld '
13903               ;;
13904             esac
13905             ;;
13906         esac
13907         ;;
13908       lynxos*)
13909         ;;
13910       m88k*)
13911         ;;
13912       mvs*)
13913         case $cc_basename in
13914           cxx*)
13915             lt_prog_compiler_pic_CXX='-W c,exportall'
13916             ;;
13917           *)
13918             ;;
13919         esac
13920         ;;
13921       netbsd*)
13922         ;;
13923       osf3* | osf4* | osf5*)
13924         case $cc_basename in
13925           KCC*)
13926             lt_prog_compiler_wl_CXX='--backend -Wl,'
13927             ;;
13928           RCC*)
13929             # Rational C++ 2.4.1
13930             lt_prog_compiler_pic_CXX='-pic'
13931             ;;
13932           cxx*)
13933             # Digital/Compaq C++
13934             lt_prog_compiler_wl_CXX='-Wl,'
13935             # Make sure the PIC flag is empty.  It appears that all Alpha
13936             # Linux and Compaq Tru64 Unix objects are PIC.
13937             lt_prog_compiler_pic_CXX=
13938             lt_prog_compiler_static_CXX='-non_shared'
13939             ;;
13940           *)
13941             ;;
13942         esac
13943         ;;
13944       psos*)
13945         ;;
13946       solaris*)
13947         case $cc_basename in
13948           CC*)
13949             # Sun C++ 4.2, 5.x and Centerline C++
13950             lt_prog_compiler_pic_CXX='-KPIC'
13951             lt_prog_compiler_static_CXX='-Bstatic'
13952             lt_prog_compiler_wl_CXX='-Qoption ld '
13953             ;;
13954           gcx*)
13955             # Green Hills C++ Compiler
13956             lt_prog_compiler_pic_CXX='-PIC'
13957             ;;
13958           *)
13959             ;;
13960         esac
13961         ;;
13962       sunos4*)
13963         case $cc_basename in
13964           CC*)
13965             # Sun C++ 4.x
13966             lt_prog_compiler_pic_CXX='-pic'
13967             lt_prog_compiler_static_CXX='-Bstatic'
13968             ;;
13969           lcc*)
13970             # Lucid
13971             lt_prog_compiler_pic_CXX='-pic'
13972             ;;
13973           *)
13974             ;;
13975         esac
13976         ;;
13977       tandem*)
13978         case $cc_basename in
13979           NCC*)
13980             # NonStop-UX NCC 3.20
13981             lt_prog_compiler_pic_CXX='-KPIC'
13982             ;;
13983           *)
13984             ;;
13985         esac
13986         ;;
13987       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13988         case $cc_basename in
13989           CC*)
13990             lt_prog_compiler_wl_CXX='-Wl,'
13991             lt_prog_compiler_pic_CXX='-KPIC'
13992             lt_prog_compiler_static_CXX='-Bstatic'
13993             ;;
13994         esac
13995         ;;
13996       vxworks*)
13997         ;;
13998       *)
13999         lt_prog_compiler_can_build_shared_CXX=no
14000         ;;
14001     esac
14002   fi
14003
14004 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
14005 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
14006
14007 #
14008 # Check to make sure the PIC flag actually works.
14009 #
14010 if test -n "$lt_prog_compiler_pic_CXX"; then
14011
14012 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14013 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
14014 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
14015   echo $ECHO_N "(cached) $ECHO_C" >&6
14016 else
14017   lt_prog_compiler_pic_works_CXX=no
14018   ac_outfile=conftest.$ac_objext
14019    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14020    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
14021    # Insert the option either (1) after the last *FLAGS variable, or
14022    # (2) before a word containing "conftest.", or (3) at the end.
14023    # Note that $ac_compile itself does not contain backslashes and begins
14024    # with a dollar sign (not a hyphen), so the echo should work correctly.
14025    # The option is referenced via a variable to avoid confusing sed.
14026    lt_compile=`echo "$ac_compile" | $SED \
14027    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14028    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14029    -e 's:$: $lt_compiler_flag:'`
14030    (eval echo "\"\$as_me:14030: $lt_compile\"" >&5)
14031    (eval "$lt_compile" 2>conftest.err)
14032    ac_status=$?
14033    cat conftest.err >&5
14034    echo "$as_me:14034: \$? = $ac_status" >&5
14035    if (exit $ac_status) && test -s "$ac_outfile"; then
14036      # The compiler can only warn and ignore the option if not recognized
14037      # So say no if there are warnings other than the usual output.
14038      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14039      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14040      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14041        lt_prog_compiler_pic_works_CXX=yes
14042      fi
14043    fi
14044    $rm conftest*
14045
14046 fi
14047 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
14048 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
14049
14050 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
14051     case $lt_prog_compiler_pic_CXX in
14052      "" | " "*) ;;
14053      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14054      esac
14055 else
14056     lt_prog_compiler_pic_CXX=
14057      lt_prog_compiler_can_build_shared_CXX=no
14058 fi
14059
14060 fi
14061 case $host_os in
14062   # For platforms which do not support PIC, -DPIC is meaningless:
14063   *djgpp*)
14064     lt_prog_compiler_pic_CXX=
14065     ;;
14066   *)
14067     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14068     ;;
14069 esac
14070
14071 #
14072 # Check to make sure the static flag actually works.
14073 #
14074 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
14075 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14076 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14077 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
14078   echo $ECHO_N "(cached) $ECHO_C" >&6
14079 else
14080   lt_prog_compiler_static_works_CXX=no
14081    save_LDFLAGS="$LDFLAGS"
14082    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14083    echo "$lt_simple_link_test_code" > conftest.$ac_ext
14084    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14085      # The linker can only warn and ignore the option if not recognized
14086      # So say no if there are warnings
14087      if test -s conftest.err; then
14088        # Append any errors to the config.log.
14089        cat conftest.err 1>&5
14090        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14091        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14092        if diff conftest.exp conftest.er2 >/dev/null; then
14093          lt_prog_compiler_static_works_CXX=yes
14094        fi
14095      else
14096        lt_prog_compiler_static_works_CXX=yes
14097      fi
14098    fi
14099    $rm conftest*
14100    LDFLAGS="$save_LDFLAGS"
14101
14102 fi
14103 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
14104 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
14105
14106 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
14107     :
14108 else
14109     lt_prog_compiler_static_CXX=
14110 fi
14111
14112
14113 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14114 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14115 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
14116   echo $ECHO_N "(cached) $ECHO_C" >&6
14117 else
14118   lt_cv_prog_compiler_c_o_CXX=no
14119    $rm -r conftest 2>/dev/null
14120    mkdir conftest
14121    cd conftest
14122    mkdir out
14123    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14124
14125    lt_compiler_flag="-o out/conftest2.$ac_objext"
14126    # Insert the option either (1) after the last *FLAGS variable, or
14127    # (2) before a word containing "conftest.", or (3) at the end.
14128    # Note that $ac_compile itself does not contain backslashes and begins
14129    # with a dollar sign (not a hyphen), so the echo should work correctly.
14130    lt_compile=`echo "$ac_compile" | $SED \
14131    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14132    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14133    -e 's:$: $lt_compiler_flag:'`
14134    (eval echo "\"\$as_me:14134: $lt_compile\"" >&5)
14135    (eval "$lt_compile" 2>out/conftest.err)
14136    ac_status=$?
14137    cat out/conftest.err >&5
14138    echo "$as_me:14138: \$? = $ac_status" >&5
14139    if (exit $ac_status) && test -s out/conftest2.$ac_objext
14140    then
14141      # The compiler can only warn and ignore the option if not recognized
14142      # So say no if there are warnings
14143      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14144      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14145      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14146        lt_cv_prog_compiler_c_o_CXX=yes
14147      fi
14148    fi
14149    chmod u+w . 2>&5
14150    $rm conftest*
14151    # SGI C++ compiler will create directory out/ii_files/ for
14152    # template instantiation
14153    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14154    $rm out/* && rmdir out
14155    cd ..
14156    rmdir conftest
14157    $rm conftest*
14158
14159 fi
14160 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14161 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
14162
14163
14164 hard_links="nottested"
14165 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14166   # do not overwrite the value of need_locks provided by the user
14167   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14168 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14169   hard_links=yes
14170   $rm conftest*
14171   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14172   touch conftest.a
14173   ln conftest.a conftest.b 2>&5 || hard_links=no
14174   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14175   { echo "$as_me:$LINENO: result: $hard_links" >&5
14176 echo "${ECHO_T}$hard_links" >&6; }
14177   if test "$hard_links" = no; then
14178     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14179 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14180     need_locks=warn
14181   fi
14182 else
14183   need_locks=no
14184 fi
14185
14186 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14187 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14188
14189   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14190   case $host_os in
14191   aix4* | aix5*)
14192     # If we're using GNU nm, then we don't want the "-C" option.
14193     # -C means demangle to AIX nm, but means don't demangle with GNU nm
14194     if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14195       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'
14196     else
14197       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'
14198     fi
14199     ;;
14200   pw32*)
14201     export_symbols_cmds_CXX="$ltdll_cmds"
14202   ;;
14203   cygwin* | mingw*)
14204     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'
14205   ;;
14206   *)
14207     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14208   ;;
14209   esac
14210
14211 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
14212 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
14213 test "$ld_shlibs_CXX" = no && can_build_shared=no
14214
14215 #
14216 # Do we need to explicitly link libc?
14217 #
14218 case "x$archive_cmds_need_lc_CXX" in
14219 x|xyes)
14220   # Assume -lc should be added
14221   archive_cmds_need_lc_CXX=yes
14222
14223   if test "$enable_shared" = yes && test "$GCC" = yes; then
14224     case $archive_cmds_CXX in
14225     *'~'*)
14226       # FIXME: we may have to deal with multi-command sequences.
14227       ;;
14228     '$CC '*)
14229       # Test whether the compiler implicitly links with -lc since on some
14230       # systems, -lgcc has to come before -lc. If gcc already passes -lc
14231       # to ld, don't add -lc before -lgcc.
14232       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14233 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
14234       $rm conftest*
14235       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14236
14237       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14238   (eval $ac_compile) 2>&5
14239   ac_status=$?
14240   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14241   (exit $ac_status); } 2>conftest.err; then
14242         soname=conftest
14243         lib=conftest
14244         libobjs=conftest.$ac_objext
14245         deplibs=
14246         wl=$lt_prog_compiler_wl_CXX
14247         pic_flag=$lt_prog_compiler_pic_CXX
14248         compiler_flags=-v
14249         linker_flags=-v
14250         verstring=
14251         output_objdir=.
14252         libname=conftest
14253         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14254         allow_undefined_flag_CXX=
14255         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14256   (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14257   ac_status=$?
14258   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14259   (exit $ac_status); }
14260         then
14261           archive_cmds_need_lc_CXX=no
14262         else
14263           archive_cmds_need_lc_CXX=yes
14264         fi
14265         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14266       else
14267         cat conftest.err 1>&5
14268       fi
14269       $rm conftest*
14270       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
14271 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
14272       ;;
14273     esac
14274   fi
14275   ;;
14276 esac
14277
14278 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14279 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
14280 library_names_spec=
14281 libname_spec='lib$name'
14282 soname_spec=
14283 shrext_cmds=".so"
14284 postinstall_cmds=
14285 postuninstall_cmds=
14286 finish_cmds=
14287 finish_eval=
14288 shlibpath_var=
14289 shlibpath_overrides_runpath=unknown
14290 version_type=none
14291 dynamic_linker="$host_os ld.so"
14292 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14293
14294 need_lib_prefix=unknown
14295 hardcode_into_libs=no
14296
14297 # when you set need_version to no, make sure it does not cause -set_version
14298 # flags to be left without arguments
14299 need_version=unknown
14300
14301 case $host_os in
14302 aix3*)
14303   version_type=linux
14304   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14305   shlibpath_var=LIBPATH
14306
14307   # AIX 3 has no versioning support, so we append a major version to the name.
14308   soname_spec='${libname}${release}${shared_ext}$major'
14309   ;;
14310
14311 aix4* | aix5*)
14312   version_type=linux
14313   need_lib_prefix=no
14314   need_version=no
14315   hardcode_into_libs=yes
14316   if test "$host_cpu" = ia64; then
14317     # AIX 5 supports IA64
14318     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14319     shlibpath_var=LD_LIBRARY_PATH
14320   else
14321     # With GCC up to 2.95.x, collect2 would create an import file
14322     # for dependence libraries.  The import file would start with
14323     # the line `#! .'.  This would cause the generated library to
14324     # depend on `.', always an invalid library.  This was fixed in
14325     # development snapshots of GCC prior to 3.0.
14326     case $host_os in
14327       aix4 | aix4.[01] | aix4.[01].*)
14328       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14329            echo ' yes '
14330            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14331         :
14332       else
14333         can_build_shared=no
14334       fi
14335       ;;
14336     esac
14337     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14338     # soname into executable. Probably we can add versioning support to
14339     # collect2, so additional links can be useful in future.
14340     if test "$aix_use_runtimelinking" = yes; then
14341       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14342       # instead of lib<name>.a to let people know that these are not
14343       # typical AIX shared libraries.
14344       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14345     else
14346       # We preserve .a as extension for shared libraries through AIX4.2
14347       # and later when we are not doing run time linking.
14348       library_names_spec='${libname}${release}.a $libname.a'
14349       soname_spec='${libname}${release}${shared_ext}$major'
14350     fi
14351     shlibpath_var=LIBPATH
14352   fi
14353   ;;
14354
14355 amigaos*)
14356   library_names_spec='$libname.ixlibrary $libname.a'
14357   # Create ${libname}_ixlibrary.a entries in /sys/libs.
14358   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'
14359   ;;
14360
14361 beos*)
14362   library_names_spec='${libname}${shared_ext}'
14363   dynamic_linker="$host_os ld.so"
14364   shlibpath_var=LIBRARY_PATH
14365   ;;
14366
14367 bsdi[45]*)
14368   version_type=linux
14369   need_version=no
14370   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14371   soname_spec='${libname}${release}${shared_ext}$major'
14372   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14373   shlibpath_var=LD_LIBRARY_PATH
14374   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14375   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14376   # the default ld.so.conf also contains /usr/contrib/lib and
14377   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14378   # libtool to hard-code these into programs
14379   ;;
14380
14381 cygwin* | mingw* | pw32*)
14382   version_type=windows
14383   shrext_cmds=".dll"
14384   need_version=no
14385   need_lib_prefix=no
14386
14387   case $GCC,$host_os in
14388   yes,cygwin* | yes,mingw* | yes,pw32*)
14389     library_names_spec='$libname.dll.a'
14390     # DLL is installed to $(libdir)/../bin by postinstall_cmds
14391     postinstall_cmds='base_file=`basename \${file}`~
14392       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14393       dldir=$destdir/`dirname \$dlpath`~
14394       test -d \$dldir || mkdir -p \$dldir~
14395       $install_prog $dir/$dlname \$dldir/$dlname~
14396       chmod a+x \$dldir/$dlname'
14397     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14398       dlpath=$dir/\$dldll~
14399        $rm \$dlpath'
14400     shlibpath_overrides_runpath=yes
14401
14402     case $host_os in
14403     cygwin*)
14404       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14405       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14406       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14407       ;;
14408     mingw*)
14409       # MinGW DLLs use traditional 'lib' prefix
14410       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14411       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14412       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14413         # It is most probably a Windows format PATH printed by
14414         # mingw gcc, but we are running on Cygwin. Gcc prints its search
14415         # path with ; separators, and with drive letters. We can handle the
14416         # drive letters (cygwin fileutils understands them), so leave them,
14417         # especially as we might pass files found there to a mingw objdump,
14418         # which wouldn't understand a cygwinified path. Ahh.
14419         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14420       else
14421         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14422       fi
14423       ;;
14424     pw32*)
14425       # pw32 DLLs use 'pw' prefix rather than 'lib'
14426       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14427       ;;
14428     esac
14429     ;;
14430
14431   *)
14432     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14433     ;;
14434   esac
14435   dynamic_linker='Win32 ld.exe'
14436   # FIXME: first we should search . and the directory the executable is in
14437   shlibpath_var=PATH
14438   ;;
14439
14440 darwin* | rhapsody*)
14441   dynamic_linker="$host_os dyld"
14442   version_type=darwin
14443   need_lib_prefix=no
14444   need_version=no
14445   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14446   soname_spec='${libname}${release}${major}$shared_ext'
14447   shlibpath_overrides_runpath=yes
14448   shlibpath_var=DYLD_LIBRARY_PATH
14449   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14450
14451   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14452   ;;
14453
14454 dgux*)
14455   version_type=linux
14456   need_lib_prefix=no
14457   need_version=no
14458   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14459   soname_spec='${libname}${release}${shared_ext}$major'
14460   shlibpath_var=LD_LIBRARY_PATH
14461   ;;
14462
14463 freebsd1*)
14464   dynamic_linker=no
14465   ;;
14466
14467 freebsd* | dragonfly*)
14468   # DragonFly does not have aout.  When/if they implement a new
14469   # versioning mechanism, adjust this.
14470   if test -x /usr/bin/objformat; then
14471     objformat=`/usr/bin/objformat`
14472   else
14473     case $host_os in
14474     freebsd[123]*) objformat=aout ;;
14475     *) objformat=elf ;;
14476     esac
14477   fi
14478   version_type=freebsd-$objformat
14479   case $version_type in
14480     freebsd-elf*)
14481       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14482       need_version=no
14483       need_lib_prefix=no
14484       ;;
14485     freebsd-*)
14486       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14487       need_version=yes
14488       ;;
14489   esac
14490   shlibpath_var=LD_LIBRARY_PATH
14491   case $host_os in
14492   freebsd2*)
14493     shlibpath_overrides_runpath=yes
14494     ;;
14495   freebsd3.[01]* | freebsdelf3.[01]*)
14496     shlibpath_overrides_runpath=yes
14497     hardcode_into_libs=yes
14498     ;;
14499   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14500   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14501     shlibpath_overrides_runpath=no
14502     hardcode_into_libs=yes
14503     ;;
14504   *) # from 4.6 on, and DragonFly
14505     shlibpath_overrides_runpath=yes
14506     hardcode_into_libs=yes
14507     ;;
14508   esac
14509   ;;
14510
14511 gnu*)
14512   version_type=linux
14513   need_lib_prefix=no
14514   need_version=no
14515   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14516   soname_spec='${libname}${release}${shared_ext}$major'
14517   shlibpath_var=LD_LIBRARY_PATH
14518   hardcode_into_libs=yes
14519   ;;
14520
14521 hpux9* | hpux10* | hpux11*)
14522   # Give a soname corresponding to the major version so that dld.sl refuses to
14523   # link against other versions.
14524   version_type=sunos
14525   need_lib_prefix=no
14526   need_version=no
14527   case $host_cpu in
14528   ia64*)
14529     shrext_cmds='.so'
14530     hardcode_into_libs=yes
14531     dynamic_linker="$host_os dld.so"
14532     shlibpath_var=LD_LIBRARY_PATH
14533     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14534     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14535     soname_spec='${libname}${release}${shared_ext}$major'
14536     if test "X$HPUX_IA64_MODE" = X32; then
14537       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14538     else
14539       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14540     fi
14541     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14542     ;;
14543    hppa*64*)
14544      shrext_cmds='.sl'
14545      hardcode_into_libs=yes
14546      dynamic_linker="$host_os dld.sl"
14547      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14548      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14549      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14550      soname_spec='${libname}${release}${shared_ext}$major'
14551      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14552      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14553      ;;
14554    *)
14555     shrext_cmds='.sl'
14556     dynamic_linker="$host_os dld.sl"
14557     shlibpath_var=SHLIB_PATH
14558     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14559     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14560     soname_spec='${libname}${release}${shared_ext}$major'
14561     ;;
14562   esac
14563   # HP-UX runs *really* slowly unless shared libraries are mode 555.
14564   postinstall_cmds='chmod 555 $lib'
14565   ;;
14566
14567 interix[3-9]*)
14568   version_type=linux
14569   need_lib_prefix=no
14570   need_version=no
14571   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14572   soname_spec='${libname}${release}${shared_ext}$major'
14573   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14574   shlibpath_var=LD_LIBRARY_PATH
14575   shlibpath_overrides_runpath=no
14576   hardcode_into_libs=yes
14577   ;;
14578
14579 irix5* | irix6* | nonstopux*)
14580   case $host_os in
14581     nonstopux*) version_type=nonstopux ;;
14582     *)
14583         if test "$lt_cv_prog_gnu_ld" = yes; then
14584                 version_type=linux
14585         else
14586                 version_type=irix
14587         fi ;;
14588   esac
14589   need_lib_prefix=no
14590   need_version=no
14591   soname_spec='${libname}${release}${shared_ext}$major'
14592   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14593   case $host_os in
14594   irix5* | nonstopux*)
14595     libsuff= shlibsuff=
14596     ;;
14597   *)
14598     case $LD in # libtool.m4 will add one of these switches to LD
14599     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14600       libsuff= shlibsuff= libmagic=32-bit;;
14601     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14602       libsuff=32 shlibsuff=N32 libmagic=N32;;
14603     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14604       libsuff=64 shlibsuff=64 libmagic=64-bit;;
14605     *) libsuff= shlibsuff= libmagic=never-match;;
14606     esac
14607     ;;
14608   esac
14609   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14610   shlibpath_overrides_runpath=no
14611   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14612   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14613   hardcode_into_libs=yes
14614   ;;
14615
14616 # No shared lib support for Linux oldld, aout, or coff.
14617 linux*oldld* | linux*aout* | linux*coff*)
14618   dynamic_linker=no
14619   ;;
14620
14621 # This must be Linux ELF.
14622 linux* | k*bsd*-gnu)
14623   version_type=linux
14624   need_lib_prefix=no
14625   need_version=no
14626   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14627   soname_spec='${libname}${release}${shared_ext}$major'
14628   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14629   shlibpath_var=LD_LIBRARY_PATH
14630   shlibpath_overrides_runpath=no
14631   # This implies no fast_install, which is unacceptable.
14632   # Some rework will be needed to allow for fast_install
14633   # before this can be enabled.
14634   hardcode_into_libs=yes
14635   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14636   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14637
14638   # Append ld.so.conf contents to the search path
14639   if test -f /etc/ld.so.conf; then
14640     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[      ]*hwcap[        ]/d;s/[:,       ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
14641     sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
14642   fi
14643
14644   # We used to test for /lib/ld.so.1 and disable shared libraries on
14645   # powerpc, because MkLinux only supported shared libraries with the
14646   # GNU dynamic linker.  Since this was broken with cross compilers,
14647   # most powerpc-linux boxes support dynamic linking these days and
14648   # people can always --disable-shared, the test was removed, and we
14649   # assume the GNU/Linux dynamic linker is in use.
14650   dynamic_linker='GNU/Linux ld.so'
14651   ;;
14652
14653 netbsd*)
14654   version_type=sunos
14655   need_lib_prefix=no
14656   need_version=no
14657   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14658     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14659     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14660     dynamic_linker='NetBSD (a.out) ld.so'
14661   else
14662     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14663     soname_spec='${libname}${release}${shared_ext}$major'
14664     dynamic_linker='NetBSD ld.elf_so'
14665   fi
14666   shlibpath_var=LD_LIBRARY_PATH
14667   shlibpath_overrides_runpath=yes
14668   hardcode_into_libs=yes
14669   ;;
14670
14671 newsos6)
14672   version_type=linux
14673   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14674   shlibpath_var=LD_LIBRARY_PATH
14675   shlibpath_overrides_runpath=yes
14676   ;;
14677
14678 nto-qnx*)
14679   version_type=linux
14680   need_lib_prefix=no
14681   need_version=no
14682   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14683   soname_spec='${libname}${release}${shared_ext}$major'
14684   shlibpath_var=LD_LIBRARY_PATH
14685   shlibpath_overrides_runpath=yes
14686   ;;
14687
14688 openbsd*)
14689   version_type=sunos
14690   sys_lib_dlsearch_path_spec="/usr/lib"
14691   need_lib_prefix=no
14692   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14693   case $host_os in
14694     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14695     *)                         need_version=no  ;;
14696   esac
14697   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14698   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14699   shlibpath_var=LD_LIBRARY_PATH
14700   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14701     case $host_os in
14702       openbsd2.[89] | openbsd2.[89].*)
14703         shlibpath_overrides_runpath=no
14704         ;;
14705       *)
14706         shlibpath_overrides_runpath=yes
14707         ;;
14708       esac
14709   else
14710     shlibpath_overrides_runpath=yes
14711   fi
14712   ;;
14713
14714 os2*)
14715   libname_spec='$name'
14716   shrext_cmds=".dll"
14717   need_lib_prefix=no
14718   library_names_spec='$libname${shared_ext} $libname.a'
14719   dynamic_linker='OS/2 ld.exe'
14720   shlibpath_var=LIBPATH
14721   ;;
14722
14723 osf3* | osf4* | osf5*)
14724   version_type=osf
14725   need_lib_prefix=no
14726   need_version=no
14727   soname_spec='${libname}${release}${shared_ext}$major'
14728   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14729   shlibpath_var=LD_LIBRARY_PATH
14730   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14731   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14732   ;;
14733
14734 rdos*)
14735   dynamic_linker=no
14736   ;;
14737
14738 solaris*)
14739   version_type=linux
14740   need_lib_prefix=no
14741   need_version=no
14742   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14743   soname_spec='${libname}${release}${shared_ext}$major'
14744   shlibpath_var=LD_LIBRARY_PATH
14745   shlibpath_overrides_runpath=yes
14746   hardcode_into_libs=yes
14747   # ldd complains unless libraries are executable
14748   postinstall_cmds='chmod +x $lib'
14749   ;;
14750
14751 sunos4*)
14752   version_type=sunos
14753   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14754   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14755   shlibpath_var=LD_LIBRARY_PATH
14756   shlibpath_overrides_runpath=yes
14757   if test "$with_gnu_ld" = yes; then
14758     need_lib_prefix=no
14759   fi
14760   need_version=yes
14761   ;;
14762
14763 sysv4 | sysv4.3*)
14764   version_type=linux
14765   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14766   soname_spec='${libname}${release}${shared_ext}$major'
14767   shlibpath_var=LD_LIBRARY_PATH
14768   case $host_vendor in
14769     sni)
14770       shlibpath_overrides_runpath=no
14771       need_lib_prefix=no
14772       export_dynamic_flag_spec='${wl}-Blargedynsym'
14773       runpath_var=LD_RUN_PATH
14774       ;;
14775     siemens)
14776       need_lib_prefix=no
14777       ;;
14778     motorola)
14779       need_lib_prefix=no
14780       need_version=no
14781       shlibpath_overrides_runpath=no
14782       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14783       ;;
14784   esac
14785   ;;
14786
14787 sysv4*MP*)
14788   if test -d /usr/nec ;then
14789     version_type=linux
14790     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14791     soname_spec='$libname${shared_ext}.$major'
14792     shlibpath_var=LD_LIBRARY_PATH
14793   fi
14794   ;;
14795
14796 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14797   version_type=freebsd-elf
14798   need_lib_prefix=no
14799   need_version=no
14800   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14801   soname_spec='${libname}${release}${shared_ext}$major'
14802   shlibpath_var=LD_LIBRARY_PATH
14803   hardcode_into_libs=yes
14804   if test "$with_gnu_ld" = yes; then
14805     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14806     shlibpath_overrides_runpath=no
14807   else
14808     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14809     shlibpath_overrides_runpath=yes
14810     case $host_os in
14811       sco3.2v5*)
14812         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14813         ;;
14814     esac
14815   fi
14816   sys_lib_dlsearch_path_spec='/usr/lib'
14817   ;;
14818
14819 uts4*)
14820   version_type=linux
14821   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14822   soname_spec='${libname}${release}${shared_ext}$major'
14823   shlibpath_var=LD_LIBRARY_PATH
14824   ;;
14825
14826 *)
14827   dynamic_linker=no
14828   ;;
14829 esac
14830 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14831 echo "${ECHO_T}$dynamic_linker" >&6; }
14832 test "$dynamic_linker" = no && can_build_shared=no
14833
14834 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14835 if test "$GCC" = yes; then
14836   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14837 fi
14838
14839 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
14840 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
14841 hardcode_action_CXX=
14842 if test -n "$hardcode_libdir_flag_spec_CXX" || \
14843    test -n "$runpath_var_CXX" || \
14844    test "X$hardcode_automatic_CXX" = "Xyes" ; then
14845
14846   # We can hardcode non-existant directories.
14847   if test "$hardcode_direct_CXX" != no &&
14848      # If the only mechanism to avoid hardcoding is shlibpath_var, we
14849      # have to relink, otherwise we might link with an installed library
14850      # when we should be linking with a yet-to-be-installed one
14851      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
14852      test "$hardcode_minus_L_CXX" != no; then
14853     # Linking always hardcodes the temporary library directory.
14854     hardcode_action_CXX=relink
14855   else
14856     # We can link without hardcoding, and we can hardcode nonexisting dirs.
14857     hardcode_action_CXX=immediate
14858   fi
14859 else
14860   # We cannot hardcode anything, or else we can only hardcode existing
14861   # directories.
14862   hardcode_action_CXX=unsupported
14863 fi
14864 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
14865 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
14866
14867 if test "$hardcode_action_CXX" = relink; then
14868   # Fast installation is not supported
14869   enable_fast_install=no
14870 elif test "$shlibpath_overrides_runpath" = yes ||
14871      test "$enable_shared" = no; then
14872   # Fast installation is not necessary
14873   enable_fast_install=needless
14874 fi
14875
14876
14877 # The else clause should only fire when bootstrapping the
14878 # libtool distribution, otherwise you forgot to ship ltmain.sh
14879 # with your package, and you will get complaints that there are
14880 # no rules to generate ltmain.sh.
14881 if test -f "$ltmain"; then
14882   # See if we are running on zsh, and set the options which allow our commands through
14883   # without removal of \ escapes.
14884   if test -n "${ZSH_VERSION+set}" ; then
14885     setopt NO_GLOB_SUBST
14886   fi
14887   # Now quote all the things that may contain metacharacters while being
14888   # careful not to overquote the AC_SUBSTed values.  We take copies of the
14889   # variables and quote the copies for generation of the libtool script.
14890   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
14891     SED SHELL STRIP \
14892     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14893     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14894     deplibs_check_method reload_flag reload_cmds need_locks \
14895     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14896     lt_cv_sys_global_symbol_to_c_name_address \
14897     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14898     old_postinstall_cmds old_postuninstall_cmds \
14899     compiler_CXX \
14900     CC_CXX \
14901     LD_CXX \
14902     lt_prog_compiler_wl_CXX \
14903     lt_prog_compiler_pic_CXX \
14904     lt_prog_compiler_static_CXX \
14905     lt_prog_compiler_no_builtin_flag_CXX \
14906     export_dynamic_flag_spec_CXX \
14907     thread_safe_flag_spec_CXX \
14908     whole_archive_flag_spec_CXX \
14909     enable_shared_with_static_runtimes_CXX \
14910     old_archive_cmds_CXX \
14911     old_archive_from_new_cmds_CXX \
14912     predep_objects_CXX \
14913     postdep_objects_CXX \
14914     predeps_CXX \
14915     postdeps_CXX \
14916     compiler_lib_search_path_CXX \
14917     archive_cmds_CXX \
14918     archive_expsym_cmds_CXX \
14919     postinstall_cmds_CXX \
14920     postuninstall_cmds_CXX \
14921     old_archive_from_expsyms_cmds_CXX \
14922     allow_undefined_flag_CXX \
14923     no_undefined_flag_CXX \
14924     export_symbols_cmds_CXX \
14925     hardcode_libdir_flag_spec_CXX \
14926     hardcode_libdir_flag_spec_ld_CXX \
14927     hardcode_libdir_separator_CXX \
14928     hardcode_automatic_CXX \
14929     module_cmds_CXX \
14930     module_expsym_cmds_CXX \
14931     lt_cv_prog_compiler_c_o_CXX \
14932     fix_srcfile_path_CXX \
14933     exclude_expsyms_CXX \
14934     include_expsyms_CXX; do
14935
14936     case $var in
14937     old_archive_cmds_CXX | \
14938     old_archive_from_new_cmds_CXX | \
14939     archive_cmds_CXX | \
14940     archive_expsym_cmds_CXX | \
14941     module_cmds_CXX | \
14942     module_expsym_cmds_CXX | \
14943     old_archive_from_expsyms_cmds_CXX | \
14944     export_symbols_cmds_CXX | \
14945     extract_expsyms_cmds | reload_cmds | finish_cmds | \
14946     postinstall_cmds | postuninstall_cmds | \
14947     old_postinstall_cmds | old_postuninstall_cmds | \
14948     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14949       # Double-quote double-evaled strings.
14950       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14951       ;;
14952     *)
14953       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14954       ;;
14955     esac
14956   done
14957
14958   case $lt_echo in
14959   *'\$0 --fallback-echo"')
14960     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14961     ;;
14962   esac
14963
14964 cfgfile="$ofile"
14965
14966   cat <<__EOF__ >> "$cfgfile"
14967 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
14968
14969 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14970
14971 # Shell to use when invoking shell scripts.
14972 SHELL=$lt_SHELL
14973
14974 # Whether or not to build shared libraries.
14975 build_libtool_libs=$enable_shared
14976
14977 # Whether or not to build static libraries.
14978 build_old_libs=$enable_static
14979
14980 # Whether or not to add -lc for building shared libraries.
14981 build_libtool_need_lc=$archive_cmds_need_lc_CXX
14982
14983 # Whether or not to disallow shared libs when runtime libs are static
14984 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
14985
14986 # Whether or not to optimize for fast installation.
14987 fast_install=$enable_fast_install
14988
14989 # The host system.
14990 host_alias=$host_alias
14991 host=$host
14992 host_os=$host_os
14993
14994 # The build system.
14995 build_alias=$build_alias
14996 build=$build
14997 build_os=$build_os
14998
14999 # An echo program that does not interpret backslashes.
15000 echo=$lt_echo
15001
15002 # The archiver.
15003 AR=$lt_AR
15004 AR_FLAGS=$lt_AR_FLAGS
15005
15006 # A C compiler.
15007 LTCC=$lt_LTCC
15008
15009 # LTCC compiler flags.
15010 LTCFLAGS=$lt_LTCFLAGS
15011
15012 # A language-specific compiler.
15013 CC=$lt_compiler_CXX
15014
15015 # Is the compiler the GNU C compiler?
15016 with_gcc=$GCC_CXX
15017
15018 # An ERE matcher.
15019 EGREP=$lt_EGREP
15020
15021 # The linker used to build libraries.
15022 LD=$lt_LD_CXX
15023
15024 # Whether we need hard or soft links.
15025 LN_S=$lt_LN_S
15026
15027 # A BSD-compatible nm program.
15028 NM=$lt_NM
15029
15030 # A symbol stripping program
15031 STRIP=$lt_STRIP
15032
15033 # Used to examine libraries when file_magic_cmd begins "file"
15034 MAGIC_CMD=$MAGIC_CMD
15035
15036 # Used on cygwin: DLL creation program.
15037 DLLTOOL="$DLLTOOL"
15038
15039 # Used on cygwin: object dumper.
15040 OBJDUMP="$OBJDUMP"
15041
15042 # Used on cygwin: assembler.
15043 AS="$AS"
15044
15045 # The name of the directory that contains temporary libtool files.
15046 objdir=$objdir
15047
15048 # How to create reloadable object files.
15049 reload_flag=$lt_reload_flag
15050 reload_cmds=$lt_reload_cmds
15051
15052 # How to pass a linker flag through the compiler.
15053 wl=$lt_lt_prog_compiler_wl_CXX
15054
15055 # Object file suffix (normally "o").
15056 objext="$ac_objext"
15057
15058 # Old archive suffix (normally "a").
15059 libext="$libext"
15060
15061 # Shared library suffix (normally ".so").
15062 shrext_cmds='$shrext_cmds'
15063
15064 # Executable file suffix (normally "").
15065 exeext="$exeext"
15066
15067 # Additional compiler flags for building library objects.
15068 pic_flag=$lt_lt_prog_compiler_pic_CXX
15069 pic_mode=$pic_mode
15070
15071 # What is the maximum length of a command?
15072 max_cmd_len=$lt_cv_sys_max_cmd_len
15073
15074 # Does compiler simultaneously support -c and -o options?
15075 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
15076
15077 # Must we lock files when doing compilation?
15078 need_locks=$lt_need_locks
15079
15080 # Do we need the lib prefix for modules?
15081 need_lib_prefix=$need_lib_prefix
15082
15083 # Do we need a version for libraries?
15084 need_version=$need_version
15085
15086 # Whether dlopen is supported.
15087 dlopen_support=$enable_dlopen
15088
15089 # Whether dlopen of programs is supported.
15090 dlopen_self=$enable_dlopen_self
15091
15092 # Whether dlopen of statically linked programs is supported.
15093 dlopen_self_static=$enable_dlopen_self_static
15094
15095 # Compiler flag to prevent dynamic linking.
15096 link_static_flag=$lt_lt_prog_compiler_static_CXX
15097
15098 # Compiler flag to turn off builtin functions.
15099 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
15100
15101 # Compiler flag to allow reflexive dlopens.
15102 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
15103
15104 # Compiler flag to generate shared objects directly from archives.
15105 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
15106
15107 # Compiler flag to generate thread-safe objects.
15108 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
15109
15110 # Library versioning type.
15111 version_type=$version_type
15112
15113 # Format of library name prefix.
15114 libname_spec=$lt_libname_spec
15115
15116 # List of archive names.  First name is the real one, the rest are links.
15117 # The last name is the one that the linker finds with -lNAME.
15118 library_names_spec=$lt_library_names_spec
15119
15120 # The coded name of the library, if different from the real name.
15121 soname_spec=$lt_soname_spec
15122
15123 # Commands used to build and install an old-style archive.
15124 RANLIB=$lt_RANLIB
15125 old_archive_cmds=$lt_old_archive_cmds_CXX
15126 old_postinstall_cmds=$lt_old_postinstall_cmds
15127 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15128
15129 # Create an old-style archive from a shared archive.
15130 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
15131
15132 # Create a temporary old-style archive to link instead of a shared archive.
15133 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
15134
15135 # Commands used to build and install a shared archive.
15136 archive_cmds=$lt_archive_cmds_CXX
15137 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
15138 postinstall_cmds=$lt_postinstall_cmds
15139 postuninstall_cmds=$lt_postuninstall_cmds
15140
15141 # Commands used to build a loadable module (assumed same as above if empty)
15142 module_cmds=$lt_module_cmds_CXX
15143 module_expsym_cmds=$lt_module_expsym_cmds_CXX
15144
15145 # Commands to strip libraries.
15146 old_striplib=$lt_old_striplib
15147 striplib=$lt_striplib
15148
15149 # Dependencies to place before the objects being linked to create a
15150 # shared library.
15151 predep_objects=$lt_predep_objects_CXX
15152
15153 # Dependencies to place after the objects being linked to create a
15154 # shared library.
15155 postdep_objects=$lt_postdep_objects_CXX
15156
15157 # Dependencies to place before the objects being linked to create a
15158 # shared library.
15159 predeps=$lt_predeps_CXX
15160
15161 # Dependencies to place after the objects being linked to create a
15162 # shared library.
15163 postdeps=$lt_postdeps_CXX
15164
15165 # The library search path used internally by the compiler when linking
15166 # a shared library.
15167 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
15168
15169 # Method to check whether dependent libraries are shared objects.
15170 deplibs_check_method=$lt_deplibs_check_method
15171
15172 # Command to use when deplibs_check_method == file_magic.
15173 file_magic_cmd=$lt_file_magic_cmd
15174
15175 # Flag that allows shared libraries with undefined symbols to be built.
15176 allow_undefined_flag=$lt_allow_undefined_flag_CXX
15177
15178 # Flag that forces no undefined symbols.
15179 no_undefined_flag=$lt_no_undefined_flag_CXX
15180
15181 # Commands used to finish a libtool library installation in a directory.
15182 finish_cmds=$lt_finish_cmds
15183
15184 # Same as above, but a single script fragment to be evaled but not shown.
15185 finish_eval=$lt_finish_eval
15186
15187 # Take the output of nm and produce a listing of raw symbols and C names.
15188 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15189
15190 # Transform the output of nm in a proper C declaration
15191 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15192
15193 # Transform the output of nm in a C name address pair
15194 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15195
15196 # This is the shared library runtime path variable.
15197 runpath_var=$runpath_var
15198
15199 # This is the shared library path variable.
15200 shlibpath_var=$shlibpath_var
15201
15202 # Is shlibpath searched before the hard-coded library search path?
15203 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15204
15205 # How to hardcode a shared library path into an executable.
15206 hardcode_action=$hardcode_action_CXX
15207
15208 # Whether we should hardcode library paths into libraries.
15209 hardcode_into_libs=$hardcode_into_libs
15210
15211 # Flag to hardcode \$libdir into a binary during linking.
15212 # This must work even if \$libdir does not exist.
15213 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
15214
15215 # If ld is used when linking, flag to hardcode \$libdir into
15216 # a binary during linking. This must work even if \$libdir does
15217 # not exist.
15218 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
15219
15220 # Whether we need a single -rpath flag with a separated argument.
15221 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
15222
15223 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15224 # resulting binary.
15225 hardcode_direct=$hardcode_direct_CXX
15226
15227 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15228 # resulting binary.
15229 hardcode_minus_L=$hardcode_minus_L_CXX
15230
15231 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15232 # the resulting binary.
15233 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
15234
15235 # Set to yes if building a shared library automatically hardcodes DIR into the library
15236 # and all subsequent libraries and executables linked against it.
15237 hardcode_automatic=$hardcode_automatic_CXX
15238
15239 # Variables whose values should be saved in libtool wrapper scripts and
15240 # restored at relink time.
15241 variables_saved_for_relink="$variables_saved_for_relink"
15242
15243 # Whether libtool must link a program against all its dependency libraries.
15244 link_all_deplibs=$link_all_deplibs_CXX
15245
15246 # Compile-time system search path for libraries
15247 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15248
15249 # Run-time system search path for libraries
15250 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15251
15252 # Fix the shell variable \$srcfile for the compiler.
15253 fix_srcfile_path=$lt_fix_srcfile_path
15254
15255 # Set to yes if exported symbols are required.
15256 always_export_symbols=$always_export_symbols_CXX
15257
15258 # The commands to list exported symbols.
15259 export_symbols_cmds=$lt_export_symbols_cmds_CXX
15260
15261 # The commands to extract the exported symbol list from a shared archive.
15262 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15263
15264 # Symbols that should not be listed in the preloaded symbols.
15265 exclude_expsyms=$lt_exclude_expsyms_CXX
15266
15267 # Symbols that must always be exported.
15268 include_expsyms=$lt_include_expsyms_CXX
15269
15270 # ### END LIBTOOL TAG CONFIG: $tagname
15271
15272 __EOF__
15273
15274
15275 else
15276   # If there is no Makefile yet, we rely on a make rule to execute
15277   # `config.status --recheck' to rerun these tests and create the
15278   # libtool script then.
15279   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15280   if test -f "$ltmain_in"; then
15281     test -f Makefile && make "$ltmain"
15282   fi
15283 fi
15284
15285
15286 ac_ext=c
15287 ac_cpp='$CPP $CPPFLAGS'
15288 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15289 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15290 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15291
15292 CC=$lt_save_CC
15293 LDCXX=$LD
15294 LD=$lt_save_LD
15295 GCC=$lt_save_GCC
15296 with_gnu_ldcxx=$with_gnu_ld
15297 with_gnu_ld=$lt_save_with_gnu_ld
15298 lt_cv_path_LDCXX=$lt_cv_path_LD
15299 lt_cv_path_LD=$lt_save_path_LD
15300 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15301 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15302
15303         else
15304           tagname=""
15305         fi
15306         ;;
15307
15308       F77)
15309         if test -n "$F77" && test "X$F77" != "Xno"; then
15310
15311 ac_ext=f
15312 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
15313 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15314 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
15315
15316
15317 archive_cmds_need_lc_F77=no
15318 allow_undefined_flag_F77=
15319 always_export_symbols_F77=no
15320 archive_expsym_cmds_F77=
15321 export_dynamic_flag_spec_F77=
15322 hardcode_direct_F77=no
15323 hardcode_libdir_flag_spec_F77=
15324 hardcode_libdir_flag_spec_ld_F77=
15325 hardcode_libdir_separator_F77=
15326 hardcode_minus_L_F77=no
15327 hardcode_automatic_F77=no
15328 module_cmds_F77=
15329 module_expsym_cmds_F77=
15330 link_all_deplibs_F77=unknown
15331 old_archive_cmds_F77=$old_archive_cmds
15332 no_undefined_flag_F77=
15333 whole_archive_flag_spec_F77=
15334 enable_shared_with_static_runtimes_F77=no
15335
15336 # Source file extension for f77 test sources.
15337 ac_ext=f
15338
15339 # Object file extension for compiled f77 test sources.
15340 objext=o
15341 objext_F77=$objext
15342
15343 # Code to be used in simple compile tests
15344 lt_simple_compile_test_code="\
15345       subroutine t
15346       return
15347       end
15348 "
15349
15350 # Code to be used in simple link tests
15351 lt_simple_link_test_code="\
15352       program t
15353       end
15354 "
15355
15356 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15357
15358 # If no C compiler was specified, use CC.
15359 LTCC=${LTCC-"$CC"}
15360
15361 # If no C compiler flags were specified, use CFLAGS.
15362 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15363
15364 # Allow CC to be a program name with arguments.
15365 compiler=$CC
15366
15367
15368 # save warnings/boilerplate of simple test code
15369 ac_outfile=conftest.$ac_objext
15370 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
15371 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15372 _lt_compiler_boilerplate=`cat conftest.err`
15373 $rm conftest*
15374
15375 ac_outfile=conftest.$ac_objext
15376 echo "$lt_simple_link_test_code" >conftest.$ac_ext
15377 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15378 _lt_linker_boilerplate=`cat conftest.err`
15379 $rm conftest*
15380
15381
15382 # Allow CC to be a program name with arguments.
15383 lt_save_CC="$CC"
15384 CC=${F77-"f77"}
15385 compiler=$CC
15386 compiler_F77=$CC
15387 for cc_temp in $compiler""; do
15388   case $cc_temp in
15389     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15390     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15391     \-*) ;;
15392     *) break;;
15393   esac
15394 done
15395 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15396
15397
15398 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
15399 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
15400 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
15401 echo "${ECHO_T}$can_build_shared" >&6; }
15402
15403 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
15404 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
15405 test "$can_build_shared" = "no" && enable_shared=no
15406
15407 # On AIX, shared libraries and static libraries use the same namespace, and
15408 # are all built from PIC.
15409 case $host_os in
15410 aix3*)
15411   test "$enable_shared" = yes && enable_static=no
15412   if test -n "$RANLIB"; then
15413     archive_cmds="$archive_cmds~\$RANLIB \$lib"
15414     postinstall_cmds='$RANLIB $lib'
15415   fi
15416   ;;
15417 aix4* | aix5*)
15418   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
15419     test "$enable_shared" = yes && enable_static=no
15420   fi
15421   ;;
15422 esac
15423 { echo "$as_me:$LINENO: result: $enable_shared" >&5
15424 echo "${ECHO_T}$enable_shared" >&6; }
15425
15426 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
15427 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
15428 # Make sure either enable_shared or enable_static is yes.
15429 test "$enable_shared" = yes || enable_static=yes
15430 { echo "$as_me:$LINENO: result: $enable_static" >&5
15431 echo "${ECHO_T}$enable_static" >&6; }
15432
15433 GCC_F77="$G77"
15434 LD_F77="$LD"
15435
15436 lt_prog_compiler_wl_F77=
15437 lt_prog_compiler_pic_F77=
15438 lt_prog_compiler_static_F77=
15439
15440 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15441 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
15442
15443   if test "$GCC" = yes; then
15444     lt_prog_compiler_wl_F77='-Wl,'
15445     lt_prog_compiler_static_F77='-static'
15446
15447     case $host_os in
15448       aix*)
15449       # All AIX code is PIC.
15450       if test "$host_cpu" = ia64; then
15451         # AIX 5 now supports IA64 processor
15452         lt_prog_compiler_static_F77='-Bstatic'
15453       fi
15454       ;;
15455
15456     amigaos*)
15457       # FIXME: we need at least 68020 code to build shared libraries, but
15458       # adding the `-m68020' flag to GCC prevents building anything better,
15459       # like `-m68040'.
15460       lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
15461       ;;
15462
15463     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15464       # PIC is the default for these OSes.
15465       ;;
15466
15467     mingw* | cygwin* | pw32* | os2*)
15468       # This hack is so that the source file can tell whether it is being
15469       # built for inclusion in a dll (and should export symbols for example).
15470       # Although the cygwin gcc ignores -fPIC, still need this for old-style
15471       # (--disable-auto-import) libraries
15472       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
15473       ;;
15474
15475     darwin* | rhapsody*)
15476       # PIC is the default on this platform
15477       # Common symbols not allowed in MH_DYLIB files
15478       lt_prog_compiler_pic_F77='-fno-common'
15479       ;;
15480
15481     interix[3-9]*)
15482       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15483       # Instead, we relocate shared libraries at runtime.
15484       ;;
15485
15486     msdosdjgpp*)
15487       # Just because we use GCC doesn't mean we suddenly get shared libraries
15488       # on systems that don't support them.
15489       lt_prog_compiler_can_build_shared_F77=no
15490       enable_shared=no
15491       ;;
15492
15493     sysv4*MP*)
15494       if test -d /usr/nec; then
15495         lt_prog_compiler_pic_F77=-Kconform_pic
15496       fi
15497       ;;
15498
15499     hpux*)
15500       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15501       # not for PA HP-UX.
15502       case $host_cpu in
15503       hppa*64*|ia64*)
15504         # +Z the default
15505         ;;
15506       *)
15507         lt_prog_compiler_pic_F77='-fPIC'
15508         ;;
15509       esac
15510       ;;
15511
15512     *)
15513       lt_prog_compiler_pic_F77='-fPIC'
15514       ;;
15515     esac
15516   else
15517     # PORTME Check for flag to pass linker flags through the system compiler.
15518     case $host_os in
15519     aix*)
15520       lt_prog_compiler_wl_F77='-Wl,'
15521       if test "$host_cpu" = ia64; then
15522         # AIX 5 now supports IA64 processor
15523         lt_prog_compiler_static_F77='-Bstatic'
15524       else
15525         lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
15526       fi
15527       ;;
15528       darwin*)
15529         # PIC is the default on this platform
15530         # Common symbols not allowed in MH_DYLIB files
15531        case $cc_basename in
15532          xlc*)
15533          lt_prog_compiler_pic_F77='-qnocommon'
15534          lt_prog_compiler_wl_F77='-Wl,'
15535          ;;
15536        esac
15537        ;;
15538
15539     mingw* | cygwin* | pw32* | os2*)
15540       # This hack is so that the source file can tell whether it is being
15541       # built for inclusion in a dll (and should export symbols for example).
15542       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
15543       ;;
15544
15545     hpux9* | hpux10* | hpux11*)
15546       lt_prog_compiler_wl_F77='-Wl,'
15547       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15548       # not for PA HP-UX.
15549       case $host_cpu in
15550       hppa*64*|ia64*)
15551         # +Z the default
15552         ;;
15553       *)
15554         lt_prog_compiler_pic_F77='+Z'
15555         ;;
15556       esac
15557       # Is there a better lt_prog_compiler_static that works with the bundled CC?
15558       lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
15559       ;;
15560
15561     irix5* | irix6* | nonstopux*)
15562       lt_prog_compiler_wl_F77='-Wl,'
15563       # PIC (with -KPIC) is the default.
15564       lt_prog_compiler_static_F77='-non_shared'
15565       ;;
15566
15567     newsos6)
15568       lt_prog_compiler_pic_F77='-KPIC'
15569       lt_prog_compiler_static_F77='-Bstatic'
15570       ;;
15571
15572     linux* | k*bsd*-gnu)
15573       case $cc_basename in
15574       icc* | ecc*)
15575         lt_prog_compiler_wl_F77='-Wl,'
15576         lt_prog_compiler_pic_F77='-KPIC'
15577         lt_prog_compiler_static_F77='-static'
15578         ;;
15579       pgcc* | pgf77* | pgf90* | pgf95*)
15580         # Portland Group compilers (*not* the Pentium gcc compiler,
15581         # which looks to be a dead project)
15582         lt_prog_compiler_wl_F77='-Wl,'
15583         lt_prog_compiler_pic_F77='-fpic'
15584         lt_prog_compiler_static_F77='-Bstatic'
15585         ;;
15586       ccc*)
15587         lt_prog_compiler_wl_F77='-Wl,'
15588         # All Alpha code is PIC.
15589         lt_prog_compiler_static_F77='-non_shared'
15590         ;;
15591       *)
15592         case `$CC -V 2>&1 | sed 5q` in
15593         *Sun\ C*)
15594           # Sun C 5.9
15595           lt_prog_compiler_pic_F77='-KPIC'
15596           lt_prog_compiler_static_F77='-Bstatic'
15597           lt_prog_compiler_wl_F77='-Wl,'
15598           ;;
15599         *Sun\ F*)
15600           # Sun Fortran 8.3 passes all unrecognized flags to the linker
15601           lt_prog_compiler_pic_F77='-KPIC'
15602           lt_prog_compiler_static_F77='-Bstatic'
15603           lt_prog_compiler_wl_F77=''
15604           ;;
15605         esac
15606         ;;
15607       esac
15608       ;;
15609
15610     osf3* | osf4* | osf5*)
15611       lt_prog_compiler_wl_F77='-Wl,'
15612       # All OSF/1 code is PIC.
15613       lt_prog_compiler_static_F77='-non_shared'
15614       ;;
15615
15616     rdos*)
15617       lt_prog_compiler_static_F77='-non_shared'
15618       ;;
15619
15620     solaris*)
15621       lt_prog_compiler_pic_F77='-KPIC'
15622       lt_prog_compiler_static_F77='-Bstatic'
15623       case $cc_basename in
15624       f77* | f90* | f95*)
15625         lt_prog_compiler_wl_F77='-Qoption ld ';;
15626       *)
15627         lt_prog_compiler_wl_F77='-Wl,';;
15628       esac
15629       ;;
15630
15631     sunos4*)
15632       lt_prog_compiler_wl_F77='-Qoption ld '
15633       lt_prog_compiler_pic_F77='-PIC'
15634       lt_prog_compiler_static_F77='-Bstatic'
15635       ;;
15636
15637     sysv4 | sysv4.2uw2* | sysv4.3*)
15638       lt_prog_compiler_wl_F77='-Wl,'
15639       lt_prog_compiler_pic_F77='-KPIC'
15640       lt_prog_compiler_static_F77='-Bstatic'
15641       ;;
15642
15643     sysv4*MP*)
15644       if test -d /usr/nec ;then
15645         lt_prog_compiler_pic_F77='-Kconform_pic'
15646         lt_prog_compiler_static_F77='-Bstatic'
15647       fi
15648       ;;
15649
15650     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15651       lt_prog_compiler_wl_F77='-Wl,'
15652       lt_prog_compiler_pic_F77='-KPIC'
15653       lt_prog_compiler_static_F77='-Bstatic'
15654       ;;
15655
15656     unicos*)
15657       lt_prog_compiler_wl_F77='-Wl,'
15658       lt_prog_compiler_can_build_shared_F77=no
15659       ;;
15660
15661     uts4*)
15662       lt_prog_compiler_pic_F77='-pic'
15663       lt_prog_compiler_static_F77='-Bstatic'
15664       ;;
15665
15666     *)
15667       lt_prog_compiler_can_build_shared_F77=no
15668       ;;
15669     esac
15670   fi
15671
15672 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
15673 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
15674
15675 #
15676 # Check to make sure the PIC flag actually works.
15677 #
15678 if test -n "$lt_prog_compiler_pic_F77"; then
15679
15680 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
15681 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
15682 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
15683   echo $ECHO_N "(cached) $ECHO_C" >&6
15684 else
15685   lt_prog_compiler_pic_works_F77=no
15686   ac_outfile=conftest.$ac_objext
15687    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15688    lt_compiler_flag="$lt_prog_compiler_pic_F77"
15689    # Insert the option either (1) after the last *FLAGS variable, or
15690    # (2) before a word containing "conftest.", or (3) at the end.
15691    # Note that $ac_compile itself does not contain backslashes and begins
15692    # with a dollar sign (not a hyphen), so the echo should work correctly.
15693    # The option is referenced via a variable to avoid confusing sed.
15694    lt_compile=`echo "$ac_compile" | $SED \
15695    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15696    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15697    -e 's:$: $lt_compiler_flag:'`
15698    (eval echo "\"\$as_me:15698: $lt_compile\"" >&5)
15699    (eval "$lt_compile" 2>conftest.err)
15700    ac_status=$?
15701    cat conftest.err >&5
15702    echo "$as_me:15702: \$? = $ac_status" >&5
15703    if (exit $ac_status) && test -s "$ac_outfile"; then
15704      # The compiler can only warn and ignore the option if not recognized
15705      # So say no if there are warnings other than the usual output.
15706      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15707      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15708      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15709        lt_prog_compiler_pic_works_F77=yes
15710      fi
15711    fi
15712    $rm conftest*
15713
15714 fi
15715 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
15716 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
15717
15718 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
15719     case $lt_prog_compiler_pic_F77 in
15720      "" | " "*) ;;
15721      *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
15722      esac
15723 else
15724     lt_prog_compiler_pic_F77=
15725      lt_prog_compiler_can_build_shared_F77=no
15726 fi
15727
15728 fi
15729 case $host_os in
15730   # For platforms which do not support PIC, -DPIC is meaningless:
15731   *djgpp*)
15732     lt_prog_compiler_pic_F77=
15733     ;;
15734   *)
15735     lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
15736     ;;
15737 esac
15738
15739 #
15740 # Check to make sure the static flag actually works.
15741 #
15742 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
15743 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15744 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
15745 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
15746   echo $ECHO_N "(cached) $ECHO_C" >&6
15747 else
15748   lt_prog_compiler_static_works_F77=no
15749    save_LDFLAGS="$LDFLAGS"
15750    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15751    echo "$lt_simple_link_test_code" > conftest.$ac_ext
15752    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15753      # The linker can only warn and ignore the option if not recognized
15754      # So say no if there are warnings
15755      if test -s conftest.err; then
15756        # Append any errors to the config.log.
15757        cat conftest.err 1>&5
15758        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
15759        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15760        if diff conftest.exp conftest.er2 >/dev/null; then
15761          lt_prog_compiler_static_works_F77=yes
15762        fi
15763      else
15764        lt_prog_compiler_static_works_F77=yes
15765      fi
15766    fi
15767    $rm conftest*
15768    LDFLAGS="$save_LDFLAGS"
15769
15770 fi
15771 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
15772 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
15773
15774 if test x"$lt_prog_compiler_static_works_F77" = xyes; then
15775     :
15776 else
15777     lt_prog_compiler_static_F77=
15778 fi
15779
15780
15781 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15782 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
15783 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
15784   echo $ECHO_N "(cached) $ECHO_C" >&6
15785 else
15786   lt_cv_prog_compiler_c_o_F77=no
15787    $rm -r conftest 2>/dev/null
15788    mkdir conftest
15789    cd conftest
15790    mkdir out
15791    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15792
15793    lt_compiler_flag="-o out/conftest2.$ac_objext"
15794    # Insert the option either (1) after the last *FLAGS variable, or
15795    # (2) before a word containing "conftest.", or (3) at the end.
15796    # Note that $ac_compile itself does not contain backslashes and begins
15797    # with a dollar sign (not a hyphen), so the echo should work correctly.
15798    lt_compile=`echo "$ac_compile" | $SED \
15799    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15800    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15801    -e 's:$: $lt_compiler_flag:'`
15802    (eval echo "\"\$as_me:15802: $lt_compile\"" >&5)
15803    (eval "$lt_compile" 2>out/conftest.err)
15804    ac_status=$?
15805    cat out/conftest.err >&5
15806    echo "$as_me:15806: \$? = $ac_status" >&5
15807    if (exit $ac_status) && test -s out/conftest2.$ac_objext
15808    then
15809      # The compiler can only warn and ignore the option if not recognized
15810      # So say no if there are warnings
15811      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
15812      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15813      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15814        lt_cv_prog_compiler_c_o_F77=yes
15815      fi
15816    fi
15817    chmod u+w . 2>&5
15818    $rm conftest*
15819    # SGI C++ compiler will create directory out/ii_files/ for
15820    # template instantiation
15821    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15822    $rm out/* && rmdir out
15823    cd ..
15824    rmdir conftest
15825    $rm conftest*
15826
15827 fi
15828 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
15829 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
15830
15831
15832 hard_links="nottested"
15833 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
15834   # do not overwrite the value of need_locks provided by the user
15835   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15836 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
15837   hard_links=yes
15838   $rm conftest*
15839   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15840   touch conftest.a
15841   ln conftest.a conftest.b 2>&5 || hard_links=no
15842   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15843   { echo "$as_me:$LINENO: result: $hard_links" >&5
15844 echo "${ECHO_T}$hard_links" >&6; }
15845   if test "$hard_links" = no; then
15846     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15847 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15848     need_locks=warn
15849   fi
15850 else
15851   need_locks=no
15852 fi
15853
15854 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15855 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
15856
15857   runpath_var=
15858   allow_undefined_flag_F77=
15859   enable_shared_with_static_runtimes_F77=no
15860   archive_cmds_F77=
15861   archive_expsym_cmds_F77=
15862   old_archive_From_new_cmds_F77=
15863   old_archive_from_expsyms_cmds_F77=
15864   export_dynamic_flag_spec_F77=
15865   whole_archive_flag_spec_F77=
15866   thread_safe_flag_spec_F77=
15867   hardcode_libdir_flag_spec_F77=
15868   hardcode_libdir_flag_spec_ld_F77=
15869   hardcode_libdir_separator_F77=
15870   hardcode_direct_F77=no
15871   hardcode_minus_L_F77=no
15872   hardcode_shlibpath_var_F77=unsupported
15873   link_all_deplibs_F77=unknown
15874   hardcode_automatic_F77=no
15875   module_cmds_F77=
15876   module_expsym_cmds_F77=
15877   always_export_symbols_F77=no
15878   export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15879   # include_expsyms should be a list of space-separated symbols to be *always*
15880   # included in the symbol list
15881   include_expsyms_F77=
15882   # exclude_expsyms can be an extended regexp of symbols to exclude
15883   # it will be wrapped by ` (' and `)$', so one must not match beginning or
15884   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15885   # as well as any symbol that contains `d'.
15886   exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
15887   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15888   # platforms (ab)use it in PIC code, but their linkers get confused if
15889   # the symbol is explicitly referenced.  Since portable code cannot
15890   # rely on this symbol name, it's probably fine to never include it in
15891   # preloaded symbol tables.
15892   extract_expsyms_cmds=
15893   # Just being paranoid about ensuring that cc_basename is set.
15894   for cc_temp in $compiler""; do
15895   case $cc_temp in
15896     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15897     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15898     \-*) ;;
15899     *) break;;
15900   esac
15901 done
15902 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15903
15904   case $host_os in
15905   cygwin* | mingw* | pw32*)
15906     # FIXME: the MSVC++ port hasn't been tested in a loooong time
15907     # When not using gcc, we currently assume that we are using
15908     # Microsoft Visual C++.
15909     if test "$GCC" != yes; then
15910       with_gnu_ld=no
15911     fi
15912     ;;
15913   interix*)
15914     # we just hope/assume this is gcc and not c89 (= MSVC++)
15915     with_gnu_ld=yes
15916     ;;
15917   openbsd*)
15918     with_gnu_ld=no
15919     ;;
15920   esac
15921
15922   ld_shlibs_F77=yes
15923   if test "$with_gnu_ld" = yes; then
15924     # If archive_cmds runs LD, not CC, wlarc should be empty
15925     wlarc='${wl}'
15926
15927     # Set some defaults for GNU ld with shared library support. These
15928     # are reset later if shared libraries are not supported. Putting them
15929     # here allows them to be overridden if necessary.
15930     runpath_var=LD_RUN_PATH
15931     hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
15932     export_dynamic_flag_spec_F77='${wl}--export-dynamic'
15933     # ancient GNU ld didn't support --whole-archive et. al.
15934     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15935         whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15936       else
15937         whole_archive_flag_spec_F77=
15938     fi
15939     supports_anon_versioning=no
15940     case `$LD -v 2>/dev/null` in
15941       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15942       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15943       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15944       *\ 2.11.*) ;; # other 2.11 versions
15945       *) supports_anon_versioning=yes ;;
15946     esac
15947
15948     # See if GNU ld supports shared libraries.
15949     case $host_os in
15950     aix3* | aix4* | aix5*)
15951       # On AIX/PPC, the GNU linker is very broken
15952       if test "$host_cpu" != ia64; then
15953         ld_shlibs_F77=no
15954         cat <<EOF 1>&2
15955
15956 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
15957 *** to be unable to reliably create shared libraries on AIX.
15958 *** Therefore, libtool is disabling shared libraries support.  If you
15959 *** really care for shared libraries, you may want to modify your PATH
15960 *** so that a non-GNU linker is found, and then restart.
15961
15962 EOF
15963       fi
15964       ;;
15965
15966     amigaos*)
15967       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)'
15968       hardcode_libdir_flag_spec_F77='-L$libdir'
15969       hardcode_minus_L_F77=yes
15970
15971       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15972       # that the semantics of dynamic libraries on AmigaOS, at least up
15973       # to version 4, is to share data among multiple programs linked
15974       # with the same dynamic library.  Since this doesn't match the
15975       # behavior of shared libraries on other platforms, we can't use
15976       # them.
15977       ld_shlibs_F77=no
15978       ;;
15979
15980     beos*)
15981       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15982         allow_undefined_flag_F77=unsupported
15983         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15984         # support --undefined.  This deserves some investigation.  FIXME
15985         archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15986       else
15987         ld_shlibs_F77=no
15988       fi
15989       ;;
15990
15991     cygwin* | mingw* | pw32*)
15992       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
15993       # as there is no search path for DLLs.
15994       hardcode_libdir_flag_spec_F77='-L$libdir'
15995       allow_undefined_flag_F77=unsupported
15996       always_export_symbols_F77=no
15997       enable_shared_with_static_runtimes_F77=yes
15998       export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
15999
16000       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16001         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16002         # If the export-symbols file already is a .def file (1st line
16003         # is EXPORTS), use it as is; otherwise, prepend...
16004         archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16005           cp $export_symbols $output_objdir/$soname.def;
16006         else
16007           echo EXPORTS > $output_objdir/$soname.def;
16008           cat $export_symbols >> $output_objdir/$soname.def;
16009         fi~
16010         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16011       else
16012         ld_shlibs_F77=no
16013       fi
16014       ;;
16015
16016     interix[3-9]*)
16017       hardcode_direct_F77=no
16018       hardcode_shlibpath_var_F77=no
16019       hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
16020       export_dynamic_flag_spec_F77='${wl}-E'
16021       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16022       # Instead, shared libraries are loaded at an image base (0x10000000 by
16023       # default) and relocated if they conflict, which is a slow very memory
16024       # consuming and fragmenting process.  To avoid this, we pick a random,
16025       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16026       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
16027       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'
16028       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'
16029       ;;
16030
16031     gnu* | linux* | k*bsd*-gnu)
16032       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16033         tmp_addflag=
16034         case $cc_basename,$host_cpu in
16035         pgcc*)                          # Portland Group C compiler
16036           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'
16037           tmp_addflag=' $pic_flag'
16038           ;;
16039         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
16040           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'
16041           tmp_addflag=' $pic_flag -Mnomain' ;;
16042         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
16043           tmp_addflag=' -i_dynamic' ;;
16044         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
16045           tmp_addflag=' -i_dynamic -nofor_main' ;;
16046         ifc* | ifort*)                  # Intel Fortran compiler
16047           tmp_addflag=' -nofor_main' ;;
16048         esac
16049         case `$CC -V 2>&1 | sed 5q` in
16050         *Sun\ C*)                       # Sun C 5.9
16051           whole_archive_flag_spec_F77='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
16052           tmp_sharedflag='-G' ;;
16053         *Sun\ F*)                       # Sun Fortran 8.3
16054           tmp_sharedflag='-G' ;;
16055         *)
16056           tmp_sharedflag='-shared' ;;
16057         esac
16058         archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16059
16060         if test $supports_anon_versioning = yes; then
16061           archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
16062   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16063   $echo "local: *; };" >> $output_objdir/$libname.ver~
16064           $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16065         fi
16066       else
16067         ld_shlibs_F77=no
16068       fi
16069       ;;
16070
16071     netbsd*)
16072       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16073         archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16074         wlarc=
16075       else
16076         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16077         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16078       fi
16079       ;;
16080
16081     solaris*)
16082       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16083         ld_shlibs_F77=no
16084         cat <<EOF 1>&2
16085
16086 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16087 *** create shared libraries on Solaris systems.  Therefore, libtool
16088 *** is disabling shared libraries support.  We urge you to upgrade GNU
16089 *** binutils to release 2.9.1 or newer.  Another option is to modify
16090 *** your PATH or compiler configuration so that the native linker is
16091 *** used, and then restart.
16092
16093 EOF
16094       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16095         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16096         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16097       else
16098         ld_shlibs_F77=no
16099       fi
16100       ;;
16101
16102     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
16103       case `$LD -v 2>&1` in
16104         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
16105         ld_shlibs_F77=no
16106         cat <<_LT_EOF 1>&2
16107
16108 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
16109 *** reliably create shared libraries on SCO systems.  Therefore, libtool
16110 *** is disabling shared libraries support.  We urge you to upgrade GNU
16111 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
16112 *** your PATH or compiler configuration so that the native linker is
16113 *** used, and then restart.
16114
16115 _LT_EOF
16116         ;;
16117         *)
16118           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16119             hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
16120             archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
16121             archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
16122           else
16123             ld_shlibs_F77=no
16124           fi
16125         ;;
16126       esac
16127       ;;
16128
16129     sunos4*)
16130       archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16131       wlarc=
16132       hardcode_direct_F77=yes
16133       hardcode_shlibpath_var_F77=no
16134       ;;
16135
16136     *)
16137       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16138         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16139         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16140       else
16141         ld_shlibs_F77=no
16142       fi
16143       ;;
16144     esac
16145
16146     if test "$ld_shlibs_F77" = no; then
16147       runpath_var=
16148       hardcode_libdir_flag_spec_F77=
16149       export_dynamic_flag_spec_F77=
16150       whole_archive_flag_spec_F77=
16151     fi
16152   else
16153     # PORTME fill in a description of your system's linker (not GNU ld)
16154     case $host_os in
16155     aix3*)
16156       allow_undefined_flag_F77=unsupported
16157       always_export_symbols_F77=yes
16158       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'
16159       # Note: this linker hardcodes the directories in LIBPATH if there
16160       # are no directories specified by -L.
16161       hardcode_minus_L_F77=yes
16162       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
16163         # Neither direct hardcoding nor static linking is supported with a
16164         # broken collect2.
16165         hardcode_direct_F77=unsupported
16166       fi
16167       ;;
16168
16169     aix4* | aix5*)
16170       if test "$host_cpu" = ia64; then
16171         # On IA64, the linker does run time linking by default, so we don't
16172         # have to do anything special.
16173         aix_use_runtimelinking=no
16174         exp_sym_flag='-Bexport'
16175         no_entry_flag=""
16176       else
16177         # If we're using GNU nm, then we don't want the "-C" option.
16178         # -C means demangle to AIX nm, but means don't demangle with GNU nm
16179         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16180           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'
16181         else
16182           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'
16183         fi
16184         aix_use_runtimelinking=no
16185
16186         # Test if we are trying to use run time linking or normal
16187         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16188         # need to do runtime linking.
16189         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
16190           for ld_flag in $LDFLAGS; do
16191           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16192             aix_use_runtimelinking=yes
16193             break
16194           fi
16195           done
16196           ;;
16197         esac
16198
16199         exp_sym_flag='-bexport'
16200         no_entry_flag='-bnoentry'
16201       fi
16202
16203       # When large executables or shared objects are built, AIX ld can
16204       # have problems creating the table of contents.  If linking a library
16205       # or program results in "error TOC overflow" add -mminimal-toc to
16206       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
16207       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16208
16209       archive_cmds_F77=''
16210       hardcode_direct_F77=yes
16211       hardcode_libdir_separator_F77=':'
16212       link_all_deplibs_F77=yes
16213
16214       if test "$GCC" = yes; then
16215         case $host_os in aix4.[012]|aix4.[012].*)
16216         # We only want to do this on AIX 4.2 and lower, the check
16217         # below for broken collect2 doesn't work under 4.3+
16218           collect2name=`${CC} -print-prog-name=collect2`
16219           if test -f "$collect2name" && \
16220            strings "$collect2name" | grep resolve_lib_name >/dev/null
16221           then
16222           # We have reworked collect2
16223           :
16224           else
16225           # We have old collect2
16226           hardcode_direct_F77=unsupported
16227           # It fails to find uninstalled libraries when the uninstalled
16228           # path is not listed in the libpath.  Setting hardcode_minus_L
16229           # to unsupported forces relinking
16230           hardcode_minus_L_F77=yes
16231           hardcode_libdir_flag_spec_F77='-L$libdir'
16232           hardcode_libdir_separator_F77=
16233           fi
16234           ;;
16235         esac
16236         shared_flag='-shared'
16237         if test "$aix_use_runtimelinking" = yes; then
16238           shared_flag="$shared_flag "'${wl}-G'
16239         fi
16240       else
16241         # not using gcc
16242         if test "$host_cpu" = ia64; then
16243         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16244         # chokes on -Wl,-G. The following line is correct:
16245           shared_flag='-G'
16246         else
16247           if test "$aix_use_runtimelinking" = yes; then
16248             shared_flag='${wl}-G'
16249           else
16250             shared_flag='${wl}-bM:SRE'
16251           fi
16252         fi
16253       fi
16254
16255       # It seems that -bexpall does not export symbols beginning with
16256       # underscore (_), so it is better to generate a list of symbols to export.
16257       always_export_symbols_F77=yes
16258       if test "$aix_use_runtimelinking" = yes; then
16259         # Warning - without using the other runtime loading flags (-brtl),
16260         # -berok will link without error, but may produce a broken library.
16261         allow_undefined_flag_F77='-berok'
16262        # Determine the default libpath from the value encoded in an empty executable.
16263        cat >conftest.$ac_ext <<_ACEOF
16264       program main
16265
16266       end
16267 _ACEOF
16268 rm -f conftest.$ac_objext conftest$ac_exeext
16269 if { (ac_try="$ac_link"
16270 case "(($ac_try" in
16271   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16272   *) ac_try_echo=$ac_try;;
16273 esac
16274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16275   (eval "$ac_link") 2>conftest.er1
16276   ac_status=$?
16277   grep -v '^ *+' conftest.er1 >conftest.err
16278   rm -f conftest.er1
16279   cat conftest.err >&5
16280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16281   (exit $ac_status); } && {
16282          test -z "$ac_f77_werror_flag" ||
16283          test ! -s conftest.err
16284        } && test -s conftest$ac_exeext &&
16285        $as_test_x conftest$ac_exeext; then
16286
16287 lt_aix_libpath_sed='
16288     /Import File Strings/,/^$/ {
16289         /^0/ {
16290             s/^0  *\(.*\)$/\1/
16291             p
16292         }
16293     }'
16294 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16295 # Check for a 64-bit object if we didn't find anything.
16296 if test -z "$aix_libpath"; then
16297   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16298 fi
16299 else
16300   echo "$as_me: failed program was:" >&5
16301 sed 's/^/| /' conftest.$ac_ext >&5
16302
16303
16304 fi
16305
16306 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16307       conftest$ac_exeext conftest.$ac_ext
16308 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16309
16310        hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
16311         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"
16312        else
16313         if test "$host_cpu" = ia64; then
16314           hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
16315           allow_undefined_flag_F77="-z nodefs"
16316           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"
16317         else
16318          # Determine the default libpath from the value encoded in an empty executable.
16319          cat >conftest.$ac_ext <<_ACEOF
16320       program main
16321
16322       end
16323 _ACEOF
16324 rm -f conftest.$ac_objext conftest$ac_exeext
16325 if { (ac_try="$ac_link"
16326 case "(($ac_try" in
16327   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16328   *) ac_try_echo=$ac_try;;
16329 esac
16330 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16331   (eval "$ac_link") 2>conftest.er1
16332   ac_status=$?
16333   grep -v '^ *+' conftest.er1 >conftest.err
16334   rm -f conftest.er1
16335   cat conftest.err >&5
16336   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16337   (exit $ac_status); } && {
16338          test -z "$ac_f77_werror_flag" ||
16339          test ! -s conftest.err
16340        } && test -s conftest$ac_exeext &&
16341        $as_test_x conftest$ac_exeext; then
16342
16343 lt_aix_libpath_sed='
16344     /Import File Strings/,/^$/ {
16345         /^0/ {
16346             s/^0  *\(.*\)$/\1/
16347             p
16348         }
16349     }'
16350 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16351 # Check for a 64-bit object if we didn't find anything.
16352 if test -z "$aix_libpath"; then
16353   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16354 fi
16355 else
16356   echo "$as_me: failed program was:" >&5
16357 sed 's/^/| /' conftest.$ac_ext >&5
16358
16359
16360 fi
16361
16362 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16363       conftest$ac_exeext conftest.$ac_ext
16364 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16365
16366          hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
16367           # Warning - without using the other run time loading flags,
16368           # -berok will link without error, but may produce a broken library.
16369           no_undefined_flag_F77=' ${wl}-bernotok'
16370           allow_undefined_flag_F77=' ${wl}-berok'
16371           # Exported symbols can be pulled into shared objects from archives
16372           whole_archive_flag_spec_F77='$convenience'
16373           archive_cmds_need_lc_F77=yes
16374           # This is similar to how AIX traditionally builds its shared libraries.
16375           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'
16376         fi
16377       fi
16378       ;;
16379
16380     amigaos*)
16381       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)'
16382       hardcode_libdir_flag_spec_F77='-L$libdir'
16383       hardcode_minus_L_F77=yes
16384       # see comment about different semantics on the GNU ld section
16385       ld_shlibs_F77=no
16386       ;;
16387
16388     bsdi[45]*)
16389       export_dynamic_flag_spec_F77=-rdynamic
16390       ;;
16391
16392     cygwin* | mingw* | pw32*)
16393       # When not using gcc, we currently assume that we are using
16394       # Microsoft Visual C++.
16395       # hardcode_libdir_flag_spec is actually meaningless, as there is
16396       # no search path for DLLs.
16397       hardcode_libdir_flag_spec_F77=' '
16398       allow_undefined_flag_F77=unsupported
16399       # Tell ltmain to make .lib files, not .a files.
16400       libext=lib
16401       # Tell ltmain to make .dll files, not .so files.
16402       shrext_cmds=".dll"
16403       # FIXME: Setting linknames here is a bad hack.
16404       archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
16405       # The linker will automatically build a .lib file if we build a DLL.
16406       old_archive_From_new_cmds_F77='true'
16407       # FIXME: Should let the user specify the lib program.
16408       old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs'
16409       fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
16410       enable_shared_with_static_runtimes_F77=yes
16411       ;;
16412
16413     darwin* | rhapsody*)
16414       case $host_os in
16415         rhapsody* | darwin1.[012])
16416          allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
16417          ;;
16418        *) # Darwin 1.3 on
16419          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16420            allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16421          else
16422            case ${MACOSX_DEPLOYMENT_TARGET} in
16423              10.[012])
16424                allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16425                ;;
16426              10.*)
16427                allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
16428                ;;
16429            esac
16430          fi
16431          ;;
16432       esac
16433       archive_cmds_need_lc_F77=no
16434       hardcode_direct_F77=no
16435       hardcode_automatic_F77=yes
16436       hardcode_shlibpath_var_F77=unsupported
16437       whole_archive_flag_spec_F77=''
16438       link_all_deplibs_F77=yes
16439     if test "$GCC" = yes ; then
16440         output_verbose_link_cmd='echo'
16441         archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16442       module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16443       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16444       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}'
16445       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}'
16446     else
16447       case $cc_basename in
16448         xlc*)
16449          output_verbose_link_cmd='echo'
16450          archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
16451          module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16452           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16453          archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16454           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}'
16455           ;;
16456        *)
16457          ld_shlibs_F77=no
16458           ;;
16459       esac
16460     fi
16461       ;;
16462
16463     dgux*)
16464       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16465       hardcode_libdir_flag_spec_F77='-L$libdir'
16466       hardcode_shlibpath_var_F77=no
16467       ;;
16468
16469     freebsd1*)
16470       ld_shlibs_F77=no
16471       ;;
16472
16473     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16474     # support.  Future versions do this automatically, but an explicit c++rt0.o
16475     # does not break anything, and helps significantly (at the cost of a little
16476     # extra space).
16477     freebsd2.2*)
16478       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16479       hardcode_libdir_flag_spec_F77='-R$libdir'
16480       hardcode_direct_F77=yes
16481       hardcode_shlibpath_var_F77=no
16482       ;;
16483
16484     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16485     freebsd2*)
16486       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16487       hardcode_direct_F77=yes
16488       hardcode_minus_L_F77=yes
16489       hardcode_shlibpath_var_F77=no
16490       ;;
16491
16492     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16493     freebsd* | dragonfly*)
16494       archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16495       hardcode_libdir_flag_spec_F77='-R$libdir'
16496       hardcode_direct_F77=yes
16497       hardcode_shlibpath_var_F77=no
16498       ;;
16499
16500     hpux9*)
16501       if test "$GCC" = yes; then
16502         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'
16503       else
16504         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'
16505       fi
16506       hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
16507       hardcode_libdir_separator_F77=:
16508       hardcode_direct_F77=yes
16509
16510       # hardcode_minus_L: Not really in the search PATH,
16511       # but as the default location of the library.
16512       hardcode_minus_L_F77=yes
16513       export_dynamic_flag_spec_F77='${wl}-E'
16514       ;;
16515
16516     hpux10*)
16517       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16518         archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16519       else
16520         archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16521       fi
16522       if test "$with_gnu_ld" = no; then
16523         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
16524         hardcode_libdir_separator_F77=:
16525
16526         hardcode_direct_F77=yes
16527         export_dynamic_flag_spec_F77='${wl}-E'
16528
16529         # hardcode_minus_L: Not really in the search PATH,
16530         # but as the default location of the library.
16531         hardcode_minus_L_F77=yes
16532       fi
16533       ;;
16534
16535     hpux11*)
16536       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16537         case $host_cpu in
16538         hppa*64*)
16539           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16540           ;;
16541         ia64*)
16542           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16543           ;;
16544         *)
16545           archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16546           ;;
16547         esac
16548       else
16549         case $host_cpu in
16550         hppa*64*)
16551           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16552           ;;
16553         ia64*)
16554           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16555           ;;
16556         *)
16557           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16558           ;;
16559         esac
16560       fi
16561       if test "$with_gnu_ld" = no; then
16562         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
16563         hardcode_libdir_separator_F77=:
16564
16565         case $host_cpu in
16566         hppa*64*|ia64*)
16567           hardcode_libdir_flag_spec_ld_F77='+b $libdir'
16568           hardcode_direct_F77=no
16569           hardcode_shlibpath_var_F77=no
16570           ;;
16571         *)
16572           hardcode_direct_F77=yes
16573           export_dynamic_flag_spec_F77='${wl}-E'
16574
16575           # hardcode_minus_L: Not really in the search PATH,
16576           # but as the default location of the library.
16577           hardcode_minus_L_F77=yes
16578           ;;
16579         esac
16580       fi
16581       ;;
16582
16583     irix5* | irix6* | nonstopux*)
16584       if test "$GCC" = yes; then
16585         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'
16586       else
16587         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'
16588         hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
16589       fi
16590       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16591       hardcode_libdir_separator_F77=:
16592       link_all_deplibs_F77=yes
16593       ;;
16594
16595     netbsd*)
16596       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16597         archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
16598       else
16599         archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
16600       fi
16601       hardcode_libdir_flag_spec_F77='-R$libdir'
16602       hardcode_direct_F77=yes
16603       hardcode_shlibpath_var_F77=no
16604       ;;
16605
16606     newsos6)
16607       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16608       hardcode_direct_F77=yes
16609       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16610       hardcode_libdir_separator_F77=:
16611       hardcode_shlibpath_var_F77=no
16612       ;;
16613
16614     openbsd*)
16615       if test -f /usr/libexec/ld.so; then
16616         hardcode_direct_F77=yes
16617         hardcode_shlibpath_var_F77=no
16618         if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16619           archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16620           archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16621           hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
16622           export_dynamic_flag_spec_F77='${wl}-E'
16623         else
16624           case $host_os in
16625            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16626              archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16627              hardcode_libdir_flag_spec_F77='-R$libdir'
16628              ;;
16629            *)
16630              archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16631              hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
16632              ;;
16633           esac
16634         fi
16635       else
16636         ld_shlibs_F77=no
16637       fi
16638       ;;
16639
16640     os2*)
16641       hardcode_libdir_flag_spec_F77='-L$libdir'
16642       hardcode_minus_L_F77=yes
16643       allow_undefined_flag_F77=unsupported
16644       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'
16645       old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16646       ;;
16647
16648     osf3*)
16649       if test "$GCC" = yes; then
16650         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
16651         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'
16652       else
16653         allow_undefined_flag_F77=' -expect_unresolved \*'
16654         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'
16655       fi
16656       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16657       hardcode_libdir_separator_F77=:
16658       ;;
16659
16660     osf4* | osf5*)      # as osf3* with the addition of -msym flag
16661       if test "$GCC" = yes; then
16662         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
16663         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'
16664         hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16665       else
16666         allow_undefined_flag_F77=' -expect_unresolved \*'
16667         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'
16668         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~
16669         $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'
16670
16671         # Both c and cxx compiler support -rpath directly
16672         hardcode_libdir_flag_spec_F77='-rpath $libdir'
16673       fi
16674       hardcode_libdir_separator_F77=:
16675       ;;
16676
16677     solaris*)
16678       no_undefined_flag_F77=' -z text'
16679       if test "$GCC" = yes; then
16680         wlarc='${wl}'
16681         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16682         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16683           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16684       else
16685         wlarc=''
16686         archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16687         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16688         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16689       fi
16690       hardcode_libdir_flag_spec_F77='-R$libdir'
16691       hardcode_shlibpath_var_F77=no
16692       case $host_os in
16693       solaris2.[0-5] | solaris2.[0-5].*) ;;
16694       *)
16695         # The compiler driver will combine and reorder linker options,
16696         # but understands `-z linker_flag'.  GCC discards it without `$wl',
16697         # but is careful enough not to reorder.
16698         # Supported since Solaris 2.6 (maybe 2.5.1?)
16699         if test "$GCC" = yes; then
16700           whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
16701         else
16702           whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract'
16703         fi
16704         ;;
16705       esac
16706       link_all_deplibs_F77=yes
16707       ;;
16708
16709     sunos4*)
16710       if test "x$host_vendor" = xsequent; then
16711         # Use $CC to link under sequent, because it throws in some extra .o
16712         # files that make .init and .fini sections work.
16713         archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16714       else
16715         archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16716       fi
16717       hardcode_libdir_flag_spec_F77='-L$libdir'
16718       hardcode_direct_F77=yes
16719       hardcode_minus_L_F77=yes
16720       hardcode_shlibpath_var_F77=no
16721       ;;
16722
16723     sysv4)
16724       case $host_vendor in
16725         sni)
16726           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16727           hardcode_direct_F77=yes # is this really true???
16728         ;;
16729         siemens)
16730           ## LD is ld it makes a PLAMLIB
16731           ## CC just makes a GrossModule.
16732           archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16733           reload_cmds_F77='$CC -r -o $output$reload_objs'
16734           hardcode_direct_F77=no
16735         ;;
16736         motorola)
16737           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16738           hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
16739         ;;
16740       esac
16741       runpath_var='LD_RUN_PATH'
16742       hardcode_shlibpath_var_F77=no
16743       ;;
16744
16745     sysv4.3*)
16746       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16747       hardcode_shlibpath_var_F77=no
16748       export_dynamic_flag_spec_F77='-Bexport'
16749       ;;
16750
16751     sysv4*MP*)
16752       if test -d /usr/nec; then
16753         archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16754         hardcode_shlibpath_var_F77=no
16755         runpath_var=LD_RUN_PATH
16756         hardcode_runpath_var=yes
16757         ld_shlibs_F77=yes
16758       fi
16759       ;;
16760
16761     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
16762       no_undefined_flag_F77='${wl}-z,text'
16763       archive_cmds_need_lc_F77=no
16764       hardcode_shlibpath_var_F77=no
16765       runpath_var='LD_RUN_PATH'
16766
16767       if test "$GCC" = yes; then
16768         archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16769         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16770       else
16771         archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16772         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16773       fi
16774       ;;
16775
16776     sysv5* | sco3.2v5* | sco5v6*)
16777       # Note: We can NOT use -z defs as we might desire, because we do not
16778       # link with -lc, and that would cause any symbols used from libc to
16779       # always be unresolved, which means just about no library would
16780       # ever link correctly.  If we're not using GNU ld we use -z text
16781       # though, which does catch some bad symbols but isn't as heavy-handed
16782       # as -z defs.
16783       no_undefined_flag_F77='${wl}-z,text'
16784       allow_undefined_flag_F77='${wl}-z,nodefs'
16785       archive_cmds_need_lc_F77=no
16786       hardcode_shlibpath_var_F77=no
16787       hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
16788       hardcode_libdir_separator_F77=':'
16789       link_all_deplibs_F77=yes
16790       export_dynamic_flag_spec_F77='${wl}-Bexport'
16791       runpath_var='LD_RUN_PATH'
16792
16793       if test "$GCC" = yes; then
16794         archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16795         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16796       else
16797         archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16798         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16799       fi
16800       ;;
16801
16802     uts4*)
16803       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16804       hardcode_libdir_flag_spec_F77='-L$libdir'
16805       hardcode_shlibpath_var_F77=no
16806       ;;
16807
16808     *)
16809       ld_shlibs_F77=no
16810       ;;
16811     esac
16812   fi
16813
16814 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
16815 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
16816 test "$ld_shlibs_F77" = no && can_build_shared=no
16817
16818 #
16819 # Do we need to explicitly link libc?
16820 #
16821 case "x$archive_cmds_need_lc_F77" in
16822 x|xyes)
16823   # Assume -lc should be added
16824   archive_cmds_need_lc_F77=yes
16825
16826   if test "$enable_shared" = yes && test "$GCC" = yes; then
16827     case $archive_cmds_F77 in
16828     *'~'*)
16829       # FIXME: we may have to deal with multi-command sequences.
16830       ;;
16831     '$CC '*)
16832       # Test whether the compiler implicitly links with -lc since on some
16833       # systems, -lgcc has to come before -lc. If gcc already passes -lc
16834       # to ld, don't add -lc before -lgcc.
16835       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16836 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
16837       $rm conftest*
16838       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16839
16840       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16841   (eval $ac_compile) 2>&5
16842   ac_status=$?
16843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16844   (exit $ac_status); } 2>conftest.err; then
16845         soname=conftest
16846         lib=conftest
16847         libobjs=conftest.$ac_objext
16848         deplibs=
16849         wl=$lt_prog_compiler_wl_F77
16850         pic_flag=$lt_prog_compiler_pic_F77
16851         compiler_flags=-v
16852         linker_flags=-v
16853         verstring=
16854         output_objdir=.
16855         libname=conftest
16856         lt_save_allow_undefined_flag=$allow_undefined_flag_F77
16857         allow_undefined_flag_F77=
16858         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16859   (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16860   ac_status=$?
16861   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16862   (exit $ac_status); }
16863         then
16864           archive_cmds_need_lc_F77=no
16865         else
16866           archive_cmds_need_lc_F77=yes
16867         fi
16868         allow_undefined_flag_F77=$lt_save_allow_undefined_flag
16869       else
16870         cat conftest.err 1>&5
16871       fi
16872       $rm conftest*
16873       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
16874 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
16875       ;;
16876     esac
16877   fi
16878   ;;
16879 esac
16880
16881 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16882 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
16883 library_names_spec=
16884 libname_spec='lib$name'
16885 soname_spec=
16886 shrext_cmds=".so"
16887 postinstall_cmds=
16888 postuninstall_cmds=
16889 finish_cmds=
16890 finish_eval=
16891 shlibpath_var=
16892 shlibpath_overrides_runpath=unknown
16893 version_type=none
16894 dynamic_linker="$host_os ld.so"
16895 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16896
16897 need_lib_prefix=unknown
16898 hardcode_into_libs=no
16899
16900 # when you set need_version to no, make sure it does not cause -set_version
16901 # flags to be left without arguments
16902 need_version=unknown
16903
16904 case $host_os in
16905 aix3*)
16906   version_type=linux
16907   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16908   shlibpath_var=LIBPATH
16909
16910   # AIX 3 has no versioning support, so we append a major version to the name.
16911   soname_spec='${libname}${release}${shared_ext}$major'
16912   ;;
16913
16914 aix4* | aix5*)
16915   version_type=linux
16916   need_lib_prefix=no
16917   need_version=no
16918   hardcode_into_libs=yes
16919   if test "$host_cpu" = ia64; then
16920     # AIX 5 supports IA64
16921     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16922     shlibpath_var=LD_LIBRARY_PATH
16923   else
16924     # With GCC up to 2.95.x, collect2 would create an import file
16925     # for dependence libraries.  The import file would start with
16926     # the line `#! .'.  This would cause the generated library to
16927     # depend on `.', always an invalid library.  This was fixed in
16928     # development snapshots of GCC prior to 3.0.
16929     case $host_os in
16930       aix4 | aix4.[01] | aix4.[01].*)
16931       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16932            echo ' yes '
16933            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16934         :
16935       else
16936         can_build_shared=no
16937       fi
16938       ;;
16939     esac
16940     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16941     # soname into executable. Probably we can add versioning support to
16942     # collect2, so additional links can be useful in future.
16943     if test "$aix_use_runtimelinking" = yes; then
16944       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16945       # instead of lib<name>.a to let people know that these are not
16946       # typical AIX shared libraries.
16947       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16948     else
16949       # We preserve .a as extension for shared libraries through AIX4.2
16950       # and later when we are not doing run time linking.
16951       library_names_spec='${libname}${release}.a $libname.a'
16952       soname_spec='${libname}${release}${shared_ext}$major'
16953     fi
16954     shlibpath_var=LIBPATH
16955   fi
16956   ;;
16957
16958 amigaos*)
16959   library_names_spec='$libname.ixlibrary $libname.a'
16960   # Create ${libname}_ixlibrary.a entries in /sys/libs.
16961   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'
16962   ;;
16963
16964 beos*)
16965   library_names_spec='${libname}${shared_ext}'
16966   dynamic_linker="$host_os ld.so"
16967   shlibpath_var=LIBRARY_PATH
16968   ;;
16969
16970 bsdi[45]*)
16971   version_type=linux
16972   need_version=no
16973   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16974   soname_spec='${libname}${release}${shared_ext}$major'
16975   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16976   shlibpath_var=LD_LIBRARY_PATH
16977   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16978   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16979   # the default ld.so.conf also contains /usr/contrib/lib and
16980   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16981   # libtool to hard-code these into programs
16982   ;;
16983
16984 cygwin* | mingw* | pw32*)
16985   version_type=windows
16986   shrext_cmds=".dll"
16987   need_version=no
16988   need_lib_prefix=no
16989
16990   case $GCC,$host_os in
16991   yes,cygwin* | yes,mingw* | yes,pw32*)
16992     library_names_spec='$libname.dll.a'
16993     # DLL is installed to $(libdir)/../bin by postinstall_cmds
16994     postinstall_cmds='base_file=`basename \${file}`~
16995       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16996       dldir=$destdir/`dirname \$dlpath`~
16997       test -d \$dldir || mkdir -p \$dldir~
16998       $install_prog $dir/$dlname \$dldir/$dlname~
16999       chmod a+x \$dldir/$dlname'
17000     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17001       dlpath=$dir/\$dldll~
17002        $rm \$dlpath'
17003     shlibpath_overrides_runpath=yes
17004
17005     case $host_os in
17006     cygwin*)
17007       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17008       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17009       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17010       ;;
17011     mingw*)
17012       # MinGW DLLs use traditional 'lib' prefix
17013       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17014       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17015       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17016         # It is most probably a Windows format PATH printed by
17017         # mingw gcc, but we are running on Cygwin. Gcc prints its search
17018         # path with ; separators, and with drive letters. We can handle the
17019         # drive letters (cygwin fileutils understands them), so leave them,
17020         # especially as we might pass files found there to a mingw objdump,
17021         # which wouldn't understand a cygwinified path. Ahh.
17022         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17023       else
17024         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
17025       fi
17026       ;;
17027     pw32*)
17028       # pw32 DLLs use 'pw' prefix rather than 'lib'
17029       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17030       ;;
17031     esac
17032     ;;
17033
17034   *)
17035     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17036     ;;
17037   esac
17038   dynamic_linker='Win32 ld.exe'
17039   # FIXME: first we should search . and the directory the executable is in
17040   shlibpath_var=PATH
17041   ;;
17042
17043 darwin* | rhapsody*)
17044   dynamic_linker="$host_os dyld"
17045   version_type=darwin
17046   need_lib_prefix=no
17047   need_version=no
17048   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17049   soname_spec='${libname}${release}${major}$shared_ext'
17050   shlibpath_overrides_runpath=yes
17051   shlibpath_var=DYLD_LIBRARY_PATH
17052   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17053
17054   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17055   ;;
17056
17057 dgux*)
17058   version_type=linux
17059   need_lib_prefix=no
17060   need_version=no
17061   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17062   soname_spec='${libname}${release}${shared_ext}$major'
17063   shlibpath_var=LD_LIBRARY_PATH
17064   ;;
17065
17066 freebsd1*)
17067   dynamic_linker=no
17068   ;;
17069
17070 freebsd* | dragonfly*)
17071   # DragonFly does not have aout.  When/if they implement a new
17072   # versioning mechanism, adjust this.
17073   if test -x /usr/bin/objformat; then
17074     objformat=`/usr/bin/objformat`
17075   else
17076     case $host_os in
17077     freebsd[123]*) objformat=aout ;;
17078     *) objformat=elf ;;
17079     esac
17080   fi
17081   version_type=freebsd-$objformat
17082   case $version_type in
17083     freebsd-elf*)
17084       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17085       need_version=no
17086       need_lib_prefix=no
17087       ;;
17088     freebsd-*)
17089       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17090       need_version=yes
17091       ;;
17092   esac
17093   shlibpath_var=LD_LIBRARY_PATH
17094   case $host_os in
17095   freebsd2*)
17096     shlibpath_overrides_runpath=yes
17097     ;;
17098   freebsd3.[01]* | freebsdelf3.[01]*)
17099     shlibpath_overrides_runpath=yes
17100     hardcode_into_libs=yes
17101     ;;
17102   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17103   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17104     shlibpath_overrides_runpath=no
17105     hardcode_into_libs=yes
17106     ;;
17107   *) # from 4.6 on, and DragonFly
17108     shlibpath_overrides_runpath=yes
17109     hardcode_into_libs=yes
17110     ;;
17111   esac
17112   ;;
17113
17114 gnu*)
17115   version_type=linux
17116   need_lib_prefix=no
17117   need_version=no
17118   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17119   soname_spec='${libname}${release}${shared_ext}$major'
17120   shlibpath_var=LD_LIBRARY_PATH
17121   hardcode_into_libs=yes
17122   ;;
17123
17124 hpux9* | hpux10* | hpux11*)
17125   # Give a soname corresponding to the major version so that dld.sl refuses to
17126   # link against other versions.
17127   version_type=sunos
17128   need_lib_prefix=no
17129   need_version=no
17130   case $host_cpu in
17131   ia64*)
17132     shrext_cmds='.so'
17133     hardcode_into_libs=yes
17134     dynamic_linker="$host_os dld.so"
17135     shlibpath_var=LD_LIBRARY_PATH
17136     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17137     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17138     soname_spec='${libname}${release}${shared_ext}$major'
17139     if test "X$HPUX_IA64_MODE" = X32; then
17140       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17141     else
17142       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17143     fi
17144     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17145     ;;
17146    hppa*64*)
17147      shrext_cmds='.sl'
17148      hardcode_into_libs=yes
17149      dynamic_linker="$host_os dld.sl"
17150      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17151      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17152      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17153      soname_spec='${libname}${release}${shared_ext}$major'
17154      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17155      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17156      ;;
17157    *)
17158     shrext_cmds='.sl'
17159     dynamic_linker="$host_os dld.sl"
17160     shlibpath_var=SHLIB_PATH
17161     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17162     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17163     soname_spec='${libname}${release}${shared_ext}$major'
17164     ;;
17165   esac
17166   # HP-UX runs *really* slowly unless shared libraries are mode 555.
17167   postinstall_cmds='chmod 555 $lib'
17168   ;;
17169
17170 interix[3-9]*)
17171   version_type=linux
17172   need_lib_prefix=no
17173   need_version=no
17174   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17175   soname_spec='${libname}${release}${shared_ext}$major'
17176   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17177   shlibpath_var=LD_LIBRARY_PATH
17178   shlibpath_overrides_runpath=no
17179   hardcode_into_libs=yes
17180   ;;
17181
17182 irix5* | irix6* | nonstopux*)
17183   case $host_os in
17184     nonstopux*) version_type=nonstopux ;;
17185     *)
17186         if test "$lt_cv_prog_gnu_ld" = yes; then
17187                 version_type=linux
17188         else
17189                 version_type=irix
17190         fi ;;
17191   esac
17192   need_lib_prefix=no
17193   need_version=no
17194   soname_spec='${libname}${release}${shared_ext}$major'
17195   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17196   case $host_os in
17197   irix5* | nonstopux*)
17198     libsuff= shlibsuff=
17199     ;;
17200   *)
17201     case $LD in # libtool.m4 will add one of these switches to LD
17202     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17203       libsuff= shlibsuff= libmagic=32-bit;;
17204     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17205       libsuff=32 shlibsuff=N32 libmagic=N32;;
17206     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17207       libsuff=64 shlibsuff=64 libmagic=64-bit;;
17208     *) libsuff= shlibsuff= libmagic=never-match;;
17209     esac
17210     ;;
17211   esac
17212   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17213   shlibpath_overrides_runpath=no
17214   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17215   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17216   hardcode_into_libs=yes
17217   ;;
17218
17219 # No shared lib support for Linux oldld, aout, or coff.
17220 linux*oldld* | linux*aout* | linux*coff*)
17221   dynamic_linker=no
17222   ;;
17223
17224 # This must be Linux ELF.
17225 linux* | k*bsd*-gnu)
17226   version_type=linux
17227   need_lib_prefix=no
17228   need_version=no
17229   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17230   soname_spec='${libname}${release}${shared_ext}$major'
17231   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17232   shlibpath_var=LD_LIBRARY_PATH
17233   shlibpath_overrides_runpath=no
17234   # This implies no fast_install, which is unacceptable.
17235   # Some rework will be needed to allow for fast_install
17236   # before this can be enabled.
17237   hardcode_into_libs=yes
17238   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17239   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17240
17241   # Append ld.so.conf contents to the search path
17242   if test -f /etc/ld.so.conf; then
17243     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[      ]*hwcap[        ]/d;s/[:,       ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
17244     sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
17245   fi
17246
17247   # We used to test for /lib/ld.so.1 and disable shared libraries on
17248   # powerpc, because MkLinux only supported shared libraries with the
17249   # GNU dynamic linker.  Since this was broken with cross compilers,
17250   # most powerpc-linux boxes support dynamic linking these days and
17251   # people can always --disable-shared, the test was removed, and we
17252   # assume the GNU/Linux dynamic linker is in use.
17253   dynamic_linker='GNU/Linux ld.so'
17254   ;;
17255
17256 netbsd*)
17257   version_type=sunos
17258   need_lib_prefix=no
17259   need_version=no
17260   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17261     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17262     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17263     dynamic_linker='NetBSD (a.out) ld.so'
17264   else
17265     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17266     soname_spec='${libname}${release}${shared_ext}$major'
17267     dynamic_linker='NetBSD ld.elf_so'
17268   fi
17269   shlibpath_var=LD_LIBRARY_PATH
17270   shlibpath_overrides_runpath=yes
17271   hardcode_into_libs=yes
17272   ;;
17273
17274 newsos6)
17275   version_type=linux
17276   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17277   shlibpath_var=LD_LIBRARY_PATH
17278   shlibpath_overrides_runpath=yes
17279   ;;
17280
17281 nto-qnx*)
17282   version_type=linux
17283   need_lib_prefix=no
17284   need_version=no
17285   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17286   soname_spec='${libname}${release}${shared_ext}$major'
17287   shlibpath_var=LD_LIBRARY_PATH
17288   shlibpath_overrides_runpath=yes
17289   ;;
17290
17291 openbsd*)
17292   version_type=sunos
17293   sys_lib_dlsearch_path_spec="/usr/lib"
17294   need_lib_prefix=no
17295   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17296   case $host_os in
17297     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
17298     *)                         need_version=no  ;;
17299   esac
17300   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17301   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17302   shlibpath_var=LD_LIBRARY_PATH
17303   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17304     case $host_os in
17305       openbsd2.[89] | openbsd2.[89].*)
17306         shlibpath_overrides_runpath=no
17307         ;;
17308       *)
17309         shlibpath_overrides_runpath=yes
17310         ;;
17311       esac
17312   else
17313     shlibpath_overrides_runpath=yes
17314   fi
17315   ;;
17316
17317 os2*)
17318   libname_spec='$name'
17319   shrext_cmds=".dll"
17320   need_lib_prefix=no
17321   library_names_spec='$libname${shared_ext} $libname.a'
17322   dynamic_linker='OS/2 ld.exe'
17323   shlibpath_var=LIBPATH
17324   ;;
17325
17326 osf3* | osf4* | osf5*)
17327   version_type=osf
17328   need_lib_prefix=no
17329   need_version=no
17330   soname_spec='${libname}${release}${shared_ext}$major'
17331   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17332   shlibpath_var=LD_LIBRARY_PATH
17333   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17334   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17335   ;;
17336
17337 rdos*)
17338   dynamic_linker=no
17339   ;;
17340
17341 solaris*)
17342   version_type=linux
17343   need_lib_prefix=no
17344   need_version=no
17345   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17346   soname_spec='${libname}${release}${shared_ext}$major'
17347   shlibpath_var=LD_LIBRARY_PATH
17348   shlibpath_overrides_runpath=yes
17349   hardcode_into_libs=yes
17350   # ldd complains unless libraries are executable
17351   postinstall_cmds='chmod +x $lib'
17352   ;;
17353
17354 sunos4*)
17355   version_type=sunos
17356   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17357   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17358   shlibpath_var=LD_LIBRARY_PATH
17359   shlibpath_overrides_runpath=yes
17360   if test "$with_gnu_ld" = yes; then
17361     need_lib_prefix=no
17362   fi
17363   need_version=yes
17364   ;;
17365
17366 sysv4 | sysv4.3*)
17367   version_type=linux
17368   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17369   soname_spec='${libname}${release}${shared_ext}$major'
17370   shlibpath_var=LD_LIBRARY_PATH
17371   case $host_vendor in
17372     sni)
17373       shlibpath_overrides_runpath=no
17374       need_lib_prefix=no
17375       export_dynamic_flag_spec='${wl}-Blargedynsym'
17376       runpath_var=LD_RUN_PATH
17377       ;;
17378     siemens)
17379       need_lib_prefix=no
17380       ;;
17381     motorola)
17382       need_lib_prefix=no
17383       need_version=no
17384       shlibpath_overrides_runpath=no
17385       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17386       ;;
17387   esac
17388   ;;
17389
17390 sysv4*MP*)
17391   if test -d /usr/nec ;then
17392     version_type=linux
17393     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17394     soname_spec='$libname${shared_ext}.$major'
17395     shlibpath_var=LD_LIBRARY_PATH
17396   fi
17397   ;;
17398
17399 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17400   version_type=freebsd-elf
17401   need_lib_prefix=no
17402   need_version=no
17403   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17404   soname_spec='${libname}${release}${shared_ext}$major'
17405   shlibpath_var=LD_LIBRARY_PATH
17406   hardcode_into_libs=yes
17407   if test "$with_gnu_ld" = yes; then
17408     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17409     shlibpath_overrides_runpath=no
17410   else
17411     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17412     shlibpath_overrides_runpath=yes
17413     case $host_os in
17414       sco3.2v5*)
17415         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17416         ;;
17417     esac
17418   fi
17419   sys_lib_dlsearch_path_spec='/usr/lib'
17420   ;;
17421
17422 uts4*)
17423   version_type=linux
17424   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17425   soname_spec='${libname}${release}${shared_ext}$major'
17426   shlibpath_var=LD_LIBRARY_PATH
17427   ;;
17428
17429 *)
17430   dynamic_linker=no
17431   ;;
17432 esac
17433 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17434 echo "${ECHO_T}$dynamic_linker" >&6; }
17435 test "$dynamic_linker" = no && can_build_shared=no
17436
17437 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17438 if test "$GCC" = yes; then
17439   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17440 fi
17441
17442 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17443 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
17444 hardcode_action_F77=
17445 if test -n "$hardcode_libdir_flag_spec_F77" || \
17446    test -n "$runpath_var_F77" || \
17447    test "X$hardcode_automatic_F77" = "Xyes" ; then
17448
17449   # We can hardcode non-existant directories.
17450   if test "$hardcode_direct_F77" != no &&
17451      # If the only mechanism to avoid hardcoding is shlibpath_var, we
17452      # have to relink, otherwise we might link with an installed library
17453      # when we should be linking with a yet-to-be-installed one
17454      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
17455      test "$hardcode_minus_L_F77" != no; then
17456     # Linking always hardcodes the temporary library directory.
17457     hardcode_action_F77=relink
17458   else
17459     # We can link without hardcoding, and we can hardcode nonexisting dirs.
17460     hardcode_action_F77=immediate
17461   fi
17462 else
17463   # We cannot hardcode anything, or else we can only hardcode existing
17464   # directories.
17465   hardcode_action_F77=unsupported
17466 fi
17467 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
17468 echo "${ECHO_T}$hardcode_action_F77" >&6; }
17469
17470 if test "$hardcode_action_F77" = relink; then
17471   # Fast installation is not supported
17472   enable_fast_install=no
17473 elif test "$shlibpath_overrides_runpath" = yes ||
17474      test "$enable_shared" = no; then
17475   # Fast installation is not necessary
17476   enable_fast_install=needless
17477 fi
17478
17479
17480 # The else clause should only fire when bootstrapping the
17481 # libtool distribution, otherwise you forgot to ship ltmain.sh
17482 # with your package, and you will get complaints that there are
17483 # no rules to generate ltmain.sh.
17484 if test -f "$ltmain"; then
17485   # See if we are running on zsh, and set the options which allow our commands through
17486   # without removal of \ escapes.
17487   if test -n "${ZSH_VERSION+set}" ; then
17488     setopt NO_GLOB_SUBST
17489   fi
17490   # Now quote all the things that may contain metacharacters while being
17491   # careful not to overquote the AC_SUBSTed values.  We take copies of the
17492   # variables and quote the copies for generation of the libtool script.
17493   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
17494     SED SHELL STRIP \
17495     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17496     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17497     deplibs_check_method reload_flag reload_cmds need_locks \
17498     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17499     lt_cv_sys_global_symbol_to_c_name_address \
17500     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17501     old_postinstall_cmds old_postuninstall_cmds \
17502     compiler_F77 \
17503     CC_F77 \
17504     LD_F77 \
17505     lt_prog_compiler_wl_F77 \
17506     lt_prog_compiler_pic_F77 \
17507     lt_prog_compiler_static_F77 \
17508     lt_prog_compiler_no_builtin_flag_F77 \
17509     export_dynamic_flag_spec_F77 \
17510     thread_safe_flag_spec_F77 \
17511     whole_archive_flag_spec_F77 \
17512     enable_shared_with_static_runtimes_F77 \
17513     old_archive_cmds_F77 \
17514     old_archive_from_new_cmds_F77 \
17515     predep_objects_F77 \
17516     postdep_objects_F77 \
17517     predeps_F77 \
17518     postdeps_F77 \
17519     compiler_lib_search_path_F77 \
17520     archive_cmds_F77 \
17521     archive_expsym_cmds_F77 \
17522     postinstall_cmds_F77 \
17523     postuninstall_cmds_F77 \
17524     old_archive_from_expsyms_cmds_F77 \
17525     allow_undefined_flag_F77 \
17526     no_undefined_flag_F77 \
17527     export_symbols_cmds_F77 \
17528     hardcode_libdir_flag_spec_F77 \
17529     hardcode_libdir_flag_spec_ld_F77 \
17530     hardcode_libdir_separator_F77 \
17531     hardcode_automatic_F77 \
17532     module_cmds_F77 \
17533     module_expsym_cmds_F77 \
17534     lt_cv_prog_compiler_c_o_F77 \
17535     fix_srcfile_path_F77 \
17536     exclude_expsyms_F77 \
17537     include_expsyms_F77; do
17538
17539     case $var in
17540     old_archive_cmds_F77 | \
17541     old_archive_from_new_cmds_F77 | \
17542     archive_cmds_F77 | \
17543     archive_expsym_cmds_F77 | \
17544     module_cmds_F77 | \
17545     module_expsym_cmds_F77 | \
17546     old_archive_from_expsyms_cmds_F77 | \
17547     export_symbols_cmds_F77 | \
17548     extract_expsyms_cmds | reload_cmds | finish_cmds | \
17549     postinstall_cmds | postuninstall_cmds | \
17550     old_postinstall_cmds | old_postuninstall_cmds | \
17551     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17552       # Double-quote double-evaled strings.
17553       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17554       ;;
17555     *)
17556       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17557       ;;
17558     esac
17559   done
17560
17561   case $lt_echo in
17562   *'\$0 --fallback-echo"')
17563     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17564     ;;
17565   esac
17566
17567 cfgfile="$ofile"
17568
17569   cat <<__EOF__ >> "$cfgfile"
17570 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
17571
17572 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17573
17574 # Shell to use when invoking shell scripts.
17575 SHELL=$lt_SHELL
17576
17577 # Whether or not to build shared libraries.
17578 build_libtool_libs=$enable_shared
17579
17580 # Whether or not to build static libraries.
17581 build_old_libs=$enable_static
17582
17583 # Whether or not to add -lc for building shared libraries.
17584 build_libtool_need_lc=$archive_cmds_need_lc_F77
17585
17586 # Whether or not to disallow shared libs when runtime libs are static
17587 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
17588
17589 # Whether or not to optimize for fast installation.
17590 fast_install=$enable_fast_install
17591
17592 # The host system.
17593 host_alias=$host_alias
17594 host=$host
17595 host_os=$host_os
17596
17597 # The build system.
17598 build_alias=$build_alias
17599 build=$build
17600 build_os=$build_os
17601
17602 # An echo program that does not interpret backslashes.
17603 echo=$lt_echo
17604
17605 # The archiver.
17606 AR=$lt_AR
17607 AR_FLAGS=$lt_AR_FLAGS
17608
17609 # A C compiler.
17610 LTCC=$lt_LTCC
17611
17612 # LTCC compiler flags.
17613 LTCFLAGS=$lt_LTCFLAGS
17614
17615 # A language-specific compiler.
17616 CC=$lt_compiler_F77
17617
17618 # Is the compiler the GNU C compiler?
17619 with_gcc=$GCC_F77
17620
17621 # An ERE matcher.
17622 EGREP=$lt_EGREP
17623
17624 # The linker used to build libraries.
17625 LD=$lt_LD_F77
17626
17627 # Whether we need hard or soft links.
17628 LN_S=$lt_LN_S
17629
17630 # A BSD-compatible nm program.
17631 NM=$lt_NM
17632
17633 # A symbol stripping program
17634 STRIP=$lt_STRIP
17635
17636 # Used to examine libraries when file_magic_cmd begins "file"
17637 MAGIC_CMD=$MAGIC_CMD
17638
17639 # Used on cygwin: DLL creation program.
17640 DLLTOOL="$DLLTOOL"
17641
17642 # Used on cygwin: object dumper.
17643 OBJDUMP="$OBJDUMP"
17644
17645 # Used on cygwin: assembler.
17646 AS="$AS"
17647
17648 # The name of the directory that contains temporary libtool files.
17649 objdir=$objdir
17650
17651 # How to create reloadable object files.
17652 reload_flag=$lt_reload_flag
17653 reload_cmds=$lt_reload_cmds
17654
17655 # How to pass a linker flag through the compiler.
17656 wl=$lt_lt_prog_compiler_wl_F77
17657
17658 # Object file suffix (normally "o").
17659 objext="$ac_objext"
17660
17661 # Old archive suffix (normally "a").
17662 libext="$libext"
17663
17664 # Shared library suffix (normally ".so").
17665 shrext_cmds='$shrext_cmds'
17666
17667 # Executable file suffix (normally "").
17668 exeext="$exeext"
17669
17670 # Additional compiler flags for building library objects.
17671 pic_flag=$lt_lt_prog_compiler_pic_F77
17672 pic_mode=$pic_mode
17673
17674 # What is the maximum length of a command?
17675 max_cmd_len=$lt_cv_sys_max_cmd_len
17676
17677 # Does compiler simultaneously support -c and -o options?
17678 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
17679
17680 # Must we lock files when doing compilation?
17681 need_locks=$lt_need_locks
17682
17683 # Do we need the lib prefix for modules?
17684 need_lib_prefix=$need_lib_prefix
17685
17686 # Do we need a version for libraries?
17687 need_version=$need_version
17688
17689 # Whether dlopen is supported.
17690 dlopen_support=$enable_dlopen
17691
17692 # Whether dlopen of programs is supported.
17693 dlopen_self=$enable_dlopen_self
17694
17695 # Whether dlopen of statically linked programs is supported.
17696 dlopen_self_static=$enable_dlopen_self_static
17697
17698 # Compiler flag to prevent dynamic linking.
17699 link_static_flag=$lt_lt_prog_compiler_static_F77
17700
17701 # Compiler flag to turn off builtin functions.
17702 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
17703
17704 # Compiler flag to allow reflexive dlopens.
17705 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
17706
17707 # Compiler flag to generate shared objects directly from archives.
17708 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
17709
17710 # Compiler flag to generate thread-safe objects.
17711 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
17712
17713 # Library versioning type.
17714 version_type=$version_type
17715
17716 # Format of library name prefix.
17717 libname_spec=$lt_libname_spec
17718
17719 # List of archive names.  First name is the real one, the rest are links.
17720 # The last name is the one that the linker finds with -lNAME.
17721 library_names_spec=$lt_library_names_spec
17722
17723 # The coded name of the library, if different from the real name.
17724 soname_spec=$lt_soname_spec
17725
17726 # Commands used to build and install an old-style archive.
17727 RANLIB=$lt_RANLIB
17728 old_archive_cmds=$lt_old_archive_cmds_F77
17729 old_postinstall_cmds=$lt_old_postinstall_cmds
17730 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17731
17732 # Create an old-style archive from a shared archive.
17733 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
17734
17735 # Create a temporary old-style archive to link instead of a shared archive.
17736 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
17737
17738 # Commands used to build and install a shared archive.
17739 archive_cmds=$lt_archive_cmds_F77
17740 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
17741 postinstall_cmds=$lt_postinstall_cmds
17742 postuninstall_cmds=$lt_postuninstall_cmds
17743
17744 # Commands used to build a loadable module (assumed same as above if empty)
17745 module_cmds=$lt_module_cmds_F77
17746 module_expsym_cmds=$lt_module_expsym_cmds_F77
17747
17748 # Commands to strip libraries.
17749 old_striplib=$lt_old_striplib
17750 striplib=$lt_striplib
17751
17752 # Dependencies to place before the objects being linked to create a
17753 # shared library.
17754 predep_objects=$lt_predep_objects_F77
17755
17756 # Dependencies to place after the objects being linked to create a
17757 # shared library.
17758 postdep_objects=$lt_postdep_objects_F77
17759
17760 # Dependencies to place before the objects being linked to create a
17761 # shared library.
17762 predeps=$lt_predeps_F77
17763
17764 # Dependencies to place after the objects being linked to create a
17765 # shared library.
17766 postdeps=$lt_postdeps_F77
17767
17768 # The library search path used internally by the compiler when linking
17769 # a shared library.
17770 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
17771
17772 # Method to check whether dependent libraries are shared objects.
17773 deplibs_check_method=$lt_deplibs_check_method
17774
17775 # Command to use when deplibs_check_method == file_magic.
17776 file_magic_cmd=$lt_file_magic_cmd
17777
17778 # Flag that allows shared libraries with undefined symbols to be built.
17779 allow_undefined_flag=$lt_allow_undefined_flag_F77
17780
17781 # Flag that forces no undefined symbols.
17782 no_undefined_flag=$lt_no_undefined_flag_F77
17783
17784 # Commands used to finish a libtool library installation in a directory.
17785 finish_cmds=$lt_finish_cmds
17786
17787 # Same as above, but a single script fragment to be evaled but not shown.
17788 finish_eval=$lt_finish_eval
17789
17790 # Take the output of nm and produce a listing of raw symbols and C names.
17791 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17792
17793 # Transform the output of nm in a proper C declaration
17794 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17795
17796 # Transform the output of nm in a C name address pair
17797 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17798
17799 # This is the shared library runtime path variable.
17800 runpath_var=$runpath_var
17801
17802 # This is the shared library path variable.
17803 shlibpath_var=$shlibpath_var
17804
17805 # Is shlibpath searched before the hard-coded library search path?
17806 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17807
17808 # How to hardcode a shared library path into an executable.
17809 hardcode_action=$hardcode_action_F77
17810
17811 # Whether we should hardcode library paths into libraries.
17812 hardcode_into_libs=$hardcode_into_libs
17813
17814 # Flag to hardcode \$libdir into a binary during linking.
17815 # This must work even if \$libdir does not exist.
17816 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
17817
17818 # If ld is used when linking, flag to hardcode \$libdir into
17819 # a binary during linking. This must work even if \$libdir does
17820 # not exist.
17821 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
17822
17823 # Whether we need a single -rpath flag with a separated argument.
17824 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
17825
17826 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17827 # resulting binary.
17828 hardcode_direct=$hardcode_direct_F77
17829
17830 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17831 # resulting binary.
17832 hardcode_minus_L=$hardcode_minus_L_F77
17833
17834 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17835 # the resulting binary.
17836 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
17837
17838 # Set to yes if building a shared library automatically hardcodes DIR into the library
17839 # and all subsequent libraries and executables linked against it.
17840 hardcode_automatic=$hardcode_automatic_F77
17841
17842 # Variables whose values should be saved in libtool wrapper scripts and
17843 # restored at relink time.
17844 variables_saved_for_relink="$variables_saved_for_relink"
17845
17846 # Whether libtool must link a program against all its dependency libraries.
17847 link_all_deplibs=$link_all_deplibs_F77
17848
17849 # Compile-time system search path for libraries
17850 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17851
17852 # Run-time system search path for libraries
17853 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17854
17855 # Fix the shell variable \$srcfile for the compiler.
17856 fix_srcfile_path=$lt_fix_srcfile_path
17857
17858 # Set to yes if exported symbols are required.
17859 always_export_symbols=$always_export_symbols_F77
17860
17861 # The commands to list exported symbols.
17862 export_symbols_cmds=$lt_export_symbols_cmds_F77
17863
17864 # The commands to extract the exported symbol list from a shared archive.
17865 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17866
17867 # Symbols that should not be listed in the preloaded symbols.
17868 exclude_expsyms=$lt_exclude_expsyms_F77
17869
17870 # Symbols that must always be exported.
17871 include_expsyms=$lt_include_expsyms_F77
17872
17873 # ### END LIBTOOL TAG CONFIG: $tagname
17874
17875 __EOF__
17876
17877
17878 else
17879   # If there is no Makefile yet, we rely on a make rule to execute
17880   # `config.status --recheck' to rerun these tests and create the
17881   # libtool script then.
17882   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
17883   if test -f "$ltmain_in"; then
17884     test -f Makefile && make "$ltmain"
17885   fi
17886 fi
17887
17888
17889 ac_ext=c
17890 ac_cpp='$CPP $CPPFLAGS'
17891 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17892 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17893 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17894
17895 CC="$lt_save_CC"
17896
17897         else
17898           tagname=""
17899         fi
17900         ;;
17901
17902       GCJ)
17903         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
17904
17905
17906 # Source file extension for Java test sources.
17907 ac_ext=java
17908
17909 # Object file extension for compiled Java test sources.
17910 objext=o
17911 objext_GCJ=$objext
17912
17913 # Code to be used in simple compile tests
17914 lt_simple_compile_test_code="class foo {}"
17915
17916 # Code to be used in simple link tests
17917 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }'
17918
17919 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
17920
17921 # If no C compiler was specified, use CC.
17922 LTCC=${LTCC-"$CC"}
17923
17924 # If no C compiler flags were specified, use CFLAGS.
17925 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
17926
17927 # Allow CC to be a program name with arguments.
17928 compiler=$CC
17929
17930
17931 # save warnings/boilerplate of simple test code
17932 ac_outfile=conftest.$ac_objext
17933 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
17934 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17935 _lt_compiler_boilerplate=`cat conftest.err`
17936 $rm conftest*
17937
17938 ac_outfile=conftest.$ac_objext
17939 echo "$lt_simple_link_test_code" >conftest.$ac_ext
17940 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17941 _lt_linker_boilerplate=`cat conftest.err`
17942 $rm conftest*
17943
17944
17945 # Allow CC to be a program name with arguments.
17946 lt_save_CC="$CC"
17947 CC=${GCJ-"gcj"}
17948 compiler=$CC
17949 compiler_GCJ=$CC
17950 for cc_temp in $compiler""; do
17951   case $cc_temp in
17952     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17953     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17954     \-*) ;;
17955     *) break;;
17956   esac
17957 done
17958 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17959
17960
17961 # GCJ did not exist at the time GCC didn't implicitly link libc in.
17962 archive_cmds_need_lc_GCJ=no
17963
17964 old_archive_cmds_GCJ=$old_archive_cmds
17965
17966
17967 lt_prog_compiler_no_builtin_flag_GCJ=
17968
17969 if test "$GCC" = yes; then
17970   lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
17971
17972
17973 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
17974 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
17975 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
17976   echo $ECHO_N "(cached) $ECHO_C" >&6
17977 else
17978   lt_cv_prog_compiler_rtti_exceptions=no
17979   ac_outfile=conftest.$ac_objext
17980    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17981    lt_compiler_flag="-fno-rtti -fno-exceptions"
17982    # Insert the option either (1) after the last *FLAGS variable, or
17983    # (2) before a word containing "conftest.", or (3) at the end.
17984    # Note that $ac_compile itself does not contain backslashes and begins
17985    # with a dollar sign (not a hyphen), so the echo should work correctly.
17986    # The option is referenced via a variable to avoid confusing sed.
17987    lt_compile=`echo "$ac_compile" | $SED \
17988    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17989    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17990    -e 's:$: $lt_compiler_flag:'`
17991    (eval echo "\"\$as_me:17991: $lt_compile\"" >&5)
17992    (eval "$lt_compile" 2>conftest.err)
17993    ac_status=$?
17994    cat conftest.err >&5
17995    echo "$as_me:17995: \$? = $ac_status" >&5
17996    if (exit $ac_status) && test -s "$ac_outfile"; then
17997      # The compiler can only warn and ignore the option if not recognized
17998      # So say no if there are warnings other than the usual output.
17999      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
18000      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18001      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
18002        lt_cv_prog_compiler_rtti_exceptions=yes
18003      fi
18004    fi
18005    $rm conftest*
18006
18007 fi
18008 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
18009 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
18010
18011 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
18012     lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
18013 else
18014     :
18015 fi
18016
18017 fi
18018
18019 lt_prog_compiler_wl_GCJ=
18020 lt_prog_compiler_pic_GCJ=
18021 lt_prog_compiler_static_GCJ=
18022
18023 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
18024 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
18025
18026   if test "$GCC" = yes; then
18027     lt_prog_compiler_wl_GCJ='-Wl,'
18028     lt_prog_compiler_static_GCJ='-static'
18029
18030     case $host_os in
18031       aix*)
18032       # All AIX code is PIC.
18033       if test "$host_cpu" = ia64; then
18034         # AIX 5 now supports IA64 processor
18035         lt_prog_compiler_static_GCJ='-Bstatic'
18036       fi
18037       ;;
18038
18039     amigaos*)
18040       # FIXME: we need at least 68020 code to build shared libraries, but
18041       # adding the `-m68020' flag to GCC prevents building anything better,
18042       # like `-m68040'.
18043       lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
18044       ;;
18045
18046     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
18047       # PIC is the default for these OSes.
18048       ;;
18049
18050     mingw* | cygwin* | pw32* | os2*)
18051       # This hack is so that the source file can tell whether it is being
18052       # built for inclusion in a dll (and should export symbols for example).
18053       # Although the cygwin gcc ignores -fPIC, still need this for old-style
18054       # (--disable-auto-import) libraries
18055       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
18056       ;;
18057
18058     darwin* | rhapsody*)
18059       # PIC is the default on this platform
18060       # Common symbols not allowed in MH_DYLIB files
18061       lt_prog_compiler_pic_GCJ='-fno-common'
18062       ;;
18063
18064     interix[3-9]*)
18065       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
18066       # Instead, we relocate shared libraries at runtime.
18067       ;;
18068
18069     msdosdjgpp*)
18070       # Just because we use GCC doesn't mean we suddenly get shared libraries
18071       # on systems that don't support them.
18072       lt_prog_compiler_can_build_shared_GCJ=no
18073       enable_shared=no
18074       ;;
18075
18076     sysv4*MP*)
18077       if test -d /usr/nec; then
18078         lt_prog_compiler_pic_GCJ=-Kconform_pic
18079       fi
18080       ;;
18081
18082     hpux*)
18083       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
18084       # not for PA HP-UX.
18085       case $host_cpu in
18086       hppa*64*|ia64*)
18087         # +Z the default
18088         ;;
18089       *)
18090         lt_prog_compiler_pic_GCJ='-fPIC'
18091         ;;
18092       esac
18093       ;;
18094
18095     *)
18096       lt_prog_compiler_pic_GCJ='-fPIC'
18097       ;;
18098     esac
18099   else
18100     # PORTME Check for flag to pass linker flags through the system compiler.
18101     case $host_os in
18102     aix*)
18103       lt_prog_compiler_wl_GCJ='-Wl,'
18104       if test "$host_cpu" = ia64; then
18105         # AIX 5 now supports IA64 processor
18106         lt_prog_compiler_static_GCJ='-Bstatic'
18107       else
18108         lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
18109       fi
18110       ;;
18111       darwin*)
18112         # PIC is the default on this platform
18113         # Common symbols not allowed in MH_DYLIB files
18114        case $cc_basename in
18115          xlc*)
18116          lt_prog_compiler_pic_GCJ='-qnocommon'
18117          lt_prog_compiler_wl_GCJ='-Wl,'
18118          ;;
18119        esac
18120        ;;
18121
18122     mingw* | cygwin* | pw32* | os2*)
18123       # This hack is so that the source file can tell whether it is being
18124       # built for inclusion in a dll (and should export symbols for example).
18125       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
18126       ;;
18127
18128     hpux9* | hpux10* | hpux11*)
18129       lt_prog_compiler_wl_GCJ='-Wl,'
18130       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
18131       # not for PA HP-UX.
18132       case $host_cpu in
18133       hppa*64*|ia64*)
18134         # +Z the default
18135         ;;
18136       *)
18137         lt_prog_compiler_pic_GCJ='+Z'
18138         ;;
18139       esac
18140       # Is there a better lt_prog_compiler_static that works with the bundled CC?
18141       lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
18142       ;;
18143
18144     irix5* | irix6* | nonstopux*)
18145       lt_prog_compiler_wl_GCJ='-Wl,'
18146       # PIC (with -KPIC) is the default.
18147       lt_prog_compiler_static_GCJ='-non_shared'
18148       ;;
18149
18150     newsos6)
18151       lt_prog_compiler_pic_GCJ='-KPIC'
18152       lt_prog_compiler_static_GCJ='-Bstatic'
18153       ;;
18154
18155     linux* | k*bsd*-gnu)
18156       case $cc_basename in
18157       icc* | ecc*)
18158         lt_prog_compiler_wl_GCJ='-Wl,'
18159         lt_prog_compiler_pic_GCJ='-KPIC'
18160         lt_prog_compiler_static_GCJ='-static'
18161         ;;
18162       pgcc* | pgf77* | pgf90* | pgf95*)
18163         # Portland Group compilers (*not* the Pentium gcc compiler,
18164         # which looks to be a dead project)
18165         lt_prog_compiler_wl_GCJ='-Wl,'
18166         lt_prog_compiler_pic_GCJ='-fpic'
18167         lt_prog_compiler_static_GCJ='-Bstatic'
18168         ;;
18169       ccc*)
18170         lt_prog_compiler_wl_GCJ='-Wl,'
18171         # All Alpha code is PIC.
18172         lt_prog_compiler_static_GCJ='-non_shared'
18173         ;;
18174       *)
18175         case `$CC -V 2>&1 | sed 5q` in
18176         *Sun\ C*)
18177           # Sun C 5.9
18178           lt_prog_compiler_pic_GCJ='-KPIC'
18179           lt_prog_compiler_static_GCJ='-Bstatic'
18180           lt_prog_compiler_wl_GCJ='-Wl,'
18181           ;;
18182         *Sun\ F*)
18183           # Sun Fortran 8.3 passes all unrecognized flags to the linker
18184           lt_prog_compiler_pic_GCJ='-KPIC'
18185           lt_prog_compiler_static_GCJ='-Bstatic'
18186           lt_prog_compiler_wl_GCJ=''
18187           ;;
18188         esac
18189         ;;
18190       esac
18191       ;;
18192
18193     osf3* | osf4* | osf5*)
18194       lt_prog_compiler_wl_GCJ='-Wl,'
18195       # All OSF/1 code is PIC.
18196       lt_prog_compiler_static_GCJ='-non_shared'
18197       ;;
18198
18199     rdos*)
18200       lt_prog_compiler_static_GCJ='-non_shared'
18201       ;;
18202
18203     solaris*)
18204       lt_prog_compiler_pic_GCJ='-KPIC'
18205       lt_prog_compiler_static_GCJ='-Bstatic'
18206       case $cc_basename in
18207       f77* | f90* | f95*)
18208         lt_prog_compiler_wl_GCJ='-Qoption ld ';;
18209       *)
18210         lt_prog_compiler_wl_GCJ='-Wl,';;
18211       esac
18212       ;;
18213
18214     sunos4*)
18215       lt_prog_compiler_wl_GCJ='-Qoption ld '
18216       lt_prog_compiler_pic_GCJ='-PIC'
18217       lt_prog_compiler_static_GCJ='-Bstatic'
18218       ;;
18219
18220     sysv4 | sysv4.2uw2* | sysv4.3*)
18221       lt_prog_compiler_wl_GCJ='-Wl,'
18222       lt_prog_compiler_pic_GCJ='-KPIC'
18223       lt_prog_compiler_static_GCJ='-Bstatic'
18224       ;;
18225
18226     sysv4*MP*)
18227       if test -d /usr/nec ;then
18228         lt_prog_compiler_pic_GCJ='-Kconform_pic'
18229         lt_prog_compiler_static_GCJ='-Bstatic'
18230       fi
18231       ;;
18232
18233     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
18234       lt_prog_compiler_wl_GCJ='-Wl,'
18235       lt_prog_compiler_pic_GCJ='-KPIC'
18236       lt_prog_compiler_static_GCJ='-Bstatic'
18237       ;;
18238
18239     unicos*)
18240       lt_prog_compiler_wl_GCJ='-Wl,'
18241       lt_prog_compiler_can_build_shared_GCJ=no
18242       ;;
18243
18244     uts4*)
18245       lt_prog_compiler_pic_GCJ='-pic'
18246       lt_prog_compiler_static_GCJ='-Bstatic'
18247       ;;
18248
18249     *)
18250       lt_prog_compiler_can_build_shared_GCJ=no
18251       ;;
18252     esac
18253   fi
18254
18255 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
18256 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
18257
18258 #
18259 # Check to make sure the PIC flag actually works.
18260 #
18261 if test -n "$lt_prog_compiler_pic_GCJ"; then
18262
18263 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
18264 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
18265 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
18266   echo $ECHO_N "(cached) $ECHO_C" >&6
18267 else
18268   lt_prog_compiler_pic_works_GCJ=no
18269   ac_outfile=conftest.$ac_objext
18270    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18271    lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
18272    # Insert the option either (1) after the last *FLAGS variable, or
18273    # (2) before a word containing "conftest.", or (3) at the end.
18274    # Note that $ac_compile itself does not contain backslashes and begins
18275    # with a dollar sign (not a hyphen), so the echo should work correctly.
18276    # The option is referenced via a variable to avoid confusing sed.
18277    lt_compile=`echo "$ac_compile" | $SED \
18278    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18279    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18280    -e 's:$: $lt_compiler_flag:'`
18281    (eval echo "\"\$as_me:18281: $lt_compile\"" >&5)
18282    (eval "$lt_compile" 2>conftest.err)
18283    ac_status=$?
18284    cat conftest.err >&5
18285    echo "$as_me:18285: \$? = $ac_status" >&5
18286    if (exit $ac_status) && test -s "$ac_outfile"; then
18287      # The compiler can only warn and ignore the option if not recognized
18288      # So say no if there are warnings other than the usual output.
18289      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
18290      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18291      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
18292        lt_prog_compiler_pic_works_GCJ=yes
18293      fi
18294    fi
18295    $rm conftest*
18296
18297 fi
18298 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
18299 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
18300
18301 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
18302     case $lt_prog_compiler_pic_GCJ in
18303      "" | " "*) ;;
18304      *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
18305      esac
18306 else
18307     lt_prog_compiler_pic_GCJ=
18308      lt_prog_compiler_can_build_shared_GCJ=no
18309 fi
18310
18311 fi
18312 case $host_os in
18313   # For platforms which do not support PIC, -DPIC is meaningless:
18314   *djgpp*)
18315     lt_prog_compiler_pic_GCJ=
18316     ;;
18317   *)
18318     lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
18319     ;;
18320 esac
18321
18322 #
18323 # Check to make sure the static flag actually works.
18324 #
18325 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
18326 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
18327 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
18328 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
18329   echo $ECHO_N "(cached) $ECHO_C" >&6
18330 else
18331   lt_prog_compiler_static_works_GCJ=no
18332    save_LDFLAGS="$LDFLAGS"
18333    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
18334    echo "$lt_simple_link_test_code" > conftest.$ac_ext
18335    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
18336      # The linker can only warn and ignore the option if not recognized
18337      # So say no if there are warnings
18338      if test -s conftest.err; then
18339        # Append any errors to the config.log.
18340        cat conftest.err 1>&5
18341        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
18342        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18343        if diff conftest.exp conftest.er2 >/dev/null; then
18344          lt_prog_compiler_static_works_GCJ=yes
18345        fi
18346      else
18347        lt_prog_compiler_static_works_GCJ=yes
18348      fi
18349    fi
18350    $rm conftest*
18351    LDFLAGS="$save_LDFLAGS"
18352
18353 fi
18354 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
18355 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
18356
18357 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
18358     :
18359 else
18360     lt_prog_compiler_static_GCJ=
18361 fi
18362
18363
18364 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
18365 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
18366 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
18367   echo $ECHO_N "(cached) $ECHO_C" >&6
18368 else
18369   lt_cv_prog_compiler_c_o_GCJ=no
18370    $rm -r conftest 2>/dev/null
18371    mkdir conftest
18372    cd conftest
18373    mkdir out
18374    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18375
18376    lt_compiler_flag="-o out/conftest2.$ac_objext"
18377    # Insert the option either (1) after the last *FLAGS variable, or
18378    # (2) before a word containing "conftest.", or (3) at the end.
18379    # Note that $ac_compile itself does not contain backslashes and begins
18380    # with a dollar sign (not a hyphen), so the echo should work correctly.
18381    lt_compile=`echo "$ac_compile" | $SED \
18382    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18383    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18384    -e 's:$: $lt_compiler_flag:'`
18385    (eval echo "\"\$as_me:18385: $lt_compile\"" >&5)
18386    (eval "$lt_compile" 2>out/conftest.err)
18387    ac_status=$?
18388    cat out/conftest.err >&5
18389    echo "$as_me:18389: \$? = $ac_status" >&5
18390    if (exit $ac_status) && test -s out/conftest2.$ac_objext
18391    then
18392      # The compiler can only warn and ignore the option if not recognized
18393      # So say no if there are warnings
18394      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
18395      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
18396      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
18397        lt_cv_prog_compiler_c_o_GCJ=yes
18398      fi
18399    fi
18400    chmod u+w . 2>&5
18401    $rm conftest*
18402    # SGI C++ compiler will create directory out/ii_files/ for
18403    # template instantiation
18404    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
18405    $rm out/* && rmdir out
18406    cd ..
18407    rmdir conftest
18408    $rm conftest*
18409
18410 fi
18411 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
18412 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
18413
18414
18415 hard_links="nottested"
18416 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
18417   # do not overwrite the value of need_locks provided by the user
18418   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
18419 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
18420   hard_links=yes
18421   $rm conftest*
18422   ln conftest.a conftest.b 2>/dev/null && hard_links=no
18423   touch conftest.a
18424   ln conftest.a conftest.b 2>&5 || hard_links=no
18425   ln conftest.a conftest.b 2>/dev/null && hard_links=no
18426   { echo "$as_me:$LINENO: result: $hard_links" >&5
18427 echo "${ECHO_T}$hard_links" >&6; }
18428   if test "$hard_links" = no; then
18429     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
18430 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
18431     need_locks=warn
18432   fi
18433 else
18434   need_locks=no
18435 fi
18436
18437 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18438 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
18439
18440   runpath_var=
18441   allow_undefined_flag_GCJ=
18442   enable_shared_with_static_runtimes_GCJ=no
18443   archive_cmds_GCJ=
18444   archive_expsym_cmds_GCJ=
18445   old_archive_From_new_cmds_GCJ=
18446   old_archive_from_expsyms_cmds_GCJ=
18447   export_dynamic_flag_spec_GCJ=
18448   whole_archive_flag_spec_GCJ=
18449   thread_safe_flag_spec_GCJ=
18450   hardcode_libdir_flag_spec_GCJ=
18451   hardcode_libdir_flag_spec_ld_GCJ=
18452   hardcode_libdir_separator_GCJ=
18453   hardcode_direct_GCJ=no
18454   hardcode_minus_L_GCJ=no
18455   hardcode_shlibpath_var_GCJ=unsupported
18456   link_all_deplibs_GCJ=unknown
18457   hardcode_automatic_GCJ=no
18458   module_cmds_GCJ=
18459   module_expsym_cmds_GCJ=
18460   always_export_symbols_GCJ=no
18461   export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
18462   # include_expsyms should be a list of space-separated symbols to be *always*
18463   # included in the symbol list
18464   include_expsyms_GCJ=
18465   # exclude_expsyms can be an extended regexp of symbols to exclude
18466   # it will be wrapped by ` (' and `)$', so one must not match beginning or
18467   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
18468   # as well as any symbol that contains `d'.
18469   exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
18470   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
18471   # platforms (ab)use it in PIC code, but their linkers get confused if
18472   # the symbol is explicitly referenced.  Since portable code cannot
18473   # rely on this symbol name, it's probably fine to never include it in
18474   # preloaded symbol tables.
18475   extract_expsyms_cmds=
18476   # Just being paranoid about ensuring that cc_basename is set.
18477   for cc_temp in $compiler""; do
18478   case $cc_temp in
18479     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18480     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18481     \-*) ;;
18482     *) break;;
18483   esac
18484 done
18485 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18486
18487   case $host_os in
18488   cygwin* | mingw* | pw32*)
18489     # FIXME: the MSVC++ port hasn't been tested in a loooong time
18490     # When not using gcc, we currently assume that we are using
18491     # Microsoft Visual C++.
18492     if test "$GCC" != yes; then
18493       with_gnu_ld=no
18494     fi
18495     ;;
18496   interix*)
18497     # we just hope/assume this is gcc and not c89 (= MSVC++)
18498     with_gnu_ld=yes
18499     ;;
18500   openbsd*)
18501     with_gnu_ld=no
18502     ;;
18503   esac
18504
18505   ld_shlibs_GCJ=yes
18506   if test "$with_gnu_ld" = yes; then
18507     # If archive_cmds runs LD, not CC, wlarc should be empty
18508     wlarc='${wl}'
18509
18510     # Set some defaults for GNU ld with shared library support. These
18511     # are reset later if shared libraries are not supported. Putting them
18512     # here allows them to be overridden if necessary.
18513     runpath_var=LD_RUN_PATH
18514     hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
18515     export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
18516     # ancient GNU ld didn't support --whole-archive et. al.
18517     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
18518         whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18519       else
18520         whole_archive_flag_spec_GCJ=
18521     fi
18522     supports_anon_versioning=no
18523     case `$LD -v 2>/dev/null` in
18524       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
18525       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
18526       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
18527       *\ 2.11.*) ;; # other 2.11 versions
18528       *) supports_anon_versioning=yes ;;
18529     esac
18530
18531     # See if GNU ld supports shared libraries.
18532     case $host_os in
18533     aix3* | aix4* | aix5*)
18534       # On AIX/PPC, the GNU linker is very broken
18535       if test "$host_cpu" != ia64; then
18536         ld_shlibs_GCJ=no
18537         cat <<EOF 1>&2
18538
18539 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
18540 *** to be unable to reliably create shared libraries on AIX.
18541 *** Therefore, libtool is disabling shared libraries support.  If you
18542 *** really care for shared libraries, you may want to modify your PATH
18543 *** so that a non-GNU linker is found, and then restart.
18544
18545 EOF
18546       fi
18547       ;;
18548
18549     amigaos*)
18550       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)'
18551       hardcode_libdir_flag_spec_GCJ='-L$libdir'
18552       hardcode_minus_L_GCJ=yes
18553
18554       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
18555       # that the semantics of dynamic libraries on AmigaOS, at least up
18556       # to version 4, is to share data among multiple programs linked
18557       # with the same dynamic library.  Since this doesn't match the
18558       # behavior of shared libraries on other platforms, we can't use
18559       # them.
18560       ld_shlibs_GCJ=no
18561       ;;
18562
18563     beos*)
18564       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18565         allow_undefined_flag_GCJ=unsupported
18566         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18567         # support --undefined.  This deserves some investigation.  FIXME
18568         archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18569       else
18570         ld_shlibs_GCJ=no
18571       fi
18572       ;;
18573
18574     cygwin* | mingw* | pw32*)
18575       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
18576       # as there is no search path for DLLs.
18577       hardcode_libdir_flag_spec_GCJ='-L$libdir'
18578       allow_undefined_flag_GCJ=unsupported
18579       always_export_symbols_GCJ=no
18580       enable_shared_with_static_runtimes_GCJ=yes
18581       export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
18582
18583       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
18584         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
18585         # If the export-symbols file already is a .def file (1st line
18586         # is EXPORTS), use it as is; otherwise, prepend...
18587         archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18588           cp $export_symbols $output_objdir/$soname.def;
18589         else
18590           echo EXPORTS > $output_objdir/$soname.def;
18591           cat $export_symbols >> $output_objdir/$soname.def;
18592         fi~
18593         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
18594       else
18595         ld_shlibs_GCJ=no
18596       fi
18597       ;;
18598
18599     interix[3-9]*)
18600       hardcode_direct_GCJ=no
18601       hardcode_shlibpath_var_GCJ=no
18602       hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18603       export_dynamic_flag_spec_GCJ='${wl}-E'
18604       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
18605       # Instead, shared libraries are loaded at an image base (0x10000000 by
18606       # default) and relocated if they conflict, which is a slow very memory
18607       # consuming and fragmenting process.  To avoid this, we pick a random,
18608       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
18609       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
18610       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'
18611       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'
18612       ;;
18613
18614     gnu* | linux* | k*bsd*-gnu)
18615       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18616         tmp_addflag=
18617         case $cc_basename,$host_cpu in
18618         pgcc*)                          # Portland Group C compiler
18619           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'
18620           tmp_addflag=' $pic_flag'
18621           ;;
18622         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
18623           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'
18624           tmp_addflag=' $pic_flag -Mnomain' ;;
18625         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
18626           tmp_addflag=' -i_dynamic' ;;
18627         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
18628           tmp_addflag=' -i_dynamic -nofor_main' ;;
18629         ifc* | ifort*)                  # Intel Fortran compiler
18630           tmp_addflag=' -nofor_main' ;;
18631         esac
18632         case `$CC -V 2>&1 | sed 5q` in
18633         *Sun\ C*)                       # Sun C 5.9
18634           whole_archive_flag_spec_GCJ='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
18635           tmp_sharedflag='-G' ;;
18636         *Sun\ F*)                       # Sun Fortran 8.3
18637           tmp_sharedflag='-G' ;;
18638         *)
18639           tmp_sharedflag='-shared' ;;
18640         esac
18641         archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18642
18643         if test $supports_anon_versioning = yes; then
18644           archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
18645   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
18646   $echo "local: *; };" >> $output_objdir/$libname.ver~
18647           $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
18648         fi
18649       else
18650         ld_shlibs_GCJ=no
18651       fi
18652       ;;
18653
18654     netbsd*)
18655       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18656         archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
18657         wlarc=
18658       else
18659         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18660         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18661       fi
18662       ;;
18663
18664     solaris*)
18665       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
18666         ld_shlibs_GCJ=no
18667         cat <<EOF 1>&2
18668
18669 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
18670 *** create shared libraries on Solaris systems.  Therefore, libtool
18671 *** is disabling shared libraries support.  We urge you to upgrade GNU
18672 *** binutils to release 2.9.1 or newer.  Another option is to modify
18673 *** your PATH or compiler configuration so that the native linker is
18674 *** used, and then restart.
18675
18676 EOF
18677       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18678         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18679         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18680       else
18681         ld_shlibs_GCJ=no
18682       fi
18683       ;;
18684
18685     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
18686       case `$LD -v 2>&1` in
18687         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
18688         ld_shlibs_GCJ=no
18689         cat <<_LT_EOF 1>&2
18690
18691 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
18692 *** reliably create shared libraries on SCO systems.  Therefore, libtool
18693 *** is disabling shared libraries support.  We urge you to upgrade GNU
18694 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
18695 *** your PATH or compiler configuration so that the native linker is
18696 *** used, and then restart.
18697
18698 _LT_EOF
18699         ;;
18700         *)
18701           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18702             hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
18703             archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
18704             archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
18705           else
18706             ld_shlibs_GCJ=no
18707           fi
18708         ;;
18709       esac
18710       ;;
18711
18712     sunos4*)
18713       archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18714       wlarc=
18715       hardcode_direct_GCJ=yes
18716       hardcode_shlibpath_var_GCJ=no
18717       ;;
18718
18719     *)
18720       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18721         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18722         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18723       else
18724         ld_shlibs_GCJ=no
18725       fi
18726       ;;
18727     esac
18728
18729     if test "$ld_shlibs_GCJ" = no; then
18730       runpath_var=
18731       hardcode_libdir_flag_spec_GCJ=
18732       export_dynamic_flag_spec_GCJ=
18733       whole_archive_flag_spec_GCJ=
18734     fi
18735   else
18736     # PORTME fill in a description of your system's linker (not GNU ld)
18737     case $host_os in
18738     aix3*)
18739       allow_undefined_flag_GCJ=unsupported
18740       always_export_symbols_GCJ=yes
18741       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'
18742       # Note: this linker hardcodes the directories in LIBPATH if there
18743       # are no directories specified by -L.
18744       hardcode_minus_L_GCJ=yes
18745       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
18746         # Neither direct hardcoding nor static linking is supported with a
18747         # broken collect2.
18748         hardcode_direct_GCJ=unsupported
18749       fi
18750       ;;
18751
18752     aix4* | aix5*)
18753       if test "$host_cpu" = ia64; then
18754         # On IA64, the linker does run time linking by default, so we don't
18755         # have to do anything special.
18756         aix_use_runtimelinking=no
18757         exp_sym_flag='-Bexport'
18758         no_entry_flag=""
18759       else
18760         # If we're using GNU nm, then we don't want the "-C" option.
18761         # -C means demangle to AIX nm, but means don't demangle with GNU nm
18762         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
18763           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'
18764         else
18765           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'
18766         fi
18767         aix_use_runtimelinking=no
18768
18769         # Test if we are trying to use run time linking or normal
18770         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18771         # need to do runtime linking.
18772         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
18773           for ld_flag in $LDFLAGS; do
18774           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
18775             aix_use_runtimelinking=yes
18776             break
18777           fi
18778           done
18779           ;;
18780         esac
18781
18782         exp_sym_flag='-bexport'
18783         no_entry_flag='-bnoentry'
18784       fi
18785
18786       # When large executables or shared objects are built, AIX ld can
18787       # have problems creating the table of contents.  If linking a library
18788       # or program results in "error TOC overflow" add -mminimal-toc to
18789       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
18790       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18791
18792       archive_cmds_GCJ=''
18793       hardcode_direct_GCJ=yes
18794       hardcode_libdir_separator_GCJ=':'
18795       link_all_deplibs_GCJ=yes
18796
18797       if test "$GCC" = yes; then
18798         case $host_os in aix4.[012]|aix4.[012].*)
18799         # We only want to do this on AIX 4.2 and lower, the check
18800         # below for broken collect2 doesn't work under 4.3+
18801           collect2name=`${CC} -print-prog-name=collect2`
18802           if test -f "$collect2name" && \
18803            strings "$collect2name" | grep resolve_lib_name >/dev/null
18804           then
18805           # We have reworked collect2
18806           :
18807           else
18808           # We have old collect2
18809           hardcode_direct_GCJ=unsupported
18810           # It fails to find uninstalled libraries when the uninstalled
18811           # path is not listed in the libpath.  Setting hardcode_minus_L
18812           # to unsupported forces relinking
18813           hardcode_minus_L_GCJ=yes
18814           hardcode_libdir_flag_spec_GCJ='-L$libdir'
18815           hardcode_libdir_separator_GCJ=
18816           fi
18817           ;;
18818         esac
18819         shared_flag='-shared'
18820         if test "$aix_use_runtimelinking" = yes; then
18821           shared_flag="$shared_flag "'${wl}-G'
18822         fi
18823       else
18824         # not using gcc
18825         if test "$host_cpu" = ia64; then
18826         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18827         # chokes on -Wl,-G. The following line is correct:
18828           shared_flag='-G'
18829         else
18830           if test "$aix_use_runtimelinking" = yes; then
18831             shared_flag='${wl}-G'
18832           else
18833             shared_flag='${wl}-bM:SRE'
18834           fi
18835         fi
18836       fi
18837
18838       # It seems that -bexpall does not export symbols beginning with
18839       # underscore (_), so it is better to generate a list of symbols to export.
18840       always_export_symbols_GCJ=yes
18841       if test "$aix_use_runtimelinking" = yes; then
18842         # Warning - without using the other runtime loading flags (-brtl),
18843         # -berok will link without error, but may produce a broken library.
18844         allow_undefined_flag_GCJ='-berok'
18845        # Determine the default libpath from the value encoded in an empty executable.
18846        cat >conftest.$ac_ext <<_ACEOF
18847 /* confdefs.h.  */
18848 _ACEOF
18849 cat confdefs.h >>conftest.$ac_ext
18850 cat >>conftest.$ac_ext <<_ACEOF
18851 /* end confdefs.h.  */
18852
18853 int
18854 main ()
18855 {
18856
18857   ;
18858   return 0;
18859 }
18860 _ACEOF
18861 rm -f conftest.$ac_objext conftest$ac_exeext
18862 if { (ac_try="$ac_link"
18863 case "(($ac_try" in
18864   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18865   *) ac_try_echo=$ac_try;;
18866 esac
18867 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18868   (eval "$ac_link") 2>conftest.er1
18869   ac_status=$?
18870   grep -v '^ *+' conftest.er1 >conftest.err
18871   rm -f conftest.er1
18872   cat conftest.err >&5
18873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18874   (exit $ac_status); } && {
18875          test -z "$ac_c_werror_flag" ||
18876          test ! -s conftest.err
18877        } && test -s conftest$ac_exeext &&
18878        $as_test_x conftest$ac_exeext; then
18879
18880 lt_aix_libpath_sed='
18881     /Import File Strings/,/^$/ {
18882         /^0/ {
18883             s/^0  *\(.*\)$/\1/
18884             p
18885         }
18886     }'
18887 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18888 # Check for a 64-bit object if we didn't find anything.
18889 if test -z "$aix_libpath"; then
18890   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18891 fi
18892 else
18893   echo "$as_me: failed program was:" >&5
18894 sed 's/^/| /' conftest.$ac_ext >&5
18895
18896
18897 fi
18898
18899 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18900       conftest$ac_exeext conftest.$ac_ext
18901 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18902
18903        hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
18904         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"
18905        else
18906         if test "$host_cpu" = ia64; then
18907           hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
18908           allow_undefined_flag_GCJ="-z nodefs"
18909           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"
18910         else
18911          # Determine the default libpath from the value encoded in an empty executable.
18912          cat >conftest.$ac_ext <<_ACEOF
18913 /* confdefs.h.  */
18914 _ACEOF
18915 cat confdefs.h >>conftest.$ac_ext
18916 cat >>conftest.$ac_ext <<_ACEOF
18917 /* end confdefs.h.  */
18918
18919 int
18920 main ()
18921 {
18922
18923   ;
18924   return 0;
18925 }
18926 _ACEOF
18927 rm -f conftest.$ac_objext conftest$ac_exeext
18928 if { (ac_try="$ac_link"
18929 case "(($ac_try" in
18930   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18931   *) ac_try_echo=$ac_try;;
18932 esac
18933 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18934   (eval "$ac_link") 2>conftest.er1
18935   ac_status=$?
18936   grep -v '^ *+' conftest.er1 >conftest.err
18937   rm -f conftest.er1
18938   cat conftest.err >&5
18939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18940   (exit $ac_status); } && {
18941          test -z "$ac_c_werror_flag" ||
18942          test ! -s conftest.err
18943        } && test -s conftest$ac_exeext &&
18944        $as_test_x conftest$ac_exeext; then
18945
18946 lt_aix_libpath_sed='
18947     /Import File Strings/,/^$/ {
18948         /^0/ {
18949             s/^0  *\(.*\)$/\1/
18950             p
18951         }
18952     }'
18953 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18954 # Check for a 64-bit object if we didn't find anything.
18955 if test -z "$aix_libpath"; then
18956   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18957 fi
18958 else
18959   echo "$as_me: failed program was:" >&5
18960 sed 's/^/| /' conftest.$ac_ext >&5
18961
18962
18963 fi
18964
18965 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18966       conftest$ac_exeext conftest.$ac_ext
18967 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18968
18969          hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
18970           # Warning - without using the other run time loading flags,
18971           # -berok will link without error, but may produce a broken library.
18972           no_undefined_flag_GCJ=' ${wl}-bernotok'
18973           allow_undefined_flag_GCJ=' ${wl}-berok'
18974           # Exported symbols can be pulled into shared objects from archives
18975           whole_archive_flag_spec_GCJ='$convenience'
18976           archive_cmds_need_lc_GCJ=yes
18977           # This is similar to how AIX traditionally builds its shared libraries.
18978           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'
18979         fi
18980       fi
18981       ;;
18982
18983     amigaos*)
18984       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)'
18985       hardcode_libdir_flag_spec_GCJ='-L$libdir'
18986       hardcode_minus_L_GCJ=yes
18987       # see comment about different semantics on the GNU ld section
18988       ld_shlibs_GCJ=no
18989       ;;
18990
18991     bsdi[45]*)
18992       export_dynamic_flag_spec_GCJ=-rdynamic
18993       ;;
18994
18995     cygwin* | mingw* | pw32*)
18996       # When not using gcc, we currently assume that we are using
18997       # Microsoft Visual C++.
18998       # hardcode_libdir_flag_spec is actually meaningless, as there is
18999       # no search path for DLLs.
19000       hardcode_libdir_flag_spec_GCJ=' '
19001       allow_undefined_flag_GCJ=unsupported
19002       # Tell ltmain to make .lib files, not .a files.
19003       libext=lib
19004       # Tell ltmain to make .dll files, not .so files.
19005       shrext_cmds=".dll"
19006       # FIXME: Setting linknames here is a bad hack.
19007       archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
19008       # The linker will automatically build a .lib file if we build a DLL.
19009       old_archive_From_new_cmds_GCJ='true'
19010       # FIXME: Should let the user specify the lib program.
19011       old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
19012       fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
19013       enable_shared_with_static_runtimes_GCJ=yes
19014       ;;
19015
19016     darwin* | rhapsody*)
19017       case $host_os in
19018         rhapsody* | darwin1.[012])
19019          allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
19020          ;;
19021        *) # Darwin 1.3 on
19022          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
19023            allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
19024          else
19025            case ${MACOSX_DEPLOYMENT_TARGET} in
19026              10.[012])
19027                allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
19028                ;;
19029              10.*)
19030                allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
19031                ;;
19032            esac
19033          fi
19034          ;;
19035       esac
19036       archive_cmds_need_lc_GCJ=no
19037       hardcode_direct_GCJ=no
19038       hardcode_automatic_GCJ=yes
19039       hardcode_shlibpath_var_GCJ=unsupported
19040       whole_archive_flag_spec_GCJ=''
19041       link_all_deplibs_GCJ=yes
19042     if test "$GCC" = yes ; then
19043         output_verbose_link_cmd='echo'
19044         archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
19045       module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
19046       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
19047       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}'
19048       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}'
19049     else
19050       case $cc_basename in
19051         xlc*)
19052          output_verbose_link_cmd='echo'
19053          archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
19054          module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
19055           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
19056          archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
19057           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}'
19058           ;;
19059        *)
19060          ld_shlibs_GCJ=no
19061           ;;
19062       esac
19063     fi
19064       ;;
19065
19066     dgux*)
19067       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19068       hardcode_libdir_flag_spec_GCJ='-L$libdir'
19069       hardcode_shlibpath_var_GCJ=no
19070       ;;
19071
19072     freebsd1*)
19073       ld_shlibs_GCJ=no
19074       ;;
19075
19076     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
19077     # support.  Future versions do this automatically, but an explicit c++rt0.o
19078     # does not break anything, and helps significantly (at the cost of a little
19079     # extra space).
19080     freebsd2.2*)
19081       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
19082       hardcode_libdir_flag_spec_GCJ='-R$libdir'
19083       hardcode_direct_GCJ=yes
19084       hardcode_shlibpath_var_GCJ=no
19085       ;;
19086
19087     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
19088     freebsd2*)
19089       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19090       hardcode_direct_GCJ=yes
19091       hardcode_minus_L_GCJ=yes
19092       hardcode_shlibpath_var_GCJ=no
19093       ;;
19094
19095     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
19096     freebsd* | dragonfly*)
19097       archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
19098       hardcode_libdir_flag_spec_GCJ='-R$libdir'
19099       hardcode_direct_GCJ=yes
19100       hardcode_shlibpath_var_GCJ=no
19101       ;;
19102
19103     hpux9*)
19104       if test "$GCC" = yes; then
19105         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'
19106       else
19107         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'
19108       fi
19109       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
19110       hardcode_libdir_separator_GCJ=:
19111       hardcode_direct_GCJ=yes
19112
19113       # hardcode_minus_L: Not really in the search PATH,
19114       # but as the default location of the library.
19115       hardcode_minus_L_GCJ=yes
19116       export_dynamic_flag_spec_GCJ='${wl}-E'
19117       ;;
19118
19119     hpux10*)
19120       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
19121         archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
19122       else
19123         archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
19124       fi
19125       if test "$with_gnu_ld" = no; then
19126         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
19127         hardcode_libdir_separator_GCJ=:
19128
19129         hardcode_direct_GCJ=yes
19130         export_dynamic_flag_spec_GCJ='${wl}-E'
19131
19132         # hardcode_minus_L: Not really in the search PATH,
19133         # but as the default location of the library.
19134         hardcode_minus_L_GCJ=yes
19135       fi
19136       ;;
19137
19138     hpux11*)
19139       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
19140         case $host_cpu in
19141         hppa*64*)
19142           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19143           ;;
19144         ia64*)
19145           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
19146           ;;
19147         *)
19148           archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
19149           ;;
19150         esac
19151       else
19152         case $host_cpu in
19153         hppa*64*)
19154           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19155           ;;
19156         ia64*)
19157           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
19158           ;;
19159         *)
19160           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
19161           ;;
19162         esac
19163       fi
19164       if test "$with_gnu_ld" = no; then
19165         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
19166         hardcode_libdir_separator_GCJ=:
19167
19168         case $host_cpu in
19169         hppa*64*|ia64*)
19170           hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
19171           hardcode_direct_GCJ=no
19172           hardcode_shlibpath_var_GCJ=no
19173           ;;
19174         *)
19175           hardcode_direct_GCJ=yes
19176           export_dynamic_flag_spec_GCJ='${wl}-E'
19177
19178           # hardcode_minus_L: Not really in the search PATH,
19179           # but as the default location of the library.
19180           hardcode_minus_L_GCJ=yes
19181           ;;
19182         esac
19183       fi
19184       ;;
19185
19186     irix5* | irix6* | nonstopux*)
19187       if test "$GCC" = yes; then
19188         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'
19189       else
19190         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'
19191         hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
19192       fi
19193       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
19194       hardcode_libdir_separator_GCJ=:
19195       link_all_deplibs_GCJ=yes
19196       ;;
19197
19198     netbsd*)
19199       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19200         archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
19201       else
19202         archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
19203       fi
19204       hardcode_libdir_flag_spec_GCJ='-R$libdir'
19205       hardcode_direct_GCJ=yes
19206       hardcode_shlibpath_var_GCJ=no
19207       ;;
19208
19209     newsos6)
19210       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19211       hardcode_direct_GCJ=yes
19212       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
19213       hardcode_libdir_separator_GCJ=:
19214       hardcode_shlibpath_var_GCJ=no
19215       ;;
19216
19217     openbsd*)
19218       if test -f /usr/libexec/ld.so; then
19219         hardcode_direct_GCJ=yes
19220         hardcode_shlibpath_var_GCJ=no
19221         if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19222           archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
19223           archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
19224           hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
19225           export_dynamic_flag_spec_GCJ='${wl}-E'
19226         else
19227           case $host_os in
19228            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
19229              archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19230              hardcode_libdir_flag_spec_GCJ='-R$libdir'
19231              ;;
19232            *)
19233              archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
19234              hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
19235              ;;
19236           esac
19237         fi
19238       else
19239         ld_shlibs_GCJ=no
19240       fi
19241       ;;
19242
19243     os2*)
19244       hardcode_libdir_flag_spec_GCJ='-L$libdir'
19245       hardcode_minus_L_GCJ=yes
19246       allow_undefined_flag_GCJ=unsupported
19247       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'
19248       old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
19249       ;;
19250
19251     osf3*)
19252       if test "$GCC" = yes; then
19253         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
19254         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'
19255       else
19256         allow_undefined_flag_GCJ=' -expect_unresolved \*'
19257         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'
19258       fi
19259       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
19260       hardcode_libdir_separator_GCJ=:
19261       ;;
19262
19263     osf4* | osf5*)      # as osf3* with the addition of -msym flag
19264       if test "$GCC" = yes; then
19265         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
19266         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'
19267         hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
19268       else
19269         allow_undefined_flag_GCJ=' -expect_unresolved \*'
19270         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'
19271         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~
19272         $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'
19273
19274         # Both c and cxx compiler support -rpath directly
19275         hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
19276       fi
19277       hardcode_libdir_separator_GCJ=:
19278       ;;
19279
19280     solaris*)
19281       no_undefined_flag_GCJ=' -z text'
19282       if test "$GCC" = yes; then
19283         wlarc='${wl}'
19284         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19285         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19286           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
19287       else
19288         wlarc=''
19289         archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
19290         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19291         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
19292       fi
19293       hardcode_libdir_flag_spec_GCJ='-R$libdir'
19294       hardcode_shlibpath_var_GCJ=no
19295       case $host_os in
19296       solaris2.[0-5] | solaris2.[0-5].*) ;;
19297       *)
19298         # The compiler driver will combine and reorder linker options,
19299         # but understands `-z linker_flag'.  GCC discards it without `$wl',
19300         # but is careful enough not to reorder.
19301         # Supported since Solaris 2.6 (maybe 2.5.1?)
19302         if test "$GCC" = yes; then
19303           whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
19304         else
19305           whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
19306         fi
19307         ;;
19308       esac
19309       link_all_deplibs_GCJ=yes
19310       ;;
19311
19312     sunos4*)
19313       if test "x$host_vendor" = xsequent; then
19314         # Use $CC to link under sequent, because it throws in some extra .o
19315         # files that make .init and .fini sections work.
19316         archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
19317       else
19318         archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
19319       fi
19320       hardcode_libdir_flag_spec_GCJ='-L$libdir'
19321       hardcode_direct_GCJ=yes
19322       hardcode_minus_L_GCJ=yes
19323       hardcode_shlibpath_var_GCJ=no
19324       ;;
19325
19326     sysv4)
19327       case $host_vendor in
19328         sni)
19329           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19330           hardcode_direct_GCJ=yes # is this really true???
19331         ;;
19332         siemens)
19333           ## LD is ld it makes a PLAMLIB
19334           ## CC just makes a GrossModule.
19335           archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
19336           reload_cmds_GCJ='$CC -r -o $output$reload_objs'
19337           hardcode_direct_GCJ=no
19338         ;;
19339         motorola)
19340           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19341           hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
19342         ;;
19343       esac
19344       runpath_var='LD_RUN_PATH'
19345       hardcode_shlibpath_var_GCJ=no
19346       ;;
19347
19348     sysv4.3*)
19349       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19350       hardcode_shlibpath_var_GCJ=no
19351       export_dynamic_flag_spec_GCJ='-Bexport'
19352       ;;
19353
19354     sysv4*MP*)
19355       if test -d /usr/nec; then
19356         archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19357         hardcode_shlibpath_var_GCJ=no
19358         runpath_var=LD_RUN_PATH
19359         hardcode_runpath_var=yes
19360         ld_shlibs_GCJ=yes
19361       fi
19362       ;;
19363
19364     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
19365       no_undefined_flag_GCJ='${wl}-z,text'
19366       archive_cmds_need_lc_GCJ=no
19367       hardcode_shlibpath_var_GCJ=no
19368       runpath_var='LD_RUN_PATH'
19369
19370       if test "$GCC" = yes; then
19371         archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19372         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19373       else
19374         archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19375         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19376       fi
19377       ;;
19378
19379     sysv5* | sco3.2v5* | sco5v6*)
19380       # Note: We can NOT use -z defs as we might desire, because we do not
19381       # link with -lc, and that would cause any symbols used from libc to
19382       # always be unresolved, which means just about no library would
19383       # ever link correctly.  If we're not using GNU ld we use -z text
19384       # though, which does catch some bad symbols but isn't as heavy-handed
19385       # as -z defs.
19386       no_undefined_flag_GCJ='${wl}-z,text'
19387       allow_undefined_flag_GCJ='${wl}-z,nodefs'
19388       archive_cmds_need_lc_GCJ=no
19389       hardcode_shlibpath_var_GCJ=no
19390       hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
19391       hardcode_libdir_separator_GCJ=':'
19392       link_all_deplibs_GCJ=yes
19393       export_dynamic_flag_spec_GCJ='${wl}-Bexport'
19394       runpath_var='LD_RUN_PATH'
19395
19396       if test "$GCC" = yes; then
19397         archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19398         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19399       else
19400         archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19401         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19402       fi
19403       ;;
19404
19405     uts4*)
19406       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19407       hardcode_libdir_flag_spec_GCJ='-L$libdir'
19408       hardcode_shlibpath_var_GCJ=no
19409       ;;
19410
19411     *)
19412       ld_shlibs_GCJ=no
19413       ;;
19414     esac
19415   fi
19416
19417 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
19418 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
19419 test "$ld_shlibs_GCJ" = no && can_build_shared=no
19420
19421 #
19422 # Do we need to explicitly link libc?
19423 #
19424 case "x$archive_cmds_need_lc_GCJ" in
19425 x|xyes)
19426   # Assume -lc should be added
19427   archive_cmds_need_lc_GCJ=yes
19428
19429   if test "$enable_shared" = yes && test "$GCC" = yes; then
19430     case $archive_cmds_GCJ in
19431     *'~'*)
19432       # FIXME: we may have to deal with multi-command sequences.
19433       ;;
19434     '$CC '*)
19435       # Test whether the compiler implicitly links with -lc since on some
19436       # systems, -lgcc has to come before -lc. If gcc already passes -lc
19437       # to ld, don't add -lc before -lgcc.
19438       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
19439 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
19440       $rm conftest*
19441       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19442
19443       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19444   (eval $ac_compile) 2>&5
19445   ac_status=$?
19446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19447   (exit $ac_status); } 2>conftest.err; then
19448         soname=conftest
19449         lib=conftest
19450         libobjs=conftest.$ac_objext
19451         deplibs=
19452         wl=$lt_prog_compiler_wl_GCJ
19453         pic_flag=$lt_prog_compiler_pic_GCJ
19454         compiler_flags=-v
19455         linker_flags=-v
19456         verstring=
19457         output_objdir=.
19458         libname=conftest
19459         lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
19460         allow_undefined_flag_GCJ=
19461         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
19462   (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
19463   ac_status=$?
19464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19465   (exit $ac_status); }
19466         then
19467           archive_cmds_need_lc_GCJ=no
19468         else
19469           archive_cmds_need_lc_GCJ=yes
19470         fi
19471         allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
19472       else
19473         cat conftest.err 1>&5
19474       fi
19475       $rm conftest*
19476       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
19477 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
19478       ;;
19479     esac
19480   fi
19481   ;;
19482 esac
19483
19484 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
19485 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
19486 library_names_spec=
19487 libname_spec='lib$name'
19488 soname_spec=
19489 shrext_cmds=".so"
19490 postinstall_cmds=
19491 postuninstall_cmds=
19492 finish_cmds=
19493 finish_eval=
19494 shlibpath_var=
19495 shlibpath_overrides_runpath=unknown
19496 version_type=none
19497 dynamic_linker="$host_os ld.so"
19498 sys_lib_dlsearch_path_spec="/lib /usr/lib"
19499
19500 need_lib_prefix=unknown
19501 hardcode_into_libs=no
19502
19503 # when you set need_version to no, make sure it does not cause -set_version
19504 # flags to be left without arguments
19505 need_version=unknown
19506
19507 case $host_os in
19508 aix3*)
19509   version_type=linux
19510   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
19511   shlibpath_var=LIBPATH
19512
19513   # AIX 3 has no versioning support, so we append a major version to the name.
19514   soname_spec='${libname}${release}${shared_ext}$major'
19515   ;;
19516
19517 aix4* | aix5*)
19518   version_type=linux
19519   need_lib_prefix=no
19520   need_version=no
19521   hardcode_into_libs=yes
19522   if test "$host_cpu" = ia64; then
19523     # AIX 5 supports IA64
19524     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
19525     shlibpath_var=LD_LIBRARY_PATH
19526   else
19527     # With GCC up to 2.95.x, collect2 would create an import file
19528     # for dependence libraries.  The import file would start with
19529     # the line `#! .'.  This would cause the generated library to
19530     # depend on `.', always an invalid library.  This was fixed in
19531     # development snapshots of GCC prior to 3.0.
19532     case $host_os in
19533       aix4 | aix4.[01] | aix4.[01].*)
19534       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
19535            echo ' yes '
19536            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
19537         :
19538       else
19539         can_build_shared=no
19540       fi
19541       ;;
19542     esac
19543     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
19544     # soname into executable. Probably we can add versioning support to
19545     # collect2, so additional links can be useful in future.
19546     if test "$aix_use_runtimelinking" = yes; then
19547       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
19548       # instead of lib<name>.a to let people know that these are not
19549       # typical AIX shared libraries.
19550       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19551     else
19552       # We preserve .a as extension for shared libraries through AIX4.2
19553       # and later when we are not doing run time linking.
19554       library_names_spec='${libname}${release}.a $libname.a'
19555       soname_spec='${libname}${release}${shared_ext}$major'
19556     fi
19557     shlibpath_var=LIBPATH
19558   fi
19559   ;;
19560
19561 amigaos*)
19562   library_names_spec='$libname.ixlibrary $libname.a'
19563   # Create ${libname}_ixlibrary.a entries in /sys/libs.
19564   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'
19565   ;;
19566
19567 beos*)
19568   library_names_spec='${libname}${shared_ext}'
19569   dynamic_linker="$host_os ld.so"
19570   shlibpath_var=LIBRARY_PATH
19571   ;;
19572
19573 bsdi[45]*)
19574   version_type=linux
19575   need_version=no
19576   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19577   soname_spec='${libname}${release}${shared_ext}$major'
19578   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
19579   shlibpath_var=LD_LIBRARY_PATH
19580   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
19581   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
19582   # the default ld.so.conf also contains /usr/contrib/lib and
19583   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
19584   # libtool to hard-code these into programs
19585   ;;
19586
19587 cygwin* | mingw* | pw32*)
19588   version_type=windows
19589   shrext_cmds=".dll"
19590   need_version=no
19591   need_lib_prefix=no
19592
19593   case $GCC,$host_os in
19594   yes,cygwin* | yes,mingw* | yes,pw32*)
19595     library_names_spec='$libname.dll.a'
19596     # DLL is installed to $(libdir)/../bin by postinstall_cmds
19597     postinstall_cmds='base_file=`basename \${file}`~
19598       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
19599       dldir=$destdir/`dirname \$dlpath`~
19600       test -d \$dldir || mkdir -p \$dldir~
19601       $install_prog $dir/$dlname \$dldir/$dlname~
19602       chmod a+x \$dldir/$dlname'
19603     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
19604       dlpath=$dir/\$dldll~
19605        $rm \$dlpath'
19606     shlibpath_overrides_runpath=yes
19607
19608     case $host_os in
19609     cygwin*)
19610       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
19611       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19612       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
19613       ;;
19614     mingw*)
19615       # MinGW DLLs use traditional 'lib' prefix
19616       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19617       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
19618       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
19619         # It is most probably a Windows format PATH printed by
19620         # mingw gcc, but we are running on Cygwin. Gcc prints its search
19621         # path with ; separators, and with drive letters. We can handle the
19622         # drive letters (cygwin fileutils understands them), so leave them,
19623         # especially as we might pass files found there to a mingw objdump,
19624         # which wouldn't understand a cygwinified path. Ahh.
19625         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19626       else
19627         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
19628       fi
19629       ;;
19630     pw32*)
19631       # pw32 DLLs use 'pw' prefix rather than 'lib'
19632       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19633       ;;
19634     esac
19635     ;;
19636
19637   *)
19638     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
19639     ;;
19640   esac
19641   dynamic_linker='Win32 ld.exe'
19642   # FIXME: first we should search . and the directory the executable is in
19643   shlibpath_var=PATH
19644   ;;
19645
19646 darwin* | rhapsody*)
19647   dynamic_linker="$host_os dyld"
19648   version_type=darwin
19649   need_lib_prefix=no
19650   need_version=no
19651   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
19652   soname_spec='${libname}${release}${major}$shared_ext'
19653   shlibpath_overrides_runpath=yes
19654   shlibpath_var=DYLD_LIBRARY_PATH
19655   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
19656
19657   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
19658   ;;
19659
19660 dgux*)
19661   version_type=linux
19662   need_lib_prefix=no
19663   need_version=no
19664   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
19665   soname_spec='${libname}${release}${shared_ext}$major'
19666   shlibpath_var=LD_LIBRARY_PATH
19667   ;;
19668
19669 freebsd1*)
19670   dynamic_linker=no
19671   ;;
19672
19673 freebsd* | dragonfly*)
19674   # DragonFly does not have aout.  When/if they implement a new
19675   # versioning mechanism, adjust this.
19676   if test -x /usr/bin/objformat; then
19677     objformat=`/usr/bin/objformat`
19678   else
19679     case $host_os in
19680     freebsd[123]*) objformat=aout ;;
19681     *) objformat=elf ;;
19682     esac
19683   fi
19684   version_type=freebsd-$objformat
19685   case $version_type in
19686     freebsd-elf*)
19687       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19688       need_version=no
19689       need_lib_prefix=no
19690       ;;
19691     freebsd-*)
19692       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
19693       need_version=yes
19694       ;;
19695   esac
19696   shlibpath_var=LD_LIBRARY_PATH
19697   case $host_os in
19698   freebsd2*)
19699     shlibpath_overrides_runpath=yes
19700     ;;
19701   freebsd3.[01]* | freebsdelf3.[01]*)
19702     shlibpath_overrides_runpath=yes
19703     hardcode_into_libs=yes
19704     ;;
19705   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
19706   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
19707     shlibpath_overrides_runpath=no
19708     hardcode_into_libs=yes
19709     ;;
19710   *) # from 4.6 on, and DragonFly
19711     shlibpath_overrides_runpath=yes
19712     hardcode_into_libs=yes
19713     ;;
19714   esac
19715   ;;
19716
19717 gnu*)
19718   version_type=linux
19719   need_lib_prefix=no
19720   need_version=no
19721   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
19722   soname_spec='${libname}${release}${shared_ext}$major'
19723   shlibpath_var=LD_LIBRARY_PATH
19724   hardcode_into_libs=yes
19725   ;;
19726
19727 hpux9* | hpux10* | hpux11*)
19728   # Give a soname corresponding to the major version so that dld.sl refuses to
19729   # link against other versions.
19730   version_type=sunos
19731   need_lib_prefix=no
19732   need_version=no
19733   case $host_cpu in
19734   ia64*)
19735     shrext_cmds='.so'
19736     hardcode_into_libs=yes
19737     dynamic_linker="$host_os dld.so"
19738     shlibpath_var=LD_LIBRARY_PATH
19739     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19740     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19741     soname_spec='${libname}${release}${shared_ext}$major'
19742     if test "X$HPUX_IA64_MODE" = X32; then
19743       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
19744     else
19745       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
19746     fi
19747     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19748     ;;
19749    hppa*64*)
19750      shrext_cmds='.sl'
19751      hardcode_into_libs=yes
19752      dynamic_linker="$host_os dld.sl"
19753      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
19754      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19755      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19756      soname_spec='${libname}${release}${shared_ext}$major'
19757      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
19758      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19759      ;;
19760    *)
19761     shrext_cmds='.sl'
19762     dynamic_linker="$host_os dld.sl"
19763     shlibpath_var=SHLIB_PATH
19764     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
19765     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19766     soname_spec='${libname}${release}${shared_ext}$major'
19767     ;;
19768   esac
19769   # HP-UX runs *really* slowly unless shared libraries are mode 555.
19770   postinstall_cmds='chmod 555 $lib'
19771   ;;
19772
19773 interix[3-9]*)
19774   version_type=linux
19775   need_lib_prefix=no
19776   need_version=no
19777   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19778   soname_spec='${libname}${release}${shared_ext}$major'
19779   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
19780   shlibpath_var=LD_LIBRARY_PATH
19781   shlibpath_overrides_runpath=no
19782   hardcode_into_libs=yes
19783   ;;
19784
19785 irix5* | irix6* | nonstopux*)
19786   case $host_os in
19787     nonstopux*) version_type=nonstopux ;;
19788     *)
19789         if test "$lt_cv_prog_gnu_ld" = yes; then
19790                 version_type=linux
19791         else
19792                 version_type=irix
19793         fi ;;
19794   esac
19795   need_lib_prefix=no
19796   need_version=no
19797   soname_spec='${libname}${release}${shared_ext}$major'
19798   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
19799   case $host_os in
19800   irix5* | nonstopux*)
19801     libsuff= shlibsuff=
19802     ;;
19803   *)
19804     case $LD in # libtool.m4 will add one of these switches to LD
19805     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
19806       libsuff= shlibsuff= libmagic=32-bit;;
19807     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
19808       libsuff=32 shlibsuff=N32 libmagic=N32;;
19809     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
19810       libsuff=64 shlibsuff=64 libmagic=64-bit;;
19811     *) libsuff= shlibsuff= libmagic=never-match;;
19812     esac
19813     ;;
19814   esac
19815   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
19816   shlibpath_overrides_runpath=no
19817   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
19818   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
19819   hardcode_into_libs=yes
19820   ;;
19821
19822 # No shared lib support for Linux oldld, aout, or coff.
19823 linux*oldld* | linux*aout* | linux*coff*)
19824   dynamic_linker=no
19825   ;;
19826
19827 # This must be Linux ELF.
19828 linux* | k*bsd*-gnu)
19829   version_type=linux
19830   need_lib_prefix=no
19831   need_version=no
19832   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19833   soname_spec='${libname}${release}${shared_ext}$major'
19834   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
19835   shlibpath_var=LD_LIBRARY_PATH
19836   shlibpath_overrides_runpath=no
19837   # This implies no fast_install, which is unacceptable.
19838   # Some rework will be needed to allow for fast_install
19839   # before this can be enabled.
19840   hardcode_into_libs=yes
19841   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
19842   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
19843
19844   # Append ld.so.conf contents to the search path
19845   if test -f /etc/ld.so.conf; then
19846     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[      ]*hwcap[        ]/d;s/[:,       ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
19847     sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
19848   fi
19849
19850   # We used to test for /lib/ld.so.1 and disable shared libraries on
19851   # powerpc, because MkLinux only supported shared libraries with the
19852   # GNU dynamic linker.  Since this was broken with cross compilers,
19853   # most powerpc-linux boxes support dynamic linking these days and
19854   # people can always --disable-shared, the test was removed, and we
19855   # assume the GNU/Linux dynamic linker is in use.
19856   dynamic_linker='GNU/Linux ld.so'
19857   ;;
19858
19859 netbsd*)
19860   version_type=sunos
19861   need_lib_prefix=no
19862   need_version=no
19863   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19864     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19865     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19866     dynamic_linker='NetBSD (a.out) ld.so'
19867   else
19868     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19869     soname_spec='${libname}${release}${shared_ext}$major'
19870     dynamic_linker='NetBSD ld.elf_so'
19871   fi
19872   shlibpath_var=LD_LIBRARY_PATH
19873   shlibpath_overrides_runpath=yes
19874   hardcode_into_libs=yes
19875   ;;
19876
19877 newsos6)
19878   version_type=linux
19879   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19880   shlibpath_var=LD_LIBRARY_PATH
19881   shlibpath_overrides_runpath=yes
19882   ;;
19883
19884 nto-qnx*)
19885   version_type=linux
19886   need_lib_prefix=no
19887   need_version=no
19888   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19889   soname_spec='${libname}${release}${shared_ext}$major'
19890   shlibpath_var=LD_LIBRARY_PATH
19891   shlibpath_overrides_runpath=yes
19892   ;;
19893
19894 openbsd*)
19895   version_type=sunos
19896   sys_lib_dlsearch_path_spec="/usr/lib"
19897   need_lib_prefix=no
19898   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
19899   case $host_os in
19900     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
19901     *)                         need_version=no  ;;
19902   esac
19903   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19904   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19905   shlibpath_var=LD_LIBRARY_PATH
19906   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19907     case $host_os in
19908       openbsd2.[89] | openbsd2.[89].*)
19909         shlibpath_overrides_runpath=no
19910         ;;
19911       *)
19912         shlibpath_overrides_runpath=yes
19913         ;;
19914       esac
19915   else
19916     shlibpath_overrides_runpath=yes
19917   fi
19918   ;;
19919
19920 os2*)
19921   libname_spec='$name'
19922   shrext_cmds=".dll"
19923   need_lib_prefix=no
19924   library_names_spec='$libname${shared_ext} $libname.a'
19925   dynamic_linker='OS/2 ld.exe'
19926   shlibpath_var=LIBPATH
19927   ;;
19928
19929 osf3* | osf4* | osf5*)
19930   version_type=osf
19931   need_lib_prefix=no
19932   need_version=no
19933   soname_spec='${libname}${release}${shared_ext}$major'
19934   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19935   shlibpath_var=LD_LIBRARY_PATH
19936   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
19937   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
19938   ;;
19939
19940 rdos*)
19941   dynamic_linker=no
19942   ;;
19943
19944 solaris*)
19945   version_type=linux
19946   need_lib_prefix=no
19947   need_version=no
19948   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19949   soname_spec='${libname}${release}${shared_ext}$major'
19950   shlibpath_var=LD_LIBRARY_PATH
19951   shlibpath_overrides_runpath=yes
19952   hardcode_into_libs=yes
19953   # ldd complains unless libraries are executable
19954   postinstall_cmds='chmod +x $lib'
19955   ;;
19956
19957 sunos4*)
19958   version_type=sunos
19959   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19960   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
19961   shlibpath_var=LD_LIBRARY_PATH
19962   shlibpath_overrides_runpath=yes
19963   if test "$with_gnu_ld" = yes; then
19964     need_lib_prefix=no
19965   fi
19966   need_version=yes
19967   ;;
19968
19969 sysv4 | sysv4.3*)
19970   version_type=linux
19971   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19972   soname_spec='${libname}${release}${shared_ext}$major'
19973   shlibpath_var=LD_LIBRARY_PATH
19974   case $host_vendor in
19975     sni)
19976       shlibpath_overrides_runpath=no
19977       need_lib_prefix=no
19978       export_dynamic_flag_spec='${wl}-Blargedynsym'
19979       runpath_var=LD_RUN_PATH
19980       ;;
19981     siemens)
19982       need_lib_prefix=no
19983       ;;
19984     motorola)
19985       need_lib_prefix=no
19986       need_version=no
19987       shlibpath_overrides_runpath=no
19988       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
19989       ;;
19990   esac
19991   ;;
19992
19993 sysv4*MP*)
19994   if test -d /usr/nec ;then
19995     version_type=linux
19996     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
19997     soname_spec='$libname${shared_ext}.$major'
19998     shlibpath_var=LD_LIBRARY_PATH
19999   fi
20000   ;;
20001
20002 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
20003   version_type=freebsd-elf
20004   need_lib_prefix=no
20005   need_version=no
20006   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20007   soname_spec='${libname}${release}${shared_ext}$major'
20008   shlibpath_var=LD_LIBRARY_PATH
20009   hardcode_into_libs=yes
20010   if test "$with_gnu_ld" = yes; then
20011     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
20012     shlibpath_overrides_runpath=no
20013   else
20014     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
20015     shlibpath_overrides_runpath=yes
20016     case $host_os in
20017       sco3.2v5*)
20018         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
20019         ;;
20020     esac
20021   fi
20022   sys_lib_dlsearch_path_spec='/usr/lib'
20023   ;;
20024
20025 uts4*)
20026   version_type=linux
20027   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20028   soname_spec='${libname}${release}${shared_ext}$major'
20029   shlibpath_var=LD_LIBRARY_PATH
20030   ;;
20031
20032 *)
20033   dynamic_linker=no
20034   ;;
20035 esac
20036 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
20037 echo "${ECHO_T}$dynamic_linker" >&6; }
20038 test "$dynamic_linker" = no && can_build_shared=no
20039
20040 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
20041 if test "$GCC" = yes; then
20042   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
20043 fi
20044
20045 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
20046 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
20047 hardcode_action_GCJ=
20048 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
20049    test -n "$runpath_var_GCJ" || \
20050    test "X$hardcode_automatic_GCJ" = "Xyes" ; then
20051
20052   # We can hardcode non-existant directories.
20053   if test "$hardcode_direct_GCJ" != no &&
20054      # If the only mechanism to avoid hardcoding is shlibpath_var, we
20055      # have to relink, otherwise we might link with an installed library
20056      # when we should be linking with a yet-to-be-installed one
20057      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
20058      test "$hardcode_minus_L_GCJ" != no; then
20059     # Linking always hardcodes the temporary library directory.
20060     hardcode_action_GCJ=relink
20061   else
20062     # We can link without hardcoding, and we can hardcode nonexisting dirs.
20063     hardcode_action_GCJ=immediate
20064   fi
20065 else
20066   # We cannot hardcode anything, or else we can only hardcode existing
20067   # directories.
20068   hardcode_action_GCJ=unsupported
20069 fi
20070 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
20071 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
20072
20073 if test "$hardcode_action_GCJ" = relink; then
20074   # Fast installation is not supported
20075   enable_fast_install=no
20076 elif test "$shlibpath_overrides_runpath" = yes ||
20077      test "$enable_shared" = no; then
20078   # Fast installation is not necessary
20079   enable_fast_install=needless
20080 fi
20081
20082
20083 # The else clause should only fire when bootstrapping the
20084 # libtool distribution, otherwise you forgot to ship ltmain.sh
20085 # with your package, and you will get complaints that there are
20086 # no rules to generate ltmain.sh.
20087 if test -f "$ltmain"; then
20088   # See if we are running on zsh, and set the options which allow our commands through
20089   # without removal of \ escapes.
20090   if test -n "${ZSH_VERSION+set}" ; then
20091     setopt NO_GLOB_SUBST
20092   fi
20093   # Now quote all the things that may contain metacharacters while being
20094   # careful not to overquote the AC_SUBSTed values.  We take copies of the
20095   # variables and quote the copies for generation of the libtool script.
20096   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
20097     SED SHELL STRIP \
20098     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20099     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20100     deplibs_check_method reload_flag reload_cmds need_locks \
20101     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20102     lt_cv_sys_global_symbol_to_c_name_address \
20103     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20104     old_postinstall_cmds old_postuninstall_cmds \
20105     compiler_GCJ \
20106     CC_GCJ \
20107     LD_GCJ \
20108     lt_prog_compiler_wl_GCJ \
20109     lt_prog_compiler_pic_GCJ \
20110     lt_prog_compiler_static_GCJ \
20111     lt_prog_compiler_no_builtin_flag_GCJ \
20112     export_dynamic_flag_spec_GCJ \
20113     thread_safe_flag_spec_GCJ \
20114     whole_archive_flag_spec_GCJ \
20115     enable_shared_with_static_runtimes_GCJ \
20116     old_archive_cmds_GCJ \
20117     old_archive_from_new_cmds_GCJ \
20118     predep_objects_GCJ \
20119     postdep_objects_GCJ \
20120     predeps_GCJ \
20121     postdeps_GCJ \
20122     compiler_lib_search_path_GCJ \
20123     archive_cmds_GCJ \
20124     archive_expsym_cmds_GCJ \
20125     postinstall_cmds_GCJ \
20126     postuninstall_cmds_GCJ \
20127     old_archive_from_expsyms_cmds_GCJ \
20128     allow_undefined_flag_GCJ \
20129     no_undefined_flag_GCJ \
20130     export_symbols_cmds_GCJ \
20131     hardcode_libdir_flag_spec_GCJ \
20132     hardcode_libdir_flag_spec_ld_GCJ \
20133     hardcode_libdir_separator_GCJ \
20134     hardcode_automatic_GCJ \
20135     module_cmds_GCJ \
20136     module_expsym_cmds_GCJ \
20137     lt_cv_prog_compiler_c_o_GCJ \
20138     fix_srcfile_path_GCJ \
20139     exclude_expsyms_GCJ \
20140     include_expsyms_GCJ; do
20141
20142     case $var in
20143     old_archive_cmds_GCJ | \
20144     old_archive_from_new_cmds_GCJ | \
20145     archive_cmds_GCJ | \
20146     archive_expsym_cmds_GCJ | \
20147     module_cmds_GCJ | \
20148     module_expsym_cmds_GCJ | \
20149     old_archive_from_expsyms_cmds_GCJ | \
20150     export_symbols_cmds_GCJ | \
20151     extract_expsyms_cmds | reload_cmds | finish_cmds | \
20152     postinstall_cmds | postuninstall_cmds | \
20153     old_postinstall_cmds | old_postuninstall_cmds | \
20154     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20155       # Double-quote double-evaled strings.
20156       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
20157       ;;
20158     *)
20159       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20160       ;;
20161     esac
20162   done
20163
20164   case $lt_echo in
20165   *'\$0 --fallback-echo"')
20166     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20167     ;;
20168   esac
20169
20170 cfgfile="$ofile"
20171
20172   cat <<__EOF__ >> "$cfgfile"
20173 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
20174
20175 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20176
20177 # Shell to use when invoking shell scripts.
20178 SHELL=$lt_SHELL
20179
20180 # Whether or not to build shared libraries.
20181 build_libtool_libs=$enable_shared
20182
20183 # Whether or not to build static libraries.
20184 build_old_libs=$enable_static
20185
20186 # Whether or not to add -lc for building shared libraries.
20187 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
20188
20189 # Whether or not to disallow shared libs when runtime libs are static
20190 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
20191
20192 # Whether or not to optimize for fast installation.
20193 fast_install=$enable_fast_install
20194
20195 # The host system.
20196 host_alias=$host_alias
20197 host=$host
20198 host_os=$host_os
20199
20200 # The build system.
20201 build_alias=$build_alias
20202 build=$build
20203 build_os=$build_os
20204
20205 # An echo program that does not interpret backslashes.
20206 echo=$lt_echo
20207
20208 # The archiver.
20209 AR=$lt_AR
20210 AR_FLAGS=$lt_AR_FLAGS
20211
20212 # A C compiler.
20213 LTCC=$lt_LTCC
20214
20215 # LTCC compiler flags.
20216 LTCFLAGS=$lt_LTCFLAGS
20217
20218 # A language-specific compiler.
20219 CC=$lt_compiler_GCJ
20220
20221 # Is the compiler the GNU C compiler?
20222 with_gcc=$GCC_GCJ
20223
20224 # An ERE matcher.
20225 EGREP=$lt_EGREP
20226
20227 # The linker used to build libraries.
20228 LD=$lt_LD_GCJ
20229
20230 # Whether we need hard or soft links.
20231 LN_S=$lt_LN_S
20232
20233 # A BSD-compatible nm program.
20234 NM=$lt_NM
20235
20236 # A symbol stripping program
20237 STRIP=$lt_STRIP
20238
20239 # Used to examine libraries when file_magic_cmd begins "file"
20240 MAGIC_CMD=$MAGIC_CMD
20241
20242 # Used on cygwin: DLL creation program.
20243 DLLTOOL="$DLLTOOL"
20244
20245 # Used on cygwin: object dumper.
20246 OBJDUMP="$OBJDUMP"
20247
20248 # Used on cygwin: assembler.
20249 AS="$AS"
20250
20251 # The name of the directory that contains temporary libtool files.
20252 objdir=$objdir
20253
20254 # How to create reloadable object files.
20255 reload_flag=$lt_reload_flag
20256 reload_cmds=$lt_reload_cmds
20257
20258 # How to pass a linker flag through the compiler.
20259 wl=$lt_lt_prog_compiler_wl_GCJ
20260
20261 # Object file suffix (normally "o").
20262 objext="$ac_objext"
20263
20264 # Old archive suffix (normally "a").
20265 libext="$libext"
20266
20267 # Shared library suffix (normally ".so").
20268 shrext_cmds='$shrext_cmds'
20269
20270 # Executable file suffix (normally "").
20271 exeext="$exeext"
20272
20273 # Additional compiler flags for building library objects.
20274 pic_flag=$lt_lt_prog_compiler_pic_GCJ
20275 pic_mode=$pic_mode
20276
20277 # What is the maximum length of a command?
20278 max_cmd_len=$lt_cv_sys_max_cmd_len
20279
20280 # Does compiler simultaneously support -c and -o options?
20281 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
20282
20283 # Must we lock files when doing compilation?
20284 need_locks=$lt_need_locks
20285
20286 # Do we need the lib prefix for modules?
20287 need_lib_prefix=$need_lib_prefix
20288
20289 # Do we need a version for libraries?
20290 need_version=$need_version
20291
20292 # Whether dlopen is supported.
20293 dlopen_support=$enable_dlopen
20294
20295 # Whether dlopen of programs is supported.
20296 dlopen_self=$enable_dlopen_self
20297
20298 # Whether dlopen of statically linked programs is supported.
20299 dlopen_self_static=$enable_dlopen_self_static
20300
20301 # Compiler flag to prevent dynamic linking.
20302 link_static_flag=$lt_lt_prog_compiler_static_GCJ
20303
20304 # Compiler flag to turn off builtin functions.
20305 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
20306
20307 # Compiler flag to allow reflexive dlopens.
20308 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
20309
20310 # Compiler flag to generate shared objects directly from archives.
20311 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
20312
20313 # Compiler flag to generate thread-safe objects.
20314 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
20315
20316 # Library versioning type.
20317 version_type=$version_type
20318
20319 # Format of library name prefix.
20320 libname_spec=$lt_libname_spec
20321
20322 # List of archive names.  First name is the real one, the rest are links.
20323 # The last name is the one that the linker finds with -lNAME.
20324 library_names_spec=$lt_library_names_spec
20325
20326 # The coded name of the library, if different from the real name.
20327 soname_spec=$lt_soname_spec
20328
20329 # Commands used to build and install an old-style archive.
20330 RANLIB=$lt_RANLIB
20331 old_archive_cmds=$lt_old_archive_cmds_GCJ
20332 old_postinstall_cmds=$lt_old_postinstall_cmds
20333 old_postuninstall_cmds=$lt_old_postuninstall_cmds
20334
20335 # Create an old-style archive from a shared archive.
20336 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
20337
20338 # Create a temporary old-style archive to link instead of a shared archive.
20339 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
20340
20341 # Commands used to build and install a shared archive.
20342 archive_cmds=$lt_archive_cmds_GCJ
20343 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
20344 postinstall_cmds=$lt_postinstall_cmds
20345 postuninstall_cmds=$lt_postuninstall_cmds
20346
20347 # Commands used to build a loadable module (assumed same as above if empty)
20348 module_cmds=$lt_module_cmds_GCJ
20349 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
20350
20351 # Commands to strip libraries.
20352 old_striplib=$lt_old_striplib
20353 striplib=$lt_striplib
20354
20355 # Dependencies to place before the objects being linked to create a
20356 # shared library.
20357 predep_objects=$lt_predep_objects_GCJ
20358
20359 # Dependencies to place after the objects being linked to create a
20360 # shared library.
20361 postdep_objects=$lt_postdep_objects_GCJ
20362
20363 # Dependencies to place before the objects being linked to create a
20364 # shared library.
20365 predeps=$lt_predeps_GCJ
20366
20367 # Dependencies to place after the objects being linked to create a
20368 # shared library.
20369 postdeps=$lt_postdeps_GCJ
20370
20371 # The library search path used internally by the compiler when linking
20372 # a shared library.
20373 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
20374
20375 # Method to check whether dependent libraries are shared objects.
20376 deplibs_check_method=$lt_deplibs_check_method
20377
20378 # Command to use when deplibs_check_method == file_magic.
20379 file_magic_cmd=$lt_file_magic_cmd
20380
20381 # Flag that allows shared libraries with undefined symbols to be built.
20382 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
20383
20384 # Flag that forces no undefined symbols.
20385 no_undefined_flag=$lt_no_undefined_flag_GCJ
20386
20387 # Commands used to finish a libtool library installation in a directory.
20388 finish_cmds=$lt_finish_cmds
20389
20390 # Same as above, but a single script fragment to be evaled but not shown.
20391 finish_eval=$lt_finish_eval
20392
20393 # Take the output of nm and produce a listing of raw symbols and C names.
20394 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20395
20396 # Transform the output of nm in a proper C declaration
20397 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20398
20399 # Transform the output of nm in a C name address pair
20400 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20401
20402 # This is the shared library runtime path variable.
20403 runpath_var=$runpath_var
20404
20405 # This is the shared library path variable.
20406 shlibpath_var=$shlibpath_var
20407
20408 # Is shlibpath searched before the hard-coded library search path?
20409 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20410
20411 # How to hardcode a shared library path into an executable.
20412 hardcode_action=$hardcode_action_GCJ
20413
20414 # Whether we should hardcode library paths into libraries.
20415 hardcode_into_libs=$hardcode_into_libs
20416
20417 # Flag to hardcode \$libdir into a binary during linking.
20418 # This must work even if \$libdir does not exist.
20419 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
20420
20421 # If ld is used when linking, flag to hardcode \$libdir into
20422 # a binary during linking. This must work even if \$libdir does
20423 # not exist.
20424 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
20425
20426 # Whether we need a single -rpath flag with a separated argument.
20427 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
20428
20429 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20430 # resulting binary.
20431 hardcode_direct=$hardcode_direct_GCJ
20432
20433 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20434 # resulting binary.
20435 hardcode_minus_L=$hardcode_minus_L_GCJ
20436
20437 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20438 # the resulting binary.
20439 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
20440
20441 # Set to yes if building a shared library automatically hardcodes DIR into the library
20442 # and all subsequent libraries and executables linked against it.
20443 hardcode_automatic=$hardcode_automatic_GCJ
20444
20445 # Variables whose values should be saved in libtool wrapper scripts and
20446 # restored at relink time.
20447 variables_saved_for_relink="$variables_saved_for_relink"
20448
20449 # Whether libtool must link a program against all its dependency libraries.
20450 link_all_deplibs=$link_all_deplibs_GCJ
20451
20452 # Compile-time system search path for libraries
20453 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20454
20455 # Run-time system search path for libraries
20456 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20457
20458 # Fix the shell variable \$srcfile for the compiler.
20459 fix_srcfile_path=$lt_fix_srcfile_path
20460
20461 # Set to yes if exported symbols are required.
20462 always_export_symbols=$always_export_symbols_GCJ
20463
20464 # The commands to list exported symbols.
20465 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
20466
20467 # The commands to extract the exported symbol list from a shared archive.
20468 extract_expsyms_cmds=$lt_extract_expsyms_cmds
20469
20470 # Symbols that should not be listed in the preloaded symbols.
20471 exclude_expsyms=$lt_exclude_expsyms_GCJ
20472
20473 # Symbols that must always be exported.
20474 include_expsyms=$lt_include_expsyms_GCJ
20475
20476 # ### END LIBTOOL TAG CONFIG: $tagname
20477
20478 __EOF__
20479
20480
20481 else
20482   # If there is no Makefile yet, we rely on a make rule to execute
20483   # `config.status --recheck' to rerun these tests and create the
20484   # libtool script then.
20485   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20486   if test -f "$ltmain_in"; then
20487     test -f Makefile && make "$ltmain"
20488   fi
20489 fi
20490
20491
20492 ac_ext=c
20493 ac_cpp='$CPP $CPPFLAGS'
20494 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20495 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20496 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20497
20498 CC="$lt_save_CC"
20499
20500         else
20501           tagname=""
20502         fi
20503         ;;
20504
20505       RC)
20506
20507
20508 # Source file extension for RC test sources.
20509 ac_ext=rc
20510
20511 # Object file extension for compiled RC test sources.
20512 objext=o
20513 objext_RC=$objext
20514
20515 # Code to be used in simple compile tests
20516 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
20517
20518 # Code to be used in simple link tests
20519 lt_simple_link_test_code="$lt_simple_compile_test_code"
20520
20521 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
20522
20523 # If no C compiler was specified, use CC.
20524 LTCC=${LTCC-"$CC"}
20525
20526 # If no C compiler flags were specified, use CFLAGS.
20527 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
20528
20529 # Allow CC to be a program name with arguments.
20530 compiler=$CC
20531
20532
20533 # save warnings/boilerplate of simple test code
20534 ac_outfile=conftest.$ac_objext
20535 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
20536 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
20537 _lt_compiler_boilerplate=`cat conftest.err`
20538 $rm conftest*
20539
20540 ac_outfile=conftest.$ac_objext
20541 echo "$lt_simple_link_test_code" >conftest.$ac_ext
20542 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
20543 _lt_linker_boilerplate=`cat conftest.err`
20544 $rm conftest*
20545
20546
20547 # Allow CC to be a program name with arguments.
20548 lt_save_CC="$CC"
20549 CC=${RC-"windres"}
20550 compiler=$CC
20551 compiler_RC=$CC
20552 for cc_temp in $compiler""; do
20553   case $cc_temp in
20554     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
20555     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
20556     \-*) ;;
20557     *) break;;
20558   esac
20559 done
20560 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
20561
20562 lt_cv_prog_compiler_c_o_RC=yes
20563
20564 # The else clause should only fire when bootstrapping the
20565 # libtool distribution, otherwise you forgot to ship ltmain.sh
20566 # with your package, and you will get complaints that there are
20567 # no rules to generate ltmain.sh.
20568 if test -f "$ltmain"; then
20569   # See if we are running on zsh, and set the options which allow our commands through
20570   # without removal of \ escapes.
20571   if test -n "${ZSH_VERSION+set}" ; then
20572     setopt NO_GLOB_SUBST
20573   fi
20574   # Now quote all the things that may contain metacharacters while being
20575   # careful not to overquote the AC_SUBSTed values.  We take copies of the
20576   # variables and quote the copies for generation of the libtool script.
20577   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
20578     SED SHELL STRIP \
20579     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20580     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20581     deplibs_check_method reload_flag reload_cmds need_locks \
20582     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20583     lt_cv_sys_global_symbol_to_c_name_address \
20584     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20585     old_postinstall_cmds old_postuninstall_cmds \
20586     compiler_RC \
20587     CC_RC \
20588     LD_RC \
20589     lt_prog_compiler_wl_RC \
20590     lt_prog_compiler_pic_RC \
20591     lt_prog_compiler_static_RC \
20592     lt_prog_compiler_no_builtin_flag_RC \
20593     export_dynamic_flag_spec_RC \
20594     thread_safe_flag_spec_RC \
20595     whole_archive_flag_spec_RC \
20596     enable_shared_with_static_runtimes_RC \
20597     old_archive_cmds_RC \
20598     old_archive_from_new_cmds_RC \
20599     predep_objects_RC \
20600     postdep_objects_RC \
20601     predeps_RC \
20602     postdeps_RC \
20603     compiler_lib_search_path_RC \
20604     archive_cmds_RC \
20605     archive_expsym_cmds_RC \
20606     postinstall_cmds_RC \
20607     postuninstall_cmds_RC \
20608     old_archive_from_expsyms_cmds_RC \
20609     allow_undefined_flag_RC \
20610     no_undefined_flag_RC \
20611     export_symbols_cmds_RC \
20612     hardcode_libdir_flag_spec_RC \
20613     hardcode_libdir_flag_spec_ld_RC \
20614     hardcode_libdir_separator_RC \
20615     hardcode_automatic_RC \
20616     module_cmds_RC \
20617     module_expsym_cmds_RC \
20618     lt_cv_prog_compiler_c_o_RC \
20619     fix_srcfile_path_RC \
20620     exclude_expsyms_RC \
20621     include_expsyms_RC; do
20622
20623     case $var in
20624     old_archive_cmds_RC | \
20625     old_archive_from_new_cmds_RC | \
20626     archive_cmds_RC | \
20627     archive_expsym_cmds_RC | \
20628     module_cmds_RC | \
20629     module_expsym_cmds_RC | \
20630     old_archive_from_expsyms_cmds_RC | \
20631     export_symbols_cmds_RC | \
20632     extract_expsyms_cmds | reload_cmds | finish_cmds | \
20633     postinstall_cmds | postuninstall_cmds | \
20634     old_postinstall_cmds | old_postuninstall_cmds | \
20635     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20636       # Double-quote double-evaled strings.
20637       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
20638       ;;
20639     *)
20640       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20641       ;;
20642     esac
20643   done
20644
20645   case $lt_echo in
20646   *'\$0 --fallback-echo"')
20647     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20648     ;;
20649   esac
20650
20651 cfgfile="$ofile"
20652
20653   cat <<__EOF__ >> "$cfgfile"
20654 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
20655
20656 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20657
20658 # Shell to use when invoking shell scripts.
20659 SHELL=$lt_SHELL
20660
20661 # Whether or not to build shared libraries.
20662 build_libtool_libs=$enable_shared
20663
20664 # Whether or not to build static libraries.
20665 build_old_libs=$enable_static
20666
20667 # Whether or not to add -lc for building shared libraries.
20668 build_libtool_need_lc=$archive_cmds_need_lc_RC
20669
20670 # Whether or not to disallow shared libs when runtime libs are static
20671 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
20672
20673 # Whether or not to optimize for fast installation.
20674 fast_install=$enable_fast_install
20675
20676 # The host system.
20677 host_alias=$host_alias
20678 host=$host
20679 host_os=$host_os
20680
20681 # The build system.
20682 build_alias=$build_alias
20683 build=$build
20684 build_os=$build_os
20685
20686 # An echo program that does not interpret backslashes.
20687 echo=$lt_echo
20688
20689 # The archiver.
20690 AR=$lt_AR
20691 AR_FLAGS=$lt_AR_FLAGS
20692
20693 # A C compiler.
20694 LTCC=$lt_LTCC
20695
20696 # LTCC compiler flags.
20697 LTCFLAGS=$lt_LTCFLAGS
20698
20699 # A language-specific compiler.
20700 CC=$lt_compiler_RC
20701
20702 # Is the compiler the GNU C compiler?
20703 with_gcc=$GCC_RC
20704
20705 # An ERE matcher.
20706 EGREP=$lt_EGREP
20707
20708 # The linker used to build libraries.
20709 LD=$lt_LD_RC
20710
20711 # Whether we need hard or soft links.
20712 LN_S=$lt_LN_S
20713
20714 # A BSD-compatible nm program.
20715 NM=$lt_NM
20716
20717 # A symbol stripping program
20718 STRIP=$lt_STRIP
20719
20720 # Used to examine libraries when file_magic_cmd begins "file"
20721 MAGIC_CMD=$MAGIC_CMD
20722
20723 # Used on cygwin: DLL creation program.
20724 DLLTOOL="$DLLTOOL"
20725
20726 # Used on cygwin: object dumper.
20727 OBJDUMP="$OBJDUMP"
20728
20729 # Used on cygwin: assembler.
20730 AS="$AS"
20731
20732 # The name of the directory that contains temporary libtool files.
20733 objdir=$objdir
20734
20735 # How to create reloadable object files.
20736 reload_flag=$lt_reload_flag
20737 reload_cmds=$lt_reload_cmds
20738
20739 # How to pass a linker flag through the compiler.
20740 wl=$lt_lt_prog_compiler_wl_RC
20741
20742 # Object file suffix (normally "o").
20743 objext="$ac_objext"
20744
20745 # Old archive suffix (normally "a").
20746 libext="$libext"
20747
20748 # Shared library suffix (normally ".so").
20749 shrext_cmds='$shrext_cmds'
20750
20751 # Executable file suffix (normally "").
20752 exeext="$exeext"
20753
20754 # Additional compiler flags for building library objects.
20755 pic_flag=$lt_lt_prog_compiler_pic_RC
20756 pic_mode=$pic_mode
20757
20758 # What is the maximum length of a command?
20759 max_cmd_len=$lt_cv_sys_max_cmd_len
20760
20761 # Does compiler simultaneously support -c and -o options?
20762 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
20763
20764 # Must we lock files when doing compilation?
20765 need_locks=$lt_need_locks
20766
20767 # Do we need the lib prefix for modules?
20768 need_lib_prefix=$need_lib_prefix
20769
20770 # Do we need a version for libraries?
20771 need_version=$need_version
20772
20773 # Whether dlopen is supported.
20774 dlopen_support=$enable_dlopen
20775
20776 # Whether dlopen of programs is supported.
20777 dlopen_self=$enable_dlopen_self
20778
20779 # Whether dlopen of statically linked programs is supported.
20780 dlopen_self_static=$enable_dlopen_self_static
20781
20782 # Compiler flag to prevent dynamic linking.
20783 link_static_flag=$lt_lt_prog_compiler_static_RC
20784
20785 # Compiler flag to turn off builtin functions.
20786 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
20787
20788 # Compiler flag to allow reflexive dlopens.
20789 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
20790
20791 # Compiler flag to generate shared objects directly from archives.
20792 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
20793
20794 # Compiler flag to generate thread-safe objects.
20795 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
20796
20797 # Library versioning type.
20798 version_type=$version_type
20799
20800 # Format of library name prefix.
20801 libname_spec=$lt_libname_spec
20802
20803 # List of archive names.  First name is the real one, the rest are links.
20804 # The last name is the one that the linker finds with -lNAME.
20805 library_names_spec=$lt_library_names_spec
20806
20807 # The coded name of the library, if different from the real name.
20808 soname_spec=$lt_soname_spec
20809
20810 # Commands used to build and install an old-style archive.
20811 RANLIB=$lt_RANLIB
20812 old_archive_cmds=$lt_old_archive_cmds_RC
20813 old_postinstall_cmds=$lt_old_postinstall_cmds
20814 old_postuninstall_cmds=$lt_old_postuninstall_cmds
20815
20816 # Create an old-style archive from a shared archive.
20817 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
20818
20819 # Create a temporary old-style archive to link instead of a shared archive.
20820 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
20821
20822 # Commands used to build and install a shared archive.
20823 archive_cmds=$lt_archive_cmds_RC
20824 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
20825 postinstall_cmds=$lt_postinstall_cmds
20826 postuninstall_cmds=$lt_postuninstall_cmds
20827
20828 # Commands used to build a loadable module (assumed same as above if empty)
20829 module_cmds=$lt_module_cmds_RC
20830 module_expsym_cmds=$lt_module_expsym_cmds_RC
20831
20832 # Commands to strip libraries.
20833 old_striplib=$lt_old_striplib
20834 striplib=$lt_striplib
20835
20836 # Dependencies to place before the objects being linked to create a
20837 # shared library.
20838 predep_objects=$lt_predep_objects_RC
20839
20840 # Dependencies to place after the objects being linked to create a
20841 # shared library.
20842 postdep_objects=$lt_postdep_objects_RC
20843
20844 # Dependencies to place before the objects being linked to create a
20845 # shared library.
20846 predeps=$lt_predeps_RC
20847
20848 # Dependencies to place after the objects being linked to create a
20849 # shared library.
20850 postdeps=$lt_postdeps_RC
20851
20852 # The library search path used internally by the compiler when linking
20853 # a shared library.
20854 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
20855
20856 # Method to check whether dependent libraries are shared objects.
20857 deplibs_check_method=$lt_deplibs_check_method
20858
20859 # Command to use when deplibs_check_method == file_magic.
20860 file_magic_cmd=$lt_file_magic_cmd
20861
20862 # Flag that allows shared libraries with undefined symbols to be built.
20863 allow_undefined_flag=$lt_allow_undefined_flag_RC
20864
20865 # Flag that forces no undefined symbols.
20866 no_undefined_flag=$lt_no_undefined_flag_RC
20867
20868 # Commands used to finish a libtool library installation in a directory.
20869 finish_cmds=$lt_finish_cmds
20870
20871 # Same as above, but a single script fragment to be evaled but not shown.
20872 finish_eval=$lt_finish_eval
20873
20874 # Take the output of nm and produce a listing of raw symbols and C names.
20875 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20876
20877 # Transform the output of nm in a proper C declaration
20878 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20879
20880 # Transform the output of nm in a C name address pair
20881 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20882
20883 # This is the shared library runtime path variable.
20884 runpath_var=$runpath_var
20885
20886 # This is the shared library path variable.
20887 shlibpath_var=$shlibpath_var
20888
20889 # Is shlibpath searched before the hard-coded library search path?
20890 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20891
20892 # How to hardcode a shared library path into an executable.
20893 hardcode_action=$hardcode_action_RC
20894
20895 # Whether we should hardcode library paths into libraries.
20896 hardcode_into_libs=$hardcode_into_libs
20897
20898 # Flag to hardcode \$libdir into a binary during linking.
20899 # This must work even if \$libdir does not exist.
20900 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
20901
20902 # If ld is used when linking, flag to hardcode \$libdir into
20903 # a binary during linking. This must work even if \$libdir does
20904 # not exist.
20905 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
20906
20907 # Whether we need a single -rpath flag with a separated argument.
20908 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
20909
20910 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20911 # resulting binary.
20912 hardcode_direct=$hardcode_direct_RC
20913
20914 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20915 # resulting binary.
20916 hardcode_minus_L=$hardcode_minus_L_RC
20917
20918 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20919 # the resulting binary.
20920 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
20921
20922 # Set to yes if building a shared library automatically hardcodes DIR into the library
20923 # and all subsequent libraries and executables linked against it.
20924 hardcode_automatic=$hardcode_automatic_RC
20925
20926 # Variables whose values should be saved in libtool wrapper scripts and
20927 # restored at relink time.
20928 variables_saved_for_relink="$variables_saved_for_relink"
20929
20930 # Whether libtool must link a program against all its dependency libraries.
20931 link_all_deplibs=$link_all_deplibs_RC
20932
20933 # Compile-time system search path for libraries
20934 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20935
20936 # Run-time system search path for libraries
20937 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20938
20939 # Fix the shell variable \$srcfile for the compiler.
20940 fix_srcfile_path=$lt_fix_srcfile_path
20941
20942 # Set to yes if exported symbols are required.
20943 always_export_symbols=$always_export_symbols_RC
20944
20945 # The commands to list exported symbols.
20946 export_symbols_cmds=$lt_export_symbols_cmds_RC
20947
20948 # The commands to extract the exported symbol list from a shared archive.
20949 extract_expsyms_cmds=$lt_extract_expsyms_cmds
20950
20951 # Symbols that should not be listed in the preloaded symbols.
20952 exclude_expsyms=$lt_exclude_expsyms_RC
20953
20954 # Symbols that must always be exported.
20955 include_expsyms=$lt_include_expsyms_RC
20956
20957 # ### END LIBTOOL TAG CONFIG: $tagname
20958
20959 __EOF__
20960
20961
20962 else
20963   # If there is no Makefile yet, we rely on a make rule to execute
20964   # `config.status --recheck' to rerun these tests and create the
20965   # libtool script then.
20966   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20967   if test -f "$ltmain_in"; then
20968     test -f Makefile && make "$ltmain"
20969   fi
20970 fi
20971
20972
20973 ac_ext=c
20974 ac_cpp='$CPP $CPPFLAGS'
20975 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20976 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20977 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20978
20979 CC="$lt_save_CC"
20980
20981         ;;
20982
20983       *)
20984         { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
20985 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
20986    { (exit 1); exit 1; }; }
20987         ;;
20988       esac
20989
20990       # Append the new tag name to the list of available tags.
20991       if test -n "$tagname" ; then
20992       available_tags="$available_tags $tagname"
20993     fi
20994     fi
20995   done
20996   IFS="$lt_save_ifs"
20997
20998   # Now substitute the updated list of available tags.
20999   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
21000     mv "${ofile}T" "$ofile"
21001     chmod +x "$ofile"
21002   else
21003     rm -f "${ofile}T"
21004     { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
21005 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
21006    { (exit 1); exit 1; }; }
21007   fi
21008 fi
21009
21010
21011
21012 # This can be used to rebuild libtool when needed
21013 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
21014
21015 # Always use our own libtool.
21016 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
21017
21018 # Prevent multiple expansion
21019
21020
21021
21022
21023
21024
21025
21026
21027
21028
21029
21030
21031
21032
21033
21034
21035
21036
21037
21038
21039 if test "x$CC" != xcc; then
21040   { echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
21041 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6; }
21042 else
21043   { echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
21044 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6; }
21045 fi
21046 set dummy $CC; ac_cc=`echo $2 |
21047                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
21048 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then
21049   echo $ECHO_N "(cached) $ECHO_C" >&6
21050 else
21051   cat >conftest.$ac_ext <<_ACEOF
21052 /* confdefs.h.  */
21053 _ACEOF
21054 cat confdefs.h >>conftest.$ac_ext
21055 cat >>conftest.$ac_ext <<_ACEOF
21056 /* end confdefs.h.  */
21057
21058 int
21059 main ()
21060 {
21061
21062   ;
21063   return 0;
21064 }
21065 _ACEOF
21066 # Make sure it works both with $CC and with simple cc.
21067 # We do the test twice because some compilers refuse to overwrite an
21068 # existing .o file with -o, though they will create one.
21069 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
21070 rm -f conftest2.*
21071 if { (case "(($ac_try" in
21072   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21073   *) ac_try_echo=$ac_try;;
21074 esac
21075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21076   (eval "$ac_try") 2>&5
21077   ac_status=$?
21078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21079   (exit $ac_status); } &&
21080    test -f conftest2.$ac_objext && { (case "(($ac_try" in
21081   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21082   *) ac_try_echo=$ac_try;;
21083 esac
21084 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21085   (eval "$ac_try") 2>&5
21086   ac_status=$?
21087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21088   (exit $ac_status); };
21089 then
21090   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
21091   if test "x$CC" != xcc; then
21092     # Test first that cc exists at all.
21093     if { ac_try='cc -c conftest.$ac_ext >&5'
21094   { (case "(($ac_try" in
21095   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21096   *) ac_try_echo=$ac_try;;
21097 esac
21098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21099   (eval "$ac_try") 2>&5
21100   ac_status=$?
21101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21102   (exit $ac_status); }; }; then
21103       ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
21104       rm -f conftest2.*
21105       if { (case "(($ac_try" in
21106   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21107   *) ac_try_echo=$ac_try;;
21108 esac
21109 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21110   (eval "$ac_try") 2>&5
21111   ac_status=$?
21112   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21113   (exit $ac_status); } &&
21114          test -f conftest2.$ac_objext && { (case "(($ac_try" in
21115   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21116   *) ac_try_echo=$ac_try;;
21117 esac
21118 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21119   (eval "$ac_try") 2>&5
21120   ac_status=$?
21121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21122   (exit $ac_status); };
21123       then
21124         # cc works too.
21125         :
21126       else
21127         # cc exists but doesn't like -o.
21128         eval ac_cv_prog_cc_${ac_cc}_c_o=no
21129       fi
21130     fi
21131   fi
21132 else
21133   eval ac_cv_prog_cc_${ac_cc}_c_o=no
21134 fi
21135 rm -f core conftest*
21136
21137 fi
21138 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
21139   { echo "$as_me:$LINENO: result: yes" >&5
21140 echo "${ECHO_T}yes" >&6; }
21141 else
21142   { echo "$as_me:$LINENO: result: no" >&5
21143 echo "${ECHO_T}no" >&6; }
21144
21145 cat >>confdefs.h <<\_ACEOF
21146 #define NO_MINUS_C_MINUS_O 1
21147 _ACEOF
21148
21149 fi
21150
21151 # FIXME: we rely on the cache variable name because
21152 # there is no other way.
21153 set dummy $CC
21154 ac_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
21155 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
21156    # Losing compiler, so override with the script.
21157    # FIXME: It is wrong to rewrite CC.
21158    # But if we don't then we get into trouble of one sort or another.
21159    # A longer-term fix would be to have automake use am__CC in this case,
21160    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
21161    CC="$am_aux_dir/compile $CC"
21162 fi
21163
21164
21165
21166 if test "x$cross_compiling" = "xno"; then
21167         CC_FOR_BUILD=${CC_FOR_BUILD-${CC-gcc}}
21168 else
21169         CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
21170 fi
21171
21172
21173
21174 if test -n "$ac_tool_prefix"; then
21175   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
21176 set dummy ${ac_tool_prefix}ar; ac_word=$2
21177 { echo "$as_me:$LINENO: checking for $ac_word" >&5
21178 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
21179 if test "${ac_cv_prog_AR+set}" = set; then
21180   echo $ECHO_N "(cached) $ECHO_C" >&6
21181 else
21182   if test -n "$AR"; then
21183   ac_cv_prog_AR="$AR" # Let the user override the test.
21184 else
21185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21186 for as_dir in $PATH
21187 do
21188   IFS=$as_save_IFS
21189   test -z "$as_dir" && as_dir=.
21190   for ac_exec_ext in '' $ac_executable_extensions; do
21191   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21192     ac_cv_prog_AR="${ac_tool_prefix}ar"
21193     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21194     break 2
21195   fi
21196 done
21197 done
21198 IFS=$as_save_IFS
21199
21200 fi
21201 fi
21202 AR=$ac_cv_prog_AR
21203 if test -n "$AR"; then
21204   { echo "$as_me:$LINENO: result: $AR" >&5
21205 echo "${ECHO_T}$AR" >&6; }
21206 else
21207   { echo "$as_me:$LINENO: result: no" >&5
21208 echo "${ECHO_T}no" >&6; }
21209 fi
21210
21211
21212 fi
21213 if test -z "$ac_cv_prog_AR"; then
21214   ac_ct_AR=$AR
21215   # Extract the first word of "ar", so it can be a program name with args.
21216 set dummy ar; ac_word=$2
21217 { echo "$as_me:$LINENO: checking for $ac_word" >&5
21218 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
21219 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
21220   echo $ECHO_N "(cached) $ECHO_C" >&6
21221 else
21222   if test -n "$ac_ct_AR"; then
21223   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
21224 else
21225 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21226 for as_dir in $PATH
21227 do
21228   IFS=$as_save_IFS
21229   test -z "$as_dir" && as_dir=.
21230   for ac_exec_ext in '' $ac_executable_extensions; do
21231   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21232     ac_cv_prog_ac_ct_AR="ar"
21233     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21234     break 2
21235   fi
21236 done
21237 done
21238 IFS=$as_save_IFS
21239
21240 fi
21241 fi
21242 ac_ct_AR=$ac_cv_prog_ac_ct_AR
21243 if test -n "$ac_ct_AR"; then
21244   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
21245 echo "${ECHO_T}$ac_ct_AR" >&6; }
21246 else
21247   { echo "$as_me:$LINENO: result: no" >&5
21248 echo "${ECHO_T}no" >&6; }
21249 fi
21250
21251   if test "x$ac_ct_AR" = x; then
21252     AR=""
21253   else
21254     case $cross_compiling:$ac_tool_warned in
21255 yes:)
21256 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
21257 whose name does not start with the host triplet.  If you think this
21258 configuration is useful to you, please write to autoconf@gnu.org." >&5
21259 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
21260 whose name does not start with the host triplet.  If you think this
21261 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
21262 ac_tool_warned=yes ;;
21263 esac
21264     AR=$ac_ct_AR
21265   fi
21266 else
21267   AR="$ac_cv_prog_AR"
21268 fi
21269
21270 if test -n "$ac_tool_prefix"; then
21271   # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
21272 set dummy ${ac_tool_prefix}ld; ac_word=$2
21273 { echo "$as_me:$LINENO: checking for $ac_word" >&5
21274 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
21275 if test "${ac_cv_prog_LD+set}" = set; then
21276   echo $ECHO_N "(cached) $ECHO_C" >&6
21277 else
21278   if test -n "$LD"; then
21279   ac_cv_prog_LD="$LD" # Let the user override the test.
21280 else
21281 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21282 for as_dir in $PATH
21283 do
21284   IFS=$as_save_IFS
21285   test -z "$as_dir" && as_dir=.
21286   for ac_exec_ext in '' $ac_executable_extensions; do
21287   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21288     ac_cv_prog_LD="${ac_tool_prefix}ld"
21289     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21290     break 2
21291   fi
21292 done
21293 done
21294 IFS=$as_save_IFS
21295
21296 fi
21297 fi
21298 LD=$ac_cv_prog_LD
21299 if test -n "$LD"; then
21300   { echo "$as_me:$LINENO: result: $LD" >&5
21301 echo "${ECHO_T}$LD" >&6; }
21302 else
21303   { echo "$as_me:$LINENO: result: no" >&5
21304 echo "${ECHO_T}no" >&6; }
21305 fi
21306
21307
21308 fi
21309 if test -z "$ac_cv_prog_LD"; then
21310   ac_ct_LD=$LD
21311   # Extract the first word of "ld", so it can be a program name with args.
21312 set dummy ld; ac_word=$2
21313 { echo "$as_me:$LINENO: checking for $ac_word" >&5
21314 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
21315 if test "${ac_cv_prog_ac_ct_LD+set}" = set; then
21316   echo $ECHO_N "(cached) $ECHO_C" >&6
21317 else
21318   if test -n "$ac_ct_LD"; then
21319   ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
21320 else
21321 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21322 for as_dir in $PATH
21323 do
21324   IFS=$as_save_IFS
21325   test -z "$as_dir" && as_dir=.
21326   for ac_exec_ext in '' $ac_executable_extensions; do
21327   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21328     ac_cv_prog_ac_ct_LD="ld"
21329     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21330     break 2
21331   fi
21332 done
21333 done
21334 IFS=$as_save_IFS
21335
21336 fi
21337 fi
21338 ac_ct_LD=$ac_cv_prog_ac_ct_LD
21339 if test -n "$ac_ct_LD"; then
21340   { echo "$as_me:$LINENO: result: $ac_ct_LD" >&5
21341 echo "${ECHO_T}$ac_ct_LD" >&6; }
21342 else
21343   { echo "$as_me:$LINENO: result: no" >&5
21344 echo "${ECHO_T}no" >&6; }
21345 fi
21346
21347   if test "x$ac_ct_LD" = x; then
21348     LD=""
21349   else
21350     case $cross_compiling:$ac_tool_warned in
21351 yes:)
21352 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
21353 whose name does not start with the host triplet.  If you think this
21354 configuration is useful to you, please write to autoconf@gnu.org." >&5
21355 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
21356 whose name does not start with the host triplet.  If you think this
21357 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
21358 ac_tool_warned=yes ;;
21359 esac
21360     LD=$ac_ct_LD
21361   fi
21362 else
21363   LD="$ac_cv_prog_LD"
21364 fi
21365
21366
21367 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
21368 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
21369 if test "${ac_cv_header_stdc+set}" = set; then
21370   echo $ECHO_N "(cached) $ECHO_C" >&6
21371 else
21372   cat >conftest.$ac_ext <<_ACEOF
21373 /* confdefs.h.  */
21374 _ACEOF
21375 cat confdefs.h >>conftest.$ac_ext
21376 cat >>conftest.$ac_ext <<_ACEOF
21377 /* end confdefs.h.  */
21378 #include <stdlib.h>
21379 #include <stdarg.h>
21380 #include <string.h>
21381 #include <float.h>
21382
21383 int
21384 main ()
21385 {
21386
21387   ;
21388   return 0;
21389 }
21390 _ACEOF
21391 rm -f conftest.$ac_objext
21392 if { (ac_try="$ac_compile"
21393 case "(($ac_try" in
21394   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21395   *) ac_try_echo=$ac_try;;
21396 esac
21397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21398   (eval "$ac_compile") 2>conftest.er1
21399   ac_status=$?
21400   grep -v '^ *+' conftest.er1 >conftest.err
21401   rm -f conftest.er1
21402   cat conftest.err >&5
21403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21404   (exit $ac_status); } && {
21405          test -z "$ac_c_werror_flag" ||
21406          test ! -s conftest.err
21407        } && test -s conftest.$ac_objext; then
21408   ac_cv_header_stdc=yes
21409 else
21410   echo "$as_me: failed program was:" >&5
21411 sed 's/^/| /' conftest.$ac_ext >&5
21412
21413         ac_cv_header_stdc=no
21414 fi
21415
21416 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21417
21418 if test $ac_cv_header_stdc = yes; then
21419   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
21420   cat >conftest.$ac_ext <<_ACEOF
21421 /* confdefs.h.  */
21422 _ACEOF
21423 cat confdefs.h >>conftest.$ac_ext
21424 cat >>conftest.$ac_ext <<_ACEOF
21425 /* end confdefs.h.  */
21426 #include <string.h>
21427
21428 _ACEOF
21429 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21430   $EGREP "memchr" >/dev/null 2>&1; then
21431   :
21432 else
21433   ac_cv_header_stdc=no
21434 fi
21435 rm -f conftest*
21436
21437 fi
21438
21439 if test $ac_cv_header_stdc = yes; then
21440   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
21441   cat >conftest.$ac_ext <<_ACEOF
21442 /* confdefs.h.  */
21443 _ACEOF
21444 cat confdefs.h >>conftest.$ac_ext
21445 cat >>conftest.$ac_ext <<_ACEOF
21446 /* end confdefs.h.  */
21447 #include <stdlib.h>
21448
21449 _ACEOF
21450 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21451   $EGREP "free" >/dev/null 2>&1; then
21452   :
21453 else
21454   ac_cv_header_stdc=no
21455 fi
21456 rm -f conftest*
21457
21458 fi
21459
21460 if test $ac_cv_header_stdc = yes; then
21461   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
21462   if test "$cross_compiling" = yes; then
21463   :
21464 else
21465   cat >conftest.$ac_ext <<_ACEOF
21466 /* confdefs.h.  */
21467 _ACEOF
21468 cat confdefs.h >>conftest.$ac_ext
21469 cat >>conftest.$ac_ext <<_ACEOF
21470 /* end confdefs.h.  */
21471 #include <ctype.h>
21472 #include <stdlib.h>
21473 #if ((' ' & 0x0FF) == 0x020)
21474 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
21475 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
21476 #else
21477 # define ISLOWER(c) \
21478                    (('a' <= (c) && (c) <= 'i') \
21479                      || ('j' <= (c) && (c) <= 'r') \
21480                      || ('s' <= (c) && (c) <= 'z'))
21481 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
21482 #endif
21483
21484 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
21485 int
21486 main ()
21487 {
21488   int i;
21489   for (i = 0; i < 256; i++)
21490     if (XOR (islower (i), ISLOWER (i))
21491         || toupper (i) != TOUPPER (i))
21492       return 2;
21493   return 0;
21494 }
21495 _ACEOF
21496 rm -f conftest$ac_exeext
21497 if { (ac_try="$ac_link"
21498 case "(($ac_try" in
21499   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21500   *) ac_try_echo=$ac_try;;
21501 esac
21502 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21503   (eval "$ac_link") 2>&5
21504   ac_status=$?
21505   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21506   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21507   { (case "(($ac_try" in
21508   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21509   *) ac_try_echo=$ac_try;;
21510 esac
21511 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21512   (eval "$ac_try") 2>&5
21513   ac_status=$?
21514   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21515   (exit $ac_status); }; }; then
21516   :
21517 else
21518   echo "$as_me: program exited with status $ac_status" >&5
21519 echo "$as_me: failed program was:" >&5
21520 sed 's/^/| /' conftest.$ac_ext >&5
21521
21522 ( exit $ac_status )
21523 ac_cv_header_stdc=no
21524 fi
21525 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21526 fi
21527
21528
21529 fi
21530 fi
21531 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
21532 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
21533 if test $ac_cv_header_stdc = yes; then
21534
21535 cat >>confdefs.h <<\_ACEOF
21536 #define STDC_HEADERS 1
21537 _ACEOF
21538
21539 fi
21540
21541
21542   { echo "$as_me:$LINENO: checking for GNU libc2" >&5
21543 echo $ECHO_N "checking for GNU libc2... $ECHO_C" >&6; }
21544   if test "${knfsd_cv_glibc2+set}" = set; then
21545   echo $ECHO_N "(cached) $ECHO_C" >&6
21546 else
21547   cat >conftest.$ac_ext <<_ACEOF
21548 /* confdefs.h.  */
21549 _ACEOF
21550 cat confdefs.h >>conftest.$ac_ext
21551 cat >>conftest.$ac_ext <<_ACEOF
21552 /* end confdefs.h.  */
21553
21554       #include <features.h>
21555       #if !defined(__GLIBC__)
21556       # error Nope
21557       #endif
21558
21559 _ACEOF
21560 if { (ac_try="$ac_cpp conftest.$ac_ext"
21561 case "(($ac_try" in
21562   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21563   *) ac_try_echo=$ac_try;;
21564 esac
21565 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21566   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21567   ac_status=$?
21568   grep -v '^ *+' conftest.er1 >conftest.err
21569   rm -f conftest.er1
21570   cat conftest.err >&5
21571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21572   (exit $ac_status); } >/dev/null && {
21573          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21574          test ! -s conftest.err
21575        }; then
21576   knfsd_cv_glibc2=yes
21577 else
21578   echo "$as_me: failed program was:" >&5
21579 sed 's/^/| /' conftest.$ac_ext >&5
21580
21581   knfsd_cv_glibc2=no
21582 fi
21583
21584 rm -f conftest.err conftest.$ac_ext
21585 fi
21586
21587   { echo "$as_me:$LINENO: result: $knfsd_cv_glibc2" >&5
21588 echo "${ECHO_T}$knfsd_cv_glibc2" >&6; }
21589   if test $knfsd_cv_glibc2 = yes; then
21590     CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE"
21591     CPPFLAGS_FOR_BUILD="$CPPFLAGS_FOR_BUILD -D_GNU_SOURCE"
21592   fi
21593
21594
21595   { echo "$as_me:$LINENO: checking for BSD signal semantics" >&5
21596 echo $ECHO_N "checking for BSD signal semantics... $ECHO_C" >&6; }
21597   if test "${knfsd_cv_bsd_signals+set}" = set; then
21598   echo $ECHO_N "(cached) $ECHO_C" >&6
21599 else
21600   if test "$cross_compiling" = yes; then
21601
21602       case "$host_os" in
21603         *linux*) knfsd_cv_bsd_signals=no;;
21604         *bsd*)   knfsd_cv_bsd_signals=yes;;
21605         *)       { { echo "$as_me:$LINENO: error: unable to guess signal semantics for $host_os; please set knfsd_cv_bsd_signals" >&5
21606 echo "$as_me: error: unable to guess signal semantics for $host_os; please set knfsd_cv_bsd_signals" >&2;}
21607    { (exit 1); exit 1; }; };;
21608       esac
21609
21610 else
21611   cat >conftest.$ac_ext <<_ACEOF
21612 /* confdefs.h.  */
21613 _ACEOF
21614 cat confdefs.h >>conftest.$ac_ext
21615 cat >>conftest.$ac_ext <<_ACEOF
21616 /* end confdefs.h.  */
21617
21618         #include <signal.h>
21619         #include <unistd.h>
21620         #include <sys/wait.h>
21621
21622         static int counter = 0;
21623         static RETSIGTYPE handler(int num) { counter++; }
21624
21625         int main()
21626         {
21627                 int     s;
21628                 if ((s = fork()) < 0) return 1;
21629                 if (s != 0) {
21630                         if (wait(&s) < 0) return 1;
21631                         return WIFSIGNALED(s)? 1 : 0;
21632                 }
21633
21634                 signal(SIGHUP, handler);
21635                 kill(getpid(), SIGHUP); kill(getpid(), SIGHUP);
21636                 return (counter == 2)? 0 : 1;
21637         }
21638
21639 _ACEOF
21640 rm -f conftest$ac_exeext
21641 if { (ac_try="$ac_link"
21642 case "(($ac_try" in
21643   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21644   *) ac_try_echo=$ac_try;;
21645 esac
21646 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21647   (eval "$ac_link") 2>&5
21648   ac_status=$?
21649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21650   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21651   { (case "(($ac_try" in
21652   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21653   *) ac_try_echo=$ac_try;;
21654 esac
21655 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21656   (eval "$ac_try") 2>&5
21657   ac_status=$?
21658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21659   (exit $ac_status); }; }; then
21660   knfsd_cv_bsd_signals=yes
21661 else
21662   echo "$as_me: program exited with status $ac_status" >&5
21663 echo "$as_me: failed program was:" >&5
21664 sed 's/^/| /' conftest.$ac_ext >&5
21665
21666 ( exit $ac_status )
21667 knfsd_cv_bsd_signals=no
21668 fi
21669 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21670 fi
21671
21672
21673 fi
21674      { echo "$as_me:$LINENO: result: $knfsd_cv_bsd_signals" >&5
21675 echo "${ECHO_T}$knfsd_cv_bsd_signals" >&6; }
21676     test $knfsd_cv_bsd_signals = yes &&
21677 cat >>confdefs.h <<\_ACEOF
21678 #define HAVE_BSD_SIGNALS 1
21679 _ACEOF
21680
21681
21682
21683 { echo "$as_me:$LINENO: checking for gethostbyname" >&5
21684 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; }
21685 if test "${ac_cv_func_gethostbyname+set}" = set; then
21686   echo $ECHO_N "(cached) $ECHO_C" >&6
21687 else
21688   cat >conftest.$ac_ext <<_ACEOF
21689 /* confdefs.h.  */
21690 _ACEOF
21691 cat confdefs.h >>conftest.$ac_ext
21692 cat >>conftest.$ac_ext <<_ACEOF
21693 /* end confdefs.h.  */
21694 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
21695    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21696 #define gethostbyname innocuous_gethostbyname
21697
21698 /* System header to define __stub macros and hopefully few prototypes,
21699     which can conflict with char gethostbyname (); below.
21700     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21701     <limits.h> exists even on freestanding compilers.  */
21702
21703 #ifdef __STDC__
21704 # include <limits.h>
21705 #else
21706 # include <assert.h>
21707 #endif
21708
21709 #undef gethostbyname
21710
21711 /* Override any GCC internal prototype to avoid an error.
21712    Use char because int might match the return type of a GCC
21713    builtin and then its argument prototype would still apply.  */
21714 #ifdef __cplusplus
21715 extern "C"
21716 #endif
21717 char gethostbyname ();
21718 /* The GNU C library defines this for functions which it implements
21719     to always fail with ENOSYS.  Some functions are actually named
21720     something starting with __ and the normal name is an alias.  */
21721 #if defined __stub_gethostbyname || defined __stub___gethostbyname
21722 choke me
21723 #endif
21724
21725 int
21726 main ()
21727 {
21728 return gethostbyname ();
21729   ;
21730   return 0;
21731 }
21732 _ACEOF
21733 rm -f conftest.$ac_objext conftest$ac_exeext
21734 if { (ac_try="$ac_link"
21735 case "(($ac_try" in
21736   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21737   *) ac_try_echo=$ac_try;;
21738 esac
21739 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21740   (eval "$ac_link") 2>conftest.er1
21741   ac_status=$?
21742   grep -v '^ *+' conftest.er1 >conftest.err
21743   rm -f conftest.er1
21744   cat conftest.err >&5
21745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21746   (exit $ac_status); } && {
21747          test -z "$ac_c_werror_flag" ||
21748          test ! -s conftest.err
21749        } && test -s conftest$ac_exeext &&
21750        $as_test_x conftest$ac_exeext; then
21751   ac_cv_func_gethostbyname=yes
21752 else
21753   echo "$as_me: failed program was:" >&5
21754 sed 's/^/| /' conftest.$ac_ext >&5
21755
21756         ac_cv_func_gethostbyname=no
21757 fi
21758
21759 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21760       conftest$ac_exeext conftest.$ac_ext
21761 fi
21762 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
21763 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; }
21764 if test $ac_cv_func_gethostbyname = yes; then
21765   :
21766 else
21767   { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
21768 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; }
21769 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
21770   echo $ECHO_N "(cached) $ECHO_C" >&6
21771 else
21772   ac_check_lib_save_LIBS=$LIBS
21773 LIBS="-lnsl  $LIBS"
21774 cat >conftest.$ac_ext <<_ACEOF
21775 /* confdefs.h.  */
21776 _ACEOF
21777 cat confdefs.h >>conftest.$ac_ext
21778 cat >>conftest.$ac_ext <<_ACEOF
21779 /* end confdefs.h.  */
21780
21781 /* Override any GCC internal prototype to avoid an error.
21782    Use char because int might match the return type of a GCC
21783    builtin and then its argument prototype would still apply.  */
21784 #ifdef __cplusplus
21785 extern "C"
21786 #endif
21787 char gethostbyname ();
21788 int
21789 main ()
21790 {
21791 return gethostbyname ();
21792   ;
21793   return 0;
21794 }
21795 _ACEOF
21796 rm -f conftest.$ac_objext conftest$ac_exeext
21797 if { (ac_try="$ac_link"
21798 case "(($ac_try" in
21799   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21800   *) ac_try_echo=$ac_try;;
21801 esac
21802 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21803   (eval "$ac_link") 2>conftest.er1
21804   ac_status=$?
21805   grep -v '^ *+' conftest.er1 >conftest.err
21806   rm -f conftest.er1
21807   cat conftest.err >&5
21808   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21809   (exit $ac_status); } && {
21810          test -z "$ac_c_werror_flag" ||
21811          test ! -s conftest.err
21812        } && test -s conftest$ac_exeext &&
21813        $as_test_x conftest$ac_exeext; then
21814   ac_cv_lib_nsl_gethostbyname=yes
21815 else
21816   echo "$as_me: failed program was:" >&5
21817 sed 's/^/| /' conftest.$ac_ext >&5
21818
21819         ac_cv_lib_nsl_gethostbyname=no
21820 fi
21821
21822 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21823       conftest$ac_exeext conftest.$ac_ext
21824 LIBS=$ac_check_lib_save_LIBS
21825 fi
21826 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
21827 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; }
21828 if test $ac_cv_lib_nsl_gethostbyname = yes; then
21829   LIBNSL="-lnsl"
21830 fi
21831
21832 fi
21833
21834
21835
21836 { echo "$as_me:$LINENO: checking for connect" >&5
21837 echo $ECHO_N "checking for connect... $ECHO_C" >&6; }
21838 if test "${ac_cv_func_connect+set}" = set; then
21839   echo $ECHO_N "(cached) $ECHO_C" >&6
21840 else
21841   cat >conftest.$ac_ext <<_ACEOF
21842 /* confdefs.h.  */
21843 _ACEOF
21844 cat confdefs.h >>conftest.$ac_ext
21845 cat >>conftest.$ac_ext <<_ACEOF
21846 /* end confdefs.h.  */
21847 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
21848    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21849 #define connect innocuous_connect
21850
21851 /* System header to define __stub macros and hopefully few prototypes,
21852     which can conflict with char connect (); below.
21853     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21854     <limits.h> exists even on freestanding compilers.  */
21855
21856 #ifdef __STDC__
21857 # include <limits.h>
21858 #else
21859 # include <assert.h>
21860 #endif
21861
21862 #undef connect
21863
21864 /* Override any GCC internal prototype to avoid an error.
21865    Use char because int might match the return type of a GCC
21866    builtin and then its argument prototype would still apply.  */
21867 #ifdef __cplusplus
21868 extern "C"
21869 #endif
21870 char connect ();
21871 /* The GNU C library defines this for functions which it implements
21872     to always fail with ENOSYS.  Some functions are actually named
21873     something starting with __ and the normal name is an alias.  */
21874 #if defined __stub_connect || defined __stub___connect
21875 choke me
21876 #endif
21877
21878 int
21879 main ()
21880 {
21881 return connect ();
21882   ;
21883   return 0;
21884 }
21885 _ACEOF
21886 rm -f conftest.$ac_objext conftest$ac_exeext
21887 if { (ac_try="$ac_link"
21888 case "(($ac_try" in
21889   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21890   *) ac_try_echo=$ac_try;;
21891 esac
21892 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21893   (eval "$ac_link") 2>conftest.er1
21894   ac_status=$?
21895   grep -v '^ *+' conftest.er1 >conftest.err
21896   rm -f conftest.er1
21897   cat conftest.err >&5
21898   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21899   (exit $ac_status); } && {
21900          test -z "$ac_c_werror_flag" ||
21901          test ! -s conftest.err
21902        } && test -s conftest$ac_exeext &&
21903        $as_test_x conftest$ac_exeext; then
21904   ac_cv_func_connect=yes
21905 else
21906   echo "$as_me: failed program was:" >&5
21907 sed 's/^/| /' conftest.$ac_ext >&5
21908
21909         ac_cv_func_connect=no
21910 fi
21911
21912 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21913       conftest$ac_exeext conftest.$ac_ext
21914 fi
21915 { echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
21916 echo "${ECHO_T}$ac_cv_func_connect" >&6; }
21917 if test $ac_cv_func_connect = yes; then
21918   :
21919 else
21920   { echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
21921 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6; }
21922 if test "${ac_cv_lib_socket_connect+set}" = set; then
21923   echo $ECHO_N "(cached) $ECHO_C" >&6
21924 else
21925   ac_check_lib_save_LIBS=$LIBS
21926 LIBS="-lsocket $LIBNSL $LIBS"
21927 cat >conftest.$ac_ext <<_ACEOF
21928 /* confdefs.h.  */
21929 _ACEOF
21930 cat confdefs.h >>conftest.$ac_ext
21931 cat >>conftest.$ac_ext <<_ACEOF
21932 /* end confdefs.h.  */
21933
21934 /* Override any GCC internal prototype to avoid an error.
21935    Use char because int might match the return type of a GCC
21936    builtin and then its argument prototype would still apply.  */
21937 #ifdef __cplusplus
21938 extern "C"
21939 #endif
21940 char connect ();
21941 int
21942 main ()
21943 {
21944 return connect ();
21945   ;
21946   return 0;
21947 }
21948 _ACEOF
21949 rm -f conftest.$ac_objext conftest$ac_exeext
21950 if { (ac_try="$ac_link"
21951 case "(($ac_try" in
21952   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21953   *) ac_try_echo=$ac_try;;
21954 esac
21955 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21956   (eval "$ac_link") 2>conftest.er1
21957   ac_status=$?
21958   grep -v '^ *+' conftest.er1 >conftest.err
21959   rm -f conftest.er1
21960   cat conftest.err >&5
21961   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21962   (exit $ac_status); } && {
21963          test -z "$ac_c_werror_flag" ||
21964          test ! -s conftest.err
21965        } && test -s conftest$ac_exeext &&
21966        $as_test_x conftest$ac_exeext; then
21967   ac_cv_lib_socket_connect=yes
21968 else
21969   echo "$as_me: failed program was:" >&5
21970 sed 's/^/| /' conftest.$ac_ext >&5
21971
21972         ac_cv_lib_socket_connect=no
21973 fi
21974
21975 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21976       conftest$ac_exeext conftest.$ac_ext
21977 LIBS=$ac_check_lib_save_LIBS
21978 fi
21979 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
21980 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6; }
21981 if test $ac_cv_lib_socket_connect = yes; then
21982   LIBSOCKET="-lsocket"
21983 else
21984   { { echo "$as_me:$LINENO: error: Function 'socket' not found." >&5
21985 echo "$as_me: error: Function 'socket' not found." >&2;}
21986    { (exit 1); exit 1; }; }
21987 fi
21988
21989 fi
21990
21991
21992 { echo "$as_me:$LINENO: checking for getaddrinfo" >&5
21993 echo $ECHO_N "checking for getaddrinfo... $ECHO_C" >&6; }
21994 if test "${ac_cv_func_getaddrinfo+set}" = set; then
21995   echo $ECHO_N "(cached) $ECHO_C" >&6
21996 else
21997   cat >conftest.$ac_ext <<_ACEOF
21998 /* confdefs.h.  */
21999 _ACEOF
22000 cat confdefs.h >>conftest.$ac_ext
22001 cat >>conftest.$ac_ext <<_ACEOF
22002 /* end confdefs.h.  */
22003 /* Define getaddrinfo to an innocuous variant, in case <limits.h> declares getaddrinfo.
22004    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22005 #define getaddrinfo innocuous_getaddrinfo
22006
22007 /* System header to define __stub macros and hopefully few prototypes,
22008     which can conflict with char getaddrinfo (); below.
22009     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22010     <limits.h> exists even on freestanding compilers.  */
22011
22012 #ifdef __STDC__
22013 # include <limits.h>
22014 #else
22015 # include <assert.h>
22016 #endif
22017
22018 #undef getaddrinfo
22019
22020 /* Override any GCC internal prototype to avoid an error.
22021    Use char because int might match the return type of a GCC
22022    builtin and then its argument prototype would still apply.  */
22023 #ifdef __cplusplus
22024 extern "C"
22025 #endif
22026 char getaddrinfo ();
22027 /* The GNU C library defines this for functions which it implements
22028     to always fail with ENOSYS.  Some functions are actually named
22029     something starting with __ and the normal name is an alias.  */
22030 #if defined __stub_getaddrinfo || defined __stub___getaddrinfo
22031 choke me
22032 #endif
22033
22034 int
22035 main ()
22036 {
22037 return getaddrinfo ();
22038   ;
22039   return 0;
22040 }
22041 _ACEOF
22042 rm -f conftest.$ac_objext conftest$ac_exeext
22043 if { (ac_try="$ac_link"
22044 case "(($ac_try" in
22045   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22046   *) ac_try_echo=$ac_try;;
22047 esac
22048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22049   (eval "$ac_link") 2>conftest.er1
22050   ac_status=$?
22051   grep -v '^ *+' conftest.er1 >conftest.err
22052   rm -f conftest.er1
22053   cat conftest.err >&5
22054   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22055   (exit $ac_status); } && {
22056          test -z "$ac_c_werror_flag" ||
22057          test ! -s conftest.err
22058        } && test -s conftest$ac_exeext &&
22059        $as_test_x conftest$ac_exeext; then
22060   ac_cv_func_getaddrinfo=yes
22061 else
22062   echo "$as_me: failed program was:" >&5
22063 sed 's/^/| /' conftest.$ac_ext >&5
22064
22065         ac_cv_func_getaddrinfo=no
22066 fi
22067
22068 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22069       conftest$ac_exeext conftest.$ac_ext
22070 fi
22071 { echo "$as_me:$LINENO: result: $ac_cv_func_getaddrinfo" >&5
22072 echo "${ECHO_T}$ac_cv_func_getaddrinfo" >&6; }
22073
22074
22075 { echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
22076 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6; }
22077 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
22078   echo $ECHO_N "(cached) $ECHO_C" >&6
22079 else
22080   ac_check_lib_save_LIBS=$LIBS
22081 LIBS="-lcrypt  $LIBS"
22082 cat >conftest.$ac_ext <<_ACEOF
22083 /* confdefs.h.  */
22084 _ACEOF
22085 cat confdefs.h >>conftest.$ac_ext
22086 cat >>conftest.$ac_ext <<_ACEOF
22087 /* end confdefs.h.  */
22088
22089 /* Override any GCC internal prototype to avoid an error.
22090    Use char because int might match the return type of a GCC
22091    builtin and then its argument prototype would still apply.  */
22092 #ifdef __cplusplus
22093 extern "C"
22094 #endif
22095 char crypt ();
22096 int
22097 main ()
22098 {
22099 return crypt ();
22100   ;
22101   return 0;
22102 }
22103 _ACEOF
22104 rm -f conftest.$ac_objext conftest$ac_exeext
22105 if { (ac_try="$ac_link"
22106 case "(($ac_try" in
22107   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22108   *) ac_try_echo=$ac_try;;
22109 esac
22110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22111   (eval "$ac_link") 2>conftest.er1
22112   ac_status=$?
22113   grep -v '^ *+' conftest.er1 >conftest.err
22114   rm -f conftest.er1
22115   cat conftest.err >&5
22116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22117   (exit $ac_status); } && {
22118          test -z "$ac_c_werror_flag" ||
22119          test ! -s conftest.err
22120        } && test -s conftest$ac_exeext &&
22121        $as_test_x conftest$ac_exeext; then
22122   ac_cv_lib_crypt_crypt=yes
22123 else
22124   echo "$as_me: failed program was:" >&5
22125 sed 's/^/| /' conftest.$ac_ext >&5
22126
22127         ac_cv_lib_crypt_crypt=no
22128 fi
22129
22130 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22131       conftest$ac_exeext conftest.$ac_ext
22132 LIBS=$ac_check_lib_save_LIBS
22133 fi
22134 { echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
22135 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6; }
22136 if test $ac_cv_lib_crypt_crypt = yes; then
22137   LIBCRYPT="-lcrypt"
22138 fi
22139
22140 if test "$enable_nfsv4" = yes; then
22141     { echo "$as_me:$LINENO: checking for event_dispatch in -levent" >&5
22142 echo $ECHO_N "checking for event_dispatch in -levent... $ECHO_C" >&6; }
22143 if test "${ac_cv_lib_event_event_dispatch+set}" = set; then
22144   echo $ECHO_N "(cached) $ECHO_C" >&6
22145 else
22146   ac_check_lib_save_LIBS=$LIBS
22147 LIBS="-levent  $LIBS"
22148 cat >conftest.$ac_ext <<_ACEOF
22149 /* confdefs.h.  */
22150 _ACEOF
22151 cat confdefs.h >>conftest.$ac_ext
22152 cat >>conftest.$ac_ext <<_ACEOF
22153 /* end confdefs.h.  */
22154
22155 /* Override any GCC internal prototype to avoid an error.
22156    Use char because int might match the return type of a GCC
22157    builtin and then its argument prototype would still apply.  */
22158 #ifdef __cplusplus
22159 extern "C"
22160 #endif
22161 char event_dispatch ();
22162 int
22163 main ()
22164 {
22165 return event_dispatch ();
22166   ;
22167   return 0;
22168 }
22169 _ACEOF
22170 rm -f conftest.$ac_objext conftest$ac_exeext
22171 if { (ac_try="$ac_link"
22172 case "(($ac_try" in
22173   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22174   *) ac_try_echo=$ac_try;;
22175 esac
22176 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22177   (eval "$ac_link") 2>conftest.er1
22178   ac_status=$?
22179   grep -v '^ *+' conftest.er1 >conftest.err
22180   rm -f conftest.er1
22181   cat conftest.err >&5
22182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22183   (exit $ac_status); } && {
22184          test -z "$ac_c_werror_flag" ||
22185          test ! -s conftest.err
22186        } && test -s conftest$ac_exeext &&
22187        $as_test_x conftest$ac_exeext; then
22188   ac_cv_lib_event_event_dispatch=yes
22189 else
22190   echo "$as_me: failed program was:" >&5
22191 sed 's/^/| /' conftest.$ac_ext >&5
22192
22193         ac_cv_lib_event_event_dispatch=no
22194 fi
22195
22196 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22197       conftest$ac_exeext conftest.$ac_ext
22198 LIBS=$ac_check_lib_save_LIBS
22199 fi
22200 { echo "$as_me:$LINENO: result: $ac_cv_lib_event_event_dispatch" >&5
22201 echo "${ECHO_T}$ac_cv_lib_event_event_dispatch" >&6; }
22202 if test $ac_cv_lib_event_event_dispatch = yes; then
22203   libevent=1
22204 else
22205   { { echo "$as_me:$LINENO: error: libevent needed for nfsv4 support" >&5
22206 echo "$as_me: error: libevent needed for nfsv4 support" >&2;}
22207    { (exit 1); exit 1; }; }
22208 fi
22209
22210     { echo "$as_me:$LINENO: checking for nfs4_init_name_mapping in -lnfsidmap" >&5
22211 echo $ECHO_N "checking for nfs4_init_name_mapping in -lnfsidmap... $ECHO_C" >&6; }
22212 if test "${ac_cv_lib_nfsidmap_nfs4_init_name_mapping+set}" = set; then
22213   echo $ECHO_N "(cached) $ECHO_C" >&6
22214 else
22215   ac_check_lib_save_LIBS=$LIBS
22216 LIBS="-lnfsidmap  $LIBS"
22217 cat >conftest.$ac_ext <<_ACEOF
22218 /* confdefs.h.  */
22219 _ACEOF
22220 cat confdefs.h >>conftest.$ac_ext
22221 cat >>conftest.$ac_ext <<_ACEOF
22222 /* end confdefs.h.  */
22223
22224 /* Override any GCC internal prototype to avoid an error.
22225    Use char because int might match the return type of a GCC
22226    builtin and then its argument prototype would still apply.  */
22227 #ifdef __cplusplus
22228 extern "C"
22229 #endif
22230 char nfs4_init_name_mapping ();
22231 int
22232 main ()
22233 {
22234 return nfs4_init_name_mapping ();
22235   ;
22236   return 0;
22237 }
22238 _ACEOF
22239 rm -f conftest.$ac_objext conftest$ac_exeext
22240 if { (ac_try="$ac_link"
22241 case "(($ac_try" in
22242   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22243   *) ac_try_echo=$ac_try;;
22244 esac
22245 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22246   (eval "$ac_link") 2>conftest.er1
22247   ac_status=$?
22248   grep -v '^ *+' conftest.er1 >conftest.err
22249   rm -f conftest.er1
22250   cat conftest.err >&5
22251   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22252   (exit $ac_status); } && {
22253          test -z "$ac_c_werror_flag" ||
22254          test ! -s conftest.err
22255        } && test -s conftest$ac_exeext &&
22256        $as_test_x conftest$ac_exeext; then
22257   ac_cv_lib_nfsidmap_nfs4_init_name_mapping=yes
22258 else
22259   echo "$as_me: failed program was:" >&5
22260 sed 's/^/| /' conftest.$ac_ext >&5
22261
22262         ac_cv_lib_nfsidmap_nfs4_init_name_mapping=no
22263 fi
22264
22265 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22266       conftest$ac_exeext conftest.$ac_ext
22267 LIBS=$ac_check_lib_save_LIBS
22268 fi
22269 { echo "$as_me:$LINENO: result: $ac_cv_lib_nfsidmap_nfs4_init_name_mapping" >&5
22270 echo "${ECHO_T}$ac_cv_lib_nfsidmap_nfs4_init_name_mapping" >&6; }
22271 if test $ac_cv_lib_nfsidmap_nfs4_init_name_mapping = yes; then
22272   libnfsidmap=1
22273 else
22274   { { echo "$as_me:$LINENO: error: libnfsidmap needed for nfsv4 support" >&5
22275 echo "$as_me: error: libnfsidmap needed for nfsv4 support" >&2;}
22276    { (exit 1); exit 1; }; }
22277 fi
22278
22279
22280 for ac_header in event.h
22281 do
22282 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22283 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22284   { echo "$as_me:$LINENO: checking for $ac_header" >&5
22285 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22286 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22287   echo $ECHO_N "(cached) $ECHO_C" >&6
22288 fi
22289 ac_res=`eval echo '${'$as_ac_Header'}'`
22290                { echo "$as_me:$LINENO: result: $ac_res" >&5
22291 echo "${ECHO_T}$ac_res" >&6; }
22292 else
22293   # Is the header compilable?
22294 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
22295 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22296 cat >conftest.$ac_ext <<_ACEOF
22297 /* confdefs.h.  */
22298 _ACEOF
22299 cat confdefs.h >>conftest.$ac_ext
22300 cat >>conftest.$ac_ext <<_ACEOF
22301 /* end confdefs.h.  */
22302 $ac_includes_default
22303 #include <$ac_header>
22304 _ACEOF
22305 rm -f conftest.$ac_objext
22306 if { (ac_try="$ac_compile"
22307 case "(($ac_try" in
22308   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22309   *) ac_try_echo=$ac_try;;
22310 esac
22311 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22312   (eval "$ac_compile") 2>conftest.er1
22313   ac_status=$?
22314   grep -v '^ *+' conftest.er1 >conftest.err
22315   rm -f conftest.er1
22316   cat conftest.err >&5
22317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22318   (exit $ac_status); } && {
22319          test -z "$ac_c_werror_flag" ||
22320          test ! -s conftest.err
22321        } && test -s conftest.$ac_objext; then
22322   ac_header_compiler=yes
22323 else
22324   echo "$as_me: failed program was:" >&5
22325 sed 's/^/| /' conftest.$ac_ext >&5
22326
22327         ac_header_compiler=no
22328 fi
22329
22330 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22331 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22332 echo "${ECHO_T}$ac_header_compiler" >&6; }
22333
22334 # Is the header present?
22335 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
22336 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22337 cat >conftest.$ac_ext <<_ACEOF
22338 /* confdefs.h.  */
22339 _ACEOF
22340 cat confdefs.h >>conftest.$ac_ext
22341 cat >>conftest.$ac_ext <<_ACEOF
22342 /* end confdefs.h.  */
22343 #include <$ac_header>
22344 _ACEOF
22345 if { (ac_try="$ac_cpp conftest.$ac_ext"
22346 case "(($ac_try" in
22347   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22348   *) ac_try_echo=$ac_try;;
22349 esac
22350 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22351   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22352   ac_status=$?
22353   grep -v '^ *+' conftest.er1 >conftest.err
22354   rm -f conftest.er1
22355   cat conftest.err >&5
22356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22357   (exit $ac_status); } >/dev/null && {
22358          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22359          test ! -s conftest.err
22360        }; then
22361   ac_header_preproc=yes
22362 else
22363   echo "$as_me: failed program was:" >&5
22364 sed 's/^/| /' conftest.$ac_ext >&5
22365
22366   ac_header_preproc=no
22367 fi
22368
22369 rm -f conftest.err conftest.$ac_ext
22370 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22371 echo "${ECHO_T}$ac_header_preproc" >&6; }
22372
22373 # So?  What about this header?
22374 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22375   yes:no: )
22376     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22377 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22378     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22379 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22380     ac_header_preproc=yes
22381     ;;
22382   no:yes:* )
22383     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22384 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22385     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
22386 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
22387     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22388 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22389     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
22390 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
22391     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22392 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22393     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22394 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22395     ( cat <<\_ASBOX
22396 ## ---------------------------------------- ##
22397 ## Report this to linux-nfs@vger.kernel.org ##
22398 ## ---------------------------------------- ##
22399 _ASBOX
22400      ) | sed "s/^/$as_me: WARNING:     /" >&2
22401     ;;
22402 esac
22403 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22404 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22405 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22406   echo $ECHO_N "(cached) $ECHO_C" >&6
22407 else
22408   eval "$as_ac_Header=\$ac_header_preproc"
22409 fi
22410 ac_res=`eval echo '${'$as_ac_Header'}'`
22411                { echo "$as_me:$LINENO: result: $ac_res" >&5
22412 echo "${ECHO_T}$ac_res" >&6; }
22413
22414 fi
22415 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22416   cat >>confdefs.h <<_ACEOF
22417 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22418 _ACEOF
22419
22420 else
22421   { { echo "$as_me:$LINENO: error: libevent needed for nfsv4 support" >&5
22422 echo "$as_me: error: libevent needed for nfsv4 support" >&2;}
22423    { (exit 1); exit 1; }; }
22424 fi
22425
22426 done
22427
22428
22429 for ac_header in nfsidmap.h
22430 do
22431 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22432 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22433   { echo "$as_me:$LINENO: checking for $ac_header" >&5
22434 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22435 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22436   echo $ECHO_N "(cached) $ECHO_C" >&6
22437 fi
22438 ac_res=`eval echo '${'$as_ac_Header'}'`
22439                { echo "$as_me:$LINENO: result: $ac_res" >&5
22440 echo "${ECHO_T}$ac_res" >&6; }
22441 else
22442   # Is the header compilable?
22443 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
22444 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22445 cat >conftest.$ac_ext <<_ACEOF
22446 /* confdefs.h.  */
22447 _ACEOF
22448 cat confdefs.h >>conftest.$ac_ext
22449 cat >>conftest.$ac_ext <<_ACEOF
22450 /* end confdefs.h.  */
22451 $ac_includes_default
22452 #include <$ac_header>
22453 _ACEOF
22454 rm -f conftest.$ac_objext
22455 if { (ac_try="$ac_compile"
22456 case "(($ac_try" in
22457   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22458   *) ac_try_echo=$ac_try;;
22459 esac
22460 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22461   (eval "$ac_compile") 2>conftest.er1
22462   ac_status=$?
22463   grep -v '^ *+' conftest.er1 >conftest.err
22464   rm -f conftest.er1
22465   cat conftest.err >&5
22466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22467   (exit $ac_status); } && {
22468          test -z "$ac_c_werror_flag" ||
22469          test ! -s conftest.err
22470        } && test -s conftest.$ac_objext; then
22471   ac_header_compiler=yes
22472 else
22473   echo "$as_me: failed program was:" >&5
22474 sed 's/^/| /' conftest.$ac_ext >&5
22475
22476         ac_header_compiler=no
22477 fi
22478
22479 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22480 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22481 echo "${ECHO_T}$ac_header_compiler" >&6; }
22482
22483 # Is the header present?
22484 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
22485 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22486 cat >conftest.$ac_ext <<_ACEOF
22487 /* confdefs.h.  */
22488 _ACEOF
22489 cat confdefs.h >>conftest.$ac_ext
22490 cat >>conftest.$ac_ext <<_ACEOF
22491 /* end confdefs.h.  */
22492 #include <$ac_header>
22493 _ACEOF
22494 if { (ac_try="$ac_cpp conftest.$ac_ext"
22495 case "(($ac_try" in
22496   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22497   *) ac_try_echo=$ac_try;;
22498 esac
22499 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22500   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22501   ac_status=$?
22502   grep -v '^ *+' conftest.er1 >conftest.err
22503   rm -f conftest.er1
22504   cat conftest.err >&5
22505   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22506   (exit $ac_status); } >/dev/null && {
22507          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22508          test ! -s conftest.err
22509        }; then
22510   ac_header_preproc=yes
22511 else
22512   echo "$as_me: failed program was:" >&5
22513 sed 's/^/| /' conftest.$ac_ext >&5
22514
22515   ac_header_preproc=no
22516 fi
22517
22518 rm -f conftest.err conftest.$ac_ext
22519 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22520 echo "${ECHO_T}$ac_header_preproc" >&6; }
22521
22522 # So?  What about this header?
22523 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22524   yes:no: )
22525     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22526 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22527     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22528 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22529     ac_header_preproc=yes
22530     ;;
22531   no:yes:* )
22532     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22533 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22534     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
22535 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
22536     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22537 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22538     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
22539 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
22540     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22541 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22542     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22543 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22544     ( cat <<\_ASBOX
22545 ## ---------------------------------------- ##
22546 ## Report this to linux-nfs@vger.kernel.org ##
22547 ## ---------------------------------------- ##
22548 _ASBOX
22549      ) | sed "s/^/$as_me: WARNING:     /" >&2
22550     ;;
22551 esac
22552 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22553 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22554 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22555   echo $ECHO_N "(cached) $ECHO_C" >&6
22556 else
22557   eval "$as_ac_Header=\$ac_header_preproc"
22558 fi
22559 ac_res=`eval echo '${'$as_ac_Header'}'`
22560                { echo "$as_me:$LINENO: result: $ac_res" >&5
22561 echo "${ECHO_T}$ac_res" >&6; }
22562
22563 fi
22564 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22565   cat >>confdefs.h <<_ACEOF
22566 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22567 _ACEOF
22568
22569 else
22570   { { echo "$as_me:$LINENO: error: libnfsidmap needed for nfsv4 support" >&5
22571 echo "$as_me: error: libnfsidmap needed for nfsv4 support" >&2;}
22572    { (exit 1); exit 1; }; }
22573 fi
22574
22575 done
22576
22577             if test "$enable_gss" = yes; then
22578
22579
22580 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
22581         if test -n "$ac_tool_prefix"; then
22582   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
22583 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
22584 { echo "$as_me:$LINENO: checking for $ac_word" >&5
22585 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
22586 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
22587   echo $ECHO_N "(cached) $ECHO_C" >&6
22588 else
22589   case $PKG_CONFIG in
22590   [\\/]* | ?:[\\/]*)
22591   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
22592   ;;
22593   *)
22594   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22595 for as_dir in $PATH
22596 do
22597   IFS=$as_save_IFS
22598   test -z "$as_dir" && as_dir=.
22599   for ac_exec_ext in '' $ac_executable_extensions; do
22600   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22601     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22602     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22603     break 2
22604   fi
22605 done
22606 done
22607 IFS=$as_save_IFS
22608
22609   ;;
22610 esac
22611 fi
22612 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
22613 if test -n "$PKG_CONFIG"; then
22614   { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
22615 echo "${ECHO_T}$PKG_CONFIG" >&6; }
22616 else
22617   { echo "$as_me:$LINENO: result: no" >&5
22618 echo "${ECHO_T}no" >&6; }
22619 fi
22620
22621
22622 fi
22623 if test -z "$ac_cv_path_PKG_CONFIG"; then
22624   ac_pt_PKG_CONFIG=$PKG_CONFIG
22625   # Extract the first word of "pkg-config", so it can be a program name with args.
22626 set dummy pkg-config; ac_word=$2
22627 { echo "$as_me:$LINENO: checking for $ac_word" >&5
22628 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
22629 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
22630   echo $ECHO_N "(cached) $ECHO_C" >&6
22631 else
22632   case $ac_pt_PKG_CONFIG in
22633   [\\/]* | ?:[\\/]*)
22634   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
22635   ;;
22636   *)
22637   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22638 for as_dir in $PATH
22639 do
22640   IFS=$as_save_IFS
22641   test -z "$as_dir" && as_dir=.
22642   for ac_exec_ext in '' $ac_executable_extensions; do
22643   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22644     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22645     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22646     break 2
22647   fi
22648 done
22649 done
22650 IFS=$as_save_IFS
22651
22652   ;;
22653 esac
22654 fi
22655 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
22656 if test -n "$ac_pt_PKG_CONFIG"; then
22657   { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
22658 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
22659 else
22660   { echo "$as_me:$LINENO: result: no" >&5
22661 echo "${ECHO_T}no" >&6; }
22662 fi
22663
22664   if test "x$ac_pt_PKG_CONFIG" = x; then
22665     PKG_CONFIG=""
22666   else
22667     case $cross_compiling:$ac_tool_warned in
22668 yes:)
22669 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
22670 whose name does not start with the host triplet.  If you think this
22671 configuration is useful to you, please write to autoconf@gnu.org." >&5
22672 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
22673 whose name does not start with the host triplet.  If you think this
22674 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
22675 ac_tool_warned=yes ;;
22676 esac
22677     PKG_CONFIG=$ac_pt_PKG_CONFIG
22678   fi
22679 else
22680   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
22681 fi
22682
22683 fi
22684 if test -n "$PKG_CONFIG"; then
22685         _pkg_min_version=0.9.0
22686         { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
22687 echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
22688         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
22689                 { echo "$as_me:$LINENO: result: yes" >&5
22690 echo "${ECHO_T}yes" >&6; }
22691         else
22692                 { echo "$as_me:$LINENO: result: no" >&5
22693 echo "${ECHO_T}no" >&6; }
22694                 PKG_CONFIG=""
22695         fi
22696
22697 fi
22698
22699 pkg_failed=no
22700 { echo "$as_me:$LINENO: checking for RPCSECGSS" >&5
22701 echo $ECHO_N "checking for RPCSECGSS... $ECHO_C" >&6; }
22702
22703 if test -n "$RPCSECGSS_CFLAGS"; then
22704     pkg_cv_RPCSECGSS_CFLAGS="$RPCSECGSS_CFLAGS"
22705  elif test -n "$PKG_CONFIG"; then
22706     if test -n "$PKG_CONFIG" && \
22707     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"librpcsecgss >= 0.16\"") >&5
22708   ($PKG_CONFIG --exists --print-errors "librpcsecgss >= 0.16") 2>&5
22709   ac_status=$?
22710   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22711   (exit $ac_status); }; then
22712   pkg_cv_RPCSECGSS_CFLAGS=`$PKG_CONFIG --cflags "librpcsecgss >= 0.16" 2>/dev/null`
22713 else
22714   pkg_failed=yes
22715 fi
22716  else
22717     pkg_failed=untried
22718 fi
22719 if test -n "$RPCSECGSS_LIBS"; then
22720     pkg_cv_RPCSECGSS_LIBS="$RPCSECGSS_LIBS"
22721  elif test -n "$PKG_CONFIG"; then
22722     if test -n "$PKG_CONFIG" && \
22723     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"librpcsecgss >= 0.16\"") >&5
22724   ($PKG_CONFIG --exists --print-errors "librpcsecgss >= 0.16") 2>&5
22725   ac_status=$?
22726   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22727   (exit $ac_status); }; then
22728   pkg_cv_RPCSECGSS_LIBS=`$PKG_CONFIG --libs "librpcsecgss >= 0.16" 2>/dev/null`
22729 else
22730   pkg_failed=yes
22731 fi
22732  else
22733     pkg_failed=untried
22734 fi
22735
22736
22737
22738 if test $pkg_failed = yes; then
22739
22740 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
22741         _pkg_short_errors_supported=yes
22742 else
22743         _pkg_short_errors_supported=no
22744 fi
22745         if test $_pkg_short_errors_supported = yes; then
22746                 RPCSECGSS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "librpcsecgss >= 0.16" 2>&1`
22747         else
22748                 RPCSECGSS_PKG_ERRORS=`$PKG_CONFIG --print-errors "librpcsecgss >= 0.16" 2>&1`
22749         fi
22750         # Put the nasty error message in config.log where it belongs
22751         echo "$RPCSECGSS_PKG_ERRORS" >&5
22752
22753         { echo "$as_me:$LINENO: result: no" >&5
22754 echo "${ECHO_T}no" >&6; }
22755                 { { 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
22756 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;}
22757    { (exit 1); exit 1; }; }
22758
22759
22760 elif test $pkg_failed = untried; then
22761         { { 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
22762 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;}
22763    { (exit 1); exit 1; }; }
22764
22765
22766 else
22767         RPCSECGSS_CFLAGS=$pkg_cv_RPCSECGSS_CFLAGS
22768         RPCSECGSS_LIBS=$pkg_cv_RPCSECGSS_LIBS
22769         { echo "$as_me:$LINENO: result: yes" >&5
22770 echo "${ECHO_T}yes" >&6; }
22771         :
22772 fi
22773
22774 pkg_failed=no
22775 { echo "$as_me:$LINENO: checking for GSSGLUE" >&5
22776 echo $ECHO_N "checking for GSSGLUE... $ECHO_C" >&6; }
22777
22778 if test -n "$GSSGLUE_CFLAGS"; then
22779     pkg_cv_GSSGLUE_CFLAGS="$GSSGLUE_CFLAGS"
22780  elif test -n "$PKG_CONFIG"; then
22781     if test -n "$PKG_CONFIG" && \
22782     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libgssglue >= 0.1\"") >&5
22783   ($PKG_CONFIG --exists --print-errors "libgssglue >= 0.1") 2>&5
22784   ac_status=$?
22785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22786   (exit $ac_status); }; then
22787   pkg_cv_GSSGLUE_CFLAGS=`$PKG_CONFIG --cflags "libgssglue >= 0.1" 2>/dev/null`
22788 else
22789   pkg_failed=yes
22790 fi
22791  else
22792     pkg_failed=untried
22793 fi
22794 if test -n "$GSSGLUE_LIBS"; then
22795     pkg_cv_GSSGLUE_LIBS="$GSSGLUE_LIBS"
22796  elif test -n "$PKG_CONFIG"; then
22797     if test -n "$PKG_CONFIG" && \
22798     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libgssglue >= 0.1\"") >&5
22799   ($PKG_CONFIG --exists --print-errors "libgssglue >= 0.1") 2>&5
22800   ac_status=$?
22801   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22802   (exit $ac_status); }; then
22803   pkg_cv_GSSGLUE_LIBS=`$PKG_CONFIG --libs "libgssglue >= 0.1" 2>/dev/null`
22804 else
22805   pkg_failed=yes
22806 fi
22807  else
22808     pkg_failed=untried
22809 fi
22810
22811
22812
22813 if test $pkg_failed = yes; then
22814
22815 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
22816         _pkg_short_errors_supported=yes
22817 else
22818         _pkg_short_errors_supported=no
22819 fi
22820         if test $_pkg_short_errors_supported = yes; then
22821                 GSSGLUE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libgssglue >= 0.1" 2>&1`
22822         else
22823                 GSSGLUE_PKG_ERRORS=`$PKG_CONFIG --print-errors "libgssglue >= 0.1" 2>&1`
22824         fi
22825         # Put the nasty error message in config.log where it belongs
22826         echo "$GSSGLUE_PKG_ERRORS" >&5
22827
22828         { { echo "$as_me:$LINENO: error: Package requirements (libgssglue >= 0.1) were not met:
22829
22830 $GSSGLUE_PKG_ERRORS
22831
22832 Consider adjusting the PKG_CONFIG_PATH environment variable if you
22833 installed software in a non-standard prefix.
22834
22835 Alternatively, you may set the environment variables GSSGLUE_CFLAGS
22836 and GSSGLUE_LIBS to avoid the need to call pkg-config.
22837 See the pkg-config man page for more details.
22838 " >&5
22839 echo "$as_me: error: Package requirements (libgssglue >= 0.1) were not met:
22840
22841 $GSSGLUE_PKG_ERRORS
22842
22843 Consider adjusting the PKG_CONFIG_PATH environment variable if you
22844 installed software in a non-standard prefix.
22845
22846 Alternatively, you may set the environment variables GSSGLUE_CFLAGS
22847 and GSSGLUE_LIBS to avoid the need to call pkg-config.
22848 See the pkg-config man page for more details.
22849 " >&2;}
22850    { (exit 1); exit 1; }; }
22851 elif test $pkg_failed = untried; then
22852         { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
22853 is in your PATH or set the PKG_CONFIG environment variable to the full
22854 path to pkg-config.
22855
22856 Alternatively, you may set the environment variables GSSGLUE_CFLAGS
22857 and GSSGLUE_LIBS to avoid the need to call pkg-config.
22858 See the pkg-config man page for more details.
22859
22860 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
22861 See \`config.log' for more details." >&5
22862 echo "$as_me: error: The pkg-config script could not be found or is too old.  Make sure it
22863 is in your PATH or set the PKG_CONFIG environment variable to the full
22864 path to pkg-config.
22865
22866 Alternatively, you may set the environment variables GSSGLUE_CFLAGS
22867 and GSSGLUE_LIBS to avoid the need to call pkg-config.
22868 See the pkg-config man page for more details.
22869
22870 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
22871 See \`config.log' for more details." >&2;}
22872    { (exit 1); exit 1; }; }
22873 else
22874         GSSGLUE_CFLAGS=$pkg_cv_GSSGLUE_CFLAGS
22875         GSSGLUE_LIBS=$pkg_cv_GSSGLUE_LIBS
22876         { echo "$as_me:$LINENO: result: yes" >&5
22877 echo "${ECHO_T}yes" >&6; }
22878         :
22879 fi
22880     fi
22881
22882 fi
22883 if test "$knfsd_cv_glibc2" = no; then
22884     { echo "$as_me:$LINENO: checking for daemon in -lbsd" >&5
22885 echo $ECHO_N "checking for daemon in -lbsd... $ECHO_C" >&6; }
22886 if test "${ac_cv_lib_bsd_daemon+set}" = set; then
22887   echo $ECHO_N "(cached) $ECHO_C" >&6
22888 else
22889   ac_check_lib_save_LIBS=$LIBS
22890 LIBS="-lbsd  $LIBS"
22891 cat >conftest.$ac_ext <<_ACEOF
22892 /* confdefs.h.  */
22893 _ACEOF
22894 cat confdefs.h >>conftest.$ac_ext
22895 cat >>conftest.$ac_ext <<_ACEOF
22896 /* end confdefs.h.  */
22897
22898 /* Override any GCC internal prototype to avoid an error.
22899    Use char because int might match the return type of a GCC
22900    builtin and then its argument prototype would still apply.  */
22901 #ifdef __cplusplus
22902 extern "C"
22903 #endif
22904 char daemon ();
22905 int
22906 main ()
22907 {
22908 return daemon ();
22909   ;
22910   return 0;
22911 }
22912 _ACEOF
22913 rm -f conftest.$ac_objext conftest$ac_exeext
22914 if { (ac_try="$ac_link"
22915 case "(($ac_try" in
22916   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22917   *) ac_try_echo=$ac_try;;
22918 esac
22919 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22920   (eval "$ac_link") 2>conftest.er1
22921   ac_status=$?
22922   grep -v '^ *+' conftest.er1 >conftest.err
22923   rm -f conftest.er1
22924   cat conftest.err >&5
22925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22926   (exit $ac_status); } && {
22927          test -z "$ac_c_werror_flag" ||
22928          test ! -s conftest.err
22929        } && test -s conftest$ac_exeext &&
22930        $as_test_x conftest$ac_exeext; then
22931   ac_cv_lib_bsd_daemon=yes
22932 else
22933   echo "$as_me: failed program was:" >&5
22934 sed 's/^/| /' conftest.$ac_ext >&5
22935
22936         ac_cv_lib_bsd_daemon=no
22937 fi
22938
22939 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22940       conftest$ac_exeext conftest.$ac_ext
22941 LIBS=$ac_check_lib_save_LIBS
22942 fi
22943 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_daemon" >&5
22944 echo "${ECHO_T}$ac_cv_lib_bsd_daemon" >&6; }
22945 if test $ac_cv_lib_bsd_daemon = yes; then
22946   LIBBSD="-lbsd"
22947 fi
22948
22949 fi
22950
22951 if test "$choose_blkid" != no; then
22952    { echo "$as_me:$LINENO: checking for blkid_get_library_version in -lblkid" >&5
22953 echo $ECHO_N "checking for blkid_get_library_version in -lblkid... $ECHO_C" >&6; }
22954 if test "${ac_cv_lib_blkid_blkid_get_library_version+set}" = set; then
22955   echo $ECHO_N "(cached) $ECHO_C" >&6
22956 else
22957   ac_check_lib_save_LIBS=$LIBS
22958 LIBS="-lblkid  $LIBS"
22959 cat >conftest.$ac_ext <<_ACEOF
22960 /* confdefs.h.  */
22961 _ACEOF
22962 cat confdefs.h >>conftest.$ac_ext
22963 cat >>conftest.$ac_ext <<_ACEOF
22964 /* end confdefs.h.  */
22965
22966 /* Override any GCC internal prototype to avoid an error.
22967    Use char because int might match the return type of a GCC
22968    builtin and then its argument prototype would still apply.  */
22969 #ifdef __cplusplus
22970 extern "C"
22971 #endif
22972 char blkid_get_library_version ();
22973 int
22974 main ()
22975 {
22976 return blkid_get_library_version ();
22977   ;
22978   return 0;
22979 }
22980 _ACEOF
22981 rm -f conftest.$ac_objext conftest$ac_exeext
22982 if { (ac_try="$ac_link"
22983 case "(($ac_try" in
22984   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22985   *) ac_try_echo=$ac_try;;
22986 esac
22987 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22988   (eval "$ac_link") 2>conftest.er1
22989   ac_status=$?
22990   grep -v '^ *+' conftest.er1 >conftest.err
22991   rm -f conftest.er1
22992   cat conftest.err >&5
22993   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22994   (exit $ac_status); } && {
22995          test -z "$ac_c_werror_flag" ||
22996          test ! -s conftest.err
22997        } && test -s conftest$ac_exeext &&
22998        $as_test_x conftest$ac_exeext; then
22999   ac_cv_lib_blkid_blkid_get_library_version=yes
23000 else
23001   echo "$as_me: failed program was:" >&5
23002 sed 's/^/| /' conftest.$ac_ext >&5
23003
23004         ac_cv_lib_blkid_blkid_get_library_version=no
23005 fi
23006
23007 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23008       conftest$ac_exeext conftest.$ac_ext
23009 LIBS=$ac_check_lib_save_LIBS
23010 fi
23011 { echo "$as_me:$LINENO: result: $ac_cv_lib_blkid_blkid_get_library_version" >&5
23012 echo "${ECHO_T}$ac_cv_lib_blkid_blkid_get_library_version" >&6; }
23013 if test $ac_cv_lib_blkid_blkid_get_library_version = yes; then
23014   LIBBLKID="-lblkid"
23015 else
23016   { { echo "$as_me:$LINENO: error: libblkid needed" >&5
23017 echo "$as_me: error: libblkid needed" >&2;}
23018    { (exit 1); exit 1; }; }
23019 fi
23020
23021    if test "${ac_cv_header_blkid_blkid_h+set}" = set; then
23022   { echo "$as_me:$LINENO: checking for blkid/blkid.h" >&5
23023 echo $ECHO_N "checking for blkid/blkid.h... $ECHO_C" >&6; }
23024 if test "${ac_cv_header_blkid_blkid_h+set}" = set; then
23025   echo $ECHO_N "(cached) $ECHO_C" >&6
23026 fi
23027 { echo "$as_me:$LINENO: result: $ac_cv_header_blkid_blkid_h" >&5
23028 echo "${ECHO_T}$ac_cv_header_blkid_blkid_h" >&6; }
23029 else
23030   # Is the header compilable?
23031 { echo "$as_me:$LINENO: checking blkid/blkid.h usability" >&5
23032 echo $ECHO_N "checking blkid/blkid.h usability... $ECHO_C" >&6; }
23033 cat >conftest.$ac_ext <<_ACEOF
23034 /* confdefs.h.  */
23035 _ACEOF
23036 cat confdefs.h >>conftest.$ac_ext
23037 cat >>conftest.$ac_ext <<_ACEOF
23038 /* end confdefs.h.  */
23039 $ac_includes_default
23040 #include <blkid/blkid.h>
23041 _ACEOF
23042 rm -f conftest.$ac_objext
23043 if { (ac_try="$ac_compile"
23044 case "(($ac_try" in
23045   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23046   *) ac_try_echo=$ac_try;;
23047 esac
23048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23049   (eval "$ac_compile") 2>conftest.er1
23050   ac_status=$?
23051   grep -v '^ *+' conftest.er1 >conftest.err
23052   rm -f conftest.er1
23053   cat conftest.err >&5
23054   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23055   (exit $ac_status); } && {
23056          test -z "$ac_c_werror_flag" ||
23057          test ! -s conftest.err
23058        } && test -s conftest.$ac_objext; then
23059   ac_header_compiler=yes
23060 else
23061   echo "$as_me: failed program was:" >&5
23062 sed 's/^/| /' conftest.$ac_ext >&5
23063
23064         ac_header_compiler=no
23065 fi
23066
23067 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23068 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23069 echo "${ECHO_T}$ac_header_compiler" >&6; }
23070
23071 # Is the header present?
23072 { echo "$as_me:$LINENO: checking blkid/blkid.h presence" >&5
23073 echo $ECHO_N "checking blkid/blkid.h presence... $ECHO_C" >&6; }
23074 cat >conftest.$ac_ext <<_ACEOF
23075 /* confdefs.h.  */
23076 _ACEOF
23077 cat confdefs.h >>conftest.$ac_ext
23078 cat >>conftest.$ac_ext <<_ACEOF
23079 /* end confdefs.h.  */
23080 #include <blkid/blkid.h>
23081 _ACEOF
23082 if { (ac_try="$ac_cpp conftest.$ac_ext"
23083 case "(($ac_try" in
23084   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23085   *) ac_try_echo=$ac_try;;
23086 esac
23087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23088   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23089   ac_status=$?
23090   grep -v '^ *+' conftest.er1 >conftest.err
23091   rm -f conftest.er1
23092   cat conftest.err >&5
23093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23094   (exit $ac_status); } >/dev/null && {
23095          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23096          test ! -s conftest.err
23097        }; then
23098   ac_header_preproc=yes
23099 else
23100   echo "$as_me: failed program was:" >&5
23101 sed 's/^/| /' conftest.$ac_ext >&5
23102
23103   ac_header_preproc=no
23104 fi
23105
23106 rm -f conftest.err conftest.$ac_ext
23107 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23108 echo "${ECHO_T}$ac_header_preproc" >&6; }
23109
23110 # So?  What about this header?
23111 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23112   yes:no: )
23113     { echo "$as_me:$LINENO: WARNING: blkid/blkid.h: accepted by the compiler, rejected by the preprocessor!" >&5
23114 echo "$as_me: WARNING: blkid/blkid.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
23115     { echo "$as_me:$LINENO: WARNING: blkid/blkid.h: proceeding with the compiler's result" >&5
23116 echo "$as_me: WARNING: blkid/blkid.h: proceeding with the compiler's result" >&2;}
23117     ac_header_preproc=yes
23118     ;;
23119   no:yes:* )
23120     { echo "$as_me:$LINENO: WARNING: blkid/blkid.h: present but cannot be compiled" >&5
23121 echo "$as_me: WARNING: blkid/blkid.h: present but cannot be compiled" >&2;}
23122     { echo "$as_me:$LINENO: WARNING: blkid/blkid.h:     check for missing prerequisite headers?" >&5
23123 echo "$as_me: WARNING: blkid/blkid.h:     check for missing prerequisite headers?" >&2;}
23124     { echo "$as_me:$LINENO: WARNING: blkid/blkid.h: see the Autoconf documentation" >&5
23125 echo "$as_me: WARNING: blkid/blkid.h: see the Autoconf documentation" >&2;}
23126     { echo "$as_me:$LINENO: WARNING: blkid/blkid.h:     section \"Present But Cannot Be Compiled\"" >&5
23127 echo "$as_me: WARNING: blkid/blkid.h:     section \"Present But Cannot Be Compiled\"" >&2;}
23128     { echo "$as_me:$LINENO: WARNING: blkid/blkid.h: proceeding with the preprocessor's result" >&5
23129 echo "$as_me: WARNING: blkid/blkid.h: proceeding with the preprocessor's result" >&2;}
23130     { echo "$as_me:$LINENO: WARNING: blkid/blkid.h: in the future, the compiler will take precedence" >&5
23131 echo "$as_me: WARNING: blkid/blkid.h: in the future, the compiler will take precedence" >&2;}
23132     ( cat <<\_ASBOX
23133 ## ---------------------------------------- ##
23134 ## Report this to linux-nfs@vger.kernel.org ##
23135 ## ---------------------------------------- ##
23136 _ASBOX
23137      ) | sed "s/^/$as_me: WARNING:     /" >&2
23138     ;;
23139 esac
23140 { echo "$as_me:$LINENO: checking for blkid/blkid.h" >&5
23141 echo $ECHO_N "checking for blkid/blkid.h... $ECHO_C" >&6; }
23142 if test "${ac_cv_header_blkid_blkid_h+set}" = set; then
23143   echo $ECHO_N "(cached) $ECHO_C" >&6
23144 else
23145   ac_cv_header_blkid_blkid_h=$ac_header_preproc
23146 fi
23147 { echo "$as_me:$LINENO: result: $ac_cv_header_blkid_blkid_h" >&5
23148 echo "${ECHO_T}$ac_cv_header_blkid_blkid_h" >&6; }
23149
23150 fi
23151 if test $ac_cv_header_blkid_blkid_h = yes; then
23152   :
23153 else
23154   { { echo "$as_me:$LINENO: error: Cannot find libblkid header file blkid/blkid.h" >&5
23155 echo "$as_me: error: Cannot find libblkid header file blkid/blkid.h" >&2;}
23156    { (exit 1); exit 1; }; }
23157 fi
23158
23159
23160
23161   { echo "$as_me:$LINENO: checking for suitable libblkid version" >&5
23162 echo $ECHO_N "checking for suitable libblkid version... $ECHO_C" >&6; }
23163   if test "${libblkid_is_recent+set}" = set; then
23164   echo $ECHO_N "(cached) $ECHO_C" >&6
23165 else
23166
23167     saved_LIBS="$LIBS"
23168     LIBS=-lblkid
23169     if test "$cross_compiling" = yes; then
23170   libblkid_is_recent=unknown
23171 else
23172   cat >conftest.$ac_ext <<_ACEOF
23173 /* confdefs.h.  */
23174 _ACEOF
23175 cat confdefs.h >>conftest.$ac_ext
23176 cat >>conftest.$ac_ext <<_ACEOF
23177 /* end confdefs.h.  */
23178
23179         #include <blkid/blkid.h>
23180         int main()
23181         {
23182                 int vers = blkid_get_library_version(0, 0);
23183                 return vers >= 140 ? 0 : 1;
23184         }
23185
23186 _ACEOF
23187 rm -f conftest$ac_exeext
23188 if { (ac_try="$ac_link"
23189 case "(($ac_try" in
23190   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23191   *) ac_try_echo=$ac_try;;
23192 esac
23193 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23194   (eval "$ac_link") 2>&5
23195   ac_status=$?
23196   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23197   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23198   { (case "(($ac_try" in
23199   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23200   *) ac_try_echo=$ac_try;;
23201 esac
23202 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23203   (eval "$ac_try") 2>&5
23204   ac_status=$?
23205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23206   (exit $ac_status); }; }; then
23207   libblkid_is_recent=yes
23208 else
23209   echo "$as_me: program exited with status $ac_status" >&5
23210 echo "$as_me: failed program was:" >&5
23211 sed 's/^/| /' conftest.$ac_ext >&5
23212
23213 ( exit $ac_status )
23214 libblkid_is_recent=no
23215 fi
23216 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23217 fi
23218
23219
23220     LIBS="$saved_LIBS"
23221
23222 fi
23223   { echo "$as_me:$LINENO: result: $libblkid_is_recent" >&5
23224 echo "${ECHO_T}$libblkid_is_recent" >&6; }
23225
23226    if test $choose_blkid = yes; then
23227       use_blkid=1
23228       test $libblkid_is_recent = no && { echo "$as_me:$LINENO: WARNING: libblkid is old and may cause mountd to leak memory" >&5
23229 echo "$as_me: WARNING: libblkid is old and may cause mountd to leak memory" >&2;}
23230    else
23231       if test $libblkid_is_recent = yes
23232       then use_blkid=1
23233       else use_blkid=0
23234            { echo "$as_me:$LINENO: WARNING: uuid support disabled as libblkid is too old" >&5
23235 echo "$as_me: WARNING: uuid support disabled as libblkid is too old" >&2;}
23236       fi
23237     fi
23238
23239 cat >>confdefs.h <<_ACEOF
23240 #define USE_BLKID $use_blkid
23241 _ACEOF
23242
23243 fi
23244
23245
23246
23247
23248
23249 if test "$enable_gss" = yes; then
23250
23251 for ac_header in nfsidmap.h
23252 do
23253 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23254 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23255   { echo "$as_me:$LINENO: checking for $ac_header" >&5
23256 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23257 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23258   echo $ECHO_N "(cached) $ECHO_C" >&6
23259 fi
23260 ac_res=`eval echo '${'$as_ac_Header'}'`
23261                { echo "$as_me:$LINENO: result: $ac_res" >&5
23262 echo "${ECHO_T}$ac_res" >&6; }
23263 else
23264   # Is the header compilable?
23265 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
23266 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
23267 cat >conftest.$ac_ext <<_ACEOF
23268 /* confdefs.h.  */
23269 _ACEOF
23270 cat confdefs.h >>conftest.$ac_ext
23271 cat >>conftest.$ac_ext <<_ACEOF
23272 /* end confdefs.h.  */
23273 $ac_includes_default
23274 #include <$ac_header>
23275 _ACEOF
23276 rm -f conftest.$ac_objext
23277 if { (ac_try="$ac_compile"
23278 case "(($ac_try" in
23279   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23280   *) ac_try_echo=$ac_try;;
23281 esac
23282 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23283   (eval "$ac_compile") 2>conftest.er1
23284   ac_status=$?
23285   grep -v '^ *+' conftest.er1 >conftest.err
23286   rm -f conftest.er1
23287   cat conftest.err >&5
23288   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23289   (exit $ac_status); } && {
23290          test -z "$ac_c_werror_flag" ||
23291          test ! -s conftest.err
23292        } && test -s conftest.$ac_objext; then
23293   ac_header_compiler=yes
23294 else
23295   echo "$as_me: failed program was:" >&5
23296 sed 's/^/| /' conftest.$ac_ext >&5
23297
23298         ac_header_compiler=no
23299 fi
23300
23301 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23302 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23303 echo "${ECHO_T}$ac_header_compiler" >&6; }
23304
23305 # Is the header present?
23306 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
23307 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
23308 cat >conftest.$ac_ext <<_ACEOF
23309 /* confdefs.h.  */
23310 _ACEOF
23311 cat confdefs.h >>conftest.$ac_ext
23312 cat >>conftest.$ac_ext <<_ACEOF
23313 /* end confdefs.h.  */
23314 #include <$ac_header>
23315 _ACEOF
23316 if { (ac_try="$ac_cpp conftest.$ac_ext"
23317 case "(($ac_try" in
23318   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23319   *) ac_try_echo=$ac_try;;
23320 esac
23321 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23322   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23323   ac_status=$?
23324   grep -v '^ *+' conftest.er1 >conftest.err
23325   rm -f conftest.er1
23326   cat conftest.err >&5
23327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23328   (exit $ac_status); } >/dev/null && {
23329          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23330          test ! -s conftest.err
23331        }; then
23332   ac_header_preproc=yes
23333 else
23334   echo "$as_me: failed program was:" >&5
23335 sed 's/^/| /' conftest.$ac_ext >&5
23336
23337   ac_header_preproc=no
23338 fi
23339
23340 rm -f conftest.err conftest.$ac_ext
23341 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23342 echo "${ECHO_T}$ac_header_preproc" >&6; }
23343
23344 # So?  What about this header?
23345 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23346   yes:no: )
23347     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23348 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23349     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23350 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23351     ac_header_preproc=yes
23352     ;;
23353   no:yes:* )
23354     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23355 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23356     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
23357 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
23358     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23359 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23360     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
23361 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
23362     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23363 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23364     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23365 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23366     ( cat <<\_ASBOX
23367 ## ---------------------------------------- ##
23368 ## Report this to linux-nfs@vger.kernel.org ##
23369 ## ---------------------------------------- ##
23370 _ASBOX
23371      ) | sed "s/^/$as_me: WARNING:     /" >&2
23372     ;;
23373 esac
23374 { echo "$as_me:$LINENO: checking for $ac_header" >&5
23375 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23376 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23377   echo $ECHO_N "(cached) $ECHO_C" >&6
23378 else
23379   eval "$as_ac_Header=\$ac_header_preproc"
23380 fi
23381 ac_res=`eval echo '${'$as_ac_Header'}'`
23382                { echo "$as_me:$LINENO: result: $ac_res" >&5
23383 echo "${ECHO_T}$ac_res" >&6; }
23384
23385 fi
23386 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23387   cat >>confdefs.h <<_ACEOF
23388 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23389 _ACEOF
23390
23391 else
23392   { { echo "$as_me:$LINENO: error: libnfsidmap needed for gss support" >&5
23393 echo "$as_me: error: libnfsidmap needed for gss support" >&2;}
23394    { (exit 1); exit 1; }; }
23395 fi
23396
23397 done
23398
23399
23400 for ac_header in spkm3.h
23401 do
23402 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23403 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23404   { echo "$as_me:$LINENO: checking for $ac_header" >&5
23405 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23406 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23407   echo $ECHO_N "(cached) $ECHO_C" >&6
23408 fi
23409 ac_res=`eval echo '${'$as_ac_Header'}'`
23410                { echo "$as_me:$LINENO: result: $ac_res" >&5
23411 echo "${ECHO_T}$ac_res" >&6; }
23412 else
23413   # Is the header compilable?
23414 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
23415 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
23416 cat >conftest.$ac_ext <<_ACEOF
23417 /* confdefs.h.  */
23418 _ACEOF
23419 cat confdefs.h >>conftest.$ac_ext
23420 cat >>conftest.$ac_ext <<_ACEOF
23421 /* end confdefs.h.  */
23422 $ac_includes_default
23423 #include <$ac_header>
23424 _ACEOF
23425 rm -f conftest.$ac_objext
23426 if { (ac_try="$ac_compile"
23427 case "(($ac_try" in
23428   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23429   *) ac_try_echo=$ac_try;;
23430 esac
23431 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23432   (eval "$ac_compile") 2>conftest.er1
23433   ac_status=$?
23434   grep -v '^ *+' conftest.er1 >conftest.err
23435   rm -f conftest.er1
23436   cat conftest.err >&5
23437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23438   (exit $ac_status); } && {
23439          test -z "$ac_c_werror_flag" ||
23440          test ! -s conftest.err
23441        } && test -s conftest.$ac_objext; then
23442   ac_header_compiler=yes
23443 else
23444   echo "$as_me: failed program was:" >&5
23445 sed 's/^/| /' conftest.$ac_ext >&5
23446
23447         ac_header_compiler=no
23448 fi
23449
23450 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23451 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23452 echo "${ECHO_T}$ac_header_compiler" >&6; }
23453
23454 # Is the header present?
23455 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
23456 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
23457 cat >conftest.$ac_ext <<_ACEOF
23458 /* confdefs.h.  */
23459 _ACEOF
23460 cat confdefs.h >>conftest.$ac_ext
23461 cat >>conftest.$ac_ext <<_ACEOF
23462 /* end confdefs.h.  */
23463 #include <$ac_header>
23464 _ACEOF
23465 if { (ac_try="$ac_cpp conftest.$ac_ext"
23466 case "(($ac_try" in
23467   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23468   *) ac_try_echo=$ac_try;;
23469 esac
23470 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23471   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23472   ac_status=$?
23473   grep -v '^ *+' conftest.er1 >conftest.err
23474   rm -f conftest.er1
23475   cat conftest.err >&5
23476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23477   (exit $ac_status); } >/dev/null && {
23478          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23479          test ! -s conftest.err
23480        }; then
23481   ac_header_preproc=yes
23482 else
23483   echo "$as_me: failed program was:" >&5
23484 sed 's/^/| /' conftest.$ac_ext >&5
23485
23486   ac_header_preproc=no
23487 fi
23488
23489 rm -f conftest.err conftest.$ac_ext
23490 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23491 echo "${ECHO_T}$ac_header_preproc" >&6; }
23492
23493 # So?  What about this header?
23494 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23495   yes:no: )
23496     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23497 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23498     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23499 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23500     ac_header_preproc=yes
23501     ;;
23502   no:yes:* )
23503     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23504 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23505     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
23506 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
23507     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23508 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23509     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
23510 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
23511     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23512 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23513     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23514 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23515     ( cat <<\_ASBOX
23516 ## ---------------------------------------- ##
23517 ## Report this to linux-nfs@vger.kernel.org ##
23518 ## ---------------------------------------- ##
23519 _ASBOX
23520      ) | sed "s/^/$as_me: WARNING:     /" >&2
23521     ;;
23522 esac
23523 { echo "$as_me:$LINENO: checking for $ac_header" >&5
23524 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23525 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23526   echo $ECHO_N "(cached) $ECHO_C" >&6
23527 else
23528   eval "$as_ac_Header=\$ac_header_preproc"
23529 fi
23530 ac_res=`eval echo '${'$as_ac_Header'}'`
23531                { echo "$as_me:$LINENO: result: $ac_res" >&5
23532 echo "${ECHO_T}$ac_res" >&6; }
23533
23534 fi
23535 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23536   cat >>confdefs.h <<_ACEOF
23537 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23538 _ACEOF
23539
23540 else
23541   { echo "$as_me:$LINENO: WARNING: could not locate SPKM3 header; will not have SPKM3 support" >&5
23542 echo "$as_me: WARNING: could not locate SPKM3 header; will not have SPKM3 support" >&2;}
23543 fi
23544
23545 done
23546
23547     { echo "$as_me:$LINENO: checking for nfs4_set_debug in -lnfsidmap" >&5
23548 echo $ECHO_N "checking for nfs4_set_debug in -lnfsidmap... $ECHO_C" >&6; }
23549 if test "${ac_cv_lib_nfsidmap_nfs4_set_debug+set}" = set; then
23550   echo $ECHO_N "(cached) $ECHO_C" >&6
23551 else
23552   ac_check_lib_save_LIBS=$LIBS
23553 LIBS="-lnfsidmap  $LIBS"
23554 cat >conftest.$ac_ext <<_ACEOF
23555 /* confdefs.h.  */
23556 _ACEOF
23557 cat confdefs.h >>conftest.$ac_ext
23558 cat >>conftest.$ac_ext <<_ACEOF
23559 /* end confdefs.h.  */
23560
23561 /* Override any GCC internal prototype to avoid an error.
23562    Use char because int might match the return type of a GCC
23563    builtin and then its argument prototype would still apply.  */
23564 #ifdef __cplusplus
23565 extern "C"
23566 #endif
23567 char nfs4_set_debug ();
23568 int
23569 main ()
23570 {
23571 return nfs4_set_debug ();
23572   ;
23573   return 0;
23574 }
23575 _ACEOF
23576 rm -f conftest.$ac_objext conftest$ac_exeext
23577 if { (ac_try="$ac_link"
23578 case "(($ac_try" in
23579   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23580   *) ac_try_echo=$ac_try;;
23581 esac
23582 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23583   (eval "$ac_link") 2>conftest.er1
23584   ac_status=$?
23585   grep -v '^ *+' conftest.er1 >conftest.err
23586   rm -f conftest.er1
23587   cat conftest.err >&5
23588   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23589   (exit $ac_status); } && {
23590          test -z "$ac_c_werror_flag" ||
23591          test ! -s conftest.err
23592        } && test -s conftest$ac_exeext &&
23593        $as_test_x conftest$ac_exeext; then
23594   ac_cv_lib_nfsidmap_nfs4_set_debug=yes
23595 else
23596   echo "$as_me: failed program was:" >&5
23597 sed 's/^/| /' conftest.$ac_ext >&5
23598
23599         ac_cv_lib_nfsidmap_nfs4_set_debug=no
23600 fi
23601
23602 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23603       conftest$ac_exeext conftest.$ac_ext
23604 LIBS=$ac_check_lib_save_LIBS
23605 fi
23606 { echo "$as_me:$LINENO: result: $ac_cv_lib_nfsidmap_nfs4_set_debug" >&5
23607 echo "${ECHO_T}$ac_cv_lib_nfsidmap_nfs4_set_debug" >&6; }
23608 if test $ac_cv_lib_nfsidmap_nfs4_set_debug = yes; then
23609
23610 cat >>confdefs.h <<\_ACEOF
23611 #define HAVE_NFS4_SET_DEBUG 1
23612 _ACEOF
23613
23614 fi
23615
23616
23617
23618   { echo "$as_me:$LINENO: checking for Kerberos v5" >&5
23619 echo $ECHO_N "checking for Kerberos v5... $ECHO_C" >&6; }
23620
23621 # Check whether --with-krb5 was given.
23622 if test "${with_krb5+set}" = set; then
23623   withval=$with_krb5;  case "$withval" in
23624     yes|no)
23625        krb5_with=""
23626        ;;
23627     *)
23628        krb5_with="$withval"
23629        ;;
23630     esac
23631
23632 fi
23633
23634
23635   for dir in $krb5_with /usr /usr/kerberos /usr/local /usr/local/krb5 \
23636              /usr/krb5 /usr/heimdal /usr/local/heimdal /usr/athena ; do
23637             K5CONFIG=""
23638     if test -f $dir/bin/krb5-config; then
23639       K5CONFIG=$dir/bin/krb5-config
23640     elif test -f "/usr/kerberos/bin/krb5-config"; then
23641       K5CONFIG="/usr/kerberos/bin/krb5-config"
23642     elif test -f "/usr/lib/mit/bin/krb5-config"; then
23643       K5CONFIG="/usr/lib/mit/bin/krb5-config"
23644     fi
23645     if test "$K5CONFIG" != ""; then
23646       KRBCFLAGS=`$K5CONFIG --cflags`
23647       KRBLIBS=`$K5CONFIG --libs gssapi`
23648       K5VERS=`$K5CONFIG --version | head -n 1 | awk '{split($(4),v,"."); if (v["3"] == "") v["3"] = "0"; print v["1"]v["2"]v["3"] }'`
23649
23650 cat >>confdefs.h <<_ACEOF
23651 #define KRB5_VERSION $K5VERS
23652 _ACEOF
23653
23654       if test -f $dir/include/gssapi/gssapi_krb5.h -a \
23655                 \( -f $dir/lib/libgssapi_krb5.a -o \
23656                    -f $dir/lib64/libgssapi_krb5.a -o \
23657                    -f $dir/lib64/libgssapi_krb5.so -o \
23658                    -f $dir/lib/libgssapi_krb5.so \) ; then
23659
23660 cat >>confdefs.h <<\_ACEOF
23661 #define HAVE_KRB5 1
23662 _ACEOF
23663
23664          KRBDIR="$dir"
23665                      if test $K5VERS -le 131; then
23666
23667 cat >>confdefs.h <<\_ACEOF
23668 #define USE_GSS_KRB5_CCACHE_NAME 1
23669 _ACEOF
23670
23671          fi
23672          gssapi_lib=gssapi_krb5
23673          break
23674                   elif test \( -f $dir/include/heim_err.h -o\
23675                  -f $dir/include/heimdal/heim_err.h \) -a \
23676                 -f $dir/lib/libroken.a; then
23677
23678 cat >>confdefs.h <<\_ACEOF
23679 #define HAVE_HEIMDAL 1
23680 _ACEOF
23681
23682          KRBDIR="$dir"
23683          gssapi_lib=gssapi
23684         break
23685       fi
23686     fi
23687   done
23688     if test "x$KRBDIR" = "x"; then
23689     if test "x$krb5_with" = "x"; then
23690       { { echo "$as_me:$LINENO: error: Kerberos v5 with GSS support not found: consider --disable-gss or --with-krb5=" >&5
23691 echo "$as_me: error: Kerberos v5 with GSS support not found: consider --disable-gss or --with-krb5=" >&2;}
23692    { (exit 1); exit 1; }; }
23693     else
23694       { { echo "$as_me:$LINENO: error: Kerberos v5 with GSS support not found at $krb5_with" >&5
23695 echo "$as_me: error: Kerberos v5 with GSS support not found at $krb5_with" >&2;}
23696    { (exit 1); exit 1; }; }
23697     fi
23698   fi
23699   { echo "$as_me:$LINENO: result: $KRBDIR" >&5
23700 echo "${ECHO_T}$KRBDIR" >&6; }
23701
23702     echo "The current KRBDIR is $KRBDIR"
23703   if test "$KRBDIR/lib" = "/lib" -o "$KRBDIR/lib" = "/usr/lib" \
23704        -o "$KRBDIR/lib" = "//lib" -o "$KRBDIR/lib" = "/usr//lib" ; then
23705     KRBLDFLAGS="";
23706   elif /sbin/ldconfig -p | grep > /dev/null "=> $KRBDIR/lib/"; then
23707     KRBLDFLAGS="";
23708   else
23709     KRBLDFLAGS="-Wl,-rpath=$KRBDIR/lib"
23710   fi
23711
23712     as_ac_Lib=`echo "ac_cv_lib_$gssapi_lib''_gss_krb5_export_lucid_sec_context" | $as_tr_sh`
23713 { echo "$as_me:$LINENO: checking for gss_krb5_export_lucid_sec_context in -l$gssapi_lib" >&5
23714 echo $ECHO_N "checking for gss_krb5_export_lucid_sec_context in -l$gssapi_lib... $ECHO_C" >&6; }
23715 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
23716   echo $ECHO_N "(cached) $ECHO_C" >&6
23717 else
23718   ac_check_lib_save_LIBS=$LIBS
23719 LIBS="-l$gssapi_lib $KRBLIBS $LIBS"
23720 cat >conftest.$ac_ext <<_ACEOF
23721 /* confdefs.h.  */
23722 _ACEOF
23723 cat confdefs.h >>conftest.$ac_ext
23724 cat >>conftest.$ac_ext <<_ACEOF
23725 /* end confdefs.h.  */
23726
23727 /* Override any GCC internal prototype to avoid an error.
23728    Use char because int might match the return type of a GCC
23729    builtin and then its argument prototype would still apply.  */
23730 #ifdef __cplusplus
23731 extern "C"
23732 #endif
23733 char gss_krb5_export_lucid_sec_context ();
23734 int
23735 main ()
23736 {
23737 return gss_krb5_export_lucid_sec_context ();
23738   ;
23739   return 0;
23740 }
23741 _ACEOF
23742 rm -f conftest.$ac_objext conftest$ac_exeext
23743 if { (ac_try="$ac_link"
23744 case "(($ac_try" in
23745   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23746   *) ac_try_echo=$ac_try;;
23747 esac
23748 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23749   (eval "$ac_link") 2>conftest.er1
23750   ac_status=$?
23751   grep -v '^ *+' conftest.er1 >conftest.err
23752   rm -f conftest.er1
23753   cat conftest.err >&5
23754   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23755   (exit $ac_status); } && {
23756          test -z "$ac_c_werror_flag" ||
23757          test ! -s conftest.err
23758        } && test -s conftest$ac_exeext &&
23759        $as_test_x conftest$ac_exeext; then
23760   eval "$as_ac_Lib=yes"
23761 else
23762   echo "$as_me: failed program was:" >&5
23763 sed 's/^/| /' conftest.$ac_ext >&5
23764
23765         eval "$as_ac_Lib=no"
23766 fi
23767
23768 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23769       conftest$ac_exeext conftest.$ac_ext
23770 LIBS=$ac_check_lib_save_LIBS
23771 fi
23772 ac_res=`eval echo '${'$as_ac_Lib'}'`
23773                { echo "$as_me:$LINENO: result: $ac_res" >&5
23774 echo "${ECHO_T}$ac_res" >&6; }
23775 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
23776
23777 cat >>confdefs.h <<\_ACEOF
23778 #define HAVE_LUCID_CONTEXT_SUPPORT 1
23779 _ACEOF
23780
23781 fi
23782
23783   as_ac_Lib=`echo "ac_cv_lib_$gssapi_lib''_gss_krb5_set_allowable_enctypes" | $as_tr_sh`
23784 { echo "$as_me:$LINENO: checking for gss_krb5_set_allowable_enctypes in -l$gssapi_lib" >&5
23785 echo $ECHO_N "checking for gss_krb5_set_allowable_enctypes in -l$gssapi_lib... $ECHO_C" >&6; }
23786 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
23787   echo $ECHO_N "(cached) $ECHO_C" >&6
23788 else
23789   ac_check_lib_save_LIBS=$LIBS
23790 LIBS="-l$gssapi_lib $KRBLIBS $LIBS"
23791 cat >conftest.$ac_ext <<_ACEOF
23792 /* confdefs.h.  */
23793 _ACEOF
23794 cat confdefs.h >>conftest.$ac_ext
23795 cat >>conftest.$ac_ext <<_ACEOF
23796 /* end confdefs.h.  */
23797
23798 /* Override any GCC internal prototype to avoid an error.
23799    Use char because int might match the return type of a GCC
23800    builtin and then its argument prototype would still apply.  */
23801 #ifdef __cplusplus
23802 extern "C"
23803 #endif
23804 char gss_krb5_set_allowable_enctypes ();
23805 int
23806 main ()
23807 {
23808 return gss_krb5_set_allowable_enctypes ();
23809   ;
23810   return 0;
23811 }
23812 _ACEOF
23813 rm -f conftest.$ac_objext conftest$ac_exeext
23814 if { (ac_try="$ac_link"
23815 case "(($ac_try" in
23816   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23817   *) ac_try_echo=$ac_try;;
23818 esac
23819 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23820   (eval "$ac_link") 2>conftest.er1
23821   ac_status=$?
23822   grep -v '^ *+' conftest.er1 >conftest.err
23823   rm -f conftest.er1
23824   cat conftest.err >&5
23825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23826   (exit $ac_status); } && {
23827          test -z "$ac_c_werror_flag" ||
23828          test ! -s conftest.err
23829        } && test -s conftest$ac_exeext &&
23830        $as_test_x conftest$ac_exeext; then
23831   eval "$as_ac_Lib=yes"
23832 else
23833   echo "$as_me: failed program was:" >&5
23834 sed 's/^/| /' conftest.$ac_ext >&5
23835
23836         eval "$as_ac_Lib=no"
23837 fi
23838
23839 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23840       conftest$ac_exeext conftest.$ac_ext
23841 LIBS=$ac_check_lib_save_LIBS
23842 fi
23843 ac_res=`eval echo '${'$as_ac_Lib'}'`
23844                { echo "$as_me:$LINENO: result: $ac_res" >&5
23845 echo "${ECHO_T}$ac_res" >&6; }
23846 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
23847
23848 cat >>confdefs.h <<\_ACEOF
23849 #define HAVE_SET_ALLOWABLE_ENCTYPES 1
23850 _ACEOF
23851
23852 fi
23853
23854   as_ac_Lib=`echo "ac_cv_lib_$gssapi_lib''_gss_krb5_ccache_name" | $as_tr_sh`
23855 { echo "$as_me:$LINENO: checking for gss_krb5_ccache_name in -l$gssapi_lib" >&5
23856 echo $ECHO_N "checking for gss_krb5_ccache_name in -l$gssapi_lib... $ECHO_C" >&6; }
23857 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
23858   echo $ECHO_N "(cached) $ECHO_C" >&6
23859 else
23860   ac_check_lib_save_LIBS=$LIBS
23861 LIBS="-l$gssapi_lib $KRBLIBS $LIBS"
23862 cat >conftest.$ac_ext <<_ACEOF
23863 /* confdefs.h.  */
23864 _ACEOF
23865 cat confdefs.h >>conftest.$ac_ext
23866 cat >>conftest.$ac_ext <<_ACEOF
23867 /* end confdefs.h.  */
23868
23869 /* Override any GCC internal prototype to avoid an error.
23870    Use char because int might match the return type of a GCC
23871    builtin and then its argument prototype would still apply.  */
23872 #ifdef __cplusplus
23873 extern "C"
23874 #endif
23875 char gss_krb5_ccache_name ();
23876 int
23877 main ()
23878 {
23879 return gss_krb5_ccache_name ();
23880   ;
23881   return 0;
23882 }
23883 _ACEOF
23884 rm -f conftest.$ac_objext conftest$ac_exeext
23885 if { (ac_try="$ac_link"
23886 case "(($ac_try" in
23887   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23888   *) ac_try_echo=$ac_try;;
23889 esac
23890 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23891   (eval "$ac_link") 2>conftest.er1
23892   ac_status=$?
23893   grep -v '^ *+' conftest.er1 >conftest.err
23894   rm -f conftest.er1
23895   cat conftest.err >&5
23896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23897   (exit $ac_status); } && {
23898          test -z "$ac_c_werror_flag" ||
23899          test ! -s conftest.err
23900        } && test -s conftest$ac_exeext &&
23901        $as_test_x conftest$ac_exeext; then
23902   eval "$as_ac_Lib=yes"
23903 else
23904   echo "$as_me: failed program was:" >&5
23905 sed 's/^/| /' conftest.$ac_ext >&5
23906
23907         eval "$as_ac_Lib=no"
23908 fi
23909
23910 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23911       conftest$ac_exeext conftest.$ac_ext
23912 LIBS=$ac_check_lib_save_LIBS
23913 fi
23914 ac_res=`eval echo '${'$as_ac_Lib'}'`
23915                { echo "$as_me:$LINENO: result: $ac_res" >&5
23916 echo "${ECHO_T}$ac_res" >&6; }
23917 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
23918
23919 cat >>confdefs.h <<\_ACEOF
23920 #define HAVE_GSS_KRB5_CCACHE_NAME 1
23921 _ACEOF
23922
23923 fi
23924
23925
23926     as_ac_Lib=`echo "ac_cv_lib_$gssapi_lib''_krb5_get_error_message" | $as_tr_sh`
23927 { echo "$as_me:$LINENO: checking for krb5_get_error_message in -l$gssapi_lib" >&5
23928 echo $ECHO_N "checking for krb5_get_error_message in -l$gssapi_lib... $ECHO_C" >&6; }
23929 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
23930   echo $ECHO_N "(cached) $ECHO_C" >&6
23931 else
23932   ac_check_lib_save_LIBS=$LIBS
23933 LIBS="-l$gssapi_lib $KRBLIBS $LIBS"
23934 cat >conftest.$ac_ext <<_ACEOF
23935 /* confdefs.h.  */
23936 _ACEOF
23937 cat confdefs.h >>conftest.$ac_ext
23938 cat >>conftest.$ac_ext <<_ACEOF
23939 /* end confdefs.h.  */
23940
23941 /* Override any GCC internal prototype to avoid an error.
23942    Use char because int might match the return type of a GCC
23943    builtin and then its argument prototype would still apply.  */
23944 #ifdef __cplusplus
23945 extern "C"
23946 #endif
23947 char krb5_get_error_message ();
23948 int
23949 main ()
23950 {
23951 return krb5_get_error_message ();
23952   ;
23953   return 0;
23954 }
23955 _ACEOF
23956 rm -f conftest.$ac_objext conftest$ac_exeext
23957 if { (ac_try="$ac_link"
23958 case "(($ac_try" in
23959   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23960   *) ac_try_echo=$ac_try;;
23961 esac
23962 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23963   (eval "$ac_link") 2>conftest.er1
23964   ac_status=$?
23965   grep -v '^ *+' conftest.er1 >conftest.err
23966   rm -f conftest.er1
23967   cat conftest.err >&5
23968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23969   (exit $ac_status); } && {
23970          test -z "$ac_c_werror_flag" ||
23971          test ! -s conftest.err
23972        } && test -s conftest$ac_exeext &&
23973        $as_test_x conftest$ac_exeext; then
23974   eval "$as_ac_Lib=yes"
23975 else
23976   echo "$as_me: failed program was:" >&5
23977 sed 's/^/| /' conftest.$ac_ext >&5
23978
23979         eval "$as_ac_Lib=no"
23980 fi
23981
23982 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23983       conftest$ac_exeext conftest.$ac_ext
23984 LIBS=$ac_check_lib_save_LIBS
23985 fi
23986 ac_res=`eval echo '${'$as_ac_Lib'}'`
23987                { echo "$as_me:$LINENO: result: $ac_res" >&5
23988 echo "${ECHO_T}$ac_res" >&6; }
23989 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
23990
23991 cat >>confdefs.h <<\_ACEOF
23992 #define HAVE_KRB5_GET_ERROR_MESSAGE 1
23993 _ACEOF
23994
23995 fi
23996
23997
23998     as_ac_Lib=`echo "ac_cv_lib_$gssapi_lib''_krb5_get_init_creds_opt_set_addressless" | $as_tr_sh`
23999 { echo "$as_me:$LINENO: checking for krb5_get_init_creds_opt_set_addressless in -l$gssapi_lib" >&5
24000 echo $ECHO_N "checking for krb5_get_init_creds_opt_set_addressless in -l$gssapi_lib... $ECHO_C" >&6; }
24001 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
24002   echo $ECHO_N "(cached) $ECHO_C" >&6
24003 else
24004   ac_check_lib_save_LIBS=$LIBS
24005 LIBS="-l$gssapi_lib $KRBLIBS $LIBS"
24006 cat >conftest.$ac_ext <<_ACEOF
24007 /* confdefs.h.  */
24008 _ACEOF
24009 cat confdefs.h >>conftest.$ac_ext
24010 cat >>conftest.$ac_ext <<_ACEOF
24011 /* end confdefs.h.  */
24012
24013 /* Override any GCC internal prototype to avoid an error.
24014    Use char because int might match the return type of a GCC
24015    builtin and then its argument prototype would still apply.  */
24016 #ifdef __cplusplus
24017 extern "C"
24018 #endif
24019 char krb5_get_init_creds_opt_set_addressless ();
24020 int
24021 main ()
24022 {
24023 return krb5_get_init_creds_opt_set_addressless ();
24024   ;
24025   return 0;
24026 }
24027 _ACEOF
24028 rm -f conftest.$ac_objext conftest$ac_exeext
24029 if { (ac_try="$ac_link"
24030 case "(($ac_try" in
24031   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24032   *) ac_try_echo=$ac_try;;
24033 esac
24034 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24035   (eval "$ac_link") 2>conftest.er1
24036   ac_status=$?
24037   grep -v '^ *+' conftest.er1 >conftest.err
24038   rm -f conftest.er1
24039   cat conftest.err >&5
24040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24041   (exit $ac_status); } && {
24042          test -z "$ac_c_werror_flag" ||
24043          test ! -s conftest.err
24044        } && test -s conftest$ac_exeext &&
24045        $as_test_x conftest$ac_exeext; then
24046   eval "$as_ac_Lib=yes"
24047 else
24048   echo "$as_me: failed program was:" >&5
24049 sed 's/^/| /' conftest.$ac_ext >&5
24050
24051         eval "$as_ac_Lib=no"
24052 fi
24053
24054 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24055       conftest$ac_exeext conftest.$ac_ext
24056 LIBS=$ac_check_lib_save_LIBS
24057 fi
24058 ac_res=`eval echo '${'$as_ac_Lib'}'`
24059                { echo "$as_me:$LINENO: result: $ac_res" >&5
24060 echo "${ECHO_T}$ac_res" >&6; }
24061 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
24062
24063 cat >>confdefs.h <<\_ACEOF
24064 #define HAVE_KRB5_GET_INIT_CREDS_OPT_SET_ADDRESSLESS 1
24065 _ACEOF
24066
24067 fi
24068
24069
24070     if test "x$krb5_with" != "x" -a "$krb5_with" != "$KRBDIR"; then
24071     { echo "$as_me:$LINENO: WARNING: Using $KRBDIR instead of requested value of $krb5_with for Kerberos!" >&5
24072 echo "$as_me: WARNING: Using $KRBDIR instead of requested value of $krb5_with for Kerberos!" >&2;}
24073   fi
24074
24075
24076
24077
24078
24079
24080
24081
24082
24083       { echo "$as_me:$LINENO: checking for authgss_create_default in -lrpcsecgss" >&5
24084 echo $ECHO_N "checking for authgss_create_default in -lrpcsecgss... $ECHO_C" >&6; }
24085 if test "${ac_cv_lib_rpcsecgss_authgss_create_default+set}" = set; then
24086   echo $ECHO_N "(cached) $ECHO_C" >&6
24087 else
24088   ac_check_lib_save_LIBS=$LIBS
24089 LIBS="-lrpcsecgss -lgssglue -ldl $LIBS"
24090 cat >conftest.$ac_ext <<_ACEOF
24091 /* confdefs.h.  */
24092 _ACEOF
24093 cat confdefs.h >>conftest.$ac_ext
24094 cat >>conftest.$ac_ext <<_ACEOF
24095 /* end confdefs.h.  */
24096
24097 /* Override any GCC internal prototype to avoid an error.
24098    Use char because int might match the return type of a GCC
24099    builtin and then its argument prototype would still apply.  */
24100 #ifdef __cplusplus
24101 extern "C"
24102 #endif
24103 char authgss_create_default ();
24104 int
24105 main ()
24106 {
24107 return authgss_create_default ();
24108   ;
24109   return 0;
24110 }
24111 _ACEOF
24112 rm -f conftest.$ac_objext conftest$ac_exeext
24113 if { (ac_try="$ac_link"
24114 case "(($ac_try" in
24115   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24116   *) ac_try_echo=$ac_try;;
24117 esac
24118 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24119   (eval "$ac_link") 2>conftest.er1
24120   ac_status=$?
24121   grep -v '^ *+' conftest.er1 >conftest.err
24122   rm -f conftest.er1
24123   cat conftest.err >&5
24124   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24125   (exit $ac_status); } && {
24126          test -z "$ac_c_werror_flag" ||
24127          test ! -s conftest.err
24128        } && test -s conftest$ac_exeext &&
24129        $as_test_x conftest$ac_exeext; then
24130   ac_cv_lib_rpcsecgss_authgss_create_default=yes
24131 else
24132   echo "$as_me: failed program was:" >&5
24133 sed 's/^/| /' conftest.$ac_ext >&5
24134
24135         ac_cv_lib_rpcsecgss_authgss_create_default=no
24136 fi
24137
24138 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24139       conftest$ac_exeext conftest.$ac_ext
24140 LIBS=$ac_check_lib_save_LIBS
24141 fi
24142 { echo "$as_me:$LINENO: result: $ac_cv_lib_rpcsecgss_authgss_create_default" >&5
24143 echo "${ECHO_T}$ac_cv_lib_rpcsecgss_authgss_create_default" >&6; }
24144 if test $ac_cv_lib_rpcsecgss_authgss_create_default = yes; then
24145   librpcsecgss=1
24146 else
24147   { { echo "$as_me:$LINENO: error: librpcsecgss needed for nfsv4 support" >&5
24148 echo "$as_me: error: librpcsecgss needed for nfsv4 support" >&2;}
24149    { (exit 1); exit 1; }; }
24150 fi
24151
24152   { echo "$as_me:$LINENO: checking for authgss_set_debug_level in -lrpcsecgss" >&5
24153 echo $ECHO_N "checking for authgss_set_debug_level in -lrpcsecgss... $ECHO_C" >&6; }
24154 if test "${ac_cv_lib_rpcsecgss_authgss_set_debug_level+set}" = set; then
24155   echo $ECHO_N "(cached) $ECHO_C" >&6
24156 else
24157   ac_check_lib_save_LIBS=$LIBS
24158 LIBS="-lrpcsecgss -lgssglue -ldl $LIBS"
24159 cat >conftest.$ac_ext <<_ACEOF
24160 /* confdefs.h.  */
24161 _ACEOF
24162 cat confdefs.h >>conftest.$ac_ext
24163 cat >>conftest.$ac_ext <<_ACEOF
24164 /* end confdefs.h.  */
24165
24166 /* Override any GCC internal prototype to avoid an error.
24167    Use char because int might match the return type of a GCC
24168    builtin and then its argument prototype would still apply.  */
24169 #ifdef __cplusplus
24170 extern "C"
24171 #endif
24172 char authgss_set_debug_level ();
24173 int
24174 main ()
24175 {
24176 return authgss_set_debug_level ();
24177   ;
24178   return 0;
24179 }
24180 _ACEOF
24181 rm -f conftest.$ac_objext conftest$ac_exeext
24182 if { (ac_try="$ac_link"
24183 case "(($ac_try" in
24184   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24185   *) ac_try_echo=$ac_try;;
24186 esac
24187 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24188   (eval "$ac_link") 2>conftest.er1
24189   ac_status=$?
24190   grep -v '^ *+' conftest.er1 >conftest.err
24191   rm -f conftest.er1
24192   cat conftest.err >&5
24193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24194   (exit $ac_status); } && {
24195          test -z "$ac_c_werror_flag" ||
24196          test ! -s conftest.err
24197        } && test -s conftest$ac_exeext &&
24198        $as_test_x conftest$ac_exeext; then
24199   ac_cv_lib_rpcsecgss_authgss_set_debug_level=yes
24200 else
24201   echo "$as_me: failed program was:" >&5
24202 sed 's/^/| /' conftest.$ac_ext >&5
24203
24204         ac_cv_lib_rpcsecgss_authgss_set_debug_level=no
24205 fi
24206
24207 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24208       conftest$ac_exeext conftest.$ac_ext
24209 LIBS=$ac_check_lib_save_LIBS
24210 fi
24211 { echo "$as_me:$LINENO: result: $ac_cv_lib_rpcsecgss_authgss_set_debug_level" >&5
24212 echo "${ECHO_T}$ac_cv_lib_rpcsecgss_authgss_set_debug_level" >&6; }
24213 if test $ac_cv_lib_rpcsecgss_authgss_set_debug_level = yes; then
24214
24215 cat >>confdefs.h <<\_ACEOF
24216 #define HAVE_AUTHGSS_SET_DEBUG_LEVEL 1
24217 _ACEOF
24218
24219 fi
24220
24221
24222 fi
24223
24224 if test "$enable_ipv6" = yes; then
24225   { echo "$as_me:$LINENO: checking for inet_ntop" >&5
24226 echo $ECHO_N "checking for inet_ntop... $ECHO_C" >&6; }
24227 if test "${ac_cv_func_inet_ntop+set}" = set; then
24228   echo $ECHO_N "(cached) $ECHO_C" >&6
24229 else
24230   cat >conftest.$ac_ext <<_ACEOF
24231 /* confdefs.h.  */
24232 _ACEOF
24233 cat confdefs.h >>conftest.$ac_ext
24234 cat >>conftest.$ac_ext <<_ACEOF
24235 /* end confdefs.h.  */
24236 /* Define inet_ntop to an innocuous variant, in case <limits.h> declares inet_ntop.
24237    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24238 #define inet_ntop innocuous_inet_ntop
24239
24240 /* System header to define __stub macros and hopefully few prototypes,
24241     which can conflict with char inet_ntop (); below.
24242     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24243     <limits.h> exists even on freestanding compilers.  */
24244
24245 #ifdef __STDC__
24246 # include <limits.h>
24247 #else
24248 # include <assert.h>
24249 #endif
24250
24251 #undef inet_ntop
24252
24253 /* Override any GCC internal prototype to avoid an error.
24254    Use char because int might match the return type of a GCC
24255    builtin and then its argument prototype would still apply.  */
24256 #ifdef __cplusplus
24257 extern "C"
24258 #endif
24259 char inet_ntop ();
24260 /* The GNU C library defines this for functions which it implements
24261     to always fail with ENOSYS.  Some functions are actually named
24262     something starting with __ and the normal name is an alias.  */
24263 #if defined __stub_inet_ntop || defined __stub___inet_ntop
24264 choke me
24265 #endif
24266
24267 int
24268 main ()
24269 {
24270 return inet_ntop ();
24271   ;
24272   return 0;
24273 }
24274 _ACEOF
24275 rm -f conftest.$ac_objext conftest$ac_exeext
24276 if { (ac_try="$ac_link"
24277 case "(($ac_try" in
24278   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24279   *) ac_try_echo=$ac_try;;
24280 esac
24281 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24282   (eval "$ac_link") 2>conftest.er1
24283   ac_status=$?
24284   grep -v '^ *+' conftest.er1 >conftest.err
24285   rm -f conftest.er1
24286   cat conftest.err >&5
24287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24288   (exit $ac_status); } && {
24289          test -z "$ac_c_werror_flag" ||
24290          test ! -s conftest.err
24291        } && test -s conftest$ac_exeext &&
24292        $as_test_x conftest$ac_exeext; then
24293   ac_cv_func_inet_ntop=yes
24294 else
24295   echo "$as_me: failed program was:" >&5
24296 sed 's/^/| /' conftest.$ac_ext >&5
24297
24298         ac_cv_func_inet_ntop=no
24299 fi
24300
24301 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24302       conftest$ac_exeext conftest.$ac_ext
24303 fi
24304 { echo "$as_me:$LINENO: result: $ac_cv_func_inet_ntop" >&5
24305 echo "${ECHO_T}$ac_cv_func_inet_ntop" >&6; }
24306
24307   { echo "$as_me:$LINENO: checking for getnameinfo" >&5
24308 echo $ECHO_N "checking for getnameinfo... $ECHO_C" >&6; }
24309 if test "${ac_cv_func_getnameinfo+set}" = set; then
24310   echo $ECHO_N "(cached) $ECHO_C" >&6
24311 else
24312   cat >conftest.$ac_ext <<_ACEOF
24313 /* confdefs.h.  */
24314 _ACEOF
24315 cat confdefs.h >>conftest.$ac_ext
24316 cat >>conftest.$ac_ext <<_ACEOF
24317 /* end confdefs.h.  */
24318 /* Define getnameinfo to an innocuous variant, in case <limits.h> declares getnameinfo.
24319    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24320 #define getnameinfo innocuous_getnameinfo
24321
24322 /* System header to define __stub macros and hopefully few prototypes,
24323     which can conflict with char getnameinfo (); below.
24324     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24325     <limits.h> exists even on freestanding compilers.  */
24326
24327 #ifdef __STDC__
24328 # include <limits.h>
24329 #else
24330 # include <assert.h>
24331 #endif
24332
24333 #undef getnameinfo
24334
24335 /* Override any GCC internal prototype to avoid an error.
24336    Use char because int might match the return type of a GCC
24337    builtin and then its argument prototype would still apply.  */
24338 #ifdef __cplusplus
24339 extern "C"
24340 #endif
24341 char getnameinfo ();
24342 /* The GNU C library defines this for functions which it implements
24343     to always fail with ENOSYS.  Some functions are actually named
24344     something starting with __ and the normal name is an alias.  */
24345 #if defined __stub_getnameinfo || defined __stub___getnameinfo
24346 choke me
24347 #endif
24348
24349 int
24350 main ()
24351 {
24352 return getnameinfo ();
24353   ;
24354   return 0;
24355 }
24356 _ACEOF
24357 rm -f conftest.$ac_objext conftest$ac_exeext
24358 if { (ac_try="$ac_link"
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_link") 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_exeext &&
24374        $as_test_x conftest$ac_exeext; then
24375   ac_cv_func_getnameinfo=yes
24376 else
24377   echo "$as_me: failed program was:" >&5
24378 sed 's/^/| /' conftest.$ac_ext >&5
24379
24380         ac_cv_func_getnameinfo=no
24381 fi
24382
24383 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24384       conftest$ac_exeext conftest.$ac_ext
24385 fi
24386 { echo "$as_me:$LINENO: result: $ac_cv_func_getnameinfo" >&5
24387 echo "${ECHO_T}$ac_cv_func_getnameinfo" >&6; }
24388
24389
24390 { echo "$as_me:$LINENO: checking for clnt_tli_create in -ltirpc" >&5
24391 echo $ECHO_N "checking for clnt_tli_create in -ltirpc... $ECHO_C" >&6; }
24392 if test "${ac_cv_lib_tirpc_clnt_tli_create+set}" = set; then
24393   echo $ECHO_N "(cached) $ECHO_C" >&6
24394 else
24395   ac_check_lib_save_LIBS=$LIBS
24396 LIBS="-ltirpc  $LIBS"
24397 cat >conftest.$ac_ext <<_ACEOF
24398 /* confdefs.h.  */
24399 _ACEOF
24400 cat confdefs.h >>conftest.$ac_ext
24401 cat >>conftest.$ac_ext <<_ACEOF
24402 /* end confdefs.h.  */
24403
24404 /* Override any GCC internal prototype to avoid an error.
24405    Use char because int might match the return type of a GCC
24406    builtin and then its argument prototype would still apply.  */
24407 #ifdef __cplusplus
24408 extern "C"
24409 #endif
24410 char clnt_tli_create ();
24411 int
24412 main ()
24413 {
24414 return clnt_tli_create ();
24415   ;
24416   return 0;
24417 }
24418 _ACEOF
24419 rm -f conftest.$ac_objext conftest$ac_exeext
24420 if { (ac_try="$ac_link"
24421 case "(($ac_try" in
24422   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24423   *) ac_try_echo=$ac_try;;
24424 esac
24425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24426   (eval "$ac_link") 2>conftest.er1
24427   ac_status=$?
24428   grep -v '^ *+' conftest.er1 >conftest.err
24429   rm -f conftest.er1
24430   cat conftest.err >&5
24431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24432   (exit $ac_status); } && {
24433          test -z "$ac_c_werror_flag" ||
24434          test ! -s conftest.err
24435        } && test -s conftest$ac_exeext &&
24436        $as_test_x conftest$ac_exeext; then
24437   ac_cv_lib_tirpc_clnt_tli_create=yes
24438 else
24439   echo "$as_me: failed program was:" >&5
24440 sed 's/^/| /' conftest.$ac_ext >&5
24441
24442         ac_cv_lib_tirpc_clnt_tli_create=no
24443 fi
24444
24445 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24446       conftest$ac_exeext conftest.$ac_ext
24447 LIBS=$ac_check_lib_save_LIBS
24448 fi
24449 { echo "$as_me:$LINENO: result: $ac_cv_lib_tirpc_clnt_tli_create" >&5
24450 echo "${ECHO_T}$ac_cv_lib_tirpc_clnt_tli_create" >&6; }
24451 if test $ac_cv_lib_tirpc_clnt_tli_create = yes; then
24452   cat >>confdefs.h <<_ACEOF
24453 #define HAVE_LIBTIRPC 1
24454 _ACEOF
24455
24456   LIBS="-ltirpc $LIBS"
24457
24458 else
24459   { { echo "$as_me:$LINENO: error: libtirpc needed for IPv6 support" >&5
24460 echo "$as_me: error: libtirpc needed for IPv6 support" >&2;}
24461    { (exit 1); exit 1; }; }
24462 fi
24463
24464
24465 for ac_header in tirpc/netconfig.h
24466 do
24467 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24468 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24469   { echo "$as_me:$LINENO: checking for $ac_header" >&5
24470 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24471 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24472   echo $ECHO_N "(cached) $ECHO_C" >&6
24473 fi
24474 ac_res=`eval echo '${'$as_ac_Header'}'`
24475                { echo "$as_me:$LINENO: result: $ac_res" >&5
24476 echo "${ECHO_T}$ac_res" >&6; }
24477 else
24478   # Is the header compilable?
24479 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
24480 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
24481 cat >conftest.$ac_ext <<_ACEOF
24482 /* confdefs.h.  */
24483 _ACEOF
24484 cat confdefs.h >>conftest.$ac_ext
24485 cat >>conftest.$ac_ext <<_ACEOF
24486 /* end confdefs.h.  */
24487 $ac_includes_default
24488 #include <$ac_header>
24489 _ACEOF
24490 rm -f conftest.$ac_objext
24491 if { (ac_try="$ac_compile"
24492 case "(($ac_try" in
24493   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24494   *) ac_try_echo=$ac_try;;
24495 esac
24496 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24497   (eval "$ac_compile") 2>conftest.er1
24498   ac_status=$?
24499   grep -v '^ *+' conftest.er1 >conftest.err
24500   rm -f conftest.er1
24501   cat conftest.err >&5
24502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24503   (exit $ac_status); } && {
24504          test -z "$ac_c_werror_flag" ||
24505          test ! -s conftest.err
24506        } && test -s conftest.$ac_objext; then
24507   ac_header_compiler=yes
24508 else
24509   echo "$as_me: failed program was:" >&5
24510 sed 's/^/| /' conftest.$ac_ext >&5
24511
24512         ac_header_compiler=no
24513 fi
24514
24515 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24516 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24517 echo "${ECHO_T}$ac_header_compiler" >&6; }
24518
24519 # Is the header present?
24520 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
24521 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
24522 cat >conftest.$ac_ext <<_ACEOF
24523 /* confdefs.h.  */
24524 _ACEOF
24525 cat confdefs.h >>conftest.$ac_ext
24526 cat >>conftest.$ac_ext <<_ACEOF
24527 /* end confdefs.h.  */
24528 #include <$ac_header>
24529 _ACEOF
24530 if { (ac_try="$ac_cpp conftest.$ac_ext"
24531 case "(($ac_try" in
24532   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24533   *) ac_try_echo=$ac_try;;
24534 esac
24535 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24536   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24537   ac_status=$?
24538   grep -v '^ *+' conftest.er1 >conftest.err
24539   rm -f conftest.er1
24540   cat conftest.err >&5
24541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24542   (exit $ac_status); } >/dev/null && {
24543          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24544          test ! -s conftest.err
24545        }; then
24546   ac_header_preproc=yes
24547 else
24548   echo "$as_me: failed program was:" >&5
24549 sed 's/^/| /' conftest.$ac_ext >&5
24550
24551   ac_header_preproc=no
24552 fi
24553
24554 rm -f conftest.err conftest.$ac_ext
24555 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24556 echo "${ECHO_T}$ac_header_preproc" >&6; }
24557
24558 # So?  What about this header?
24559 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24560   yes:no: )
24561     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24562 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24563     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24564 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24565     ac_header_preproc=yes
24566     ;;
24567   no:yes:* )
24568     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24569 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24570     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
24571 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
24572     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24573 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24574     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
24575 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
24576     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24577 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24578     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24579 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24580     ( cat <<\_ASBOX
24581 ## ---------------------------------------- ##
24582 ## Report this to linux-nfs@vger.kernel.org ##
24583 ## ---------------------------------------- ##
24584 _ASBOX
24585      ) | sed "s/^/$as_me: WARNING:     /" >&2
24586     ;;
24587 esac
24588 { echo "$as_me:$LINENO: checking for $ac_header" >&5
24589 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24590 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24591   echo $ECHO_N "(cached) $ECHO_C" >&6
24592 else
24593   eval "$as_ac_Header=\$ac_header_preproc"
24594 fi
24595 ac_res=`eval echo '${'$as_ac_Header'}'`
24596                { echo "$as_me:$LINENO: result: $ac_res" >&5
24597 echo "${ECHO_T}$ac_res" >&6; }
24598
24599 fi
24600 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24601   cat >>confdefs.h <<_ACEOF
24602 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24603 _ACEOF
24604
24605 else
24606   { { echo "$as_me:$LINENO: error: libtirpc-devel needed for IPv6 support" >&5
24607 echo "$as_me: error: libtirpc-devel needed for IPv6 support" >&2;}
24608    { (exit 1); exit 1; }; }
24609 fi
24610
24611 done
24612
24613 fi
24614
24615
24616
24617
24618
24619
24620
24621
24622
24623
24624
24625
24626
24627
24628
24629
24630
24631
24632
24633
24634
24635
24636
24637
24638
24639 for ac_header in arpa/inet.h fcntl.h libintl.h limits.h \
24640                  malloc.h memory.h netdb.h netinet/in.h paths.h \
24641                  stdlib.h string.h sys/file.h sys/ioctl.h sys/mount.h \
24642                  sys/param.h sys/socket.h sys/time.h sys/vfs.h \
24643                  syslog.h unistd.h com_err.h et/com_err.h \
24644                  ifaddrs.h tirpc/netconfig.h
24645 do
24646 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24647 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24648   { echo "$as_me:$LINENO: checking for $ac_header" >&5
24649 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24650 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24651   echo $ECHO_N "(cached) $ECHO_C" >&6
24652 fi
24653 ac_res=`eval echo '${'$as_ac_Header'}'`
24654                { echo "$as_me:$LINENO: result: $ac_res" >&5
24655 echo "${ECHO_T}$ac_res" >&6; }
24656 else
24657   # Is the header compilable?
24658 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
24659 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
24660 cat >conftest.$ac_ext <<_ACEOF
24661 /* confdefs.h.  */
24662 _ACEOF
24663 cat confdefs.h >>conftest.$ac_ext
24664 cat >>conftest.$ac_ext <<_ACEOF
24665 /* end confdefs.h.  */
24666 $ac_includes_default
24667 #include <$ac_header>
24668 _ACEOF
24669 rm -f conftest.$ac_objext
24670 if { (ac_try="$ac_compile"
24671 case "(($ac_try" in
24672   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24673   *) ac_try_echo=$ac_try;;
24674 esac
24675 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24676   (eval "$ac_compile") 2>conftest.er1
24677   ac_status=$?
24678   grep -v '^ *+' conftest.er1 >conftest.err
24679   rm -f conftest.er1
24680   cat conftest.err >&5
24681   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24682   (exit $ac_status); } && {
24683          test -z "$ac_c_werror_flag" ||
24684          test ! -s conftest.err
24685        } && test -s conftest.$ac_objext; then
24686   ac_header_compiler=yes
24687 else
24688   echo "$as_me: failed program was:" >&5
24689 sed 's/^/| /' conftest.$ac_ext >&5
24690
24691         ac_header_compiler=no
24692 fi
24693
24694 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24695 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24696 echo "${ECHO_T}$ac_header_compiler" >&6; }
24697
24698 # Is the header present?
24699 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
24700 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
24701 cat >conftest.$ac_ext <<_ACEOF
24702 /* confdefs.h.  */
24703 _ACEOF
24704 cat confdefs.h >>conftest.$ac_ext
24705 cat >>conftest.$ac_ext <<_ACEOF
24706 /* end confdefs.h.  */
24707 #include <$ac_header>
24708 _ACEOF
24709 if { (ac_try="$ac_cpp conftest.$ac_ext"
24710 case "(($ac_try" in
24711   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24712   *) ac_try_echo=$ac_try;;
24713 esac
24714 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24715   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24716   ac_status=$?
24717   grep -v '^ *+' conftest.er1 >conftest.err
24718   rm -f conftest.er1
24719   cat conftest.err >&5
24720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24721   (exit $ac_status); } >/dev/null && {
24722          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24723          test ! -s conftest.err
24724        }; then
24725   ac_header_preproc=yes
24726 else
24727   echo "$as_me: failed program was:" >&5
24728 sed 's/^/| /' conftest.$ac_ext >&5
24729
24730   ac_header_preproc=no
24731 fi
24732
24733 rm -f conftest.err conftest.$ac_ext
24734 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24735 echo "${ECHO_T}$ac_header_preproc" >&6; }
24736
24737 # So?  What about this header?
24738 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24739   yes:no: )
24740     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24741 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24742     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24743 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24744     ac_header_preproc=yes
24745     ;;
24746   no:yes:* )
24747     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24748 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24749     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
24750 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
24751     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24752 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24753     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
24754 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
24755     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24756 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24757     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24758 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24759     ( cat <<\_ASBOX
24760 ## ---------------------------------------- ##
24761 ## Report this to linux-nfs@vger.kernel.org ##
24762 ## ---------------------------------------- ##
24763 _ASBOX
24764      ) | sed "s/^/$as_me: WARNING:     /" >&2
24765     ;;
24766 esac
24767 { echo "$as_me:$LINENO: checking for $ac_header" >&5
24768 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24769 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24770   echo $ECHO_N "(cached) $ECHO_C" >&6
24771 else
24772   eval "$as_ac_Header=\$ac_header_preproc"
24773 fi
24774 ac_res=`eval echo '${'$as_ac_Header'}'`
24775                { echo "$as_me:$LINENO: result: $ac_res" >&5
24776 echo "${ECHO_T}$ac_res" >&6; }
24777
24778 fi
24779 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24780   cat >>confdefs.h <<_ACEOF
24781 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24782 _ACEOF
24783
24784 fi
24785
24786 done
24787
24788
24789 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
24790 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
24791 if test "${ac_cv_c_const+set}" = set; then
24792   echo $ECHO_N "(cached) $ECHO_C" >&6
24793 else
24794   cat >conftest.$ac_ext <<_ACEOF
24795 /* confdefs.h.  */
24796 _ACEOF
24797 cat confdefs.h >>conftest.$ac_ext
24798 cat >>conftest.$ac_ext <<_ACEOF
24799 /* end confdefs.h.  */
24800
24801 int
24802 main ()
24803 {
24804 /* FIXME: Include the comments suggested by Paul. */
24805 #ifndef __cplusplus
24806   /* Ultrix mips cc rejects this.  */
24807   typedef int charset[2];
24808   const charset cs;
24809   /* SunOS 4.1.1 cc rejects this.  */
24810   char const *const *pcpcc;
24811   char **ppc;
24812   /* NEC SVR4.0.2 mips cc rejects this.  */
24813   struct point {int x, y;};
24814   static struct point const zero = {0,0};
24815   /* AIX XL C 1.02.0.0 rejects this.
24816      It does not let you subtract one const X* pointer from another in
24817      an arm of an if-expression whose if-part is not a constant
24818      expression */
24819   const char *g = "string";
24820   pcpcc = &g + (g ? g-g : 0);
24821   /* HPUX 7.0 cc rejects these. */
24822   ++pcpcc;
24823   ppc = (char**) pcpcc;
24824   pcpcc = (char const *const *) ppc;
24825   { /* SCO 3.2v4 cc rejects this.  */
24826     char *t;
24827     char const *s = 0 ? (char *) 0 : (char const *) 0;
24828
24829     *t++ = 0;
24830     if (s) return 0;
24831   }
24832   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
24833     int x[] = {25, 17};
24834     const int *foo = &x[0];
24835     ++foo;
24836   }
24837   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
24838     typedef const int *iptr;
24839     iptr p = 0;
24840     ++p;
24841   }
24842   { /* AIX XL C 1.02.0.0 rejects this saying
24843        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
24844     struct s { int j; const int *ap[3]; };
24845     struct s *b; b->j = 5;
24846   }
24847   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
24848     const int foo = 10;
24849     if (!foo) return 0;
24850   }
24851   return !cs[0] && !zero.x;
24852 #endif
24853
24854   ;
24855   return 0;
24856 }
24857 _ACEOF
24858 rm -f conftest.$ac_objext
24859 if { (ac_try="$ac_compile"
24860 case "(($ac_try" in
24861   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24862   *) ac_try_echo=$ac_try;;
24863 esac
24864 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24865   (eval "$ac_compile") 2>conftest.er1
24866   ac_status=$?
24867   grep -v '^ *+' conftest.er1 >conftest.err
24868   rm -f conftest.er1
24869   cat conftest.err >&5
24870   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24871   (exit $ac_status); } && {
24872          test -z "$ac_c_werror_flag" ||
24873          test ! -s conftest.err
24874        } && test -s conftest.$ac_objext; then
24875   ac_cv_c_const=yes
24876 else
24877   echo "$as_me: failed program was:" >&5
24878 sed 's/^/| /' conftest.$ac_ext >&5
24879
24880         ac_cv_c_const=no
24881 fi
24882
24883 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24884 fi
24885 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
24886 echo "${ECHO_T}$ac_cv_c_const" >&6; }
24887 if test $ac_cv_c_const = no; then
24888
24889 cat >>confdefs.h <<\_ACEOF
24890 #define const
24891 _ACEOF
24892
24893 fi
24894
24895 { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
24896 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
24897 if test "${ac_cv_type_uid_t+set}" = set; then
24898   echo $ECHO_N "(cached) $ECHO_C" >&6
24899 else
24900   cat >conftest.$ac_ext <<_ACEOF
24901 /* confdefs.h.  */
24902 _ACEOF
24903 cat confdefs.h >>conftest.$ac_ext
24904 cat >>conftest.$ac_ext <<_ACEOF
24905 /* end confdefs.h.  */
24906 #include <sys/types.h>
24907
24908 _ACEOF
24909 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24910   $EGREP "uid_t" >/dev/null 2>&1; then
24911   ac_cv_type_uid_t=yes
24912 else
24913   ac_cv_type_uid_t=no
24914 fi
24915 rm -f conftest*
24916
24917 fi
24918 { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
24919 echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
24920 if test $ac_cv_type_uid_t = no; then
24921
24922 cat >>confdefs.h <<\_ACEOF
24923 #define uid_t int
24924 _ACEOF
24925
24926
24927 cat >>confdefs.h <<\_ACEOF
24928 #define gid_t int
24929 _ACEOF
24930
24931 fi
24932
24933 { echo "$as_me:$LINENO: checking for inline" >&5
24934 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
24935 if test "${ac_cv_c_inline+set}" = set; then
24936   echo $ECHO_N "(cached) $ECHO_C" >&6
24937 else
24938   ac_cv_c_inline=no
24939 for ac_kw in inline __inline__ __inline; do
24940   cat >conftest.$ac_ext <<_ACEOF
24941 /* confdefs.h.  */
24942 _ACEOF
24943 cat confdefs.h >>conftest.$ac_ext
24944 cat >>conftest.$ac_ext <<_ACEOF
24945 /* end confdefs.h.  */
24946 #ifndef __cplusplus
24947 typedef int foo_t;
24948 static $ac_kw foo_t static_foo () {return 0; }
24949 $ac_kw foo_t foo () {return 0; }
24950 #endif
24951
24952 _ACEOF
24953 rm -f conftest.$ac_objext
24954 if { (ac_try="$ac_compile"
24955 case "(($ac_try" in
24956   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24957   *) ac_try_echo=$ac_try;;
24958 esac
24959 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24960   (eval "$ac_compile") 2>conftest.er1
24961   ac_status=$?
24962   grep -v '^ *+' conftest.er1 >conftest.err
24963   rm -f conftest.er1
24964   cat conftest.err >&5
24965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24966   (exit $ac_status); } && {
24967          test -z "$ac_c_werror_flag" ||
24968          test ! -s conftest.err
24969        } && test -s conftest.$ac_objext; then
24970   ac_cv_c_inline=$ac_kw
24971 else
24972   echo "$as_me: failed program was:" >&5
24973 sed 's/^/| /' conftest.$ac_ext >&5
24974
24975
24976 fi
24977
24978 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24979   test "$ac_cv_c_inline" != no && break
24980 done
24981
24982 fi
24983 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
24984 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
24985
24986
24987 case $ac_cv_c_inline in
24988   inline | yes) ;;
24989   *)
24990     case $ac_cv_c_inline in
24991       no) ac_val=;;
24992       *) ac_val=$ac_cv_c_inline;;
24993     esac
24994     cat >>confdefs.h <<_ACEOF
24995 #ifndef __cplusplus
24996 #define inline $ac_val
24997 #endif
24998 _ACEOF
24999     ;;
25000 esac
25001
25002 { echo "$as_me:$LINENO: checking for off_t" >&5
25003 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
25004 if test "${ac_cv_type_off_t+set}" = set; then
25005   echo $ECHO_N "(cached) $ECHO_C" >&6
25006 else
25007   cat >conftest.$ac_ext <<_ACEOF
25008 /* confdefs.h.  */
25009 _ACEOF
25010 cat confdefs.h >>conftest.$ac_ext
25011 cat >>conftest.$ac_ext <<_ACEOF
25012 /* end confdefs.h.  */
25013 $ac_includes_default
25014 typedef off_t ac__type_new_;
25015 int
25016 main ()
25017 {
25018 if ((ac__type_new_ *) 0)
25019   return 0;
25020 if (sizeof (ac__type_new_))
25021   return 0;
25022   ;
25023   return 0;
25024 }
25025 _ACEOF
25026 rm -f conftest.$ac_objext
25027 if { (ac_try="$ac_compile"
25028 case "(($ac_try" in
25029   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25030   *) ac_try_echo=$ac_try;;
25031 esac
25032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25033   (eval "$ac_compile") 2>conftest.er1
25034   ac_status=$?
25035   grep -v '^ *+' conftest.er1 >conftest.err
25036   rm -f conftest.er1
25037   cat conftest.err >&5
25038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25039   (exit $ac_status); } && {
25040          test -z "$ac_c_werror_flag" ||
25041          test ! -s conftest.err
25042        } && test -s conftest.$ac_objext; then
25043   ac_cv_type_off_t=yes
25044 else
25045   echo "$as_me: failed program was:" >&5
25046 sed 's/^/| /' conftest.$ac_ext >&5
25047
25048         ac_cv_type_off_t=no
25049 fi
25050
25051 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25052 fi
25053 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
25054 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
25055 if test $ac_cv_type_off_t = yes; then
25056   :
25057 else
25058
25059 cat >>confdefs.h <<_ACEOF
25060 #define off_t long int
25061 _ACEOF
25062
25063 fi
25064
25065 { echo "$as_me:$LINENO: checking for pid_t" >&5
25066 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
25067 if test "${ac_cv_type_pid_t+set}" = set; then
25068   echo $ECHO_N "(cached) $ECHO_C" >&6
25069 else
25070   cat >conftest.$ac_ext <<_ACEOF
25071 /* confdefs.h.  */
25072 _ACEOF
25073 cat confdefs.h >>conftest.$ac_ext
25074 cat >>conftest.$ac_ext <<_ACEOF
25075 /* end confdefs.h.  */
25076 $ac_includes_default
25077 typedef pid_t ac__type_new_;
25078 int
25079 main ()
25080 {
25081 if ((ac__type_new_ *) 0)
25082   return 0;
25083 if (sizeof (ac__type_new_))
25084   return 0;
25085   ;
25086   return 0;
25087 }
25088 _ACEOF
25089 rm -f conftest.$ac_objext
25090 if { (ac_try="$ac_compile"
25091 case "(($ac_try" in
25092   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25093   *) ac_try_echo=$ac_try;;
25094 esac
25095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25096   (eval "$ac_compile") 2>conftest.er1
25097   ac_status=$?
25098   grep -v '^ *+' conftest.er1 >conftest.err
25099   rm -f conftest.er1
25100   cat conftest.err >&5
25101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25102   (exit $ac_status); } && {
25103          test -z "$ac_c_werror_flag" ||
25104          test ! -s conftest.err
25105        } && test -s conftest.$ac_objext; then
25106   ac_cv_type_pid_t=yes
25107 else
25108   echo "$as_me: failed program was:" >&5
25109 sed 's/^/| /' conftest.$ac_ext >&5
25110
25111         ac_cv_type_pid_t=no
25112 fi
25113
25114 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25115 fi
25116 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
25117 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
25118 if test $ac_cv_type_pid_t = yes; then
25119   :
25120 else
25121
25122 cat >>confdefs.h <<_ACEOF
25123 #define pid_t int
25124 _ACEOF
25125
25126 fi
25127
25128 { echo "$as_me:$LINENO: checking for size_t" >&5
25129 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
25130 if test "${ac_cv_type_size_t+set}" = set; then
25131   echo $ECHO_N "(cached) $ECHO_C" >&6
25132 else
25133   cat >conftest.$ac_ext <<_ACEOF
25134 /* confdefs.h.  */
25135 _ACEOF
25136 cat confdefs.h >>conftest.$ac_ext
25137 cat >>conftest.$ac_ext <<_ACEOF
25138 /* end confdefs.h.  */
25139 $ac_includes_default
25140 typedef size_t ac__type_new_;
25141 int
25142 main ()
25143 {
25144 if ((ac__type_new_ *) 0)
25145   return 0;
25146 if (sizeof (ac__type_new_))
25147   return 0;
25148   ;
25149   return 0;
25150 }
25151 _ACEOF
25152 rm -f conftest.$ac_objext
25153 if { (ac_try="$ac_compile"
25154 case "(($ac_try" in
25155   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25156   *) ac_try_echo=$ac_try;;
25157 esac
25158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25159   (eval "$ac_compile") 2>conftest.er1
25160   ac_status=$?
25161   grep -v '^ *+' conftest.er1 >conftest.err
25162   rm -f conftest.er1
25163   cat conftest.err >&5
25164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25165   (exit $ac_status); } && {
25166          test -z "$ac_c_werror_flag" ||
25167          test ! -s conftest.err
25168        } && test -s conftest.$ac_objext; then
25169   ac_cv_type_size_t=yes
25170 else
25171   echo "$as_me: failed program was:" >&5
25172 sed 's/^/| /' conftest.$ac_ext >&5
25173
25174         ac_cv_type_size_t=no
25175 fi
25176
25177 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25178 fi
25179 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
25180 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
25181 if test $ac_cv_type_size_t = yes; then
25182   :
25183 else
25184
25185 cat >>confdefs.h <<_ACEOF
25186 #define size_t unsigned int
25187 _ACEOF
25188
25189 fi
25190
25191 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
25192 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
25193 if test "${ac_cv_header_time+set}" = set; then
25194   echo $ECHO_N "(cached) $ECHO_C" >&6
25195 else
25196   cat >conftest.$ac_ext <<_ACEOF
25197 /* confdefs.h.  */
25198 _ACEOF
25199 cat confdefs.h >>conftest.$ac_ext
25200 cat >>conftest.$ac_ext <<_ACEOF
25201 /* end confdefs.h.  */
25202 #include <sys/types.h>
25203 #include <sys/time.h>
25204 #include <time.h>
25205
25206 int
25207 main ()
25208 {
25209 if ((struct tm *) 0)
25210 return 0;
25211   ;
25212   return 0;
25213 }
25214 _ACEOF
25215 rm -f conftest.$ac_objext
25216 if { (ac_try="$ac_compile"
25217 case "(($ac_try" in
25218   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25219   *) ac_try_echo=$ac_try;;
25220 esac
25221 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25222   (eval "$ac_compile") 2>conftest.er1
25223   ac_status=$?
25224   grep -v '^ *+' conftest.er1 >conftest.err
25225   rm -f conftest.er1
25226   cat conftest.err >&5
25227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25228   (exit $ac_status); } && {
25229          test -z "$ac_c_werror_flag" ||
25230          test ! -s conftest.err
25231        } && test -s conftest.$ac_objext; then
25232   ac_cv_header_time=yes
25233 else
25234   echo "$as_me: failed program was:" >&5
25235 sed 's/^/| /' conftest.$ac_ext >&5
25236
25237         ac_cv_header_time=no
25238 fi
25239
25240 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25241 fi
25242 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
25243 echo "${ECHO_T}$ac_cv_header_time" >&6; }
25244 if test $ac_cv_header_time = yes; then
25245
25246 cat >>confdefs.h <<\_ACEOF
25247 #define TIME_WITH_SYS_TIME 1
25248 _ACEOF
25249
25250 fi
25251
25252 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
25253 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
25254 if test "${ac_cv_struct_tm+set}" = set; then
25255   echo $ECHO_N "(cached) $ECHO_C" >&6
25256 else
25257   cat >conftest.$ac_ext <<_ACEOF
25258 /* confdefs.h.  */
25259 _ACEOF
25260 cat confdefs.h >>conftest.$ac_ext
25261 cat >>conftest.$ac_ext <<_ACEOF
25262 /* end confdefs.h.  */
25263 #include <sys/types.h>
25264 #include <time.h>
25265
25266 int
25267 main ()
25268 {
25269 struct tm tm;
25270                                      int *p = &tm.tm_sec;
25271                                      return !p;
25272   ;
25273   return 0;
25274 }
25275 _ACEOF
25276 rm -f conftest.$ac_objext
25277 if { (ac_try="$ac_compile"
25278 case "(($ac_try" in
25279   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25280   *) ac_try_echo=$ac_try;;
25281 esac
25282 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25283   (eval "$ac_compile") 2>conftest.er1
25284   ac_status=$?
25285   grep -v '^ *+' conftest.er1 >conftest.err
25286   rm -f conftest.er1
25287   cat conftest.err >&5
25288   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25289   (exit $ac_status); } && {
25290          test -z "$ac_c_werror_flag" ||
25291          test ! -s conftest.err
25292        } && test -s conftest.$ac_objext; then
25293   ac_cv_struct_tm=time.h
25294 else
25295   echo "$as_me: failed program was:" >&5
25296 sed 's/^/| /' conftest.$ac_ext >&5
25297
25298         ac_cv_struct_tm=sys/time.h
25299 fi
25300
25301 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25302 fi
25303 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
25304 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
25305 if test $ac_cv_struct_tm = sys/time.h; then
25306
25307 cat >>confdefs.h <<\_ACEOF
25308 #define TM_IN_SYS_TIME 1
25309 _ACEOF
25310
25311 fi
25312
25313
25314 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
25315 # for constant arguments.  Useless!
25316 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
25317 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
25318 if test "${ac_cv_working_alloca_h+set}" = set; then
25319   echo $ECHO_N "(cached) $ECHO_C" >&6
25320 else
25321   cat >conftest.$ac_ext <<_ACEOF
25322 /* confdefs.h.  */
25323 _ACEOF
25324 cat confdefs.h >>conftest.$ac_ext
25325 cat >>conftest.$ac_ext <<_ACEOF
25326 /* end confdefs.h.  */
25327 #include <alloca.h>
25328 int
25329 main ()
25330 {
25331 char *p = (char *) alloca (2 * sizeof (int));
25332                           if (p) return 0;
25333   ;
25334   return 0;
25335 }
25336 _ACEOF
25337 rm -f conftest.$ac_objext conftest$ac_exeext
25338 if { (ac_try="$ac_link"
25339 case "(($ac_try" in
25340   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25341   *) ac_try_echo=$ac_try;;
25342 esac
25343 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25344   (eval "$ac_link") 2>conftest.er1
25345   ac_status=$?
25346   grep -v '^ *+' conftest.er1 >conftest.err
25347   rm -f conftest.er1
25348   cat conftest.err >&5
25349   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25350   (exit $ac_status); } && {
25351          test -z "$ac_c_werror_flag" ||
25352          test ! -s conftest.err
25353        } && test -s conftest$ac_exeext &&
25354        $as_test_x conftest$ac_exeext; then
25355   ac_cv_working_alloca_h=yes
25356 else
25357   echo "$as_me: failed program was:" >&5
25358 sed 's/^/| /' conftest.$ac_ext >&5
25359
25360         ac_cv_working_alloca_h=no
25361 fi
25362
25363 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25364       conftest$ac_exeext conftest.$ac_ext
25365 fi
25366 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
25367 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
25368 if test $ac_cv_working_alloca_h = yes; then
25369
25370 cat >>confdefs.h <<\_ACEOF
25371 #define HAVE_ALLOCA_H 1
25372 _ACEOF
25373
25374 fi
25375
25376 { echo "$as_me:$LINENO: checking for alloca" >&5
25377 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
25378 if test "${ac_cv_func_alloca_works+set}" = set; then
25379   echo $ECHO_N "(cached) $ECHO_C" >&6
25380 else
25381   cat >conftest.$ac_ext <<_ACEOF
25382 /* confdefs.h.  */
25383 _ACEOF
25384 cat confdefs.h >>conftest.$ac_ext
25385 cat >>conftest.$ac_ext <<_ACEOF
25386 /* end confdefs.h.  */
25387 #ifdef __GNUC__
25388 # define alloca __builtin_alloca
25389 #else
25390 # ifdef _MSC_VER
25391 #  include <malloc.h>
25392 #  define alloca _alloca
25393 # else
25394 #  ifdef HAVE_ALLOCA_H
25395 #   include <alloca.h>
25396 #  else
25397 #   ifdef _AIX
25398  #pragma alloca
25399 #   else
25400 #    ifndef alloca /* predefined by HP cc +Olibcalls */
25401 char *alloca ();
25402 #    endif
25403 #   endif
25404 #  endif
25405 # endif
25406 #endif
25407
25408 int
25409 main ()
25410 {
25411 char *p = (char *) alloca (1);
25412                                     if (p) return 0;
25413   ;
25414   return 0;
25415 }
25416 _ACEOF
25417 rm -f conftest.$ac_objext conftest$ac_exeext
25418 if { (ac_try="$ac_link"
25419 case "(($ac_try" in
25420   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25421   *) ac_try_echo=$ac_try;;
25422 esac
25423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25424   (eval "$ac_link") 2>conftest.er1
25425   ac_status=$?
25426   grep -v '^ *+' conftest.er1 >conftest.err
25427   rm -f conftest.er1
25428   cat conftest.err >&5
25429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25430   (exit $ac_status); } && {
25431          test -z "$ac_c_werror_flag" ||
25432          test ! -s conftest.err
25433        } && test -s conftest$ac_exeext &&
25434        $as_test_x conftest$ac_exeext; then
25435   ac_cv_func_alloca_works=yes
25436 else
25437   echo "$as_me: failed program was:" >&5
25438 sed 's/^/| /' conftest.$ac_ext >&5
25439
25440         ac_cv_func_alloca_works=no
25441 fi
25442
25443 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25444       conftest$ac_exeext conftest.$ac_ext
25445 fi
25446 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
25447 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
25448
25449 if test $ac_cv_func_alloca_works = yes; then
25450
25451 cat >>confdefs.h <<\_ACEOF
25452 #define HAVE_ALLOCA 1
25453 _ACEOF
25454
25455 else
25456   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
25457 # that cause trouble.  Some versions do not even contain alloca or
25458 # contain a buggy version.  If you still want to use their alloca,
25459 # use ar to extract alloca.o from them instead of compiling alloca.c.
25460
25461 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
25462
25463 cat >>confdefs.h <<\_ACEOF
25464 #define C_ALLOCA 1
25465 _ACEOF
25466
25467
25468 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
25469 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
25470 if test "${ac_cv_os_cray+set}" = set; then
25471   echo $ECHO_N "(cached) $ECHO_C" >&6
25472 else
25473   cat >conftest.$ac_ext <<_ACEOF
25474 /* confdefs.h.  */
25475 _ACEOF
25476 cat confdefs.h >>conftest.$ac_ext
25477 cat >>conftest.$ac_ext <<_ACEOF
25478 /* end confdefs.h.  */
25479 #if defined CRAY && ! defined CRAY2
25480 webecray
25481 #else
25482 wenotbecray
25483 #endif
25484
25485 _ACEOF
25486 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25487   $EGREP "webecray" >/dev/null 2>&1; then
25488   ac_cv_os_cray=yes
25489 else
25490   ac_cv_os_cray=no
25491 fi
25492 rm -f conftest*
25493
25494 fi
25495 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
25496 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
25497 if test $ac_cv_os_cray = yes; then
25498   for ac_func in _getb67 GETB67 getb67; do
25499     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25500 { echo "$as_me:$LINENO: checking for $ac_func" >&5
25501 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
25502 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
25503   echo $ECHO_N "(cached) $ECHO_C" >&6
25504 else
25505   cat >conftest.$ac_ext <<_ACEOF
25506 /* confdefs.h.  */
25507 _ACEOF
25508 cat confdefs.h >>conftest.$ac_ext
25509 cat >>conftest.$ac_ext <<_ACEOF
25510 /* end confdefs.h.  */
25511 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25512    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25513 #define $ac_func innocuous_$ac_func
25514
25515 /* System header to define __stub macros and hopefully few prototypes,
25516     which can conflict with char $ac_func (); below.
25517     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25518     <limits.h> exists even on freestanding compilers.  */
25519
25520 #ifdef __STDC__
25521 # include <limits.h>
25522 #else
25523 # include <assert.h>
25524 #endif
25525
25526 #undef $ac_func
25527
25528 /* Override any GCC internal prototype to avoid an error.
25529    Use char because int might match the return type of a GCC
25530    builtin and then its argument prototype would still apply.  */
25531 #ifdef __cplusplus
25532 extern "C"
25533 #endif
25534 char $ac_func ();
25535 /* The GNU C library defines this for functions which it implements
25536     to always fail with ENOSYS.  Some functions are actually named
25537     something starting with __ and the normal name is an alias.  */
25538 #if defined __stub_$ac_func || defined __stub___$ac_func
25539 choke me
25540 #endif
25541
25542 int
25543 main ()
25544 {
25545 return $ac_func ();
25546   ;
25547   return 0;
25548 }
25549 _ACEOF
25550 rm -f conftest.$ac_objext conftest$ac_exeext
25551 if { (ac_try="$ac_link"
25552 case "(($ac_try" in
25553   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25554   *) ac_try_echo=$ac_try;;
25555 esac
25556 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25557   (eval "$ac_link") 2>conftest.er1
25558   ac_status=$?
25559   grep -v '^ *+' conftest.er1 >conftest.err
25560   rm -f conftest.er1
25561   cat conftest.err >&5
25562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25563   (exit $ac_status); } && {
25564          test -z "$ac_c_werror_flag" ||
25565          test ! -s conftest.err
25566        } && test -s conftest$ac_exeext &&
25567        $as_test_x conftest$ac_exeext; then
25568   eval "$as_ac_var=yes"
25569 else
25570   echo "$as_me: failed program was:" >&5
25571 sed 's/^/| /' conftest.$ac_ext >&5
25572
25573         eval "$as_ac_var=no"
25574 fi
25575
25576 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25577       conftest$ac_exeext conftest.$ac_ext
25578 fi
25579 ac_res=`eval echo '${'$as_ac_var'}'`
25580                { echo "$as_me:$LINENO: result: $ac_res" >&5
25581 echo "${ECHO_T}$ac_res" >&6; }
25582 if test `eval echo '${'$as_ac_var'}'` = yes; then
25583
25584 cat >>confdefs.h <<_ACEOF
25585 #define CRAY_STACKSEG_END $ac_func
25586 _ACEOF
25587
25588     break
25589 fi
25590
25591   done
25592 fi
25593
25594 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
25595 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
25596 if test "${ac_cv_c_stack_direction+set}" = set; then
25597   echo $ECHO_N "(cached) $ECHO_C" >&6
25598 else
25599   if test "$cross_compiling" = yes; then
25600   ac_cv_c_stack_direction=0
25601 else
25602   cat >conftest.$ac_ext <<_ACEOF
25603 /* confdefs.h.  */
25604 _ACEOF
25605 cat confdefs.h >>conftest.$ac_ext
25606 cat >>conftest.$ac_ext <<_ACEOF
25607 /* end confdefs.h.  */
25608 $ac_includes_default
25609 int
25610 find_stack_direction ()
25611 {
25612   static char *addr = 0;
25613   auto char dummy;
25614   if (addr == 0)
25615     {
25616       addr = &dummy;
25617       return find_stack_direction ();
25618     }
25619   else
25620     return (&dummy > addr) ? 1 : -1;
25621 }
25622
25623 int
25624 main ()
25625 {
25626   return find_stack_direction () < 0;
25627 }
25628 _ACEOF
25629 rm -f conftest$ac_exeext
25630 if { (ac_try="$ac_link"
25631 case "(($ac_try" in
25632   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25633   *) ac_try_echo=$ac_try;;
25634 esac
25635 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25636   (eval "$ac_link") 2>&5
25637   ac_status=$?
25638   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25639   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25640   { (case "(($ac_try" in
25641   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25642   *) ac_try_echo=$ac_try;;
25643 esac
25644 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25645   (eval "$ac_try") 2>&5
25646   ac_status=$?
25647   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25648   (exit $ac_status); }; }; then
25649   ac_cv_c_stack_direction=1
25650 else
25651   echo "$as_me: program exited with status $ac_status" >&5
25652 echo "$as_me: failed program was:" >&5
25653 sed 's/^/| /' conftest.$ac_ext >&5
25654
25655 ( exit $ac_status )
25656 ac_cv_c_stack_direction=-1
25657 fi
25658 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25659 fi
25660
25661
25662 fi
25663 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
25664 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
25665
25666 cat >>confdefs.h <<_ACEOF
25667 #define STACK_DIRECTION $ac_cv_c_stack_direction
25668 _ACEOF
25669
25670
25671 fi
25672
25673
25674
25675
25676
25677
25678 ac_header_dirent=no
25679 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
25680   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
25681 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
25682 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
25683 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25684   echo $ECHO_N "(cached) $ECHO_C" >&6
25685 else
25686   cat >conftest.$ac_ext <<_ACEOF
25687 /* confdefs.h.  */
25688 _ACEOF
25689 cat confdefs.h >>conftest.$ac_ext
25690 cat >>conftest.$ac_ext <<_ACEOF
25691 /* end confdefs.h.  */
25692 #include <sys/types.h>
25693 #include <$ac_hdr>
25694
25695 int
25696 main ()
25697 {
25698 if ((DIR *) 0)
25699 return 0;
25700   ;
25701   return 0;
25702 }
25703 _ACEOF
25704 rm -f conftest.$ac_objext
25705 if { (ac_try="$ac_compile"
25706 case "(($ac_try" in
25707   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25708   *) ac_try_echo=$ac_try;;
25709 esac
25710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25711   (eval "$ac_compile") 2>conftest.er1
25712   ac_status=$?
25713   grep -v '^ *+' conftest.er1 >conftest.err
25714   rm -f conftest.er1
25715   cat conftest.err >&5
25716   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25717   (exit $ac_status); } && {
25718          test -z "$ac_c_werror_flag" ||
25719          test ! -s conftest.err
25720        } && test -s conftest.$ac_objext; then
25721   eval "$as_ac_Header=yes"
25722 else
25723   echo "$as_me: failed program was:" >&5
25724 sed 's/^/| /' conftest.$ac_ext >&5
25725
25726         eval "$as_ac_Header=no"
25727 fi
25728
25729 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25730 fi
25731 ac_res=`eval echo '${'$as_ac_Header'}'`
25732                { echo "$as_me:$LINENO: result: $ac_res" >&5
25733 echo "${ECHO_T}$ac_res" >&6; }
25734 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25735   cat >>confdefs.h <<_ACEOF
25736 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
25737 _ACEOF
25738
25739 ac_header_dirent=$ac_hdr; break
25740 fi
25741
25742 done
25743 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
25744 if test $ac_header_dirent = dirent.h; then
25745   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
25746 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
25747 if test "${ac_cv_search_opendir+set}" = set; then
25748   echo $ECHO_N "(cached) $ECHO_C" >&6
25749 else
25750   ac_func_search_save_LIBS=$LIBS
25751 cat >conftest.$ac_ext <<_ACEOF
25752 /* confdefs.h.  */
25753 _ACEOF
25754 cat confdefs.h >>conftest.$ac_ext
25755 cat >>conftest.$ac_ext <<_ACEOF
25756 /* end confdefs.h.  */
25757
25758 /* Override any GCC internal prototype to avoid an error.
25759    Use char because int might match the return type of a GCC
25760    builtin and then its argument prototype would still apply.  */
25761 #ifdef __cplusplus
25762 extern "C"
25763 #endif
25764 char opendir ();
25765 int
25766 main ()
25767 {
25768 return opendir ();
25769   ;
25770   return 0;
25771 }
25772 _ACEOF
25773 for ac_lib in '' dir; do
25774   if test -z "$ac_lib"; then
25775     ac_res="none required"
25776   else
25777     ac_res=-l$ac_lib
25778     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
25779   fi
25780   rm -f conftest.$ac_objext conftest$ac_exeext
25781 if { (ac_try="$ac_link"
25782 case "(($ac_try" in
25783   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25784   *) ac_try_echo=$ac_try;;
25785 esac
25786 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25787   (eval "$ac_link") 2>conftest.er1
25788   ac_status=$?
25789   grep -v '^ *+' conftest.er1 >conftest.err
25790   rm -f conftest.er1
25791   cat conftest.err >&5
25792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25793   (exit $ac_status); } && {
25794          test -z "$ac_c_werror_flag" ||
25795          test ! -s conftest.err
25796        } && test -s conftest$ac_exeext &&
25797        $as_test_x conftest$ac_exeext; then
25798   ac_cv_search_opendir=$ac_res
25799 else
25800   echo "$as_me: failed program was:" >&5
25801 sed 's/^/| /' conftest.$ac_ext >&5
25802
25803
25804 fi
25805
25806 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25807       conftest$ac_exeext
25808   if test "${ac_cv_search_opendir+set}" = set; then
25809   break
25810 fi
25811 done
25812 if test "${ac_cv_search_opendir+set}" = set; then
25813   :
25814 else
25815   ac_cv_search_opendir=no
25816 fi
25817 rm conftest.$ac_ext
25818 LIBS=$ac_func_search_save_LIBS
25819 fi
25820 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
25821 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
25822 ac_res=$ac_cv_search_opendir
25823 if test "$ac_res" != no; then
25824   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25825
25826 fi
25827
25828 else
25829   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
25830 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
25831 if test "${ac_cv_search_opendir+set}" = set; then
25832   echo $ECHO_N "(cached) $ECHO_C" >&6
25833 else
25834   ac_func_search_save_LIBS=$LIBS
25835 cat >conftest.$ac_ext <<_ACEOF
25836 /* confdefs.h.  */
25837 _ACEOF
25838 cat confdefs.h >>conftest.$ac_ext
25839 cat >>conftest.$ac_ext <<_ACEOF
25840 /* end confdefs.h.  */
25841
25842 /* Override any GCC internal prototype to avoid an error.
25843    Use char because int might match the return type of a GCC
25844    builtin and then its argument prototype would still apply.  */
25845 #ifdef __cplusplus
25846 extern "C"
25847 #endif
25848 char opendir ();
25849 int
25850 main ()
25851 {
25852 return opendir ();
25853   ;
25854   return 0;
25855 }
25856 _ACEOF
25857 for ac_lib in '' x; do
25858   if test -z "$ac_lib"; then
25859     ac_res="none required"
25860   else
25861     ac_res=-l$ac_lib
25862     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
25863   fi
25864   rm -f conftest.$ac_objext conftest$ac_exeext
25865 if { (ac_try="$ac_link"
25866 case "(($ac_try" in
25867   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25868   *) ac_try_echo=$ac_try;;
25869 esac
25870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25871   (eval "$ac_link") 2>conftest.er1
25872   ac_status=$?
25873   grep -v '^ *+' conftest.er1 >conftest.err
25874   rm -f conftest.er1
25875   cat conftest.err >&5
25876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25877   (exit $ac_status); } && {
25878          test -z "$ac_c_werror_flag" ||
25879          test ! -s conftest.err
25880        } && test -s conftest$ac_exeext &&
25881        $as_test_x conftest$ac_exeext; then
25882   ac_cv_search_opendir=$ac_res
25883 else
25884   echo "$as_me: failed program was:" >&5
25885 sed 's/^/| /' conftest.$ac_ext >&5
25886
25887
25888 fi
25889
25890 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25891       conftest$ac_exeext
25892   if test "${ac_cv_search_opendir+set}" = set; then
25893   break
25894 fi
25895 done
25896 if test "${ac_cv_search_opendir+set}" = set; then
25897   :
25898 else
25899   ac_cv_search_opendir=no
25900 fi
25901 rm conftest.$ac_ext
25902 LIBS=$ac_func_search_save_LIBS
25903 fi
25904 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
25905 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
25906 ac_res=$ac_cv_search_opendir
25907 if test "$ac_res" != no; then
25908   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25909
25910 fi
25911
25912 fi
25913
25914 { echo "$as_me:$LINENO: checking whether closedir returns void" >&5
25915 echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6; }
25916 if test "${ac_cv_func_closedir_void+set}" = set; then
25917   echo $ECHO_N "(cached) $ECHO_C" >&6
25918 else
25919   if test "$cross_compiling" = yes; then
25920   ac_cv_func_closedir_void=yes
25921 else
25922   cat >conftest.$ac_ext <<_ACEOF
25923 /* confdefs.h.  */
25924 _ACEOF
25925 cat confdefs.h >>conftest.$ac_ext
25926 cat >>conftest.$ac_ext <<_ACEOF
25927 /* end confdefs.h.  */
25928 $ac_includes_default
25929 #include <$ac_header_dirent>
25930 #ifndef __cplusplus
25931 int closedir ();
25932 #endif
25933
25934 int
25935 main ()
25936 {
25937 return closedir (opendir (".")) != 0;
25938   ;
25939   return 0;
25940 }
25941 _ACEOF
25942 rm -f conftest$ac_exeext
25943 if { (ac_try="$ac_link"
25944 case "(($ac_try" in
25945   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25946   *) ac_try_echo=$ac_try;;
25947 esac
25948 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25949   (eval "$ac_link") 2>&5
25950   ac_status=$?
25951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25952   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25953   { (case "(($ac_try" in
25954   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25955   *) ac_try_echo=$ac_try;;
25956 esac
25957 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25958   (eval "$ac_try") 2>&5
25959   ac_status=$?
25960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25961   (exit $ac_status); }; }; then
25962   ac_cv_func_closedir_void=no
25963 else
25964   echo "$as_me: program exited with status $ac_status" >&5
25965 echo "$as_me: failed program was:" >&5
25966 sed 's/^/| /' conftest.$ac_ext >&5
25967
25968 ( exit $ac_status )
25969 ac_cv_func_closedir_void=yes
25970 fi
25971 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25972 fi
25973
25974
25975 fi
25976 { echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
25977 echo "${ECHO_T}$ac_cv_func_closedir_void" >&6; }
25978 if test $ac_cv_func_closedir_void = yes; then
25979
25980 cat >>confdefs.h <<\_ACEOF
25981 #define CLOSEDIR_VOID 1
25982 _ACEOF
25983
25984 fi
25985
25986 { echo "$as_me:$LINENO: checking for error_at_line" >&5
25987 echo $ECHO_N "checking for error_at_line... $ECHO_C" >&6; }
25988 if test "${ac_cv_lib_error_at_line+set}" = set; then
25989   echo $ECHO_N "(cached) $ECHO_C" >&6
25990 else
25991   cat >conftest.$ac_ext <<_ACEOF
25992 /* confdefs.h.  */
25993 _ACEOF
25994 cat confdefs.h >>conftest.$ac_ext
25995 cat >>conftest.$ac_ext <<_ACEOF
25996 /* end confdefs.h.  */
25997 #include <error.h>
25998 int
25999 main ()
26000 {
26001 error_at_line (0, 0, "", 0, "an error occurred");
26002   ;
26003   return 0;
26004 }
26005 _ACEOF
26006 rm -f conftest.$ac_objext conftest$ac_exeext
26007 if { (ac_try="$ac_link"
26008 case "(($ac_try" in
26009   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26010   *) ac_try_echo=$ac_try;;
26011 esac
26012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26013   (eval "$ac_link") 2>conftest.er1
26014   ac_status=$?
26015   grep -v '^ *+' conftest.er1 >conftest.err
26016   rm -f conftest.er1
26017   cat conftest.err >&5
26018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26019   (exit $ac_status); } && {
26020          test -z "$ac_c_werror_flag" ||
26021          test ! -s conftest.err
26022        } && test -s conftest$ac_exeext &&
26023        $as_test_x conftest$ac_exeext; then
26024   ac_cv_lib_error_at_line=yes
26025 else
26026   echo "$as_me: failed program was:" >&5
26027 sed 's/^/| /' conftest.$ac_ext >&5
26028
26029         ac_cv_lib_error_at_line=no
26030 fi
26031
26032 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26033       conftest$ac_exeext conftest.$ac_ext
26034 fi
26035 { echo "$as_me:$LINENO: result: $ac_cv_lib_error_at_line" >&5
26036 echo "${ECHO_T}$ac_cv_lib_error_at_line" >&6; }
26037 if test $ac_cv_lib_error_at_line = no; then
26038   case " $LIBOBJS " in
26039   *" error.$ac_objext "* ) ;;
26040   *) LIBOBJS="$LIBOBJS error.$ac_objext"
26041  ;;
26042 esac
26043
26044 fi
26045
26046
26047 for ac_header in vfork.h
26048 do
26049 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26050 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26051   { echo "$as_me:$LINENO: checking for $ac_header" >&5
26052 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
26053 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26054   echo $ECHO_N "(cached) $ECHO_C" >&6
26055 fi
26056 ac_res=`eval echo '${'$as_ac_Header'}'`
26057                { echo "$as_me:$LINENO: result: $ac_res" >&5
26058 echo "${ECHO_T}$ac_res" >&6; }
26059 else
26060   # Is the header compilable?
26061 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
26062 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
26063 cat >conftest.$ac_ext <<_ACEOF
26064 /* confdefs.h.  */
26065 _ACEOF
26066 cat confdefs.h >>conftest.$ac_ext
26067 cat >>conftest.$ac_ext <<_ACEOF
26068 /* end confdefs.h.  */
26069 $ac_includes_default
26070 #include <$ac_header>
26071 _ACEOF
26072 rm -f conftest.$ac_objext
26073 if { (ac_try="$ac_compile"
26074 case "(($ac_try" in
26075   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26076   *) ac_try_echo=$ac_try;;
26077 esac
26078 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26079   (eval "$ac_compile") 2>conftest.er1
26080   ac_status=$?
26081   grep -v '^ *+' conftest.er1 >conftest.err
26082   rm -f conftest.er1
26083   cat conftest.err >&5
26084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26085   (exit $ac_status); } && {
26086          test -z "$ac_c_werror_flag" ||
26087          test ! -s conftest.err
26088        } && test -s conftest.$ac_objext; then
26089   ac_header_compiler=yes
26090 else
26091   echo "$as_me: failed program was:" >&5
26092 sed 's/^/| /' conftest.$ac_ext >&5
26093
26094         ac_header_compiler=no
26095 fi
26096
26097 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26098 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26099 echo "${ECHO_T}$ac_header_compiler" >&6; }
26100
26101 # Is the header present?
26102 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
26103 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
26104 cat >conftest.$ac_ext <<_ACEOF
26105 /* confdefs.h.  */
26106 _ACEOF
26107 cat confdefs.h >>conftest.$ac_ext
26108 cat >>conftest.$ac_ext <<_ACEOF
26109 /* end confdefs.h.  */
26110 #include <$ac_header>
26111 _ACEOF
26112 if { (ac_try="$ac_cpp conftest.$ac_ext"
26113 case "(($ac_try" in
26114   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26115   *) ac_try_echo=$ac_try;;
26116 esac
26117 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26118   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26119   ac_status=$?
26120   grep -v '^ *+' conftest.er1 >conftest.err
26121   rm -f conftest.er1
26122   cat conftest.err >&5
26123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26124   (exit $ac_status); } >/dev/null && {
26125          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26126          test ! -s conftest.err
26127        }; then
26128   ac_header_preproc=yes
26129 else
26130   echo "$as_me: failed program was:" >&5
26131 sed 's/^/| /' conftest.$ac_ext >&5
26132
26133   ac_header_preproc=no
26134 fi
26135
26136 rm -f conftest.err conftest.$ac_ext
26137 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26138 echo "${ECHO_T}$ac_header_preproc" >&6; }
26139
26140 # So?  What about this header?
26141 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26142   yes:no: )
26143     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26144 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26145     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26146 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26147     ac_header_preproc=yes
26148     ;;
26149   no:yes:* )
26150     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26151 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26152     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
26153 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
26154     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26155 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26156     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
26157 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
26158     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26159 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26160     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26161 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26162     ( cat <<\_ASBOX
26163 ## ---------------------------------------- ##
26164 ## Report this to linux-nfs@vger.kernel.org ##
26165 ## ---------------------------------------- ##
26166 _ASBOX
26167      ) | sed "s/^/$as_me: WARNING:     /" >&2
26168     ;;
26169 esac
26170 { echo "$as_me:$LINENO: checking for $ac_header" >&5
26171 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
26172 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26173   echo $ECHO_N "(cached) $ECHO_C" >&6
26174 else
26175   eval "$as_ac_Header=\$ac_header_preproc"
26176 fi
26177 ac_res=`eval echo '${'$as_ac_Header'}'`
26178                { echo "$as_me:$LINENO: result: $ac_res" >&5
26179 echo "${ECHO_T}$ac_res" >&6; }
26180
26181 fi
26182 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26183   cat >>confdefs.h <<_ACEOF
26184 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26185 _ACEOF
26186
26187 fi
26188
26189 done
26190
26191
26192
26193 for ac_func in fork vfork
26194 do
26195 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26196 { echo "$as_me:$LINENO: checking for $ac_func" >&5
26197 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
26198 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
26199   echo $ECHO_N "(cached) $ECHO_C" >&6
26200 else
26201   cat >conftest.$ac_ext <<_ACEOF
26202 /* confdefs.h.  */
26203 _ACEOF
26204 cat confdefs.h >>conftest.$ac_ext
26205 cat >>conftest.$ac_ext <<_ACEOF
26206 /* end confdefs.h.  */
26207 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26208    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26209 #define $ac_func innocuous_$ac_func
26210
26211 /* System header to define __stub macros and hopefully few prototypes,
26212     which can conflict with char $ac_func (); below.
26213     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26214     <limits.h> exists even on freestanding compilers.  */
26215
26216 #ifdef __STDC__
26217 # include <limits.h>
26218 #else
26219 # include <assert.h>
26220 #endif
26221
26222 #undef $ac_func
26223
26224 /* Override any GCC internal prototype to avoid an error.
26225    Use char because int might match the return type of a GCC
26226    builtin and then its argument prototype would still apply.  */
26227 #ifdef __cplusplus
26228 extern "C"
26229 #endif
26230 char $ac_func ();
26231 /* The GNU C library defines this for functions which it implements
26232     to always fail with ENOSYS.  Some functions are actually named
26233     something starting with __ and the normal name is an alias.  */
26234 #if defined __stub_$ac_func || defined __stub___$ac_func
26235 choke me
26236 #endif
26237
26238 int
26239 main ()
26240 {
26241 return $ac_func ();
26242   ;
26243   return 0;
26244 }
26245 _ACEOF
26246 rm -f conftest.$ac_objext conftest$ac_exeext
26247 if { (ac_try="$ac_link"
26248 case "(($ac_try" in
26249   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26250   *) ac_try_echo=$ac_try;;
26251 esac
26252 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26253   (eval "$ac_link") 2>conftest.er1
26254   ac_status=$?
26255   grep -v '^ *+' conftest.er1 >conftest.err
26256   rm -f conftest.er1
26257   cat conftest.err >&5
26258   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26259   (exit $ac_status); } && {
26260          test -z "$ac_c_werror_flag" ||
26261          test ! -s conftest.err
26262        } && test -s conftest$ac_exeext &&
26263        $as_test_x conftest$ac_exeext; then
26264   eval "$as_ac_var=yes"
26265 else
26266   echo "$as_me: failed program was:" >&5
26267 sed 's/^/| /' conftest.$ac_ext >&5
26268
26269         eval "$as_ac_var=no"
26270 fi
26271
26272 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26273       conftest$ac_exeext conftest.$ac_ext
26274 fi
26275 ac_res=`eval echo '${'$as_ac_var'}'`
26276                { echo "$as_me:$LINENO: result: $ac_res" >&5
26277 echo "${ECHO_T}$ac_res" >&6; }
26278 if test `eval echo '${'$as_ac_var'}'` = yes; then
26279   cat >>confdefs.h <<_ACEOF
26280 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26281 _ACEOF
26282
26283 fi
26284 done
26285
26286 if test "x$ac_cv_func_fork" = xyes; then
26287   { echo "$as_me:$LINENO: checking for working fork" >&5
26288 echo $ECHO_N "checking for working fork... $ECHO_C" >&6; }
26289 if test "${ac_cv_func_fork_works+set}" = set; then
26290   echo $ECHO_N "(cached) $ECHO_C" >&6
26291 else
26292   if test "$cross_compiling" = yes; then
26293   ac_cv_func_fork_works=cross
26294 else
26295   cat >conftest.$ac_ext <<_ACEOF
26296 /* confdefs.h.  */
26297 _ACEOF
26298 cat confdefs.h >>conftest.$ac_ext
26299 cat >>conftest.$ac_ext <<_ACEOF
26300 /* end confdefs.h.  */
26301 $ac_includes_default
26302 int
26303 main ()
26304 {
26305
26306           /* By Ruediger Kuhlmann. */
26307           return fork () < 0;
26308
26309   ;
26310   return 0;
26311 }
26312 _ACEOF
26313 rm -f conftest$ac_exeext
26314 if { (ac_try="$ac_link"
26315 case "(($ac_try" in
26316   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26317   *) ac_try_echo=$ac_try;;
26318 esac
26319 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26320   (eval "$ac_link") 2>&5
26321   ac_status=$?
26322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26323   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26324   { (case "(($ac_try" in
26325   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26326   *) ac_try_echo=$ac_try;;
26327 esac
26328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26329   (eval "$ac_try") 2>&5
26330   ac_status=$?
26331   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26332   (exit $ac_status); }; }; then
26333   ac_cv_func_fork_works=yes
26334 else
26335   echo "$as_me: program exited with status $ac_status" >&5
26336 echo "$as_me: failed program was:" >&5
26337 sed 's/^/| /' conftest.$ac_ext >&5
26338
26339 ( exit $ac_status )
26340 ac_cv_func_fork_works=no
26341 fi
26342 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26343 fi
26344
26345
26346 fi
26347 { echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
26348 echo "${ECHO_T}$ac_cv_func_fork_works" >&6; }
26349
26350 else
26351   ac_cv_func_fork_works=$ac_cv_func_fork
26352 fi
26353 if test "x$ac_cv_func_fork_works" = xcross; then
26354   case $host in
26355     *-*-amigaos* | *-*-msdosdjgpp*)
26356       # Override, as these systems have only a dummy fork() stub
26357       ac_cv_func_fork_works=no
26358       ;;
26359     *)
26360       ac_cv_func_fork_works=yes
26361       ;;
26362   esac
26363   { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
26364 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
26365 fi
26366 ac_cv_func_vfork_works=$ac_cv_func_vfork
26367 if test "x$ac_cv_func_vfork" = xyes; then
26368   { echo "$as_me:$LINENO: checking for working vfork" >&5
26369 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6; }
26370 if test "${ac_cv_func_vfork_works+set}" = set; then
26371   echo $ECHO_N "(cached) $ECHO_C" >&6
26372 else
26373   if test "$cross_compiling" = yes; then
26374   ac_cv_func_vfork_works=cross
26375 else
26376   cat >conftest.$ac_ext <<_ACEOF
26377 /* confdefs.h.  */
26378 _ACEOF
26379 cat confdefs.h >>conftest.$ac_ext
26380 cat >>conftest.$ac_ext <<_ACEOF
26381 /* end confdefs.h.  */
26382 /* Thanks to Paul Eggert for this test.  */
26383 $ac_includes_default
26384 #include <sys/wait.h>
26385 #ifdef HAVE_VFORK_H
26386 # include <vfork.h>
26387 #endif
26388 /* On some sparc systems, changes by the child to local and incoming
26389    argument registers are propagated back to the parent.  The compiler
26390    is told about this with #include <vfork.h>, but some compilers
26391    (e.g. gcc -O) don't grok <vfork.h>.  Test for this by using a
26392    static variable whose address is put into a register that is
26393    clobbered by the vfork.  */
26394 static void
26395 #ifdef __cplusplus
26396 sparc_address_test (int arg)
26397 # else
26398 sparc_address_test (arg) int arg;
26399 #endif
26400 {
26401   static pid_t child;
26402   if (!child) {
26403     child = vfork ();
26404     if (child < 0) {
26405       perror ("vfork");
26406       _exit(2);
26407     }
26408     if (!child) {
26409       arg = getpid();
26410       write(-1, "", 0);
26411       _exit (arg);
26412     }
26413   }
26414 }
26415
26416 int
26417 main ()
26418 {
26419   pid_t parent = getpid ();
26420   pid_t child;
26421
26422   sparc_address_test (0);
26423
26424   child = vfork ();
26425
26426   if (child == 0) {
26427     /* Here is another test for sparc vfork register problems.  This
26428        test uses lots of local variables, at least as many local
26429        variables as main has allocated so far including compiler
26430        temporaries.  4 locals are enough for gcc 1.40.3 on a Solaris
26431        4.1.3 sparc, but we use 8 to be safe.  A buggy compiler should
26432        reuse the register of parent for one of the local variables,
26433        since it will think that parent can't possibly be used any more
26434        in this routine.  Assigning to the local variable will thus
26435        munge parent in the parent process.  */
26436     pid_t
26437       p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
26438       p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
26439     /* Convince the compiler that p..p7 are live; otherwise, it might
26440        use the same hardware register for all 8 local variables.  */
26441     if (p != p1 || p != p2 || p != p3 || p != p4
26442         || p != p5 || p != p6 || p != p7)
26443       _exit(1);
26444
26445     /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
26446        from child file descriptors.  If the child closes a descriptor
26447        before it execs or exits, this munges the parent's descriptor
26448        as well.  Test for this by closing stdout in the child.  */
26449     _exit(close(fileno(stdout)) != 0);
26450   } else {
26451     int status;
26452     struct stat st;
26453
26454     while (wait(&status) != child)
26455       ;
26456     return (
26457          /* Was there some problem with vforking?  */
26458          child < 0
26459
26460          /* Did the child fail?  (This shouldn't happen.)  */
26461          || status
26462
26463          /* Did the vfork/compiler bug occur?  */
26464          || parent != getpid()
26465
26466          /* Did the file descriptor bug occur?  */
26467          || fstat(fileno(stdout), &st) != 0
26468          );
26469   }
26470 }
26471 _ACEOF
26472 rm -f conftest$ac_exeext
26473 if { (ac_try="$ac_link"
26474 case "(($ac_try" in
26475   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26476   *) ac_try_echo=$ac_try;;
26477 esac
26478 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26479   (eval "$ac_link") 2>&5
26480   ac_status=$?
26481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26482   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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_try") 2>&5
26489   ac_status=$?
26490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26491   (exit $ac_status); }; }; then
26492   ac_cv_func_vfork_works=yes
26493 else
26494   echo "$as_me: program exited with status $ac_status" >&5
26495 echo "$as_me: failed program was:" >&5
26496 sed 's/^/| /' conftest.$ac_ext >&5
26497
26498 ( exit $ac_status )
26499 ac_cv_func_vfork_works=no
26500 fi
26501 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26502 fi
26503
26504
26505 fi
26506 { echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
26507 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6; }
26508
26509 fi;
26510 if test "x$ac_cv_func_fork_works" = xcross; then
26511   ac_cv_func_vfork_works=$ac_cv_func_vfork
26512   { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
26513 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
26514 fi
26515
26516 if test "x$ac_cv_func_vfork_works" = xyes; then
26517
26518 cat >>confdefs.h <<\_ACEOF
26519 #define HAVE_WORKING_VFORK 1
26520 _ACEOF
26521
26522 else
26523
26524 cat >>confdefs.h <<\_ACEOF
26525 #define vfork fork
26526 _ACEOF
26527
26528 fi
26529 if test "x$ac_cv_func_fork_works" = xyes; then
26530
26531 cat >>confdefs.h <<\_ACEOF
26532 #define HAVE_WORKING_FORK 1
26533 _ACEOF
26534
26535 fi
26536
26537 { echo "$as_me:$LINENO: checking type of array argument to getgroups" >&5
26538 echo $ECHO_N "checking type of array argument to getgroups... $ECHO_C" >&6; }
26539 if test "${ac_cv_type_getgroups+set}" = set; then
26540   echo $ECHO_N "(cached) $ECHO_C" >&6
26541 else
26542   if test "$cross_compiling" = yes; then
26543   ac_cv_type_getgroups=cross
26544 else
26545   cat >conftest.$ac_ext <<_ACEOF
26546 /* confdefs.h.  */
26547 _ACEOF
26548 cat confdefs.h >>conftest.$ac_ext
26549 cat >>conftest.$ac_ext <<_ACEOF
26550 /* end confdefs.h.  */
26551 /* Thanks to Mike Rendell for this test.  */
26552 $ac_includes_default
26553 #define NGID 256
26554 #undef MAX
26555 #define MAX(x, y) ((x) > (y) ? (x) : (y))
26556
26557 int
26558 main ()
26559 {
26560   gid_t gidset[NGID];
26561   int i, n;
26562   union { gid_t gval; long int lval; }  val;
26563
26564   val.lval = -1;
26565   for (i = 0; i < NGID; i++)
26566     gidset[i] = val.gval;
26567   n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
26568                  gidset);
26569   /* Exit non-zero if getgroups seems to require an array of ints.  This
26570      happens when gid_t is short int but getgroups modifies an array
26571      of ints.  */
26572   return n > 0 && gidset[n] != val.gval;
26573 }
26574 _ACEOF
26575 rm -f conftest$ac_exeext
26576 if { (ac_try="$ac_link"
26577 case "(($ac_try" in
26578   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26579   *) ac_try_echo=$ac_try;;
26580 esac
26581 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26582   (eval "$ac_link") 2>&5
26583   ac_status=$?
26584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26585   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26586   { (case "(($ac_try" in
26587   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26588   *) ac_try_echo=$ac_try;;
26589 esac
26590 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26591   (eval "$ac_try") 2>&5
26592   ac_status=$?
26593   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26594   (exit $ac_status); }; }; then
26595   ac_cv_type_getgroups=gid_t
26596 else
26597   echo "$as_me: program exited with status $ac_status" >&5
26598 echo "$as_me: failed program was:" >&5
26599 sed 's/^/| /' conftest.$ac_ext >&5
26600
26601 ( exit $ac_status )
26602 ac_cv_type_getgroups=int
26603 fi
26604 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26605 fi
26606
26607
26608 if test $ac_cv_type_getgroups = cross; then
26609         cat >conftest.$ac_ext <<_ACEOF
26610 /* confdefs.h.  */
26611 _ACEOF
26612 cat confdefs.h >>conftest.$ac_ext
26613 cat >>conftest.$ac_ext <<_ACEOF
26614 /* end confdefs.h.  */
26615 #include <unistd.h>
26616
26617 _ACEOF
26618 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26619   $EGREP "getgroups.*int.*gid_t" >/dev/null 2>&1; then
26620   ac_cv_type_getgroups=gid_t
26621 else
26622   ac_cv_type_getgroups=int
26623 fi
26624 rm -f conftest*
26625
26626 fi
26627 fi
26628 { echo "$as_me:$LINENO: result: $ac_cv_type_getgroups" >&5
26629 echo "${ECHO_T}$ac_cv_type_getgroups" >&6; }
26630
26631 cat >>confdefs.h <<_ACEOF
26632 #define GETGROUPS_T $ac_cv_type_getgroups
26633 _ACEOF
26634
26635
26636 { echo "$as_me:$LINENO: checking for getgroups" >&5
26637 echo $ECHO_N "checking for getgroups... $ECHO_C" >&6; }
26638 if test "${ac_cv_func_getgroups+set}" = set; then
26639   echo $ECHO_N "(cached) $ECHO_C" >&6
26640 else
26641   cat >conftest.$ac_ext <<_ACEOF
26642 /* confdefs.h.  */
26643 _ACEOF
26644 cat confdefs.h >>conftest.$ac_ext
26645 cat >>conftest.$ac_ext <<_ACEOF
26646 /* end confdefs.h.  */
26647 /* Define getgroups to an innocuous variant, in case <limits.h> declares getgroups.
26648    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26649 #define getgroups innocuous_getgroups
26650
26651 /* System header to define __stub macros and hopefully few prototypes,
26652     which can conflict with char getgroups (); below.
26653     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26654     <limits.h> exists even on freestanding compilers.  */
26655
26656 #ifdef __STDC__
26657 # include <limits.h>
26658 #else
26659 # include <assert.h>
26660 #endif
26661
26662 #undef getgroups
26663
26664 /* Override any GCC internal prototype to avoid an error.
26665    Use char because int might match the return type of a GCC
26666    builtin and then its argument prototype would still apply.  */
26667 #ifdef __cplusplus
26668 extern "C"
26669 #endif
26670 char getgroups ();
26671 /* The GNU C library defines this for functions which it implements
26672     to always fail with ENOSYS.  Some functions are actually named
26673     something starting with __ and the normal name is an alias.  */
26674 #if defined __stub_getgroups || defined __stub___getgroups
26675 choke me
26676 #endif
26677
26678 int
26679 main ()
26680 {
26681 return getgroups ();
26682   ;
26683   return 0;
26684 }
26685 _ACEOF
26686 rm -f conftest.$ac_objext conftest$ac_exeext
26687 if { (ac_try="$ac_link"
26688 case "(($ac_try" in
26689   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26690   *) ac_try_echo=$ac_try;;
26691 esac
26692 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26693   (eval "$ac_link") 2>conftest.er1
26694   ac_status=$?
26695   grep -v '^ *+' conftest.er1 >conftest.err
26696   rm -f conftest.er1
26697   cat conftest.err >&5
26698   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26699   (exit $ac_status); } && {
26700          test -z "$ac_c_werror_flag" ||
26701          test ! -s conftest.err
26702        } && test -s conftest$ac_exeext &&
26703        $as_test_x conftest$ac_exeext; then
26704   ac_cv_func_getgroups=yes
26705 else
26706   echo "$as_me: failed program was:" >&5
26707 sed 's/^/| /' conftest.$ac_ext >&5
26708
26709         ac_cv_func_getgroups=no
26710 fi
26711
26712 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26713       conftest$ac_exeext conftest.$ac_ext
26714 fi
26715 { echo "$as_me:$LINENO: result: $ac_cv_func_getgroups" >&5
26716 echo "${ECHO_T}$ac_cv_func_getgroups" >&6; }
26717
26718
26719 # If we don't yet have getgroups, see if it's in -lbsd.
26720 # This is reported to be necessary on an ITOS 3000WS running SEIUX 3.1.
26721 ac_save_LIBS=$LIBS
26722 if test $ac_cv_func_getgroups = no; then
26723   { echo "$as_me:$LINENO: checking for getgroups in -lbsd" >&5
26724 echo $ECHO_N "checking for getgroups in -lbsd... $ECHO_C" >&6; }
26725 if test "${ac_cv_lib_bsd_getgroups+set}" = set; then
26726   echo $ECHO_N "(cached) $ECHO_C" >&6
26727 else
26728   ac_check_lib_save_LIBS=$LIBS
26729 LIBS="-lbsd  $LIBS"
26730 cat >conftest.$ac_ext <<_ACEOF
26731 /* confdefs.h.  */
26732 _ACEOF
26733 cat confdefs.h >>conftest.$ac_ext
26734 cat >>conftest.$ac_ext <<_ACEOF
26735 /* end confdefs.h.  */
26736
26737 /* Override any GCC internal prototype to avoid an error.
26738    Use char because int might match the return type of a GCC
26739    builtin and then its argument prototype would still apply.  */
26740 #ifdef __cplusplus
26741 extern "C"
26742 #endif
26743 char getgroups ();
26744 int
26745 main ()
26746 {
26747 return getgroups ();
26748   ;
26749   return 0;
26750 }
26751 _ACEOF
26752 rm -f conftest.$ac_objext conftest$ac_exeext
26753 if { (ac_try="$ac_link"
26754 case "(($ac_try" in
26755   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26756   *) ac_try_echo=$ac_try;;
26757 esac
26758 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26759   (eval "$ac_link") 2>conftest.er1
26760   ac_status=$?
26761   grep -v '^ *+' conftest.er1 >conftest.err
26762   rm -f conftest.er1
26763   cat conftest.err >&5
26764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26765   (exit $ac_status); } && {
26766          test -z "$ac_c_werror_flag" ||
26767          test ! -s conftest.err
26768        } && test -s conftest$ac_exeext &&
26769        $as_test_x conftest$ac_exeext; then
26770   ac_cv_lib_bsd_getgroups=yes
26771 else
26772   echo "$as_me: failed program was:" >&5
26773 sed 's/^/| /' conftest.$ac_ext >&5
26774
26775         ac_cv_lib_bsd_getgroups=no
26776 fi
26777
26778 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26779       conftest$ac_exeext conftest.$ac_ext
26780 LIBS=$ac_check_lib_save_LIBS
26781 fi
26782 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_getgroups" >&5
26783 echo "${ECHO_T}$ac_cv_lib_bsd_getgroups" >&6; }
26784 if test $ac_cv_lib_bsd_getgroups = yes; then
26785   GETGROUPS_LIB=-lbsd
26786 fi
26787
26788 fi
26789
26790 # Run the program to test the functionality of the system-supplied
26791 # getgroups function only if there is such a function.
26792 if test $ac_cv_func_getgroups = yes; then
26793   { echo "$as_me:$LINENO: checking for working getgroups" >&5
26794 echo $ECHO_N "checking for working getgroups... $ECHO_C" >&6; }
26795 if test "${ac_cv_func_getgroups_works+set}" = set; then
26796   echo $ECHO_N "(cached) $ECHO_C" >&6
26797 else
26798   if test "$cross_compiling" = yes; then
26799   ac_cv_func_getgroups_works=no
26800 else
26801   cat >conftest.$ac_ext <<_ACEOF
26802 /* confdefs.h.  */
26803 _ACEOF
26804 cat confdefs.h >>conftest.$ac_ext
26805 cat >>conftest.$ac_ext <<_ACEOF
26806 /* end confdefs.h.  */
26807 $ac_includes_default
26808 int
26809 main ()
26810 {
26811 /* On Ultrix 4.3, getgroups (0, 0) always fails.  */
26812        return getgroups (0, 0) == -1;
26813   ;
26814   return 0;
26815 }
26816 _ACEOF
26817 rm -f conftest$ac_exeext
26818 if { (ac_try="$ac_link"
26819 case "(($ac_try" in
26820   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26821   *) ac_try_echo=$ac_try;;
26822 esac
26823 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26824   (eval "$ac_link") 2>&5
26825   ac_status=$?
26826   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26827   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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_try") 2>&5
26834   ac_status=$?
26835   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26836   (exit $ac_status); }; }; then
26837   ac_cv_func_getgroups_works=yes
26838 else
26839   echo "$as_me: program exited with status $ac_status" >&5
26840 echo "$as_me: failed program was:" >&5
26841 sed 's/^/| /' conftest.$ac_ext >&5
26842
26843 ( exit $ac_status )
26844 ac_cv_func_getgroups_works=no
26845 fi
26846 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26847 fi
26848
26849
26850
26851 fi
26852 { echo "$as_me:$LINENO: result: $ac_cv_func_getgroups_works" >&5
26853 echo "${ECHO_T}$ac_cv_func_getgroups_works" >&6; }
26854   if test $ac_cv_func_getgroups_works = yes; then
26855
26856 cat >>confdefs.h <<\_ACEOF
26857 #define HAVE_GETGROUPS 1
26858 _ACEOF
26859
26860   fi
26861 fi
26862 LIBS=$ac_save_LIBS
26863
26864 # getmntent is in the standard C library on UNICOS, in -lsun on Irix 4,
26865 # -lseq on Dynix/PTX, -lgen on Unixware.
26866 { echo "$as_me:$LINENO: checking for library containing getmntent" >&5
26867 echo $ECHO_N "checking for library containing getmntent... $ECHO_C" >&6; }
26868 if test "${ac_cv_search_getmntent+set}" = set; then
26869   echo $ECHO_N "(cached) $ECHO_C" >&6
26870 else
26871   ac_func_search_save_LIBS=$LIBS
26872 cat >conftest.$ac_ext <<_ACEOF
26873 /* confdefs.h.  */
26874 _ACEOF
26875 cat confdefs.h >>conftest.$ac_ext
26876 cat >>conftest.$ac_ext <<_ACEOF
26877 /* end confdefs.h.  */
26878
26879 /* Override any GCC internal prototype to avoid an error.
26880    Use char because int might match the return type of a GCC
26881    builtin and then its argument prototype would still apply.  */
26882 #ifdef __cplusplus
26883 extern "C"
26884 #endif
26885 char getmntent ();
26886 int
26887 main ()
26888 {
26889 return getmntent ();
26890   ;
26891   return 0;
26892 }
26893 _ACEOF
26894 for ac_lib in '' sun seq gen; do
26895   if test -z "$ac_lib"; then
26896     ac_res="none required"
26897   else
26898     ac_res=-l$ac_lib
26899     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
26900   fi
26901   rm -f conftest.$ac_objext conftest$ac_exeext
26902 if { (ac_try="$ac_link"
26903 case "(($ac_try" in
26904   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26905   *) ac_try_echo=$ac_try;;
26906 esac
26907 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26908   (eval "$ac_link") 2>conftest.er1
26909   ac_status=$?
26910   grep -v '^ *+' conftest.er1 >conftest.err
26911   rm -f conftest.er1
26912   cat conftest.err >&5
26913   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26914   (exit $ac_status); } && {
26915          test -z "$ac_c_werror_flag" ||
26916          test ! -s conftest.err
26917        } && test -s conftest$ac_exeext &&
26918        $as_test_x conftest$ac_exeext; then
26919   ac_cv_search_getmntent=$ac_res
26920 else
26921   echo "$as_me: failed program was:" >&5
26922 sed 's/^/| /' conftest.$ac_ext >&5
26923
26924
26925 fi
26926
26927 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26928       conftest$ac_exeext
26929   if test "${ac_cv_search_getmntent+set}" = set; then
26930   break
26931 fi
26932 done
26933 if test "${ac_cv_search_getmntent+set}" = set; then
26934   :
26935 else
26936   ac_cv_search_getmntent=no
26937 fi
26938 rm conftest.$ac_ext
26939 LIBS=$ac_func_search_save_LIBS
26940 fi
26941 { echo "$as_me:$LINENO: result: $ac_cv_search_getmntent" >&5
26942 echo "${ECHO_T}$ac_cv_search_getmntent" >&6; }
26943 ac_res=$ac_cv_search_getmntent
26944 if test "$ac_res" != no; then
26945   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
26946   ac_cv_func_getmntent=yes
26947
26948 cat >>confdefs.h <<\_ACEOF
26949 #define HAVE_GETMNTENT
26950 _ACEOF
26951
26952 else
26953   ac_cv_func_getmntent=no
26954 fi
26955
26956
26957 if test $ac_cv_c_compiler_gnu = yes; then
26958     { echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
26959 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6; }
26960 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
26961   echo $ECHO_N "(cached) $ECHO_C" >&6
26962 else
26963     ac_pattern="Autoconf.*'x'"
26964   cat >conftest.$ac_ext <<_ACEOF
26965 /* confdefs.h.  */
26966 _ACEOF
26967 cat confdefs.h >>conftest.$ac_ext
26968 cat >>conftest.$ac_ext <<_ACEOF
26969 /* end confdefs.h.  */
26970 #include <sgtty.h>
26971 Autoconf TIOCGETP
26972 _ACEOF
26973 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26974   $EGREP "$ac_pattern" >/dev/null 2>&1; then
26975   ac_cv_prog_gcc_traditional=yes
26976 else
26977   ac_cv_prog_gcc_traditional=no
26978 fi
26979 rm -f conftest*
26980
26981
26982   if test $ac_cv_prog_gcc_traditional = no; then
26983     cat >conftest.$ac_ext <<_ACEOF
26984 /* confdefs.h.  */
26985 _ACEOF
26986 cat confdefs.h >>conftest.$ac_ext
26987 cat >>conftest.$ac_ext <<_ACEOF
26988 /* end confdefs.h.  */
26989 #include <termio.h>
26990 Autoconf TCGETA
26991 _ACEOF
26992 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26993   $EGREP "$ac_pattern" >/dev/null 2>&1; then
26994   ac_cv_prog_gcc_traditional=yes
26995 fi
26996 rm -f conftest*
26997
26998   fi
26999 fi
27000 { echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
27001 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6; }
27002   if test $ac_cv_prog_gcc_traditional = yes; then
27003     CC="$CC -traditional"
27004   fi
27005 fi
27006
27007 { echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
27008 echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6; }
27009 if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
27010   echo $ECHO_N "(cached) $ECHO_C" >&6
27011 else
27012   rm -f conftest.sym conftest.file
27013 echo >conftest.file
27014 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
27015   if test "$cross_compiling" = yes; then
27016   ac_cv_func_lstat_dereferences_slashed_symlink=no
27017 else
27018   cat >conftest.$ac_ext <<_ACEOF
27019 /* confdefs.h.  */
27020 _ACEOF
27021 cat confdefs.h >>conftest.$ac_ext
27022 cat >>conftest.$ac_ext <<_ACEOF
27023 /* end confdefs.h.  */
27024 $ac_includes_default
27025 int
27026 main ()
27027 {
27028 struct stat sbuf;
27029      /* Linux will dereference the symlink and fail.
27030         That is better in the sense that it means we will not
27031         have to compile and use the lstat wrapper.  */
27032      return lstat ("conftest.sym/", &sbuf) == 0;
27033   ;
27034   return 0;
27035 }
27036 _ACEOF
27037 rm -f conftest$ac_exeext
27038 if { (ac_try="$ac_link"
27039 case "(($ac_try" in
27040   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27041   *) ac_try_echo=$ac_try;;
27042 esac
27043 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27044   (eval "$ac_link") 2>&5
27045   ac_status=$?
27046   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27047   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27048   { (case "(($ac_try" in
27049   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27050   *) ac_try_echo=$ac_try;;
27051 esac
27052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27053   (eval "$ac_try") 2>&5
27054   ac_status=$?
27055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27056   (exit $ac_status); }; }; then
27057   ac_cv_func_lstat_dereferences_slashed_symlink=yes
27058 else
27059   echo "$as_me: program exited with status $ac_status" >&5
27060 echo "$as_me: failed program was:" >&5
27061 sed 's/^/| /' conftest.$ac_ext >&5
27062
27063 ( exit $ac_status )
27064 ac_cv_func_lstat_dereferences_slashed_symlink=no
27065 fi
27066 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27067 fi
27068
27069
27070 else
27071   # If the `ln -s' command failed, then we probably don't even
27072   # have an lstat function.
27073   ac_cv_func_lstat_dereferences_slashed_symlink=no
27074 fi
27075 rm -f conftest.sym conftest.file
27076
27077 fi
27078 { echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
27079 echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
27080
27081 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
27082
27083 cat >>confdefs.h <<_ACEOF
27084 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
27085 _ACEOF
27086
27087
27088 if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
27089   case " $LIBOBJS " in
27090   *" lstat.$ac_objext "* ) ;;
27091   *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
27092  ;;
27093 esac
27094
27095 fi
27096
27097 { echo "$as_me:$LINENO: checking whether lstat accepts an empty string" >&5
27098 echo $ECHO_N "checking whether lstat accepts an empty string... $ECHO_C" >&6; }
27099 if test "${ac_cv_func_lstat_empty_string_bug+set}" = set; then
27100   echo $ECHO_N "(cached) $ECHO_C" >&6
27101 else
27102   if test "$cross_compiling" = yes; then
27103   ac_cv_func_lstat_empty_string_bug=yes
27104 else
27105   cat >conftest.$ac_ext <<_ACEOF
27106 /* confdefs.h.  */
27107 _ACEOF
27108 cat confdefs.h >>conftest.$ac_ext
27109 cat >>conftest.$ac_ext <<_ACEOF
27110 /* end confdefs.h.  */
27111 $ac_includes_default
27112 int
27113 main ()
27114 {
27115 struct stat sbuf;
27116   return lstat ("", &sbuf) == 0;
27117   ;
27118   return 0;
27119 }
27120 _ACEOF
27121 rm -f conftest$ac_exeext
27122 if { (ac_try="$ac_link"
27123 case "(($ac_try" in
27124   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27125   *) ac_try_echo=$ac_try;;
27126 esac
27127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27128   (eval "$ac_link") 2>&5
27129   ac_status=$?
27130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27131   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27132   { (case "(($ac_try" in
27133   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27134   *) ac_try_echo=$ac_try;;
27135 esac
27136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27137   (eval "$ac_try") 2>&5
27138   ac_status=$?
27139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27140   (exit $ac_status); }; }; then
27141   ac_cv_func_lstat_empty_string_bug=no
27142 else
27143   echo "$as_me: program exited with status $ac_status" >&5
27144 echo "$as_me: failed program was:" >&5
27145 sed 's/^/| /' conftest.$ac_ext >&5
27146
27147 ( exit $ac_status )
27148 ac_cv_func_lstat_empty_string_bug=yes
27149 fi
27150 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27151 fi
27152
27153
27154 fi
27155 { echo "$as_me:$LINENO: result: $ac_cv_func_lstat_empty_string_bug" >&5
27156 echo "${ECHO_T}$ac_cv_func_lstat_empty_string_bug" >&6; }
27157 if test $ac_cv_func_lstat_empty_string_bug = yes; then
27158   case " $LIBOBJS " in
27159   *" lstat.$ac_objext "* ) ;;
27160   *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
27161  ;;
27162 esac
27163
27164
27165 cat >>confdefs.h <<_ACEOF
27166 #define HAVE_LSTAT_EMPTY_STRING_BUG 1
27167 _ACEOF
27168
27169 fi
27170
27171 { echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
27172 echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6; }
27173 if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
27174   echo $ECHO_N "(cached) $ECHO_C" >&6
27175 else
27176   rm -f conftest.sym conftest.file
27177 echo >conftest.file
27178 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
27179   if test "$cross_compiling" = yes; then
27180   ac_cv_func_lstat_dereferences_slashed_symlink=no
27181 else
27182   cat >conftest.$ac_ext <<_ACEOF
27183 /* confdefs.h.  */
27184 _ACEOF
27185 cat confdefs.h >>conftest.$ac_ext
27186 cat >>conftest.$ac_ext <<_ACEOF
27187 /* end confdefs.h.  */
27188 $ac_includes_default
27189 int
27190 main ()
27191 {
27192 struct stat sbuf;
27193      /* Linux will dereference the symlink and fail.
27194         That is better in the sense that it means we will not
27195         have to compile and use the lstat wrapper.  */
27196      return lstat ("conftest.sym/", &sbuf) == 0;
27197   ;
27198   return 0;
27199 }
27200 _ACEOF
27201 rm -f conftest$ac_exeext
27202 if { (ac_try="$ac_link"
27203 case "(($ac_try" in
27204   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27205   *) ac_try_echo=$ac_try;;
27206 esac
27207 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27208   (eval "$ac_link") 2>&5
27209   ac_status=$?
27210   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27211   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27212   { (case "(($ac_try" in
27213   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27214   *) ac_try_echo=$ac_try;;
27215 esac
27216 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27217   (eval "$ac_try") 2>&5
27218   ac_status=$?
27219   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27220   (exit $ac_status); }; }; then
27221   ac_cv_func_lstat_dereferences_slashed_symlink=yes
27222 else
27223   echo "$as_me: program exited with status $ac_status" >&5
27224 echo "$as_me: failed program was:" >&5
27225 sed 's/^/| /' conftest.$ac_ext >&5
27226
27227 ( exit $ac_status )
27228 ac_cv_func_lstat_dereferences_slashed_symlink=no
27229 fi
27230 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27231 fi
27232
27233
27234 else
27235   # If the `ln -s' command failed, then we probably don't even
27236   # have an lstat function.
27237   ac_cv_func_lstat_dereferences_slashed_symlink=no
27238 fi
27239 rm -f conftest.sym conftest.file
27240
27241 fi
27242 { echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
27243 echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
27244
27245 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
27246
27247 cat >>confdefs.h <<_ACEOF
27248 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
27249 _ACEOF
27250
27251
27252 if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
27253   case " $LIBOBJS " in
27254   *" lstat.$ac_objext "* ) ;;
27255   *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
27256  ;;
27257 esac
27258
27259 fi
27260
27261 { echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
27262 echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6; }
27263 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
27264   echo $ECHO_N "(cached) $ECHO_C" >&6
27265 else
27266   cat >conftest.$ac_ext <<_ACEOF
27267 /* confdefs.h.  */
27268 _ACEOF
27269 cat confdefs.h >>conftest.$ac_ext
27270 cat >>conftest.$ac_ext <<_ACEOF
27271 /* end confdefs.h.  */
27272 #include <sys/types.h>
27273 int
27274 main ()
27275 {
27276 return makedev(0, 0);
27277   ;
27278   return 0;
27279 }
27280 _ACEOF
27281 rm -f conftest.$ac_objext conftest$ac_exeext
27282 if { (ac_try="$ac_link"
27283 case "(($ac_try" in
27284   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27285   *) ac_try_echo=$ac_try;;
27286 esac
27287 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27288   (eval "$ac_link") 2>conftest.er1
27289   ac_status=$?
27290   grep -v '^ *+' conftest.er1 >conftest.err
27291   rm -f conftest.er1
27292   cat conftest.err >&5
27293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27294   (exit $ac_status); } && {
27295          test -z "$ac_c_werror_flag" ||
27296          test ! -s conftest.err
27297        } && test -s conftest$ac_exeext &&
27298        $as_test_x conftest$ac_exeext; then
27299   ac_cv_header_sys_types_h_makedev=yes
27300 else
27301   echo "$as_me: failed program was:" >&5
27302 sed 's/^/| /' conftest.$ac_ext >&5
27303
27304         ac_cv_header_sys_types_h_makedev=no
27305 fi
27306
27307 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27308       conftest$ac_exeext conftest.$ac_ext
27309
27310 fi
27311 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
27312 echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6; }
27313
27314 if test $ac_cv_header_sys_types_h_makedev = no; then
27315 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
27316   { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
27317 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
27318 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
27319   echo $ECHO_N "(cached) $ECHO_C" >&6
27320 fi
27321 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
27322 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
27323 else
27324   # Is the header compilable?
27325 { echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
27326 echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6; }
27327 cat >conftest.$ac_ext <<_ACEOF
27328 /* confdefs.h.  */
27329 _ACEOF
27330 cat confdefs.h >>conftest.$ac_ext
27331 cat >>conftest.$ac_ext <<_ACEOF
27332 /* end confdefs.h.  */
27333 $ac_includes_default
27334 #include <sys/mkdev.h>
27335 _ACEOF
27336 rm -f conftest.$ac_objext
27337 if { (ac_try="$ac_compile"
27338 case "(($ac_try" in
27339   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27340   *) ac_try_echo=$ac_try;;
27341 esac
27342 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27343   (eval "$ac_compile") 2>conftest.er1
27344   ac_status=$?
27345   grep -v '^ *+' conftest.er1 >conftest.err
27346   rm -f conftest.er1
27347   cat conftest.err >&5
27348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27349   (exit $ac_status); } && {
27350          test -z "$ac_c_werror_flag" ||
27351          test ! -s conftest.err
27352        } && test -s conftest.$ac_objext; then
27353   ac_header_compiler=yes
27354 else
27355   echo "$as_me: failed program was:" >&5
27356 sed 's/^/| /' conftest.$ac_ext >&5
27357
27358         ac_header_compiler=no
27359 fi
27360
27361 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27362 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27363 echo "${ECHO_T}$ac_header_compiler" >&6; }
27364
27365 # Is the header present?
27366 { echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
27367 echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6; }
27368 cat >conftest.$ac_ext <<_ACEOF
27369 /* confdefs.h.  */
27370 _ACEOF
27371 cat confdefs.h >>conftest.$ac_ext
27372 cat >>conftest.$ac_ext <<_ACEOF
27373 /* end confdefs.h.  */
27374 #include <sys/mkdev.h>
27375 _ACEOF
27376 if { (ac_try="$ac_cpp conftest.$ac_ext"
27377 case "(($ac_try" in
27378   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27379   *) ac_try_echo=$ac_try;;
27380 esac
27381 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27382   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27383   ac_status=$?
27384   grep -v '^ *+' conftest.er1 >conftest.err
27385   rm -f conftest.er1
27386   cat conftest.err >&5
27387   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27388   (exit $ac_status); } >/dev/null && {
27389          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
27390          test ! -s conftest.err
27391        }; then
27392   ac_header_preproc=yes
27393 else
27394   echo "$as_me: failed program was:" >&5
27395 sed 's/^/| /' conftest.$ac_ext >&5
27396
27397   ac_header_preproc=no
27398 fi
27399
27400 rm -f conftest.err conftest.$ac_ext
27401 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27402 echo "${ECHO_T}$ac_header_preproc" >&6; }
27403
27404 # So?  What about this header?
27405 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27406   yes:no: )
27407     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
27408 echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
27409     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5
27410 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&2;}
27411     ac_header_preproc=yes
27412     ;;
27413   no:yes:* )
27414     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
27415 echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
27416     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h:     check for missing prerequisite headers?" >&5
27417 echo "$as_me: WARNING: sys/mkdev.h:     check for missing prerequisite headers?" >&2;}
27418     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5
27419 echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;}
27420     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h:     section \"Present But Cannot Be Compiled\"" >&5
27421 echo "$as_me: WARNING: sys/mkdev.h:     section \"Present But Cannot Be Compiled\"" >&2;}
27422     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
27423 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
27424     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5
27425 echo "$as_me: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&2;}
27426     ( cat <<\_ASBOX
27427 ## ---------------------------------------- ##
27428 ## Report this to linux-nfs@vger.kernel.org ##
27429 ## ---------------------------------------- ##
27430 _ASBOX
27431      ) | sed "s/^/$as_me: WARNING:     /" >&2
27432     ;;
27433 esac
27434 { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
27435 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
27436 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
27437   echo $ECHO_N "(cached) $ECHO_C" >&6
27438 else
27439   ac_cv_header_sys_mkdev_h=$ac_header_preproc
27440 fi
27441 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
27442 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
27443
27444 fi
27445 if test $ac_cv_header_sys_mkdev_h = yes; then
27446
27447 cat >>confdefs.h <<\_ACEOF
27448 #define MAJOR_IN_MKDEV 1
27449 _ACEOF
27450
27451 fi
27452
27453
27454
27455   if test $ac_cv_header_sys_mkdev_h = no; then
27456     if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
27457   { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
27458 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
27459 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
27460   echo $ECHO_N "(cached) $ECHO_C" >&6
27461 fi
27462 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
27463 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
27464 else
27465   # Is the header compilable?
27466 { echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
27467 echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6; }
27468 cat >conftest.$ac_ext <<_ACEOF
27469 /* confdefs.h.  */
27470 _ACEOF
27471 cat confdefs.h >>conftest.$ac_ext
27472 cat >>conftest.$ac_ext <<_ACEOF
27473 /* end confdefs.h.  */
27474 $ac_includes_default
27475 #include <sys/sysmacros.h>
27476 _ACEOF
27477 rm -f conftest.$ac_objext
27478 if { (ac_try="$ac_compile"
27479 case "(($ac_try" in
27480   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27481   *) ac_try_echo=$ac_try;;
27482 esac
27483 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27484   (eval "$ac_compile") 2>conftest.er1
27485   ac_status=$?
27486   grep -v '^ *+' conftest.er1 >conftest.err
27487   rm -f conftest.er1
27488   cat conftest.err >&5
27489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27490   (exit $ac_status); } && {
27491          test -z "$ac_c_werror_flag" ||
27492          test ! -s conftest.err
27493        } && test -s conftest.$ac_objext; then
27494   ac_header_compiler=yes
27495 else
27496   echo "$as_me: failed program was:" >&5
27497 sed 's/^/| /' conftest.$ac_ext >&5
27498
27499         ac_header_compiler=no
27500 fi
27501
27502 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27503 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27504 echo "${ECHO_T}$ac_header_compiler" >&6; }
27505
27506 # Is the header present?
27507 { echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
27508 echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6; }
27509 cat >conftest.$ac_ext <<_ACEOF
27510 /* confdefs.h.  */
27511 _ACEOF
27512 cat confdefs.h >>conftest.$ac_ext
27513 cat >>conftest.$ac_ext <<_ACEOF
27514 /* end confdefs.h.  */
27515 #include <sys/sysmacros.h>
27516 _ACEOF
27517 if { (ac_try="$ac_cpp conftest.$ac_ext"
27518 case "(($ac_try" in
27519   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27520   *) ac_try_echo=$ac_try;;
27521 esac
27522 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27523   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27524   ac_status=$?
27525   grep -v '^ *+' conftest.er1 >conftest.err
27526   rm -f conftest.er1
27527   cat conftest.err >&5
27528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27529   (exit $ac_status); } >/dev/null && {
27530          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
27531          test ! -s conftest.err
27532        }; then
27533   ac_header_preproc=yes
27534 else
27535   echo "$as_me: failed program was:" >&5
27536 sed 's/^/| /' conftest.$ac_ext >&5
27537
27538   ac_header_preproc=no
27539 fi
27540
27541 rm -f conftest.err conftest.$ac_ext
27542 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27543 echo "${ECHO_T}$ac_header_preproc" >&6; }
27544
27545 # So?  What about this header?
27546 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27547   yes:no: )
27548     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
27549 echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
27550     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5
27551 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&2;}
27552     ac_header_preproc=yes
27553     ;;
27554   no:yes:* )
27555     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
27556 echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
27557     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h:     check for missing prerequisite headers?" >&5
27558 echo "$as_me: WARNING: sys/sysmacros.h:     check for missing prerequisite headers?" >&2;}
27559     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5
27560 echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;}
27561     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h:     section \"Present But Cannot Be Compiled\"" >&5
27562 echo "$as_me: WARNING: sys/sysmacros.h:     section \"Present But Cannot Be Compiled\"" >&2;}
27563     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
27564 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
27565     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5
27566 echo "$as_me: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&2;}
27567     ( cat <<\_ASBOX
27568 ## ---------------------------------------- ##
27569 ## Report this to linux-nfs@vger.kernel.org ##
27570 ## ---------------------------------------- ##
27571 _ASBOX
27572      ) | sed "s/^/$as_me: WARNING:     /" >&2
27573     ;;
27574 esac
27575 { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
27576 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
27577 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
27578   echo $ECHO_N "(cached) $ECHO_C" >&6
27579 else
27580   ac_cv_header_sys_sysmacros_h=$ac_header_preproc
27581 fi
27582 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
27583 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
27584
27585 fi
27586 if test $ac_cv_header_sys_sysmacros_h = yes; then
27587
27588 cat >>confdefs.h <<\_ACEOF
27589 #define MAJOR_IN_SYSMACROS 1
27590 _ACEOF
27591
27592 fi
27593
27594
27595   fi
27596 fi
27597
27598 #AC_FUNC_MALLOC
27599 { echo "$as_me:$LINENO: checking for working memcmp" >&5
27600 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6; }
27601 if test "${ac_cv_func_memcmp_working+set}" = set; then
27602   echo $ECHO_N "(cached) $ECHO_C" >&6
27603 else
27604   if test "$cross_compiling" = yes; then
27605   ac_cv_func_memcmp_working=no
27606 else
27607   cat >conftest.$ac_ext <<_ACEOF
27608 /* confdefs.h.  */
27609 _ACEOF
27610 cat confdefs.h >>conftest.$ac_ext
27611 cat >>conftest.$ac_ext <<_ACEOF
27612 /* end confdefs.h.  */
27613 $ac_includes_default
27614 int
27615 main ()
27616 {
27617
27618   /* Some versions of memcmp are not 8-bit clean.  */
27619   char c0 = '\100', c1 = '\200', c2 = '\201';
27620   if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
27621     return 1;
27622
27623   /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
27624      or more and with at least one buffer not starting on a 4-byte boundary.
27625      William Lewis provided this test program.   */
27626   {
27627     char foo[21];
27628     char bar[21];
27629     int i;
27630     for (i = 0; i < 4; i++)
27631       {
27632         char *a = foo + i;
27633         char *b = bar + i;
27634         strcpy (a, "--------01111111");
27635         strcpy (b, "--------10000000");
27636         if (memcmp (a, b, 16) >= 0)
27637           return 1;
27638       }
27639     return 0;
27640   }
27641
27642   ;
27643   return 0;
27644 }
27645 _ACEOF
27646 rm -f conftest$ac_exeext
27647 if { (ac_try="$ac_link"
27648 case "(($ac_try" in
27649   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27650   *) ac_try_echo=$ac_try;;
27651 esac
27652 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27653   (eval "$ac_link") 2>&5
27654   ac_status=$?
27655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27656   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27657   { (case "(($ac_try" in
27658   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27659   *) ac_try_echo=$ac_try;;
27660 esac
27661 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27662   (eval "$ac_try") 2>&5
27663   ac_status=$?
27664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27665   (exit $ac_status); }; }; then
27666   ac_cv_func_memcmp_working=yes
27667 else
27668   echo "$as_me: program exited with status $ac_status" >&5
27669 echo "$as_me: failed program was:" >&5
27670 sed 's/^/| /' conftest.$ac_ext >&5
27671
27672 ( exit $ac_status )
27673 ac_cv_func_memcmp_working=no
27674 fi
27675 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27676 fi
27677
27678
27679 fi
27680 { echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
27681 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6; }
27682 test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
27683   *" memcmp.$ac_objext "* ) ;;
27684   *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
27685  ;;
27686 esac
27687
27688
27689 #AC_FUNC_REALLOC
27690
27691
27692 for ac_header in sys/select.h sys/socket.h
27693 do
27694 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27695 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27696   { echo "$as_me:$LINENO: checking for $ac_header" >&5
27697 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27698 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27699   echo $ECHO_N "(cached) $ECHO_C" >&6
27700 fi
27701 ac_res=`eval echo '${'$as_ac_Header'}'`
27702                { echo "$as_me:$LINENO: result: $ac_res" >&5
27703 echo "${ECHO_T}$ac_res" >&6; }
27704 else
27705   # Is the header compilable?
27706 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
27707 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
27708 cat >conftest.$ac_ext <<_ACEOF
27709 /* confdefs.h.  */
27710 _ACEOF
27711 cat confdefs.h >>conftest.$ac_ext
27712 cat >>conftest.$ac_ext <<_ACEOF
27713 /* end confdefs.h.  */
27714 $ac_includes_default
27715 #include <$ac_header>
27716 _ACEOF
27717 rm -f conftest.$ac_objext
27718 if { (ac_try="$ac_compile"
27719 case "(($ac_try" in
27720   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27721   *) ac_try_echo=$ac_try;;
27722 esac
27723 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27724   (eval "$ac_compile") 2>conftest.er1
27725   ac_status=$?
27726   grep -v '^ *+' conftest.er1 >conftest.err
27727   rm -f conftest.er1
27728   cat conftest.err >&5
27729   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27730   (exit $ac_status); } && {
27731          test -z "$ac_c_werror_flag" ||
27732          test ! -s conftest.err
27733        } && test -s conftest.$ac_objext; then
27734   ac_header_compiler=yes
27735 else
27736   echo "$as_me: failed program was:" >&5
27737 sed 's/^/| /' conftest.$ac_ext >&5
27738
27739         ac_header_compiler=no
27740 fi
27741
27742 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27743 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27744 echo "${ECHO_T}$ac_header_compiler" >&6; }
27745
27746 # Is the header present?
27747 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
27748 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
27749 cat >conftest.$ac_ext <<_ACEOF
27750 /* confdefs.h.  */
27751 _ACEOF
27752 cat confdefs.h >>conftest.$ac_ext
27753 cat >>conftest.$ac_ext <<_ACEOF
27754 /* end confdefs.h.  */
27755 #include <$ac_header>
27756 _ACEOF
27757 if { (ac_try="$ac_cpp conftest.$ac_ext"
27758 case "(($ac_try" in
27759   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27760   *) ac_try_echo=$ac_try;;
27761 esac
27762 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27763   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27764   ac_status=$?
27765   grep -v '^ *+' conftest.er1 >conftest.err
27766   rm -f conftest.er1
27767   cat conftest.err >&5
27768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27769   (exit $ac_status); } >/dev/null && {
27770          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
27771          test ! -s conftest.err
27772        }; then
27773   ac_header_preproc=yes
27774 else
27775   echo "$as_me: failed program was:" >&5
27776 sed 's/^/| /' conftest.$ac_ext >&5
27777
27778   ac_header_preproc=no
27779 fi
27780
27781 rm -f conftest.err conftest.$ac_ext
27782 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27783 echo "${ECHO_T}$ac_header_preproc" >&6; }
27784
27785 # So?  What about this header?
27786 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27787   yes:no: )
27788     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27789 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27790     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27791 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27792     ac_header_preproc=yes
27793     ;;
27794   no:yes:* )
27795     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27796 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27797     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
27798 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
27799     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27800 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27801     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
27802 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
27803     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27804 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27805     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27806 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27807     ( cat <<\_ASBOX
27808 ## ---------------------------------------- ##
27809 ## Report this to linux-nfs@vger.kernel.org ##
27810 ## ---------------------------------------- ##
27811 _ASBOX
27812      ) | sed "s/^/$as_me: WARNING:     /" >&2
27813     ;;
27814 esac
27815 { echo "$as_me:$LINENO: checking for $ac_header" >&5
27816 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27817 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27818   echo $ECHO_N "(cached) $ECHO_C" >&6
27819 else
27820   eval "$as_ac_Header=\$ac_header_preproc"
27821 fi
27822 ac_res=`eval echo '${'$as_ac_Header'}'`
27823                { echo "$as_me:$LINENO: result: $ac_res" >&5
27824 echo "${ECHO_T}$ac_res" >&6; }
27825
27826 fi
27827 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27828   cat >>confdefs.h <<_ACEOF
27829 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27830 _ACEOF
27831
27832 fi
27833
27834 done
27835
27836 { echo "$as_me:$LINENO: checking types of arguments for select" >&5
27837 echo $ECHO_N "checking types of arguments for select... $ECHO_C" >&6; }
27838 if test "${ac_cv_func_select_args+set}" = set; then
27839   echo $ECHO_N "(cached) $ECHO_C" >&6
27840 else
27841   for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
27842  for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
27843   for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
27844    cat >conftest.$ac_ext <<_ACEOF
27845 /* confdefs.h.  */
27846 _ACEOF
27847 cat confdefs.h >>conftest.$ac_ext
27848 cat >>conftest.$ac_ext <<_ACEOF
27849 /* end confdefs.h.  */
27850 $ac_includes_default
27851 #ifdef HAVE_SYS_SELECT_H
27852 # include <sys/select.h>
27853 #endif
27854 #ifdef HAVE_SYS_SOCKET_H
27855 # include <sys/socket.h>
27856 #endif
27857
27858 int
27859 main ()
27860 {
27861 extern int select ($ac_arg1,
27862                                             $ac_arg234, $ac_arg234, $ac_arg234,
27863                                             $ac_arg5);
27864   ;
27865   return 0;
27866 }
27867 _ACEOF
27868 rm -f conftest.$ac_objext
27869 if { (ac_try="$ac_compile"
27870 case "(($ac_try" in
27871   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27872   *) ac_try_echo=$ac_try;;
27873 esac
27874 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27875   (eval "$ac_compile") 2>conftest.er1
27876   ac_status=$?
27877   grep -v '^ *+' conftest.er1 >conftest.err
27878   rm -f conftest.er1
27879   cat conftest.err >&5
27880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27881   (exit $ac_status); } && {
27882          test -z "$ac_c_werror_flag" ||
27883          test ! -s conftest.err
27884        } && test -s conftest.$ac_objext; then
27885   ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
27886 else
27887   echo "$as_me: failed program was:" >&5
27888 sed 's/^/| /' conftest.$ac_ext >&5
27889
27890
27891 fi
27892
27893 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27894   done
27895  done
27896 done
27897 # Provide a safe default value.
27898 : ${ac_cv_func_select_args='int,int *,struct timeval *'}
27899
27900 fi
27901 { echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5
27902 echo "${ECHO_T}$ac_cv_func_select_args" >&6; }
27903 ac_save_IFS=$IFS; IFS=','
27904 set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
27905 IFS=$ac_save_IFS
27906 shift
27907
27908 cat >>confdefs.h <<_ACEOF
27909 #define SELECT_TYPE_ARG1 $1
27910 _ACEOF
27911
27912
27913 cat >>confdefs.h <<_ACEOF
27914 #define SELECT_TYPE_ARG234 ($2)
27915 _ACEOF
27916
27917
27918 cat >>confdefs.h <<_ACEOF
27919 #define SELECT_TYPE_ARG5 ($3)
27920 _ACEOF
27921
27922 rm -f conftest*
27923
27924 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
27925 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
27926 if test "${ac_cv_type_signal+set}" = set; then
27927   echo $ECHO_N "(cached) $ECHO_C" >&6
27928 else
27929   cat >conftest.$ac_ext <<_ACEOF
27930 /* confdefs.h.  */
27931 _ACEOF
27932 cat confdefs.h >>conftest.$ac_ext
27933 cat >>conftest.$ac_ext <<_ACEOF
27934 /* end confdefs.h.  */
27935 #include <sys/types.h>
27936 #include <signal.h>
27937
27938 int
27939 main ()
27940 {
27941 return *(signal (0, 0)) (0) == 1;
27942   ;
27943   return 0;
27944 }
27945 _ACEOF
27946 rm -f conftest.$ac_objext
27947 if { (ac_try="$ac_compile"
27948 case "(($ac_try" in
27949   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27950   *) ac_try_echo=$ac_try;;
27951 esac
27952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27953   (eval "$ac_compile") 2>conftest.er1
27954   ac_status=$?
27955   grep -v '^ *+' conftest.er1 >conftest.err
27956   rm -f conftest.er1
27957   cat conftest.err >&5
27958   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27959   (exit $ac_status); } && {
27960          test -z "$ac_c_werror_flag" ||
27961          test ! -s conftest.err
27962        } && test -s conftest.$ac_objext; then
27963   ac_cv_type_signal=int
27964 else
27965   echo "$as_me: failed program was:" >&5
27966 sed 's/^/| /' conftest.$ac_ext >&5
27967
27968         ac_cv_type_signal=void
27969 fi
27970
27971 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27972 fi
27973 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
27974 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
27975
27976 cat >>confdefs.h <<_ACEOF
27977 #define RETSIGTYPE $ac_cv_type_signal
27978 _ACEOF
27979
27980
27981 { echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5
27982 echo $ECHO_N "checking whether stat accepts an empty string... $ECHO_C" >&6; }
27983 if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then
27984   echo $ECHO_N "(cached) $ECHO_C" >&6
27985 else
27986   if test "$cross_compiling" = yes; then
27987   ac_cv_func_stat_empty_string_bug=yes
27988 else
27989   cat >conftest.$ac_ext <<_ACEOF
27990 /* confdefs.h.  */
27991 _ACEOF
27992 cat confdefs.h >>conftest.$ac_ext
27993 cat >>conftest.$ac_ext <<_ACEOF
27994 /* end confdefs.h.  */
27995 $ac_includes_default
27996 int
27997 main ()
27998 {
27999 struct stat sbuf;
28000   return stat ("", &sbuf) == 0;
28001   ;
28002   return 0;
28003 }
28004 _ACEOF
28005 rm -f conftest$ac_exeext
28006 if { (ac_try="$ac_link"
28007 case "(($ac_try" in
28008   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28009   *) ac_try_echo=$ac_try;;
28010 esac
28011 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28012   (eval "$ac_link") 2>&5
28013   ac_status=$?
28014   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28015   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28016   { (case "(($ac_try" in
28017   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28018   *) ac_try_echo=$ac_try;;
28019 esac
28020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28021   (eval "$ac_try") 2>&5
28022   ac_status=$?
28023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28024   (exit $ac_status); }; }; then
28025   ac_cv_func_stat_empty_string_bug=no
28026 else
28027   echo "$as_me: program exited with status $ac_status" >&5
28028 echo "$as_me: failed program was:" >&5
28029 sed 's/^/| /' conftest.$ac_ext >&5
28030
28031 ( exit $ac_status )
28032 ac_cv_func_stat_empty_string_bug=yes
28033 fi
28034 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28035 fi
28036
28037
28038 fi
28039 { echo "$as_me:$LINENO: result: $ac_cv_func_stat_empty_string_bug" >&5
28040 echo "${ECHO_T}$ac_cv_func_stat_empty_string_bug" >&6; }
28041 if test $ac_cv_func_stat_empty_string_bug = yes; then
28042   case " $LIBOBJS " in
28043   *" stat.$ac_objext "* ) ;;
28044   *) LIBOBJS="$LIBOBJS stat.$ac_objext"
28045  ;;
28046 esac
28047
28048
28049 cat >>confdefs.h <<_ACEOF
28050 #define HAVE_STAT_EMPTY_STRING_BUG 1
28051 _ACEOF
28052
28053 fi
28054
28055
28056 for ac_func in vprintf
28057 do
28058 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28059 { echo "$as_me:$LINENO: checking for $ac_func" >&5
28060 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
28061 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
28062   echo $ECHO_N "(cached) $ECHO_C" >&6
28063 else
28064   cat >conftest.$ac_ext <<_ACEOF
28065 /* confdefs.h.  */
28066 _ACEOF
28067 cat confdefs.h >>conftest.$ac_ext
28068 cat >>conftest.$ac_ext <<_ACEOF
28069 /* end confdefs.h.  */
28070 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28071    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
28072 #define $ac_func innocuous_$ac_func
28073
28074 /* System header to define __stub macros and hopefully few prototypes,
28075     which can conflict with char $ac_func (); below.
28076     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28077     <limits.h> exists even on freestanding compilers.  */
28078
28079 #ifdef __STDC__
28080 # include <limits.h>
28081 #else
28082 # include <assert.h>
28083 #endif
28084
28085 #undef $ac_func
28086
28087 /* Override any GCC internal prototype to avoid an error.
28088    Use char because int might match the return type of a GCC
28089    builtin and then its argument prototype would still apply.  */
28090 #ifdef __cplusplus
28091 extern "C"
28092 #endif
28093 char $ac_func ();
28094 /* The GNU C library defines this for functions which it implements
28095     to always fail with ENOSYS.  Some functions are actually named
28096     something starting with __ and the normal name is an alias.  */
28097 #if defined __stub_$ac_func || defined __stub___$ac_func
28098 choke me
28099 #endif
28100
28101 int
28102 main ()
28103 {
28104 return $ac_func ();
28105   ;
28106   return 0;
28107 }
28108 _ACEOF
28109 rm -f conftest.$ac_objext conftest$ac_exeext
28110 if { (ac_try="$ac_link"
28111 case "(($ac_try" in
28112   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28113   *) ac_try_echo=$ac_try;;
28114 esac
28115 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28116   (eval "$ac_link") 2>conftest.er1
28117   ac_status=$?
28118   grep -v '^ *+' conftest.er1 >conftest.err
28119   rm -f conftest.er1
28120   cat conftest.err >&5
28121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28122   (exit $ac_status); } && {
28123          test -z "$ac_c_werror_flag" ||
28124          test ! -s conftest.err
28125        } && test -s conftest$ac_exeext &&
28126        $as_test_x conftest$ac_exeext; then
28127   eval "$as_ac_var=yes"
28128 else
28129   echo "$as_me: failed program was:" >&5
28130 sed 's/^/| /' conftest.$ac_ext >&5
28131
28132         eval "$as_ac_var=no"
28133 fi
28134
28135 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28136       conftest$ac_exeext conftest.$ac_ext
28137 fi
28138 ac_res=`eval echo '${'$as_ac_var'}'`
28139                { echo "$as_me:$LINENO: result: $ac_res" >&5
28140 echo "${ECHO_T}$ac_res" >&6; }
28141 if test `eval echo '${'$as_ac_var'}'` = yes; then
28142   cat >>confdefs.h <<_ACEOF
28143 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28144 _ACEOF
28145
28146 { echo "$as_me:$LINENO: checking for _doprnt" >&5
28147 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6; }
28148 if test "${ac_cv_func__doprnt+set}" = set; then
28149   echo $ECHO_N "(cached) $ECHO_C" >&6
28150 else
28151   cat >conftest.$ac_ext <<_ACEOF
28152 /* confdefs.h.  */
28153 _ACEOF
28154 cat confdefs.h >>conftest.$ac_ext
28155 cat >>conftest.$ac_ext <<_ACEOF
28156 /* end confdefs.h.  */
28157 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
28158    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
28159 #define _doprnt innocuous__doprnt
28160
28161 /* System header to define __stub macros and hopefully few prototypes,
28162     which can conflict with char _doprnt (); below.
28163     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28164     <limits.h> exists even on freestanding compilers.  */
28165
28166 #ifdef __STDC__
28167 # include <limits.h>
28168 #else
28169 # include <assert.h>
28170 #endif
28171
28172 #undef _doprnt
28173
28174 /* Override any GCC internal prototype to avoid an error.
28175    Use char because int might match the return type of a GCC
28176    builtin and then its argument prototype would still apply.  */
28177 #ifdef __cplusplus
28178 extern "C"
28179 #endif
28180 char _doprnt ();
28181 /* The GNU C library defines this for functions which it implements
28182     to always fail with ENOSYS.  Some functions are actually named
28183     something starting with __ and the normal name is an alias.  */
28184 #if defined __stub__doprnt || defined __stub____doprnt
28185 choke me
28186 #endif
28187
28188 int
28189 main ()
28190 {
28191 return _doprnt ();
28192   ;
28193   return 0;
28194 }
28195 _ACEOF
28196 rm -f conftest.$ac_objext conftest$ac_exeext
28197 if { (ac_try="$ac_link"
28198 case "(($ac_try" in
28199   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28200   *) ac_try_echo=$ac_try;;
28201 esac
28202 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28203   (eval "$ac_link") 2>conftest.er1
28204   ac_status=$?
28205   grep -v '^ *+' conftest.er1 >conftest.err
28206   rm -f conftest.er1
28207   cat conftest.err >&5
28208   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28209   (exit $ac_status); } && {
28210          test -z "$ac_c_werror_flag" ||
28211          test ! -s conftest.err
28212        } && test -s conftest$ac_exeext &&
28213        $as_test_x conftest$ac_exeext; then
28214   ac_cv_func__doprnt=yes
28215 else
28216   echo "$as_me: failed program was:" >&5
28217 sed 's/^/| /' conftest.$ac_ext >&5
28218
28219         ac_cv_func__doprnt=no
28220 fi
28221
28222 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28223       conftest$ac_exeext conftest.$ac_ext
28224 fi
28225 { echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
28226 echo "${ECHO_T}$ac_cv_func__doprnt" >&6; }
28227 if test $ac_cv_func__doprnt = yes; then
28228
28229 cat >>confdefs.h <<\_ACEOF
28230 #define HAVE_DOPRNT 1
28231 _ACEOF
28232
28233 fi
28234
28235 fi
28236 done
28237
28238
28239
28240
28241
28242
28243
28244
28245
28246
28247
28248
28249
28250
28251
28252
28253
28254
28255
28256
28257
28258
28259
28260
28261
28262
28263
28264
28265
28266
28267
28268
28269
28270
28271
28272
28273
28274
28275
28276
28277
28278
28279 for ac_func in alarm atexit dup2 fdatasync ftruncate getcwd \
28280                gethostbyaddr gethostbyname gethostname getmntent \
28281                inet_ntop getnameinfo getrpcbyname \
28282                bindresvport_sa getnetconfig \
28283                clnt_create clnt_create_timed \
28284                clnt_tli_create clnt_vc_create clnt_dg_create xdr_rpcb \
28285                gettimeofday hasmntopt inet_ntoa innetgr memset mkdir pathconf \
28286                realpath rmdir select socket strcasecmp strchr strdup \
28287                strerror strrchr strtol strtoul sigprocmask
28288 do
28289 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28290 { echo "$as_me:$LINENO: checking for $ac_func" >&5
28291 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
28292 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
28293   echo $ECHO_N "(cached) $ECHO_C" >&6
28294 else
28295   cat >conftest.$ac_ext <<_ACEOF
28296 /* confdefs.h.  */
28297 _ACEOF
28298 cat confdefs.h >>conftest.$ac_ext
28299 cat >>conftest.$ac_ext <<_ACEOF
28300 /* end confdefs.h.  */
28301 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28302    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
28303 #define $ac_func innocuous_$ac_func
28304
28305 /* System header to define __stub macros and hopefully few prototypes,
28306     which can conflict with char $ac_func (); below.
28307     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28308     <limits.h> exists even on freestanding compilers.  */
28309
28310 #ifdef __STDC__
28311 # include <limits.h>
28312 #else
28313 # include <assert.h>
28314 #endif
28315
28316 #undef $ac_func
28317
28318 /* Override any GCC internal prototype to avoid an error.
28319    Use char because int might match the return type of a GCC
28320    builtin and then its argument prototype would still apply.  */
28321 #ifdef __cplusplus
28322 extern "C"
28323 #endif
28324 char $ac_func ();
28325 /* The GNU C library defines this for functions which it implements
28326     to always fail with ENOSYS.  Some functions are actually named
28327     something starting with __ and the normal name is an alias.  */
28328 #if defined __stub_$ac_func || defined __stub___$ac_func
28329 choke me
28330 #endif
28331
28332 int
28333 main ()
28334 {
28335 return $ac_func ();
28336   ;
28337   return 0;
28338 }
28339 _ACEOF
28340 rm -f conftest.$ac_objext conftest$ac_exeext
28341 if { (ac_try="$ac_link"
28342 case "(($ac_try" in
28343   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28344   *) ac_try_echo=$ac_try;;
28345 esac
28346 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28347   (eval "$ac_link") 2>conftest.er1
28348   ac_status=$?
28349   grep -v '^ *+' conftest.er1 >conftest.err
28350   rm -f conftest.er1
28351   cat conftest.err >&5
28352   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28353   (exit $ac_status); } && {
28354          test -z "$ac_c_werror_flag" ||
28355          test ! -s conftest.err
28356        } && test -s conftest$ac_exeext &&
28357        $as_test_x conftest$ac_exeext; then
28358   eval "$as_ac_var=yes"
28359 else
28360   echo "$as_me: failed program was:" >&5
28361 sed 's/^/| /' conftest.$ac_ext >&5
28362
28363         eval "$as_ac_var=no"
28364 fi
28365
28366 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28367       conftest$ac_exeext conftest.$ac_ext
28368 fi
28369 ac_res=`eval echo '${'$as_ac_var'}'`
28370                { echo "$as_me:$LINENO: result: $ac_res" >&5
28371 echo "${ECHO_T}$ac_res" >&6; }
28372 if test `eval echo '${'$as_ac_var'}'` = yes; then
28373   cat >>confdefs.h <<_ACEOF
28374 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28375 _ACEOF
28376
28377 fi
28378 done
28379
28380
28381
28382 { echo "$as_me:$LINENO: checking for short" >&5
28383 echo $ECHO_N "checking for short... $ECHO_C" >&6; }
28384 if test "${ac_cv_type_short+set}" = set; then
28385   echo $ECHO_N "(cached) $ECHO_C" >&6
28386 else
28387   cat >conftest.$ac_ext <<_ACEOF
28388 /* confdefs.h.  */
28389 _ACEOF
28390 cat confdefs.h >>conftest.$ac_ext
28391 cat >>conftest.$ac_ext <<_ACEOF
28392 /* end confdefs.h.  */
28393 $ac_includes_default
28394 typedef short ac__type_new_;
28395 int
28396 main ()
28397 {
28398 if ((ac__type_new_ *) 0)
28399   return 0;
28400 if (sizeof (ac__type_new_))
28401   return 0;
28402   ;
28403   return 0;
28404 }
28405 _ACEOF
28406 rm -f conftest.$ac_objext
28407 if { (ac_try="$ac_compile"
28408 case "(($ac_try" in
28409   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28410   *) ac_try_echo=$ac_try;;
28411 esac
28412 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28413   (eval "$ac_compile") 2>conftest.er1
28414   ac_status=$?
28415   grep -v '^ *+' conftest.er1 >conftest.err
28416   rm -f conftest.er1
28417   cat conftest.err >&5
28418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28419   (exit $ac_status); } && {
28420          test -z "$ac_c_werror_flag" ||
28421          test ! -s conftest.err
28422        } && test -s conftest.$ac_objext; then
28423   ac_cv_type_short=yes
28424 else
28425   echo "$as_me: failed program was:" >&5
28426 sed 's/^/| /' conftest.$ac_ext >&5
28427
28428         ac_cv_type_short=no
28429 fi
28430
28431 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28432 fi
28433 { echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
28434 echo "${ECHO_T}$ac_cv_type_short" >&6; }
28435
28436 # The cast to long int works around a bug in the HP C Compiler
28437 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
28438 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
28439 # This bug is HP SR number 8606223364.
28440 { echo "$as_me:$LINENO: checking size of short" >&5
28441 echo $ECHO_N "checking size of short... $ECHO_C" >&6; }
28442 if test "${ac_cv_sizeof_short+set}" = set; then
28443   echo $ECHO_N "(cached) $ECHO_C" >&6
28444 else
28445   if test "$cross_compiling" = yes; then
28446   # Depending upon the size, compute the lo and hi bounds.
28447 cat >conftest.$ac_ext <<_ACEOF
28448 /* confdefs.h.  */
28449 _ACEOF
28450 cat confdefs.h >>conftest.$ac_ext
28451 cat >>conftest.$ac_ext <<_ACEOF
28452 /* end confdefs.h.  */
28453 $ac_includes_default
28454    typedef short ac__type_sizeof_;
28455 int
28456 main ()
28457 {
28458 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
28459 test_array [0] = 0
28460
28461   ;
28462   return 0;
28463 }
28464 _ACEOF
28465 rm -f conftest.$ac_objext
28466 if { (ac_try="$ac_compile"
28467 case "(($ac_try" in
28468   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28469   *) ac_try_echo=$ac_try;;
28470 esac
28471 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28472   (eval "$ac_compile") 2>conftest.er1
28473   ac_status=$?
28474   grep -v '^ *+' conftest.er1 >conftest.err
28475   rm -f conftest.er1
28476   cat conftest.err >&5
28477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28478   (exit $ac_status); } && {
28479          test -z "$ac_c_werror_flag" ||
28480          test ! -s conftest.err
28481        } && test -s conftest.$ac_objext; then
28482   ac_lo=0 ac_mid=0
28483   while :; do
28484     cat >conftest.$ac_ext <<_ACEOF
28485 /* confdefs.h.  */
28486 _ACEOF
28487 cat confdefs.h >>conftest.$ac_ext
28488 cat >>conftest.$ac_ext <<_ACEOF
28489 /* end confdefs.h.  */
28490 $ac_includes_default
28491    typedef short ac__type_sizeof_;
28492 int
28493 main ()
28494 {
28495 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
28496 test_array [0] = 0
28497
28498   ;
28499   return 0;
28500 }
28501 _ACEOF
28502 rm -f conftest.$ac_objext
28503 if { (ac_try="$ac_compile"
28504 case "(($ac_try" in
28505   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28506   *) ac_try_echo=$ac_try;;
28507 esac
28508 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28509   (eval "$ac_compile") 2>conftest.er1
28510   ac_status=$?
28511   grep -v '^ *+' conftest.er1 >conftest.err
28512   rm -f conftest.er1
28513   cat conftest.err >&5
28514   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28515   (exit $ac_status); } && {
28516          test -z "$ac_c_werror_flag" ||
28517          test ! -s conftest.err
28518        } && test -s conftest.$ac_objext; then
28519   ac_hi=$ac_mid; break
28520 else
28521   echo "$as_me: failed program was:" >&5
28522 sed 's/^/| /' conftest.$ac_ext >&5
28523
28524         ac_lo=`expr $ac_mid + 1`
28525                         if test $ac_lo -le $ac_mid; then
28526                           ac_lo= ac_hi=
28527                           break
28528                         fi
28529                         ac_mid=`expr 2 '*' $ac_mid + 1`
28530 fi
28531
28532 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28533   done
28534 else
28535   echo "$as_me: failed program was:" >&5
28536 sed 's/^/| /' conftest.$ac_ext >&5
28537
28538         cat >conftest.$ac_ext <<_ACEOF
28539 /* confdefs.h.  */
28540 _ACEOF
28541 cat confdefs.h >>conftest.$ac_ext
28542 cat >>conftest.$ac_ext <<_ACEOF
28543 /* end confdefs.h.  */
28544 $ac_includes_default
28545    typedef short ac__type_sizeof_;
28546 int
28547 main ()
28548 {
28549 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
28550 test_array [0] = 0
28551
28552   ;
28553   return 0;
28554 }
28555 _ACEOF
28556 rm -f conftest.$ac_objext
28557 if { (ac_try="$ac_compile"
28558 case "(($ac_try" in
28559   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28560   *) ac_try_echo=$ac_try;;
28561 esac
28562 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28563   (eval "$ac_compile") 2>conftest.er1
28564   ac_status=$?
28565   grep -v '^ *+' conftest.er1 >conftest.err
28566   rm -f conftest.er1
28567   cat conftest.err >&5
28568   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28569   (exit $ac_status); } && {
28570          test -z "$ac_c_werror_flag" ||
28571          test ! -s conftest.err
28572        } && test -s conftest.$ac_objext; then
28573   ac_hi=-1 ac_mid=-1
28574   while :; do
28575     cat >conftest.$ac_ext <<_ACEOF
28576 /* confdefs.h.  */
28577 _ACEOF
28578 cat confdefs.h >>conftest.$ac_ext
28579 cat >>conftest.$ac_ext <<_ACEOF
28580 /* end confdefs.h.  */
28581 $ac_includes_default
28582    typedef short ac__type_sizeof_;
28583 int
28584 main ()
28585 {
28586 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
28587 test_array [0] = 0
28588
28589   ;
28590   return 0;
28591 }
28592 _ACEOF
28593 rm -f conftest.$ac_objext
28594 if { (ac_try="$ac_compile"
28595 case "(($ac_try" in
28596   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28597   *) ac_try_echo=$ac_try;;
28598 esac
28599 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28600   (eval "$ac_compile") 2>conftest.er1
28601   ac_status=$?
28602   grep -v '^ *+' conftest.er1 >conftest.err
28603   rm -f conftest.er1
28604   cat conftest.err >&5
28605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28606   (exit $ac_status); } && {
28607          test -z "$ac_c_werror_flag" ||
28608          test ! -s conftest.err
28609        } && test -s conftest.$ac_objext; then
28610   ac_lo=$ac_mid; break
28611 else
28612   echo "$as_me: failed program was:" >&5
28613 sed 's/^/| /' conftest.$ac_ext >&5
28614
28615         ac_hi=`expr '(' $ac_mid ')' - 1`
28616                         if test $ac_mid -le $ac_hi; then
28617                           ac_lo= ac_hi=
28618                           break
28619                         fi
28620                         ac_mid=`expr 2 '*' $ac_mid`
28621 fi
28622
28623 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28624   done
28625 else
28626   echo "$as_me: failed program was:" >&5
28627 sed 's/^/| /' conftest.$ac_ext >&5
28628
28629         ac_lo= ac_hi=
28630 fi
28631
28632 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28633 fi
28634
28635 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28636 # Binary search between lo and hi bounds.
28637 while test "x$ac_lo" != "x$ac_hi"; do
28638   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
28639   cat >conftest.$ac_ext <<_ACEOF
28640 /* confdefs.h.  */
28641 _ACEOF
28642 cat confdefs.h >>conftest.$ac_ext
28643 cat >>conftest.$ac_ext <<_ACEOF
28644 /* end confdefs.h.  */
28645 $ac_includes_default
28646    typedef short ac__type_sizeof_;
28647 int
28648 main ()
28649 {
28650 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
28651 test_array [0] = 0
28652
28653   ;
28654   return 0;
28655 }
28656 _ACEOF
28657 rm -f conftest.$ac_objext
28658 if { (ac_try="$ac_compile"
28659 case "(($ac_try" in
28660   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28661   *) ac_try_echo=$ac_try;;
28662 esac
28663 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28664   (eval "$ac_compile") 2>conftest.er1
28665   ac_status=$?
28666   grep -v '^ *+' conftest.er1 >conftest.err
28667   rm -f conftest.er1
28668   cat conftest.err >&5
28669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28670   (exit $ac_status); } && {
28671          test -z "$ac_c_werror_flag" ||
28672          test ! -s conftest.err
28673        } && test -s conftest.$ac_objext; then
28674   ac_hi=$ac_mid
28675 else
28676   echo "$as_me: failed program was:" >&5
28677 sed 's/^/| /' conftest.$ac_ext >&5
28678
28679         ac_lo=`expr '(' $ac_mid ')' + 1`
28680 fi
28681
28682 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28683 done
28684 case $ac_lo in
28685 ?*) ac_cv_sizeof_short=$ac_lo;;
28686 '') if test "$ac_cv_type_short" = yes; then
28687      { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
28688 See \`config.log' for more details." >&5
28689 echo "$as_me: error: cannot compute sizeof (short)
28690 See \`config.log' for more details." >&2;}
28691    { (exit 77); exit 77; }; }
28692    else
28693      ac_cv_sizeof_short=0
28694    fi ;;
28695 esac
28696 else
28697   cat >conftest.$ac_ext <<_ACEOF
28698 /* confdefs.h.  */
28699 _ACEOF
28700 cat confdefs.h >>conftest.$ac_ext
28701 cat >>conftest.$ac_ext <<_ACEOF
28702 /* end confdefs.h.  */
28703 $ac_includes_default
28704    typedef short ac__type_sizeof_;
28705 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
28706 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
28707 #include <stdio.h>
28708 #include <stdlib.h>
28709 int
28710 main ()
28711 {
28712
28713   FILE *f = fopen ("conftest.val", "w");
28714   if (! f)
28715     return 1;
28716   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
28717     {
28718       long int i = longval ();
28719       if (i != ((long int) (sizeof (ac__type_sizeof_))))
28720         return 1;
28721       fprintf (f, "%ld\n", i);
28722     }
28723   else
28724     {
28725       unsigned long int i = ulongval ();
28726       if (i != ((long int) (sizeof (ac__type_sizeof_))))
28727         return 1;
28728       fprintf (f, "%lu\n", i);
28729     }
28730   return ferror (f) || fclose (f) != 0;
28731
28732   ;
28733   return 0;
28734 }
28735 _ACEOF
28736 rm -f conftest$ac_exeext
28737 if { (ac_try="$ac_link"
28738 case "(($ac_try" in
28739   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28740   *) ac_try_echo=$ac_try;;
28741 esac
28742 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28743   (eval "$ac_link") 2>&5
28744   ac_status=$?
28745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28746   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28747   { (case "(($ac_try" in
28748   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28749   *) ac_try_echo=$ac_try;;
28750 esac
28751 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28752   (eval "$ac_try") 2>&5
28753   ac_status=$?
28754   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28755   (exit $ac_status); }; }; then
28756   ac_cv_sizeof_short=`cat conftest.val`
28757 else
28758   echo "$as_me: program exited with status $ac_status" >&5
28759 echo "$as_me: failed program was:" >&5
28760 sed 's/^/| /' conftest.$ac_ext >&5
28761
28762 ( exit $ac_status )
28763 if test "$ac_cv_type_short" = yes; then
28764      { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
28765 See \`config.log' for more details." >&5
28766 echo "$as_me: error: cannot compute sizeof (short)
28767 See \`config.log' for more details." >&2;}
28768    { (exit 77); exit 77; }; }
28769    else
28770      ac_cv_sizeof_short=0
28771    fi
28772 fi
28773 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28774 fi
28775 rm -f conftest.val
28776 fi
28777 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
28778 echo "${ECHO_T}$ac_cv_sizeof_short" >&6; }
28779
28780
28781
28782 cat >>confdefs.h <<_ACEOF
28783 #define SIZEOF_SHORT $ac_cv_sizeof_short
28784 _ACEOF
28785
28786
28787 { echo "$as_me:$LINENO: checking for int" >&5
28788 echo $ECHO_N "checking for int... $ECHO_C" >&6; }
28789 if test "${ac_cv_type_int+set}" = set; then
28790   echo $ECHO_N "(cached) $ECHO_C" >&6
28791 else
28792   cat >conftest.$ac_ext <<_ACEOF
28793 /* confdefs.h.  */
28794 _ACEOF
28795 cat confdefs.h >>conftest.$ac_ext
28796 cat >>conftest.$ac_ext <<_ACEOF
28797 /* end confdefs.h.  */
28798 $ac_includes_default
28799 typedef int ac__type_new_;
28800 int
28801 main ()
28802 {
28803 if ((ac__type_new_ *) 0)
28804   return 0;
28805 if (sizeof (ac__type_new_))
28806   return 0;
28807   ;
28808   return 0;
28809 }
28810 _ACEOF
28811 rm -f conftest.$ac_objext
28812 if { (ac_try="$ac_compile"
28813 case "(($ac_try" in
28814   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28815   *) ac_try_echo=$ac_try;;
28816 esac
28817 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28818   (eval "$ac_compile") 2>conftest.er1
28819   ac_status=$?
28820   grep -v '^ *+' conftest.er1 >conftest.err
28821   rm -f conftest.er1
28822   cat conftest.err >&5
28823   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28824   (exit $ac_status); } && {
28825          test -z "$ac_c_werror_flag" ||
28826          test ! -s conftest.err
28827        } && test -s conftest.$ac_objext; then
28828   ac_cv_type_int=yes
28829 else
28830   echo "$as_me: failed program was:" >&5
28831 sed 's/^/| /' conftest.$ac_ext >&5
28832
28833         ac_cv_type_int=no
28834 fi
28835
28836 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28837 fi
28838 { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
28839 echo "${ECHO_T}$ac_cv_type_int" >&6; }
28840
28841 # The cast to long int works around a bug in the HP C Compiler
28842 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
28843 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
28844 # This bug is HP SR number 8606223364.
28845 { echo "$as_me:$LINENO: checking size of int" >&5
28846 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
28847 if test "${ac_cv_sizeof_int+set}" = set; then
28848   echo $ECHO_N "(cached) $ECHO_C" >&6
28849 else
28850   if test "$cross_compiling" = yes; then
28851   # Depending upon the size, compute the lo and hi bounds.
28852 cat >conftest.$ac_ext <<_ACEOF
28853 /* confdefs.h.  */
28854 _ACEOF
28855 cat confdefs.h >>conftest.$ac_ext
28856 cat >>conftest.$ac_ext <<_ACEOF
28857 /* end confdefs.h.  */
28858 $ac_includes_default
28859    typedef int ac__type_sizeof_;
28860 int
28861 main ()
28862 {
28863 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
28864 test_array [0] = 0
28865
28866   ;
28867   return 0;
28868 }
28869 _ACEOF
28870 rm -f conftest.$ac_objext
28871 if { (ac_try="$ac_compile"
28872 case "(($ac_try" in
28873   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28874   *) ac_try_echo=$ac_try;;
28875 esac
28876 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28877   (eval "$ac_compile") 2>conftest.er1
28878   ac_status=$?
28879   grep -v '^ *+' conftest.er1 >conftest.err
28880   rm -f conftest.er1
28881   cat conftest.err >&5
28882   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28883   (exit $ac_status); } && {
28884          test -z "$ac_c_werror_flag" ||
28885          test ! -s conftest.err
28886        } && test -s conftest.$ac_objext; then
28887   ac_lo=0 ac_mid=0
28888   while :; do
28889     cat >conftest.$ac_ext <<_ACEOF
28890 /* confdefs.h.  */
28891 _ACEOF
28892 cat confdefs.h >>conftest.$ac_ext
28893 cat >>conftest.$ac_ext <<_ACEOF
28894 /* end confdefs.h.  */
28895 $ac_includes_default
28896    typedef int ac__type_sizeof_;
28897 int
28898 main ()
28899 {
28900 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
28901 test_array [0] = 0
28902
28903   ;
28904   return 0;
28905 }
28906 _ACEOF
28907 rm -f conftest.$ac_objext
28908 if { (ac_try="$ac_compile"
28909 case "(($ac_try" in
28910   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28911   *) ac_try_echo=$ac_try;;
28912 esac
28913 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28914   (eval "$ac_compile") 2>conftest.er1
28915   ac_status=$?
28916   grep -v '^ *+' conftest.er1 >conftest.err
28917   rm -f conftest.er1
28918   cat conftest.err >&5
28919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28920   (exit $ac_status); } && {
28921          test -z "$ac_c_werror_flag" ||
28922          test ! -s conftest.err
28923        } && test -s conftest.$ac_objext; then
28924   ac_hi=$ac_mid; break
28925 else
28926   echo "$as_me: failed program was:" >&5
28927 sed 's/^/| /' conftest.$ac_ext >&5
28928
28929         ac_lo=`expr $ac_mid + 1`
28930                         if test $ac_lo -le $ac_mid; then
28931                           ac_lo= ac_hi=
28932                           break
28933                         fi
28934                         ac_mid=`expr 2 '*' $ac_mid + 1`
28935 fi
28936
28937 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28938   done
28939 else
28940   echo "$as_me: failed program was:" >&5
28941 sed 's/^/| /' conftest.$ac_ext >&5
28942
28943         cat >conftest.$ac_ext <<_ACEOF
28944 /* confdefs.h.  */
28945 _ACEOF
28946 cat confdefs.h >>conftest.$ac_ext
28947 cat >>conftest.$ac_ext <<_ACEOF
28948 /* end confdefs.h.  */
28949 $ac_includes_default
28950    typedef int ac__type_sizeof_;
28951 int
28952 main ()
28953 {
28954 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
28955 test_array [0] = 0
28956
28957   ;
28958   return 0;
28959 }
28960 _ACEOF
28961 rm -f conftest.$ac_objext
28962 if { (ac_try="$ac_compile"
28963 case "(($ac_try" in
28964   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28965   *) ac_try_echo=$ac_try;;
28966 esac
28967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28968   (eval "$ac_compile") 2>conftest.er1
28969   ac_status=$?
28970   grep -v '^ *+' conftest.er1 >conftest.err
28971   rm -f conftest.er1
28972   cat conftest.err >&5
28973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28974   (exit $ac_status); } && {
28975          test -z "$ac_c_werror_flag" ||
28976          test ! -s conftest.err
28977        } && test -s conftest.$ac_objext; then
28978   ac_hi=-1 ac_mid=-1
28979   while :; do
28980     cat >conftest.$ac_ext <<_ACEOF
28981 /* confdefs.h.  */
28982 _ACEOF
28983 cat confdefs.h >>conftest.$ac_ext
28984 cat >>conftest.$ac_ext <<_ACEOF
28985 /* end confdefs.h.  */
28986 $ac_includes_default
28987    typedef int ac__type_sizeof_;
28988 int
28989 main ()
28990 {
28991 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
28992 test_array [0] = 0
28993
28994   ;
28995   return 0;
28996 }
28997 _ACEOF
28998 rm -f conftest.$ac_objext
28999 if { (ac_try="$ac_compile"
29000 case "(($ac_try" in
29001   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29002   *) ac_try_echo=$ac_try;;
29003 esac
29004 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29005   (eval "$ac_compile") 2>conftest.er1
29006   ac_status=$?
29007   grep -v '^ *+' conftest.er1 >conftest.err
29008   rm -f conftest.er1
29009   cat conftest.err >&5
29010   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29011   (exit $ac_status); } && {
29012          test -z "$ac_c_werror_flag" ||
29013          test ! -s conftest.err
29014        } && test -s conftest.$ac_objext; then
29015   ac_lo=$ac_mid; break
29016 else
29017   echo "$as_me: failed program was:" >&5
29018 sed 's/^/| /' conftest.$ac_ext >&5
29019
29020         ac_hi=`expr '(' $ac_mid ')' - 1`
29021                         if test $ac_mid -le $ac_hi; then
29022                           ac_lo= ac_hi=
29023                           break
29024                         fi
29025                         ac_mid=`expr 2 '*' $ac_mid`
29026 fi
29027
29028 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29029   done
29030 else
29031   echo "$as_me: failed program was:" >&5
29032 sed 's/^/| /' conftest.$ac_ext >&5
29033
29034         ac_lo= ac_hi=
29035 fi
29036
29037 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29038 fi
29039
29040 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29041 # Binary search between lo and hi bounds.
29042 while test "x$ac_lo" != "x$ac_hi"; do
29043   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
29044   cat >conftest.$ac_ext <<_ACEOF
29045 /* confdefs.h.  */
29046 _ACEOF
29047 cat confdefs.h >>conftest.$ac_ext
29048 cat >>conftest.$ac_ext <<_ACEOF
29049 /* end confdefs.h.  */
29050 $ac_includes_default
29051    typedef int ac__type_sizeof_;
29052 int
29053 main ()
29054 {
29055 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
29056 test_array [0] = 0
29057
29058   ;
29059   return 0;
29060 }
29061 _ACEOF
29062 rm -f conftest.$ac_objext
29063 if { (ac_try="$ac_compile"
29064 case "(($ac_try" in
29065   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29066   *) ac_try_echo=$ac_try;;
29067 esac
29068 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29069   (eval "$ac_compile") 2>conftest.er1
29070   ac_status=$?
29071   grep -v '^ *+' conftest.er1 >conftest.err
29072   rm -f conftest.er1
29073   cat conftest.err >&5
29074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29075   (exit $ac_status); } && {
29076          test -z "$ac_c_werror_flag" ||
29077          test ! -s conftest.err
29078        } && test -s conftest.$ac_objext; then
29079   ac_hi=$ac_mid
29080 else
29081   echo "$as_me: failed program was:" >&5
29082 sed 's/^/| /' conftest.$ac_ext >&5
29083
29084         ac_lo=`expr '(' $ac_mid ')' + 1`
29085 fi
29086
29087 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29088 done
29089 case $ac_lo in
29090 ?*) ac_cv_sizeof_int=$ac_lo;;
29091 '') if test "$ac_cv_type_int" = yes; then
29092      { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
29093 See \`config.log' for more details." >&5
29094 echo "$as_me: error: cannot compute sizeof (int)
29095 See \`config.log' for more details." >&2;}
29096    { (exit 77); exit 77; }; }
29097    else
29098      ac_cv_sizeof_int=0
29099    fi ;;
29100 esac
29101 else
29102   cat >conftest.$ac_ext <<_ACEOF
29103 /* confdefs.h.  */
29104 _ACEOF
29105 cat confdefs.h >>conftest.$ac_ext
29106 cat >>conftest.$ac_ext <<_ACEOF
29107 /* end confdefs.h.  */
29108 $ac_includes_default
29109    typedef int ac__type_sizeof_;
29110 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
29111 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
29112 #include <stdio.h>
29113 #include <stdlib.h>
29114 int
29115 main ()
29116 {
29117
29118   FILE *f = fopen ("conftest.val", "w");
29119   if (! f)
29120     return 1;
29121   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
29122     {
29123       long int i = longval ();
29124       if (i != ((long int) (sizeof (ac__type_sizeof_))))
29125         return 1;
29126       fprintf (f, "%ld\n", i);
29127     }
29128   else
29129     {
29130       unsigned long int i = ulongval ();
29131       if (i != ((long int) (sizeof (ac__type_sizeof_))))
29132         return 1;
29133       fprintf (f, "%lu\n", i);
29134     }
29135   return ferror (f) || fclose (f) != 0;
29136
29137   ;
29138   return 0;
29139 }
29140 _ACEOF
29141 rm -f conftest$ac_exeext
29142 if { (ac_try="$ac_link"
29143 case "(($ac_try" in
29144   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29145   *) ac_try_echo=$ac_try;;
29146 esac
29147 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29148   (eval "$ac_link") 2>&5
29149   ac_status=$?
29150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29151   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29152   { (case "(($ac_try" in
29153   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29154   *) ac_try_echo=$ac_try;;
29155 esac
29156 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29157   (eval "$ac_try") 2>&5
29158   ac_status=$?
29159   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29160   (exit $ac_status); }; }; then
29161   ac_cv_sizeof_int=`cat conftest.val`
29162 else
29163   echo "$as_me: program exited with status $ac_status" >&5
29164 echo "$as_me: failed program was:" >&5
29165 sed 's/^/| /' conftest.$ac_ext >&5
29166
29167 ( exit $ac_status )
29168 if test "$ac_cv_type_int" = yes; then
29169      { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
29170 See \`config.log' for more details." >&5
29171 echo "$as_me: error: cannot compute sizeof (int)
29172 See \`config.log' for more details." >&2;}
29173    { (exit 77); exit 77; }; }
29174    else
29175      ac_cv_sizeof_int=0
29176    fi
29177 fi
29178 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29179 fi
29180 rm -f conftest.val
29181 fi
29182 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
29183 echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
29184
29185
29186
29187 cat >>confdefs.h <<_ACEOF
29188 #define SIZEOF_INT $ac_cv_sizeof_int
29189 _ACEOF
29190
29191
29192 { echo "$as_me:$LINENO: checking for long" >&5
29193 echo $ECHO_N "checking for long... $ECHO_C" >&6; }
29194 if test "${ac_cv_type_long+set}" = set; then
29195   echo $ECHO_N "(cached) $ECHO_C" >&6
29196 else
29197   cat >conftest.$ac_ext <<_ACEOF
29198 /* confdefs.h.  */
29199 _ACEOF
29200 cat confdefs.h >>conftest.$ac_ext
29201 cat >>conftest.$ac_ext <<_ACEOF
29202 /* end confdefs.h.  */
29203 $ac_includes_default
29204 typedef long ac__type_new_;
29205 int
29206 main ()
29207 {
29208 if ((ac__type_new_ *) 0)
29209   return 0;
29210 if (sizeof (ac__type_new_))
29211   return 0;
29212   ;
29213   return 0;
29214 }
29215 _ACEOF
29216 rm -f conftest.$ac_objext
29217 if { (ac_try="$ac_compile"
29218 case "(($ac_try" in
29219   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29220   *) ac_try_echo=$ac_try;;
29221 esac
29222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29223   (eval "$ac_compile") 2>conftest.er1
29224   ac_status=$?
29225   grep -v '^ *+' conftest.er1 >conftest.err
29226   rm -f conftest.er1
29227   cat conftest.err >&5
29228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29229   (exit $ac_status); } && {
29230          test -z "$ac_c_werror_flag" ||
29231          test ! -s conftest.err
29232        } && test -s conftest.$ac_objext; then
29233   ac_cv_type_long=yes
29234 else
29235   echo "$as_me: failed program was:" >&5
29236 sed 's/^/| /' conftest.$ac_ext >&5
29237
29238         ac_cv_type_long=no
29239 fi
29240
29241 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29242 fi
29243 { echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
29244 echo "${ECHO_T}$ac_cv_type_long" >&6; }
29245
29246 # The cast to long int works around a bug in the HP C Compiler
29247 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
29248 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
29249 # This bug is HP SR number 8606223364.
29250 { echo "$as_me:$LINENO: checking size of long" >&5
29251 echo $ECHO_N "checking size of long... $ECHO_C" >&6; }
29252 if test "${ac_cv_sizeof_long+set}" = set; then
29253   echo $ECHO_N "(cached) $ECHO_C" >&6
29254 else
29255   if test "$cross_compiling" = yes; then
29256   # Depending upon the size, compute the lo and hi bounds.
29257 cat >conftest.$ac_ext <<_ACEOF
29258 /* confdefs.h.  */
29259 _ACEOF
29260 cat confdefs.h >>conftest.$ac_ext
29261 cat >>conftest.$ac_ext <<_ACEOF
29262 /* end confdefs.h.  */
29263 $ac_includes_default
29264    typedef long ac__type_sizeof_;
29265 int
29266 main ()
29267 {
29268 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
29269 test_array [0] = 0
29270
29271   ;
29272   return 0;
29273 }
29274 _ACEOF
29275 rm -f conftest.$ac_objext
29276 if { (ac_try="$ac_compile"
29277 case "(($ac_try" in
29278   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29279   *) ac_try_echo=$ac_try;;
29280 esac
29281 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29282   (eval "$ac_compile") 2>conftest.er1
29283   ac_status=$?
29284   grep -v '^ *+' conftest.er1 >conftest.err
29285   rm -f conftest.er1
29286   cat conftest.err >&5
29287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29288   (exit $ac_status); } && {
29289          test -z "$ac_c_werror_flag" ||
29290          test ! -s conftest.err
29291        } && test -s conftest.$ac_objext; then
29292   ac_lo=0 ac_mid=0
29293   while :; do
29294     cat >conftest.$ac_ext <<_ACEOF
29295 /* confdefs.h.  */
29296 _ACEOF
29297 cat confdefs.h >>conftest.$ac_ext
29298 cat >>conftest.$ac_ext <<_ACEOF
29299 /* end confdefs.h.  */
29300 $ac_includes_default
29301    typedef long ac__type_sizeof_;
29302 int
29303 main ()
29304 {
29305 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
29306 test_array [0] = 0
29307
29308   ;
29309   return 0;
29310 }
29311 _ACEOF
29312 rm -f conftest.$ac_objext
29313 if { (ac_try="$ac_compile"
29314 case "(($ac_try" in
29315   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29316   *) ac_try_echo=$ac_try;;
29317 esac
29318 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29319   (eval "$ac_compile") 2>conftest.er1
29320   ac_status=$?
29321   grep -v '^ *+' conftest.er1 >conftest.err
29322   rm -f conftest.er1
29323   cat conftest.err >&5
29324   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29325   (exit $ac_status); } && {
29326          test -z "$ac_c_werror_flag" ||
29327          test ! -s conftest.err
29328        } && test -s conftest.$ac_objext; then
29329   ac_hi=$ac_mid; break
29330 else
29331   echo "$as_me: failed program was:" >&5
29332 sed 's/^/| /' conftest.$ac_ext >&5
29333
29334         ac_lo=`expr $ac_mid + 1`
29335                         if test $ac_lo -le $ac_mid; then
29336                           ac_lo= ac_hi=
29337                           break
29338                         fi
29339                         ac_mid=`expr 2 '*' $ac_mid + 1`
29340 fi
29341
29342 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29343   done
29344 else
29345   echo "$as_me: failed program was:" >&5
29346 sed 's/^/| /' conftest.$ac_ext >&5
29347
29348         cat >conftest.$ac_ext <<_ACEOF
29349 /* confdefs.h.  */
29350 _ACEOF
29351 cat confdefs.h >>conftest.$ac_ext
29352 cat >>conftest.$ac_ext <<_ACEOF
29353 /* end confdefs.h.  */
29354 $ac_includes_default
29355    typedef long ac__type_sizeof_;
29356 int
29357 main ()
29358 {
29359 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
29360 test_array [0] = 0
29361
29362   ;
29363   return 0;
29364 }
29365 _ACEOF
29366 rm -f conftest.$ac_objext
29367 if { (ac_try="$ac_compile"
29368 case "(($ac_try" in
29369   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29370   *) ac_try_echo=$ac_try;;
29371 esac
29372 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29373   (eval "$ac_compile") 2>conftest.er1
29374   ac_status=$?
29375   grep -v '^ *+' conftest.er1 >conftest.err
29376   rm -f conftest.er1
29377   cat conftest.err >&5
29378   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29379   (exit $ac_status); } && {
29380          test -z "$ac_c_werror_flag" ||
29381          test ! -s conftest.err
29382        } && test -s conftest.$ac_objext; then
29383   ac_hi=-1 ac_mid=-1
29384   while :; do
29385     cat >conftest.$ac_ext <<_ACEOF
29386 /* confdefs.h.  */
29387 _ACEOF
29388 cat confdefs.h >>conftest.$ac_ext
29389 cat >>conftest.$ac_ext <<_ACEOF
29390 /* end confdefs.h.  */
29391 $ac_includes_default
29392    typedef long ac__type_sizeof_;
29393 int
29394 main ()
29395 {
29396 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
29397 test_array [0] = 0
29398
29399   ;
29400   return 0;
29401 }
29402 _ACEOF
29403 rm -f conftest.$ac_objext
29404 if { (ac_try="$ac_compile"
29405 case "(($ac_try" in
29406   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29407   *) ac_try_echo=$ac_try;;
29408 esac
29409 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29410   (eval "$ac_compile") 2>conftest.er1
29411   ac_status=$?
29412   grep -v '^ *+' conftest.er1 >conftest.err
29413   rm -f conftest.er1
29414   cat conftest.err >&5
29415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29416   (exit $ac_status); } && {
29417          test -z "$ac_c_werror_flag" ||
29418          test ! -s conftest.err
29419        } && test -s conftest.$ac_objext; then
29420   ac_lo=$ac_mid; break
29421 else
29422   echo "$as_me: failed program was:" >&5
29423 sed 's/^/| /' conftest.$ac_ext >&5
29424
29425         ac_hi=`expr '(' $ac_mid ')' - 1`
29426                         if test $ac_mid -le $ac_hi; then
29427                           ac_lo= ac_hi=
29428                           break
29429                         fi
29430                         ac_mid=`expr 2 '*' $ac_mid`
29431 fi
29432
29433 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29434   done
29435 else
29436   echo "$as_me: failed program was:" >&5
29437 sed 's/^/| /' conftest.$ac_ext >&5
29438
29439         ac_lo= ac_hi=
29440 fi
29441
29442 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29443 fi
29444
29445 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29446 # Binary search between lo and hi bounds.
29447 while test "x$ac_lo" != "x$ac_hi"; do
29448   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
29449   cat >conftest.$ac_ext <<_ACEOF
29450 /* confdefs.h.  */
29451 _ACEOF
29452 cat confdefs.h >>conftest.$ac_ext
29453 cat >>conftest.$ac_ext <<_ACEOF
29454 /* end confdefs.h.  */
29455 $ac_includes_default
29456    typedef long ac__type_sizeof_;
29457 int
29458 main ()
29459 {
29460 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
29461 test_array [0] = 0
29462
29463   ;
29464   return 0;
29465 }
29466 _ACEOF
29467 rm -f conftest.$ac_objext
29468 if { (ac_try="$ac_compile"
29469 case "(($ac_try" in
29470   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29471   *) ac_try_echo=$ac_try;;
29472 esac
29473 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29474   (eval "$ac_compile") 2>conftest.er1
29475   ac_status=$?
29476   grep -v '^ *+' conftest.er1 >conftest.err
29477   rm -f conftest.er1
29478   cat conftest.err >&5
29479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29480   (exit $ac_status); } && {
29481          test -z "$ac_c_werror_flag" ||
29482          test ! -s conftest.err
29483        } && test -s conftest.$ac_objext; then
29484   ac_hi=$ac_mid
29485 else
29486   echo "$as_me: failed program was:" >&5
29487 sed 's/^/| /' conftest.$ac_ext >&5
29488
29489         ac_lo=`expr '(' $ac_mid ')' + 1`
29490 fi
29491
29492 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29493 done
29494 case $ac_lo in
29495 ?*) ac_cv_sizeof_long=$ac_lo;;
29496 '') if test "$ac_cv_type_long" = yes; then
29497      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
29498 See \`config.log' for more details." >&5
29499 echo "$as_me: error: cannot compute sizeof (long)
29500 See \`config.log' for more details." >&2;}
29501    { (exit 77); exit 77; }; }
29502    else
29503      ac_cv_sizeof_long=0
29504    fi ;;
29505 esac
29506 else
29507   cat >conftest.$ac_ext <<_ACEOF
29508 /* confdefs.h.  */
29509 _ACEOF
29510 cat confdefs.h >>conftest.$ac_ext
29511 cat >>conftest.$ac_ext <<_ACEOF
29512 /* end confdefs.h.  */
29513 $ac_includes_default
29514    typedef long ac__type_sizeof_;
29515 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
29516 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
29517 #include <stdio.h>
29518 #include <stdlib.h>
29519 int
29520 main ()
29521 {
29522
29523   FILE *f = fopen ("conftest.val", "w");
29524   if (! f)
29525     return 1;
29526   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
29527     {
29528       long int i = longval ();
29529       if (i != ((long int) (sizeof (ac__type_sizeof_))))
29530         return 1;
29531       fprintf (f, "%ld\n", i);
29532     }
29533   else
29534     {
29535       unsigned long int i = ulongval ();
29536       if (i != ((long int) (sizeof (ac__type_sizeof_))))
29537         return 1;
29538       fprintf (f, "%lu\n", i);
29539     }
29540   return ferror (f) || fclose (f) != 0;
29541
29542   ;
29543   return 0;
29544 }
29545 _ACEOF
29546 rm -f conftest$ac_exeext
29547 if { (ac_try="$ac_link"
29548 case "(($ac_try" in
29549   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29550   *) ac_try_echo=$ac_try;;
29551 esac
29552 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29553   (eval "$ac_link") 2>&5
29554   ac_status=$?
29555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29556   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29557   { (case "(($ac_try" in
29558   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29559   *) ac_try_echo=$ac_try;;
29560 esac
29561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29562   (eval "$ac_try") 2>&5
29563   ac_status=$?
29564   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29565   (exit $ac_status); }; }; then
29566   ac_cv_sizeof_long=`cat conftest.val`
29567 else
29568   echo "$as_me: program exited with status $ac_status" >&5
29569 echo "$as_me: failed program was:" >&5
29570 sed 's/^/| /' conftest.$ac_ext >&5
29571
29572 ( exit $ac_status )
29573 if test "$ac_cv_type_long" = yes; then
29574      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
29575 See \`config.log' for more details." >&5
29576 echo "$as_me: error: cannot compute sizeof (long)
29577 See \`config.log' for more details." >&2;}
29578    { (exit 77); exit 77; }; }
29579    else
29580      ac_cv_sizeof_long=0
29581    fi
29582 fi
29583 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29584 fi
29585 rm -f conftest.val
29586 fi
29587 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
29588 echo "${ECHO_T}$ac_cv_sizeof_long" >&6; }
29589
29590
29591
29592 cat >>confdefs.h <<_ACEOF
29593 #define SIZEOF_LONG $ac_cv_sizeof_long
29594 _ACEOF
29595
29596
29597 { echo "$as_me:$LINENO: checking for size_t" >&5
29598 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
29599 if test "${ac_cv_type_size_t+set}" = set; then
29600   echo $ECHO_N "(cached) $ECHO_C" >&6
29601 else
29602   cat >conftest.$ac_ext <<_ACEOF
29603 /* confdefs.h.  */
29604 _ACEOF
29605 cat confdefs.h >>conftest.$ac_ext
29606 cat >>conftest.$ac_ext <<_ACEOF
29607 /* end confdefs.h.  */
29608 $ac_includes_default
29609 typedef size_t ac__type_new_;
29610 int
29611 main ()
29612 {
29613 if ((ac__type_new_ *) 0)
29614   return 0;
29615 if (sizeof (ac__type_new_))
29616   return 0;
29617   ;
29618   return 0;
29619 }
29620 _ACEOF
29621 rm -f conftest.$ac_objext
29622 if { (ac_try="$ac_compile"
29623 case "(($ac_try" in
29624   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29625   *) ac_try_echo=$ac_try;;
29626 esac
29627 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29628   (eval "$ac_compile") 2>conftest.er1
29629   ac_status=$?
29630   grep -v '^ *+' conftest.er1 >conftest.err
29631   rm -f conftest.er1
29632   cat conftest.err >&5
29633   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29634   (exit $ac_status); } && {
29635          test -z "$ac_c_werror_flag" ||
29636          test ! -s conftest.err
29637        } && test -s conftest.$ac_objext; then
29638   ac_cv_type_size_t=yes
29639 else
29640   echo "$as_me: failed program was:" >&5
29641 sed 's/^/| /' conftest.$ac_ext >&5
29642
29643         ac_cv_type_size_t=no
29644 fi
29645
29646 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29647 fi
29648 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
29649 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
29650
29651 # The cast to long int works around a bug in the HP C Compiler
29652 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
29653 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
29654 # This bug is HP SR number 8606223364.
29655 { echo "$as_me:$LINENO: checking size of size_t" >&5
29656 echo $ECHO_N "checking size of size_t... $ECHO_C" >&6; }
29657 if test "${ac_cv_sizeof_size_t+set}" = set; then
29658   echo $ECHO_N "(cached) $ECHO_C" >&6
29659 else
29660   if test "$cross_compiling" = yes; then
29661   # Depending upon the size, compute the lo and hi bounds.
29662 cat >conftest.$ac_ext <<_ACEOF
29663 /* confdefs.h.  */
29664 _ACEOF
29665 cat confdefs.h >>conftest.$ac_ext
29666 cat >>conftest.$ac_ext <<_ACEOF
29667 /* end confdefs.h.  */
29668 $ac_includes_default
29669    typedef size_t ac__type_sizeof_;
29670 int
29671 main ()
29672 {
29673 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
29674 test_array [0] = 0
29675
29676   ;
29677   return 0;
29678 }
29679 _ACEOF
29680 rm -f conftest.$ac_objext
29681 if { (ac_try="$ac_compile"
29682 case "(($ac_try" in
29683   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29684   *) ac_try_echo=$ac_try;;
29685 esac
29686 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29687   (eval "$ac_compile") 2>conftest.er1
29688   ac_status=$?
29689   grep -v '^ *+' conftest.er1 >conftest.err
29690   rm -f conftest.er1
29691   cat conftest.err >&5
29692   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29693   (exit $ac_status); } && {
29694          test -z "$ac_c_werror_flag" ||
29695          test ! -s conftest.err
29696        } && test -s conftest.$ac_objext; then
29697   ac_lo=0 ac_mid=0
29698   while :; do
29699     cat >conftest.$ac_ext <<_ACEOF
29700 /* confdefs.h.  */
29701 _ACEOF
29702 cat confdefs.h >>conftest.$ac_ext
29703 cat >>conftest.$ac_ext <<_ACEOF
29704 /* end confdefs.h.  */
29705 $ac_includes_default
29706    typedef size_t ac__type_sizeof_;
29707 int
29708 main ()
29709 {
29710 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
29711 test_array [0] = 0
29712
29713   ;
29714   return 0;
29715 }
29716 _ACEOF
29717 rm -f conftest.$ac_objext
29718 if { (ac_try="$ac_compile"
29719 case "(($ac_try" in
29720   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29721   *) ac_try_echo=$ac_try;;
29722 esac
29723 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29724   (eval "$ac_compile") 2>conftest.er1
29725   ac_status=$?
29726   grep -v '^ *+' conftest.er1 >conftest.err
29727   rm -f conftest.er1
29728   cat conftest.err >&5
29729   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29730   (exit $ac_status); } && {
29731          test -z "$ac_c_werror_flag" ||
29732          test ! -s conftest.err
29733        } && test -s conftest.$ac_objext; then
29734   ac_hi=$ac_mid; break
29735 else
29736   echo "$as_me: failed program was:" >&5
29737 sed 's/^/| /' conftest.$ac_ext >&5
29738
29739         ac_lo=`expr $ac_mid + 1`
29740                         if test $ac_lo -le $ac_mid; then
29741                           ac_lo= ac_hi=
29742                           break
29743                         fi
29744                         ac_mid=`expr 2 '*' $ac_mid + 1`
29745 fi
29746
29747 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29748   done
29749 else
29750   echo "$as_me: failed program was:" >&5
29751 sed 's/^/| /' conftest.$ac_ext >&5
29752
29753         cat >conftest.$ac_ext <<_ACEOF
29754 /* confdefs.h.  */
29755 _ACEOF
29756 cat confdefs.h >>conftest.$ac_ext
29757 cat >>conftest.$ac_ext <<_ACEOF
29758 /* end confdefs.h.  */
29759 $ac_includes_default
29760    typedef size_t ac__type_sizeof_;
29761 int
29762 main ()
29763 {
29764 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
29765 test_array [0] = 0
29766
29767   ;
29768   return 0;
29769 }
29770 _ACEOF
29771 rm -f conftest.$ac_objext
29772 if { (ac_try="$ac_compile"
29773 case "(($ac_try" in
29774   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29775   *) ac_try_echo=$ac_try;;
29776 esac
29777 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29778   (eval "$ac_compile") 2>conftest.er1
29779   ac_status=$?
29780   grep -v '^ *+' conftest.er1 >conftest.err
29781   rm -f conftest.er1
29782   cat conftest.err >&5
29783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29784   (exit $ac_status); } && {
29785          test -z "$ac_c_werror_flag" ||
29786          test ! -s conftest.err
29787        } && test -s conftest.$ac_objext; then
29788   ac_hi=-1 ac_mid=-1
29789   while :; do
29790     cat >conftest.$ac_ext <<_ACEOF
29791 /* confdefs.h.  */
29792 _ACEOF
29793 cat confdefs.h >>conftest.$ac_ext
29794 cat >>conftest.$ac_ext <<_ACEOF
29795 /* end confdefs.h.  */
29796 $ac_includes_default
29797    typedef size_t ac__type_sizeof_;
29798 int
29799 main ()
29800 {
29801 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
29802 test_array [0] = 0
29803
29804   ;
29805   return 0;
29806 }
29807 _ACEOF
29808 rm -f conftest.$ac_objext
29809 if { (ac_try="$ac_compile"
29810 case "(($ac_try" in
29811   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29812   *) ac_try_echo=$ac_try;;
29813 esac
29814 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29815   (eval "$ac_compile") 2>conftest.er1
29816   ac_status=$?
29817   grep -v '^ *+' conftest.er1 >conftest.err
29818   rm -f conftest.er1
29819   cat conftest.err >&5
29820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29821   (exit $ac_status); } && {
29822          test -z "$ac_c_werror_flag" ||
29823          test ! -s conftest.err
29824        } && test -s conftest.$ac_objext; then
29825   ac_lo=$ac_mid; break
29826 else
29827   echo "$as_me: failed program was:" >&5
29828 sed 's/^/| /' conftest.$ac_ext >&5
29829
29830         ac_hi=`expr '(' $ac_mid ')' - 1`
29831                         if test $ac_mid -le $ac_hi; then
29832                           ac_lo= ac_hi=
29833                           break
29834                         fi
29835                         ac_mid=`expr 2 '*' $ac_mid`
29836 fi
29837
29838 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29839   done
29840 else
29841   echo "$as_me: failed program was:" >&5
29842 sed 's/^/| /' conftest.$ac_ext >&5
29843
29844         ac_lo= ac_hi=
29845 fi
29846
29847 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29848 fi
29849
29850 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29851 # Binary search between lo and hi bounds.
29852 while test "x$ac_lo" != "x$ac_hi"; do
29853   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
29854   cat >conftest.$ac_ext <<_ACEOF
29855 /* confdefs.h.  */
29856 _ACEOF
29857 cat confdefs.h >>conftest.$ac_ext
29858 cat >>conftest.$ac_ext <<_ACEOF
29859 /* end confdefs.h.  */
29860 $ac_includes_default
29861    typedef size_t ac__type_sizeof_;
29862 int
29863 main ()
29864 {
29865 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
29866 test_array [0] = 0
29867
29868   ;
29869   return 0;
29870 }
29871 _ACEOF
29872 rm -f conftest.$ac_objext
29873 if { (ac_try="$ac_compile"
29874 case "(($ac_try" in
29875   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29876   *) ac_try_echo=$ac_try;;
29877 esac
29878 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29879   (eval "$ac_compile") 2>conftest.er1
29880   ac_status=$?
29881   grep -v '^ *+' conftest.er1 >conftest.err
29882   rm -f conftest.er1
29883   cat conftest.err >&5
29884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29885   (exit $ac_status); } && {
29886          test -z "$ac_c_werror_flag" ||
29887          test ! -s conftest.err
29888        } && test -s conftest.$ac_objext; then
29889   ac_hi=$ac_mid
29890 else
29891   echo "$as_me: failed program was:" >&5
29892 sed 's/^/| /' conftest.$ac_ext >&5
29893
29894         ac_lo=`expr '(' $ac_mid ')' + 1`
29895 fi
29896
29897 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29898 done
29899 case $ac_lo in
29900 ?*) ac_cv_sizeof_size_t=$ac_lo;;
29901 '') if test "$ac_cv_type_size_t" = yes; then
29902      { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
29903 See \`config.log' for more details." >&5
29904 echo "$as_me: error: cannot compute sizeof (size_t)
29905 See \`config.log' for more details." >&2;}
29906    { (exit 77); exit 77; }; }
29907    else
29908      ac_cv_sizeof_size_t=0
29909    fi ;;
29910 esac
29911 else
29912   cat >conftest.$ac_ext <<_ACEOF
29913 /* confdefs.h.  */
29914 _ACEOF
29915 cat confdefs.h >>conftest.$ac_ext
29916 cat >>conftest.$ac_ext <<_ACEOF
29917 /* end confdefs.h.  */
29918 $ac_includes_default
29919    typedef size_t ac__type_sizeof_;
29920 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
29921 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
29922 #include <stdio.h>
29923 #include <stdlib.h>
29924 int
29925 main ()
29926 {
29927
29928   FILE *f = fopen ("conftest.val", "w");
29929   if (! f)
29930     return 1;
29931   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
29932     {
29933       long int i = longval ();
29934       if (i != ((long int) (sizeof (ac__type_sizeof_))))
29935         return 1;
29936       fprintf (f, "%ld\n", i);
29937     }
29938   else
29939     {
29940       unsigned long int i = ulongval ();
29941       if (i != ((long int) (sizeof (ac__type_sizeof_))))
29942         return 1;
29943       fprintf (f, "%lu\n", i);
29944     }
29945   return ferror (f) || fclose (f) != 0;
29946
29947   ;
29948   return 0;
29949 }
29950 _ACEOF
29951 rm -f conftest$ac_exeext
29952 if { (ac_try="$ac_link"
29953 case "(($ac_try" in
29954   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29955   *) ac_try_echo=$ac_try;;
29956 esac
29957 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29958   (eval "$ac_link") 2>&5
29959   ac_status=$?
29960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29961   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29962   { (case "(($ac_try" in
29963   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29964   *) ac_try_echo=$ac_try;;
29965 esac
29966 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29967   (eval "$ac_try") 2>&5
29968   ac_status=$?
29969   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29970   (exit $ac_status); }; }; then
29971   ac_cv_sizeof_size_t=`cat conftest.val`
29972 else
29973   echo "$as_me: program exited with status $ac_status" >&5
29974 echo "$as_me: failed program was:" >&5
29975 sed 's/^/| /' conftest.$ac_ext >&5
29976
29977 ( exit $ac_status )
29978 if test "$ac_cv_type_size_t" = yes; then
29979      { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
29980 See \`config.log' for more details." >&5
29981 echo "$as_me: error: cannot compute sizeof (size_t)
29982 See \`config.log' for more details." >&2;}
29983    { (exit 77); exit 77; }; }
29984    else
29985      ac_cv_sizeof_size_t=0
29986    fi
29987 fi
29988 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29989 fi
29990 rm -f conftest.val
29991 fi
29992 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
29993 echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6; }
29994
29995
29996
29997 cat >>confdefs.h <<_ACEOF
29998 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
29999 _ACEOF
30000
30001
30002 { echo "$as_me:$LINENO: checking for socklen_t" >&5
30003 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; }
30004 if test "${ac_cv_type_socklen_t+set}" = set; then
30005   echo $ECHO_N "(cached) $ECHO_C" >&6
30006 else
30007   cat >conftest.$ac_ext <<_ACEOF
30008 /* confdefs.h.  */
30009 _ACEOF
30010 cat confdefs.h >>conftest.$ac_ext
30011 cat >>conftest.$ac_ext <<_ACEOF
30012 /* end confdefs.h.  */
30013 $ac_includes_default
30014 typedef socklen_t ac__type_new_;
30015 int
30016 main ()
30017 {
30018 if ((ac__type_new_ *) 0)
30019   return 0;
30020 if (sizeof (ac__type_new_))
30021   return 0;
30022   ;
30023   return 0;
30024 }
30025 _ACEOF
30026 rm -f conftest.$ac_objext
30027 if { (ac_try="$ac_compile"
30028 case "(($ac_try" in
30029   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30030   *) ac_try_echo=$ac_try;;
30031 esac
30032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30033   (eval "$ac_compile") 2>conftest.er1
30034   ac_status=$?
30035   grep -v '^ *+' conftest.er1 >conftest.err
30036   rm -f conftest.er1
30037   cat conftest.err >&5
30038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30039   (exit $ac_status); } && {
30040          test -z "$ac_c_werror_flag" ||
30041          test ! -s conftest.err
30042        } && test -s conftest.$ac_objext; then
30043   ac_cv_type_socklen_t=yes
30044 else
30045   echo "$as_me: failed program was:" >&5
30046 sed 's/^/| /' conftest.$ac_ext >&5
30047
30048         ac_cv_type_socklen_t=no
30049 fi
30050
30051 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30052 fi
30053 { echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
30054 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6; }
30055
30056 # The cast to long int works around a bug in the HP C Compiler
30057 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
30058 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
30059 # This bug is HP SR number 8606223364.
30060 { echo "$as_me:$LINENO: checking size of socklen_t" >&5
30061 echo $ECHO_N "checking size of socklen_t... $ECHO_C" >&6; }
30062 if test "${ac_cv_sizeof_socklen_t+set}" = set; then
30063   echo $ECHO_N "(cached) $ECHO_C" >&6
30064 else
30065   if test "$cross_compiling" = yes; then
30066   # Depending upon the size, compute the lo and hi bounds.
30067 cat >conftest.$ac_ext <<_ACEOF
30068 /* confdefs.h.  */
30069 _ACEOF
30070 cat confdefs.h >>conftest.$ac_ext
30071 cat >>conftest.$ac_ext <<_ACEOF
30072 /* end confdefs.h.  */
30073 $ac_includes_default
30074    typedef socklen_t ac__type_sizeof_;
30075 int
30076 main ()
30077 {
30078 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
30079 test_array [0] = 0
30080
30081   ;
30082   return 0;
30083 }
30084 _ACEOF
30085 rm -f conftest.$ac_objext
30086 if { (ac_try="$ac_compile"
30087 case "(($ac_try" in
30088   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30089   *) ac_try_echo=$ac_try;;
30090 esac
30091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30092   (eval "$ac_compile") 2>conftest.er1
30093   ac_status=$?
30094   grep -v '^ *+' conftest.er1 >conftest.err
30095   rm -f conftest.er1
30096   cat conftest.err >&5
30097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30098   (exit $ac_status); } && {
30099          test -z "$ac_c_werror_flag" ||
30100          test ! -s conftest.err
30101        } && test -s conftest.$ac_objext; then
30102   ac_lo=0 ac_mid=0
30103   while :; do
30104     cat >conftest.$ac_ext <<_ACEOF
30105 /* confdefs.h.  */
30106 _ACEOF
30107 cat confdefs.h >>conftest.$ac_ext
30108 cat >>conftest.$ac_ext <<_ACEOF
30109 /* end confdefs.h.  */
30110 $ac_includes_default
30111    typedef socklen_t ac__type_sizeof_;
30112 int
30113 main ()
30114 {
30115 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
30116 test_array [0] = 0
30117
30118   ;
30119   return 0;
30120 }
30121 _ACEOF
30122 rm -f conftest.$ac_objext
30123 if { (ac_try="$ac_compile"
30124 case "(($ac_try" in
30125   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30126   *) ac_try_echo=$ac_try;;
30127 esac
30128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30129   (eval "$ac_compile") 2>conftest.er1
30130   ac_status=$?
30131   grep -v '^ *+' conftest.er1 >conftest.err
30132   rm -f conftest.er1
30133   cat conftest.err >&5
30134   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30135   (exit $ac_status); } && {
30136          test -z "$ac_c_werror_flag" ||
30137          test ! -s conftest.err
30138        } && test -s conftest.$ac_objext; then
30139   ac_hi=$ac_mid; break
30140 else
30141   echo "$as_me: failed program was:" >&5
30142 sed 's/^/| /' conftest.$ac_ext >&5
30143
30144         ac_lo=`expr $ac_mid + 1`
30145                         if test $ac_lo -le $ac_mid; then
30146                           ac_lo= ac_hi=
30147                           break
30148                         fi
30149                         ac_mid=`expr 2 '*' $ac_mid + 1`
30150 fi
30151
30152 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30153   done
30154 else
30155   echo "$as_me: failed program was:" >&5
30156 sed 's/^/| /' conftest.$ac_ext >&5
30157
30158         cat >conftest.$ac_ext <<_ACEOF
30159 /* confdefs.h.  */
30160 _ACEOF
30161 cat confdefs.h >>conftest.$ac_ext
30162 cat >>conftest.$ac_ext <<_ACEOF
30163 /* end confdefs.h.  */
30164 $ac_includes_default
30165    typedef socklen_t ac__type_sizeof_;
30166 int
30167 main ()
30168 {
30169 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
30170 test_array [0] = 0
30171
30172   ;
30173   return 0;
30174 }
30175 _ACEOF
30176 rm -f conftest.$ac_objext
30177 if { (ac_try="$ac_compile"
30178 case "(($ac_try" in
30179   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30180   *) ac_try_echo=$ac_try;;
30181 esac
30182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30183   (eval "$ac_compile") 2>conftest.er1
30184   ac_status=$?
30185   grep -v '^ *+' conftest.er1 >conftest.err
30186   rm -f conftest.er1
30187   cat conftest.err >&5
30188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30189   (exit $ac_status); } && {
30190          test -z "$ac_c_werror_flag" ||
30191          test ! -s conftest.err
30192        } && test -s conftest.$ac_objext; then
30193   ac_hi=-1 ac_mid=-1
30194   while :; do
30195     cat >conftest.$ac_ext <<_ACEOF
30196 /* confdefs.h.  */
30197 _ACEOF
30198 cat confdefs.h >>conftest.$ac_ext
30199 cat >>conftest.$ac_ext <<_ACEOF
30200 /* end confdefs.h.  */
30201 $ac_includes_default
30202    typedef socklen_t ac__type_sizeof_;
30203 int
30204 main ()
30205 {
30206 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
30207 test_array [0] = 0
30208
30209   ;
30210   return 0;
30211 }
30212 _ACEOF
30213 rm -f conftest.$ac_objext
30214 if { (ac_try="$ac_compile"
30215 case "(($ac_try" in
30216   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30217   *) ac_try_echo=$ac_try;;
30218 esac
30219 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30220   (eval "$ac_compile") 2>conftest.er1
30221   ac_status=$?
30222   grep -v '^ *+' conftest.er1 >conftest.err
30223   rm -f conftest.er1
30224   cat conftest.err >&5
30225   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30226   (exit $ac_status); } && {
30227          test -z "$ac_c_werror_flag" ||
30228          test ! -s conftest.err
30229        } && test -s conftest.$ac_objext; then
30230   ac_lo=$ac_mid; break
30231 else
30232   echo "$as_me: failed program was:" >&5
30233 sed 's/^/| /' conftest.$ac_ext >&5
30234
30235         ac_hi=`expr '(' $ac_mid ')' - 1`
30236                         if test $ac_mid -le $ac_hi; then
30237                           ac_lo= ac_hi=
30238                           break
30239                         fi
30240                         ac_mid=`expr 2 '*' $ac_mid`
30241 fi
30242
30243 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30244   done
30245 else
30246   echo "$as_me: failed program was:" >&5
30247 sed 's/^/| /' conftest.$ac_ext >&5
30248
30249         ac_lo= ac_hi=
30250 fi
30251
30252 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30253 fi
30254
30255 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30256 # Binary search between lo and hi bounds.
30257 while test "x$ac_lo" != "x$ac_hi"; do
30258   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
30259   cat >conftest.$ac_ext <<_ACEOF
30260 /* confdefs.h.  */
30261 _ACEOF
30262 cat confdefs.h >>conftest.$ac_ext
30263 cat >>conftest.$ac_ext <<_ACEOF
30264 /* end confdefs.h.  */
30265 $ac_includes_default
30266    typedef socklen_t ac__type_sizeof_;
30267 int
30268 main ()
30269 {
30270 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
30271 test_array [0] = 0
30272
30273   ;
30274   return 0;
30275 }
30276 _ACEOF
30277 rm -f conftest.$ac_objext
30278 if { (ac_try="$ac_compile"
30279 case "(($ac_try" in
30280   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30281   *) ac_try_echo=$ac_try;;
30282 esac
30283 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30284   (eval "$ac_compile") 2>conftest.er1
30285   ac_status=$?
30286   grep -v '^ *+' conftest.er1 >conftest.err
30287   rm -f conftest.er1
30288   cat conftest.err >&5
30289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30290   (exit $ac_status); } && {
30291          test -z "$ac_c_werror_flag" ||
30292          test ! -s conftest.err
30293        } && test -s conftest.$ac_objext; then
30294   ac_hi=$ac_mid
30295 else
30296   echo "$as_me: failed program was:" >&5
30297 sed 's/^/| /' conftest.$ac_ext >&5
30298
30299         ac_lo=`expr '(' $ac_mid ')' + 1`
30300 fi
30301
30302 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30303 done
30304 case $ac_lo in
30305 ?*) ac_cv_sizeof_socklen_t=$ac_lo;;
30306 '') if test "$ac_cv_type_socklen_t" = yes; then
30307      { { echo "$as_me:$LINENO: error: cannot compute sizeof (socklen_t)
30308 See \`config.log' for more details." >&5
30309 echo "$as_me: error: cannot compute sizeof (socklen_t)
30310 See \`config.log' for more details." >&2;}
30311    { (exit 77); exit 77; }; }
30312    else
30313      ac_cv_sizeof_socklen_t=0
30314    fi ;;
30315 esac
30316 else
30317   cat >conftest.$ac_ext <<_ACEOF
30318 /* confdefs.h.  */
30319 _ACEOF
30320 cat confdefs.h >>conftest.$ac_ext
30321 cat >>conftest.$ac_ext <<_ACEOF
30322 /* end confdefs.h.  */
30323 $ac_includes_default
30324    typedef socklen_t ac__type_sizeof_;
30325 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
30326 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
30327 #include <stdio.h>
30328 #include <stdlib.h>
30329 int
30330 main ()
30331 {
30332
30333   FILE *f = fopen ("conftest.val", "w");
30334   if (! f)
30335     return 1;
30336   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
30337     {
30338       long int i = longval ();
30339       if (i != ((long int) (sizeof (ac__type_sizeof_))))
30340         return 1;
30341       fprintf (f, "%ld\n", i);
30342     }
30343   else
30344     {
30345       unsigned long int i = ulongval ();
30346       if (i != ((long int) (sizeof (ac__type_sizeof_))))
30347         return 1;
30348       fprintf (f, "%lu\n", i);
30349     }
30350   return ferror (f) || fclose (f) != 0;
30351
30352   ;
30353   return 0;
30354 }
30355 _ACEOF
30356 rm -f conftest$ac_exeext
30357 if { (ac_try="$ac_link"
30358 case "(($ac_try" in
30359   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30360   *) ac_try_echo=$ac_try;;
30361 esac
30362 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30363   (eval "$ac_link") 2>&5
30364   ac_status=$?
30365   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30366   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30367   { (case "(($ac_try" in
30368   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30369   *) ac_try_echo=$ac_try;;
30370 esac
30371 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30372   (eval "$ac_try") 2>&5
30373   ac_status=$?
30374   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30375   (exit $ac_status); }; }; then
30376   ac_cv_sizeof_socklen_t=`cat conftest.val`
30377 else
30378   echo "$as_me: program exited with status $ac_status" >&5
30379 echo "$as_me: failed program was:" >&5
30380 sed 's/^/| /' conftest.$ac_ext >&5
30381
30382 ( exit $ac_status )
30383 if test "$ac_cv_type_socklen_t" = yes; then
30384      { { echo "$as_me:$LINENO: error: cannot compute sizeof (socklen_t)
30385 See \`config.log' for more details." >&5
30386 echo "$as_me: error: cannot compute sizeof (socklen_t)
30387 See \`config.log' for more details." >&2;}
30388    { (exit 77); exit 77; }; }
30389    else
30390      ac_cv_sizeof_socklen_t=0
30391    fi
30392 fi
30393 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30394 fi
30395 rm -f conftest.val
30396 fi
30397 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_socklen_t" >&5
30398 echo "${ECHO_T}$ac_cv_sizeof_socklen_t" >&6; }
30399
30400
30401
30402 cat >>confdefs.h <<_ACEOF
30403 #define SIZEOF_SOCKLEN_T $ac_cv_sizeof_socklen_t
30404 _ACEOF
30405
30406
30407
30408
30409
30410 cat >>confdefs.h <<_ACEOF
30411 #define NFS_STATEDIR "$statedir"
30412 _ACEOF
30413
30414
30415 if test "x$cross_compiling" = "xno"; then
30416         CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-"$CFLAGS"}
30417         CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-"$CXXFLAGS"}
30418         CPPFLAGS_FOR_BUILD=${CPPFLAGS_FOR_BUILD-"$CPPFLAGS"}
30419         LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-"$LDFLAGS"}
30420 else
30421         CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-""}
30422         CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-""}
30423         CPPFLAGS_FOR_BUILD=${CPPFLAGS_FOR_BUILD-""}
30424         LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-""}
30425 fi
30426
30427
30428
30429
30430
30431
30432
30433
30434
30435
30436
30437 case $host in
30438   *)
30439     ARCHFLAGS="" ;;
30440 esac
30441
30442 my_am_cflags="-Wall -Wstrict-prototypes $ARCHFLAGS -pipe"
30443
30444 AM_CPPFLAGS="-I\${top_srcdir}/support/include"
30445
30446 AM_CFLAGS="$my_am_cflags"
30447
30448
30449 # Make sure that $ACLOCAL_FLAGS are used during a rebuild
30450 ACLOCAL_AMFLAGS="-I $ac_macro_dir \$(ACLOCAL_FLAGS)"
30451
30452
30453 ac_config_files="$ac_config_files Makefile linux-nfs/Makefile support/Makefile support/export/Makefile support/include/nfs/Makefile support/include/rpcsvc/Makefile support/include/sys/fs/Makefile support/include/sys/Makefile support/include/Makefile support/misc/Makefile support/nfs/Makefile tools/Makefile tools/locktest/Makefile tools/nlmtest/Makefile tools/rpcdebug/Makefile tools/rpcgen/Makefile utils/Makefile utils/exportfs/Makefile utils/gssd/Makefile utils/idmapd/Makefile utils/mount/Makefile utils/mountd/Makefile utils/nfsd/Makefile utils/nfsstat/Makefile utils/showmount/Makefile utils/statd/Makefile"
30454
30455 cat >confcache <<\_ACEOF
30456 # This file is a shell script that caches the results of configure
30457 # tests run on this system so they can be shared between configure
30458 # scripts and configure runs, see configure's option --config-cache.
30459 # It is not useful on other systems.  If it contains results you don't
30460 # want to keep, you may remove or edit it.
30461 #
30462 # config.status only pays attention to the cache file if you give it
30463 # the --recheck option to rerun configure.
30464 #
30465 # `ac_cv_env_foo' variables (set or unset) will be overridden when
30466 # loading this file, other *unset* `ac_cv_foo' will be assigned the
30467 # following values.
30468
30469 _ACEOF
30470
30471 # The following way of writing the cache mishandles newlines in values,
30472 # but we know of no workaround that is simple, portable, and efficient.
30473 # So, we kill variables containing newlines.
30474 # Ultrix sh set writes to stderr and can't be redirected directly,
30475 # and sets the high bit in the cache file unless we assign to the vars.
30476 (
30477   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
30478     eval ac_val=\$$ac_var
30479     case $ac_val in #(
30480     *${as_nl}*)
30481       case $ac_var in #(
30482       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
30483 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
30484       esac
30485       case $ac_var in #(
30486       _ | IFS | as_nl) ;; #(
30487       *) $as_unset $ac_var ;;
30488       esac ;;
30489     esac
30490   done
30491
30492   (set) 2>&1 |
30493     case $as_nl`(ac_space=' '; set) 2>&1` in #(
30494     *${as_nl}ac_space=\ *)
30495       # `set' does not quote correctly, so add quotes (double-quote
30496       # substitution turns \\\\ into \\, and sed turns \\ into \).
30497       sed -n \
30498         "s/'/'\\\\''/g;
30499           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
30500       ;; #(
30501     *)
30502       # `set' quotes correctly as required by POSIX, so do not add quotes.
30503       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
30504       ;;
30505     esac |
30506     sort
30507 ) |
30508   sed '
30509      /^ac_cv_env_/b end
30510      t clear
30511      :clear
30512      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
30513      t end
30514      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
30515      :end' >>confcache
30516 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
30517   if test -w "$cache_file"; then
30518     test "x$cache_file" != "x/dev/null" &&
30519       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
30520 echo "$as_me: updating cache $cache_file" >&6;}
30521     cat confcache >$cache_file
30522   else
30523     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
30524 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
30525   fi
30526 fi
30527 rm -f confcache
30528
30529 test "x$prefix" = xNONE && prefix=$ac_default_prefix
30530 # Let make expand exec_prefix.
30531 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
30532
30533 DEFS=-DHAVE_CONFIG_H
30534
30535 ac_libobjs=
30536 ac_ltlibobjs=
30537 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
30538   # 1. Remove the extension, and $U if already installed.
30539   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
30540   ac_i=`echo "$ac_i" | sed "$ac_script"`
30541   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
30542   #    will be set to the directory where LIBOBJS objects are built.
30543   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
30544   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
30545 done
30546 LIBOBJS=$ac_libobjs
30547
30548 LTLIBOBJS=$ac_ltlibobjs
30549
30550
30551 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
30552   { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
30553 Usually this means the macro was only invoked conditionally." >&5
30554 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
30555 Usually this means the macro was only invoked conditionally." >&2;}
30556    { (exit 1); exit 1; }; }
30557 fi
30558 if test -z "${CONFIG_NFSV4_TRUE}" && test -z "${CONFIG_NFSV4_FALSE}"; then
30559   { { echo "$as_me:$LINENO: error: conditional \"CONFIG_NFSV4\" was never defined.
30560 Usually this means the macro was only invoked conditionally." >&5
30561 echo "$as_me: error: conditional \"CONFIG_NFSV4\" was never defined.
30562 Usually this means the macro was only invoked conditionally." >&2;}
30563    { (exit 1); exit 1; }; }
30564 fi
30565 if test -z "${CONFIG_GSS_TRUE}" && test -z "${CONFIG_GSS_FALSE}"; then
30566   { { echo "$as_me:$LINENO: error: conditional \"CONFIG_GSS\" was never defined.
30567 Usually this means the macro was only invoked conditionally." >&5
30568 echo "$as_me: error: conditional \"CONFIG_GSS\" was never defined.
30569 Usually this means the macro was only invoked conditionally." >&2;}
30570    { (exit 1); exit 1; }; }
30571 fi
30572 if test -z "${CONFIG_RPCGEN_TRUE}" && test -z "${CONFIG_RPCGEN_FALSE}"; then
30573   { { echo "$as_me:$LINENO: error: conditional \"CONFIG_RPCGEN\" was never defined.
30574 Usually this means the macro was only invoked conditionally." >&5
30575 echo "$as_me: error: conditional \"CONFIG_RPCGEN\" was never defined.
30576 Usually this means the macro was only invoked conditionally." >&2;}
30577    { (exit 1); exit 1; }; }
30578 fi
30579 if test -z "${CONFIG_MOUNT_TRUE}" && test -z "${CONFIG_MOUNT_FALSE}"; then
30580   { { echo "$as_me:$LINENO: error: conditional \"CONFIG_MOUNT\" was never defined.
30581 Usually this means the macro was only invoked conditionally." >&5
30582 echo "$as_me: error: conditional \"CONFIG_MOUNT\" was never defined.
30583 Usually this means the macro was only invoked conditionally." >&2;}
30584    { (exit 1); exit 1; }; }
30585 fi
30586 if test -z "${CONFIG_IPV6_TRUE}" && test -z "${CONFIG_IPV6_FALSE}"; then
30587   { { echo "$as_me:$LINENO: error: conditional \"CONFIG_IPV6\" was never defined.
30588 Usually this means the macro was only invoked conditionally." >&5
30589 echo "$as_me: error: conditional \"CONFIG_IPV6\" was never defined.
30590 Usually this means the macro was only invoked conditionally." >&2;}
30591    { (exit 1); exit 1; }; }
30592 fi
30593 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
30594   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
30595 Usually this means the macro was only invoked conditionally." >&5
30596 echo "$as_me: error: conditional \"AMDEP\" was never defined.
30597 Usually this means the macro was only invoked conditionally." >&2;}
30598    { (exit 1); exit 1; }; }
30599 fi
30600 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
30601   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
30602 Usually this means the macro was only invoked conditionally." >&5
30603 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
30604 Usually this means the macro was only invoked conditionally." >&2;}
30605    { (exit 1); exit 1; }; }
30606 fi
30607 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
30608   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
30609 Usually this means the macro was only invoked conditionally." >&5
30610 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
30611 Usually this means the macro was only invoked conditionally." >&2;}
30612    { (exit 1); exit 1; }; }
30613 fi
30614 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
30615   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
30616 Usually this means the macro was only invoked conditionally." >&5
30617 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
30618 Usually this means the macro was only invoked conditionally." >&2;}
30619    { (exit 1); exit 1; }; }
30620 fi
30621
30622 : ${CONFIG_STATUS=./config.status}
30623 ac_clean_files_save=$ac_clean_files
30624 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
30625 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
30626 echo "$as_me: creating $CONFIG_STATUS" >&6;}
30627 cat >$CONFIG_STATUS <<_ACEOF
30628 #! $SHELL
30629 # Generated by $as_me.
30630 # Run this file to recreate the current configuration.
30631 # Compiler output produced by configure, useful for debugging
30632 # configure, is in config.log if it exists.
30633
30634 debug=false
30635 ac_cs_recheck=false
30636 ac_cs_silent=false
30637 SHELL=\${CONFIG_SHELL-$SHELL}
30638 _ACEOF
30639
30640 cat >>$CONFIG_STATUS <<\_ACEOF
30641 ## --------------------- ##
30642 ## M4sh Initialization.  ##
30643 ## --------------------- ##
30644
30645 # Be more Bourne compatible
30646 DUALCASE=1; export DUALCASE # for MKS sh
30647 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
30648   emulate sh
30649   NULLCMD=:
30650   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
30651   # is contrary to our usage.  Disable this feature.
30652   alias -g '${1+"$@"}'='"$@"'
30653   setopt NO_GLOB_SUBST
30654 else
30655   case `(set -o) 2>/dev/null` in
30656   *posix*) set -o posix ;;
30657 esac
30658
30659 fi
30660
30661
30662
30663
30664 # PATH needs CR
30665 # Avoid depending upon Character Ranges.
30666 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
30667 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
30668 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
30669 as_cr_digits='0123456789'
30670 as_cr_alnum=$as_cr_Letters$as_cr_digits
30671
30672 # The user is always right.
30673 if test "${PATH_SEPARATOR+set}" != set; then
30674   echo "#! /bin/sh" >conf$$.sh
30675   echo  "exit 0"   >>conf$$.sh
30676   chmod +x conf$$.sh
30677   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
30678     PATH_SEPARATOR=';'
30679   else
30680     PATH_SEPARATOR=:
30681   fi
30682   rm -f conf$$.sh
30683 fi
30684
30685 # Support unset when possible.
30686 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
30687   as_unset=unset
30688 else
30689   as_unset=false
30690 fi
30691
30692
30693 # IFS
30694 # We need space, tab and new line, in precisely that order.  Quoting is
30695 # there to prevent editors from complaining about space-tab.
30696 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
30697 # splitting by setting IFS to empty value.)
30698 as_nl='
30699 '
30700 IFS=" ""        $as_nl"
30701
30702 # Find who we are.  Look in the path if we contain no directory separator.
30703 case $0 in
30704   *[\\/]* ) as_myself=$0 ;;
30705   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30706 for as_dir in $PATH
30707 do
30708   IFS=$as_save_IFS
30709   test -z "$as_dir" && as_dir=.
30710   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
30711 done
30712 IFS=$as_save_IFS
30713
30714      ;;
30715 esac
30716 # We did not find ourselves, most probably we were run as `sh COMMAND'
30717 # in which case we are not to be found in the path.
30718 if test "x$as_myself" = x; then
30719   as_myself=$0
30720 fi
30721 if test ! -f "$as_myself"; then
30722   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
30723   { (exit 1); exit 1; }
30724 fi
30725
30726 # Work around bugs in pre-3.0 UWIN ksh.
30727 for as_var in ENV MAIL MAILPATH
30728 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
30729 done
30730 PS1='$ '
30731 PS2='> '
30732 PS4='+ '
30733
30734 # NLS nuisances.
30735 for as_var in \
30736   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
30737   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
30738   LC_TELEPHONE LC_TIME
30739 do
30740   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
30741     eval $as_var=C; export $as_var
30742   else
30743     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
30744   fi
30745 done
30746
30747 # Required to use basename.
30748 if expr a : '\(a\)' >/dev/null 2>&1 &&
30749    test "X`expr 00001 : '.*\(...\)'`" = X001; then
30750   as_expr=expr
30751 else
30752   as_expr=false
30753 fi
30754
30755 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
30756   as_basename=basename
30757 else
30758   as_basename=false
30759 fi
30760
30761
30762 # Name of the executable.
30763 as_me=`$as_basename -- "$0" ||
30764 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
30765          X"$0" : 'X\(//\)$' \| \
30766          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
30767 echo X/"$0" |
30768     sed '/^.*\/\([^/][^/]*\)\/*$/{
30769             s//\1/
30770             q
30771           }
30772           /^X\/\(\/\/\)$/{
30773             s//\1/
30774             q
30775           }
30776           /^X\/\(\/\).*/{
30777             s//\1/
30778             q
30779           }
30780           s/.*/./; q'`
30781
30782 # CDPATH.
30783 $as_unset CDPATH
30784
30785
30786
30787   as_lineno_1=$LINENO
30788   as_lineno_2=$LINENO
30789   test "x$as_lineno_1" != "x$as_lineno_2" &&
30790   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
30791
30792   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
30793   # uniformly replaced by the line number.  The first 'sed' inserts a
30794   # line-number line after each line using $LINENO; the second 'sed'
30795   # does the real work.  The second script uses 'N' to pair each
30796   # line-number line with the line containing $LINENO, and appends
30797   # trailing '-' during substitution so that $LINENO is not a special
30798   # case at line end.
30799   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
30800   # scripts with optimization help from Paolo Bonzini.  Blame Lee
30801   # E. McMahon (1931-1989) for sed's syntax.  :-)
30802   sed -n '
30803     p
30804     /[$]LINENO/=
30805   ' <$as_myself |
30806     sed '
30807       s/[$]LINENO.*/&-/
30808       t lineno
30809       b
30810       :lineno
30811       N
30812       :loop
30813       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
30814       t loop
30815       s/-\n.*//
30816     ' >$as_me.lineno &&
30817   chmod +x "$as_me.lineno" ||
30818     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
30819    { (exit 1); exit 1; }; }
30820
30821   # Don't try to exec as it changes $[0], causing all sort of problems
30822   # (the dirname of $[0] is not the place where we might find the
30823   # original and so on.  Autoconf is especially sensitive to this).
30824   . "./$as_me.lineno"
30825   # Exit status is that of the last command.
30826   exit
30827 }
30828
30829
30830 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
30831   as_dirname=dirname
30832 else
30833   as_dirname=false
30834 fi
30835
30836 ECHO_C= ECHO_N= ECHO_T=
30837 case `echo -n x` in
30838 -n*)
30839   case `echo 'x\c'` in
30840   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
30841   *)   ECHO_C='\c';;
30842   esac;;
30843 *)
30844   ECHO_N='-n';;
30845 esac
30846
30847 if expr a : '\(a\)' >/dev/null 2>&1 &&
30848    test "X`expr 00001 : '.*\(...\)'`" = X001; then
30849   as_expr=expr
30850 else
30851   as_expr=false
30852 fi
30853
30854 rm -f conf$$ conf$$.exe conf$$.file
30855 if test -d conf$$.dir; then
30856   rm -f conf$$.dir/conf$$.file
30857 else
30858   rm -f conf$$.dir
30859   mkdir conf$$.dir
30860 fi
30861 echo >conf$$.file
30862 if ln -s conf$$.file conf$$ 2>/dev/null; then
30863   as_ln_s='ln -s'
30864   # ... but there are two gotchas:
30865   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
30866   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
30867   # In both cases, we have to default to `cp -p'.
30868   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
30869     as_ln_s='cp -p'
30870 elif ln conf$$.file conf$$ 2>/dev/null; then
30871   as_ln_s=ln
30872 else
30873   as_ln_s='cp -p'
30874 fi
30875 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
30876 rmdir conf$$.dir 2>/dev/null
30877
30878 if mkdir -p . 2>/dev/null; then
30879   as_mkdir_p=:
30880 else
30881   test -d ./-p && rmdir ./-p
30882   as_mkdir_p=false
30883 fi
30884
30885 if test -x / >/dev/null 2>&1; then
30886   as_test_x='test -x'
30887 else
30888   if ls -dL / >/dev/null 2>&1; then
30889     as_ls_L_option=L
30890   else
30891     as_ls_L_option=
30892   fi
30893   as_test_x='
30894     eval sh -c '\''
30895       if test -d "$1"; then
30896         test -d "$1/.";
30897       else
30898         case $1 in
30899         -*)set "./$1";;
30900         esac;
30901         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
30902         ???[sx]*):;;*)false;;esac;fi
30903     '\'' sh
30904   '
30905 fi
30906 as_executable_p=$as_test_x
30907
30908 # Sed expression to map a string onto a valid CPP name.
30909 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
30910
30911 # Sed expression to map a string onto a valid variable name.
30912 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
30913
30914
30915 exec 6>&1
30916
30917 # Save the log message, to keep $[0] and so on meaningful, and to
30918 # report actual input values of CONFIG_FILES etc. instead of their
30919 # values after options handling.
30920 ac_log="
30921 This file was extended by linux nfs-utils $as_me 1.1.3, which was
30922 generated by GNU Autoconf 2.61.  Invocation command line was
30923
30924   CONFIG_FILES    = $CONFIG_FILES
30925   CONFIG_HEADERS  = $CONFIG_HEADERS
30926   CONFIG_LINKS    = $CONFIG_LINKS
30927   CONFIG_COMMANDS = $CONFIG_COMMANDS
30928   $ $0 $@
30929
30930 on `(hostname || uname -n) 2>/dev/null | sed 1q`
30931 "
30932
30933 _ACEOF
30934
30935 cat >>$CONFIG_STATUS <<_ACEOF
30936 # Files that config.status was made for.
30937 config_files="$ac_config_files"
30938 config_headers="$ac_config_headers"
30939 config_commands="$ac_config_commands"
30940
30941 _ACEOF
30942
30943 cat >>$CONFIG_STATUS <<\_ACEOF
30944 ac_cs_usage="\
30945 \`$as_me' instantiates files from templates according to the
30946 current configuration.
30947
30948 Usage: $0 [OPTIONS] [FILE]...
30949
30950   -h, --help       print this help, then exit
30951   -V, --version    print version number and configuration settings, then exit
30952   -q, --quiet      do not print progress messages
30953   -d, --debug      don't remove temporary files
30954       --recheck    update $as_me by reconfiguring in the same conditions
30955   --file=FILE[:TEMPLATE]
30956                    instantiate the configuration file FILE
30957   --header=FILE[:TEMPLATE]
30958                    instantiate the configuration header FILE
30959
30960 Configuration files:
30961 $config_files
30962
30963 Configuration headers:
30964 $config_headers
30965
30966 Configuration commands:
30967 $config_commands
30968
30969 Report bugs to <bug-autoconf@gnu.org>."
30970
30971 _ACEOF
30972 cat >>$CONFIG_STATUS <<_ACEOF
30973 ac_cs_version="\\
30974 linux nfs-utils config.status 1.1.3
30975 configured by $0, generated by GNU Autoconf 2.61,
30976   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
30977
30978 Copyright (C) 2006 Free Software Foundation, Inc.
30979 This config.status script is free software; the Free Software Foundation
30980 gives unlimited permission to copy, distribute and modify it."
30981
30982 ac_pwd='$ac_pwd'
30983 srcdir='$srcdir'
30984 INSTALL='$INSTALL'
30985 MKDIR_P='$MKDIR_P'
30986 _ACEOF
30987
30988 cat >>$CONFIG_STATUS <<\_ACEOF
30989 # If no file are specified by the user, then we need to provide default
30990 # value.  By we need to know if files were specified by the user.
30991 ac_need_defaults=:
30992 while test $# != 0
30993 do
30994   case $1 in
30995   --*=*)
30996     ac_option=`expr "X$1" : 'X\([^=]*\)='`
30997     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
30998     ac_shift=:
30999     ;;
31000   *)
31001     ac_option=$1
31002     ac_optarg=$2
31003     ac_shift=shift
31004     ;;
31005   esac
31006
31007   case $ac_option in
31008   # Handling of the options.
31009   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
31010     ac_cs_recheck=: ;;
31011   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
31012     echo "$ac_cs_version"; exit ;;
31013   --debug | --debu | --deb | --de | --d | -d )
31014     debug=: ;;
31015   --file | --fil | --fi | --f )
31016     $ac_shift
31017     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
31018     ac_need_defaults=false;;
31019   --header | --heade | --head | --hea )
31020     $ac_shift
31021     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
31022     ac_need_defaults=false;;
31023   --he | --h)
31024     # Conflict between --help and --header
31025     { echo "$as_me: error: ambiguous option: $1
31026 Try \`$0 --help' for more information." >&2
31027    { (exit 1); exit 1; }; };;
31028   --help | --hel | -h )
31029     echo "$ac_cs_usage"; exit ;;
31030   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
31031   | -silent | --silent | --silen | --sile | --sil | --si | --s)
31032     ac_cs_silent=: ;;
31033
31034   # This is an error.
31035   -*) { echo "$as_me: error: unrecognized option: $1
31036 Try \`$0 --help' for more information." >&2
31037    { (exit 1); exit 1; }; } ;;
31038
31039   *) ac_config_targets="$ac_config_targets $1"
31040      ac_need_defaults=false ;;
31041
31042   esac
31043   shift
31044 done
31045
31046 ac_configure_extra_args=
31047
31048 if $ac_cs_silent; then
31049   exec 6>/dev/null
31050   ac_configure_extra_args="$ac_configure_extra_args --silent"
31051 fi
31052
31053 _ACEOF
31054 cat >>$CONFIG_STATUS <<_ACEOF
31055 if \$ac_cs_recheck; then
31056   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
31057   CONFIG_SHELL=$SHELL
31058   export CONFIG_SHELL
31059   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
31060 fi
31061
31062 _ACEOF
31063 cat >>$CONFIG_STATUS <<\_ACEOF
31064 exec 5>>config.log
31065 {
31066   echo
31067   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
31068 ## Running $as_me. ##
31069 _ASBOX
31070   echo "$ac_log"
31071 } >&5
31072
31073 _ACEOF
31074 cat >>$CONFIG_STATUS <<_ACEOF
31075 #
31076 # INIT-COMMANDS
31077 #
31078 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
31079
31080 _ACEOF
31081
31082 cat >>$CONFIG_STATUS <<\_ACEOF
31083
31084 # Handling of arguments.
31085 for ac_config_target in $ac_config_targets
31086 do
31087   case $ac_config_target in
31088     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
31089     "support/include/config.h") CONFIG_HEADERS="$CONFIG_HEADERS support/include/config.h" ;;
31090     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
31091     "linux-nfs/Makefile") CONFIG_FILES="$CONFIG_FILES linux-nfs/Makefile" ;;
31092     "support/Makefile") CONFIG_FILES="$CONFIG_FILES support/Makefile" ;;
31093     "support/export/Makefile") CONFIG_FILES="$CONFIG_FILES support/export/Makefile" ;;
31094     "support/include/nfs/Makefile") CONFIG_FILES="$CONFIG_FILES support/include/nfs/Makefile" ;;
31095     "support/include/rpcsvc/Makefile") CONFIG_FILES="$CONFIG_FILES support/include/rpcsvc/Makefile" ;;
31096     "support/include/sys/fs/Makefile") CONFIG_FILES="$CONFIG_FILES support/include/sys/fs/Makefile" ;;
31097     "support/include/sys/Makefile") CONFIG_FILES="$CONFIG_FILES support/include/sys/Makefile" ;;
31098     "support/include/Makefile") CONFIG_FILES="$CONFIG_FILES support/include/Makefile" ;;
31099     "support/misc/Makefile") CONFIG_FILES="$CONFIG_FILES support/misc/Makefile" ;;
31100     "support/nfs/Makefile") CONFIG_FILES="$CONFIG_FILES support/nfs/Makefile" ;;
31101     "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
31102     "tools/locktest/Makefile") CONFIG_FILES="$CONFIG_FILES tools/locktest/Makefile" ;;
31103     "tools/nlmtest/Makefile") CONFIG_FILES="$CONFIG_FILES tools/nlmtest/Makefile" ;;
31104     "tools/rpcdebug/Makefile") CONFIG_FILES="$CONFIG_FILES tools/rpcdebug/Makefile" ;;
31105     "tools/rpcgen/Makefile") CONFIG_FILES="$CONFIG_FILES tools/rpcgen/Makefile" ;;
31106     "utils/Makefile") CONFIG_FILES="$CONFIG_FILES utils/Makefile" ;;
31107     "utils/exportfs/Makefile") CONFIG_FILES="$CONFIG_FILES utils/exportfs/Makefile" ;;
31108     "utils/gssd/Makefile") CONFIG_FILES="$CONFIG_FILES utils/gssd/Makefile" ;;
31109     "utils/idmapd/Makefile") CONFIG_FILES="$CONFIG_FILES utils/idmapd/Makefile" ;;
31110     "utils/mount/Makefile") CONFIG_FILES="$CONFIG_FILES utils/mount/Makefile" ;;
31111     "utils/mountd/Makefile") CONFIG_FILES="$CONFIG_FILES utils/mountd/Makefile" ;;
31112     "utils/nfsd/Makefile") CONFIG_FILES="$CONFIG_FILES utils/nfsd/Makefile" ;;
31113     "utils/nfsstat/Makefile") CONFIG_FILES="$CONFIG_FILES utils/nfsstat/Makefile" ;;
31114     "utils/showmount/Makefile") CONFIG_FILES="$CONFIG_FILES utils/showmount/Makefile" ;;
31115     "utils/statd/Makefile") CONFIG_FILES="$CONFIG_FILES utils/statd/Makefile" ;;
31116
31117   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
31118 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
31119    { (exit 1); exit 1; }; };;
31120   esac
31121 done
31122
31123
31124 # If the user did not use the arguments to specify the items to instantiate,
31125 # then the envvar interface is used.  Set only those that are not.
31126 # We use the long form for the default assignment because of an extremely
31127 # bizarre bug on SunOS 4.1.3.
31128 if $ac_need_defaults; then
31129   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
31130   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
31131   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
31132 fi
31133
31134 # Have a temporary directory for convenience.  Make it in the build tree
31135 # simply because there is no reason against having it here, and in addition,
31136 # creating and moving files from /tmp can sometimes cause problems.
31137 # Hook for its removal unless debugging.
31138 # Note that there is a small window in which the directory will not be cleaned:
31139 # after its creation but before its name has been assigned to `$tmp'.
31140 $debug ||
31141 {
31142   tmp=
31143   trap 'exit_status=$?
31144   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
31145 ' 0
31146   trap '{ (exit 1); exit 1; }' 1 2 13 15
31147 }
31148 # Create a (secure) tmp directory for tmp files.
31149
31150 {
31151   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
31152   test -n "$tmp" && test -d "$tmp"
31153 }  ||
31154 {
31155   tmp=./conf$$-$RANDOM
31156   (umask 077 && mkdir "$tmp")
31157 } ||
31158 {
31159    echo "$me: cannot create a temporary directory in ." >&2
31160    { (exit 1); exit 1; }
31161 }
31162
31163 #
31164 # Set up the sed scripts for CONFIG_FILES section.
31165 #
31166
31167 # No need to generate the scripts if there are no CONFIG_FILES.
31168 # This happens for instance when ./config.status config.h
31169 if test -n "$CONFIG_FILES"; then
31170
31171 _ACEOF
31172
31173
31174
31175 ac_delim='%!_!# '
31176 for ac_last_try in false false false false false :; do
31177   cat >conf$$subs.sed <<_ACEOF
31178 SHELL!$SHELL$ac_delim
31179 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
31180 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
31181 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
31182 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
31183 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
31184 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
31185 exec_prefix!$exec_prefix$ac_delim
31186 prefix!$prefix$ac_delim
31187 program_transform_name!$program_transform_name$ac_delim
31188 bindir!$bindir$ac_delim
31189 sbindir!$sbindir$ac_delim
31190 libexecdir!$libexecdir$ac_delim
31191 datarootdir!$datarootdir$ac_delim
31192 datadir!$datadir$ac_delim
31193 sysconfdir!$sysconfdir$ac_delim
31194 sharedstatedir!$sharedstatedir$ac_delim
31195 localstatedir!$localstatedir$ac_delim
31196 includedir!$includedir$ac_delim
31197 oldincludedir!$oldincludedir$ac_delim
31198 docdir!$docdir$ac_delim
31199 infodir!$infodir$ac_delim
31200 htmldir!$htmldir$ac_delim
31201 dvidir!$dvidir$ac_delim
31202 pdfdir!$pdfdir$ac_delim
31203 psdir!$psdir$ac_delim
31204 libdir!$libdir$ac_delim
31205 localedir!$localedir$ac_delim
31206 mandir!$mandir$ac_delim
31207 DEFS!$DEFS$ac_delim
31208 ECHO_C!$ECHO_C$ac_delim
31209 ECHO_N!$ECHO_N$ac_delim
31210 ECHO_T!$ECHO_T$ac_delim
31211 LIBS!$LIBS$ac_delim
31212 build_alias!$build_alias$ac_delim
31213 host_alias!$host_alias$ac_delim
31214 target_alias!$target_alias$ac_delim
31215 build!$build$ac_delim
31216 build_cpu!$build_cpu$ac_delim
31217 build_vendor!$build_vendor$ac_delim
31218 build_os!$build_os$ac_delim
31219 host!$host$ac_delim
31220 host_cpu!$host_cpu$ac_delim
31221 host_vendor!$host_vendor$ac_delim
31222 host_os!$host_os$ac_delim
31223 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
31224 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
31225 INSTALL_DATA!$INSTALL_DATA$ac_delim
31226 am__isrc!$am__isrc$ac_delim
31227 CYGPATH_W!$CYGPATH_W$ac_delim
31228 PACKAGE!$PACKAGE$ac_delim
31229 VERSION!$VERSION$ac_delim
31230 ACLOCAL!$ACLOCAL$ac_delim
31231 AUTOCONF!$AUTOCONF$ac_delim
31232 AUTOMAKE!$AUTOMAKE$ac_delim
31233 AUTOHEADER!$AUTOHEADER$ac_delim
31234 MAKEINFO!$MAKEINFO$ac_delim
31235 install_sh!$install_sh$ac_delim
31236 STRIP!$STRIP$ac_delim
31237 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
31238 mkdir_p!$mkdir_p$ac_delim
31239 AWK!$AWK$ac_delim
31240 SET_MAKE!$SET_MAKE$ac_delim
31241 am__leading_dot!$am__leading_dot$ac_delim
31242 AMTAR!$AMTAR$ac_delim
31243 am__tar!$am__tar$ac_delim
31244 am__untar!$am__untar$ac_delim
31245 MAINTAINER_MODE_TRUE!$MAINTAINER_MODE_TRUE$ac_delim
31246 MAINTAINER_MODE_FALSE!$MAINTAINER_MODE_FALSE$ac_delim
31247 MAINT!$MAINT$ac_delim
31248 RELEASE!$RELEASE$ac_delim
31249 statedir!$statedir$ac_delim
31250 statduser!$statduser$ac_delim
31251 startstatd!$startstatd$ac_delim
31252 enable_nfsv3!$enable_nfsv3$ac_delim
31253 IDMAPD!$IDMAPD$ac_delim
31254 enable_nfsv4!$enable_nfsv4$ac_delim
31255 CONFIG_NFSV4_TRUE!$CONFIG_NFSV4_TRUE$ac_delim
31256 CONFIG_NFSV4_FALSE!$CONFIG_NFSV4_FALSE$ac_delim
31257 GSSD!$GSSD$ac_delim
31258 SVCGSSD!$SVCGSSD$ac_delim
31259 enable_gss!$enable_gss$ac_delim
31260 CONFIG_GSS_TRUE!$CONFIG_GSS_TRUE$ac_delim
31261 CONFIG_GSS_FALSE!$CONFIG_GSS_FALSE$ac_delim
31262 kprefix!$kprefix$ac_delim
31263 secure_statd!$secure_statd$ac_delim
31264 RPCGEN_PATH!$RPCGEN_PATH$ac_delim
31265 CONFIG_RPCGEN_TRUE!$CONFIG_RPCGEN_TRUE$ac_delim
31266 CONFIG_RPCGEN_FALSE!$CONFIG_RPCGEN_FALSE$ac_delim
31267 CONFIG_MOUNT_TRUE!$CONFIG_MOUNT_TRUE$ac_delim
31268 CONFIG_MOUNT_FALSE!$CONFIG_MOUNT_FALSE$ac_delim
31269 enable_ipv6!$enable_ipv6$ac_delim
31270 CONFIG_IPV6_TRUE!$CONFIG_IPV6_TRUE$ac_delim
31271 CONFIG_IPV6_FALSE!$CONFIG_IPV6_FALSE$ac_delim
31272 CC!$CC$ac_delim
31273 CFLAGS!$CFLAGS$ac_delim
31274 LDFLAGS!$LDFLAGS$ac_delim
31275 _ACEOF
31276
31277   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
31278     break
31279   elif $ac_last_try; then
31280     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
31281 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
31282    { (exit 1); exit 1; }; }
31283   else
31284     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
31285   fi
31286 done
31287
31288 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
31289 if test -n "$ac_eof"; then
31290   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
31291   ac_eof=`expr $ac_eof + 1`
31292 fi
31293
31294 cat >>$CONFIG_STATUS <<_ACEOF
31295 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
31296 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
31297 _ACEOF
31298 sed '
31299 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
31300 s/^/s,@/; s/!/@,|#_!!_#|/
31301 :n
31302 t n
31303 s/'"$ac_delim"'$/,g/; t
31304 s/$/\\/; p
31305 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
31306 ' >>$CONFIG_STATUS <conf$$subs.sed
31307 rm -f conf$$subs.sed
31308 cat >>$CONFIG_STATUS <<_ACEOF
31309 CEOF$ac_eof
31310 _ACEOF
31311
31312
31313 ac_delim='%!_!# '
31314 for ac_last_try in false false false false false :; do
31315   cat >conf$$subs.sed <<_ACEOF
31316 CPPFLAGS!$CPPFLAGS$ac_delim
31317 ac_ct_CC!$ac_ct_CC$ac_delim
31318 EXEEXT!$EXEEXT$ac_delim
31319 OBJEXT!$OBJEXT$ac_delim
31320 DEPDIR!$DEPDIR$ac_delim
31321 am__include!$am__include$ac_delim
31322 am__quote!$am__quote$ac_delim
31323 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
31324 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
31325 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
31326 CCDEPMODE!$CCDEPMODE$ac_delim
31327 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
31328 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
31329 LIBWRAP!$LIBWRAP$ac_delim
31330 HAVE_LIBWRAP!$HAVE_LIBWRAP$ac_delim
31331 HAVE_TCP_WRAPPER!$HAVE_TCP_WRAPPER$ac_delim
31332 CXX!$CXX$ac_delim
31333 CXXFLAGS!$CXXFLAGS$ac_delim
31334 ac_ct_CXX!$ac_ct_CXX$ac_delim
31335 CXXDEPMODE!$CXXDEPMODE$ac_delim
31336 am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
31337 am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
31338 CPP!$CPP$ac_delim
31339 LN_S!$LN_S$ac_delim
31340 SED!$SED$ac_delim
31341 GREP!$GREP$ac_delim
31342 EGREP!$EGREP$ac_delim
31343 ECHO!$ECHO$ac_delim
31344 AR!$AR$ac_delim
31345 RANLIB!$RANLIB$ac_delim
31346 CXXCPP!$CXXCPP$ac_delim
31347 F77!$F77$ac_delim
31348 FFLAGS!$FFLAGS$ac_delim
31349 ac_ct_F77!$ac_ct_F77$ac_delim
31350 LIBTOOL!$LIBTOOL$ac_delim
31351 CC_FOR_BUILD!$CC_FOR_BUILD$ac_delim
31352 LD!$LD$ac_delim
31353 LIBNSL!$LIBNSL$ac_delim
31354 PKG_CONFIG!$PKG_CONFIG$ac_delim
31355 RPCSECGSS_CFLAGS!$RPCSECGSS_CFLAGS$ac_delim
31356 RPCSECGSS_LIBS!$RPCSECGSS_LIBS$ac_delim
31357 GSSGLUE_CFLAGS!$GSSGLUE_CFLAGS$ac_delim
31358 GSSGLUE_LIBS!$GSSGLUE_LIBS$ac_delim
31359 LIBSOCKET!$LIBSOCKET$ac_delim
31360 LIBCRYPT!$LIBCRYPT$ac_delim
31361 LIBBSD!$LIBBSD$ac_delim
31362 LIBBLKID!$LIBBLKID$ac_delim
31363 KRBDIR!$KRBDIR$ac_delim
31364 KRBLIBS!$KRBLIBS$ac_delim
31365 KRBCFLAGS!$KRBCFLAGS$ac_delim
31366 KRBLDFLAGS!$KRBLDFLAGS$ac_delim
31367 K5VERS!$K5VERS$ac_delim
31368 ALLOCA!$ALLOCA$ac_delim
31369 LIBOBJS!$LIBOBJS$ac_delim
31370 CFLAGS_FOR_BUILD!$CFLAGS_FOR_BUILD$ac_delim
31371 CXXFLAGS_FOR_BUILD!$CXXFLAGS_FOR_BUILD$ac_delim
31372 CPPFLAGS_FOR_BUILD!$CPPFLAGS_FOR_BUILD$ac_delim
31373 LDFLAGS_FOR_BUILD!$LDFLAGS_FOR_BUILD$ac_delim
31374 AM_CPPFLAGS!$AM_CPPFLAGS$ac_delim
31375 AM_CFLAGS!$AM_CFLAGS$ac_delim
31376 ACLOCAL_AMFLAGS!$ACLOCAL_AMFLAGS$ac_delim
31377 LTLIBOBJS!$LTLIBOBJS$ac_delim
31378 _ACEOF
31379
31380   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 62; then
31381     break
31382   elif $ac_last_try; then
31383     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
31384 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
31385    { (exit 1); exit 1; }; }
31386   else
31387     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
31388   fi
31389 done
31390
31391 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
31392 if test -n "$ac_eof"; then
31393   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
31394   ac_eof=`expr $ac_eof + 1`
31395 fi
31396
31397 cat >>$CONFIG_STATUS <<_ACEOF
31398 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
31399 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
31400 _ACEOF
31401 sed '
31402 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
31403 s/^/s,@/; s/!/@,|#_!!_#|/
31404 :n
31405 t n
31406 s/'"$ac_delim"'$/,g/; t
31407 s/$/\\/; p
31408 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
31409 ' >>$CONFIG_STATUS <conf$$subs.sed
31410 rm -f conf$$subs.sed
31411 cat >>$CONFIG_STATUS <<_ACEOF
31412 :end
31413 s/|#_!!_#|//g
31414 CEOF$ac_eof
31415 _ACEOF
31416
31417
31418 # VPATH may cause trouble with some makes, so we remove $(srcdir),
31419 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
31420 # trailing colons and then remove the whole line if VPATH becomes empty
31421 # (actually we leave an empty line to preserve line numbers).
31422 if test "x$srcdir" = x.; then
31423   ac_vpsub='/^[  ]*VPATH[        ]*=/{
31424 s/:*\$(srcdir):*/:/
31425 s/:*\${srcdir}:*/:/
31426 s/:*@srcdir@:*/:/
31427 s/^\([^=]*=[     ]*\):*/\1/
31428 s/:*$//
31429 s/^[^=]*=[       ]*$//
31430 }'
31431 fi
31432
31433 cat >>$CONFIG_STATUS <<\_ACEOF
31434 fi # test -n "$CONFIG_FILES"
31435
31436
31437 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
31438 do
31439   case $ac_tag in
31440   :[FHLC]) ac_mode=$ac_tag; continue;;
31441   esac
31442   case $ac_mode$ac_tag in
31443   :[FHL]*:*);;
31444   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
31445 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
31446    { (exit 1); exit 1; }; };;
31447   :[FH]-) ac_tag=-:-;;
31448   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
31449   esac
31450   ac_save_IFS=$IFS
31451   IFS=:
31452   set x $ac_tag
31453   IFS=$ac_save_IFS
31454   shift
31455   ac_file=$1
31456   shift
31457
31458   case $ac_mode in
31459   :L) ac_source=$1;;
31460   :[FH])
31461     ac_file_inputs=
31462     for ac_f
31463     do
31464       case $ac_f in
31465       -) ac_f="$tmp/stdin";;
31466       *) # Look for the file first in the build tree, then in the source tree
31467          # (if the path is not absolute).  The absolute path cannot be DOS-style,
31468          # because $ac_f cannot contain `:'.
31469          test -f "$ac_f" ||
31470            case $ac_f in
31471            [\\/$]*) false;;
31472            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
31473            esac ||
31474            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
31475 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
31476    { (exit 1); exit 1; }; };;
31477       esac
31478       ac_file_inputs="$ac_file_inputs $ac_f"
31479     done
31480
31481     # Let's still pretend it is `configure' which instantiates (i.e., don't
31482     # use $as_me), people would be surprised to read:
31483     #    /* config.h.  Generated by config.status.  */
31484     configure_input="Generated from "`IFS=:
31485           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
31486     if test x"$ac_file" != x-; then
31487       configure_input="$ac_file.  $configure_input"
31488       { echo "$as_me:$LINENO: creating $ac_file" >&5
31489 echo "$as_me: creating $ac_file" >&6;}
31490     fi
31491
31492     case $ac_tag in
31493     *:-:* | *:-) cat >"$tmp/stdin";;
31494     esac
31495     ;;
31496   esac
31497
31498   ac_dir=`$as_dirname -- "$ac_file" ||
31499 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31500          X"$ac_file" : 'X\(//\)[^/]' \| \
31501          X"$ac_file" : 'X\(//\)$' \| \
31502          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
31503 echo X"$ac_file" |
31504     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31505             s//\1/
31506             q
31507           }
31508           /^X\(\/\/\)[^/].*/{
31509             s//\1/
31510             q
31511           }
31512           /^X\(\/\/\)$/{
31513             s//\1/
31514             q
31515           }
31516           /^X\(\/\).*/{
31517             s//\1/
31518             q
31519           }
31520           s/.*/./; q'`
31521   { as_dir="$ac_dir"
31522   case $as_dir in #(
31523   -*) as_dir=./$as_dir;;
31524   esac
31525   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
31526     as_dirs=
31527     while :; do
31528       case $as_dir in #(
31529       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
31530       *) as_qdir=$as_dir;;
31531       esac
31532       as_dirs="'$as_qdir' $as_dirs"
31533       as_dir=`$as_dirname -- "$as_dir" ||
31534 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31535          X"$as_dir" : 'X\(//\)[^/]' \| \
31536          X"$as_dir" : 'X\(//\)$' \| \
31537          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
31538 echo X"$as_dir" |
31539     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31540             s//\1/
31541             q
31542           }
31543           /^X\(\/\/\)[^/].*/{
31544             s//\1/
31545             q
31546           }
31547           /^X\(\/\/\)$/{
31548             s//\1/
31549             q
31550           }
31551           /^X\(\/\).*/{
31552             s//\1/
31553             q
31554           }
31555           s/.*/./; q'`
31556       test -d "$as_dir" && break
31557     done
31558     test -z "$as_dirs" || eval "mkdir $as_dirs"
31559   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
31560 echo "$as_me: error: cannot create directory $as_dir" >&2;}
31561    { (exit 1); exit 1; }; }; }
31562   ac_builddir=.
31563
31564 case "$ac_dir" in
31565 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
31566 *)
31567   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
31568   # A ".." for each directory in $ac_dir_suffix.
31569   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
31570   case $ac_top_builddir_sub in
31571   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
31572   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
31573   esac ;;
31574 esac
31575 ac_abs_top_builddir=$ac_pwd
31576 ac_abs_builddir=$ac_pwd$ac_dir_suffix
31577 # for backward compatibility:
31578 ac_top_builddir=$ac_top_build_prefix
31579
31580 case $srcdir in
31581   .)  # We are building in place.
31582     ac_srcdir=.
31583     ac_top_srcdir=$ac_top_builddir_sub
31584     ac_abs_top_srcdir=$ac_pwd ;;
31585   [\\/]* | ?:[\\/]* )  # Absolute name.
31586     ac_srcdir=$srcdir$ac_dir_suffix;
31587     ac_top_srcdir=$srcdir
31588     ac_abs_top_srcdir=$srcdir ;;
31589   *) # Relative name.
31590     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
31591     ac_top_srcdir=$ac_top_build_prefix$srcdir
31592     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
31593 esac
31594 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
31595
31596
31597   case $ac_mode in
31598   :F)
31599   #
31600   # CONFIG_FILE
31601   #
31602
31603   case $INSTALL in
31604   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
31605   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
31606   esac
31607   ac_MKDIR_P=$MKDIR_P
31608   case $MKDIR_P in
31609   [\\/$]* | ?:[\\/]* ) ;;
31610   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
31611   esac
31612 _ACEOF
31613
31614 cat >>$CONFIG_STATUS <<\_ACEOF
31615 # If the template does not know about datarootdir, expand it.
31616 # FIXME: This hack should be removed a few years after 2.60.
31617 ac_datarootdir_hack=; ac_datarootdir_seen=
31618
31619 case `sed -n '/datarootdir/ {
31620   p
31621   q
31622 }
31623 /@datadir@/p
31624 /@docdir@/p
31625 /@infodir@/p
31626 /@localedir@/p
31627 /@mandir@/p
31628 ' $ac_file_inputs` in
31629 *datarootdir*) ac_datarootdir_seen=yes;;
31630 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
31631   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
31632 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
31633 _ACEOF
31634 cat >>$CONFIG_STATUS <<_ACEOF
31635   ac_datarootdir_hack='
31636   s&@datadir@&$datadir&g
31637   s&@docdir@&$docdir&g
31638   s&@infodir@&$infodir&g
31639   s&@localedir@&$localedir&g
31640   s&@mandir@&$mandir&g
31641     s&\\\${datarootdir}&$datarootdir&g' ;;
31642 esac
31643 _ACEOF
31644
31645 # Neutralize VPATH when `$srcdir' = `.'.
31646 # Shell code in configure.ac might set extrasub.
31647 # FIXME: do we really want to maintain this feature?
31648 cat >>$CONFIG_STATUS <<_ACEOF
31649   sed "$ac_vpsub
31650 $extrasub
31651 _ACEOF
31652 cat >>$CONFIG_STATUS <<\_ACEOF
31653 :t
31654 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
31655 s&@configure_input@&$configure_input&;t t
31656 s&@top_builddir@&$ac_top_builddir_sub&;t t
31657 s&@srcdir@&$ac_srcdir&;t t
31658 s&@abs_srcdir@&$ac_abs_srcdir&;t t
31659 s&@top_srcdir@&$ac_top_srcdir&;t t
31660 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
31661 s&@builddir@&$ac_builddir&;t t
31662 s&@abs_builddir@&$ac_abs_builddir&;t t
31663 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
31664 s&@INSTALL@&$ac_INSTALL&;t t
31665 s&@MKDIR_P@&$ac_MKDIR_P&;t t
31666 $ac_datarootdir_hack
31667 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
31668
31669 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
31670   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
31671   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
31672   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
31673 which seems to be undefined.  Please make sure it is defined." >&5
31674 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
31675 which seems to be undefined.  Please make sure it is defined." >&2;}
31676
31677   rm -f "$tmp/stdin"
31678   case $ac_file in
31679   -) cat "$tmp/out"; rm -f "$tmp/out";;
31680   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
31681   esac
31682  ;;
31683   :H)
31684   #
31685   # CONFIG_HEADER
31686   #
31687 _ACEOF
31688
31689 # Transform confdefs.h into a sed script `conftest.defines', that
31690 # substitutes the proper values into config.h.in to produce config.h.
31691 rm -f conftest.defines conftest.tail
31692 # First, append a space to every undef/define line, to ease matching.
31693 echo 's/$/ /' >conftest.defines
31694 # Then, protect against being on the right side of a sed subst, or in
31695 # an unquoted here document, in config.status.  If some macros were
31696 # called several times there might be several #defines for the same
31697 # symbol, which is useless.  But do not sort them, since the last
31698 # AC_DEFINE must be honored.
31699 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
31700 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
31701 # NAME is the cpp macro being defined, VALUE is the value it is being given.
31702 # PARAMS is the parameter list in the macro definition--in most cases, it's
31703 # just an empty string.
31704 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
31705 ac_dB='\\)[      (].*,\\1define\\2'
31706 ac_dC=' '
31707 ac_dD=' ,'
31708
31709 uniq confdefs.h |
31710   sed -n '
31711         t rset
31712         :rset
31713         s/^[     ]*#[    ]*define[       ][      ]*//
31714         t ok
31715         d
31716         :ok
31717         s/[\\&,]/\\&/g
31718         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
31719         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
31720   ' >>conftest.defines
31721
31722 # Remove the space that was appended to ease matching.
31723 # Then replace #undef with comments.  This is necessary, for
31724 # example, in the case of _POSIX_SOURCE, which is predefined and required
31725 # on some systems where configure will not decide to define it.
31726 # (The regexp can be short, since the line contains either #define or #undef.)
31727 echo 's/ $//
31728 s,^[     #]*u.*,/* & */,' >>conftest.defines
31729
31730 # Break up conftest.defines:
31731 ac_max_sed_lines=50
31732
31733 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
31734 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
31735 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
31736 # et cetera.
31737 ac_in='$ac_file_inputs'
31738 ac_out='"$tmp/out1"'
31739 ac_nxt='"$tmp/out2"'
31740
31741 while :
31742 do
31743   # Write a here document:
31744     cat >>$CONFIG_STATUS <<_ACEOF
31745     # First, check the format of the line:
31746     cat >"\$tmp/defines.sed" <<\\CEOF
31747 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
31748 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
31749 b
31750 :def
31751 _ACEOF
31752   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
31753   echo 'CEOF
31754     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
31755   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
31756   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
31757   grep . conftest.tail >/dev/null || break
31758   rm -f conftest.defines
31759   mv conftest.tail conftest.defines
31760 done
31761 rm -f conftest.defines conftest.tail
31762
31763 echo "ac_result=$ac_in" >>$CONFIG_STATUS
31764 cat >>$CONFIG_STATUS <<\_ACEOF
31765   if test x"$ac_file" != x-; then
31766     echo "/* $configure_input  */" >"$tmp/config.h"
31767     cat "$ac_result" >>"$tmp/config.h"
31768     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
31769       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
31770 echo "$as_me: $ac_file is unchanged" >&6;}
31771     else
31772       rm -f $ac_file
31773       mv "$tmp/config.h" $ac_file
31774     fi
31775   else
31776     echo "/* $configure_input  */"
31777     cat "$ac_result"
31778   fi
31779   rm -f "$tmp/out12"
31780 # Compute $ac_file's index in $config_headers.
31781 _am_arg=$ac_file
31782 _am_stamp_count=1
31783 for _am_header in $config_headers :; do
31784   case $_am_header in
31785     $_am_arg | $_am_arg:* )
31786       break ;;
31787     * )
31788       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
31789   esac
31790 done
31791 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
31792 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31793          X"$_am_arg" : 'X\(//\)[^/]' \| \
31794          X"$_am_arg" : 'X\(//\)$' \| \
31795          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
31796 echo X"$_am_arg" |
31797     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31798             s//\1/
31799             q
31800           }
31801           /^X\(\/\/\)[^/].*/{
31802             s//\1/
31803             q
31804           }
31805           /^X\(\/\/\)$/{
31806             s//\1/
31807             q
31808           }
31809           /^X\(\/\).*/{
31810             s//\1/
31811             q
31812           }
31813           s/.*/./; q'`/stamp-h$_am_stamp_count
31814  ;;
31815
31816   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
31817 echo "$as_me: executing $ac_file commands" >&6;}
31818  ;;
31819   esac
31820
31821
31822   case $ac_file$ac_mode in
31823     "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
31824   # Strip MF so we end up with the name of the file.
31825   mf=`echo "$mf" | sed -e 's/:.*$//'`
31826   # Check whether this is an Automake generated Makefile or not.
31827   # We used to match only the files named `Makefile.in', but
31828   # some people rename them; so instead we look at the file content.
31829   # Grep'ing the first line is not enough: some people post-process
31830   # each Makefile.in and add a new line on top of each file to say so.
31831   # Grep'ing the whole file is not good either: AIX grep has a line
31832   # limit of 2048, but all sed's we know have understand at least 4000.
31833   if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
31834     dirpart=`$as_dirname -- "$mf" ||
31835 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31836          X"$mf" : 'X\(//\)[^/]' \| \
31837          X"$mf" : 'X\(//\)$' \| \
31838          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
31839 echo X"$mf" |
31840     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31841             s//\1/
31842             q
31843           }
31844           /^X\(\/\/\)[^/].*/{
31845             s//\1/
31846             q
31847           }
31848           /^X\(\/\/\)$/{
31849             s//\1/
31850             q
31851           }
31852           /^X\(\/\).*/{
31853             s//\1/
31854             q
31855           }
31856           s/.*/./; q'`
31857   else
31858     continue
31859   fi
31860   # Extract the definition of DEPDIR, am__include, and am__quote
31861   # from the Makefile without running `make'.
31862   DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
31863   test -z "$DEPDIR" && continue
31864   am__include=`sed -n 's/^am__include = //p' < "$mf"`
31865   test -z "am__include" && continue
31866   am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
31867   # When using ansi2knr, U may be empty or an underscore; expand it
31868   U=`sed -n 's/^U = //p' < "$mf"`
31869   # Find all dependency output files, they are included files with
31870   # $(DEPDIR) in their names.  We invoke sed twice because it is the
31871   # simplest approach to changing $(DEPDIR) to its actual value in the
31872   # expansion.
31873   for file in `sed -n "
31874     s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
31875        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
31876     # Make sure the directory exists.
31877     test -f "$dirpart/$file" && continue
31878     fdir=`$as_dirname -- "$file" ||
31879 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31880          X"$file" : 'X\(//\)[^/]' \| \
31881          X"$file" : 'X\(//\)$' \| \
31882          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
31883 echo X"$file" |
31884     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31885             s//\1/
31886             q
31887           }
31888           /^X\(\/\/\)[^/].*/{
31889             s//\1/
31890             q
31891           }
31892           /^X\(\/\/\)$/{
31893             s//\1/
31894             q
31895           }
31896           /^X\(\/\).*/{
31897             s//\1/
31898             q
31899           }
31900           s/.*/./; q'`
31901     { as_dir=$dirpart/$fdir
31902   case $as_dir in #(
31903   -*) as_dir=./$as_dir;;
31904   esac
31905   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
31906     as_dirs=
31907     while :; do
31908       case $as_dir in #(
31909       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
31910       *) as_qdir=$as_dir;;
31911       esac
31912       as_dirs="'$as_qdir' $as_dirs"
31913       as_dir=`$as_dirname -- "$as_dir" ||
31914 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31915          X"$as_dir" : 'X\(//\)[^/]' \| \
31916          X"$as_dir" : 'X\(//\)$' \| \
31917          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
31918 echo X"$as_dir" |
31919     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31920             s//\1/
31921             q
31922           }
31923           /^X\(\/\/\)[^/].*/{
31924             s//\1/
31925             q
31926           }
31927           /^X\(\/\/\)$/{
31928             s//\1/
31929             q
31930           }
31931           /^X\(\/\).*/{
31932             s//\1/
31933             q
31934           }
31935           s/.*/./; q'`
31936       test -d "$as_dir" && break
31937     done
31938     test -z "$as_dirs" || eval "mkdir $as_dirs"
31939   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
31940 echo "$as_me: error: cannot create directory $as_dir" >&2;}
31941    { (exit 1); exit 1; }; }; }
31942     # echo "creating $dirpart/$file"
31943     echo '# dummy' > "$dirpart/$file"
31944   done
31945 done
31946  ;;
31947
31948   esac
31949 done # for ac_tag
31950
31951
31952 { (exit 0); exit 0; }
31953 _ACEOF
31954 chmod +x $CONFIG_STATUS
31955 ac_clean_files=$ac_clean_files_save
31956
31957
31958 # configure is writing to config.log, and then calls config.status.
31959 # config.status does its own redirection, appending to config.log.
31960 # Unfortunately, on DOS this fails, as config.log is still kept open
31961 # by configure, so config.status won't be able to write to it; its
31962 # output is simply discarded.  So we exec the FD to /dev/null,
31963 # effectively closing config.log, so it can be properly (re)opened and
31964 # appended to by config.status.  When coming back to configure, we
31965 # need to make the FD available again.
31966 if test "$no_create" != yes; then
31967   ac_cs_success=:
31968   ac_config_status_args=
31969   test "$silent" = yes &&
31970     ac_config_status_args="$ac_config_status_args --quiet"
31971   exec 5>/dev/null
31972   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
31973   exec 5>>config.log
31974   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
31975   # would make configure fail if this is the last instruction.
31976   $ac_cs_success || { (exit 1); exit 1; }
31977 fi
31978
31979